#automate-view { padding-block:25px 48px; }
.auto-heading { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:18px; margin-bottom:23px; }
.auto-heading h1 { font-size:clamp(40px,4vw,60px); line-height:1.05; letter-spacing:-.055em; font-weight:800; }
.auto-heading p { color:var(--muted); font-size:17px; margin-top:9px; }
.auto-heading img { width:clamp(85px,11vw,150px); height:auto; object-fit:contain; }
.auto-heading button .icon { vertical-align:middle; margin-right:6px; }
#automate-view :is(.primary-button,.secondary-button) { padding:8px 13px; font-weight:800; }
#automate-view .secondary-button { border:1px solid var(--line); }
#automate-view .secondary-button:hover { background:var(--surface-hover); }
.auto-surface { border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.auto-status,.auto-dialog-status { color:var(--muted); font-size:13px; margin-bottom:12px; }
.auto-status:empty,.auto-dialog-status:empty { display:none; }
.auto-empty { text-align:center; padding:54px 16px; }
.auto-empty h2 { margin-top:11px; font-size:26px; letter-spacing:-.032em; }
.auto-empty p { margin:6px 0 18px; color:var(--muted); }
.auto-empty > div { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; }
.auto-glyph { display:inline-grid; place-items:center; width:40px; height:40px; flex:none; border-radius:11px; background:var(--blue-soft); color:var(--blue-text); }
.auto-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:22px; }
.auto-metrics > div { display:flex; align-items:center; gap:11px; padding:15px; }
.auto-metrics strong { display:block; font-size:23px; line-height:1.15; font-variant-numeric:tabular-nums; }
.auto-metrics p,.auto-identity small,.auto-table td small { color:var(--muted); font-size:12px; }
.auto-tools,.auto-tabs,.auto-row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.auto-tools { margin-bottom:14px; }
.auto-tabs { margin-right:auto; }
.auto-tabs button { min-height:42px; padding:8px 12px; border-radius:9px; background:var(--surface-hover); font-size:13px; font-weight:750; }
.auto-tabs button[aria-pressed=true] { color:#fff; background:var(--action); }
.auto-search { position:relative; flex:1 1 160px; max-width:270px; }
.auto-search .icon { position:absolute; left:11px; top:12px; width:17px; height:17px; color:var(--muted); }
#automate-view :is(input,select) { border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); font-size:13px; min-height:42px; padding:8px 10px; border-radius:10px; }
#automate-view .auto-search input { width:100%; padding-left:35px; }
.auto-table { overflow:auto; }
.auto-table table { width:100%; border-collapse:collapse; }
.auto-table :is(th,td) { padding:12px 10px; text-align:left; border-bottom:1px solid var(--line); font-size:13px; }
.auto-table thead th { background:var(--bg); color:var(--muted); font-weight:800; }
.auto-table tbody tr:last-child > * { border-bottom:0; }
.auto-identity { display:flex; gap:10px; align-items:center; }
.auto-identity button { padding:0; text-align:left; font-weight:800; overflow-wrap:anywhere; }
.auto-table small { display:block; }
.auto-identity small { font-weight:500; }
.auto-row-actions { gap:6px; }
.auto-pill { display:inline-block; border-radius:99px; background:var(--surface-hover); color:var(--muted); font-size:12px; font-weight:800; padding:4px 8px; }
.auto-pill[data-active=true] { color:#156539; background:#def4e6; }
[data-theme=dark] .auto-pill[data-active=true] { color:#aaf1c5; background:#214031; }
.auto-no-match { padding:18px; color:var(--muted); }
.auto-dialog { position:fixed; inset:0; margin:auto; width:min(620px,calc(100% - 24px)); max-height:86dvh; padding:25px; border-radius:17px; border:1px solid var(--line); background:var(--surface); color:var(--ink); }
.auto-dialog h2 { padding-right:30px; margin-bottom:14px; overflow-wrap:anywhere; }
.auto-dialog-content p { margin-bottom:12px; color:var(--muted); }
.auto-dialog-status { margin:12px 0 0; }
.auto-form label { display:block; font-size:13px; font-weight:800; }
.auto-form :is(input,select) { display:block; width:100%; margin:5px 0 12px; }
.auto-form-grid,.auto-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.auto-facts { margin:12px 0 16px; }
.auto-facts div { padding:10px; border-radius:9px; background:var(--bg); }
.auto-facts dt { font-size:12px; color:var(--muted); font-weight:800; }
.auto-facts dd { margin:3px 0 0; font-size:14px; }
.auto-review-name { font-weight:800; }
.auto-history { list-style:none; margin:0 0 15px; padding:0; }
.auto-history li { display:grid; grid-template-columns:1fr auto; gap:4px; border-bottom:1px solid var(--line); padding-block:8px; font-size:13px; }
.auto-history span { grid-column:1/-1; color:var(--muted); }
@media(max-width:900px) { .auto-table table { min-width:700px; } }
@media(max-width:650px) {
  .auto-heading { grid-template-columns:minmax(0,1fr) auto; gap:10px; }
  .auto-heading button { grid-row:2; justify-self:start; }
  .auto-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .auto-table thead { display:none; }
  .auto-table table,.auto-table tbody { display:block; min-width:0; }
  .auto-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:10px; border-bottom:1px solid var(--line); }
  .auto-table :is(th,td) { border:0; padding:4px; }
  .auto-table tbody th,.auto-table td:last-child { grid-column:1/-1; }
}
