/* KRAFT Terminal — same palette, type and panel language as elian.ink and markets.elian.ink */
:root {
  --black: #000000;
  --green: #39FF14;
  --steel-100: #dfe2e5;   /* primary text */
  --steel-300: #a7acb2;   /* body text */
  --steel-500: #80858b;   /* labels */
  --steel-700: #3b3e42;   /* strong dividers */
  --steel-800: #222427;   /* hairlines */
  --steel-900: #121314;   /* fills */

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --gap: clamp(12px, 1.6vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--steel-300);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums; min-height: 100vh;
}
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--black); }
:focus-visible { outline: 1px solid var(--green); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--green); color: var(--black); padding: 8px 12px; z-index: 100; font-family: var(--mono); font-size: 13px; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--black); border-bottom: 1px solid var(--steel-800); }
.bar { display: flex; align-items: center; gap: 14px; height: 60px; }
.wordmark { font-weight: 600; font-size: 16px; letter-spacing: .32em; color: var(--steel-100); text-decoration: none; }
.wordmark span { color: var(--green); }
.crumb { color: var(--steel-300); white-space: nowrap; }
.tabs { margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; display: flex; gap: clamp(14px, 2.2vw, 30px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-300);
  background: none; border: 0; padding: 8px 0; white-space: nowrap; cursor: pointer; border-bottom: 1px solid transparent;
}
.tabs button:hover { color: var(--steel-100); }
.tabs button[aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); }
.tabs .count { color: var(--black); background: var(--green); padding: 0 5px; margin-left: 6px; font-size: 10px; }
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 6px; row-gap: 6px; }
  .tabs { margin-left: 0; width: 100%; }
}

.status { border-top: 1px solid var(--steel-800); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding-top: 9px; padding-bottom: 9px; font-size: 11px; }
.status-row > span { display: inline-flex; align-items: center; gap: 8px; }
.status-row .push { margin-left: auto; }
.dot { width: 6px; height: 6px; background: var(--steel-700); display: inline-block; }
.dot.on { background: var(--green); }
.dot.warn { background: transparent; outline: 1px solid var(--steel-300); outline-offset: -1px; }
.dot.busy { background: var(--green); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.linkbtn { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: none; border: 0; color: var(--green); cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:disabled { color: var(--steel-500); cursor: default; text-decoration: none; }

/* ── Sections ── */
main { padding-top: clamp(32px, 5vw, 64px); }
.view[hidden] { display: none; }
.section-head { display: grid; gap: 8px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.section-head h2 { font-weight: 300; color: var(--steel-100); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.02em; }
.note { max-width: 62ch; font-size: 15px; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 32px; align-items: baseline; }
  .section-head h2 { grid-column: 1; }
  .section-head > .mono { grid-column: 1 / -1; }
  .section-head .note { grid-column: 2; grid-row: 2; }
}
.sub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin: clamp(32px, 4vw, 56px) 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--steel-700); }
.sub-head h3 { font-weight: 400; font-size: 18px; color: var(--steel-100); letter-spacing: -.005em; }
.sub-head .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

/* ── Grid & panels ── */
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.panel, .tile {
  position: relative; border: 1px solid var(--steel-800); background: var(--black);
  padding: clamp(16px, 1.8vw, 24px); min-width: 0;
}
/* registration marks */
.panel::before, .tile::before, .panel::after, .tile::after {
  content: ""; position: absolute; width: 8px; height: 8px; border: 0 solid var(--steel-500); pointer-events: none;
}
.panel::before, .tile::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.panel::after, .tile::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.panel-h { font-weight: 500; font-size: 15px; color: var(--steel-100); margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }

.tile { display: flex; flex-direction: column; gap: 6px; }
.tile-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile-top .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big { font-weight: 300; color: var(--steel-100); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mid { font-weight: 300; color: var(--steel-100); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 12px; color: var(--steel-500); }
.meta-row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--steel-500); border-top: 1px solid var(--steel-800); padding-top: 10px; margin-top: auto; }
.up { color: var(--green); }
.down { color: var(--steel-100); }
.flat, .na { color: var(--steel-500); }
.flash-up { animation: flash .8s ease-out; }
.flash-down { animation: flashd .8s ease-out; }
@keyframes flash { from { color: var(--green); } }
@keyframes flashd { from { color: var(--steel-500); } }

