/*
 * The staff console's look (plan AF slice A6), carried from the approved mockups (reji/ui/html/af/build-mockups.py, the theme and the kit) so the pages match
 * what was approved. Its names are the mockups'; the tokens below map them onto the app's.
 */
.console {
    --bg: var(--background);
    --surface: var(--card);
    --surface-2: var(--muted);
    --surface-hover: var(--muted);
    --text-1: var(--foreground);
    --text-2: var(--muted-foreground);
    --text-3: var(--quiet);
    --border-strong: var(--border);
    --border-accent: var(--accent-foreground);
    --accent: var(--primary);
    --on-accent: var(--primary-foreground);
    --emerald: var(--success);
    --amber: var(--warning);
    --rose: var(--destructive);
    --slate: var(--muted-foreground);
    --emerald-dim: color-mix(in srgb, var(--success) 12%, transparent);
    --amber-dim: color-mix(in srgb, var(--warning) 14%, transparent);
    --rose-dim: color-mix(in srgb, var(--destructive) 12%, transparent);
    --accent-dim: color-mix(in srgb, var(--primary) 10%, transparent);
    --input-bg: var(--background);
    --sidebar-bg: var(--card);
}
.console a { color:inherit; }
.ib { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:9px; border:1px solid var(--border); background:var(--surface); color:var(--text-2); font-size:13.5px; cursor:pointer; transition:background .15s, color .15s, border-color .15s, transform .1s; padding:0; text-decoration:none; flex-shrink:0; }
.console .cn-header, .console .cn-panel, .console .af-tile { animation:none !important; opacity:1; transform:none; }
@keyframes clScan { 0% { transform: translateX(-100%); } 100% { transform: translateX(1800%); } }
.cn-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; animation: plFadeUp .5s ease both; flex-wrap: wrap; }
.cn-header > div:first-child { flex: 1 1 360px; min-width: 0; }
.cn-title { font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: var(--text-1); }
.cn-title span { color: var(--accent); }
.cn-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.cn-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.cn-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--text-1); font-family: var(--font-sans); font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: all .2s; white-space: nowrap; }
.cn-btn:hover { border-color: var(--border-accent); color: var(--accent); text-decoration: none; }
.cn-btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cn-btn.primary:hover { color: var(--on-accent); filter: brightness(1.1); box-shadow: 0 4px 16px rgba(var(--accent-rgb), .3); }
.cn-btn.success { background: var(--emerald-dim); color: var(--emerald); border-color: rgba(16,232,152,.25); }
.cn-btn.success:hover { background: var(--emerald); color: white; border-color: var(--emerald); }
.cn-btn.warn { background: var(--amber-dim); color: var(--amber); border-color: rgba(245,158,11,.25); }
.cn-btn.warn:hover { background: var(--amber); color: white; border-color: var(--amber); }
.cn-btn.danger { background: var(--rose-dim); color: var(--rose); border-color: rgba(244,63,94,.25); }
.cn-btn.danger:hover { background: var(--rose); color: white; border-color: var(--rose); }
.cn-btn.sm { padding: 6px 12px; font-size: 11px; }
.cn-flash { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; font-size: 13px; border: 1px solid; display: flex; align-items: center; gap: 8px; }
.cn-flash.success { background: var(--emerald-dim); color: var(--emerald); border-color: rgba(16,232,152,.25); }
.cn-flash.danger { background: var(--rose-dim); color: var(--rose); border-color: rgba(244,63,94,.25); }
.cn-flash.warn { background: var(--amber-dim); color: var(--amber); border-color: rgba(245,158,11,.25); }
.cn-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; animation: plFadeUp .5s .15s ease both; margin-bottom: 16px; }
.cn-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.cn-panel-title { font-size: 13px; font-weight: 800; color: var(--text-1); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.cn-panel-title i { font-size: 11px; color: var(--accent); }
.cn-panel-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.cn-panel-body { padding: 18px 20px; }
.cn-actions-cell { display: inline-flex; gap: 4px; align-items: center; }
.cn-form-control { width: 100%; padding: 9px 13px; background: var(--input-bg); border: 1.5px solid var(--border); border-radius: 9px; font-family: var(--font-sans); font-size: 13px; color: var(--text-1); outline: none; transition: all .2s; }
.cn-form-control:focus { border-color: var(--border-accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.cn-form-control:read-only { background: var(--surface-2); color: var(--text-3); }
@keyframes plFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes plPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (max-width: 700px) {
  .cn-header { flex-direction: column; }
  .cn-header > div:first-child { flex: 0 0 auto; }
}
.hd-chip { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:100px; font-size:11px; font-weight:700; border:1px solid; white-space:nowrap; }
.hd-chip .dot { width:6px; height:6px; border-radius:50%; background:currentColor; }
.tone-slate { color:var(--slate); background:color-mix(in srgb, var(--slate) 12%, transparent); border-color:color-mix(in srgb, var(--slate) 30%, transparent); }
.tone-emerald { color:var(--emerald); background:color-mix(in srgb, var(--emerald) 12%, transparent); border-color:color-mix(in srgb, var(--emerald) 30%, transparent); }
.tone-amber { color:var(--amber); background:color-mix(in srgb, var(--amber) 12%, transparent); border-color:color-mix(in srgb, var(--amber) 30%, transparent); }
.tone-rose { color:var(--rose); background:color-mix(in srgb, var(--rose) 12%, transparent); border-color:color-mix(in srgb, var(--rose) 30%, transparent); }
.rq { color:var(--rose); font-weight:800; margin-inline-start:2px; }
.f-req { font-size:12px; color:var(--text-3); }
.f-req .rq { margin:0 2px 0 0; }
.f-btns { display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:flex-end; margin-top:16px; }
.f-btns > .f-why { margin-inline-end:auto; font-size:12.5px; color:var(--text-3); }
.f-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap:14px; }
.f-field label, .f-label { display:block; font-size:12.5px; font-weight:700; color:var(--text-2); margin-bottom:6px; white-space:nowrap; }
.f-help { font-size:12px; color:var(--text-3); margin-top:5px; line-height:1.45; }
.f-choice { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap:10px; }
.f-choice .opt { position:relative; display:grid; grid-template-columns:auto minmax(0, 1fr); gap:3px 12px; align-items:start; padding:13px 15px; border:1.5px solid var(--border); border-radius:14px; background:var(--surface); cursor:pointer; }
.f-choice .opt:hover { border-color:var(--border-strong, var(--border)); }
.f-choice .opt input { position:absolute; opacity:0; pointer-events:none; }
.f-choice .opt .ic { grid-row:span 2; width:36px; height:36px; border-radius:11px; display:grid; place-items:center; font-size:15px; color:var(--text-2); background:var(--surface-2); }
.f-choice .opt b { font-size:14px; color:var(--text-1); padding-inline-end:26px; }
.f-choice .opt .cd { font-size:12.5px; line-height:1.45; color:var(--text-2); }
.f-choice .opt::after { content:''; position:absolute; top:13px; inset-inline-end:13px; width:18px; height:18px; border-radius:50%; border:2px solid var(--border); box-sizing:border-box; }
.f-choice .opt:has(input:checked) { border-color:var(--accent); background:var(--surface-hover); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.f-choice .opt:has(input:checked) .ic { background:var(--accent); color:var(--on-accent); }
.f-choice .opt:has(input:checked)::after { border:5px solid var(--accent); background:var(--surface); }
.f-choice .opt:has(input:disabled) { opacity:.55; cursor:default; }
.f-choice .opt:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.f-segrow { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.f-seg { display:inline-flex; padding:3px; gap:2px; border:1px solid var(--border); border-radius:11px; background:var(--surface-2); max-width:100%; overflow-x:auto; }
.f-seg label { position:relative; padding:7px 13px; border-radius:8px; font-size:13px; font-weight:700; color:var(--text-2); cursor:pointer; white-space:nowrap; margin:0; }
.f-seg input { position:absolute; opacity:0; pointer-events:none; }
.f-seg label:has(input:checked) { background:var(--surface); color:var(--text-1); box-shadow:0 1px 3px rgba(var(--brand-light-shade-rgb), .16); }
.f-seg label:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:1px; }
.f-out { font-size:13px; color:var(--text-2); display:inline-flex; gap:7px; align-items:center; }
.f-out b { color:var(--text-1); }
.f-unit { display:inline-flex; align-items:stretch; max-width:100%; }
.f-unit .cn-form-control { width:90px; border-start-end-radius:0; border-end-end-radius:0; }
.f-unit .u { display:grid; place-items:center; padding:0 12px; border:1.5px solid var(--border); border-inline-start:0; border-start-end-radius:9px; border-end-end-radius:9px; background:var(--surface-2); font-size:12.5px; font-weight:700; color:var(--text-2); white-space:nowrap; }
.ib:hover { background:var(--surface-hover); color:var(--text-1); border-color:var(--border-strong, var(--border)); text-decoration:none; }
.ib:active { transform:scale(.94); }
.ib:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.ib.danger:hover { color:var(--rose); border-color:color-mix(in srgb, var(--rose) 45%, transparent); background:color-mix(in srgb, var(--rose) 8%, transparent); }
.ib.go:hover { color:var(--accent); }
.ib.quiet { border-color:transparent; background:none; cursor:default; }
.ib.quiet:hover { background:none; border-color:transparent; }
.ib.ok { color:var(--emerald); }
.ib.warn { color:var(--amber); }
.ib.off { color:var(--text-3); }
.ib.tgl { width:40px; font-size:20px; border-color:transparent; background:none; }
.ib.tgl:hover { background:var(--surface-hover); }
.ib.tgl i { transition:transform .18s ease; }
.ib.tgl.on { color:var(--emerald); }
.ib.tgl:not(.on) { color:var(--text-3); }
.ib.tgl.flip i { transform:scale(.7); }
@media (max-width:1040px) {
  .af-phone-state { min-height:100vh; }
}
.cn-panel-header .cn-btn { white-space:nowrap; flex-shrink:0; display:inline-flex; align-items:center; gap:6px; }
.cn-panel-header { gap:12px; }
.af-page { max-width:1240px; margin:0 auto; display:grid; gap:18px; min-width:0; }
.af-page > * { min-width:0; }
.af-page .cn-panel { margin:0 !important; }
.af-page .cn-header { margin:0; }
.af-foot { display:flex; gap:6px 16px; flex-wrap:wrap; align-items:center; justify-content:space-between; padding:10px 28px; border-top:1px solid var(--border); background:var(--sidebar-bg); font-size:11.5px; color:var(--text-3); }
.af-foot .mono { color:var(--text-2); }
.af-host { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border:1px solid var(--border); border-radius:10px; font:600 11.5px var(--font-mono); color:var(--text-2); background:var(--surface-2); white-space:nowrap; }
.af-host i { font-size:10px; color:var(--emerald); }
.af-tag { margin-inline-start:auto; font:700 9px/1 var(--font-mono); letter-spacing:.06em; color:var(--text-3); border:1px solid var(--border); border-radius:6px; padding:2px 5px; }
.af-code { font:600 11.5px var(--font-mono); color:var(--text-2); }
.af-mod-tag { font:700 9.5px/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); border:1px solid var(--border); background:var(--surface-2); padding:3px 6px; border-radius:6px; white-space:nowrap; }
@media (max-width:900px) {
  .af-host { display:none; }
  .af-foot { padding:10px 16px; }
}
.af-phone-state { min-height:calc(100vh - 64px); background:var(--bg); padding:20px 16px 30px; }
.af-phone-state h2 { text-align:center; font-size:15px; color:var(--text-1); margin:0 0 4px; }
.af-phone-state p { text-align:center; font-size:12.5px; color:var(--text-3); margin:0 0 6px; }
.af-phone-state .top { display:flex; justify-content:center; margin-bottom:6px; }
.af-crumb { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:12.5px; color:var(--text-3); }
.af-crumb a, .af-crumb button { color:var(--text-2); font:600 12.5px var(--font-sans); background:none; border:0; padding:0; cursor:pointer; text-decoration:none; }
.af-crumb a:hover, .af-crumb button:hover { color:var(--accent); }
.af-crumb i { font-size:9px; }
.af-title { display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:space-between; }
.af-title .who { display:flex; gap:14px; align-items:center; min-width:0; flex:1 1 320px; }
.af-title h1 { margin:0; font-size:22px; font-weight:900; letter-spacing:-.03em; color:var(--text-1); line-height:1.15; }
.af-title .sub { font-size:13px; color:var(--text-2); margin-top:3px; }
.af-title .acts { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.af-icon { width:44px; height:44px; border-radius:11px; display:block; flex-shrink:0; }
.af-icon.sm { width:32px; height:32px; border-radius:8px; }
.af-icon.xs { width:24px; height:24px; border-radius:6px; }
.af-out { width:44px; height:44px; border-radius:11px; display:grid; place-items:center; flex-shrink:0; font-size:17px; color:var(--text-2); background:var(--surface-2); border:1px solid var(--border); }
.af-logo { display:grid; place-items:center; flex-shrink:0; font-weight:800; color:#fff; font-family:var(--font-sans); }
.af-lead { font-size:13px; line-height:1.55; color:var(--text-2); margin:0; }
.af-lead b { color:var(--text-1); }
.af-note { display:flex; gap:9px; align-items:flex-start; font-size:12.5px; line-height:1.5; color:var(--text-2); }
.af-note > i { color:var(--accent); margin-top:2px; }
.af-cols { display:grid; grid-template-columns:minmax(0, 7fr) minmax(0, 4fr); gap:18px; align-items:start; }
.af-cols > div { display:grid; gap:18px; min-width:0; }
@media (max-width:1100px) {
  .af-cols { grid-template-columns:minmax(0, 1fr); }
}
.cn-btn:disabled { opacity:.5; cursor:not-allowed; filter:saturate(.5); }
.af-add .f-unit .cn-form-control { flex:none; width:72px; }
.af-link { color:var(--accent); font-weight:700; text-decoration:none; background:none; border:0; padding:0; font:inherit; font-weight:700; cursor:pointer; }
.af-link:hover { text-decoration:underline; }
.af-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap:12px; }
@media (max-width:560px) {
  .af-tiles { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
  .af-tile .v { font-size:22px; }
  .cn-panel-header { flex-wrap:wrap; }
  .cn-panel-meta { flex-basis:100%; }
  .cn-panel-title { min-width:0; flex-wrap:wrap; }
}
.af-tile { padding:14px 16px; border-radius:14px; background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-card); min-width:0; }
.af-tile .l { font-size:11.5px; font-weight:700; color:var(--text-2); }
.af-tile .v { font:700 26px/1.15 var(--font-mono); letter-spacing:-.02em; color:var(--text-1); margin-top:6px; }
.af-tile .s { font-size:12px; color:var(--text-3); margin-top:3px; }
.af-attn { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap:12px; }
.af-a { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:4px 12px; align-items:center; padding:12px 14px; border-radius:14px; border:1px solid var(--border); background:var(--surface); box-shadow:var(--shadow-card); }
.af-a .m { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; font-size:13px; background:var(--surface-2); color:var(--text-2); }
.af-a.amber .m { background:var(--amber-dim); color:var(--amber); }
.af-a.rose { border-color:color-mix(in srgb, var(--rose) 45%, var(--border)); }
.af-a.rose .m { background:var(--rose-dim); color:var(--rose); }
.af-a .t { font-size:13px; line-height:1.4; color:var(--text-2); min-width:0; }
.af-a .t b { display:block; color:var(--text-1); font-weight:800; }
@media (max-width:560px) {
  .af-a { grid-template-columns:auto minmax(0, 1fr); }
  .af-a > :last-child { grid-column:1 / -1; justify-self:end; }
}
.af-rows { display:grid; }
.af-group { padding:12px 18px 7px; font:700 10px/1 var(--font-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); background:var(--surface-2); border-bottom:1px solid var(--border); display:flex; gap:12px; justify-content:space-between; }
.af-c { display:grid; grid-template-columns:44px minmax(0, 1.5fr) 118px minmax(0, 1fr) 124px 14px; gap:14px; align-items:center; padding:13px 18px; border-bottom:1px solid var(--border); cursor:pointer; background:none; border-inline:0; border-top:0; width:100%; text-align:start; font:inherit; color:inherit; }
.af-c:last-child { border-bottom:0; }
.af-c:hover { background:var(--surface-hover); }
.af-c:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.af-c .nm { font-size:14px; font-weight:800; color:var(--text-1); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.af-c .sb { font-size:12.5px; color:var(--text-3); margin-top:2px; }
.af-c .lb { font-size:12.5px; color:var(--text-2); line-height:1.4; }
.af-c .lb b { color:var(--text-1); font-weight:700; }
.af-c .go { color:var(--text-3); font-size:11px; }
.af-c.off .af-icon, .af-c.off .af-out { opacity:.55; filter:saturate(.3); }
.af-c.off .lb, .af-c.off .sb { color:var(--text-3); }
.af-c.off { background:color-mix(in srgb, var(--rose) 4%, transparent); }
.af-mods { display:inline-grid; grid-template-columns:repeat(9, 9px); gap:3px; }
.af-mods i { width:9px; height:14px; border-radius:2.5px; background:var(--border); display:block; }
.af-mods i.on { background:var(--accent); }
.af-c.off .af-mods i.on { background:var(--text-3); }
.af-mods + small { display:block; font-size:11.5px; color:var(--text-3); margin-top:4px; }
.af-spark { display:block; width:104px; height:22px; overflow:visible; }
.af-spark polyline { fill:none; stroke:var(--accent); stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.af-spark circle { fill:var(--accent); stroke:var(--surface); stroke-width:1.5; }
@media (max-width:820px) {
  .af-c { grid-template-columns:44px minmax(0, 1fr) 14px; row-gap:8px; }
  .af-c > .col-mod, .af-c > .col-reach, .af-c > .col-last { grid-column:2 / -1; }
  .af-c > .go { grid-row:1; grid-column:3; }
  .af-c .af-spark { display:none; }
}
.af-blank { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:30px; align-items:center; padding:34px 36px; }
.af-blank h2 { margin:0 0 8px; font-size:22px; font-weight:900; letter-spacing:-.03em; color:var(--text-1); }
.af-blank p { margin:0 0 16px; font-size:13.5px; line-height:1.6; color:var(--text-2); }
.af-blank .do { display:flex; gap:8px; flex-wrap:wrap; }
@media (max-width:900px) {
  .af-blank { grid-template-columns:minmax(0, 1fr); padding:24px 20px; gap:22px; }
}
.af-flow { display:grid; grid-template-columns:auto minmax(28px, 1fr) auto minmax(28px, 1fr) auto; align-items:center; padding:22px 20px; border-radius:16px; background:var(--surface-2); border:1px solid var(--border); }
.af-flow .nd { display:grid; gap:7px; justify-items:center; text-align:center; font-size:11.5px; color:var(--text-2); font-weight:700; }
.af-flow .nd .bx { width:50px; height:50px; border-radius:14px; display:grid; place-items:center; background:var(--surface); border:1px solid var(--border); color:var(--text-2); font-size:18px; }
.af-flow .nd .bx img { width:30px; height:auto; }
.af-flow .ln { height:2px; background:var(--border); position:relative; margin:0 8px 22px; overflow:hidden; border-radius:2px; }
.af-flow .ln::after { content:''; position:absolute; top:0; bottom:0; width:40%; background:var(--accent); border-radius:2px; animation:afRun 2.4s ease-in-out infinite; }
.af-flow .ln.two::after { animation-delay:.9s; }
@keyframes afRun { 0% { left:-40%; } 60%, 100% { left:100%; } }
@media (prefers-reduced-motion: reduce) {
  .af-flow .ln::after { animation:none; left:30%; }
}
.af-ready { display:flex; flex-wrap:wrap; gap:8px; }
.af-ready button { display:inline-flex; align-items:center; gap:8px; padding:7px 12px 7px 7px; border:1px solid var(--border); border-radius:11px; background:var(--surface); font:700 12.5px var(--font-sans); color:var(--text-1); cursor:pointer; }
.af-ready button:hover { border-color:var(--border-accent); color:var(--accent); }
.af-gates { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)) minmax(0, 1.05fr); gap:0; }
.af-g { position:relative; padding:4px 16px 4px 0; display:grid; gap:4px; align-content:start; }
.af-g .d { display:flex; align-items:center; gap:9px; font-size:12.5px; font-weight:800; color:var(--text-1); }
.af-g .d i { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size:10.5px; background:var(--surface-2); border:1.5px solid var(--border); color:var(--text-2); flex-shrink:0; }
.af-g .d::after { content:''; flex:1; height:2px; background:var(--border); min-width:8px; }
.af-g:last-child .d::after { display:none; }
.af-g .n { font:700 20px/1.2 var(--font-mono); letter-spacing:-.02em; color:var(--text-1); margin-inline-start:35px; }
.af-g .w { font-size:11.5px; line-height:1.4; color:var(--text-3); margin-inline-start:35px; }
.af-g.hit .d i { background:var(--amber-dim); border-color:color-mix(in srgb, var(--amber) 40%, transparent); color:var(--amber); }
.af-g.pass .d i { background:var(--emerald-dim); border-color:color-mix(in srgb, var(--emerald) 40%, transparent); color:var(--emerald); }
@media (max-width:820px) {
  .af-gates { grid-template-columns:minmax(0, 1fr); gap:12px; }
  .af-g { padding:0; }
  .af-g .d::after { display:none; }
}
.af-ask { margin-top:16px; padding:12px 14px; border-radius:12px; display:flex; gap:10px 14px; align-items:center; flex-wrap:wrap; background:var(--amber-dim); border:1px solid color-mix(in srgb, var(--amber) 28%, transparent); font-size:13px; line-height:1.45; color:var(--text-1); }
.af-ask > i { color:var(--amber); }
.af-ask > span:not(.bt) { flex:1 1 280px; min-width:0; }
.af-ask .bt { display:flex; gap:8px; flex-wrap:wrap; margin-inline-start:auto; }
.af-ask.rose { background:var(--rose-dim); border-color:color-mix(in srgb, var(--rose) 30%, transparent); }
.af-ask.rose > i { color:var(--rose); }
.af-ask.ok { background:var(--emerald-dim); border-color:color-mix(in srgb, var(--emerald) 30%, transparent); }
.af-ask.ok > i { color:var(--emerald); }
.af-modgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 204px), 1fr)); gap:8px; }
.af-m { display:grid; grid-template-columns:30px minmax(0, 1fr) auto; gap:0 10px; align-items:center; padding:9px 10px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.af-m .ic { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; font-size:12px; background:var(--surface-2); color:var(--text-3); grid-row:span 2; }
.af-m b { font-size:12.5px; color:var(--text-1); font-family:var(--font-mono); font-weight:700; }
.af-m small { font-size:11.5px; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; grid-column:2; }
.af-m .hd-toggle { grid-row:1 / span 2; grid-column:3; }
.af-m.on { border-color:color-mix(in srgb, var(--accent) 35%, var(--border)); }
.af-m.on .ic { background:var(--accent); color:var(--on-accent); }
.af-m:not(.on) b { color:var(--text-2); }
.af-li { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:10px 12px; align-items:center; padding:11px 0; border-bottom:1px solid var(--border); }
.af-li:first-child { padding-top:0; }
.af-li:last-child { border-bottom:0; padding-bottom:0; }
.af-li .m { font-size:13px; font-weight:700; color:var(--text-1); overflow-wrap:anywhere; }
.af-li .s { font-size:12px; color:var(--text-3); margin-top:2px; line-height:1.4; }
.af-li .ri { font-size:12px; color:var(--text-3); white-space:nowrap; text-align:end; }
.af-add { display:flex; gap:8px; align-items:center; margin-top:14px; flex-wrap:wrap; }
.af-add .cn-form-control { flex:1 1 180px; min-width:0; width:auto; }
.af-key { display:grid; grid-template-columns:38px minmax(0, 1fr) auto; gap:4px 12px; align-items:center; padding:13px 14px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.af-key .ic { grid-row:span 2; width:38px; height:38px; border-radius:11px; display:grid; place-items:center; font-size:14px; color:var(--emerald); background:var(--emerald-dim); }
.af-key .val { font:700 13.5px var(--font-mono); color:var(--text-1); display:flex; align-items:center; gap:8px; flex-wrap:wrap; overflow-wrap:anywhere; }
.af-key .val .dots { letter-spacing:.14em; color:var(--text-3); }
.af-key .mt { font-size:12px; color:var(--text-3); line-height:1.45; grid-column:2; }
.af-key .ac { grid-column:3; grid-row:1 / span 2; display:flex; gap:6px; }
.af-key.old .ic { color:var(--amber); background:var(--amber-dim); }
.af-key.dead { background:var(--surface-2); }
.af-key.dead .ic { color:var(--text-3); background:var(--surface); }
.af-key.dead .val { color:var(--text-3); text-decoration:line-through; text-decoration-thickness:1px; }
@media (max-width:560px) {
  .af-key { grid-template-columns:38px minmax(0, 1fr); }
  .af-key .ac { grid-column:2; grid-row:auto; }
}
.af-keys { display:grid; gap:10px; }
.af-pulse { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; font-size:18px; background:var(--accent); color:var(--on-accent); flex-shrink:0; position:relative; }
.af-pulse::after { content:''; position:absolute; inset:0; border-radius:inherit; border:2px solid var(--accent); animation:afPulse 2s ease-out infinite; }
@keyframes afPulse { 0% { transform:scale(1); opacity:.7; } 100% { transform:scale(1.45); opacity:0; } }
@media (prefers-reduced-motion: reduce) {
  .af-pulse::after { animation:none; opacity:0; }
}
.af-secret { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:10px; align-items:center; padding:13px 14px; border-radius:13px; background:var(--surface-2); border:1.5px dashed var(--border-accent); }
.af-secret code { font:700 14px/1.5 var(--font-mono); color:var(--text-1); overflow-wrap:anywhere; }
@media (max-width:560px) {
  .af-secret { grid-template-columns:minmax(0, 1fr); }
}
.af-facts { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
@media (max-width:560px) {
  .af-facts { grid-template-columns:minmax(0, 1fr); }
}
.af-facts > div { padding:10px 12px; border-radius:11px; background:var(--surface-2); font-size:12.5px; color:var(--text-2); line-height:1.4; }
.af-facts b { display:block; font-size:13.5px; color:var(--text-1); }
.af-ack { display:flex; gap:10px; align-items:center; font-size:13px; font-weight:600; color:var(--text-1); cursor:pointer; }
.af-ack input { width:17px; height:17px; accent-color:var(--accent); }
.af-time { display:grid; gap:10px; }
.af-lane { display:grid; grid-template-columns:96px minmax(0, 1fr); gap:10px; align-items:center; font:700 11.5px var(--font-mono); color:var(--text-2); }
.af-lane .tr { position:relative; height:24px; border-radius:7px; background:var(--surface-2); }
.af-lane .br { position:absolute; top:0; bottom:0; border-radius:7px; display:flex; align-items:center; padding:0 9px; font:700 10.5px var(--font-sans); white-space:nowrap; overflow:hidden; }
.af-lane .br.old { background:color-mix(in srgb, var(--amber) 22%, transparent); color:var(--text-1); }
.af-lane .br.new { background:color-mix(in srgb, var(--emerald) 24%, transparent); color:var(--text-1); }
.af-axis { display:grid; grid-template-columns:96px minmax(0, 1fr); gap:10px; font-size:11px; color:var(--text-3); }
.af-axis .ax { position:relative; height:16px; }
.af-axis .ax span { position:absolute; transform:translateX(-50%); white-space:nowrap; font-family:var(--font-mono); }
.af-axis .ax span:first-child { transform:none; }
.af-axis .ax span:last-child { transform:translateX(-100%); }
.af-now { position:absolute; top:-5px; bottom:-5px; width:2px; background:var(--text-1); border-radius:2px; }
.af-share { display:grid; grid-template-columns:96px minmax(0, 1fr) auto; gap:10px; align-items:center; font-size:12.5px; color:var(--text-2); }
.af-share .bar { height:8px; border-radius:0 4px 4px 0; background:var(--accent); min-width:2px; }
.af-share .mono { color:var(--text-1); font-weight:700; }
@media (max-width:560px) {
  .af-lane, .af-axis { grid-template-columns:minmax(0, 1fr); gap:4px; }
  .af-axis > span:first-child { display:none; }
  .af-share { grid-template-columns:72px minmax(0, 1fr) auto; }
}
.af-qs { display:grid; gap:22px; }
.af-q { display:grid; gap:9px; min-width:0; }
.af-q > h3 { margin:0; font-size:14.5px; font-weight:800; color:var(--text-1); }
.af-q > .why { font-size:12.5px; color:var(--text-3); margin-top:-5px; }
.af-q textarea.cn-form-control { min-height:76px; resize:vertical; font-family:var(--font-mono); font-size:12.5px; }
.af-pick { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 178px), 1fr)); gap:8px; }
.af-pick label { position:relative; display:flex; gap:9px; align-items:center; padding:8px 11px 8px 8px; border:1.5px solid var(--border); border-radius:12px; font-size:13px; font-weight:700; color:var(--text-1); cursor:pointer; min-width:0; }
.af-pick label:hover { border-color:var(--border-accent); }
.af-pick input { position:absolute; opacity:0; pointer-events:none; }
.af-pick label small { display:block; font-size:11.5px; font-weight:500; color:var(--text-3); line-height:1.3; }
.af-pick label:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); background:var(--surface-hover); }
.af-pick label:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.af-pick label:has(input:disabled) { opacity:.55; cursor:default; border-style:dashed; }
.af-pick label i.mi { width:24px; height:24px; border-radius:7px; display:grid; place-items:center; font-size:10.5px; background:var(--surface-2); color:var(--text-2); flex-shrink:0; }
.af-pick label:has(input:checked) i.mi { background:var(--accent); color:var(--on-accent); }
.af-side { position:sticky; top:0; }
.af-say { padding:14px; border-radius:12px; background:var(--surface-2); font-size:13.5px; line-height:1.55; color:var(--text-1); }
.af-say b { font-weight:800; }
.af-steps { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.af-steps li { display:grid; grid-template-columns:24px minmax(0, 1fr); gap:10px; padding:0 0 12px; font-size:12.5px; line-height:1.45; color:var(--text-2); position:relative; }
.af-steps li:last-child { padding-bottom:0; }
.af-steps li::before { content:''; position:absolute; inset-inline-start:11px; top:24px; bottom:0; width:2px; background:var(--border); }
.af-steps li:last-child::before { display:none; }
.af-steps .n { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font:700 10.5px var(--font-mono); background:var(--surface-2); border:1.5px solid var(--border); color:var(--text-2); }
.af-steps li.done .n { background:var(--emerald-dim); color:var(--emerald); border-color:color-mix(in srgb, var(--emerald) 35%, transparent); }
.af-steps b { color:var(--text-1); display:block; }
.af-o { display:grid; grid-template-columns:44px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.25fr) 14px; gap:14px; align-items:center; padding:13px 18px; border-bottom:1px solid var(--border); background:none; border-inline:0; border-top:0; width:100%; text-align:start; font:inherit; color:inherit; cursor:pointer; }
.af-o:last-child { border-bottom:0; }
.af-o:hover { background:var(--surface-hover); }
.af-o .nm { font-size:14px; font-weight:800; color:var(--text-1); }
.af-o .sb { font-size:12.5px; color:var(--text-3); margin-top:2px; }
.af-o .lb { font-size:12.5px; color:var(--text-2); line-height:1.4; }
.af-held { display:flex; gap:7px; flex-wrap:wrap; align-items:center; }
.af-held .h { display:inline-flex; align-items:center; gap:6px; padding:3px 9px 3px 3px; border-radius:9px; background:var(--surface-2); font-size:12px; font-weight:700; color:var(--text-1); white-space:nowrap; }
.af-held .none { font-size:12.5px; color:var(--text-3); }
@media (max-width:820px) {
  .af-o { grid-template-columns:44px minmax(0, 1fr) 14px; row-gap:8px; }
  .af-o > .col-a, .af-o > .col-b { grid-column:2 / -1; }
  .af-o > .go { grid-row:1; grid-column:3; }
}
.af-o .go { color:var(--text-3); font-size:11px; }
.af-bar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; padding:12px 18px; border-bottom:1px solid var(--border); }
.af-bar .search { position:relative; flex:1 1 220px; min-width:0; }
.af-bar .search i { position:absolute; inset-inline-start:12px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--text-3); }
.af-bar .search input { padding-inline-start:32px; width:100%; }
.af-seam { display:grid; grid-template-columns:minmax(0, 1fr) 64px minmax(0, 1fr); align-items:stretch; }
.af-seam .seamline { position:relative; display:grid; place-items:center; }
.af-seam .seamline::before { content:''; position:absolute; top:0; bottom:0; left:50%; border-inline-start:2px dashed var(--border-strong, var(--border)); }
.af-seam .seamline span { position:relative; writing-mode:vertical-rl; display:inline-flex; gap:8px; align-items:center; padding:12px 6px; border-radius:100px; background:var(--bg); border:1px solid var(--border); font:700 10.5px var(--font-mono); color:var(--text-2); white-space:nowrap; }
.af-seam .seamline span i { color:var(--accent); font-size:10px; }
.af-seam > .cn-panel { display:flex; flex-direction:column; }
@media (max-width:1000px) {
  .af-seam { grid-template-columns:minmax(0, 1fr); }
  .af-seam .seamline { padding:10px 0; }
  .af-seam .seamline span { writing-mode:horizontal-tb; padding:6px 12px; }
}
.af-letter { display:grid; gap:16px; }
.af-letter .top { display:flex; gap:14px; align-items:center; }
.af-letter h2 { margin:0; font-size:19px; font-weight:900; letter-spacing:-.02em; color:var(--text-1); line-height:1.2; }
.af-letter .lg { font-size:12.5px; color:var(--text-2); margin-top:3px; }
.af-dl { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap:14px 18px; margin:0; padding:14px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.af-dl dt { font-size:11.5px; font-weight:700; color:var(--text-3); margin-bottom:3px; }
.af-dl dd { margin:0; font-size:13px; color:var(--text-1); line-height:1.45; }
.af-read { padding:12px 14px; border-radius:12px; background:var(--surface-2); display:grid; gap:4px; }
.af-read .k { font-size:11.5px; font-weight:700; color:var(--text-3); }
.af-read .x { font-size:14px; font-weight:700; color:var(--text-1); }
.af-read .y { font-size:11.5px; color:var(--text-3); font-family:var(--font-mono); }
.af-noprod { display:flex; gap:9px; align-items:center; font-size:12.5px; font-weight:700; color:var(--text-2); }
.af-noprod i { color:var(--text-3); }
.af-ents { display:grid; gap:12px; }
.af-ent { border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface); }
.af-ent .hd { display:grid; grid-template-columns:40px minmax(0, 1fr) auto; gap:2px 12px; align-items:center; padding:13px 14px; }
.af-ent .hd .af-icon { grid-row:span 2; width:40px; height:40px; }
.af-ent .hd b { font-size:14.5px; color:var(--text-1); font-weight:800; }
.af-ent .hd .st { grid-column:3; grid-row:1 / span 2; }
.af-ent .hd .dt { font-size:12px; color:var(--text-3); grid-column:2; }
.af-ent .tm { padding:0 14px 12px 66px; font-size:12.5px; color:var(--text-2); line-height:1.45; }
.af-ent .ins { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:10px 14px; background:var(--surface-2); border-top:1px solid var(--border); font-size:12.5px; color:var(--text-2); }
.af-ent .ins i { color:var(--text-3); }
.af-ent .ins > span:not(.e) { flex:1 1 190px; min-width:0; overflow-wrap:anywhere; }
.af-ent .ins .mono { color:var(--text-1); font-weight:600; font-size:12px; }
.af-ent .ins .e { margin-inline-start:auto; }
.af-ent.wait .ins { background:var(--amber-dim); }
.af-ent.off .af-icon { filter:saturate(.25); opacity:.6; }
@media (max-width:560px) {
  .af-ent .tm { padding-inline-start:14px; }
}
.af-upload { display:flex; gap:12px; align-items:center; padding:12px 14px; border:1.5px dashed var(--border); border-radius:12px; font-size:12.5px; color:var(--text-2); }
.af-upload i { color:var(--text-3); font-size:15px; }
.af-effect { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap:10px; }
.af-effect > div { display:flex; gap:10px; padding:11px 13px; border-radius:12px; background:var(--surface); border:1px solid var(--border); font-size:12.5px; line-height:1.45; color:var(--text-2); }
.af-effect b { display:block; color:var(--text-1); }
.af-effect i { margin-top:2px; color:var(--text-3); }
.af-effect .x i { color:var(--rose); }
.af-effect .k i { color:var(--emerald); }
.af-prods { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 256px), 1fr)); gap:14px; }
.af-swat { padding:0 16px; display:flex; gap:14px; flex-wrap:wrap; font:600 11px var(--font-mono); color:var(--text-2); }
.af-swat span { display:inline-flex; align-items:center; gap:6px; }
.af-swat i { width:16px; height:16px; border-radius:5px; display:block; box-shadow:inset 0 0 0 1px rgba(127,127,127,.2); }
.af-chk { padding:0 16px; display:flex; flex-wrap:wrap; gap:6px 12px; font-size:12px; color:var(--text-2); }
.af-chk span { display:inline-flex; gap:5px; align-items:center; white-space:nowrap; }
.af-chk .y i { color:var(--emerald); }
.af-chk .n i { color:var(--amber); }
.af-chk .q i { color:var(--text-3); }
.af-diff { display:grid; gap:0; }
.af-diff .r { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid var(--border); font-size:13px; color:var(--text-2); line-height:1.45; }
.af-diff .r:last-child { border-bottom:0; padding-bottom:0; }
.af-diff .r.h { font:700 10px/1 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); padding-top:0; }
.af-diff b { color:var(--text-1); }
.af-diff s { color:var(--text-3); }
@media (max-width:700px) {
  .af-diff .r { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); }
  .af-diff .r > :last-child { grid-column:1 / -1; }
  .af-diff .r.h > :last-child { display:none; }
}
.af-stand { display:inline-flex; gap:5px; align-items:center; font:700 9.5px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; padding:3px 6px; border-radius:6px; color:var(--amber); border:1px solid currentColor; }
.af-pairs { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 232px), 1fr)); gap:8px; }
.af-pr { display:grid; grid-template-columns:54px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:7px 10px 7px 7px; border:1px solid var(--border); border-radius:11px; min-width:0; }
.af-pr .sm { width:54px; height:32px; border-radius:7px; display:grid; place-items:center; font-size:13.5px; font-weight:800; box-shadow:inset 0 0 0 1px rgba(127,127,127,.2); }
.af-pr .w { font-size:12px; color:var(--text-2); line-height:1.3; min-width:0; }
.af-pr .w small { display:block; font:600 10px var(--font-mono); color:var(--text-3); }
.af-pr .rt { font:700 12px var(--font-mono); color:var(--emerald); white-space:nowrap; }
.af-pr.no { border-color:color-mix(in srgb, var(--rose) 55%, var(--border)); background:var(--rose-dim); }
.af-pr.no .rt { color:var(--rose); }
.af-offer { display:flex; gap:8px; flex-wrap:wrap; }
.af-offer span { padding:6px 12px; border-radius:9px; border:1px solid var(--border); font-size:12.5px; font-weight:700; color:var(--text-1); background:var(--surface-2); }
.af-offer span small { font-weight:500; color:var(--text-3); margin-inline-start:6px; font-size:11.5px; }
.af-meter { height:8px; border-radius:6px; background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--border); overflow:hidden; }
.af-meter > i { display:block; height:100%; border-radius:6px; background:var(--accent); }
.cn-form-control.bad { border-color:var(--rose); }
.af-tabs { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.af-chart { position:relative; display:grid; grid-template-columns:44px minmax(0, 1fr); gap:0 8px; }
.af-yl { position:relative; height:170px; font:600 10.5px var(--font-mono); color:var(--text-3); }
.af-yl span { position:absolute; inset-inline-end:0; transform:translateY(50%); }
.af-plot { position:relative; height:170px; }
.af-plot .gl { position:absolute; left:0; right:0; height:1px; background:var(--border); }
.af-bars { position:absolute; inset:0; display:flex; align-items:flex-end; gap:2px; }
.af-bars .col { flex:1 1 0; height:100%; display:flex; align-items:flex-end; min-width:0; cursor:default; }
.af-bars .col i { display:block; width:100%; max-width:24px; margin:0 auto; background:var(--accent); border-radius:4px 4px 0 0; }
.af-bars .col.wk i { opacity:.45; }
.af-bars .col:hover i { filter:brightness(1.25); }
.af-bars .col.td i { background:repeating-linear-gradient(135deg, var(--accent) 0 3px, transparent 3px 5px); box-shadow:inset 0 0 0 1px var(--accent); }
.af-xl { grid-column:2; display:flex; justify-content:space-between; margin-top:7px; font:600 10.5px var(--font-mono); color:var(--text-3); }
.af-peak { position:absolute; font-size:11.5px; font-weight:700; color:var(--text-1); transform:translate(-100%, -100%); white-space:nowrap; padding-inline-end:4px; }
.af-daily summary { cursor:pointer; font-size:12.5px; font-weight:700; color:var(--accent); margin-top:12px; }
.af-daily table { margin-top:8px; font-size:12px; width:auto; border-collapse:collapse; color:var(--text-2); }
.af-daily-g { display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:3px 16px; margin-top:8px; font:600 11.5px var(--font-mono); color:var(--text-2); }
.af-daily-g span { display:flex; justify-content:space-between; gap:6px; }
.af-daily-g b { color:var(--text-1); }
.af-brk { display:grid; }
.af-b { display:grid; grid-template-columns:44px minmax(0, 1.1fr) minmax(0, 1.5fr) 76px; gap:14px; align-items:center; padding:13px 18px; border-bottom:1px solid var(--border); }
.af-b:last-child { border-bottom:0; }
.af-b .nm { font-size:13.5px; font-weight:800; color:var(--text-1); }
.af-b .sb { font-size:12px; color:var(--text-3); margin-top:2px; line-height:1.4; }
.af-b .vl { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:10px; align-items:center; }
.af-b .tk { height:12px; }
.af-b .tk i { display:block; height:100%; min-width:3px; background:var(--accent); border-radius:0 4px 4px 0; }
.af-b .vv { font:700 13px var(--font-mono); color:var(--text-1); }
.af-b .dl { font-size:12px; color:var(--text-3); text-align:end; white-space:nowrap; }
.af-b.sub { padding:7px 18px 7px 76px; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1.5fr) 76px; background:var(--surface-2); }
.af-b.sub .nm { font-size:12.5px; font-weight:600; color:var(--text-2); }
.af-b.sub .tk { height:8px; }
.af-b.sub .tk i { opacity:.65; }
.af-b.sub .vv { font-size:12px; font-weight:600; color:var(--text-2); }
@media (max-width:760px) {
  .af-b { grid-template-columns:44px minmax(0, 1fr) auto; row-gap:6px; padding:12px 16px; }
  .af-b .vl { grid-column:1 / -1; }
  .af-b .dl { grid-column:3; grid-row:1; }
  .af-b.sub { padding:7px 16px; grid-template-columns:minmax(0, 1fr); }
  .af-b.sub .vl { grid-column:1 / -1; }
  .af-b.sub .dl { display:none; }
}
.af-mtiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap:12px; }
.af-mt { padding:14px 16px; border:1px solid var(--border); border-radius:14px; background:var(--surface); box-shadow:var(--shadow-card); display:grid; gap:9px; min-width:0; }
.af-mt .h { display:flex; gap:9px; align-items:center; font-size:13px; font-weight:800; color:var(--text-1); min-width:0; }
.af-mt .h i { width:26px; height:26px; border-radius:8px; background:var(--surface-2); color:var(--text-2); display:grid; place-items:center; font-size:11px; flex-shrink:0; }
.af-mt .h small { margin-inline-start:auto; font:600 10.5px var(--font-mono); color:var(--text-3); }
.af-mt .q { font:700 22px/1.1 var(--font-mono); letter-spacing:-.02em; color:var(--text-1); }
.af-mt .q small { font:500 12px var(--font-sans); letter-spacing:0; color:var(--text-2); margin-inline-start:4px; }
.af-mt .wh { font-size:12px; line-height:1.4; color:var(--text-3); }
.af-mt .af-spark { width:100%; }
.af-mt.none { box-shadow:none; background:none; border-style:dashed; }
.af-mt.none .q { color:var(--text-3); font-size:14px; font-family:var(--font-sans); letter-spacing:0; font-weight:700; }
.af-q-hero { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:24px; align-items:stretch; }
@media (max-width:900px) {
  .af-q-hero { grid-template-columns:minmax(0, 1fr); }
}
.af-q-hero h2 { margin:0; font-size:20px; font-weight:900; letter-spacing:-.02em; line-height:1.25; color:var(--text-1); }
.af-q-hero .big { font:700 34px/1 var(--font-mono); letter-spacing:-.03em; color:var(--text-1); }
.af-q-hero .big small { font:600 13px var(--font-sans); letter-spacing:0; color:var(--text-2); }
.af-qmeter { position:relative; height:16px; border-radius:8px; background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--border); margin:18px 0 8px; }
.af-qmeter i { position:absolute; inset-block:0; inset-inline-start:0; border-radius:8px; background:var(--amber); }
.af-qmeter b { position:absolute; inset-block:-5px; width:2px; background:var(--text-1); }
.af-qscale { display:flex; justify-content:space-between; font:600 11px var(--font-mono); color:var(--text-3); }
.af-burn { position:relative; height:150px; border-inline-start:1px solid var(--border); border-bottom:1px solid var(--border); }
.af-burn svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.af-burn .lim { position:absolute; left:0; right:0; border-top:2px solid var(--rose); }
.af-burn .lim span { position:absolute; inset-inline-end:0; top:-20px; font:700 10.5px var(--font-mono); color:var(--rose); white-space:nowrap; }
.af-burn-dot { position:absolute; width:10px; height:10px; border-radius:50%; background:var(--amber); box-shadow:0 0 0 2px var(--surface); transform:translate(-50%, -50%); }
.af-burn-l { position:absolute; transform:translate(12px, 8px); font-size:12px; font-weight:700; color:var(--text-1); white-space:nowrap; }
.af-burn-x { display:flex; justify-content:space-between; font:600 10.5px var(--font-mono); color:var(--text-3); margin-top:6px; }
.af-qrow { display:grid; grid-template-columns:32px minmax(0, 1fr) minmax(0, 1fr) auto; gap:12px; align-items:center; padding:11px 18px; border-bottom:1px solid var(--border); font-size:13px; color:var(--text-2); }
.af-qrow:last-child { border-bottom:0; }
.af-qrow b { color:var(--text-1); display:block; font-weight:700; }
.af-qrow small { font-size:12px; color:var(--text-3); }
.af-qrow .n { font:700 12px var(--font-mono); color:var(--text-1); white-space:nowrap; min-width:128px; text-align:end; }
@media (max-width:640px) {
  .af-qrow { grid-template-columns:32px minmax(0, 1fr) auto; padding:11px 16px; }
  .af-qrow .mt { grid-column:1 / -1; grid-row:2; }
  .af-qrow .n { min-width:0; }
}
.af-ghost .af-bars .col i { background:var(--border); }
@keyframes hsA { 0%, 100% { transform:translateX(0); } 50% { transform:translateX(-5px) rotate(-2deg); } }
@keyframes hsB { 0%, 100% { transform:translateX(0); } 50% { transform:translateX(5px) rotate(2deg); } }
@keyframes hsS { 0%, 100% { opacity:.35; } 50% { opacity:1; } }
.af-hub-wrap { background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-card); padding:18px 18px 12px; }
.af-hub { position:relative; isolation:isolate; width:100%; max-width:1040px; margin:0 auto; aspect-ratio:1000/680; --srv:#14213d; --srv-u:#1d2d4f; --srv-l:#31436b; --srv-t:#aebbd4; }
[data-theme="dark"] .af-hub { --srv:#1b2a4a; --srv-u:#26385e; --srv-l:#40547f; --srv-t:#c3cee2; }
.af-hub > svg.lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.lines line { stroke-width:2; vector-effect:non-scaling-stroke; }
.lines .track { fill:none; stroke:var(--border); stroke-width:1; stroke-dasharray:1 7; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.af-hub::before { content:''; position:absolute; left:50%; top:49%; width:46%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle, color-mix(in srgb, var(--emerald) 14%, transparent), transparent 66%); pointer-events:none; }
.lines .live { stroke:var(--emerald); stroke-dasharray:3 9; stroke-linecap:round; animation:af-flow 1.1s linear infinite; }
.lines .look { stroke:var(--amber); stroke-dasharray:3 9; stroke-linecap:round; animation:af-flow 1.1s linear infinite; }
.lines .down { stroke:var(--rose); stroke-dasharray:7 7; }
.lines .unlinked { stroke:var(--text-3); stroke-dasharray:2 7; stroke-linecap:round; opacity:.7; }
@keyframes af-flow { to { stroke-dashoffset:-24; } }
.af-node { position:absolute; transform:translate(-50%,-50%) scale(var(--s,1)); width:17%; min-width:128px; background:none; border:0; padding:0; cursor:pointer; color:inherit; font:inherit; display:flex; flex-direction:column; align-items:center; gap:7px; }
.af-node:hover .af-srv { filter:drop-shadow(0 10px 18px rgba(15,25,50,.38)); }
.af-node:focus-visible { outline:2px solid var(--accent); outline-offset:5px; border-radius:12px; }
.af-srv { width:100%; display:block; filter:drop-shadow(0 8px 14px rgba(15,25,50,.22)); }
.af-srv .ch { fill:var(--srv); stroke:var(--srv-l); }
.af-srv .un { fill:var(--srv-u); stroke:var(--srv-l); stroke-width:.6; }
.af-srv .bay { fill:var(--srv); stroke:var(--srv-l); stroke-width:.6; }
.af-srv .vent { stroke:var(--srv-l); stroke-width:1.4; stroke-linecap:round; }
.af-srv text { font:700 8px var(--font-mono); letter-spacing:.09em; fill:var(--srv-t); }
.af-srv .host { font-size:6.6px; letter-spacing:.03em; font-weight:500; }
.led { fill:#46577c; }
.led.g { fill:#34d399; filter:drop-shadow(0 0 3px #34d399); }
.led.a { fill:#fbbf24; filter:drop-shadow(0 0 3px #fbbf24); }
.led.r { fill:#fb7185; filter:drop-shadow(0 0 3px #fb7185); }
.led.g.pulse, .led.a.pulse, .led.r.pulse { animation:af-led 1.8s ease-in-out infinite; }
.act { fill:#34d399; animation:af-act .9s steps(2) infinite; }
.act.d2 { animation-delay:.3s; }
.act.d3 { animation-delay:.55s; }
@keyframes af-led { 50% { opacity:.45; } }
@keyframes af-act { 50% { opacity:.15; } }
.af-node.st-unlinked .af-srv { opacity:.42; filter:grayscale(1); }
.af-node.st-unlinked .af-nm img { opacity:.55; filter:grayscale(.7); }
.af-node.st-unlinked .af-nm .d { color:var(--text-3); }
.af-node.st-down .af-srv .ch { stroke:var(--rose); stroke-width:1.5; }
.af-node.st-look .af-srv .ch { stroke:var(--amber); stroke-width:1.5; }
.af-nm { background:var(--surface); padding:2px 6px; display:flex; align-items:center; gap:7px; border-radius:8px; }
.af-nm img { width:26px; height:26px; border-radius:7px; display:block; flex:none; }
.af-nm .d { font-size:12.5px; font-weight:600; color:var(--text-1); line-height:1.2; text-align:left; }
.af-core { width:19%; min-width:150px; gap:6px; z-index:50; }
.af-core::before { content:''; position:absolute; top:37%; left:50%; width:128%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; border:1.5px solid var(--emerald); opacity:0; animation:af-ring 3.4s ease-out infinite; pointer-events:none; }
@keyframes af-ring { 0% { opacity:.34; transform:translate(-50%,-50%) scale(.72); } 80%,100% { opacity:0; transform:translate(-50%,-50%) scale(1.14); } }
.af-core .ttl { background:var(--surface); padding:0 8px; font-weight:800; font-size:23px; letter-spacing:-.03em; color:var(--text-1); line-height:1.1; }
.af-hub-foot { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; padding:12px 8px 2px; border-top:1px solid var(--border); margin-top:6px; font-size:12.5px; color:var(--text-2); }
.af-hub-foot .k { display:inline-flex; align-items:center; gap:7px; }
.af-hub-foot svg { width:10px; height:10px; overflow:visible; }
.af-hub-foot .tip { margin-left:auto; color:var(--text-3); }
.af-alert { display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:14px; margin-bottom:14px; font-size:13.5px; color:var(--text-1); border:1px solid var(--rose); background:var(--rose-dim); }
.af-alert.a { border-color:var(--amber); background:var(--amber-dim); }
.af-alert i.lead { color:var(--rose); }
.af-alert.a i.lead { color:var(--amber); }
.af-alert .grow { flex:1; }
.af-alert .s { color:var(--text-2); }
.dr-over { position:fixed; inset:0; background:rgba(8,14,30,.42); opacity:0; pointer-events:none; transition:opacity .2s; z-index:40; }
.dr-over.on { opacity:1; pointer-events:auto; }
.dr { position:fixed; top:0; right:0; bottom:0; width:min(470px,100%); background:var(--bg); border-left:1px solid var(--border); transform:translateX(102%); visibility:hidden; transition:transform .24s cubic-bezier(.2,.8,.2,1), visibility 0s .24s; z-index:41; overflow-y:auto; display:flex; flex-direction:column; }
.dr.on { transform:none; visibility:visible; box-shadow:-18px 0 40px rgba(8,14,30,.22); transition:transform .24s cubic-bezier(.2,.8,.2,1); }
/* Drawers sit over the shell (10, 20) and under what opens over them: a picker's list and a dialog, the password again included (50), and the
   idle warning (60, 70). */
.dr-head { position:sticky; top:0; z-index:2; background:var(--bg); padding:16px 18px 12px; border-bottom:1px solid var(--border); }
.dr-top { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:30px; }
.dr-who { display:flex; align-items:center; gap:11px; min-width:0; }
.dr-who img { width:40px; height:40px; border-radius:10px; flex:none; }
.dr-who .tx { display:block; font-weight:800; font-size:20px; letter-spacing:-.02em; color:var(--text-1); line-height:1.15; }
.dr-who .d { display:block; font-size:12.5px; color:var(--text-2); }
.dr-x { width:32px; height:32px; border-radius:9px; border:1px solid var(--border); background:var(--surface); color:var(--text-2); cursor:pointer; }
.dr-pills { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; align-items:center; }
.dr-p { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:99px; font-size:12px; font-weight:600; border:1px solid var(--border); background:var(--surface); color:var(--text-2); }
.dr-p b { width:7px; height:7px; border-radius:50%; background:var(--text-3); }
.dr-p.g { color:var(--emerald); border-color:var(--emerald); }
.dr-p.g b { background:var(--emerald); }
.dr-p.a { color:var(--amber); border-color:var(--amber); }
.dr-p.a b { background:var(--amber); }
.dr-p.r { color:var(--rose); border-color:var(--rose); }
.dr-p.r b { background:var(--rose); }
.dr-where { font:500 12px var(--font-mono); color:var(--text-3); margin-top:8px; }
.dr-body { padding:14px 18px 22px; display:flex; flex-direction:column; gap:14px; }
.dr-note { display:flex; gap:10px; padding:11px 13px; border-radius:12px; font-size:13px; line-height:1.45; color:var(--text-1); }
.dr-note.a { background:var(--amber-dim); }
.dr-note.r { background:var(--rose-dim); }
.dr-note.n { background:var(--surface-2); }
.dr-note.a i { color:var(--amber); }
.dr-note.r i { color:var(--rose); }
.dr-note.n i { color:var(--text-3); }
.dr-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:13px 14px; }
.dr-h { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:13.5px; font-weight:700; color:var(--text-1); margin-bottom:11px; }
.dr-h small { font:500 11px var(--font-mono); color:var(--text-3); }
.dr-h i { margin-right:6px; color:var(--text-3); }
.dr-g { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.gg { display:flex; flex-direction:column; align-items:center; gap:3px; }
.gg svg { width:74px; height:74px; }
.gg .bg { stroke:var(--surface-2); }
.gg .fg { stroke:var(--emerald); stroke-linecap:round; }
.gg.a .fg { stroke:var(--amber); }
.gg.r .fg { stroke:var(--rose); }
.gg.off .fg { stroke:var(--text-3); }
.gg text { font:800 17px var(--font-sans); fill:var(--text-1); text-anchor:middle; }
.gg span { font-size:12px; color:var(--text-2); }
.dr-rows { margin-top:11px; border-top:1px solid var(--border); }
.dr-r { display:flex; justify-content:space-between; gap:12px; padding:7px 0; font-size:13px; border-bottom:1px solid var(--border); color:var(--text-2); }
.dr-r:last-child { border-bottom:0; padding-bottom:0; }
.dr-r b { font-weight:600; color:var(--text-1); text-align:right; }
.dr-spark { margin-top:11px; font-size:11.5px; color:var(--text-3); }
.dr-spark svg { width:100%; height:38px; display:block; margin-bottom:2px; }
.dr-t { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:11px; }
.dr-tile { background:var(--surface-2); border-radius:10px; padding:9px 11px; }
.dr-tile .v { font-size:20px; font-weight:800; letter-spacing:-.02em; color:var(--text-1); line-height:1.15; }
.dr-tile .l { font-size:12px; color:var(--text-2); }
.dr-tile.a .v { color:var(--amber); }
.dr-stale { opacity:.55; }
.dr-steps { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:9px; font-size:13px; color:var(--text-2); }
.dr-steps li { display:flex; gap:9px; }
.dr-steps b { color:var(--text-1); font-weight:600; }
.dr-steps .n { flex:none; width:21px; height:21px; border-radius:50%; background:var(--surface-2); color:var(--text-1); font:700 11px var(--font-mono); display:flex; align-items:center; justify-content:center; }
.dr-pool { display:grid; grid-template-columns:1fr auto; gap:6px 12px; font-size:13px; color:var(--text-2); }
.dr-pool b { color:var(--text-1); text-align:right; }
.dr-picks { display:flex; flex-direction:column; gap:7px; }
.dr-pick { display:flex; align-items:center; gap:10px; padding:9px 11px; border:1px solid var(--border); border-radius:11px; cursor:pointer; }
.dr-pick:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.dr-pick input { position:absolute; opacity:0; }
.dr-pick img { width:32px; height:32px; border-radius:8px; }
.dr-pick b { display:block; font-size:13.5px; color:var(--text-1); }
.dr-pick small { display:block; font-size:12px; color:var(--text-2); }
.dr-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.dr-go { display:flex; gap:8px; }
@media (max-width:760px) {
  .af-hub-wrap { padding:12px; }
  .af-hub { aspect-ratio:auto; display:grid; grid-template-columns:1fr 1fr; gap:18px 10px; }
  .af-hub > svg.lines, .af-hub::before { display:none; }
  .af-node { position:static; transform:none !important; width:auto; min-width:0; }
  .af-core { grid-column:1 / -1; justify-self:center; width:190px; margin-bottom:6px; order:-1; }
  .af-core::before { display:none; }
  .af-hub-foot .tip { margin-left:0; width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  .lines line, .led, .act, .af-core::before { animation:none !important; }
}

/* Nuntius's pages (plan NS slice N6), from reji/ui/html/ns/build-mockups.py. */
.ns-state { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; white-space:nowrap; }
.ns-state i { font-size:12px; }
.ns-state.delivered { color:var(--emerald); } .ns-state.sent { color:var(--text-2); } .ns-state.queued { color:var(--text-3); }
.ns-state.undelivered, .ns-state.failed { color:var(--rose); } .ns-state.unknown { color:var(--amber); }
.ns-row { display:grid; grid-template-columns:32px minmax(0, 1.3fr) minmax(0, 1fr) 150px 70px 14px; gap:14px; align-items:center; width:100%; padding:12px 16px; background:none; border:0; border-top:1px solid var(--border); text-align:start; cursor:pointer; color:inherit; font:inherit; }
.ns-row:hover { background:var(--surface-hover); }
.ns-row .to { font:600 13px var(--font-mono); color:var(--text-1); }
.ns-row .what { font-size:13px; font-weight:700; color:var(--text-1); }
.ns-row .sb { font-size:12.5px; color:var(--text-2); }
.ns-row .when { font-size:12.5px; color:var(--text-2); }
.ns-row .go { color:var(--text-3); font-size:11px; }
.ns-head { display:grid; grid-template-columns:32px minmax(0, 1.3fr) minmax(0, 1fr) 150px 70px 14px; gap:14px; padding:9px 16px; font:600 11px var(--font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); }
.ns-hero { display:flex; gap:14px; align-items:flex-start; padding:16px 18px; border-radius:14px; margin-bottom:14px; background:var(--surface-2); }
.ns-hero .ic { width:40px; height:40px; flex:none; border-radius:11px; display:grid; place-items:center; font-size:16px; background:var(--surface); }
.ns-hero h2 { margin:0 0 3px; font-size:18px; font-weight:800; letter-spacing:-.02em; color:var(--text-1); }
.ns-hero p { margin:0; font-size:13.5px; line-height:1.5; color:var(--text-2); max-width:62ch; }
.ns-hero.delivered { background:var(--emerald-dim); } .ns-hero.delivered .ic { color:var(--emerald); }
.ns-hero.undelivered, .ns-hero.failed { background:var(--rose-dim); } .ns-hero.undelivered .ic, .ns-hero.failed .ic { color:var(--rose); }
.ns-hero.unknown { background:var(--amber-dim); } .ns-hero.unknown .ic { color:var(--amber); }
.ns-hero.sent .ic, .ns-hero.queued .ic { color:var(--text-2); }
.ns-time { list-style:none; margin:0; padding:0; }
.ns-time li { position:relative; display:grid; grid-template-columns:18px minmax(0, 1fr) auto; gap:10px; padding:0 0 16px; font-size:13px; color:var(--text-2); }
.ns-time li:last-child { padding-bottom:0; }
.ns-time li::before { content:''; position:absolute; inset-inline-start:8px; top:16px; bottom:-2px; border-inline-start:2px solid var(--border); }
.ns-time li:last-child::before { display:none; }
.ns-time .d { width:18px; height:18px; border-radius:50%; display:grid; place-items:center; font-size:9px; background:var(--surface-2); color:var(--text-2); }
.ns-time .d.g { background:var(--emerald-dim); color:var(--emerald); } .ns-time .d.r { background:var(--rose-dim); color:var(--rose); } .ns-time .d.a { background:var(--amber-dim); color:var(--amber); }
.ns-time .d.w { background:none; border:2px dashed var(--border); }
.ns-time b { display:block; color:var(--text-1); font-weight:700; }
.ns-time .t { font:500 12px var(--font-mono); color:var(--text-3); white-space:nowrap; }
.ns-body { padding:12px 14px; border-radius:12px; background:var(--surface-2); font-size:13.5px; line-height:1.5; color:var(--text-1); }
.ns-body .hid { letter-spacing:.12em; color:var(--text-3); }
.ns-facts { margin:12px 0 0; display:grid; grid-template-columns:auto minmax(0, 1fr); gap:7px 14px; font-size:13px; }
.ns-facts dt { color:var(--text-2); } .ns-facts dd { margin:0; color:var(--text-1); font-weight:600; text-align:end; }
.ns-note { display:flex; gap:9px; margin-top:12px; font-size:12.5px; line-height:1.45; color:var(--text-2); } .ns-note i { color:var(--text-3); margin-top:2px; }
.ns-prov { display:grid; grid-template-columns:44px minmax(0, 1fr) auto; gap:14px; align-items:center; padding:16px 18px; border-top:1px solid var(--border); }
.ns-prov:first-child { border-top:0; }
.ns-mark { width:44px; height:44px; border-radius:11px; display:grid; place-items:center; font-weight:800; font-size:17px; background:var(--surface-2); color:var(--text-1); }
.ns-prov .nm { font-weight:800; font-size:15px; color:var(--text-1); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ns-prov .sb { font-size:12.5px; color:var(--text-2); margin-top:2px; }
.ns-figs { grid-column:2 / -1; display:grid; grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap:10px; }
.ns-fig { background:var(--surface-2); border-radius:10px; padding:9px 11px; }
.ns-fig .v { font-size:18px; font-weight:800; letter-spacing:-.02em; color:var(--text-1); } .ns-fig .l { font-size:12px; color:var(--text-2); }
.ns-fig.a .v { color:var(--amber); } .ns-fig.r .v { color:var(--rose); }
.ns-copy { display:flex; gap:8px; align-items:center; padding:8px 11px; border-radius:9px; background:var(--surface-2); font:500 12.5px var(--font-mono); color:var(--text-1); overflow-wrap:anywhere; }
.ns-toggle { display:flex; gap:14px; align-items:center; justify-content:space-between; }
.ns-toggle b { display:block; color:var(--text-1); font-size:13.5px; } .ns-toggle span { font-size:12.5px; color:var(--text-2); line-height:1.45; }
@media (max-width:760px) {
  .ns-head { display:none; }
  .ns-row { grid-template-columns:32px minmax(0, 1fr) auto; gap:4px 12px; }
  .ns-row .col-from, .ns-row .go { display:none; }
  .ns-row .col-state { grid-column:2; grid-row:2; }
  .ns-row .when { grid-column:3; grid-row:1 / 3; align-self:start; text-align:end; }
  .ns-time li { grid-template-columns:18px minmax(0, 1fr); } .ns-time .t { grid-column:2; }
  .ns-prov { grid-template-columns:44px minmax(0, 1fr); } .ns-prov > .cn-btn, .ns-prov > .acts { grid-column:1 / -1; justify-self:start; }
  .ns-figs { grid-column:1 / -1; }
}

/* Beside the mockups: the real pages' links and small pieces. */
.ns-row { color:inherit; text-decoration:none; }
.ns-row:hover { text-decoration:none; }
.ns-row .what, .ns-row .to { display:block; }
.ns-icon { width:32px; height:32px; border-radius:9px; object-fit:contain; display:block; }
.ns-icon.lg { width:44px; height:44px; border-radius:11px; }
.ns-icon.none { display:grid; place-items:center; background:var(--surface-2); color:var(--text-2); font-size:13px; }
.ns-copy span { flex:1; }
.ns-body { white-space:pre-line; }
.ns-nothing { padding:22px 16px; border-top:1px solid var(--border); text-align:center; }
.ns-pages { display:flex; gap:8px; justify-content:flex-end; padding:12px 16px; border-top:1px solid var(--border); }
.ns-prov .acts { display:flex; gap:8px; align-items:center; }

/* Keys and access (plan SEC, SEC4 F3, F4): which modules a server's keys may call, as chips, and each live key with its revoke. */
.kc-mods { display:flex; flex-wrap:wrap; gap:6px; }
.kc-mod { display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--text-2); font:600 12.5px var(--font-sans); cursor:pointer; }
.kc-mod:hover { border-color:var(--border-accent); }
.kc-mod.on { border-color:var(--accent); color:var(--text-1); box-shadow:inset 0 0 0 1px var(--accent); }
.kc-mod i { font-size:11px; color:var(--text-3); }
.kc-mod.on i { color:var(--accent); }
.kc-key { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:4px 10px; align-items:center; padding:9px 0; border-bottom:1px solid var(--border); }
.kc-key:last-child { border-bottom:0; }
.kc-key b { font:600 13px var(--font-mono); color:var(--text-1); }
.kc-key span { grid-column:1; font-size:12px; color:var(--text-2); }
.kc-key .ib { grid-row:1 / 3; grid-column:2; }
.kc-acts { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.kc-acts .cn-btn { flex:1; justify-content:center; }
.kc-acts .cn-btn.danger { color:var(--rose); }

/* SMS credit by hand on a client (plan NU, NU-2): the number carries its unit. */
.cn-credit { display:grid; gap:12px; margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.cn-unit { display:flex; align-items:stretch; }
.cn-unit .cn-form-control { border-top-right-radius:0; border-bottom-right-radius:0; max-width:160px; }
.cn-unit span { display:grid; place-items:center; padding:0 12px; border:1px solid var(--border); border-left:0; border-radius:0 9px 9px 0; background:var(--surface-2); font-size:13px; color:var(--text-2); }

/* Bulk sends (plan NU, NU3; mockup nu/batch.html): a send as a river that fills */
.nu-river { display:flex; height:34px; border-radius:11px; overflow:hidden; background:var(--surface-2); }
.nu-river i, .nu-bt .mini i { display:block; height:100%; }
.nu-river .delivered, .nu-bt .mini .delivered, .nu-legend em.delivered { background:var(--emerald); }
.nu-river .with_networks, .nu-bt .mini .with_networks, .nu-legend em.with_networks { background:color-mix(in srgb, var(--emerald) 45%, var(--surface-2)); }
.nu-river .failed, .nu-bt .mini .failed, .nu-legend em.failed { background:var(--rose); }
.nu-river .cancelled, .nu-bt .mini .cancelled { background:repeating-linear-gradient(45deg, var(--surface-2) 0 6px, color-mix(in srgb, var(--text-3) 25%, transparent) 6px 12px); }
.nu-legend em.cancelled { background:repeating-linear-gradient(45deg, var(--surface-2) 0 3px, var(--text-3) 3px 5px); }
.nu-legend em.waiting { background:var(--surface-2); border:1px solid var(--border); }
.nu-legend { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:10px; font-size:13px; color:var(--text-2); }
.nu-legend span { display:inline-flex; align-items:center; gap:7px; }
.nu-legend em { width:10px; height:10px; border-radius:3px; display:inline-block; }
.nu-legend b { color:var(--text-1); font-weight:800; }
.nu-figs { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin-top:14px; }
.nu-figs div { background:var(--surface-2); border-radius:12px; padding:10px 12px; }
.nu-figs b { display:block; font-size:19px; font-weight:900; letter-spacing:-.02em; color:var(--text-1); }
.nu-figs span { font-size:12px; color:var(--text-2); }
.nu-bt { display:grid; grid-template-columns:32px minmax(0, 1.4fr) minmax(0, 1fr) 130px; gap:14px; align-items:center; padding:12px 16px; border-top:1px solid var(--border); font-size:13px; color:var(--text-2); text-decoration:none; }
.cn-panel-header + .nu-bt { border-top:0; }
.nu-bt:hover { background:var(--surface-hover); }
.nu-bt b { color:var(--text-1); display:block; }
.nu-bt .mini { height:8px; border-radius:4px; display:flex; overflow:hidden; background:var(--surface-2); }
.nu-bt .end { display:flex; flex-direction:column; align-items:flex-end; gap:4px; font-size:12px; }
.nu-note { display:flex; gap:9px; margin-top:4px; font-size:13px; color:var(--text-2); line-height:1.45; }
.nu-note i { margin-top:3px; color:var(--text-3); }
.nu-note code { font:500 12px var(--font-mono); }
.dr-p.b { color:var(--info); border-color:var(--info); }
.dr-p.b b { background:var(--info); }
@media (max-width: 760px) {
  .nu-figs { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .nu-bt { grid-template-columns:32px minmax(0, 1fr); }
  .nu-bt > .mini, .nu-bt > .end { grid-column:2; }
  .nu-bt .end { flex-direction:row; justify-content:space-between; align-items:center; }
}

/* Sender names (plan NU, NU4): each client's name, with every provider's answer */
.sn-row { display:grid; grid-template-columns:minmax(0, 220px) minmax(0, 1fr); gap:16px; padding:14px 18px; border-top:1px solid var(--border); }
.cn-panel-header + .sn-row { border-top:0; }
.sn-who { display:flex; flex-direction:column; gap:2px; font-size:13px; color:var(--text-2); }
.sn-name { font:800 16px var(--font-mono); color:var(--text-1); letter-spacing:.02em; }
.sn-asked { font-size:12px; color:var(--text-3); }
.sn-provs { display:flex; flex-direction:column; gap:8px; }
.sn-prov { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; padding:9px 12px; border-radius:11px; background:var(--surface-2); font-size:13px; }
.sn-p { font-weight:700; color:var(--text-1); min-width:70px; }
.sn-reason { color:var(--text-2); font-size:12.5px; }
.sn-acts { display:flex; flex-wrap:wrap; gap:6px; margin-left:auto; }
.sn-company { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:8px 0; }
.sn-name-in { font-family:var(--font-mono); max-width:180px; }
.sn-err { flex-basis:100%; margin:0; }
@media (max-width: 760px) { .sn-row { grid-template-columns:minmax(0, 1fr); } .sn-acts { margin-left:0; } }

/* Products' e-mail (plan NU, NU5): the chain in order, and the e-mails */
.pe-chain { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.pe-chain li { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:11px; background:var(--surface-2); font-size:13px; color:var(--text-2); }
.pe-chain li.next { box-shadow:inset 0 0 0 1px var(--emerald); }
.pe-chain li.off { opacity:.7; }
.pe-n { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; background:var(--surface); font:700 12px var(--font-mono); color:var(--text-1); flex:none; }
.pe-m { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.pe-m b { font:700 13px var(--font-mono); color:var(--text-1); }
.pe-bar { display:block; height:6px; border-radius:3px; background:var(--surface); overflow:hidden; max-width:320px; }
.pe-bar i { display:block; height:100%; background:var(--emerald); }
.pe-row { display:grid; grid-template-columns:32px minmax(0, 1.6fr) minmax(0, .8fr) 130px; gap:14px; align-items:center; padding:12px 16px; border-top:1px solid var(--border); font-size:13px; color:var(--text-2); text-decoration:none; }
.cn-panel-header + .pe-row { border-top:0; }
.pe-row:hover { background:var(--surface-hover); }
.pe-row b { display:block; color:var(--text-1); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pe-row .end, .pe-rcpt .end { display:flex; flex-direction:column; align-items:flex-end; gap:4px; font-size:12px; }
.pe-from { font-size:12.5px; color:var(--text-2); margin-bottom:12px; word-break:break-all; }
.pe-body { background:#fff; color:#1b1f24; border:1px solid var(--border); border-radius:12px; padding:20px; overflow-wrap:anywhere; }
.pe-rcpt { display:flex; justify-content:space-between; gap:12px; padding:11px 16px; border-top:1px solid var(--border); font-size:13px; color:var(--text-2); }
.cn-panel-header + .pe-rcpt { border-top:0; }
.pe-rcpt > div:first-child { display:flex; flex-direction:column; gap:2px; min-width:0; overflow-wrap:anywhere; }
.pe-rcpt b { color:var(--text-1); }
.pe-rcpt .why { color:var(--rose); font-size:12px; }
@media (max-width: 760px) {
  .pe-row { grid-template-columns:32px minmax(0, 1fr); }
  .pe-row > .pe-reach, .pe-row > .end { grid-column:2; }
  .pe-row .end { flex-direction:row; justify-content:space-between; align-items:center; }
  .pe-chain li { flex-wrap:wrap; }
  .pe-chain li > .pe-m { flex-basis:calc(100% - 40px); }
  .pe-chain li > .dr-p { margin-left:36px; }
}

/* Who isn't written to (plan NU, NU6; mockup nu/blocked.html) */
.nu-bl { display:grid; grid-template-columns:minmax(0, 1.2fr) 160px minmax(0, 1fr) 90px 14px; gap:14px; align-items:center; padding:11px 16px; border-top:1px solid var(--border); font-size:13px; color:var(--text-2); text-decoration:none; }
.nu-bl:hover { background:var(--surface-hover); }
.nu-bl .a, .nu-bl-addr { font-family:var(--font-mono); font-weight:600; color:var(--text-1); overflow-wrap:anywhere; }
.nu-bl .go { color:var(--text-3); font-size:11px; }
.nu-why { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:3px 9px; border-radius:999px; justify-self:start; }
.nu-why.bounced, .nu-why.soft_bounces { background:var(--rose-dim); color:var(--rose); }
.nu-why.complained { background:var(--amber-dim); color:var(--amber); }
.nu-why.unsubscribed, .nu-why.by_hand { background:var(--surface-2); color:var(--text-2); }
.nu-bl-add { display:grid; grid-template-columns:auto minmax(0, 1fr) minmax(0, 1fr); gap:14px; align-items:end; }
.nu-bl-add .f-btns { grid-column:1 / -1; }
.console .nu-hist { list-style:none; margin:0; padding:0; }
.console .nu-hist li { display:grid; grid-template-columns:30px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:10px 0; border-top:1px solid var(--border); font-size:13px; color:var(--text-2); }
.console .nu-hist li:first-child { border-top:0; }
.console .nu-hist .d { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--surface-2); color:var(--text-2); font-size:12px; }
.console .nu-hist .d.g { background:var(--emerald-dim); color:var(--emerald); }
.console .nu-hist b { display:block; color:var(--text-1); font-weight:700; }
@media (max-width: 760px) {
  .nu-bl { grid-template-columns:minmax(0, 1fr) auto; }
  .nu-bl > .whom { grid-column:1 / -1; }
  .nu-bl > .go { display:none; }
  .nu-bl-add { grid-template-columns:minmax(0, 1fr); }
}
.nu-lift { display:grid; gap:14px; }
@media (max-width: 760px) { .nu-bl-bar .f-segrow { width:100%; } .nu-bl-bar .f-seg { overflow-x:auto; max-width:100%; } }

/* Links (plan TL, TL3; mockup tl/links.html) */
.tl-row { display:grid; grid-template-columns:110px minmax(0, 1.3fr) minmax(0, 1fr) 80px 130px 14px; gap:14px; align-items:center; padding:12px 16px; border-top:1px solid var(--border); font-size:13px; color:var(--text-2); text-decoration:none; }
.cn-panel-header + .tl-row { border-top:0; }
.tl-row:hover { background:var(--surface-hover); }
.tl-row .code { font:700 13px var(--font-mono); color:var(--text-1); }
.tl-row .host { font-family:var(--font-mono); color:var(--text-1); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tl-row .taps { font:800 14px var(--font-mono); color:var(--text-1); text-align:right; }
.tl-row .end { display:flex; flex-direction:column; align-items:flex-end; gap:4px; font-size:12px; }
.tl-row .go { color:var(--text-3); font-size:11px; }
.tl-big { font:800 26px var(--font-mono); letter-spacing:.01em; color:var(--text-1); overflow-wrap:anywhere; }
.tl-to { display:flex; gap:8px; align-items:center; font:600 13px var(--font-mono); color:var(--text-2); margin-top:6px; overflow-wrap:anywhere; }
.tl-days { display:grid; grid-template-columns:repeat(30, minmax(0, 1fr)); gap:3px; align-items:end; height:96px; margin-top:14px; }
.tl-days i { display:block; border-radius:3px 3px 0 0; background:color-mix(in srgb, var(--accent) 30%, transparent); }
.tl-days i.big { background:var(--accent); }
.tl-lab { display:flex; justify-content:space-between; font:500 11px var(--font-mono); color:var(--text-3); margin-top:6px; }
@media (max-width: 760px) {
  .tl-row { grid-template-columns:minmax(0, 1fr) auto; }
  .tl-row > .host, .tl-row > .who { grid-column:1 / -1; }
  .tl-row > .go { display:none; }
  .tl-row > .taps { grid-row:1; grid-column:2; }
  .tl-row .end { grid-column:1 / -1; flex-direction:row; justify-content:space-between; align-items:center; }
}

/* ══════════ Tessera (plan TE, TE3; mockups te/campaign.html, te/code.html) ══════════ */
.te-fill { display:flex; height:30px; border-radius:10px; overflow:hidden; background:var(--surface-2); }
.te-fill.sm { height:10px; border-radius:5px; }
.te-fill i { display:block; height:100%; }
.te-fill .rd, .te-legend .rd { background:var(--emerald); }
.te-fill .is, .te-legend .is { background:color-mix(in srgb, var(--accent) 45%, var(--surface-2)); }
.te-fill .vd, .te-legend .vd { background:var(--rose); }
.te-fill .ex, .te-legend .ex { background:var(--amber); }
.te-legend .lf { background:var(--surface-2); border:1px solid var(--border); }
.te-legend { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:10px; font-size:13px; color:var(--text-2); }
.te-legend span { display:inline-flex; align-items:center; gap:7px; }
.te-legend em { width:10px; height:10px; border-radius:3px; display:inline-block; }
.te-legend b { color:var(--text-1); }
.te-days i { background:color-mix(in srgb, var(--emerald) 40%, transparent); }
.te-days i.big { background:var(--emerald); }
.te-find { padding:14px 16px; display:grid; gap:8px; }
.te-find-label { display:flex; align-items:center; gap:8px; font-weight:700; font-size:13px; color:var(--text-1); }
.te-find-row { display:flex; gap:8px; }
.te-find-input { flex:1; font-family:var(--font-mono); letter-spacing:.04em; text-transform:uppercase; }
.te-row { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr) 110px 150px 14px; gap:14px; align-items:center; padding:12px 16px; border-top:1px solid var(--border); font-size:13px; color:var(--text-2); text-decoration:none; }
.cn-panel-header + .te-row { border-top:0; }
.te-row:hover { background:var(--surface-hover); }
.te-row .name { display:flex; flex-direction:column; gap:2px; min-width:0; }
.te-row .name b { color:var(--text-1); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.te-row .name span { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.te-row .nums { font-family:var(--font-mono); text-align:right; }
.te-row .nums b { color:var(--text-1); }
.te-row .end { display:flex; flex-direction:column; align-items:flex-end; gap:4px; font-size:12px; }
.te-row .go { color:var(--text-3); font-size:11px; }
.te-batch { display:grid; grid-template-columns:40px minmax(0, 1fr) auto; gap:12px; align-items:start; padding:12px 16px; border-top:1px solid var(--border); font-size:13px; color:var(--text-2); }
.te-batch:first-child { border-top:0; }
.te-batch .ic { width:40px; height:40px; border-radius:11px; display:grid; place-items:center; background:var(--surface-2); color:var(--text-2); }
.te-batch b { display:block; color:var(--text-1); }
.te-batch .dr-p { margin-top:2px; white-space:nowrap; }
.te-batch-acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.te-void { display:grid; gap:10px; margin-top:10px; }
.te-bar { height:6px; border-radius:3px; background:var(--surface-2); overflow:hidden; margin-top:6px; max-width:260px; }
.te-bar i { display:block; height:100%; background:var(--accent); }
.te-serial { font-family:var(--font-mono); letter-spacing:.01em; }
.te-tl { list-style:none; margin:0; padding:0; }
.te-tl li { display:grid; grid-template-columns:30px minmax(0, 1fr); gap:12px; padding:0 0 18px; position:relative; font-size:13px; color:var(--text-2); }
.te-tl li::before { content:''; position:absolute; left:14px; top:30px; bottom:0; width:2px; background:var(--border); }
.te-tl li:last-child { padding-bottom:0; }
.te-tl li:last-child::before { display:none; }
.te-tl .d { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--surface-2); color:var(--text-2); font-size:12px; position:relative; z-index:1; }
.te-tl .d.g { background:var(--emerald-dim); color:var(--emerald); }
.te-tl .d.r { background:var(--rose-dim); color:var(--rose); }
.te-tl b { display:block; color:var(--text-1); }
@media (max-width: 760px) {
  .te-row { grid-template-columns:minmax(0, 1fr) auto; }
  .te-row > .te-fill { grid-column:1 / -1; }
  .te-row > .go { display:none; }
  .te-row > .nums { grid-row:1; grid-column:2; }
  .te-row .end { grid-column:1 / -1; flex-direction:row; justify-content:space-between; align-items:center; }
  .te-find-row { flex-direction:column; }
}
