/* swarm lab: app family look (@dmarz/kit app.* tokens). Project hue 274 = sha256("swarm-lab") mod 360. */

@font-face { font-family: "Space Mono"; src: url(fonts/SpaceMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(fonts/SpaceMono-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Doto"; src: url(fonts/Doto.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --hue: 274;
  --void: #040306;
  --ink: rgb(233, 231, 225);
  --dim: rgb(154, 152, 146);
  --faint: rgb(102, 100, 95);
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.2);
  --panel: rgba(255, 255, 255, 0.028);
  --band: rgba(255, 255, 255, 0.045);
  --bone: rgb(221, 201, 166);
  --accent: hsl(var(--hue) 90% 70%);
  --accent-dim: hsla(var(--hue), 90%, 70%, 0.45);
  --run: rgb(71, 199, 245);
  --amber: hsl(40 95% 66%);
  --fail: rgb(248, 79, 101);
  --stale: rgba(233, 231, 225, 0.45);
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Doto", var(--mono);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --rail: 208px;
  --feedw: 340px;
  --barh: 52px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--void); color: var(--ink); }
body {
  font: 13px/1.5 var(--mono);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(1200px 700px at 12% -10%, hsla(var(--hue), 70%, 14%, 0.55), transparent 70%),
    radial-gradient(900px 600px at 105% 110%, hsla(var(--hue), 70%, 11%, 0.45), transparent 70%),
    var(--void);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: hsla(var(--hue), 90%, 60%, 0.35); }

/* ---------------------------------------------------------------- frame */
#hud { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }
#hud path { fill: none; stroke: var(--accent); vector-effect: non-scaling-stroke; }
#hud .corner { stroke-opacity: 0.5; stroke-width: 1.6; }
#hud .edge { stroke-opacity: 0.15; stroke-width: 0.7; }
#hud .diamond { fill: var(--accent); fill-opacity: 0.35; stroke: none; }
#hud .tick { stroke-opacity: 0.12; stroke-width: 0.7; }

#app {
  height: 100vh;
  display: grid;
  grid-template: var(--barh) 1fr / var(--rail) minmax(0, 1fr) var(--feedw);
  grid-template-areas: "bar bar bar" "rail view feed";
  padding: 14px 18px 18px;
  gap: 0 18px;
}

