:root{
  /* seo216 "paper" blog theme — forest-green editorial brutalism + acid-lime data */
  --bg:#e6e4dc;            /* warm paper — deepened so white cards pop */
  --surface:#ffffff;       /* white content card */
  --surface-2:#dcdacf;     /* raised paper band */
  --line:rgba(12,15,12,.16); --line-strong:rgba(12,15,12,.30);
  --fg:#0a0d0a; --fg-soft:#24281f; --muted:#4f544c; --faint:#787e76;
  /* accent = forest green — the readable interactive accent on paper */
  --accent:#163a26; --accent-soft:rgba(22,58,38,.08); --accent-press:#0b1f14; --accent-ring:rgba(22,58,38,.24);
  /* acid-lime — key CTAs, data emphasis, active highlight */
  --lime:#c5f24d; --lime-bright:#d6ff66; --lime-deep:#a8e03a; --lime-soft:rgba(197,242,77,.32);
  /* semantic */
  --danger:#bb4329; --danger-soft:#f6e6e1; --ok:#2c6243; --ok-soft:#e6f0e8; --warn:#946514; --warn-soft:#f5edda;
  /* shape — brutalist sharp corners + editorial elevation */
  --r-sm:3px; --r:5px; --r-lg:8px;
  --sh-sm:0 1px 2px rgba(12,15,12,.09);
  --sh:0 1px 3px rgba(12,15,12,.11), 0 1px 2px rgba(12,15,12,.07);
  --sh-md:0 20px 50px -24px rgba(12,15,12,.45);
  --ctl:38px;  /* control height */
  /* fonts */
  --sans:"Geist","Geist Variable",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --mono:"Geist Mono","Geist Mono Variable",ui-monospace,SFMono-Regular,Menlo,monospace;
  --serif:"Fraunces","Times New Roman",Georgia,serif;
}
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--bg); color:var(--fg);
  font:14px/1.55 var(--sans);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
::selection{ background:var(--lime); color:var(--fg); }

/* mono eyebrow / section label — SEO216 /// CONSOLE */
.eyebrow{ font-family:var(--mono); font-size:.7rem; font-weight:500; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted); margin:0 0 .55rem; }
.eyebrow .slash{ color:var(--lime-deep); }

/* ---- app shell: retractable icon rail ----
   Collapsed by default to a --rail-wide icon rail. Expands to --open on hover
   (a floating peek, no content reflow) or persistently when pinned (click the
   brand). Content is offset by the rail width only, so a hover-peek overlays. */
:root{ --rail:64px; --open:248px; }
.app{ min-height:100vh; }
.app.no-nav{ display:block; }

.sidebar{ position:fixed; top:0; left:0; height:100vh; width:var(--rail); z-index:50;
  background:var(--surface); border-right:1px solid var(--line);
  display:flex; flex-direction:column; padding:1.1rem .6rem; overflow:hidden;
  transition:width .18s ease, box-shadow .18s ease; }
.sidebar:hover{ width:var(--open); box-shadow:var(--sh-md); }     /* peek-expand on hover */
.app.pinned .sidebar{ width:var(--open); box-shadow:none; }       /* stays open when pinned */

/* Dark-forest chrome (the brand's default theme) against the paper content — the
   high-contrast split. Overriding the palette vars on .sidebar recolours every
   nav component (brand, links, labels, session) automatically. */
.sidebar{
  --surface:#0a1c12; --surface-2:#16331f; --line:rgba(255,255,255,.10); --line-strong:rgba(255,255,255,.16);
  --fg:#f4f7f2; --fg-soft:#c9d3c9; --muted:#94a39a; --faint:#7e8c80;
  --accent:var(--lime); --accent-soft:rgba(197,242,77,.14);
  background:var(--surface); border-right-color:var(--line); }
