/* Sites Panel UI. Hand-written, no framework. Light theme, neutral greys, one blue accent. */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/inter-var.woff2) format("woff2")}
:root{
  --bg:#f6f7f9;--surface:#fff;--surface-2:#f9fafb;--ink:#0f172a;--ink-2:#334155;--muted:#5f6b7d;--faint:#94a3b8;
  --line:#eaecf0;--line-2:#dde1e7;--primary:#1d63ed;--primary-hover:#1652c9;--primary-soft:#eef3fe;--primary-ink:#fff;
  --ok:#0b7a43;--ok-bg:#e9f7ef;--warn:#8a4b00;--warn-bg:#fff4e0;--err:#bb1f2a;--err-bg:#fdeced;--violet:#6236c9;--violet-bg:#f3effd;
  --radius:12px;--radius-sm:8px;--shadow:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.03);--shadow-lg:0 12px 32px rgba(16,24,40,.12);
  --side-w:252px;--top-h:64px;--focus:0 0 0 3px rgba(29,99,237,.28);
}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-feature-settings:"cv11","ss01";-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}
h1{font-size:1.5rem;line-height:1.25;font-weight:650;letter-spacing:-.015em;margin:0}
h2{font-size:1rem;font-weight:600;margin:0}h3{font-size:.9rem;font-weight:600;margin:1.5rem 0 .6rem;color:var(--ink)}
p{margin:.4rem 0}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}
.sr{position:absolute;top:0;left:0;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.i{width:18px;height:18px;flex:none;vertical-align:-4px}.i.xs{width:14px;height:14px;vertical-align:-2px}.i.big{width:40px;height:40px;color:var(--faint)}
.muted{color:var(--muted)}.small{font-size:.8125rem}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8125rem}
.break{word-break:break-all}.nowrap{white-space:nowrap}.right{text-align:right!important}.num{font-variant-numeric:tabular-nums}.mt{margin-top:1rem}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8em;background:#f1f3f6;border:1px solid var(--line);color:var(--ink-2);padding:.05rem .35rem;border-radius:5px}

/* ---------- logo */
.logo{display:inline-flex;width:32px;height:32px}.logo svg{width:100%;height:100%}
.logo-bg{fill:var(--primary)}.logo-fg{stroke:#fff;stroke-width:2.6;stroke-linecap:round;fill:none}
.brand{display:inline-flex;align-items:center;gap:.6rem;font-weight:700;font-size:1.05rem;color:var(--ink);letter-spacing:-.01em}.brand:hover{text-decoration:none}

/* ---------- app shell */
.app-body{min-height:100vh;background:linear-gradient(to right,var(--surface) calc(var(--side-w) - 1px),var(--line) calc(var(--side-w) - 1px),var(--line) var(--side-w),var(--bg) var(--side-w))}
.nav-cb{position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--side-w);background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:40}
.side-head{height:var(--top-h);display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--line)}
.side-label{margin:20px 20px 6px;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--faint)}
.side-nav{display:grid;gap:2px;padding:0 12px}
.side-nav a{display:flex;align-items:center;gap:.75rem;height:40px;padding:0 12px;border-radius:var(--radius-sm);color:var(--ink-2);font-weight:500}
.side-nav a .i{color:var(--faint)}
.side-nav a:hover{background:var(--surface-2);text-decoration:none;color:var(--ink)}
.side-nav a.on{background:var(--primary-soft);color:var(--primary);font-weight:600}.side-nav a.on .i{color:var(--primary)}
.side-foot{margin-top:auto;display:flex;align-items:center;gap:.7rem;padding:16px 20px;border-top:1px solid var(--line)}
.side-user{display:grid;line-height:1.3;min-width:0}.side-user strong{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-user span{font-size:.75rem;color:var(--muted)}
.icon-btn.side-close{display:none}
.avatar{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:var(--violet-bg);color:var(--violet);font-weight:650;font-size:.8rem}
.avatar.sm{width:30px;height:30px;border-radius:8px;font-size:.72rem}
.scrim{display:none}
.main{margin-left:var(--side-w);min-width:0}
.topbar{position:sticky;top:0;z-index:30;height:var(--top-h);display:flex;align-items:center;gap:1rem;padding:0 32px;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.icon-btn.burger{display:none}
.icon-btn{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:var(--radius-sm);border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);cursor:pointer}
.icon-btn:hover{background:var(--surface-2)}
.nav-cb:focus-visible~.main .burger,.nav-cb:focus-visible~.sidebar .side-close{box-shadow:var(--focus);border-color:var(--primary)}
.crumbs{min-width:0;flex:1}.crumbs ol{display:flex;align-items:center;gap:.4rem;list-style:none;margin:0;padding:0;font-size:.85rem;white-space:nowrap;overflow:hidden}
.crumbs li{display:inline-flex;align-items:center;gap:.4rem;color:var(--muted)}.crumbs li a{color:var(--muted)}.crumbs li[aria-current]{color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.crumbs .sep{width:14px;height:14px;color:var(--faint)}
.top-right{display:flex;align-items:center;gap:.75rem}
.user-chip{display:inline-flex;align-items:center;gap:.55rem;font-weight:500;font-size:.85rem;color:var(--ink-2)}
.content{max-width:1280px;margin:0 auto;padding:28px 32px 56px}
.devbar{display:flex;align-items:center;gap:.6rem;padding:.5rem 32px;font-size:.8rem;background:#fff8eb;color:#6e4300;border-bottom:1px solid #f6e3bd}.devbar .i{width:15px;height:15px;color:#b26b00}
.auth-body .devbar{justify-content:center;position:relative;z-index:2}

/* ---------- page header */
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:24px}
.page-head h1{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .75rem}
.page-sub{color:var(--muted);margin:.35rem 0 0}
.page-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.back{display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;font-weight:500;color:var(--muted);margin-bottom:12px}.back .i{width:16px;height:16px}.back:hover{color:var(--ink)}

/* ---------- cards & grids */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:20px;overflow:hidden}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:60px;padding:12px 20px;border-bottom:1px solid var(--line)}
.card-head h2{display:flex;align-items:center;gap:.65rem}
.card-pad{padding:18px 20px}
.card>p:not(.card-pad),.card>.kv{padding:0 20px}
.ic-tile{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;background:#f2f4f7;color:var(--ink-2)}
.ic-tile .i{width:17px;height:17px}
.ic-tile.blue{background:var(--primary-soft);color:var(--primary)}.ic-tile.green{background:var(--ok-bg);color:var(--ok)}.ic-tile.amber{background:var(--warn-bg);color:#b45f00}
.ic-tile.violet{background:var(--violet-bg);color:var(--violet)}.ic-tile.red{background:var(--err-bg);color:var(--err)}.ic-tile.grey{background:#f2f4f7;color:var(--muted)}
.grid-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:20px;align-items:start}
.grid-main>.card,.col>.card:last-child{margin-bottom:20px}
.col{display:grid;gap:0;min-width:0}
.two{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:20px}
.stat-grid.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:0}
.stat-card{display:flex;align-items:flex-start;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow)}
.stat-card .ic-tile{width:42px;height:42px;border-radius:11px}.stat-card .ic-tile .i{width:20px;height:20px}
.stat-grid.three .stat-card{box-shadow:none;background:var(--surface-2);padding:14px 16px}.stat-grid.three .ic-tile{width:36px;height:36px}
.stat-val{font-size:1.6rem;font-weight:650;letter-spacing:-.02em;line-height:1.15;margin:0;font-variant-numeric:tabular-nums}
.stat-grid.three .stat-val{font-size:1.25rem}
.stat-label{margin:.15rem 0 0;font-weight:500;color:var(--ink-2);font-size:.85rem}.stat-note{margin:.1rem 0 0;font-size:.75rem;color:var(--muted)}