/* ── Movers ── */
.mover { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--steel-800); cursor: pointer; }
.mover:last-child { border-bottom: 0; }
.mover:hover .sym { color: var(--green); }
.mover .sym { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--steel-100); }
.mover .nm { font-size: 12px; color: var(--steel-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mover .r { text-align: right; font-family: var(--mono); font-size: 12px; }
.mover .r b { display: block; font-weight: 400; font-size: 14px; }
.empty { font-family: var(--mono); font-size: 12px; color: var(--steel-500); padding: 18px 0; letter-spacing: .04em; }

/* ── Heatmap ── */
#heatmap { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.heat-group { min-width: 0; }
.heat-group > .mono { display: block; font-size: 10.5px; margin-bottom: 8px; }
.heat { display: flex; flex-wrap: wrap; gap: 4px; }
.cell { border: 1px solid var(--steel-800); padding: 10px 10px 9px; cursor: pointer; text-align: left; background: var(--black); color: var(--steel-100); width: 104px; min-height: 62px; display: flex; flex-direction: column; justify-content: space-between; }
.cell:hover { border-color: var(--steel-300); }
.cell .s { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.cell .p { font-family: var(--mono); font-size: 13px; }
.cell.ink { color: var(--black); }

/* ── Buttons & inputs ── */
.btn { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); background: transparent; border: 1px solid var(--green); padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--green); color: var(--black); }
.btn.ghost { color: var(--steel-300); border-color: var(--steel-800); }
.btn.ghost:hover { border-color: var(--steel-300); color: var(--steel-100); background: transparent; }
.btn.small { padding: 5px 9px; font-size: 10.5px; }
.btn.danger:hover { border-color: var(--steel-100); color: var(--black); background: var(--steel-100); }
.btn:disabled { opacity: .4; cursor: default; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipset button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-300);
  background: transparent; border: 1px solid var(--steel-800); padding: 6px 9px; cursor: pointer;
}
.chipset button:hover { border-color: var(--steel-500); color: var(--steel-100); }
.chipset button[aria-pressed="true"] { border-color: var(--green); color: var(--green); }

input, select, textarea {
  background: var(--black); color: var(--steel-100); border: 1px solid var(--steel-800); padding: 9px 10px;
  font: 400 14px/1.4 var(--sans); width: 100%; border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--steel-500); outline: none; }
input.mono-in, select.mono-in { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel-500) 50%), linear-gradient(-45deg, transparent 50%, var(--steel-500) 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
textarea { min-height: 84px; resize: vertical; }
label.f { display: grid; gap: 6px; }
label.f > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.inline { display: flex; gap: 8px; }
.inline input { width: auto; flex: 1; min-width: 0; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); text-align: right; padding: 0 0 10px 14px; border-bottom: 1px solid var(--steel-700); white-space: nowrap; }
table.data td { text-align: right; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--steel-800); color: var(--steel-100); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; padding-left: 0; }
table.data td .sym { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--steel-100); }
table.data td .nm { font-size: 12px; color: var(--steel-500); }
table.data td.wrap-cell { white-space: normal; text-align: left; font-family: var(--mono); font-size: 11px; color: var(--steel-500); max-width: 420px; }
table.data tr.total td { border-bottom-color: var(--steel-700); border-top: 1px solid var(--steel-700); }

.share { display: inline-block; width: 72px; height: 6px; background: var(--steel-800); vertical-align: middle; margin-left: 10px; position: relative; }
.share i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); }
.alloc { display: flex; height: 14px; margin: 4px 0 18px; border: 1px solid var(--steel-800); }
.alloc i { display: block; height: 100%; border-right: 1px solid var(--black); }
.alloc-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--steel-800); font-size: 13px; }
.alloc-list .sym { font-family: var(--mono); font-size: 12px; color: var(--steel-100); }
.alloc-list .bar { height: 6px; background: var(--steel-800); position: relative; }
.alloc-list .bar i { position: absolute; inset: 0 auto 0 0; background: var(--green); }
.alloc-list .v { font-family: var(--mono); font-size: 12px; color: var(--steel-300); text-align: right; }

