/* BBS SG Bank - fictional demo site styles.
   Dark banking-tech theme, one legacy CRT panel, no external assets. */

:root {
  --bg: #070d1a;
  --bg-soft: #0b1220;
  --surface: #0f172b;
  --surface-2: #141f38;
  --surface-3: #1b2745;
  --line: #24314f;
  --line-soft: #1a2540;
  --text: #e8eefb;
  --muted: #8fa1c2;
  --muted-2: #6c7fa3;
  --accent: #5b8dff;
  --accent-2: #37d4f0;
  --good: #3ddc97;
  --warn: #ffb648;
  --bad: #ff6b81;
  --crt-bg: #05130c;
  --crt-text: #4dff9b;
  --crt-dim: #23a866;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Author display rules would otherwise beat the user-agent [hidden] rule. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, #16264a 0%, transparent 60%),
    radial-gradient(700px 420px at 92% 4%, #10283a 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.4rem; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h2 { font-size: clamp(1.1rem, 1.9vw, 1.35rem); }
h3 { font-size: 1rem; }
p { margin: 0 0 0.8rem; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.86em; background: #0d1729; }

code {
  background: #0d1729;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  color: #b9cbef;
}

.muted { color: var(--muted); }
.good { color: var(--good); }
.warn { color: var(--warn); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--accent); color: #04101f; padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 13, 26, 0.88);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__inner {
  max-width: 1320px; margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 0.65rem; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), #2f5fd0);
  color: #04101f; font-weight: 800; font-size: 0.76rem; letter-spacing: 0.04em;
  box-shadow: 0 8px 20px -12px var(--accent);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.14rem; letter-spacing: -0.01em; }
.brand__text small { color: var(--muted); font-size: 0.72rem; }
.brand__mark--sm { width: 36px; height: 36px; border-radius: 10px; font-size: 0.68rem; }

.tabs {
  display: flex; gap: 0.2rem; margin-left: auto; overflow-x: auto;
  scrollbar-width: none; max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 0.45rem 0.75rem; border-radius: 999px; color: var(--muted);
  font-size: 0.86rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent;
}
.tab:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.tab.is-active { color: var(--text); background: var(--surface-3); border-color: var(--line); }

.statuses { display: flex; gap: 0.4rem; align-items: center; }
.pill {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.28rem 0.55rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); white-space: nowrap; font-family: var(--mono);
}
.pill--demo { color: #ffd7a1; border-color: #5a4523; background: #2a2010; }
.pill--engine { color: #a9d8ff; border-color: #26456b; background: #0d1e33; }



/* ------------------------------------------------------------------ layout */

main { max-width: 1320px; margin: 0 auto; padding: 1.4rem 1.25rem 3rem; }

.view { display: none; }
.view.is-active { display: block; animation: fade 0.25s ease; }
/* No opacity in the from-state: a webview that throttles or freezes animations
   would otherwise leave the whole view stuck invisible. */
@keyframes fade { from { transform: translateY(6px); } to { transform: none; } }

.eyebrow {
  margin: 0 0 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--warn { color: var(--warn); }
.eyebrow--good { color: var(--good); }
.lede { color: var(--muted); max-width: 68ch; }

.section-head {
  display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 1.1rem;
}
.section-head__tools { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; }

.panel {
  background: linear-gradient(180deg, rgba(20, 31, 56, 0.9), rgba(12, 19, 35, 0.95));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.1rem 1.15rem; box-shadow: var(--shadow);
}
.panel--flat { margin-top: 1.25rem; }
.panel--legacy { border-color: #3a2f1c; }
.panel--modern { border-color: #1e3a5c; }
.panel__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem;
  margin-bottom: 0.9rem; flex-wrap: wrap;
}
.panel__head h2 { margin: 0; }

.chip {
  font-family: var(--mono); font-size: 0.72rem; padding: 0.2rem 0.5rem;
  border-radius: 6px; border: 1px solid var(--line); background: #0d1729; color: var(--muted);
}
.chip--mono { color: #9fc0f0; }

.note { color: var(--muted); font-size: 0.82rem; margin: 0.7rem 0 0; }
.note--tight { margin-top: 0.5rem; }

/* -------------------------------------------------------------------- hero */

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 1.2rem; align-items: start; margin-bottom: 1.4rem; }
.hero__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.kpi {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
}
.kpi dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kpi dd { margin: 0.15rem 0 0; font-size: 1.3rem; font-weight: 700; font-family: var(--mono); }
.kpi small { color: var(--muted); font-size: 0.7rem; }

/* --------------------------------------------------------------- buttons */

.btn {
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  padding: 0.52rem 0.95rem; border-radius: 9px; color: var(--text);
  background: var(--surface-3); border: 1px solid var(--line);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #22314f; border-color: #33456b; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn--primary { background: linear-gradient(140deg, var(--accent), #2f5fd0); border-color: #3f6fd9; color: #f4f8ff; }
.btn--primary:hover { background: linear-gradient(140deg, #6c9aff, #3a6ee0); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--text); background: var(--surface-2); }
.btn--tiny { padding: 0.3rem 0.6rem; font-size: 0.78rem; }
.btn--wide { width: 100%; margin-top: 0.3rem; }
.btn--danger { color: #ffc7cf; border-color: #5c2b36; background: #2a1419; }
.btn--danger:hover { background: #371a21; }
.btn--crt {
  font-family: var(--mono); font-size: 0.76rem; color: var(--crt-text);
  background: #08180f; border-color: #1c5c3a;
}
.btn--crt:hover { background: #0d2417; color: #7bffbe; }

/* -------------------------------------------------------------- comparison */

.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }

/* ------------------------------------------------------------------ CRT */

.crt {
  border-radius: 11px; overflow: hidden; border: 1px solid #1c5c3a;
  background: var(--crt-bg); box-shadow: inset 0 0 60px rgba(0, 255, 140, 0.08);
  position: relative;
}
.crt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: 0.55;
}
.crt__bar {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.7rem;
  background: #0a2216; border-bottom: 1px solid #17502f;
  font-family: var(--mono); font-size: 0.72rem; color: var(--crt-dim); letter-spacing: 0.05em;
}
.crt__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crt-text); box-shadow: 0 0 8px var(--crt-text); }
.crt__clock { margin-left: auto; }
.crt__screen {
  margin: 0; padding: 0.85rem 0.9rem; min-height: 264px;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.5;
  color: var(--crt-text); text-shadow: 0 0 8px rgba(77, 255, 155, 0.45);
  white-space: pre-wrap; word-break: break-word;
}
.crt__screen .dim { color: var(--crt-dim); text-shadow: none; }
.crt__screen .bad { color: #ff9d6b; }
.crt__screen .cursor { background: var(--crt-text); color: var(--crt-bg); }
.crt__foot {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.55rem 0.7rem; border-top: 1px solid #17502f; background: #0a2216;
}
.crt__hint { font-size: 0.7rem; color: var(--crt-dim); font-family: var(--mono); }

/* --------------------------------------------------------------- bullets */

.bullets { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.bullets li {
  position: relative; padding-left: 1.5rem; font-size: 0.87rem; color: #c6d3ea;
}
.bullets li::before {
  position: absolute; left: 0; top: 0; font-size: 0.8rem;
}
.bullets--pain li::before { content: "▲"; color: var(--warn); }
.bullets--gain li::before { content: "▼"; color: var(--good); }
.bullets strong { color: var(--text); }

/* ---------------------------------------------------------- code reveal */

.code-reveal { margin-top: 1rem; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: #0a1120; }
.code-reveal > summary {
  cursor: pointer; padding: 0.55rem 0.8rem; font-size: 0.82rem; color: var(--muted); font-weight: 600;
}
.code-reveal > summary:hover { color: var(--text); }
.code {
  margin: 0; padding: 0.8rem 0.9rem; max-height: 340px; overflow: auto;
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.5; color: #a8bcdd;
  background: #070d19; border-top: 1px solid var(--line-soft); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  white-space: pre; tab-size: 4;
}
.code .line { display: inline-block; min-width: 100%; }
.code .ln { display: inline-block; width: 2.6rem; color: #46587c; user-select: none; }
.code .hit { background: rgba(255, 182, 72, 0.12); color: #ffd79a; }
.code .cmt { color: #6f86a8; }

/* ------------------------------------------------------------- mini dash */

.mini-dash { display: grid; gap: 0.9rem; }
.mini-dash__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.mini-tile {
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem; display: grid; gap: 0.1rem;
}
.mini-tile__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.mini-tile strong { font-size: 1.05rem; font-family: var(--mono); }
.mini-tile small { color: var(--muted); font-size: 0.67rem; }
.mini-dash__title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.bars li { display: grid; grid-template-columns: 10.5rem 1fr auto; gap: 0.5rem; align-items: center; font-size: 0.78rem; }
.bars__name { color: #c6d3ea; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__track { background: #0b1322; border-radius: 999px; height: 8px; overflow: hidden; border: 1px solid var(--line-soft); }
.bars__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bars__value { font-family: var(--mono); color: var(--muted); }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; max-height: 210px; overflow: auto; }
.feed--tall { max-height: 420px; }
.feed li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.55rem; align-items: center;
  padding: 0.5rem 0.6rem; border: 1px solid var(--line-soft); border-radius: 8px; background: #0d1626;
  font-size: 0.8rem;
}
.feed__empty { color: var(--muted); grid-template-columns: 1fr !important; }
.feed__badge {
  font-family: var(--mono); font-size: 0.68rem; padding: 0.12rem 0.35rem; border-radius: 5px;
  border: 1px solid var(--line); color: var(--muted);
}
.feed__badge--posted { color: var(--good); border-color: #1f5c43; background: #0b2018; }
.feed__badge--rejected { color: var(--warn); border-color: #5c4520; background: #241a0a; }
.feed__body { display: flex; flex-direction: column; line-height: 1.35; overflow: hidden; }
.feed__body span { color: var(--muted); font-size: 0.72rem; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.feed__amount { font-family: var(--mono); font-size: 0.82rem; }

/* ------------------------------------------------------------------ table */

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: #0b1322; }
.table-wrap--scroll { max-height: 340px; overflow-y: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.table th, .table td { padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table thead th {
  position: sticky; top: 0; background: #101b2f; color: var(--muted);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; z-index: 1;
}
.table tbody tr:hover { background: #101c31; }
.table tbody tr.is-selected { background: #14233d; }
.table .num { text-align: right; font-family: var(--mono); }
.table tfoot th, .table tfoot td { border-top: 1px solid var(--line); background: #101b2f; font-weight: 700; }
.table--compact th, .table--compact td { padding: 0.4rem 0.55rem; font-size: 0.78rem; }
.table__loading { color: var(--muted); text-align: center; padding: 1.2rem; }
.table--matrix td.good { color: #a9f0cf; }
.table--matrix th[scope="row"] { color: var(--muted); font-weight: 600; }
.row-name { display: block; color: var(--muted); font-size: 0.7rem; }
.id-mono { font-family: var(--mono); }
.tag { font-family: var(--mono); font-size: 0.7rem; padding: 0.1rem 0.35rem; border-radius: 5px; border: 1px solid var(--line); }
.tag--posted { color: var(--good); border-color: #1f5c43; background: #0b2018; }
.tag--rejected { color: var(--warn); border-color: #5c4520; background: #241a0a; }
.tag--kind { color: #b9cbef; }
.account-cell { color: var(--text); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.account-cell:hover { text-decoration: underline; color: var(--accent); }

/* ------------------------------------------------------------------ steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.steps li { display: flex; gap: 0.7rem; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 0.8rem; }
.steps__n {
  flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #1d2f52; color: #cfe0ff; font-weight: 700; font-size: 0.78rem; font-family: var(--mono);
}
.steps p { margin: 0; color: var(--muted); font-size: 0.83rem; }

/* ------------------------------------------------------------------ forms */

.field { display: grid; gap: 0.3rem; margin-bottom: 0.7rem; font-size: 0.8rem; color: var(--muted); }
.field > span { font-weight: 600; }
.field--inline { margin: 0; }
.field--inline > span { font-size: 0.72rem; }
.field--check { flex-direction: row; display: flex; align-items: center; gap: 0.5rem; color: #c6d3ea; }
.field--search input { min-width: 220px; }
input[type="text"], input[type="number"], input[type="search"], select, textarea {
  font: inherit; font-size: 0.88rem; color: var(--text); background: #0b1322;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.6rem; width: 100%;
}
input:focus, select:focus { border-color: #3f6fd9; outline: none; box-shadow: 0 0 0 3px rgba(91, 141, 255, 0.16); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
output { font-family: var(--mono); color: var(--text); }

.post-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.form .field:last-of-type { margin-bottom: 0.4rem; }

.segmented { border: 0; margin: 0 0 0.8rem; padding: 0; display: flex; gap: 0.3rem; background: #0b1322; border-radius: 10px; padding: 0.25rem; }
.segmented label { flex: 1; text-align: center; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented span {
  display: block; padding: 0.42rem 0.3rem; border-radius: 7px; font-size: 0.82rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
}
.segmented input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: 0 3px 12px -8px #000; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-2); }
.quick { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.8rem; }

/* --------------------------------------------------------------- batch UI */

.batch-controls { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 1.6fr) auto auto; gap: 0.9rem; align-items: end; }
.progress { margin-top: 1rem; height: 6px; background: #0b1322; border-radius: 999px; overflow: hidden; border: 1px solid var(--line-soft); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.25s ease; }

.results { margin-top: 1.1rem; display: grid; gap: 1rem; }
.results__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.tile { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 0.7rem; display: grid; gap: 0.15rem; }
.tile span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tile strong { font-family: var(--mono); font-size: 1.15rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.checks li { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; }
.checks .ok { color: var(--good); }
.checks .ko { color: var(--warn); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1rem; }
.split h3 { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.84rem; }
.reasons li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.4rem 0.55rem; border: 1px solid var(--line-soft); border-radius: 8px; background: #0d1626; }
.reasons b { font-family: var(--mono); color: var(--warn); }

/* ------------------------------------------------------------ benchmark UI */

.presets { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin: 0 0 1rem; font-size: 0.8rem; }

.bench-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.bench-card { font-size: 0.88rem; }
.bench-metric { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line-soft); }
.bench-metric:last-of-type { border-bottom: 0; }
.bench-metric span { color: var(--muted); font-size: 0.82rem; }
.bench-metric strong { font-family: var(--mono); font-size: 1rem; }
.bench-unavailable {
  border: 1px dashed #5c4520; background: #1d1708; border-radius: var(--radius-sm);
  padding: 0.8rem; color: #e7cf9f; font-size: 0.85rem;
}
.bench-verdict { font-size: 1rem; }
.notes-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.82rem; color: var(--muted); }
.notes-list li::before { content: "• "; color: var(--accent); }
.env { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.8rem; margin: 0.9rem 0 0; font-size: 0.79rem; }
.env dt { color: var(--muted); font-family: var(--mono); }
.env dd { margin: 0; font-family: var(--mono); color: #c6d3ea; word-break: break-all; }

/* ---------------------------------------------------------------- toasts */

.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: grid; gap: 0.5rem; max-width: min(380px, 92vw); }
.toast {
  background: var(--surface-3); border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 10px; padding: 0.65rem 0.8rem; font-size: 0.85rem; box-shadow: var(--shadow);
  animation: slide 0.2s ease;
}
.toast--good { border-left-color: var(--good); }
.toast--warn { border-left-color: var(--warn); }
.toast--bad { border-left-color: var(--bad); }
.toast strong { display: block; margin-bottom: 0.1rem; }
.toast span { color: var(--muted); font-size: 0.78rem; }
@keyframes slide { from { transform: translateX(12px); } to { transform: none; } }

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line-soft); background: #060c18;
  padding: 1.4rem 1.25rem; color: var(--muted); font-size: 0.8rem;
}
.footer__inner { max-width: 1320px; margin: 0 auto; display: grid; gap: 0.75rem; }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; }
.footer__brand .brand__text strong { color: var(--text); font-size: 1.02rem; }
.disclosure {
  margin: 0; padding: 0.7rem 0.85rem; font-size: 0.8rem; line-height: 1.5; color: #d9c99e;
  background: linear-gradient(90deg, #221b0d, #12130f 78%);
  border: 1px solid #3a2f18; border-radius: var(--radius-sm);
}
.footer__meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.74rem; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .comparison, .bench-grid { grid-template-columns: minmax(0, 1fr); }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .batch-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-controls .btn { width: 100%; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .tabs { order: 3; width: 100%; margin-left: 0; padding-bottom: 0.15rem; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  main { padding: 1.1rem 0.9rem 2.4rem; }
  .topbar__inner { padding: 0.6rem 0.9rem; }
  .statuses { margin-left: auto; }
  .results__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-controls { grid-template-columns: minmax(0, 1fr); }
  .mini-dash__row { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .bars li { grid-template-columns: 7rem 1fr auto; font-size: 0.72rem; }
  .crt__screen { font-size: 0.72rem; min-height: 220px; }
  .section-head { align-items: flex-start; }
  .section-head__tools { width: 100%; }
  .section-head__tools .btn, .section-head__tools .field { flex: 1 1 auto; }
  .field--search input { min-width: 0; }
  .table { font-size: 0.79rem; }
  .table th, .table td { padding: 0.45rem 0.5rem; }
  .toasts { right: 0.6rem; left: 0.6rem; bottom: 0.6rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
