html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  background: var(--bg); color: var(--fg);
  font: 400 13px/1.5 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}

/* The stage is authored at 1280×720 and scaled as a whole, so a recording at
   any size is the same picture. */
#viewport { flex: 1; position: relative; overflow: hidden; }
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1280px; height: 720px;
  transform-origin: 0 0;
  background: radial-gradient(circle, rgb(10 14 25 / 0.08) 1px, transparent 1.5px) 0 0 / 24px 24px, var(--bg);
  overflow: hidden;
}
/* Seeking replays the script instantly; nothing should animate on the way. */
#stage.ff, #stage.ff * { transition: none !important; animation: none !important; }

button { font: inherit; color: inherit; cursor: pointer; }
pre { margin: 0; }
[hidden] { display: none !important; }

/* ── hud ────────────────────────────────────────────────────────────── */
.hud {
  position: absolute; left: 0; right: 0; top: 0; height: 36px; z-index: 5;
  display: flex; align-items: center; gap: 10px; padding: 0 22px;
  border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.85); backdrop-filter: blur(8px);
  font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.hud .mark { width: 16px; height: 16px; }
.hud-name { color: var(--fg); letter-spacing: -0.02em; text-transform: none; font: 600 14px var(--sans); }
.hud-sep { width: 1px; height: 14px; background: var(--line-2); }
.hud-crumb { color: var(--green); }
.hud-clock { font-variant-numeric: tabular-nums; color: var(--fg-2); }
.hud-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ── controls ───────────────────────────────────────────────────────── */
#controls {
  flex: none; height: 38px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; border-top: 1px solid var(--line); background: var(--surface);
  color: var(--fg-2); font: 12px var(--mono);
}
#controls button { border: 0; background: none; color: var(--fg-2); height: 26px; min-width: 26px; border-radius: 6px; }
#controls button:hover { background: var(--surface-2); color: var(--fg); }
#c-track { flex: 1; height: 14px; position: relative; cursor: pointer; display: flex; align-items: center; }
#c-track::before { content: ""; position: absolute; inset: 6px 0; border-radius: 2px; background: var(--surface-3); }
#c-fill { position: absolute; left: 0; top: 6px; height: 2px; width: 0; background: var(--fg); border-radius: 2px; }
#c-marks i { position: absolute; top: 3px; width: 2px; height: 8px; background: var(--idle); border-radius: 1px; }
#c-chapter { min-width: 170px; text-align: right; font-variant-numeric: tabular-nums; }
body.record #controls { display: none; }

/* ── scenes ─────────────────────────────────────────────────────────── */
.scene {
  position: absolute; inset: 0; padding: 64px 48px 84px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 500ms ease, transform 700ms ease, visibility 0s 500ms;
}
.scene.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.scene-title { font: 300 24px/1 var(--serif); color: var(--fg); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step { font: 500 11px/1 var(--mono); color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 8px; }

#caption {
  position: absolute; left: 50%; bottom: 24px; transform: translate(-50%, 8px);
  max-width: 980px; padding: 12px 22px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgb(10 14 25 / 0.14);
  font: 400 21px/1.25 var(--serif); text-align: center; white-space: nowrap;
  opacity: 0; transition: opacity 300ms ease, transform 300ms ease; z-index: 50;
}
#caption.on { opacity: 1; transform: translate(-50%, 0); }
#caption em { font-style: italic; color: var(--green); }

#cursor {
  position: absolute; left: 0; top: 0; z-index: 60; pointer-events: none;
  transform: translate(1320px, 760px);
  transition: transform 700ms cubic-bezier(0.3, 0.1, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.35));
}
#cursor svg path { fill: #0a0e19; stroke: #fff; }
#cursor.down svg { transform: scale(0.85); }
#cursor svg { transition: transform 90ms ease; transform-origin: 5px 3px; }
#cursor::after { content: ""; position: absolute; left: -9px; top: -11px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; transform: scale(0.3); }
#cursor.down::after { animation: ping 420ms ease-out; }
@keyframes ping { from { opacity: 0.8; transform: scale(0.3); } to { opacity: 0; transform: scale(1.2); } }