/* ── Watchlist cards ── */
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-top .sym { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: var(--steel-100); }
.card-top .nm { font-size: 13px; color: var(--steel-300); margin-top: 2px; }
.card-top .cat { font-size: 10.5px; margin-top: 2px; }
.pill { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--steel-700); color: var(--steel-500); padding: 2px 7px; white-space: nowrap; }
.pill.buy { border-color: var(--green); color: var(--green); }
.pill.sell { border-color: var(--steel-100); color: var(--steel-100); }
.pill.hold { border-color: var(--steel-500); color: var(--steel-300); }
.pill.ink { background: var(--green); color: var(--black); border-color: var(--green); }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.price-line .chg { font-family: var(--mono); font-size: 12px; }
.spark { display: block; width: 100%; height: 48px; margin: 8px 0 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12.5px; border-top: 1px solid var(--steel-800); padding-top: 10px; margin-top: 6px; }
.kv dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); padding-top: 2px; }
.kv dd { margin: 0; text-align: right; color: var(--steel-100); font-family: var(--mono); font-size: 12px; }
.range { position: relative; height: 6px; background: var(--steel-800); margin-top: 6px; }
.range i { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--green); transform: translateX(-1px); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.card-foot { display: flex; align-items: flex-start; gap: 12px; margin-top: auto; padding-top: 12px; }
.card-foot .notes { flex: 1; margin-top: 0; min-width: 0; }
.linkbtn.rm { color: var(--steel-500); font-size: 10.5px; }
.linkbtn.rm:hover { color: var(--steel-100); }
.notes { margin-top: 12px; }
.notes summary { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); cursor: pointer; list-style: none; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::before { content: "+ "; }
.notes[open] summary::before { content: "− "; }
.notes summary.has::after { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--green); margin-left: 8px; vertical-align: middle; }
.notes textarea { margin-top: 8px; font-size: 13px; min-height: 70px; }

/* ── Charts ── */
.chart-cell { padding: 0; }
.chart-cell .hdr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border-bottom: 1px solid var(--steel-800); }
.chart-cell .hdr select { width: auto; min-width: 120px; padding-top: 6px; padding-bottom: 6px; }
.chart-cell .hdr .nm { font-size: 13px; color: var(--steel-300); flex: 1; min-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-cell .hdr .px { font-family: var(--mono); font-size: 12px; color: var(--steel-100); }
.chart-cell iframe { width: 100%; height: 440px; border: 0; display: block; background: var(--black); }
.add-cell { display: flex; align-items: center; justify-content: center; min-height: 200px; border: 1px dashed var(--steel-700); background: none; color: var(--steel-500); cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.add-cell:hover { color: var(--green); border-color: var(--green); }

/* ── KRAFT chart ── */
.chart-main { padding: 0; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 12px 16px; border-bottom: 1px solid var(--steel-800); }
.chart-head .sym { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: var(--steel-100); }
.chart-head .nm { font-size: 13px; color: var(--steel-300); margin-left: 8px; }
.chart-head .mono { font-size: 10.5px; }
.chart-box { position: relative; height: clamp(380px, 62vh, 640px); }
.chart-box.drawing { cursor: crosshair; }
.chart-box > .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.chart-box > .empty[hidden] { display: none; }
.chart-legend { position: absolute; left: 12px; top: 8px; z-index: 3; pointer-events: none; font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--steel-500); }
.chart-legend b { font-weight: 400; color: var(--steel-100); margin-right: 6px; }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 16px; border-top: 1px solid var(--steel-800); }
.chart-foot .mono { font-size: 10.5px; }
.ch-bar .tools { gap: 10px 14px; }
.pill.tiny { font-size: 9px; padding: 0 5px; margin-left: 6px; vertical-align: middle; border-color: var(--steel-700); color: var(--steel-300); }
code { font-family: var(--mono); font-size: .9em; color: var(--steel-100); }

