/* Home: same layout as before, terminal look */
body.home #app { padding-top: 4px; }

/* hero */
.bay { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; margin-top: 14px; }
.bay-l { padding: 14px 2ch 12px; min-width: 0; }
.bay-l h1 { margin: 0 0 6px; }
.bay-l h1 em { color: var(--green); }
.bay-l .lead { color: var(--muted); max-width: 90ch; margin: 0 0 var(--lh); }
.assembly { display: block; }
.assembly .row { display: flex; align-items: baseline; justify-content: space-between; gap: 2ch; flex-wrap: wrap; margin-bottom: 4px; }
.assembly .big { font-weight: 700; color: var(--text); }
.assembly .big small { color: var(--muted); font-weight: 400; }
.assembly .to { color: var(--blue); }
.assembly:hover .bar { outline: 1px solid var(--green); }
.assembly-note { margin-top: 8px; color: var(--muted); }
.assembly-note a { color: var(--blue); }
.assembly-note a:hover { text-decoration: underline; }
.bay-cta { display: flex; gap: 2ch; flex-wrap: wrap; margin-top: 10px; }
.bay-r { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 14px 2ch 12px; border-left: 1px solid var(--line); min-width: 0; }
.bay-r .stage { width: auto; aspect-ratio: auto; }
.tbar { margin: 0; font: inherit; white-space: pre; overflow: hidden; }
.bay-r .tag { margin-top: 6px; text-align: center; }
.bay-r .tag b { color: var(--text); }
.bay-r .tag span { color: var(--muted); }

/* counters: four small boxes, label in the border */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1ch; margin-top: 4px; }
.counter { display: block; padding: 12px 1ch 6px; min-width: 0; }
.counter:hover { border-color: var(--green); }
.counter:hover .lbl { color: var(--green); }
.counter .v { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.counter.burnc .v { color: var(--orange); }
.counter .s { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* bots + callouts */
.floor { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0 1ch; margin-top: 14px; align-items: stretch; }
.floor > * { min-width: 0; }
.floor .plate > .panel-h:first-child .crew-legend { display: flex; gap: 2ch; }
.floor .panel-b { padding: 14px 1ch 6px; }
.floor .crew { grid-template-columns: repeat(auto-fill, minmax(15ch, 1fr)); }
.tile .nextpct { height: 100px; display: flex; align-items: center; color: var(--blue); margin-bottom: 4px; }
.radio .channel { flex: 1 1 auto; }
.radio > .panel-h:last-child { display: flex; justify-content: space-between; gap: 2ch; flex-wrap: wrap; padding: 6px 1ch; border-top: 1px solid var(--line) !important; }
.radio > .panel-h:last-child .meta { color: var(--faint); }
.radio > .panel-h:last-child .more { color: var(--blue); height: auto; border: 0; margin: 0; padding: 0; }
.radio > .panel-h:last-child .more::before { content: none; }

/* trades tape */
.tape { list-style: none; margin: 0; padding: 12px 1ch 6px; }
.tape li { display: grid; grid-template-columns: 5ch 22px minmax(0, 1fr) auto; gap: 0 1ch; align-items: center; padding: 1px 0; }
.tape li:hover { background: var(--sel); }
.tape time { color: var(--faint); }
.tape img.face, .tape span.face { width: 20px; height: 20px; }
.tape .what { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape .what b { font-weight: 700; color: var(--text); }
.tape .amt { text-align: right; white-space: nowrap; }
.tape .amt .small { color: inherit; }

/* why band */
.why-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 1ch; margin-top: calc(var(--lh) * 1.5); }
.why-band > * { min-width: 0; }
.why-band .plate { padding: 14px 2ch 10px; }
.why-band .plate:hover { border-color: var(--green); }
.why-band .plate:hover > h3:first-child { color: var(--green); }
.why-band p { color: var(--muted); margin: 6px 0; }
.why-band .link { color: var(--blue); }
.why-band .link::after { content: ' →'; }
.mini-chart { margin: 4px 0; }
.flow-mini { display: grid; gap: 0; margin: 0 0 8px; }
.flow-mini div { display: grid; grid-template-columns: 6ch 1fr; gap: 0 2ch; }
.flow-mini b { font-weight: 700; text-align: right; }

@media (max-width: 1180px) { .counters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1020px) {
  .bay, .floor, .why-band { grid-template-columns: minmax(0, 1fr); }
  .bay-r { border-left: 0; border-top: 1px solid var(--line); }
  .floor .plate > .panel-h:first-child .crew-legend { display: none; }
}
@media (max-width: 680px) {
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counters .counter:last-child { grid-column: 1 / -1; }
  .bay-l { padding: 12px 1ch 10px; }
  .bay-r { padding: 10px 1ch; }
  .floor .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .floor .crew .tile:nth-child(n+13) { display: none; }
  .tile .bank { display: none; }
  .tape li { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .tape time { display: none; }
}
.floor .plate > .panel-h:first-child { justify-content: flex-start; }
.floor .plate > .panel-h:first-child .crew-legend { margin-left: auto; }
@media (max-width: 680px) { .tape .what .faint { display: none; } }
