@charset "UTF-8";

:root {
  color-scheme: dark;
  font: 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --canvas: #141318;
  --panel: #0c0b10;
  --panel-black: #000;
  --surface: #111116;
  --control: #1a191e;
  --chip: #16151a;
  --popover: #2f2e31;
  --text-strong: #fff;
  --text: #e6e5ea;
  --secondary: #88878c;
  --muted: #69686d;
  --faint: #4e4d52;
  --green: #5fb896;
  --rose: #c85a6e;
  --violet: #a377c3;
  --orange: #bf9b72;
  --info: #6a93c2;
  --line: rgb(255 255 255 / 4%);
  --control-line: rgb(255 255 255 / 6%);
  --etch: 0 1px 0 rgb(255 255 255 / 4%);
  --radius: 10px;
  --content: 1300px;
  --gutter: clamp(24px, 6.5vw, 100px);
  --shadow-float: 0 16px 40px rgb(0 0 0 / 45%);
  background: var(--canvas);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; padding-bottom: env(safe-area-inset-bottom); letter-spacing: -.15px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; }
a, button, summary, input, select, textarea { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease; }
:focus-visible { outline: 2px solid rgb(255 255 255 / 60%); outline-offset: 3px; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.3; color: var(--text-strong); font-weight: 600; }
h1 { font-size: 18px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
input, select, textarea {
  font-size: 13px; min-height: 36px; color: var(--text); background: var(--surface);
  border: 1px solid var(--control-line); border-radius: 7px; padding: 8px 12px; max-width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"] { min-height: 0; accent-color: #cbcbcb; }
summary { cursor: pointer; min-height: 36px; list-style: none; }
summary::-webkit-details-marker { display: none; }
kbd { font: inherit; font-size: 10px; line-height: 1.4; border: 1px solid var(--control-line); border-radius: 4px; padding: 1px 5px; color: var(--secondary); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 12px; background: var(--text); color: var(--canvas); }
.skip-link:focus { top: 12px; }

/* The shell has no band; only floating navigation sits above the canvas. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(calc(100% - var(--gutter) * 2), var(--content)); min-height: 120px; margin: auto; padding-top: env(safe-area-inset-top); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: -.55px; }
.brand img { width: 26px; height: 30px; object-fit: contain; flex-shrink: 0; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--secondary); letter-spacing: 0; }
.header-actions, .header-status, .utility-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.connection { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--secondary); }
.connection i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.connection.offline i { background: var(--orange); }
.private-label { font-size: 11px; color: var(--secondary); }
.icon-button, .text-button, .outline-button, .secondary-button {
  min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 7px; padding: 7px 12px; font-size: 12px; font-weight: 500;
  border: 1px solid transparent; background: transparent; color: var(--secondary);
}
.icon-button { width: 32px; padding: 7px; }
.outline-button, .secondary-button { background: rgb(255 255 255 / 5%); border-color: var(--control-line); color: var(--text); }
button:not(:disabled):hover, a.text-button:hover, a.outline-button:hover { color: var(--text-strong); background-color: rgb(255 255 255 / 7%); }
button:not(:disabled):active { background-color: rgb(255 255 255 / 3%); }
.primary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; width: 100%;
  border: 1px solid rgb(255 255 255 / 10%); border-radius: 7px; background: var(--control);
  color: var(--text-strong); font-size: 13px; font-weight: 600; padding: 9px 16px;
}
.primary-button:not(:disabled):hover { color: var(--text-strong); background: #25242a; }
.primary-button:not(:disabled):active { background: var(--chip); }
.dashboard { width: min(calc(100% - var(--gutter) * 2), var(--content)); margin: 0 auto; padding-bottom: 120px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.page-heading h1 { font-size: 18px; letter-spacing: -.4px; margin: 6px 0 0; }
.page-heading p { color: var(--secondary); font-size: 13px; margin: 8px 0 0; max-width: 600px; }
.section-label, .eyebrow { display: block; font-size: 11px; font-weight: 500; color: var(--secondary); letter-spacing: 0; text-transform: none; }
.update-note { font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Overview: independent left scroll, full-height editorial feed on the right. */
.overview-grid { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: 24px; align-items: start; }
.overview-panel { position: sticky; top: 120px; display: flex; flex-direction: column; max-height: calc(100dvh - 216px); min-width: 0; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.overview-top { padding: 30px 32px 0; }
.overview-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overview-title h1 { font-size: 15px; margin: 0; }
.overview-title > span { color: var(--muted); font-size: 10px; }
.overview-headline { margin: 28px 0 4px; font-size: 15px; font-weight: 600; color: var(--text-strong); }
.overview-headline span { color: var(--secondary); }
.overview-description { color: var(--muted); font-size: 11px; margin: 0; }
.overview-number { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 0; }
.overview-number strong { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.overview-number span { color: var(--secondary); font-size: 11px; }
.report-chart { position: relative; margin: 20px 0 0; }
.report-chart > svg { display: block; width: 100%; height: 150px; overflow: visible; cursor: crosshair; touch-action: pan-y; }
.chart-guide { stroke: rgb(255 255 255 / 3%); stroke-width: 1; }
.chart-series { stroke: var(--text); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.chart-series.telegram { stroke: var(--violet); opacity: .55; }
.chart-crosshair { stroke: #727176; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chart-legend { display: flex; align-items: center; gap: 18px; margin: 18px 0 24px; color: var(--secondary); font-size: 11px; }
.chart-legend > span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { display: block; width: 2px; height: 12px; background: var(--text); }
.chart-legend .telegram { color: var(--violet); opacity: .65; }
.chart-legend .telegram i { background: var(--violet); }
.chart-legend > small { margin-left: auto; font-size: 10px; color: var(--faint); }
.chart-tooltip { position: absolute; top: 8px; right: 0; z-index: 8; min-width: 170px; pointer-events: none; padding: 12px 14px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 8px; background: #26282c; box-shadow: var(--shadow-float); font-size: 11px; }
.chart-tooltip > span { color: var(--secondary); }
.chart-tooltip p { display: flex; justify-content: space-between; gap: 24px; margin: 8px 0 0; }
.chart-tooltip strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-tooltip .telegram { color: var(--violet); }
.overview-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #29282d transparent; padding: 0 16px 16px; }
.feed-column { min-width: 0; }
.feed-column > .page-heading { min-height: 24px; margin: 2px 0 16px; }
.feed-column > .page-heading h2 { font-size: 12px; color: var(--secondary); font-weight: 500; margin: 0; }
.assessment-card { background: radial-gradient(ellipse at 0 0, #1c1c1a, transparent 70%), #000; border: 0; border-radius: var(--radius); padding: 28px 32px; margin-bottom: 24px; }
.assessment-copy { min-width: 0; }
.assessment-copy > .section-label { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); border-radius: 99px; padding: 4px 9px; font-size: 10px; margin-bottom: 18px; }
.assessment-copy h2 { font-size: 16px; font-weight: 600; letter-spacing: -.2px; margin: 16px 0 8px; }
.alert-description { font-size: 15px; font-weight: 500; color: var(--text); max-width: 590px; margin: 0; line-height: 24px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 4px; background: rgb(95 184 150 / 14%); color: var(--green); font-size: 10px; font-weight: 500; line-height: 1.4; }
.badge:before { content: ""; height: 4px; width: 4px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.badge.signal { color: var(--rose); background: rgb(200 90 110 / 14%); }
.badge.attention { color: var(--orange); background: rgb(191 155 114 / 12%); }
.badge.neutral { color: var(--secondary); background: var(--chip); }
.assessment-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 10px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.alert-level { margin-top: 20px; max-width: 300px; }
.alert-level-heading { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--secondary); }
.alert-level-heading strong { font-size: 12px; font-weight: 500; color: var(--text); }
.alert-level-meter { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; margin-top: 8px; }
.alert-level-meter span { height: 3px; border-radius: 1px; background: #242328; }
.alert-level-meter .filled { background: var(--rose); }
.alert-note { font-size: 11px; line-height: 1.7; color: var(--secondary); }
.alert-details { margin-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.alert-details > summary { padding: 10px 0; color: var(--muted); font-size: 11px; }
.alert-details > summary::after, .classification-details > summary::after { content: " +"; margin-left: 8px; }
.alert-details[open] > summary::after, .classification-details[open] > summary::after { content: " −"; }
.alert-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 12px 0; }
.alert-facts dd { margin: 0; font-size: 18px; font-weight: 600; }
.alert-facts dt { font-size: 10px; color: var(--secondary); }
.alert-explanations { margin-top: 16px; color: var(--secondary); }
.alert-explanation { padding: 10px 0; border-top: 1px solid var(--line); }

/* Recessed groups and etched data rows. */
.system-details, .history-panel { border: 1px solid rgb(0 0 0 / 60%); border-radius: 12px; margin: 12px 0 0; background: var(--surface); }
.system-details > summary, .history-panel > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 12px; font-weight: 500; }
.system-details > summary::after, .history-panel > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 400; }
.system-details[open] > summary::after, .history-panel[open] > summary::after { content: "−"; }
.summary-meta { color: var(--muted); font-size: 10px; font-weight: 400; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collector-card { padding: 4px 16px 16px; }
.collector-card strong { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; }
.collector-card strong[data-tone=good] { color: var(--green); }
.collector-card strong[data-tone=attention] { color: var(--orange); }
.collector-card p { color: var(--secondary); font-size: 11px; }
.collector-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; }
.collector-card dt { color: var(--muted); font-size: 10px; }
.collector-card dd { margin: 3px 0 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.collector-profiles { display: grid; gap: 6px; padding: 0; list-style: none; }
.collector-profile { padding: 10px; background: var(--panel); border-radius: 7px; overflow-wrap: anywhere; }
.collector-profile span, .collector-profile small { font-size: 10px; color: var(--muted); }
.collector-recovery { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--orange); font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid rgb(0 0 0 / 60%); border-radius: 12px; padding: 20px; }
.stat-card { min-width: 0; }
.stat-card + .stat-card:not(.activity-card) { border-left: 1px solid rgb(0 0 0 / 55%); box-shadow: -1px 0 0 var(--line); padding-left: 20px; }
.stat-label { font-size: 10px; color: var(--secondary); display: flex; justify-content: space-between; }
.stat-card > strong { display: block; font-size: 20px; margin: 6px 0 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-caption { font-size: 10px; color: var(--muted); }
.activity-card { grid-column: 1 / -1; border-top: 1px solid rgb(0 0 0 / 55%); box-shadow: var(--etch); margin-top: 18px; padding-top: 14px; }
.activity { display: flex; gap: 5px; margin-top: 10px; min-height: 22px; }
.activity button { border: 0; border-radius: 1px; min-width: 3px; flex: 1; height: 22px; background: var(--control); padding: 0; }
.activity button.clear { background: rgb(95 184 150 / 45%); }
.activity button.signal { background: rgb(200 90 110 / 70%); }
.activity button.attention { background: rgb(191 155 114 / 50%); }
.activity button.selected { outline: 1px solid var(--text); outline-offset: 2px; }
.activity button:focus-visible { outline: 2px solid rgb(255 255 255 / 60%); outline-offset: 3px; }
.activity > span { font-size: 11px; color: var(--muted); }
.system-actions { display: flex; align-items: center; gap: 4px; padding: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.x-balance { font-size: 10px; margin-right: auto; padding: 8px; color: var(--muted); }
.x-balance strong { color: var(--secondary); font-weight: 500; }
.x-balance.attention strong { color: var(--orange); }
.history-content { padding: 0 12px 12px; }
.history-content > select { width: 100%; margin-bottom: 8px; font-size: 11px; }
.history { max-height: 320px; overflow: auto; scrollbar-width: thin; }
.check-row { display: grid; gap: 6px; width: 100%; text-align: left; padding: 12px 4px; background: none; border: 0; border-top: 1px solid rgb(0 0 0 / 55%); box-shadow: var(--etch); }
.check-row[aria-pressed=true] { background: var(--control); border-radius: 7px; }
.check-row-top, .check-row-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.check-row-bottom { font-size: 10px; color: var(--muted); }
.check-row-bottom strong { font-weight: 400; }
.count-pill { font-size: 10px; font-weight: 500; color: var(--info); background: #253958; border: 0; border-radius: 99px; padding: 3px 8px; white-space: nowrap; }

/* Text-led feed. Classifications and source links remain available in a disclosure. */
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { font-size: 15px; letter-spacing: -.2px; margin: 0; }
.section-heading p { font-size: 11px; color: var(--secondary); margin: 5px 0 0; max-width: 530px; }
.feed-toolbar { display: flex; align-items: flex-start; gap: 8px; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field svg { position: absolute; left: 12px; top: 11px; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; padding-left: 36px; background: var(--panel); }
.feed-filters { position: relative; }
.feed-filters > summary { padding: 9px 12px; border: 1px solid var(--control-line); border-radius: 7px; font-size: 12px; background: var(--panel); }
.filter-options { position: absolute; right: 0; top: 44px; width: 270px; display: grid; gap: 14px; padding: 18px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 12px; background: var(--popover); box-shadow: var(--shadow-float); z-index: 12; }
.filter-options label { display: grid; gap: 6px; font-size: 11px; color: var(--secondary); }
.filter-options select { width: 100%; background: rgb(0 0 0 / 18%); }
.filter-hint { display: flex; justify-content: flex-end; gap: 6px; align-items: center; margin: 0; font-size: 10px; color: var(--secondary); }
.feed-caption { display: flex; justify-content: space-between; margin: 16px 0 10px; font-size: 10px; color: var(--muted); }
.posts { display: grid; gap: 14px; }
.post-card { padding: 26px 32px; background: var(--panel); border: 0; border-radius: var(--radius); min-width: 0; content-visibility: auto; contain-intrinsic-size: auto 220px; }
.post-card:hover { background: #100f14; }
.post-header { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; }
.avatar { display: grid; place-items: center; background: #25242b; color: var(--text); border-radius: 50%; width: 22px; height: 22px; flex-shrink: 0; font-size: 8px; font-weight: 600; }
.avatar.tone-1, .avatar.tone-2, .avatar.tone-3 { background: #25242b; color: var(--text); }
.post-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; flex: 1; }
.post-author { font-size: 11px; font-weight: 600; overflow-wrap: anywhere; color: var(--secondary); }
.post-origin { font-size: 10px; color: var(--muted); }
.post-time { font-size: 10px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-text { white-space: pre-wrap; font-size: 14px; line-height: 22px; margin: 0; color: var(--text); max-width: 590px; }
.post-quote { padding: 14px 16px; margin: 18px 0 0; border: 1px solid rgb(0 0 0 / 60%); color: var(--secondary); background: var(--surface); border-radius: 12px; }
.post-quote cite { font-size: 10px; font-style: normal; }
.post-quote p { font-size: 13px; line-height: 21px; white-space: pre-wrap; margin-bottom: 0; }
.post-context { margin-top: 16px; }
.post-context > summary { display: flex; align-items: center; gap: 8px; min-height: 24px; color: var(--muted); font-size: 10px; }
.post-context > summary::after { content: "+"; margin-left: auto; }
.post-context[open] > summary::after { content: "−"; }
.post-classification { margin-top: 12px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.classification-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.classification-score { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.classification-reason { font-size: 11px; color: var(--secondary); margin: 7px 0; }
.classification-details { font-size: 11px; color: var(--muted); }
.classification-details summary { min-height: 30px; display: flex; align-items: center; }
.classification-correction { font-size: 11px; color: var(--violet); }
.post-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 4px; font-size: 10px; color: var(--muted); }
.post-tag, .post-link { display: inline-flex; align-items: center; gap: 5px; }
.post-tag svg, .post-link svg { width: 12px; height: 12px; }
.post-link { min-height: 32px; color: var(--secondary); text-decoration: underline; text-underline-offset: 4px; }
.feed-media { margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; }
.feed-media img, .feed-media video { display: block; width: 100%; max-height: 480px; object-fit: contain; }
.feed-media audio { width: 100%; }
.load-more { display: block; width: 100%; min-height: 40px; border: 0; border-radius: 7px; background: var(--panel); color: var(--secondary); margin-top: 14px; font-size: 12px; }
.empty-state { text-align: center; padding: 36px 20px; background: var(--panel); border-radius: 10px; }
.empty-symbol { color: var(--muted); margin-bottom: 12px; }
.empty-state h3 { font-size: 14px; margin: 0 0 8px; }
.empty-state p { font-size: 12px; color: var(--secondary); max-width: 360px; margin: auto; }
.site-footer { font-size: 10px; line-height: 1.7; color: var(--muted); text-align: center; padding: 24px 8px; }

/* Persistent workspace navigation. */
.app-shell { --sidebar-width: 224px; --gutter: clamp(24px, 3vw, 56px); padding-left: var(--sidebar-width); }
.app-shell .site-header { min-height: 88px; }
.app-shell .site-header .brand { display: none; }
.app-shell .site-header > :last-child { margin-left: auto; }
.app-shell .dashboard, .app-shell .settings-page, .app-shell .trading-page, .app-shell .test-page { padding-bottom: 56px; }
.app-shell .overview-panel { top: 24px; max-height: calc(100dvh - 48px); }
.app-nav { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column; align-items: stretch; gap: 5px; width: var(--sidebar-width); overflow-y: auto; padding: 32px 16px 20px; border-right: 1px solid var(--control-line); background: #100f14; }
.app-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 14px; color: #a7a5ae; border-radius: 8px; font-size: 13px; }
.app-nav a:hover { color: var(--text-strong); background: rgb(255 255 255 / 4%); }
.app-nav a[aria-current=page] { color: #eee8f6; background: #28212f; box-shadow: inset 0 0 0 1px rgb(163 119 195 / 9%); }
.app-nav svg { width: 18px; height: 18px; }
.app-nav .sidebar-brand { margin: 0 0 28px; padding: 4px 12px; color: var(--text-strong); font-size: 18px; font-weight: 600; letter-spacing: -.5px; }
.sidebar-brand img { width: 24px; height: 28px; }
.app-nav .nav-search { min-height: 39px; margin-bottom: 24px; background: var(--control); border: 1px solid var(--control-line); font-size: 12px; }
.nav-heading { padding: 0 14px 8px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-caption { margin-top: auto; padding: 24px 14px 0; font-size: 10px; color: var(--muted); }
.sidebar-toggle, .sidebar-close, .sidebar-backdrop { display: none; }
@media (max-width: 760px) {
  .app-shell { padding-left: 0; --gutter: 20px; }
  .app-shell .site-header { min-height: 80px; }
  .app-shell .site-header .brand { display: inline-flex; }
  .app-shell .site-header .brand small { display: none; }
  .app-shell .site-header > .brand { margin-left: 0; }
  .app-shell .site-header .utility-actions { display: none; }
  .app-nav { width: 264px; padding-top: 28px; transform: translateX(-100%); visibility: hidden; transition: transform 180ms ease, visibility 180ms; }
  .app-shell.nav-open { overflow: hidden; }
  .nav-open .app-nav { transform: translateX(0); visibility: visible; }
  .sidebar-toggle, .sidebar-close { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 10px; border: 1px solid var(--control-line); border-radius: 8px; background: transparent; color: var(--secondary); }
  .sidebar-close { position: absolute; right: 14px; top: 30px; width: 32px; height: 32px; padding: 8px; }
  .app-nav .sidebar-brand { margin-right: 32px; padding-left: 12px; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 45; border: 0; background: #0009; }
  .app-shell .overview-panel { max-height: none; }
}

/* Authentication, offline, and floating UI use the same neutral language. */
.boot { padding: 80px 24px; text-align: center; color: var(--muted); font-size: 12px; }
.sign-in { width: min(calc(100% - 32px), 400px); margin: clamp(24px,9vh,100px) auto; }
.login-card { padding: 32px; background: radial-gradient(ellipse at 0 0, #1c1c1a, transparent 70%), #000; border: 0; border-radius: 10px; }
.login-card h1 { font-size: 18px; letter-spacing: -.4px; margin: 24px 0 12px; }
.login-card p { font-size: 13px; line-height: 22px; color: var(--secondary); margin: 0 0 24px; }
.login-card label { display: block; font-size: 11px; color: var(--secondary); margin-bottom: 8px; }
.login-card input { width: 100%; margin-bottom: 12px; }
.login-card .form-error { color: var(--rose); font-size: 12px; margin: 14px 0 0; }
.install-link { width: 100%; margin-top: 12px; }
.notice, .app-update { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); z-index: 40; padding: 14px 18px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 10px; background: var(--popover); color: var(--text); box-shadow: var(--shadow-float); font-size: 12px; }
.network-banner { padding: 10px 16px; background: var(--chip); color: var(--orange); font-size: 11px; text-align: center; }
.install-dialog { background: var(--popover); color: var(--text); border: 1px solid rgb(255 255 255 / 20%); border-radius: 12px; padding: 28px; width: min(400px,calc(100% - 32px)); line-height: 1.8; box-shadow: var(--shadow-float); }
.install-dialog::backdrop { background: #000a; }
.install-dialog h2 { font-size: 18px; margin: 0; }
.install-dialog p { font-size: 13px; color: var(--secondary); }
.offline-page { width: min(400px,calc(100% - 40px)); margin: 20vh auto; text-align: center; background: var(--panel); padding: 32px; border-radius: 10px; }
.offline-page p { color: var(--secondary); margin-bottom: 24px; }
.tool-links { display: grid; gap: 0; }
.tool-links a { min-height: 40px; display: flex; align-items: center; color: var(--secondary); border-top: 1px solid var(--line); font-size: 12px; }
.tool-links a:hover { color: var(--text); }
.settings-tools { margin-top: 20px; }
.settings-tools > summary { padding: 10px 0; color: var(--secondary); }
.test-classifications { margin-top: 24px; }
.test-post-classification { border-top: 1px solid var(--line); padding-top: 12px; }
.confidence-value { display: flex; gap: 6px; align-items: baseline; }
.confidence-value strong { font-size: 32px; }
progress { accent-color: var(--violet); width: 100%; }

@media (min-width: 1000px) {
  .overview-page .brand { position: fixed; top: calc(43px + env(safe-area-inset-top)); z-index: 20; }
  .overview-page .header-actions, .overview-page .private-label { margin-left: auto; }
}
@media (min-width: 1000px) and (max-height: 740px) {
  .overview-panel { overflow-y: auto; scrollbar-width: thin; }
  .overview-top, .overview-scroll { flex-shrink: 0; }
  .overview-scroll { overflow: visible; }
}
@media (max-width: 1100px) { :root { --gutter: 40px; } .overview-top { padding-inline: 24px; } .post-card, .assessment-card { padding-inline: 24px; } }
@media (max-width: 999px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-panel { position: static; max-height: none; }
  .overview-scroll { overflow: visible; }
  .overview-top { padding: 28px 28px 0; }
  .report-chart > svg { height: 140px; }
  .overview-scroll { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px 20px; }
  .stats-grid { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 2fr; }
  .activity-card { grid-column: auto; border: 0; border-left: 1px solid rgb(0 0 0 / 55%); box-shadow: -1px 0 0 var(--line); padding: 0 0 0 20px; margin: 0 0 0 20px; }
  .system-details, .history-panel { margin: 0; }
  .site-header { min-height: 100px; }
}
@media (max-width: 639px) {
  :root { --gutter: 16px; }
  .site-header { min-height: 88px; gap: 12px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand img { width: 22px; height: 26px; }
  .header-actions { gap: 6px; }
  .site-header .utility-actions { gap: 0; justify-content: flex-end; }
  .site-header .utility-actions .text-button { font-size: 10px; padding: 7px; }
  .page-heading { margin-bottom: 24px; align-items: flex-start; }
  .page-heading h1 { font-size: 18px; }
  .page-heading p { font-size: 12px; }
  .overview-top { padding: 24px 20px 0; }
  .overview-scroll { display: block; padding: 0 12px 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .activity-card { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgb(0 0 0 / 55%); box-shadow: var(--etch); padding: 14px 0 0; margin: 18px 0 0; }
  .system-details, .history-panel { margin-top: 12px; }
  .assessment-card, .post-card { padding: 24px 20px; }
  .assessment-copy h2 { font-size: 16px; }
  .alert-description { font-size: 14px; }
  .post-header { flex-wrap: wrap; gap: 6px; }
  .post-identity { display: block; }
  .post-origin { margin-top: 2px; }
  .post-time { font-size: 9px; }
  input, select, textarea { font-size: 16px; min-height: 44px; }
  .icon-button, .text-button, .outline-button, .secondary-button, .primary-button, .load-more { min-height: 44px; }
  .search-field svg { top: 14px; }
  .feed-filters > summary { min-height: 44px; display: flex; align-items: center; }
  .filter-options { top: 52px; max-width: calc(100vw - 32px); }
  .activity button { min-height: 32px; }
  .chart-legend > small { display: none; }
  .summary-meta { max-width: 50%; }
  .alert-facts { gap: 8px; }
  .site-footer { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.system-paused-banner { display: block; margin: 0 0 20px; padding: 14px 18px; border: 1px solid #9c7344; border-radius: 10px; background: #32281e; color: #f1d5b0; font-size: 13px; line-height: 1.6; }
.system-paused-banner[hidden] { display: none; }
