.automation-page{max-width:60rem;display:grid;gap:1rem}
.automation-page .surface{padding:clamp(1rem,3vw,1.7rem);min-width:0}
.automation-page h2,.automation-page h3{margin:0 0 .6rem}
.automation-page p{margin:.3rem 0 .6rem}
.automation-cost{color:var(--muted);max-width:70ch}
.automation-status:empty{display:none}
.automation-status{font-weight:600}
.automation-page .section-line{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.automation-page .inline-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-top:.8rem}
.automation-notice,.automation-item{padding:1rem 0;overflow-wrap:anywhere}
.automation-notice+.automation-notice,.automation-item+.automation-item{border-top:1px solid var(--edge)}
.automation-notice.unread h3::before{content:"";display:inline-block;width:.55rem;height:.55rem;margin-right:.5rem;border-radius:50%;background:var(--accent);vertical-align:middle}
.automation-lines{margin:.4rem 0;padding-left:1.1rem;display:grid;gap:.25rem}
.automation-state{font-weight:600}
.automation-history:not([hidden]){border-top:1px solid var(--edge);margin-top:.8rem;padding-top:.8rem}
.automation-runs{margin:0;padding-left:1.1rem;display:grid;gap:.5rem}
.automation-runs details{margin-top:.3rem}
.automation-model-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.automation-model{border:1px solid var(--edge);background:var(--surface);border-radius:var(--radius-panel);padding:1.1rem;display:grid;align-content:start;gap:.2rem;min-width:0}
.automation-model button{justify-self:start;margin-top:.4rem}
.automation-invite{border:1px solid var(--edge);border-radius:1rem;padding:.8rem 1rem;max-width:70ch}
.automation-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem;margin:1rem 0;align-items:start}
.automation-fields .field{align-content:start}
.automation-fields .field input,.automation-fields .field select{height:52px}
.automation-summary{border-left:3px solid var(--accent);padding-left:.8rem;max-width:70ch}
.automation-editor [role=alert]{font-weight:600;color:var(--danger)}
.automation-page a[download]{color:var(--accent);text-decoration:underline;text-underline-offset:.17rem;padding:.5rem 0}
@media(max-width:700px){.automation-page{padding-bottom:5rem}.automation-fields{grid-template-columns:minmax(0,1fr)}}
