/* Admin panel styles. Colours, radii and shadows follow the Levelix design tokens (light theme only). */
@font-face{font-family:"Figtree";src:url(../fonts/figtree-var-latin.woff2) format("woff2");font-weight:300 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";src:url(../fonts/figtree-var-latin-ext.woff2) format("woff2");font-weight:300 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Onest";src:url(../fonts/onest-var-cyrillic.woff2) format("woff2");font-weight:300 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";src:url(../fonts/onest-var-cyrillic-ext.woff2) format("woff2");font-weight:300 900;font-display:swap;unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}

:root{
  --brand:#f77417;--brand-hover:#e2660d;--brand-active:#c85a0c;--brand-ink:#9a4408;--brand-tint:#fef4ec;--selection:#fde6d3;
  --ink:#29313a;--ink-2:#3a444e;--ink-3:#495560;--on-ink-2:#dfe5ea;--on-ink-muted:#cbd4dc;--scrim:rgba(29,36,43,.44);
  --bg:#f4f6f7;--surface:#fff;--surface-hover:#f7f9fa;--surface-sunken:#fafbfc;--fill:#eef1f3;--fill-2:#e1e6ea;--segment-bg:#e7ebee;--skeleton-2:#f1f3f5;
  --line:#e1e6ea;--line-strong:#cdd5db;--line-hover:#9aa4ae;
  --text:#29313a;--text-2:#4a555f;--text-muted:#636d77;--text-faint:#9aa4ae;
  --info-bg:#e8f1fa;--info-fg:#1f5f9e;--ok-bg:#e4f4ec;--ok-fg:#17784a;--warn-bg:#fdf1dc;--warn-fg:#8a5a06;--danger-bg:#fdeceb;--danger-fg:#b3261e;--live:#2fbf71;
  --r-xs:4px;--r-sm:6px;--r-md:8px;--r-lg:10px;--r-xl:14px;--r-card:20px;--r-pill:999px;
  --sh-card:0 1px 2px rgba(41,49,58,.06),0 2px 6px rgba(41,49,58,.05);
  --sh-seg:0 1px 2px rgba(41,49,58,.12);
  --sh-pop:0 6px 12px rgba(41,49,58,.1),0 18px 40px rgba(41,49,58,.16);
  --sh-login:0 1px 2px rgba(41,49,58,.05),0 16px 40px rgba(41,49,58,.08);
  --halo:0 0 0 3px #fef4ec;
  --font:"Figtree","Onest",ui-sans-serif,system-ui,sans-serif;
  --ease:cubic-bezier(.2,.8,.3,1);
  --gutter:28px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:500 14px/1.4 var(--font);letter-spacing:-.006em;-webkit-font-smoothing:antialiased;min-height:100vh}
button,input{font:inherit;color:inherit;letter-spacing:inherit}
button{cursor:pointer}
a{color:var(--brand-ink);text-decoration:none}
svg.i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:3px solid var(--brand-ink);outline-offset:3px;border-radius:var(--r-sm)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* header */
.hdr{height:52px;background:var(--ink);color:#fff;display:flex;align-items:center;padding:0 var(--gutter);gap:12px;position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:17px;letter-spacing:-.025em;color:#fff}
.brand img{width:24px;height:24px;border-radius:5px;display:block}
.hdr .sp{flex:1}
.ink-btn{height:38px;min-width:38px;padding:0 12px;border:0;border-radius:var(--r-sm);background:var(--ink-2);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:700;transition:background 110ms var(--ease)}
.ink-btn:hover{background:var(--ink-3)}
.ink-btn svg.i{width:18px;height:18px}

/* page */
.page{max-width:1080px;margin:0 auto;padding:28px var(--gutter) 56px}
.page-narrow{max-width:1080px}
.crumb{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--text-2);margin-bottom:14px;padding:4px 8px 4px 4px;margin-left:-4px;border-radius:var(--r-sm)}
.crumb:hover{background:var(--fill)}
.ph{display:flex;align-items:flex-end;gap:16px;margin-bottom:20px}
.ph h1{margin:0;font-size:26px;line-height:1.15;font-weight:700;letter-spacing:-.02em}
.ph p{margin:6px 0 0;color:var(--text-muted);font-size:14px;max-width:60ch}
.ph .sp{flex:1}

/* buttons */
.btn{height:36px;padding:0 16px;border-radius:var(--r-sm);border:1px solid transparent;font-size:13px;font-weight:700;line-height:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;transition:background 110ms var(--ease),border-color 110ms var(--ease)}
.btn.lg{height:44px;font-size:14px}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.btn-primary:active{background:var(--brand-active)}
.btn-secondary{background:var(--surface);border-color:var(--line-strong);color:var(--text)}
.btn-secondary:hover{background:var(--surface-hover);border-color:var(--line-hover)}
.btn-ghost{background:transparent;color:var(--text-2)}
.btn-ghost:hover{background:var(--fill)}
.btn-danger{background:var(--danger-fg);border-color:var(--danger-fg);color:#fff}
.btn-danger:hover{background:#9c1f19}
.btn-grad{height:44px;width:100%;border:0;border-radius:var(--r-md);background:linear-gradient(135deg,#f77417,#e2660d);box-shadow:0 6px 16px rgba(226,102,13,.25);color:#fff;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px}
.btn-grad:hover{filter:brightness(.97)}
.btn[disabled],.btn-grad[disabled]{opacity:.55;pointer-events:none}
.spin{width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;animation:sp .8s linear infinite}
.spin.dark{border-color:var(--fill-2);border-top-color:var(--brand)}
@keyframes sp{to{transform:rotate(360deg)}}
.icon-btn{width:34px;height:34px;border:0;background:transparent;border-radius:var(--r-sm);color:var(--text-2);display:inline-flex;align-items:center;justify-content:center;transition:background 110ms var(--ease),color 110ms var(--ease)}
.icon-btn:hover{background:var(--fill);color:var(--text)}
.icon-btn.warn:hover{background:var(--danger-bg);color:var(--danger-fg)}
.icon-btn.ok:hover{background:var(--ok-bg);color:var(--ok-fg)}

/* pills */
.pill{height:22px;padding:0 9px;border-radius:var(--r-pill);font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.ok{background:var(--ok-bg);color:var(--ok-fg)}
.pill.off{background:var(--fill);color:var(--text-2)}
.pill.warn{background:var(--warn-bg);color:var(--warn-fg)}
.code{display:inline-block;height:20px;line-height:20px;padding:0 7px;border-radius:var(--r-xs);background:var(--fill);color:var(--text-2);font-size:12px;font-weight:600;font-feature-settings:"tnum"}

/* cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--sh-card)}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:16px}
.kpi{padding:16px 20px;border-left:1px solid var(--line)}
.kpi:first-child{border-left:0}
.kpi .l{font-size:13px;color:var(--text-2)}
.kpi .n{font-size:27px;font-weight:800;letter-spacing:-.03em;line-height:1.1;margin-top:4px;font-feature-settings:"tnum"}
.kpi .s{font-size:12px;color:var(--text-muted);margin-top:2px}

/* toolbar */
.bar{display:flex;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.search{position:relative;flex:1;min-width:220px;max-width:380px}
.search svg.i{position:absolute;left:12px;top:50%;margin-top:-9px;color:var(--text-muted);pointer-events:none}
.search input{width:100%;height:40px;padding:0 36px 0 38px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);outline:0;font-size:14px}
.search input::placeholder{color:var(--text-faint)}
.search input:focus{border-color:var(--brand);box-shadow:var(--halo)}
.search .x{position:absolute;right:4px;top:4px;width:32px;height:32px}
.seg{display:inline-flex;background:var(--segment-bg);border-radius:var(--r-md);padding:3px;gap:2px}
.seg button{height:32px;padding:0 14px;border:0;background:transparent;border-radius:var(--r-sm);font-size:13px;font-weight:600;color:var(--text-2)}
.seg button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:var(--sh-seg);font-weight:700}
.seg b{font-weight:600;color:var(--text-muted);margin-left:5px;font-feature-settings:"tnum"}
.bar .sp{flex:1}

/* table */
.tbl{overflow:hidden}
.tr{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(220px,1.3fr) 120px 120px 84px;align-items:center;gap:16px;padding:0 20px;min-height:64px;border-top:1px solid var(--line);transition:background 110ms var(--ease)}
.tr:first-child{border-top:0}
.tr.th{min-height:40px;background:var(--surface-sunken);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}
.tr:not(.th):hover{background:var(--surface-hover)}
.co{display:flex;align-items:center;gap:12px;min-width:0}
.tile{width:38px;height:38px;border-radius:var(--r-md);background:var(--brand-tint);color:var(--brand-ink);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;flex:none}
.off .tile{background:var(--fill);color:var(--text-muted)}
.co .n{font-size:14px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.co .c{margin-top:3px}
.url{display:flex;align-items:center;gap:6px;min-width:0;color:var(--text-2);font-size:13px}
.url span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.url .icon-btn{width:28px;height:28px;color:var(--text-faint)}
.upd{font-size:13px;color:var(--text-muted);font-feature-settings:"tnum"}
.acts{display:flex;justify-content:flex-end;gap:2px}
.off .n,.off .url,.off .upd{color:var(--text-muted)}
.tc-lbl{display:none}

/* skeleton */
.sk{background:linear-gradient(90deg,var(--fill) 25%,var(--skeleton-2) 37%,var(--fill) 63%);background-size:400% 100%;animation:sh 1.4s ease infinite;border-radius:var(--r-xs);height:12px}
@keyframes sh{0%{background-position:100% 50%}100%{background-position:0 50%}}
.tile.sk{border-radius:var(--r-md);width:38px;height:38px}

/* state card */
.state{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--sh-card);padding:40px 32px;text-align:center;display:flex;flex-direction:column;align-items:center}
.state .ic{width:48px;height:48px;border-radius:50%;background:var(--fill);color:var(--text-2);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.state .ic svg.i{width:22px;height:22px}
.state .ic.danger{background:var(--danger-bg);color:var(--danger-fg)}
.state .ic.brand{background:var(--brand-tint);color:var(--brand-ink)}
.state h2{margin:0;font-size:16px;font-weight:700;letter-spacing:-.01em}
.state p{margin:8px 0 0;color:var(--text-2);max-width:42ch;font-size:14px;line-height:1.45}
.state .btns{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap;justify-content:center}
.state .art{width:160px;height:auto;margin:-8px 0 4px}
.state .tech{margin-top:16px;font-size:12px;color:var(--text-muted);background:var(--fill);border-radius:var(--r-sm);padding:6px 10px;font-feature-settings:"tnum"}

/* notes */
.note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-lg);font-size:12.5px;line-height:1.4}
.note svg.i{width:16px;height:16px;margin-top:1px}
.note.info{background:var(--info-bg);color:var(--info-fg)}
.note.danger{background:var(--danger-bg);color:var(--danger-fg)}
.note.warn{background:var(--warn-bg);color:var(--warn-fg)}
.note.ok{background:var(--ok-bg);color:var(--ok-fg)}

/* forms */
.grid2{display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);gap:20px;align-items:start}
.form{padding:28px}
.form h2{margin:0 0 4px;font-size:18px;font-weight:700;letter-spacing:-.015em}
.form .sub{margin:0 0 24px;color:var(--text-muted)}
.fld{margin-bottom:20px}
.fld>label,.fld>.lbl{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:600;color:var(--text-2);margin-bottom:6px}
.fld .cnt{font-weight:500;color:var(--text-faint);font-feature-settings:"tnum"}
.inp{position:relative}
.inp input{width:100%;height:44px;padding:0 40px 0 12px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);font-size:15px;outline:0;transition:border-color 110ms var(--ease),box-shadow 110ms var(--ease)}
.inp input::placeholder{color:var(--text-faint)}
.inp input:focus{border-color:var(--brand);box-shadow:var(--halo)}
.inp input[readonly]{background:var(--fill);color:var(--text-2);border-color:var(--line)}
.inp .end{position:absolute;right:0;top:0;height:44px;width:40px;display:flex;align-items:center;justify-content:center}
.inp .end.ok{color:var(--ok-fg)}
.inp .end.bad{color:var(--danger-fg)}
.inp .end.lock{color:var(--text-muted)}
.inp .eye{border:0;background:transparent;border-radius:var(--r-sm);color:var(--text-2)}
.inp .eye:hover{background:var(--fill)}
.inp.bad input{border-color:var(--danger-fg)}
.inp.bad input:focus{box-shadow:0 0 0 3px var(--danger-bg)}
.help{margin-top:6px;font-size:12px;color:var(--text-muted);line-height:1.4}
.err{margin-top:6px;font-size:12px;color:var(--danger-fg);display:flex;gap:6px;align-items:flex-start;line-height:1.4;font-weight:600}
.err svg.i{width:14px;height:14px;margin-top:1px}
.rules{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:5px}
.rules li{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-muted)}
.rules .d{width:16px;height:16px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;flex:none;color:var(--text-faint)}
.rules .d svg.i{width:10px;height:10px;stroke-width:3}
.rules .d::after{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.rules .d svg.i + *{display:none}
.rules li.ok{color:var(--ok-fg)}
.rules li.ok .d{background:var(--ok-bg);color:var(--ok-fg)}
.rules li.ok .d::after,.rules li.bad .d::after{display:none}
.rules li.bad{color:var(--danger-fg);font-weight:600}
.rules li.bad .d{background:var(--danger-bg);color:var(--danger-fg)}
.rules .d svg{display:none}
.rules li.ok .d svg.ok,.rules li.bad .d svg.bad{display:block}
.sw-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface-sunken)}
.sw-row .t{font-size:14px;font-weight:700}
.sw-row .d{font-size:12px;color:var(--text-muted);margin-top:2px;max-width:40ch}
.sw{width:44px;height:26px;border-radius:var(--r-pill);background:var(--line-strong);border:0;position:relative;flex:none;transition:background 180ms var(--ease)}
.sw::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(41,49,58,.3);transition:transform 180ms var(--ease)}
.sw[aria-checked=true]{background:var(--brand)}
.sw[aria-checked=true]::after{transform:translateX(18px)}
.form .foot{display:flex;gap:10px;justify-content:flex-end;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.side .card{padding:20px}
.side .eyebrow,.eyebrow{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}
.pv{margin-top:12px;background:var(--ink);color:var(--on-ink-2);border-radius:var(--r-lg);padding:14px 16px;font:500 12.5px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:0;overflow:auto;white-space:pre-wrap;word-break:break-all}
.pv .k{color:#f9a869}.pv .s{color:#a9d9bd}.pv .m{color:#8794a1}
.side p{margin:10px 0 0;color:var(--text-2);font-size:13px;line-height:1.45}
.phone-pv{margin-top:14px;border:1px solid var(--line);border-radius:var(--r-xl);padding:16px;background:var(--bg);display:flex;align-items:center;gap:12px}
.phone-pv .tile{width:40px;height:40px}
.phone-pv .n{font-weight:700;font-size:14px}
.phone-pv .u{font-size:12px;color:var(--text-muted)}

/* modal */
.scrim{position:fixed;inset:0;background:var(--scrim);display:flex;align-items:center;justify-content:center;padding:20px;z-index:50}
.dlg{width:100%;max-width:440px;background:var(--surface);border-radius:var(--r-xl);box-shadow:var(--sh-pop);padding:24px}
.dlg .ic{width:44px;height:44px;border-radius:50%;background:var(--warn-bg);color:var(--warn-fg);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.dlg .ic svg.i{width:20px;height:20px}
.dlg h3{margin:0;font-size:17px;font-weight:700;letter-spacing:-.015em;line-height:1.25}
.dlg p{margin:8px 0 0;color:var(--text-2);line-height:1.5}
.dlg ul{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--text-2)}
.dlg li{display:flex;gap:9px;align-items:flex-start;line-height:1.4}
.dlg li svg.i{width:16px;height:16px;margin-top:1px;color:var(--text-muted)}
.dlg li.ok svg.i{color:var(--ok-fg)}
.dlg .who{display:flex;align-items:center;gap:10px;margin-top:16px;padding:10px 12px;background:var(--surface-sunken);border:1px solid var(--line);border-radius:var(--r-lg)}
.dlg .who .tile{width:32px;height:32px;font-size:12px}
.dlg .who .n{font-weight:700;font-size:13px;line-height:1.2}
.dlg .acts2{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}

/* toast */
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:var(--r-md);padding:12px 16px;display:flex;gap:10px;align-items:center;font-size:13px;font-weight:600;box-shadow:var(--sh-pop);z-index:60;max-width:calc(100vw - 24px)}
.toast svg.i{color:#5fd49a}
.toast.err svg.i{color:#ff9a92}
.toast button{border:0;background:transparent;color:#f9a869;font-weight:700;font-size:13px;margin-left:8px;padding:0}

/* login */
.auth{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 12px;background:radial-gradient(120% 110% at 100% 0%,rgba(247,116,23,.075),rgba(247,116,23,0) 70%),var(--bg)}
.auth .box{width:100%;max-width:400px;padding:32px;border-radius:var(--r-xl);background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh-login)}
.auth .lockup{display:flex;align-items:center;gap:10px;margin-bottom:24px}
.auth .lockup img{width:36px;height:36px;border-radius:8px}
.auth .lockup b{font-size:22px;font-weight:800;letter-spacing:-.03em}
.auth h1{margin:0;font-size:26px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.auth .sub{margin:6px 0 22px;color:var(--text-muted)}
.auth .fine{margin-top:18px;font-size:12px;color:var(--text-muted);display:flex;gap:8px;align-items:flex-start;line-height:1.4}
.auth .fine svg.i{width:14px;height:14px;margin-top:1px}
.auth .foot{margin-top:18px;font-size:12px;color:var(--text-faint)}
.auth .box .note{margin-bottom:16px}

/* phone */
@media (max-width:700px){
  :root{--gutter:12px}
    .page{padding:16px var(--gutter) 40px}
  .ph{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:14px}
  .ph h1{font-size:23px}
  .ph .btn{width:100%;height:44px;font-size:14px}
  .kpis{grid-template-columns:repeat(3,1fr)}
  .kpi{padding:12px 12px}
  .kpi .n{font-size:22px}
  .kpi .l{font-size:12px}
  .kpi .s{display:none}
  .bar{gap:10px}
  .search{max-width:none;flex:1 1 100%}
  .search input{height:44px}
  .search .x{top:6px}
  .seg{width:100%}
  .seg button{flex:1;height:36px;padding:0 6px}
  .tr{grid-template-columns:1fr auto;grid-template-areas:"co st" "url url" "acts acts";gap:8px 12px;padding:12px 14px;min-height:0}
  .tr.th{display:none}
  .tr .co{grid-area:co}
  .tr .st{grid-area:st;justify-self:end}
  .tr .url{grid-area:url;padding-left:50px}
  .tr .upd{display:none}
  .tr .acts{grid-area:acts;justify-content:flex-start;padding-left:46px;gap:8px}
  .tr .acts .icon-btn{width:auto;height:36px;padding:0 12px;gap:6px;border:1px solid var(--line-strong);font-size:13px;font-weight:700;color:var(--text-2)}
  .tc-lbl{display:inline}
  .grid2{grid-template-columns:1fr;gap:14px}
  .form{padding:20px 16px}
  .form .foot{flex-direction:column-reverse}
  .form .foot .btn{width:100%;height:44px;font-size:14px}
  .state{padding:32px 20px}
  .scrim{align-items:flex-end;padding:0}
  .dlg{max-width:none;border-radius:var(--r-card) var(--r-card) 0 0;padding:20px 16px 24px}
  .dlg .acts2{flex-direction:column-reverse}
  .dlg .acts2 .btn{width:100%;height:44px;font-size:14px}
  .auth .box{padding:24px 20px}
  .toast{bottom:16px}
}
@media (max-width:700px){.ink-btn .lbl{display:none}.ink-btn{padding:0}}
.hdr-nav{display:flex;gap:4px;margin-left:12px}

/* admin chip in header */
.who{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px 0 5px;border-radius:var(--r-pill);background:var(--ink-2);color:var(--on-ink-2);font-size:12px;font-weight:600;max-width:180px}
.who .av{width:22px;height:22px;border-radius:50%;background:var(--brand);color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:none}
.who .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:700px){.who{padding:0 10px 0 4px;max-width:150px}}

/* two-step auth */
.steps{display:flex;gap:6px;margin:0 0 6px}
.steps i{flex:1;height:4px;border-radius:var(--r-pill);background:var(--fill-2)}
.steps i.on{background:var(--brand)}
.stepl{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 18px}
.auth .box.tight .sub{margin-bottom:18px}
.who-line{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface-sunken);margin-bottom:20px}
.who-line .av{width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}
.who-line .t{font-size:11px;color:var(--text-muted);line-height:1.1}
.who-line .n{font-size:14px;font-weight:700;line-height:1.25}
.otp{display:flex;align-items:center;justify-content:center;gap:8px}
.otp .gap{width:10px;flex:none}
.otp input{width:100%;max-width:52px;min-width:0;height:60px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);text-align:center;font:800 26px/1 var(--font);font-feature-settings:"tnum";letter-spacing:0;outline:0;padding:0;caret-color:var(--brand);transition:border-color 110ms var(--ease),box-shadow 110ms var(--ease)}
.otp input:focus{border-color:var(--brand);box-shadow:var(--halo)}
.otp.bad input{border-color:var(--danger-fg);background:var(--danger-bg)}
.otp.bad input:focus{box-shadow:0 0 0 3px var(--danger-bg)}
.otp.dis input{background:var(--fill);color:var(--text-faint);border-color:var(--line)}
.otp.shake{animation:shk .36s var(--ease)}
@keyframes shk{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
.otp-msg{margin-top:12px;text-align:center}
.otp-msg .err{justify-content:center;text-align:left}
.lock{display:flex;gap:14px;align-items:center;padding:14px 16px;border-radius:var(--r-lg);background:var(--warn-bg);color:var(--warn-fg);margin-bottom:18px}
.lock .ic{width:40px;height:40px;border-radius:50%;background:rgba(138,90,6,.12);display:flex;align-items:center;justify-content:center;flex:none}
.lock .ic svg.i{width:20px;height:20px}
.lock .h{font-size:13px;font-weight:700;line-height:1.3}
.lock .tm{font-size:27px;font-weight:800;letter-spacing:-.03em;line-height:1.1;font-feature-settings:"tnum";margin-top:2px}
.lock .tm small{display:block;font-size:12.5px;font-weight:600;letter-spacing:0;margin-top:3px;line-height:1.35}
.btn-link{display:flex;align-items:center;justify-content:center;gap:8px;height:44px;margin-top:10px;border-radius:var(--r-md);border:0;background:transparent;color:var(--text-2);font-size:14px;font-weight:700;width:100%}
.btn-link:hover{background:var(--fill)}
.state-in{padding:8px 0 4px;text-align:center;display:flex;flex-direction:column;align-items:center}
.state-in .ic{width:48px;height:48px;border-radius:50%;background:var(--fill);color:var(--text-2);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.state-in h2{margin:0;font-size:16px;font-weight:700}
.state-in p{margin:8px 0 20px;color:var(--text-2);line-height:1.45}
@media (max-width:700px){.otp{gap:6px}.otp .gap{width:6px}.otp input{height:56px;font-size:24px}}

/* header navigation (replaces the old fixed header rules) */
.hdr{height:auto;min-height:52px;flex-wrap:wrap;row-gap:0;padding-top:0;padding-bottom:0}
.hdr .brand{height:52px}
.nav{display:flex;gap:2px;margin-left:24px;align-self:stretch}
.nav a{display:flex;align-items:center;padding:0 14px;height:52px;color:var(--on-ink-muted);font-weight:700;font-size:14px;border-bottom:3px solid transparent;box-sizing:border-box}
.nav a:hover{color:#fff}
.nav a[aria-current=page]{color:#fff;border-bottom-color:var(--brand)}
.who{max-width:260px}
@media (max-width:700px){
  .nav{order:5;flex:1 1 100%;margin:0 calc(var(--gutter) * -1);padding:0 var(--gutter);border-top:1px solid rgba(255,255,255,.1)}
  .nav a{flex:1;justify-content:center;height:44px}
  .who{max-width:150px}
}

/* wide auth box + first-login steps */
.auth .box.wide{max-width:760px}
.setup{display:grid;grid-template-columns:224px minmax(0,1fr);gap:32px;align-items:start}
.qr{width:224px;height:224px;padding:12px;border:1px solid var(--line);border-radius:var(--r-xl);background:#fff;display:flex;align-items:center;justify-content:center}
.qr svg,.qr img{width:100%;height:100%;display:block;image-rendering:pixelated}
.qr-cap{margin-top:10px;font-size:12px;color:var(--text-muted);text-align:center}
.key{margin-top:16px}
.key .lbl{font-size:12px;font-weight:600;color:var(--text-2);margin-bottom:6px}
.keybox{display:flex;align-items:center;gap:4px;height:44px;padding:0 4px 0 12px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface-sunken)}
.keybox code{flex:1;font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.keybox .icon-btn{width:34px;height:34px}
.slist{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-direction:column;gap:12px;counter-reset:s}
.slist li{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.4;color:var(--text-2)}
.slist li::before{counter-increment:s;content:counter(s);flex:none;width:24px;height:24px;border-radius:50%;background:var(--brand-tint);color:var(--brand-ink);font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
.slist b{color:var(--text)}
.apps{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.apps span{height:24px;padding:0 9px;border-radius:var(--r-pill);background:var(--fill);color:var(--text-2);font-size:12px;font-weight:600;display:inline-flex;align-items:center}
.sample{margin-top:8px;font-size:11px;color:var(--text-faint);text-align:center}
@media (max-width:700px){.setup{grid-template-columns:1fr;gap:20px;justify-items:center}.setup>div{width:100%}.qr{width:200px;height:200px;margin:0 auto}.qr-cap{text-align:center}}
.rules.pw{margin-top:12px}

/* admins list */
.tr.adm{grid-template-columns:minmax(250px,1.8fr) 130px 160px 140px 96px minmax(190px,1.4fr);min-height:68px}
.me{display:inline-block;margin-left:8px;height:18px;line-height:18px;padding:0 7px;border-radius:var(--r-pill);background:var(--brand-tint);color:var(--brand-ink);font-size:11px;font-weight:700;vertical-align:1px}
.pill.lockd{background:var(--warn-bg);color:var(--warn-fg)}
.pill.bad{background:var(--danger-bg);color:var(--danger-fg)}
.stack{display:flex;flex-wrap:wrap;gap:6px}
.cli{display:flex;gap:14px;align-items:center;margin-top:16px;padding:14px 16px;border:1px dashed var(--line-strong);border-radius:var(--r-xl);background:var(--surface-sunken)}
.cli .ic{width:36px;height:36px;border-radius:var(--r-md);background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.cli .t{font-size:13px;font-weight:700}
.cli .d{font-size:12px;color:var(--text-muted);margin-top:2px}
.cli code{display:inline-block;margin-top:8px;padding:5px 10px;border-radius:var(--r-sm);background:var(--ink);color:#f9c79c;font:600 12.5px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:0}
.kpi .n.wait{color:var(--warn-fg)}
.tr.adm .lastc{font-size:13px;color:var(--text-2);font-feature-settings:"tnum"}
.tr.adm .none{color:var(--text-faint)}
.tr.adm .created{font-size:13px;color:var(--text-muted);font-feature-settings:"tnum"}
.tr.adm .off-row{opacity:.8}
@media (max-width:700px){
  .tr.adm{grid-template-columns:1fr 1fr;grid-template-areas:"co co" "st tt" "last crt";gap:10px 12px;padding:14px}
  .tr.adm .co{grid-area:co}.tr.adm .stack{grid-area:st}.tr.adm .stack.t{grid-area:tt}.tr.adm .lastc{grid-area:last}.tr.adm .created{grid-area:crt;justify-self:start}
  .tr.adm [data-l]::before{content:attr(data-l);display:block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-faint);margin-bottom:2px}
  .cli{flex-direction:column;align-items:flex-start}
}

.tr.adm.th{min-height:40px}

/* production additions: no inline styles (CSP), forms, logout button */
.hdr form{display:contents}
.hdr button.ink-btn{border:0;font:inherit}
.fld.flush{margin:0}
.spacer{height:22px}
.spacer.s20{height:20px}
.otp.left{justify-content:flex-start}
.otp-msg.left{text-align:left}
.who-line .n.clip,.who-line .nn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who-line .mw{min-width:0}
.btn-grad.narrow{max-width:320px}
.btn-min{min-width:110px}.btn-min2{min-width:130px}
.note.mt8{margin-top:8px}
.fld .cnt.ok{color:var(--ok-fg)}
noscript .note{margin-bottom:16px}
.page-note{margin-bottom:14px}
[hidden]{display:none!important}
.dlg-scrim[hidden]{display:none}
.tr .linkrow{display:contents}
.btn-link.inline{width:auto;padding:0 12px;margin:0}
a.btn-grad{text-decoration:none}
.keybox .icon-btn .done{display:none}
.keybox .icon-btn.copied .done{display:block;color:var(--ok-fg)}
.keybox .icon-btn.copied svg:first-child{display:none}
.inp .eye.shown{color:var(--brand-ink)}
.otpset{border:0;padding:0;margin:0;min-width:0}
.keybox{height:auto;min-height:44px;padding:6px 4px 6px 12px}
.keybox code{white-space:normal;line-height:1.5}
.kpi .n.n-ok{color:var(--ok-fg)}
.cotext{min-width:0}
.seg a.segbtn{height:32px;padding:0 14px;border-radius:var(--r-sm);font-size:13px;font-weight:600;color:var(--text-2);display:inline-flex;align-items:center;text-decoration:none}
.seg a.segbtn[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:var(--sh-seg);font-weight:700}
.seg a.segbtn b{font-weight:600;color:var(--text-muted);margin-left:5px;font-feature-settings:"tnum"}
.search a.x{position:absolute;right:4px;top:4px;width:32px;height:32px}
.acts form{display:contents}
.acts a.icon-btn{text-decoration:none}
.url .icon-btn .done{display:none}
.url .icon-btn.copied .done{display:block;color:var(--ok-fg)}
.url .icon-btn.copied svg:first-child{display:none}
.eyebrow.pv-gap{margin-top:20px}
.dlg form.acts2{display:flex}
@media (max-width:700px){.seg a.segbtn{flex:1;justify-content:center;height:36px;padding:0 6px}.dlg form.acts2{flex-direction:column-reverse}.dlg form.acts2 .btn{width:100%;height:44px}.tr .acts form{display:contents}}

.tr.adm .by{font-size:13px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tr.adm.th{gap:16px}
@media (max-width:700px){.tr.adm{grid-template-areas:"co co" "st tt" "last crt" "by by"}.tr.adm .by{grid-area:by;white-space:normal}}
/* new admin: password shown once */
.once{border:1px solid #f1d6b0;background:var(--warn-bg);border-radius:var(--r-xl);padding:20px}
.once .h{display:flex;gap:10px;align-items:center;font-size:14px;font-weight:700;color:var(--warn-fg)}
.once .h svg.i{width:18px;height:18px}
.pwbox{display:flex;align-items:center;gap:8px;margin-top:14px;padding:6px 6px 6px 16px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-lg)}
.pwbox code{flex:1;font:700 20px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em;color:var(--text);word-break:break-all;user-select:all}
.pwbox .btn{height:40px}
.facts{display:grid;grid-template-columns:140px 1fr;gap:10px 16px;margin:0;font-size:14px}
.facts dt{color:var(--text-muted);font-size:13px}
.facts dd{margin:0;font-weight:600;word-break:break-all}
.nextsteps{margin:16px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;font-size:13.5px;color:var(--text-2)}
.nextsteps li{display:flex;gap:10px;align-items:flex-start;line-height:1.4}
.nextsteps li svg.i{width:16px;height:16px;margin-top:2px;color:var(--text-muted)}
.cardw{max-width:640px}
.form .foot.split{justify-content:space-between}
@media (max-width:700px){.facts{grid-template-columns:1fr;gap:2px 0}.facts dt{margin-top:8px}.pwbox{flex-wrap:wrap}.pwbox code{font-size:18px;flex:1 1 100%}.pwbox .btn{width:100%}}
.mb20{margin-bottom:20px}.mt22{margin-top:22px}

.l-done{display:none}
.pwbox .btn.copied .l-copy{display:none}
.pwbox .btn.copied .l-done{display:inline;color:var(--ok-fg)}
.pwbox .btn .done{display:none}