/* ---------------------------------------------------------------- status bar */
#bar { grid-area: bar; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); padding: 0 4px 0 0; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; }
#solid { width: 30px; height: 30px; }
.word { font: 900 26px/1 var(--display); letter-spacing: 0.02em; color: var(--ink); text-shadow: 0 0 6px hsla(var(--hue), 90%, 70%, 0.35); }
.inst { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.inst b { color: var(--ink); font-weight: 400; letter-spacing: 0.04em; font-size: 13px; }
.inst .sep { color: var(--faint); margin: 0 10px; }
.inst .n-run { color: var(--run); }
.inst .n-fail { color: var(--fail); }
.grow { flex: 1; }
#mode { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 8px; color: var(--dim); }
#mode .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--run); box-shadow: 0 0 6px var(--run); }
#mode.down .dot { background: var(--fail); box-shadow: none; }
#mode .tag { border: 1px solid var(--line-2); padding: 2px 7px; color: var(--dim); }

/* ---------------------------------------------------------------- rail */
#rail { grid-area: rail; padding-top: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
#rail a { display: grid; grid-template-columns: 26px 1fr; align-items: baseline; padding: 6px 8px 6px 4px; color: var(--dim); border-left: 1px solid transparent; transition: color 150ms var(--ease); }
#rail a:hover { color: var(--ink); }
#rail a.on { color: var(--ink); border-left-color: var(--accent); background: linear-gradient(90deg, hsla(var(--hue), 90%, 70%, 0.08), transparent); }
#rail a .num { font-size: 10px; color: var(--faint); letter-spacing: 0.1em; }
#rail .sub { padding: 4px 8px 8px 30px; display: flex; flex-direction: column; gap: 2px; }
#rail .sub a { display: block; padding: 5px 0 5px 10px; font-size: 12px; }
#rail .sub a .qbar { margin-top: 5px; }
#rail .foot { margin-top: auto; padding: 14px 4px 4px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); line-height: 1.8; }

/* ---------------------------------------------------------------- main + sections */
#view { grid-area: view; overflow-y: auto; padding: 18px 2px 40px; min-width: 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sec { border: 1px solid var(--line); background: var(--panel); margin-bottom: 18px; min-width: 0; }
.sec-h { display: flex; align-items: baseline; gap: 14px; padding: 9px 14px; background: var(--band); border-bottom: 1px solid var(--line); min-height: 38px; flex-wrap: wrap; }
.sec-h b { font-weight: 400; font-size: 10px; letter-spacing: 0.12em; color: var(--accent); }
.sec-h h2 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.sec-h .q { color: var(--dim); font-size: 12px; }
.sec-h .meta { margin-left: auto; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.sec-h .readout { flex-basis: 100%; font-size: 12px; color: var(--ink); min-height: 18px; margin-top: 2px; }
.sec-h .readout:empty::before { content: "hover a cell"; color: var(--faint); }
.sec-b { padding: 16px; min-width: 0; }
.empty { color: var(--faint); margin: 0; }

/* page title for experiment / run pages */
.title { margin: 6px 0 18px; display: grid; gap: 6px; }
.title .crumbs { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.title .crumbs a:hover { color: var(--ink); }
.title h1 { margin: 0; font: 900 40px/1.05 var(--display); letter-spacing: 0.01em; text-transform: lowercase; text-shadow: 0 0 8px hsla(var(--hue), 90%, 70%, 0.25); overflow-wrap: anywhere; }
.title .sub { color: var(--dim); max-width: 80ch; }
.title .hyp { color: var(--ink); max-width: 90ch; }
.title .hyp::before { content: "H "; color: var(--accent); }

/* numbers row */
.nums { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-bottom: 18px; }
.nums div { display: grid; gap: 2px; }
.nums b { font: 400 28px/1 var(--mono); letter-spacing: -0.01em; }
.nums span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.nums .c-run b { color: var(--run); }
.nums .c-fail b { color: var(--fail); }

/* ---------------------------------------------------------------- live */
.live { display: grid; grid-template-columns: minmax(240px, 400px) minmax(0, 1fr); gap: 24px; }
.stage { position: relative; aspect-ratio: 1; background: #000; border: 1px solid var(--line); }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage .corner-l { position: absolute; left: 10px; bottom: 8px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.stage .nostage { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.feat { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feat [data-feat] { display: flex; flex-direction: column; gap: 10px; }
.feat .hero { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.feat .big { font: 900 76px/0.9 var(--display); color: var(--amber); text-shadow: 0 0 10px hsla(40, 95%, 60%, 0.35); }
.feat .big small { font-size: 0.45em; }
.feat .metric { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.feat .runid { font-size: 15px; }
.feat .runid a:hover { color: var(--accent); }
.feat .params { color: var(--dim); }
.feat .who { color: var(--faint); font-size: 12px; }
.feat .prog { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--dim); letter-spacing: 0.1em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 4px; }
.tile { text-align: left; display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); transition: border-color 150ms var(--ease); min-width: 0; }
.tile:hover, .tile.on { border-color: var(--accent-dim); }
.tile.on { box-shadow: inset 0 0 0 1px var(--accent-dim); }
.tile canvas { width: 100%; aspect-ratio: 1.6; display: block; background: #000; }
.tile .tsp { aspect-ratio: 1.6; display: grid; place-items: center; background: #000; }
.tile .tl1 { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; min-width: 0; }
.tile .tl1 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile .tl1 b { font-weight: 400; color: var(--ink); }
.tile .tl2 { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- sweep */
.sweep { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.sweep .fig { min-width: 0; overflow-x: auto; }
.sweep svg, svg.series, svg.curves { max-width: 100%; height: auto; display: block; }
.heat .cell .bg { fill: rgba(255, 255, 255, 0.025); }
.heat .cell .v { fill: var(--bone); transition: fill-opacity 400ms var(--ease); }
.heat .cell .run { fill: none; stroke: var(--run); stroke-width: 1.2; }
.heat .cell[data-cell] { cursor: pointer; }
.heat .cell:hover .bg { stroke: var(--line-2); }
.heat .cell.landed .v { animation: land 900ms var(--ease); }
@keyframes land { from { fill: #fff; filter: drop-shadow(0 0 6px var(--amber)); } to { fill: var(--bone); filter: none; } }
.heat .tick { fill: var(--faint); }
.heat .tick.t-done { fill: rgba(0, 0, 0, 0.55); }
.heat .tick.t-running, .heat .tick.t-assigned { fill: var(--run); }
.heat .tick.t-failed, .heat .tick.t-stale { fill: var(--fail); }
.heat .tick.t-planned { fill: rgba(255, 255, 255, 0.16); }
svg .tl { fill: var(--dim); font: 11px var(--mono); }
svg .al { fill: var(--faint); font: 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
svg .frame { stroke: var(--faint); stroke-width: 1; }
.curves .line { fill: none; stroke: var(--bone); stroke-width: 1.6; }
.curves .seed { fill: var(--bone); }
.curves .lab { fill: var(--bone); }
.scalekey { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); margin-top: 10px; }
.scalekey i { width: 120px; height: 8px; background: linear-gradient(90deg, rgba(221, 201, 166, 0.05), var(--bone)); }
.scalekey em { font-style: normal; color: var(--faint); letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; margin-left: 6px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--faint); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; }

/* final frames contact sheet */
.sheet { display: grid; gap: 4px; }
.sheet .row { display: grid; gap: 4px; align-items: center; }
.sheet .yl, .sheet .xl { font-size: 11px; color: var(--dim); }
.sheet .yl { text-align: right; padding-right: 6px; }
.sheet .xl { text-align: center; }
.sheet .ph { aspect-ratio: 1; background: #000; border: 1px solid var(--line); display: block; position: relative; min-width: 0; }
.sheet .ph img { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 300ms var(--ease); }
.sheet .ph img.ok { opacity: 1; }
.sheet .ph.running { border-color: var(--run); }
.sheet .ph:hover { border-color: var(--accent-dim); }

/* ---------------------------------------------------------------- tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 0 14px 8px 0; white-space: nowrap; }
.tbl td { padding: 6px 14px 6px 0; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(255, 255, 255, 0.025); }
.tbl .mute { color: var(--faint); }
.tbl .dim { color: var(--dim); }
.scroll { overflow-x: auto; }
.st { white-space: nowrap; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.st::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--faint); }
.st.s-running::before, .st.s-assigned::before { background: var(--run); box-shadow: 0 0 5px var(--run); }
.st.s-running, .st.s-assigned { color: var(--run); }
.st.s-done { color: var(--dim); } .st.s-done::before { background: var(--ink); }
.st.s-failed, .st.s-stale { color: var(--fail); } .st.s-failed::before, .st.s-stale::before { background: var(--fail); }
.st.s-planned { color: var(--faint); } .st.s-planned::before { background: transparent; box-shadow: inset 0 0 0 1px var(--faint); }
.st.name { text-transform: none; letter-spacing: 0; font-size: 13px; }
.st.s-online::before { background: var(--ink); } .st.s-offline { color: var(--faint); }
details.fold > summary { cursor: pointer; list-style: none; padding: 10px 0 2px; color: var(--dim); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "+ "; color: var(--accent); }
details.fold[open] > summary::before { content: "– "; }

.bar { display: inline-block; height: 3px; background: rgba(255, 255, 255, 0.1); vertical-align: middle; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width 500ms var(--ease); }
.bar.run i { background: var(--run); }
.bar.hot i { background: var(--amber); }
.qbar { display: flex; height: 3px; background: rgba(255, 255, 255, 0.07); }
.qbar i { display: block; height: 100%; transition: width 500ms var(--ease); }
.qbar .q-done { background: var(--ink); }
.qbar .q-running, .qbar .q-assigned { background: var(--run); }
.qbar .q-failed, .qbar .q-stale { background: var(--fail); }
.qbar .q-planned { background: transparent; }
.spark polyline { fill: none; stroke: var(--bone); stroke-width: 1.2; }
.spark circle { fill: var(--bone); }
.spark.run polyline { stroke: var(--run); } .spark.run circle { fill: var(--run); }
.series .line { fill: none; stroke: var(--bone); stroke-width: 1.5; }
.series .end { fill: var(--amber); }
.series .val { fill: var(--amber); }
.series.run .line { stroke: var(--run); }

.lr { white-space: nowrap; }
.lr-late { color: var(--amber); }
.lr-stale { color: var(--fail); }
.tile.stale { border-color: rgba(248, 79, 101, 0.45); }
.tile [data-bar] { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--faint); }
.pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; }
.pick span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.pick button { border: 1px solid var(--line-2); padding: 2px 10px; font-size: 12px; color: var(--dim); }
.pick button:hover { color: var(--ink); }
.pick button.on { color: var(--ink); border-color: var(--accent-dim); background: hsla(var(--hue), 90%, 70%, 0.08); }
#totals a:hover b, #totals a:hover { color: var(--ink); }
.railn { color: var(--fail); font-size: 11px; margin-left: 4px; }

/* plan */
.planlink { color: var(--accent); text-transform: none; letter-spacing: 0; }
.planlink:hover { text-decoration: underline; }
.tbl td.clip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.stages { margin: -6px 0 16px; }
.stages button em { font-style: normal; color: var(--faint); font-size: 11px; margin-left: 4px; }
.plan-kv { margin-bottom: 14px; row-gap: 8px; }
.plan-kv dd { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.kvp { white-space: nowrap; max-width: 100%; }
.plan-kv dd { min-width: 0; }
@media (max-width: 980px) { .kvp { white-space: normal; overflow-wrap: anywhere; } }
.kvp i { font-style: normal; color: var(--faint); margin-right: 4px; }
.tbl.plan tr.grp td { border-top-color: var(--line-2); }
.tbl.plan tr.grp.open td { background: rgba(255, 255, 255, 0.03); }
.tbl.plan .chev { color: var(--accent); width: 20px; text-align: center; }
.tbl.plan .sd { color: var(--faint); font-size: 11px; }
.tbl.plan tr.inner > td { padding: 0 0 10px 18px; border-top: 0; background: rgba(255, 255, 255, 0.015); }
.tbl.plan tr.inner .tbl td { font-size: 12px; padding: 4px 12px 4px 0; }
.subh { margin: 22px 0 10px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
.analysis { display: grid; gap: 14px; }
.an-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; border-top: 1px solid var(--line); padding-top: 12px; }
.an-text p { margin: 6px 0 0; color: var(--dim); white-space: pre-wrap; font-size: 12px; }
.an-img img { display: block; max-width: 420px; max-height: 260px; border: 1px solid var(--line); background: #000; cursor: pointer; }
#rail .raillabel { display: block; padding: 10px 0 2px 10px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
#rail .railnote { display: block; padding: 4px 0 4px 10px; font-size: 11px; color: var(--faint); }
#rail .finished a { color: var(--faint); }
#rail .finished a.on, #rail .finished a:hover { color: var(--ink); }

/* protocol */
.proto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.proto h3 { margin: 0 0 6px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
.proto p { margin: 0 0 8px; color: var(--dim); white-space: pre-line; max-width: 64ch; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 12px; }
.kv dt { color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; padding-top: 2px; }
.kv dd { margin: 0; color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { border: 1px solid var(--line-2); padding: 1px 8px; font-size: 11px; color: var(--dim); }

/* run page */
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.art { border: 1px solid var(--line); padding: 8px; display: grid; gap: 6px; font-size: 12px; min-width: 0; }
.art img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #000; display: block; }
.art .an { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art .am { color: var(--faint); font-size: 11px; }
.runlive { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: 22px; }

/* fleet */
.host-claim { color: var(--accent); }
.users { color: var(--dim); }

/* ---------------------------------------------------------------- feed */
#feed { grid-area: feed; display: flex; flex-direction: column; min-height: 0; margin-top: 18px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
#feedlist { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
#feedlist:empty::after { content: "nothing reported yet"; display: block; padding: 8px 12px; color: var(--faint); font-size: 12px; }
#feedlist li { display: grid; grid-template-columns: 62px 58px minmax(0, 1fr); gap: 0 8px; padding: 5px 12px; font-size: 12px; line-height: 1.45; cursor: default; }
#feedlist li[data-run] { cursor: pointer; }
#feedlist li[data-run]:hover { background: rgba(255, 255, 255, 0.03); }
#feedlist li.new { animation: enter 260ms var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
#feedlist .t { color: var(--faint); }
#feedlist .k { text-transform: uppercase; font-size: 10px; letter-spacing: 0.12em; padding-top: 2px; color: var(--dim); }
#feedlist .b { min-width: 0; }
#feedlist .b1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#feedlist .b2 { color: var(--faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#feedlist .k-start { color: var(--run); }
#feedlist .k-done { color: var(--ink); }
#feedlist .k-fail { color: var(--fail); }
#feedlist .k-plan, #feedlist .k-claim, #feedlist .k-release { color: var(--accent); }
#feedlist .k-artifact { color: var(--faint); }
#feedlist .v { color: var(--bone); }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1280px) {
  :root { --feedw: 290px; --rail: 180px; }
  .live { grid-template-columns: 1fr; }
  .stage { max-width: 440px; }
  .sweep { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  #app { height: auto; min-height: 100vh; grid-template: auto auto auto auto / minmax(0, 1fr); grid-template-areas: "bar" "rail" "view" "feed"; padding: 10px 16px 24px; }
  #hud { display: none; }
  #bar { flex-wrap: wrap; padding: 6px 0 10px; gap: 10px 16px; }
  #bar .grow { display: none; }
  #bar .inst { white-space: normal; }
  #totals .sep { margin: 0 6px; }
  #rail { flex-direction: row; flex-wrap: wrap; padding: 10px 0 0; gap: 4px; }
  #rail .sub, #rail .foot { display: none; }
  #view { overflow: visible; padding-top: 12px; }
  #feed { height: 60vh; }
  .title h1 { font-size: 30px; }
  .feat .big { font-size: 60px; }
  .runlive { grid-template-columns: 1fr; }
  .an-row { grid-template-columns: 1fr; }
  .an-img img { max-width: 100%; }
  .live { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: none; }
  .sec-b { padding: 12px; }
  .nums { gap: 8px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