/* state distribution */
.dist{display:flex;gap:3px;height:8px;border-radius:99px;overflow:hidden;background:#f1f3f6}
.seg{display:block;height:100%}
.w1{flex:1}.w2{flex:2}.w3{flex:3}.w4{flex:4}.w5{flex:5}.w6{flex:6}.w7{flex:7}.w8{flex:8}.w9{flex:9}.w10{flex:10}.w11{flex:11}.w12{flex:12}.w13{flex:13}.w14{flex:14}.w15{flex:15}.w16{flex:16}.w17{flex:17}.w18{flex:18}.w19{flex:19}.w20{flex:20}
.legend{display:flex;flex-wrap:wrap;gap:.35rem 1.25rem;list-style:none;padding:0;margin:.8rem 0 0;font-size:.8rem;color:var(--muted)}
.legend li{display:inline-flex;align-items:center;gap:.4rem}.legend strong{color:var(--ink)}
.sw{width:10px;height:10px;border-radius:3px;display:inline-block}
.s-live{background:#17a35a}.s-grace{background:#f0a023}.s-maintenance{background:#e5484d}.s-suspended{background:#a8202a}.s-draft{background:#b6bfcc}
.s-awaiting_payment{background:#1d63ed}.s-paid_not_live{background:#8b67e6}.s-domain_pending{background:#7048d8}.s-ssl_pending{background:#5631b8}

/* ---------- tables */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%}
th,td{text-align:left;padding:12px 20px;border-bottom:1px solid var(--line);vertical-align:middle}
thead th{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:var(--surface-2);padding-top:10px;padding-bottom:10px;white-space:nowrap}
tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fbfcfd}
td.empty,.empty{color:var(--muted);text-align:center;padding:28px 20px}
.row-link{font-weight:600;color:var(--ink)}.row-link:hover{color:var(--primary)}
.person{display:inline-flex;white-space:nowrap;align-items:center;gap:.6rem;font-weight:500}
.audit td{font-size:.8125rem;vertical-align:top}.audit .detail{max-width:420px;word-break:break-word;color:var(--ink-2)}
.dns td{vertical-align:top}

/* ---------- badges & tags */
.badge{display:inline-flex;align-items:center;gap:.4rem;font-size:.75rem;font-weight:600;line-height:1;padding:.38rem .6rem;border-radius:999px;background:#f1f3f6;color:#475467;white-space:nowrap;letter-spacing:0}
.badge .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
h1 .badge{font-size:.78rem}
.b-live{background:var(--ok-bg);color:var(--ok)}.b-grace{background:var(--warn-bg);color:var(--warn)}.b-maintenance,.b-suspended{background:var(--err-bg);color:var(--err)}
.b-awaiting_payment{background:var(--primary-soft);color:#1747b0}.b-paid_not_live,.b-domain_pending,.b-ssl_pending{background:var(--violet-bg);color:var(--violet)}
.tag{display:inline-flex;align-items:center;gap:.3rem;font-size:.72rem;font-weight:600;padding:.18rem .5rem;border-radius:6px;background:#f1f3f6;color:#475467;white-space:nowrap}
.tag.ok{background:var(--ok-bg);color:var(--ok)}.tag.warn{background:var(--warn-bg);color:var(--warn)}.tag.info{background:var(--primary-soft);color:#1747b0}.tag.dev{background:#fff4e0;color:#8a4b00}
.tag.actor-admin{background:var(--violet-bg);color:var(--violet)}.tag.actor-stripe{background:var(--primary-soft);color:#1747b0}.tag.actor-customer{background:var(--ok-bg);color:var(--ok)}

/* ---------- forms & buttons */
.stack{display:grid;gap:14px}
label{display:grid;gap:6px;font-weight:500;font-size:.85rem;color:var(--ink-2)}
input,select{font:inherit;font-size:.9rem;height:40px;padding:0 12px;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:#fff;color:var(--ink);width:100%;min-width:0;transition:border-color .15s,box-shadow .15s}
select{appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px}
input::placeholder{color:#9aa4b2}
input:hover,select:hover{border-color:#c5ccd6}
input:focus,select:focus{outline:none;border-color:var(--primary);box-shadow:var(--focus)}
.hint{font-size:.78rem;color:var(--muted);margin:-4px 0 0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;font:inherit;font-size:.875rem;font-weight:600;height:40px;padding:0 16px;border-radius:var(--radius-sm);border:1px solid var(--line-2);background:#fff;color:var(--ink);cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s}
.btn:hover{background:var(--surface-2);border-color:#c5ccd6;text-decoration:none}
.btn:focus-visible{outline:none;box-shadow:var(--focus);border-color:var(--primary)}
.btn .i{width:16px;height:16px}
.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-ink);box-shadow:0 1px 2px rgba(29,99,237,.25)}.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.btn.small{height:32px;padding:0 11px;font-size:.8rem}.btn.small .i{width:14px;height:14px}
.btn.ghost{border-color:transparent;background:transparent;color:var(--muted)}.btn.ghost:hover{background:var(--surface-2);color:var(--ink)}
.btn.block{width:100%;height:44px}
.btn-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.inline{display:inline}
.narrow-form{max-width:460px;margin-top:1rem}

/* ---------- alerts */
.flash{display:flex;align-items:flex-start;gap:.65rem;padding:12px 14px;border-radius:10px;margin:0 0 20px;border:1px solid transparent;font-size:.875rem;font-weight:500}
.flash .i{margin-top:1px}.flash>div{min-width:0}
.flash.ok{background:var(--ok-bg);color:var(--ok);border-color:#c8ecd7}.flash.err{background:var(--err-bg);color:var(--err);border-color:#f8cdd0}
.flash.warn{background:var(--warn-bg);color:var(--warn);border-color:#f7dfb4}.flash.info{background:var(--primary-soft);color:#1747b0;border-color:#d6e2fc}
.card .flash{margin:12px 0}

/* ---------- key/value */
.kv{display:grid;grid-template-columns:max-content 1fr;gap:0 1.5rem;margin:0}
.kv dt,.kv dd{padding:9px 0;border-bottom:1px dashed var(--line)}
.kv dt{color:var(--muted);font-size:.85rem}.kv dd{margin:0;word-break:break-word;font-weight:500}
.kv dt:last-of-type,.kv dd:last-of-type{border-bottom:0}
.override-on{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.dev-card{border-style:dashed;border-color:#f0d9ab}

/* ---------- customer */
.site-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:20px}
.site-grid .card{margin:0}
.site-head{display:flex;align-items:center;gap:.8rem;padding:18px 20px;border-bottom:1px solid var(--line)}
.site-head .ic-tile{width:40px;height:40px;border-radius:10px}
.site-title{flex:1;min-width:0}.site-title p{margin:.1rem 0 0}.site-title h2 a{color:var(--ink)}
.plan{margin:.6rem 0 1rem;color:var(--ink-2)}
.pay-box{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:14px 16px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line)}
.pay-box p{margin:0}.due{font-size:1.4rem;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.live-line{font-weight:500;word-break:break-word}.live-line .i{margin-right:.4rem}.live-line .i{color:var(--ok)}
.empty-card{display:grid;justify-items:center;gap:.5rem;padding:40px 20px;color:var(--muted);text-align:center}

/* ---------- stepper */
.stepper{display:grid;grid-template-columns:repeat(5,1fr);list-style:none;margin:0 0 20px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);counter-reset:s}
.stepper li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;color:var(--muted)}
.stepper li:not(:last-child)::after{content:"";position:absolute;top:17px;left:calc(50% + 24px);right:calc(-50% + 24px);height:2px;border-radius:2px;background:var(--line-2)}
.stepper li.done:not(:last-child)::after{background:var(--ok)}
.stepper .num{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:2px solid var(--line-2);background:#fff;font-weight:650;font-size:.85rem;color:var(--muted)}
.stepper .num .i{width:16px;height:16px}
.stepper li.done .num{background:var(--ok);border-color:var(--ok);color:#fff}
.stepper li.active .num{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 0 0 5px var(--primary-soft)}
.st-text{display:grid;line-height:1.3}.st-text strong{font-size:.85rem;color:var(--ink-2)}.st-text span{font-size:.75rem}
.stepper li.active .st-text strong{color:var(--primary)}
.sim-note{display:inline-flex;align-items:center;gap:.4rem;font-size:.8rem;color:var(--muted);margin:0 0 14px}
.check-note{margin-top:12px}
.hero-live{text-align:center;padding:40px 20px}.hero-live h2{font-size:1.25rem;margin-top:12px}
.hero-ic{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--ok-bg);color:var(--ok);box-shadow:0 0 0 8px #f4fbf7}.hero-ic .i{width:28px;height:28px}
.hero-live .big{font-size:1.3rem;font-weight:650;word-break:break-all;margin:.6rem 0}.hero-live .btn{margin-top:.75rem}

/* ---------- health */
.chart-box{margin:0;padding:12px 14px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.chart{display:block;width:100%;height:200px}
.chart-top,.chart-axis{display:flex;justify-content:space-between;font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}.chart-top{margin-bottom:6px}.chart-axis{margin-top:6px;border-top:1px solid var(--line-2);padding-top:6px}
.legend-down{display:inline-flex;align-items:center;gap:.35rem}.sw.down{background:#f3a5a7;width:4px;height:10px;border-radius:1px}
.chart .line{fill:none;stroke:var(--primary);stroke-width:2;stroke-linejoin:round}
.chart .g0{stop-color:#1d63ed;stop-opacity:.18}.chart .g1{stop-color:#1d63ed;stop-opacity:0}
.chart .grid{stroke:#eef0f3;stroke-dasharray:3 4}.chart .base{stroke:var(--line-2)}
.chart .down{stroke:#e5484d;stroke-width:3;opacity:.4}.chart .axis{font-size:11px;fill:#7b8798;font-family:Inter,system-ui,sans-serif}
.h3-sub{font-weight:400;font-size:.8rem}
.psi{display:grid;gap:12px}
.psi-row{display:grid;grid-template-columns:90px minmax(0,1fr) minmax(0,auto);align-items:center;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:10px}
.psi-row>.flash{grid-column:1/-1;margin:0}
.psi-label{margin:0;font-weight:600}
.rings{display:flex;flex-wrap:wrap;gap:18px}
.ring{position:relative;display:grid;justify-items:center;gap:4px;width:76px}
.ring svg{width:56px;height:56px}
.ring .track{fill:none;stroke:#eef0f3;stroke-width:3}.ring .arc{fill:none;stroke-width:3;stroke-linecap:round}
.ring.good .arc{stroke:#13a35a}.ring.mid .arc{stroke:#e8930c}.ring.bad .arc{stroke:#e5484d}
.ring-val{position:absolute;top:0;left:0;right:0;height:56px;display:grid;place-items:center;font-weight:700;font-size:.95rem;font-variant-numeric:tabular-nums}
.ring.good .ring-val{color:var(--ok)}.ring.mid .ring-val{color:var(--warn)}.ring.bad .ring-val{color:var(--err)}.ring.na .ring-val{color:var(--muted);font-size:.75rem}
.ring-label{font-size:.7rem;color:var(--muted);text-align:center;line-height:1.25}
.vitals{display:flex;gap:8px}
.vital{display:grid;gap:2px;min-width:76px;padding:8px 12px;border-radius:8px;background:var(--surface-2)}.vital strong{font-size:.9rem;font-variant-numeric:tabular-nums}

/* ---------- dev mail & checkout */
.mail-head{display:flex;align-items:center;gap:.8rem;padding:16px 20px 0}.mail-head h3{margin:0}.mail-head p{margin:0}
.mail pre{margin:14px 20px 20px;white-space:pre-wrap;word-break:break-word;background:var(--surface-2);border:1px solid var(--line);padding:14px;border-radius:8px;font-size:.8125rem;line-height:1.6}
.invoice{margin:16px 0}.invoice td,.invoice th{padding:11px 0;border-bottom:1px solid var(--line)}.invoice tr:hover td{background:none}
.invoice .total th{border-bottom:0;font-size:1rem;color:var(--ink);text-transform:none;letter-spacing:0;background:none}

/* ---------- auth */
.auth-body{min-height:100vh;background:#fff}
.auth-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);min-height:100vh}
.auth-panel{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:2rem;padding:40px 48px;color:#e8eefc;overflow:hidden;
  background:radial-gradient(120% 80% at 100% 0%,#2f74ff 0%,rgba(47,116,255,0) 55%),linear-gradient(160deg,#123a9c 0%,#0c255f 100%)}
.auth-panel::after{content:"";position:absolute;right:-120px;bottom:-120px;width:360px;height:360px;border-radius:50%;border:1px solid rgba(255,255,255,.12);box-shadow:0 0 0 60px rgba(255,255,255,.03),0 0 0 120px rgba(255,255,255,.025)}
.brand.light{color:#fff}.brand.light .logo-bg{fill:#fff}.brand.light .logo-fg{stroke:#1d4fd0}
.ap-copy{max-width:440px;position:relative;z-index:1}.ap-copy h2{font-size:2rem;line-height:1.2;letter-spacing:-.02em;font-weight:650;color:#fff}
.ap-copy>p{font-size:1rem;color:#c9d6f5;margin:.8rem 0 1.8rem}
.ap-copy ul{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.ap-copy li{display:flex;gap:14px;align-items:flex-start}.ap-copy li strong{display:block;color:#fff;font-weight:600}.ap-copy li span{color:#c2cff0;font-size:.875rem}
.ap-ic{display:inline-grid;place-items:center;flex:none;width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16)}.ap-ic .i{color:#fff}
.ap-foot{font-size:.78rem;color:#a9bbe6;margin:0;position:relative;z-index:1}
.auth-center{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px 24px}
.auth-center>*{width:100%;max-width:420px}
.auth-brand{display:none;align-items:center;gap:.6rem;font-weight:700;font-size:1.05rem;color:var(--ink);margin-bottom:28px}
.auth-card{background:#fff}
.auth-card h1{font-size:1.65rem;margin:0}
.auth-card.center{text-align:center}
.auth-sub{color:var(--muted);margin:.5rem 0 1.6rem}
.auth-card .stack{gap:16px}
.auth-ic{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--primary-soft);color:var(--primary);margin-bottom:16px}.auth-ic .i{width:22px;height:22px}
.auth-ic.warn{background:var(--warn-bg);color:#b45f00}
.auth-note{display:flex;gap:.7rem;align-items:flex-start;margin-top:24px;padding:14px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);font-size:.8125rem}
.auth-note p{margin:0}.auth-note .i{color:var(--faint);margin-top:1px}
.auth-card .tag.dev{margin-bottom:14px}

/* ---------- responsive */
@media (max-width:1180px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.psi-row{grid-template-columns:1fr}.vitals{flex-wrap:wrap}}
@media (max-width:1024px){
  .sidebar{transform:translateX(-100%);transition:transform .2s ease;box-shadow:none;visibility:hidden}
  .nav-cb:checked~.sidebar{transform:none;box-shadow:var(--shadow-lg);visibility:visible}
  .nav-cb:checked~.scrim{display:block;position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:35}
  .icon-btn.side-close{display:inline-grid}
  .main{margin-left:0}.icon-btn.burger{display:inline-grid}
  .app-body{background:var(--bg)}
  .grid-main{grid-template-columns:1fr}
}
@media (max-width:900px){.auth-split{grid-template-columns:1fr}.auth-panel{display:none}.auth-brand{display:inline-flex}.auth-center{justify-content:flex-start;padding-top:40px}}
@media (max-width:640px){
  .topbar{padding:0 16px;gap:.6rem}.content{padding:20px 16px 40px}.devbar{padding:.5rem 16px}
  .user-chip .who{display:none}.signout span{display:none}.signout{width:32px;padding:0}
  h1{font-size:1.3rem}.page-head{margin-bottom:18px}
  .stat-grid{gap:12px}.stat-card{padding:14px;gap:10px;flex-direction:column}.stat-card .ic-tile{width:36px;height:36px}.stat-val{font-size:1.35rem}
  .stat-grid.three{grid-template-columns:1fr}.stat-grid.three .stat-card{flex-direction:row;align-items:center}
  .card-head{padding:12px 16px}.card-pad{padding:16px}th,td{padding:10px 14px}
  .two{grid-template-columns:1fr}
  .table-wrap table{min-width:600px}.table-wrap table.audit{min-width:760px}.audit .detail{max-width:320px}
  .site-grid{grid-template-columns:1fr}
  .kv{grid-template-columns:1fr}.kv dt{border-bottom:0;padding-bottom:0}.kv dd{padding-top:2px}
  .stepper{grid-template-columns:1fr;gap:0;padding:14px 16px}
  .stepper li{flex-direction:row;text-align:left;gap:.8rem;padding:6px 0}
  .stepper li:not(:last-child)::after{top:44px;bottom:-8px;left:17px;right:auto;width:2px;height:auto}
  .stepper li:not(:last-child){padding-bottom:16px}
  .rings{gap:6px;justify-content:space-between}.ring{width:68px}.ring svg{width:50px;height:50px}.ring-val{height:50px}
  .vital{flex:1;min-width:0}
  .auth-center{padding:28px 16px}
}

/* ---------- sites index */
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 16px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.filters label{display:block}.filters select{width:auto;min-width:170px}
.f-search{position:relative;flex:1 1 260px}.f-search .i{position:absolute;left:12px;top:11px;color:var(--faint)}.f-search input{padding-left:38px}
.result-count{margin:-4px 0 12px}
.tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:20px;margin-bottom:24px}
.tile-grid .card{margin:0}
.site-tile{display:flex;flex-direction:column;transition:box-shadow .15s,border-color .15s}.site-tile:hover{box-shadow:var(--shadow-lg);border-color:var(--line-2)}
.tile-shot{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--surface-2);border-bottom:1px solid var(--line)}
.tile-img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.shot-empty{display:grid;place-content:center;justify-items:center;gap:.4rem;color:var(--muted);font-size:.8rem;width:100%;height:100%;min-height:120px;background:repeating-linear-gradient(45deg,#f7f8fa 0 10px,#f2f4f7 10px 20px)}
.tile-body{padding:16px 18px;display:grid;gap:12px}
.tile-head{display:flex;gap:.75rem;align-items:flex-start;justify-content:space-between}
.tile-title{min-width:0}.tile-title h2 a{color:var(--ink)}.tile-title p{margin:.15rem 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.tile-meta div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tile-meta div{padding:8px 10px;border-radius:8px;background:var(--surface-2);min-width:0}
.tile-meta dt{font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600}.tile-meta dd{margin:0;font-weight:600;font-size:.85rem;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tile-meta .tag{white-space:normal}
.tile-action{border-top:1px solid var(--line);padding-top:12px}.tile-action>p:first-child{margin-top:0}
.tile-foot{margin:0;font-size:.8rem;color:var(--muted);display:flex;align-items:center;gap:.35rem}
.score{display:inline-grid;place-items:center;min-width:2.1rem;padding:.12rem .4rem;border-radius:999px;font-weight:700;font-size:.8rem;font-variant-numeric:tabular-nums}
.score.good{background:var(--ok-bg);color:var(--ok)}.score.mid{background:var(--warn-bg);color:var(--warn)}.score.bad{background:var(--err-bg);color:var(--err)}
.tag.err{background:var(--err-bg);color:var(--err)}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.form-actions{grid-column:1/-1}
.new-site{scroll-margin-top:80px}
.mini-sites{display:flex;flex-wrap:wrap;gap:6px}.mini-site{display:inline-flex;align-items:center;gap:.4rem;font-size:.8rem;font-weight:500;color:var(--ink-2)}
.stat-grid.three.wide{gap:20px;margin-bottom:20px}.stat-grid.three.wide .stat-card{background:var(--surface);box-shadow:var(--shadow)}
.dev-quick{margin-top:1rem}

/* ---------- site dashboard */
.site-hero{padding:20px;margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
.sh-main{display:flex;gap:18px;align-items:center}
.sh-thumb{flex:none;display:block;width:148px;aspect-ratio:16/10;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--surface-2)}
.sh-img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.sh-ic{width:52px;height:52px;border-radius:12px}
.sh-text{flex:1;min-width:0}.sh-text h1{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .75rem}
.sh-link{margin:.3rem 0 0;font-weight:500;word-break:break-all}
.quick-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:18px -20px -20px;border-top:1px solid var(--line)}
.qs{display:grid;gap:4px;padding:12px 20px;border-right:1px solid var(--line)}.qs:last-child{border-right:0}
.qs>span{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600}.qs strong{font-size:1rem;font-variant-numeric:tabular-nums}
.seo-mini .ok{color:var(--ok)}
.tabs{background:var(--surface);border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius) var(--radius);box-shadow:var(--shadow);margin-bottom:20px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.tabs ul{display:flex;gap:4px;list-style:none;margin:0;padding:0 12px;min-width:max-content}
.tabs a{display:flex;align-items:center;gap:.45rem;padding:14px 12px 12px;border-bottom:2px solid transparent;color:var(--muted);font-weight:500;white-space:nowrap}
.tabs a .i{width:16px;height:16px}
.tabs a:hover{color:var(--ink);text-decoration:none}
.tabs a.on{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}
.shots{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:14px;align-items:start}
.shot-desktop,.shot-mobile{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.shot-mobile{border-radius:14px}
.shot-desktop.shot-empty{aspect-ratio:16/10}.shot-mobile.shot-empty{aspect-ratio:390/844}
.shot-cap{margin:10px 0 0}
.activity{list-style:none;margin:0;padding:0;display:grid;gap:0}
.activity li{display:flex;gap:12px;padding:0 0 14px;position:relative}
.activity li:not(:last-child)::before{content:"";position:absolute;left:4px;top:14px;bottom:0;width:2px;background:var(--line)}
.act-dot{flex:none;width:10px;height:10px;margin-top:6px;border-radius:50%;background:var(--primary-soft);border:2px solid var(--primary)}
.activity p{margin:0;font-weight:500}
.card-pad.tight{padding-top:0}
.chart.short{height:160px}
.chart .line.l2{stroke:#8b67e6}
.legend-inline{display:inline-flex;align-items:center;gap:.4rem}.sw.s-m{background:var(--primary)}.sw.s-d{background:#8b67e6;margin-left:.6rem}
.vital-hint{font-size:.68rem;color:var(--muted)}
.checks{list-style:none;margin:0;padding:0}
.ck{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,auto);gap:12px;align-items:start;padding:14px 20px;border-top:1px solid var(--line)}
.ck-ic{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px}.ck-ic .i{width:16px;height:16px}
.ck-pass .ck-ic{background:var(--ok-bg);color:var(--ok)}.ck-warn .ck-ic{background:var(--warn-bg);color:#b45f00}.ck-fail .ck-ic{background:var(--err-bg);color:var(--err)}.ck-info .ck-ic{background:#f2f4f7;color:var(--muted)}
.ck-label{margin:3px 0 0;font-weight:600}.ck-text .muted{margin:.15rem 0 0}
.ck-val{margin:3px 0 0;text-align:right;font-weight:500;color:var(--ink-2);max-width:360px;word-break:break-word}
@media (max-width:1180px){.quick-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.qs:nth-child(3){border-right:0}.qs:nth-child(n+4){border-top:1px solid var(--line)}.form-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){
  .filters select{flex:1 1 140px;min-width:0;width:100%}.filters label{flex:1 1 140px}.f-search{flex-basis:100%}
  .tile-grid{grid-template-columns:1fr}.tile-meta{grid-template-columns:1fr 1fr}
  .form-grid{grid-template-columns:1fr}
  .site-hero{padding:16px}.sh-main{flex-wrap:wrap;gap:12px}.sh-thumb{width:100%;aspect-ratio:16/9}
  .quick-stats{grid-template-columns:1fr 1fr;margin:14px -16px -16px}.qs{padding:10px 16px}.qs:nth-child(2n){border-right:0}.qs:nth-child(3){border-right:1px solid var(--line)}.qs:nth-child(n+3){border-top:1px solid var(--line)}.qs:last-child{grid-column:1/-1}
  .shots{grid-template-columns:minmax(0,1fr) 90px}
  .ck{grid-template-columns:28px minmax(0,1fr);padding:12px 16px}.ck-val{grid-column:2;text-align:left;margin:0}
}
/* ---------- search console */
.gsc h3.first{margin-top:0}
.stat-grid.four-mini{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}.four-mini .stat-card{box-shadow:none;background:var(--surface-2);padding:12px 14px}.four-mini .stat-val{font-size:1.2rem}.four-mini .ic-tile{width:34px;height:34px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:28px;border-top:1px solid var(--line)}
.cov-bar{display:flex;gap:3px;height:10px;border-radius:99px;overflow:hidden;background:#f1f3f6;margin:.2rem 0 .6rem}
.reasons{list-style:none;padding:0;margin:.5rem 0}.reasons li{display:flex;justify-content:space-between;gap:1rem;padding:6px 0;border-bottom:1px dashed var(--line);font-size:.85rem}
@media (max-width:900px){.grid-2{grid-template-columns:1fr;gap:12px}.stat-grid.four-mini{grid-template-columns:1fr 1fr}}
/* ---------- status hero, attention, switch, integrations, leads, settings */
.site-hero.tone-ok{border-top:3px solid #17a35a}.site-hero.tone-warn{border-top:3px solid #f0a023}.site-hero.tone-err{border-top:3px solid #e5484d}.site-hero.tone-info{border-top:3px solid var(--primary)}.site-hero.tone-grey{border-top:3px solid #b6bfcc}
.sh-name{margin:0;font-weight:600;color:var(--ink-2)}
.badge.status-word{font-size:1.15rem;padding:.45rem .9rem;gap:.55rem;margin-top:.3rem}.badge.status-word .dot{width:9px;height:9px}
.sh-check{margin:.35rem 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.pulse{display:inline-flex;align-items:center;gap:.4rem;font-weight:600}.pulse .dot{width:8px;height:8px;border-radius:50%}
.pulse.up{color:var(--ok)}.pulse.up .dot{background:#17a35a;box-shadow:0 0 0 4px var(--ok-bg)}.pulse.down{color:var(--err)}.pulse.down .dot{background:#e5484d;box-shadow:0 0 0 4px var(--err-bg)}
.sh-action{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.quick-stats.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
a.qs{color:inherit}a.qs:hover{background:var(--surface-2);text-decoration:none}
.switch{display:inline-flex;align-items:center;gap:.6rem;font-weight:600;font-size:.85rem;color:var(--ink-2);padding:6px 12px 6px 6px;border:1px solid var(--line-2);border-radius:999px;background:#fff;white-space:nowrap}
.switch:hover{text-decoration:none;border-color:#c5ccd6}
.switch .knob{position:relative;width:34px;height:20px;border-radius:999px;background:#d5dae1;transition:background .15s}
.switch .knob::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .15s}
.switch.on{color:var(--err);border-color:#f8cdd0;background:var(--err-bg)}.switch.on .knob{background:#e5484d}.switch.on .knob::after{left:16px}
.btn.danger{background:var(--err);border-color:var(--err);color:#fff}.btn.danger:hover{background:#9c1822}
.status-pill{display:inline-flex;align-items:center;font-size:.75rem;font-weight:700;padding:.3rem .6rem;border-radius:999px;white-space:nowrap;background:#f1f3f6;color:#475467}
.status-pill.tone-ok{background:var(--ok-bg);color:var(--ok)}.status-pill.tone-warn{background:var(--warn-bg);color:var(--warn)}.status-pill.tone-err{background:var(--err-bg);color:var(--err)}.status-pill.tone-info{background:var(--primary-soft);color:#1747b0}
.tile-foot{justify-content:space-between}.tile-foot>span{display:inline-flex;align-items:center;gap:.35rem}
.tile-int{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.int-dots{display:flex;gap:5px;list-style:none;margin:0;padding:0}
.idot{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px}
.i-ok.idot{background:var(--ok-bg);color:var(--ok)}.i-partial.idot{background:var(--warn-bg);color:#a35400}.i-off.idot{background:#f2f4f7;color:#8a94a3}
.lead-pill{display:inline-flex;align-items:center;gap:.3rem;font-size:.75rem;font-weight:600;padding:.2rem .55rem;border-radius:999px;background:var(--primary-soft);color:#1747b0}
.attention{margin-top:0}
.att-list{list-style:none;margin:0;padding:0}
.att-list li{display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid var(--line)}.att-list li:first-child{border-top:0}
.att-ic{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;flex:none}.att-ic .i{width:16px;height:16px}
.att-err .att-ic{background:var(--err-bg);color:var(--err)}.att-warn .att-ic{background:var(--warn-bg);color:#a35400}.att-info .att-ic{background:var(--primary-soft);color:var(--primary)}
.att-text{flex:1;font-weight:500}.att-go{display:inline-flex;align-items:center;gap:.25rem;font-size:.8rem;font-weight:600;white-space:nowrap}
.all-good{display:flex;align-items:center;gap:.6rem;margin:0;padding:16px 20px;color:var(--ok);font-weight:600}
.int-list{list-style:none;margin:0;padding:0}
.int-list li{display:flex;gap:12px;padding:11px 20px;border-top:1px solid var(--line)}.int-list li:first-child{border-top:0}
.int-list p{margin:0}.int-ic{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none}.int-ic .i{width:16px;height:16px}
.int-list .i-ok .int-ic{background:var(--ok-bg);color:var(--ok)}.int-list .i-partial .int-ic{background:var(--warn-bg);color:#a35400}.int-list .i-off .int-ic{background:#f2f4f7;color:#8a94a3}
.int-label{font-weight:600}.int-state{font-size:.7rem;font-weight:600;margin-left:.3rem;padding:.1rem .4rem;border-radius:5px;background:#f2f4f7;color:var(--muted)}
.i-ok .int-state{background:var(--ok-bg);color:var(--ok)}.i-partial .int-state{background:var(--warn-bg);color:var(--warn)}
.int-fix{color:var(--ink-2);display:flex;align-items:center;gap:.3rem;margin-top:2px!important}
.tabs .count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--primary);color:#fff;font-size:.68rem;font-weight:700}
.seg-nav{display:inline-flex;border:1px solid var(--line-2);border-radius:8px;overflow:hidden}.seg-nav a{padding:5px 11px;font-size:.8rem;font-weight:600;color:var(--muted)}.seg-nav a+a{border-left:1px solid var(--line-2)}.seg-nav a.on{background:var(--primary-soft);color:var(--primary)}
.leads tr.unread td{font-weight:600}.leads tr.unread .msg{font-weight:400}.leads .msg{max-width:360px}
.lead-msg{white-space:pre-wrap;word-break:break-word;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:14px;margin:0}
.form-grid.two-col{grid-template-columns:1fr 1fr}.span2{grid-column:1/-1}
textarea{font:inherit;font-size:.9rem;padding:10px 12px;border:1px solid var(--line-2);border-radius:var(--radius-sm);width:100%;resize:vertical}textarea:focus{outline:none;border-color:var(--primary);box-shadow:var(--focus)}
label.check{display:flex;align-items:center;gap:.5rem;font-weight:500}label.check input{width:18px;height:18px}
.secret-state{font-weight:400;margin-left:.3rem}.pre{white-space:pre-wrap}
.confirm{max-width:640px}
@media (max-width:640px){.card-head{flex-wrap:wrap}.quick-stats.n4 .qs{grid-column:auto!important;border-right:1px solid var(--line)!important;border-top:0!important}.quick-stats.n4 .qs:nth-child(2n){border-right:0!important}.quick-stats.n4 .qs:nth-child(n+3){border-top:1px solid var(--line)!important}.sh-action{align-items:stretch;width:100%}.quick-stats.n4,.quick-stats.n5{grid-template-columns:1fr 1fr}.form-grid.two-col{grid-template-columns:1fr}.att-list li{padding:12px 16px}}
/* ---------- modal dialogs (JS: showModal; no JS: :target) */
dialog.modal{padding:0;border:0;background:transparent;max-width:min(720px,calc(100vw - 32px));width:100%;max-height:calc(100vh - 48px);overflow:visible}
dialog.modal::backdrop{background:rgba(15,23,42,.45)}
dialog.modal:target:not([open]){display:block;position:fixed;inset:24px 0 auto;margin:0 auto;z-index:60;box-shadow:0 0 0 100vmax rgba(15,23,42,.45)}
.modal-card{background:var(--surface);border-radius:14px;box-shadow:var(--shadow-lg);max-height:calc(100vh - 48px);overflow:auto}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:1}
.modal-head h2{font-size:1.05rem}
.modal-body{padding:20px}
.modal-actions{display:flex;justify-content:flex-end;gap:8px}
.fs{border:1px solid var(--line);border-radius:10px;padding:12px 14px 14px;margin:0}.fs legend{font-size:.8rem;font-weight:600;color:var(--muted);padding:0 6px}
/* ---------- customers & plans */
th a.sort{color:inherit;text-decoration:none}th a.sort.on{color:var(--primary)}th a.sort:hover{color:var(--ink)}
.customers td{white-space:nowrap}.customers th,.customers td{padding-left:14px;padding-right:14px}.customers th:first-child,.customers td:first-child{padding-left:20px}
.person .p-name{display:block;font-weight:600;color:var(--ink)}.person .p-mail{display:block;font-size:.78rem;color:var(--muted);font-weight:400}
.owed{color:var(--warn);font-weight:600}.owed-over{color:var(--err);font-weight:600}
.xs{font-size:.7rem}.tag.xs{padding:.05rem .35rem}
tr.archived td{opacity:.6}
.cust-sites{list-style:none;margin:0;padding:0}.cust-sites li{display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid var(--line)}.cust-sites li:first-child{border-top:0}
.cust-sites li>div{flex:1;min-width:0}.cust-sites p{margin:.1rem 0 0}
.ev-list{list-style:none;margin:0;padding-left:20px;padding-right:20px}.ev-list li{display:flex;flex-wrap:wrap;gap:.4rem 1rem;align-items:baseline;padding:8px 0;border-bottom:1px dashed var(--line)}.ev-list li:last-child{border-bottom:0}
.page-head h1 .avatar{width:40px;height:40px}
.plan-edit .flash{margin:16px 20px 0}
@media (max-width:640px){dialog.modal:target:not([open]){inset:8px 0 auto}.modal-body{padding:16px}.cust-sites li{flex-wrap:wrap}}
/* ---------- auth extras, MFA, alerts */
.auth-alt{margin:16px 0 0;text-align:center;font-size:.85rem}
.mfa-setup{display:grid;grid-template-columns:220px 1fr;gap:28px;align-items:start}
.qr{width:220px;height:220px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff}.qr svg{width:100%;height:100%;display:block}
.steps{margin:0 0 16px;padding-left:1.2rem;display:grid;gap:8px}
.codes{display:grid;grid-template-columns:repeat(2,max-content);gap:8px 24px;list-style:none;padding:0;margin:16px 0}.codes code{font-size:1rem;padding:.3rem .6rem}
.alert-list{list-style:none;margin:0;padding:0}.alert-list li{padding:14px 20px;border-top:1px solid var(--line)}.alert-list li:first-child{border-top:0}
.alert-list li.seen{opacity:.6}.al-head{display:flex;justify-content:space-between;gap:1rem}.alert-list p{margin:.3rem 0}
.sys-issues{border-color:#f8cdd0}
@media (max-width:640px){.mfa-setup{grid-template-columns:1fr}.qr{margin:0 auto}}
/* ---------- round 8 */
.tabs,.tabs a,.qs,.idot,.ring,.btn,.icon-btn{position:relative} /* keep .sr spans inside their scroll containers */
.main,.content,.col,.grid-main>*{min-width:0}
.tabs{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent)}
.crumb-back,.crumb-title{display:none}
.maint-banner{display:flex;align-items:center;gap:12px;margin:16px -20px 0;padding:12px 20px;background:var(--warn-bg);color:var(--warn);border-top:1px solid #f7dfb4}
.maint-banner>div{flex:1}.maint-banner .muted{color:#8a6a33}
.site-hero.tone-warn .badge.status-word{background:var(--warn-bg);color:var(--warn)}
.all-good-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 20px}
.all-good-card .all-good{padding:0}
.attention .card-head .icon-btn,.shots-card .icon-btn{width:34px;height:34px}
.score{display:inline-flex;align-items:baseline;white-space:nowrap}.all-good-card .all-good{flex:1;justify-content:flex-start}
.score .of{font-weight:500;font-size:.68em;opacity:.7;margin-left:1px}
.qs-sub{display:block;font-size:.75rem;font-weight:500;color:var(--muted);margin-top:2px}
.shots.small{grid-template-columns:minmax(0,1fr) 76px;max-width:420px}
.stat-card{padding:14px 16px;gap:12px}.stat-card .ic-tile{width:36px;height:36px;border-radius:10px}.stat-card .ic-tile .i{width:18px;height:18px}
.stat-val{font-size:1.35rem}.stat-label{font-size:.8rem}
.dev-btn{border-style:dashed;border-color:#e8c37a;background:#fffaf0;color:#6e4300}.dev-btn .tag{margin-right:.4rem}
.dev-hint{color:#8a4b00}
@media (max-width:640px){
  .crumbs ol{display:none}.crumb-back{display:inline-flex;align-items:center;gap:.35rem;font-weight:600;color:var(--ink);font-size:.9rem}.crumb-title{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .content>.back{display:none}
  .quick-stats.n5 .qs:nth-child(5){display:none}
  .quick-stats.n5{grid-template-columns:1fr 1fr}.quick-stats.n5 .qs{grid-column:auto!important;border-right:1px solid var(--line)!important;border-top:0!important}
  .quick-stats.n5 .qs:nth-child(2n){border-right:0!important}.quick-stats.n5 .qs:nth-child(n+3){border-top:1px solid var(--line)!important}
  .maint-banner{flex-wrap:wrap;margin:14px -16px 0;padding:12px 16px}.maint-banner .btn{width:100%}
  .stat-card{flex-direction:row!important;align-items:center}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