/* ── Alerts ── */
.alert-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto auto; gap: 6px 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--steel-800); }
.alert-row .sym { font-family: var(--mono); font-size: 13px; color: var(--steel-100); letter-spacing: .06em; }
.alert-row .d { font-size: 14px; color: var(--steel-100); }
.alert-row .d small { display: block; font-size: 12px; color: var(--steel-500); }
.alert-row .acts { display: flex; gap: 6px; }
@media (max-width: 600px) { .alert-row { grid-template-columns: 1fr auto; } .alert-row .acts { grid-column: 1 / -1; } }
.steps { font-size: 13px; color: var(--steel-300); margin: 10px 0 12px; }
.steps li { list-style: decimal; margin-left: 18px; padding-left: 4px; }
.status-msg { font-family: var(--mono); font-size: 11px; margin-top: 8px; min-height: 16px; }

/* ── Journal ── */
.entry { display: grid; gap: 12px; }
.entry .when { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.entry .thesis { color: var(--steel-100); font-size: 16px; line-height: 1.5; white-space: pre-wrap; border-left: 1px solid var(--green); padding-left: 14px; }
.entry .assets { display: flex; flex-wrap: wrap; gap: 6px; }
.entry .asset { font-family: var(--mono); font-size: 12px; border: 1px solid var(--steel-800); padding: 5px 8px; color: var(--steel-300); }
.entry .asset b { color: var(--steel-100); font-weight: 500; letter-spacing: .06em; }
.entry .tags { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); }
.entry .tags span::before { content: "#"; color: var(--steel-700); }
.entry .score { font-family: var(--mono); font-size: 12px; }

/* ── Modal ── */
dialog { background: var(--black); color: var(--steel-300); border: 1px solid var(--steel-700); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog::backdrop { background: rgba(0, 0, 0, .78); }
dialog .m-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--steel-800); }
dialog .m-head h3 { font-weight: 400; font-size: 18px; color: var(--steel-100); }
dialog .m-body { padding: 20px; display: grid; gap: 14px; overflow-y: auto; }
dialog .m-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
dialog .m-foot .left { margin-right: auto; }
.picklist { max-height: 220px; overflow-y: auto; border: 1px solid var(--steel-800); }
.picklist label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--steel-900); cursor: pointer; font-family: var(--mono); font-size: 12px; }
.picklist label:hover { background: var(--steel-900); }
.picklist input { width: 14px; height: 14px; accent-color: var(--green); margin: 0; }
.picklist .px { margin-left: auto; color: var(--steel-500); }
.help dt { color: var(--steel-100); font-weight: 500; font-size: 14px; margin-top: 12px; }
.help dd { margin: 4px 0 0; font-size: 13.5px; }

/* ── Tooltip & toast ── */
.tip {
  position: fixed; z-index: 50; pointer-events: none; background: var(--black); color: var(--steel-300);
  border: 1px solid var(--steel-700); padding: 10px 12px; font-size: 12px; line-height: 1.5; max-width: 300px; display: none;
}
.tip b { font-weight: 500; color: var(--steel-100); font-family: var(--mono); letter-spacing: .06em; }
.tip .mono { font-size: 10px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--black); border: 1px solid var(--green); color: var(--steel-100); font-family: var(--mono); font-size: 12px; padding: 10px 14px; max-width: 360px; }
.toast.err { border-color: var(--steel-100); }

.banner { border: 1px solid var(--steel-700); padding: 12px 14px; font-size: 13.5px; margin-bottom: var(--gap); display: flex; gap: 12px; align-items: baseline; }
.banner[hidden] { display: none; }
.banner .mono { flex-shrink: 0; color: var(--steel-100); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--steel-800); margin-top: clamp(64px, 8vw, 120px); padding: 24px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 10.5px; }
.site-footer a { color: var(--steel-300); }

@media (max-width: 520px) { .tile .big { font-size: 22px; } .cell { width: calc(33.33% - 3px); } }

@media (prefers-reduced-motion: reduce) {
  .flash-up, .flash-down, .dot.busy { animation: none; }
}