/* ── windows and terminals ──────────────────────────────────────────── */
.win { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: 0 20px 60px rgb(10 14 25 / 0.1); }
.win-bar { height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); background: var(--surface); }
.win-tag { color: var(--green); }
.term { background: #0f1219; display: flex; flex-direction: column; }
.term .win-bar { background: #161a24; border-color: rgb(255 255 255 / 0.08); color: #8b93a3; }
.term-body {
  flex: 1; padding: 14px 16px; overflow: hidden;
  font: 12.5px/1.65 var(--mono); color: #c9ced8; white-space: pre-wrap; word-break: break-word;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.term-body > div { flex: none; }
.term-body .p { color: #ffb224; }
.term-body .c { color: #ffffff; }
.term-body .ok { color: #3ddc84; }
.term-body .warn { color: #ffd36b; }
.term-body .err { color: #ff6b6b; }
.term-body .dim { color: #6b7280; }
.term-body .hl { color: #7ab7ff; }
.term-body .me { color: #ffb224; font-weight: 600; }
.caret { display: inline-block; width: 7px; height: 15px; vertical-align: -2px; background: #ffb224; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── 0 · fleet ──────────────────────────────────────────────────────── */
.fleet { display: grid; grid-template-columns: 1fr 300px; gap: 16px; height: 520px; }
.sites { display: flex; flex-direction: column; gap: 12px; }
.site { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color 400ms, box-shadow 400ms; }
.site.lit { border-color: var(--fg); box-shadow: 0 16px 40px rgb(10 14 25 / 0.12); }
.site-head { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.site-name { font: 500 13px var(--sans); }
.site-kind { font: 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.site-cap { margin-left: auto; font: 11px var(--mono); color: var(--fg-3); }
.site-cap b { color: var(--fg); font-weight: 500; }
.site-rows { padding: 4px 6px; }
.frow, .srow { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 8px; font-size: 12.5px; border-radius: 6px; }
.frow.new, .srow.new { animation: rise 450ms ease both; }
.sid { font: 11px var(--mono); color: var(--fg-3); }
.stitle { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmodel { font: 10px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-2); background: var(--surface-2); border-radius: 99px; padding: 1px 7px; }
.spend { font: 11px var(--mono); color: var(--fg-3); min-width: 40px; text-align: right; }

.stats { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 74px; gap: 10px; align-content: start; }
.stat { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.stat .k { font: 500 10.5px var(--sans); color: var(--fg-2); }
.stat b { font: 300 30px/1 var(--serif); color: var(--green); font-variant-numeric: tabular-nums; }
.stat.hot b { color: var(--await); }
.radar { grid-column: 1 / -1; height: 230px; position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.radar::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 50% 50%, transparent 0 39px, var(--line) 39px 40px, transparent 40px 79px, var(--line) 79px 80px, transparent 80px 119px, var(--line) 119px 120px, transparent 120px),
  linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.sweep { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 78%, rgb(57 117 84 / 0.18) 100%); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.radar i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(57 117 84 / 0.2); }
.radar-label { position: absolute; left: 12px; bottom: 10px; font: 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }

/* ── 1 · directives ─────────────────────────────────────────────────── */
.dir-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; height: 520px; }
.tiers { display: flex; flex-direction: column; gap: 10px; }
.tier { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; opacity: 0.45; transition: opacity 400ms, border-color 400ms; }
.tier.lit { opacity: 1; border-color: var(--line-2); }
.tier-head { display: flex; align-items: baseline; gap: 10px; }
.scope { font: 500 12.5px var(--mono); }
.tier-note { font: 11px var(--sans); color: var(--fg-3); }
.drow { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 12px var(--mono); color: var(--fg-2); animation: rise 400ms ease both; }
.drow b { color: var(--fg); font-weight: 500; }
.mode { margin-left: auto; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--fg-3); }
.mode.final { color: var(--run); border-color: rgb(217 142 4 / 0.5); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.bundle { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--green-tint); padding: 12px 14px; opacity: 0; transform: translateY(10px); transition: opacity 500ms, transform 500ms; }
.bundle.on { opacity: 1; transform: none; }
.bundle-head { display: flex; align-items: center; font: 500 11px var(--sans); color: var(--fg-2); }
.hash { font: 12px var(--mono); color: var(--green); }
.hash.flash { animation: flash 900ms ease; }
@keyframes flash { 30% { background: rgb(47 158 91 / 0.25); box-shadow: 0 0 0 4px rgb(47 158 91 / 0.25); } }
.bundle-rows { margin: 8px 0 0; padding-left: 20px; font: 12px/1.7 var(--mono); color: var(--fg); }
.bundle-rows li { animation: rise 350ms ease both; }
.bundle-rows li span { color: var(--fg-2); }
.bundle-foot { margin-top: 8px; font: italic 300 14px var(--serif); color: var(--green-dark); min-height: 18px; }

/* ── 2 · console ────────────────────────────────────────────────────── */
#s-app { padding: 52px 40px 80px; }
.app { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.app-bar { height: 40px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-bar .mark { width: 18px; height: 18px; }
.app-bar h1 { margin: 0 2px; font: 600 14px var(--sans); letter-spacing: -0.02em; }
.crumb { font: 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-left: 6px; }
.app button, .icon { border: 0; background: none; border-radius: 6px; padding: 4px 10px; color: var(--fg-2); font: 500 12px var(--sans); }
.icon { padding: 3px 6px; }
.app button.primary, .dialog .primary { background: var(--fg); color: #fff; }
.app button.hot { background: var(--surface-3); color: var(--fg); }
.app button.primary.hot { background: #2a3145; }
.app button.danger { color: var(--err); }
.app button.on { color: var(--run); box-shadow: inset 0 0 0 1px rgb(217 142 4 / 0.6); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); font: 11px var(--mono); color: var(--fg-2); }
.bar-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 4px; }

.app-main { flex: 1; display: flex; min-height: 0; }
.drawer { width: 290px; flex: none; background: var(--surface); border-right: 1px solid var(--line); }
.drawer.right { width: 230px; border-right: 0; border-left: 1px solid var(--line); animation: slide 350ms ease both; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { height: 32px; display: flex; align-items: center; gap: 4px; padding: 0 12px; font: 500 11px var(--sans); color: var(--fg-2); border-bottom: 1px solid var(--line); }
.group-head { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--fg); }
.chev { font-size: 9px; color: var(--fg-3); }
.count { margin-left: auto; font: 11px var(--mono); color: var(--fg-3); }
.srow { padding: 0 10px 0 24px; margin: 0 4px; }
.srow.on { background: var(--surface-2); }
.exec { font: 10px var(--mono); padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--fg-2); }

.detail { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.empty { margin: auto; text-align: center; color: var(--fg-2); max-width: 320px; }
.empty h2 { color: var(--fg); font: 300 24px var(--serif); margin: 14px 0 4px; }
.empty p { margin: 0; font-size: 12.5px; }
.detail-head { height: 38px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; overflow: hidden; }
.detail-head > * { flex: none; }
.detail-head strong { font: 500 12px var(--mono); }
.meta { color: var(--fg-3); font: 11px var(--mono); }
.meta.chip { background: var(--surface-2); border-radius: 99px; padding: 1px 8px; position: relative; color: var(--fg-2); }
.meta.bump { animation: flash 900ms ease; }
.tip { position: absolute; top: 24px; left: 0; z-index: 5; white-space: pre; background: var(--fg); color: #fff; border-radius: 6px; padding: 6px 9px; font: 11px/1.6 var(--mono); animation: rise 200ms ease both; }
.tabstrip { height: 30px; flex: none; display: flex; align-items: stretch; gap: 2px; padding: 0 8px; background: var(--surface-2); }
.tab { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 12px; color: var(--fg-2); border-radius: 6px 6px 0 0; }
.tab.on { background: #0f1219; color: #fff; }
.tab-kind { font: 10px var(--mono); color: var(--fg-3); }
.tab.on .tab-kind { color: #8b93a3; }
.tabstrip .icon { align-self: center; }
.drive { flex: none; height: 26px; white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--amber-tint); border-bottom: 1px solid rgb(217 142 4 / 0.35); font: 500 10.5px var(--mono); letter-spacing: 0.06em; color: #8a5a00; animation: rise 250ms ease both; }
.drive b { color: var(--fg); font-weight: 600; }
.tile { flex: 1; min-height: 0; background: #0f1219; display: flex; }
.tile.driving { box-shadow: inset 0 0 0 2px var(--run); }
.turn-form { flex: none; display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--surface); }
.turn-form input { flex: 1; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--fg); font: 12px var(--mono); outline: none; }
.turn-form input.focus, .dialog .focus { border-color: var(--fg); }
.turn-form button { border: 1px solid var(--line-2) !important; color: var(--fg) !important; }

.tree { padding: 8px 4px; font: 12px/1 var(--mono); }
.node { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; color: var(--fg-3); }
.node.d1 { padding-left: 22px; } .node.d2 { padding-left: 36px; }
.node.changed { color: var(--fg); animation: rise 350ms ease both; }
.node.changed::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.scrim { position: absolute; inset: 0; background: rgb(10 14 25 / 0.35); animation: fade 200ms ease both; }
@keyframes fade { from { opacity: 0; } }
.dialog { position: absolute; left: 50%; top: 50%; width: 470px; transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 30px 80px rgb(10 14 25 / 0.25); animation: pop 220ms ease both; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); } }
.dialog h2 { margin: 0 0 14px; font: 400 18px var(--sans); letter-spacing: -0.02em; }
.dialog label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font: 500 11px var(--sans); color: var(--fg-2); }
.dialog .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog input, .dialog textarea, .dialog .select { padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--fg); font: 12px var(--mono); outline: none; resize: none; }
.dialog .select { display: flex; align-items: center; gap: 8px; }
.dialog .select::after { content: "▾"; margin-left: auto; color: var(--fg-3); }
.dialog .menu { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dialog .menu button { padding: 6px 12px; border-radius: 6px; }

/* ── 3 · handoff ────────────────────────────────────────────────────── */
.ho-grid { display: grid; grid-template-columns: 1fr 220px 1fr; gap: 20px; height: 520px; }
.machine { display: flex; flex-direction: column; gap: 10px; transition: opacity 500ms; }
.machine.off { opacity: 0.45; }
.machine-head { display: flex; align-items: center; gap: 8px; font: 500 13px var(--sans); }
.who { margin-left: auto; font: 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.machine .term { flex: 1; min-height: 0; }
.machine .term-body { font-size: 11.5px; }
.plane { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 110px; }
.plane-box { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; z-index: 2; box-shadow: 0 12px 30px rgb(10 14 25 / 0.08); }
.plane-title { font: 500 11px var(--sans); color: var(--green); margin-bottom: 8px; }
.plane-row { display: flex; justify-content: space-between; font: 12px/1.9 var(--mono); color: var(--fg-3); }
.plane-row b { color: var(--fg); font-weight: 500; padding: 0 4px; border-radius: 4px; }
.plane-row b.bump { animation: flash 900ms ease; }
.wire { position: absolute; top: 320px; left: -20px; right: -20px; height: 1px; background: repeating-linear-gradient(90deg, var(--idle) 0 6px, transparent 6px 12px); }
.capsule {
  position: absolute; top: 296px; left: 50%; z-index: 3;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; white-space: nowrap; border-radius: 10px;
  border: 1px solid rgb(47 158 91 / 0.5); background: var(--green-tint);
  font: 11px/1.4 var(--mono); color: var(--fg);
  opacity: 0; transform: translateX(-330px) scale(0.9);
  transition: transform 1100ms cubic-bezier(0.5, 0, 0.2, 1), opacity 400ms;
}
.capsule .mark { width: 22px; height: 22px; color: var(--green); }
.capsule i { font-style: normal; color: var(--green); }
.capsule.at-a { opacity: 1; transform: translateX(-330px); }
.capsule.at-plane { opacity: 1; transform: translateX(-50%); }
.capsule.at-b { opacity: 1; transform: translateX(150px); }
.capsule.gone { opacity: 0; transform: translateX(150px) scale(0.9); }

/* ── 4 · end ────────────────────────────────────────────────────────── */
.end { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.end h2 { font: 600 52px/1 var(--sans); letter-spacing: -0.04em; margin: 22px 0 10px; }
.end-line { font: 300 34px var(--serif); margin: 0; color: var(--fg); }
.end-sub, .end-next { font-size: 16px; color: var(--fg-2); margin: 16px 0 0; opacity: 0; transition: opacity 600ms; }
.end-next { font: 500 12px var(--mono); letter-spacing: 0.16em; color: var(--green); margin-top: 44px; }
.end-sub.on, .end-next.on { opacity: 1; }

/* ── 2 · cooperation ────────────────────────────────────────────────── */
.swarm { display: grid; grid-template-columns: 1fr 320px; gap: 16px; height: 520px; }
.swarm-main { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.obj { flex: none; }
.obj-head { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; font-size: 13px; }
.obj-head b { font-weight: 600; }
.obj-goal { color: var(--fg-2); }
.obj-meta { font: 11px var(--mono); color: var(--fg-3); }
.agents { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.agent { display: flex; flex-direction: column; min-height: 0; transition: box-shadow 400ms, border-color 400ms; }
.agent.lit { border-color: var(--green); box-shadow: 0 0 0 3px rgb(57 117 84 / 0.15); }
.agent-head { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.agent-name { font-weight: 500; }
.agent-head .fmodel { margin-left: auto; }
.alog { flex: 1; min-height: 0; padding: 8px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font: 11.5px/1.5 var(--mono); color: var(--fg-2); overflow: hidden; }
.alog > div { animation: rise 350ms ease both; }
.alog .c { color: var(--fg); } .alog .ok { color: var(--ok); } .alog .warn { color: #b26a00; } .alog .ctx { color: var(--green); } .alog .dim { color: var(--fg-3); }
.swarm-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.side-head { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); font: 500 12px var(--sans); }
.side-head span:last-child { font: 11px var(--mono); color: var(--fg-3); }
.plan { flex: none; }
.task { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #fff; transition: background 300ms, border-color 300ms; }
.task b { margin-left: auto; font: 10.5px var(--mono); color: var(--fg-3); font-weight: 400; }
.task.claimed i { border-color: var(--run); background: var(--amber-tint); }
.task.done i { background: var(--ok); border-color: var(--ok); }
.task.done i::before { content: "✓"; }
.task.done span { color: var(--fg-3); text-decoration: line-through; }
.ctxs { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.notes { flex: 1; min-height: 0; padding: 6px 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; font-size: 12px; line-height: 1.4; color: var(--fg-2); border-top: 1px solid var(--line); animation: rise 350ms ease both; }
.note .who { flex: none; font: 500 10.5px var(--mono); color: var(--green); white-space: nowrap; margin-top: 2px; }
.note.hot { background: var(--green-tint); }

/* console: file content + browser pane */
.content { border-top: 1px solid var(--line); padding: 12px 14px; font-size: 12px; line-height: 1.5; color: var(--fg-2); animation: rise 300ms ease both; }
.content h4 { margin: 0 0 6px; font: 500 12.5px var(--sans); color: var(--fg); }
.content p { margin: 0 0 8px; }
.content ul { margin: 0; padding-left: 16px; }
.content code { font: 11px var(--mono); background: var(--surface-2); padding: 0 4px; border-radius: 3px; }
.content .path { font: 10.5px var(--mono); color: var(--fg-3); margin-bottom: 8px; }
.browser { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); animation: rise 250ms ease both; }
.url-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.url-bar .nav { color: var(--fg-3); font-size: 13px; }
.url-bar .url { flex: 1; display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font: 11.5px var(--mono); color: var(--fg-2); }
.page { flex: 1; display: grid; place-items: center; background: #f3f4f6; }
.page-card { width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 16px; box-shadow: 0 10px 30px rgb(10 14 25 / 0.08); }
.page-logo { font: 600 13px var(--sans); letter-spacing: -0.02em; margin-bottom: 14px; }
.page-card h3 { margin: 0; font: 500 17px var(--sans); letter-spacing: -0.02em; }
.page-card p { margin: 4px 0 14px; font-size: 12px; color: var(--fg-2); }
.page-btn { height: 34px; display: grid; place-items: center; border-radius: 6px; background: var(--fg); color: #fff; font: 500 12.5px var(--sans); margin-bottom: 8px; }
.page-btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.page-card small { display: block; margin-top: 10px; font: 10.5px var(--mono); color: var(--fg-3); }
.page-card small b { color: var(--ok); }