.sidebar .logo{ background:var(--lime); color:#0a1c12; }
.sidebar .avatar{ background:rgba(197,242,77,.16); color:var(--lime); }
.sidebar .navlink.active{ background:rgba(197,242,77,.16); color:var(--lime-bright); }
.sidebar .navlink.active .ic{ color:var(--lime); }

.content{ margin-left:var(--rail); min-width:0; transition:margin-left .18s ease; }
.app.pinned .content{ margin-left:var(--open); }
.app.no-nav .content{ margin-left:0; }
main{ max-width:1120px; margin:0 auto; padding:2rem 2.25rem 3rem; }
.app.no-nav main{ max-width:none; }

.sidebar-head{ display:flex; align-items:center; gap:.3rem; padding-bottom:1.1rem; }
.brand{ display:flex; align-items:center; gap:.55rem; color:var(--fg); font-weight:650; font-size:1.05rem;
  text-decoration:none; padding:.15rem .5rem; letter-spacing:-.01em; flex:1; min-width:0; }
.brand:hover{ text-decoration:none; }
.collapse-btn{ display:grid; place-items:center; width:30px; height:30px; flex-shrink:0; background:none;
  border:none; color:var(--faint); cursor:pointer; border-radius:var(--r); transition:background .12s,color .12s; }
.collapse-btn:hover{ background:var(--surface-2); color:var(--fg); }
.collapse-btn .ic{ transition:transform .18s ease; }
.app:not(.pinned) .collapse-btn .ic{ transform:rotate(180deg); }   /* points out → "expand" */
.logo{ display:inline-grid; place-items:center; width:28px; height:28px; flex-shrink:0; border-radius:var(--r);
  background:var(--accent); color:var(--lime); font-weight:700; font-size:.85rem; box-shadow:var(--sh-sm); }

.nav{ display:flex; flex-direction:column; gap:1.15rem; flex:1; overflow-y:auto; overflow-x:hidden; }
.nav-group{ display:flex; flex-direction:column; gap:.1rem; }
.nav-label{ font-family:var(--mono); font-size:.66rem; text-transform:uppercase; letter-spacing:.11em;
  color:var(--faint); padding:.2rem .6rem .25rem; font-weight:500; }
.nav-label::after{ content:" ///"; color:var(--lime-deep); }
/* left padding (.78rem) centers the 20px icon in the collapsed 64px rail; it's a
   constant so there's no horizontal motion when the panel expands on hover */
.navlink{ display:flex; align-items:center; gap:.6rem; padding:.46rem .55rem .46rem .78rem; border-radius:var(--r);
  color:var(--fg-soft); text-decoration:none; font-weight:500; font-size:.875rem; white-space:nowrap;
  transition:background .12s,color .12s; }
.navlink:hover{ background:var(--surface-2); color:var(--fg); text-decoration:none; }
.navlink.active{ background:var(--lime-soft); color:var(--fg); font-weight:600; }
.ic{ width:20px; height:20px; flex-shrink:0; color:var(--faint); transition:color .12s; }
.navlink:hover .ic{ color:var(--muted); }
.navlink.active .ic{ color:var(--accent); }

.session{ display:flex; align-items:center; gap:.55rem; border-top:1px solid var(--line);
  padding-top:.85rem; margin-top:.5rem; padding-left:.46rem; }   /* centers the 30px avatar in the rail */
.avatar{ display:inline-grid; place-items:center; width:30px; height:30px; flex-shrink:0; border-radius:50%;
  background:var(--accent-soft); color:var(--accent); font-weight:600; font-size:.8rem; }
.who{ flex:1; min-width:0; font-size:.8rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.link{ display:grid; place-items:center; width:30px; height:30px; background:none; border:none; color:var(--faint);
  cursor:pointer; border-radius:var(--r); flex-shrink:0; }
.link:hover{ background:var(--surface-2); color:var(--fg); }

/* labels + the logout button: hidden in the collapsed rail (avatar/icons only),
   revealed on hover-peek or when pinned */
.brand-text, .nav-label, .navlink span, .who, .session .link, .collapse-btn{ opacity:0; transition:opacity .12s ease; }
/* keep labels on one line so the collapsed rail and expanded panel are the SAME
   height — otherwise the narrow rail wraps them and nav items shift up on hover */
.brand-text, .nav-label, .navlink span, .who{ white-space:nowrap; }
.sidebar:hover .brand-text, .sidebar:hover .nav-label, .sidebar:hover .navlink span,
.sidebar:hover .who, .sidebar:hover .session .link, .sidebar:hover .collapse-btn,
.app.pinned .brand-text, .app.pinned .nav-label, .app.pinned .navlink span,
.app.pinned .who, .app.pinned .session .link, .app.pinned .collapse-btn{ opacity:1; }

/* ---- headings ---- */
.page-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:1rem; flex-wrap:wrap;
  margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.page-head .muted{ font-size:.9rem; }
h1{ margin:0; font-family:var(--serif); font-size:1.7rem; font-weight:500; letter-spacing:-.01em; color:var(--fg); }
h2{ font-size:.95rem; font-weight:600; letter-spacing:-.01em; margin:1.4rem 0 .6rem; }
.muted{ color:var(--muted); } .count{ color:var(--accent); font-weight:600; }

.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:1.4rem 1.5rem; box-shadow:var(--sh-sm); margin-bottom:1.2rem; }
.card.narrow{ max-width:380px; margin:7vh auto; box-shadow:var(--sh-md); }
.card h2:first-child{ margin-top:0; }

/* ---- stat tiles ---- */
.stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(168px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.stat{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:1.15rem 1.25rem; display:flex; flex-direction:column; gap:.4rem; text-decoration:none; color:var(--fg);
  box-shadow:var(--sh-sm); transition:transform .12s, box-shadow .12s, border-color .12s; }
a.stat:hover{ transform:translateY(-2px); box-shadow:var(--sh-md); border-color:var(--line-strong); text-decoration:none; }
.stat-n{ font-size:1.85rem; font-weight:680; line-height:1; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.stat-n.alert{ color:var(--accent); }
.stat-n.danger-n{ color:var(--danger); }
.stat-sub{ font-size:.95rem; color:var(--muted); font-weight:400; }
.stat-l{ color:var(--muted); font-family:var(--mono); font-size:.7rem; font-weight:500; text-transform:uppercase; letter-spacing:.07em; }

/* ---- tables ---- */
table.queue{ width:100%; border-collapse:collapse; }
table.queue th{ text-align:left; padding:.6rem .65rem; border-bottom:1px solid var(--line-strong);
  color:var(--muted); font-family:var(--mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.07em; font-weight:500; }
table.queue td{ text-align:left; padding:.65rem; border-bottom:1px solid var(--line); }
table.queue.compact td{ padding:.5rem .65rem; }
table.queue tbody tr:last-child td{ border-bottom:none; }
table.queue tbody tr{ transition:background .1s; }
table.queue tbody tr:hover td{ background:var(--surface-2); }
.num{ text-align:right; font-variant-numeric:tabular-nums; }
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
.panel{ background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r); padding:1rem 1.1rem; }
ul.checks{ list-style:none; padding:0; margin:0; }
ul.checks li{ padding:.12rem 0; font-size:.88rem; }
ul.checks li.pass{ color:var(--ok); }
ul.checks li.fail{ color:var(--danger); }

/* ---- forms ---- */
label{ display:block; font-size:.82rem; color:var(--fg-soft); margin:.75rem 0 .2rem; font-weight:500; }
input[type=email],input[type=text],select{ height:var(--ctl); background:var(--surface); color:var(--fg);
  border:1px solid var(--line-strong); border-radius:var(--r); padding:0 .7rem; font:inherit; margin:.15rem 0; width:100%; }
select{ width:auto; cursor:pointer; }
textarea{ width:100%; background:var(--surface); color:var(--fg); border:1px solid var(--line-strong);
  border-radius:var(--r); padding:.65rem .75rem; margin:.15rem 0;
  font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; }
input::placeholder,textarea::placeholder{ color:var(--faint); }
input:focus,select:focus,textarea:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-ring); }

/* ---- buttons ---- */
button,.button{ display:inline-flex; align-items:center; justify-content:center; gap:.4rem; min-height:var(--ctl);
  background:var(--surface); color:var(--fg-soft); border:1px solid var(--line-strong); border-radius:var(--r);
  padding:0 .9rem; cursor:pointer; text-decoration:none; font:inherit; font-weight:500; white-space:nowrap;
  transition:background .12s, border-color .12s, box-shadow .12s; }
button:hover,.button:hover{ background:var(--surface-2); border-color:var(--accent); color:var(--accent); text-decoration:none; }
button:focus-visible,.button:focus-visible{ outline:none; box-shadow:0 0 0 3px var(--accent-ring); }
button.primary,.button.primary{ background:var(--lime); border-color:var(--lime); color:var(--fg); font-weight:600; box-shadow:var(--sh-sm); }
button.primary:hover,.button.primary:hover{ background:var(--lime-bright); border-color:var(--lime-bright); color:var(--fg); }
button.danger,.button.danger{ background:var(--surface); border-color:#f1c4cc; color:var(--danger); }
button.danger:hover,.button.danger:hover{ background:var(--danger-soft); border-color:#e6a6b2; }
.button.ghost{ background:transparent; border-color:transparent; color:var(--muted); }
.button.ghost:hover{ background:var(--surface-2); color:var(--fg); }
.button.small,button.small{ min-height:30px; padding:0 .65rem; font-size:.82rem; }
.actions{ display:flex; gap:.6rem; align-items:center; margin-top:1.1rem; flex-wrap:wrap; }
.inline{ display:inline-flex; }

/* ---- chips / badges ---- */
.badge{ display:inline-flex; align-items:center; font-size:.72rem; padding:.12rem .5rem; border-radius:999px;
  font-weight:600; line-height:1.5; }
.badge.warn{ background:var(--warn-soft); color:var(--warn); border:1px solid #fde6b8; }
code{ background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:.06rem .35rem; font-size:.84em; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }

/* ---- monitor / live log ---- */
table.monitor{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.8rem; }
table.monitor td{ vertical-align:top; }
.nowrap{ white-space:nowrap; }
.monitor .err{ color:var(--danger); }
td.lvl{ text-transform:uppercase; font-size:.68rem; letter-spacing:.05em; font-weight:600; }
td.lvl.lvl-info{ color:var(--faint); }
td.lvl.lvl-warning{ color:var(--warn); }
td.lvl.lvl-error{ color:var(--danger); }
tr.lvl-error td{ background:var(--danger-soft); }
tr.lvl-warning td{ background:var(--warn-soft); }

tr.disabled-row td{ opacity:.5; }
.sched-status{ margin-bottom:1.2rem; font-weight:500; border:1px solid var(--line); border-radius:var(--r);
  padding:.75rem 1rem; background:var(--surface); box-shadow:var(--sh-sm); }
.sched-status.ok{ border-color:#b7e4cb; background:var(--ok-soft); }
.sched-status.bad{ border-color:#f3c2cc; background:var(--danger-soft); }

.banner{ border-radius:var(--r); padding:.8rem 1rem; margin-bottom:1.2rem; font-weight:500; font-size:.9rem; }
.banner.danger{ background:var(--danger-soft); color:var(--danger); border:1px solid #f3c9d1; }
table.queue tr.rec td{ background:var(--accent-soft); }

/* ---- overview: action callouts ---- */
.cta-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1rem; margin-bottom:1.4rem; }
.cta{ display:flex; align-items:center; gap:1.1rem; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:1.25rem 1.4rem; text-decoration:none; color:var(--fg);
  box-shadow:var(--sh-sm); transition:transform .12s, box-shadow .12s, border-color .12s; }
.cta:hover{ transform:translateY(-2px); box-shadow:var(--sh-md); border-color:var(--accent); text-decoration:none; }
.cta-ic{ display:grid; place-items:center; width:46px; height:46px; border-radius:12px; flex-shrink:0;
  background:var(--accent-soft); color:var(--accent); }
.cta-ic svg{ width:22px; height:22px; }
.cta.idle .cta-ic{ background:var(--surface-2); color:var(--faint); }
.cta-body{ flex:1; min-width:0; }
.cta-n{ font-size:1.75rem; font-weight:680; line-height:1.05; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.cta-l{ color:var(--fg-soft); font-size:.92rem; font-weight:500; }
.cta-go{ color:var(--accent); font-weight:600; font-size:1.2rem; }

/* ---- overview: metric strip ---- */
.metrics{ display:flex; flex-wrap:wrap; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--sh-sm); margin-bottom:1.4rem; overflow:hidden; }
.metric{ flex:1; min-width:130px; padding:1rem 1.25rem; border-right:1px solid var(--line);
  text-decoration:none; color:var(--fg); }
.metric:last-child{ border-right:none; }
a.metric:hover{ background:var(--surface-2); text-decoration:none; }
.metric-n{ font-size:1.4rem; font-weight:650; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.metric-n .sub{ font-size:.95rem; color:var(--faint); font-weight:400; }
.metric-n.danger-n{ color:var(--danger); }
.metric-l{ color:var(--muted); font-family:var(--mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.07em; margin-top:.25rem; font-weight:500; }

/* ---- pipeline funnel ---- */
.funnel{ display:flex; flex-direction:column; gap:.6rem; }
.funnel-row{ display:grid; grid-template-columns:118px 1fr 34px; align-items:center; gap:.75rem; font-size:.86rem; }
.funnel-row .lbl{ color:var(--fg-soft); text-transform:capitalize; }
.funnel-bar{ height:8px; border-radius:999px; background:var(--surface-2); overflow:hidden; }
.funnel-bar > span{ display:block; height:100%; border-radius:999px; background:var(--lime-deep); min-width:3px; }
.funnel-bar > span.ok{ background:var(--ok); }
.funnel-bar > span.bad{ background:var(--danger); }
.funnel-row .val{ text-align:right; font-variant-numeric:tabular-nums; color:var(--muted); font-weight:500; }

/* ---- budget gauge ---- */
.gauge{ margin:.2rem 0 1rem; }
.gauge:last-child{ margin-bottom:0; }
.gauge-head{ display:flex; justify-content:space-between; align-items:baseline; font-size:.86rem; margin-bottom:.4rem; }
.gauge-track{ height:8px; background:var(--surface-2); border-radius:999px; overflow:hidden; }
.gauge-fill{ height:100%; border-radius:999px; background:var(--lime-deep); }
.gauge-fill.warn{ background:var(--warn); } .gauge-fill.danger{ background:var(--danger); }

/* ---- simple list (stamp queue) ---- */
.list{ display:flex; flex-direction:column; }
.list-row{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem 0; border-bottom:1px solid var(--line); }
.list-row:last-child{ border-bottom:none; }
.list-row .t{ min-width:0; }
.list-row .t b{ font-weight:550; }

/* ---- status pills ---- */
.pill{ display:inline-flex; align-items:center; gap:.3rem; font-family:var(--mono); font-size:.66rem; font-weight:500;
  padding:.16rem .5rem; border-radius:var(--r-sm); line-height:1.4; text-transform:uppercase; letter-spacing:.04em;
  border:1px solid transparent; white-space:nowrap; }
.pill.ok{ background:var(--ok-soft); color:var(--ok); border-color:rgba(44,98,67,.28); }
.pill.warn{ background:var(--warn-soft); color:var(--warn); border-color:rgba(148,101,20,.28); }
.pill.danger{ background:var(--danger-soft); color:var(--danger); border-color:rgba(187,67,41,.28); }
.pill.info{ background:var(--accent-soft); color:var(--accent); border-color:rgba(22,58,38,.2); }
.pill.neutral{ background:var(--surface-2); color:var(--muted); border-color:var(--line); }
.pills{ display:flex; flex-wrap:wrap; gap:.3rem; }

/* ---- accent callout (advisor opinion, hints) ---- */
.note{ background:var(--accent-soft); border:1px solid rgba(22,58,38,.18); border-left:3px solid var(--lime-deep);
  border-radius:var(--r); padding:.8rem 1rem; font-size:.9rem; color:var(--fg-soft); margin:.2rem 0 1.1rem; }
.note b{ color:var(--accent); }

/* ---- back link ---- */
.backlink{ display:inline-flex; align-items:center; gap:.3rem; color:var(--muted);
  font-size:.85rem; margin-bottom:.7rem; }
.backlink:hover{ color:var(--fg); text-decoration:none; }

/* ---- card section header (title + helper line) ---- */
.card-head{ margin-bottom:.5rem; }
.card-head h2{ margin:0; }
.card-head p{ margin:.3rem 0 0; font-size:.85rem; }
.card > p.hint{ margin:0 0 .6rem; font-size:.85rem; }

/* ---- paired form fields ---- */
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field-row .field{ min-width:0; }
.field-row label:first-child{ margin-top:0; }
.check-row{ display:flex; flex-wrap:wrap; gap:1.25rem; margin-top:1rem; }
.check-row label{ display:inline-flex; align-items:center; gap:.45rem; margin:0; font-size:.875rem; color:var(--fg-soft); }
.check-row input{ width:auto; margin:0; }
.src-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:.4rem .75rem; }
.src-grid label{ display:inline-flex; align-items:center; gap:.45rem; margin:0; font-size:.85rem; }
.src-grid input{ width:auto; margin:0; }

/* ---- sticky save bar at the foot of a long form ---- */
.form-foot{ position:sticky; bottom:0; display:flex; justify-content:flex-end; gap:.6rem;
  background:linear-gradient(to top,var(--bg) 60%,rgba(247,248,250,0)); padding:1rem 0 .2rem; margin-top:.4rem; z-index:2; }

/* ---- danger zone: visually demoted, clearly hazardous ---- */
.card.danger-zone{ border-color:#f1d4da; background:linear-gradient(180deg,var(--danger-soft),var(--surface) 40%); }
.card.danger-zone h2{ color:var(--danger); }

/* ---- disclosure (collapsible add-form / advanced) ---- */
.disclosure{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-sm); margin-bottom:1.2rem; overflow:hidden; }
.disclosure > summary{ list-style:none; cursor:pointer; padding:.95rem 1.5rem; font-weight:600; color:var(--fg);
  display:flex; align-items:center; gap:.5rem; user-select:none; }
.disclosure > summary::-webkit-details-marker{ display:none; }
.disclosure > summary::before{ content:"+"; display:grid; place-items:center; width:18px; height:18px;
  border-radius:var(--r-sm); background:var(--accent-soft); color:var(--accent); font-weight:700; line-height:1; }
.disclosure[open] > summary::before{ content:"\2013"; }
.disclosure[open] > summary{ border-bottom:1px solid var(--line); }
.disclosure-body{ padding:1.3rem 1.5rem 1.5rem; }
.disclosure.flush{ border:none; box-shadow:none; background:none; margin:.4rem 0 0; }
.disclosure.flush > summary{ padding:.6rem 0; color:var(--muted); font-size:.875rem; }
.disclosure.flush[open] > summary{ border-bottom:none; }
.disclosure.flush .disclosure-body{ padding:.4rem 0 0; }

/* ---- tutorial / help blocks ---- */
.card h4,.disclosure-body h4{ font-size:.82rem; font-weight:600; margin:1.2rem 0 .45rem; color:var(--fg);
  letter-spacing:-.005em; }
textarea[readonly]{ background:var(--surface-2); color:var(--fg-soft); cursor:text; }
.note.tut{ background:var(--surface-2); border-color:var(--line); color:var(--fg-soft); }
.note.tut b,.note.tut code{ color:var(--fg); }
table.ref code{ white-space:nowrap; }
table.ref td:first-child{ width:1%; }

/* ---- status dot ---- */
.dot{ display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:.45rem; vertical-align:middle; background:var(--faint); }
.dot.on{ background:var(--ok); } .dot.off{ background:var(--faint); }

/* ---- mobile top bar + off-canvas drawer (hidden on desktop) ---- */
.topbar{ display:none; align-items:center; justify-content:space-between; gap:.5rem;
  position:sticky; top:0; z-index:50; background:var(--surface); border-bottom:1px solid var(--line);
  padding:.55rem .9rem; }
.topbar .brand{ flex:1; }
.hamburger{ display:grid; place-items:center; width:40px; height:40px; flex-shrink:0;
  background:none; border:1px solid var(--line-strong); border-radius:var(--r); color:var(--fg); cursor:pointer; }
.hamburger:hover{ background:var(--surface-2); }
.hamburger .ic{ width:22px; height:22px; }
.scrim{ display:none; }

/* ---- responsive: sidebar → slide-in drawer toggled by the top-bar button ---- */
@media (max-width:860px){
  .topbar{ display:flex; }                          /* show the mobile header */
  .content, .app.pinned .content{ margin-left:0; }  /* full-width content */
  main{ padding:1.3rem 1.1rem; }
  .grid{ grid-template-columns:1fr; }
  .field-row{ grid-template-columns:1fr; }

  /* the sidebar is an off-canvas drawer, slid in by .nav-open */
  .sidebar{ position:fixed; top:0; left:0; height:100vh; width:var(--open); z-index:60;
    transform:translateX(-100%); transition:transform .22s ease; box-shadow:none; }
  .sidebar:hover{ width:var(--open); box-shadow:none; }   /* no hover-rail on touch */
  .app.nav-open .sidebar{ transform:translateX(0); box-shadow:var(--sh-md); }

  /* labels always visible in the drawer; the desktop collapse chevron is hidden */
  .brand-text, .nav-label, .navlink span, .who, .session .link{ opacity:1; }
  .collapse-btn{ display:none; }

  /* tap-to-close backdrop behind the open drawer */
  .scrim{ display:block; position:fixed; inset:0; z-index:55; background:rgba(10,28,18,.5);
    opacity:0; pointer-events:none; transition:opacity .22s ease; }
  .app.nav-open .scrim{ opacity:1; pointer-events:auto; }
}
