/* =============================================================================
   iris-studio.css — the studio's interface. Quiet, legible, built for someone
   making a shot rather than operating a robot: system typography, translucent
   panels over the live set, one accent colour, generous targets, calm motion.
   ============================================================================= */
:root {
  --side-w: 272px; --side-w-right: 292px; --tl-h: 214px;
  --bg: #0b0b0d;
  --panel: rgba(28, 28, 32, 0.72);
  --panel-solid: #1c1c20;
  --panel-hi: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.62);
  --text-3: rgba(235, 235, 245, 0.38);
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.18);
  --rec: #ff453a;
  --warn: #ffd60a;
  --good: #32d74b;
  --r-s: 8px; --r-m: 12px; --r-l: 18px; --r-xl: 26px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.42), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 13px; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-rows: 52px 1fr auto; height: 100%; }
#studio-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: none; }

.topbar { position: relative; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: rgba(18,18,20,.82); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border-bottom: 1px solid var(--stroke); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.brand .mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(145deg, #0a84ff, #5e5ce6); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.shotname { font-weight: 500; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: var(--r-s); padding: 5px 9px; min-width: 150px; transition: .2s var(--ease); }
.shotname:hover { background: var(--panel-hi); } .shotname:focus { outline: none; background: var(--panel-hi); border-color: var(--stroke-strong); }
.spacer { flex: 1; }

/* segmented control */
.seg { display: inline-flex; padding: 2px; gap: 2px; background: rgba(255,255,255,.07); border-radius: 9px; }
.seg button { padding: 5px 12px; border-radius: 7px; color: var(--text-2); font-weight: 500; font-size: 12.5px; transition: .18s var(--ease); white-space: nowrap; }
.seg button.on { background: rgba(255,255,255,.16); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.seg button:hover:not(.on) { color: var(--text); }

.btn { padding: 7px 14px; border-radius: 9px; background: rgba(255,255,255,.10); color: var(--text); font-weight: 500;
  transition: .18s var(--ease); display: inline-flex; align-items: center; gap: 7px; }
.btn:hover { background: rgba(255,255,255,.16); } .btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); } .btn.primary:hover { background: #3b9bff; }
.btn.rec { background: var(--rec); } .btn.rec:hover { background: #ff6459; }
.btn.ghost { background: transparent; border: 1px solid var(--stroke-strong); }
.btn:disabled { opacity: .35; cursor: default; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: .18s var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,.15); }

/* ---------- stage ---------- */
.stage { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side-w) 1fr var(--side-w-right); min-height: 0; }
.side.right { margin: 12px 12px 12px 0; }
.side { position: relative; z-index: 2; margin: 12px 0 12px 12px; padding: 4px; overflow-y: auto; overflow-x: hidden;
  background: var(--panel); backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7);
  border: 1px solid var(--stroke); border-radius: var(--r-l); box-shadow: var(--shadow); }
.viewport { position: relative; }

.card { padding: 12px 13px; border-radius: var(--r-m); }
.card + .card { border-top: 1px solid rgba(255,255,255,.06); border-radius: 0; }
.card h3 { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.row .k { color: var(--text-2); }
.row .v { font-weight: 500; font-variant-numeric: tabular-nums; }
.row .v.mono { font-family: var(--mono); font-size: 12px; }
.hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--text-3); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 500;
  background: rgba(255,255,255,.09); color: var(--text-2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.pill.warn { background: rgba(255,214,10,.16); color: #ffe066; } .pill.warn .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.pill.bad { background: rgba(255,69,58,.18); color: #ff8b83; } .pill.bad .dot { background: var(--rec); box-shadow: 0 0 8px var(--rec); }

/* slider */
.slider { display: block; margin: 2px 0 8px; }
.slider .lab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.slider .lab span:first-child { color: var(--text-2); }
.slider .lab span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 3px; background: rgba(255,255,255,.16); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: grab; transition: transform .15s var(--ease); }
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }

/* switch */
.switch { position: relative; width: 40px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.16); transition: .22s var(--ease); flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .22s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.switch.on { background: var(--good); } .switch.on::after { transform: translateX(16px); }

select.sel { appearance: none; background: rgba(255,255,255,.09); border: 1px solid var(--stroke); border-radius: 9px;
  padding: 6px 26px 6px 10px; font-size: 12.5px; font-weight: 500;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='rgba(235,235,245,.6)' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 9px center; }
select.sel:focus { outline: none; border-color: var(--accent); }

/* ---------- monitor ---------- */
.monitor { position: absolute; right: 16px; top: 16px; width: 384px; aspect-ratio: 3 / 2; border-radius: var(--r-m); overflow: hidden;
  border: 1px solid var(--stroke-strong); box-shadow: var(--shadow); z-index: 2; }
.monitor.big { position: static; width: auto; height: 100%; border-radius: 0; border: 0; box-shadow: none; }
.mon-overlay { position: absolute; inset: 0; pointer-events: none; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.mon-overlay .thirds { position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 33.333% 33.333%; background-position: 0 33.333%, 33.333% 0; }
.mon-overlay .bar { position: absolute; left: 12px; right: 12px; display: flex; gap: 14px; align-items: center; }
.mon-overlay .bar.t { top: 10px; } .mon-overlay .bar.b { bottom: 10px; }
.mon-overlay .bar .sp { flex: 1; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.rec-dot.on { background: var(--rec); box-shadow: 0 0 10px var(--rec); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
#af-box { position: absolute; border: 1.5px solid var(--warn); border-radius: 3px; opacity: .9; transition: opacity .2s; }
/* drag a box on the picture to choose what the camera follows */
#view-feed { cursor: crosshair; }
#track-sel { position: absolute; border: 1.5px dashed rgba(255,255,255,.9); background: rgba(255,255,255,.08); border-radius: 2px; }
#track-box { position: absolute; border: 2px solid var(--good); border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.35); transition: none; }
#track-box[data-state="searching"] { border-color: var(--warn); border-style: dashed; }
#track-box[data-state="edge"] { border-color: var(--warn); }
#track-box[data-state="lost"] { border-color: var(--rec); border-style: dotted; }
#track-box::before, #track-box::after { content: ""; position: absolute; width: 9px; height: 9px; border: inherit; border-width: 2px; }
#track-box::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
#track-box::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
#track-label { position: absolute; transform: translateY(3px); font-family: var(--mono); font-size: 10.5px; color: var(--good); text-shadow: 0 1px 3px rgba(0,0,0,.9); white-space: nowrap; }
#track-label[data-state="searching"], #track-label[data-state="edge"] { color: var(--warn); }
#track-label[data-state="lost"] { color: var(--rec); }
#btn-untrack { position: absolute; right: 10px; bottom: 26px; pointer-events: auto; font-size: 11px; padding: 4px 9px; border-radius: 7px;
  background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.35); font-family: var(--font); }
#btn-untrack:hover { background: var(--rec); border-color: var(--rec); }
.mon-overlay { pointer-events: none; }
#af-box.locked { border-color: var(--good); }

/* ---------- timeline ---------- */
.timeline { position: relative; z-index: 3; margin: 0 12px 12px; padding: 12px 14px 14px;
  background: var(--panel); backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7);
  border: 1px solid var(--stroke); border-radius: var(--r-l); box-shadow: var(--shadow); }
.tl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tl-time { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tl-time b { color: var(--text); font-weight: 600; }
.tl-track { position: relative; height: 74px; border-radius: var(--r-m); background: rgba(255,255,255,.05); border: 1px solid var(--stroke); cursor: pointer; }
.tl-inner { position: absolute; inset: 0 40px; }
.tl-ruler { position: absolute; inset: 0 0 auto; height: 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.tl-ruler span { position: absolute; top: 3px; transform: translateX(-50%); font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.tl-key { position: absolute; top: 24px; width: 66px; height: 44px; margin-left: -33px; border-radius: 9px; overflow: hidden;
  border: 1.5px solid var(--stroke-strong); background: #14161b; cursor: grab; transition: transform .16s var(--ease), border-color .16s var(--ease); }
.tl-key:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.tl-key.sel { border-color: var(--warn); box-shadow: 0 0 0 2px rgba(255,214,10,.28); }
.tl-key canvas, .tl-key img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-key .n { position: absolute; left: 4px; top: 3px; font-size: 9.5px; font-family: var(--mono); color: #fff; text-shadow: 0 1px 2px #000; }
.tl-play { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--warn); pointer-events: none; box-shadow: 0 0 8px rgba(255,214,10,.7); }
.tl-play::before { content: ""; position: absolute; top: -1px; left: -5px; width: 12px; height: 12px; border-radius: 3px; background: var(--warn); }
.tl-foot { display: flex; align-items: center; gap: 16px; margin-top: 11px; flex-wrap: wrap; }
.tl-foot .grp { display: flex; align-items: center; gap: 8px; }
.tl-foot .mini { width: 116px; }
.tl-foot label { color: var(--text-2); font-size: 12px; }

/* toast + help */
.toast { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(12px); opacity: 0; pointer-events: none;
  background: rgba(28,28,32,.92); backdrop-filter: blur(20px); border: 1px solid var(--stroke); border-radius: 99px; padding: 9px 18px;
  font-size: 12.5px; box-shadow: var(--shadow); transition: .28s var(--ease); z-index: 5; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.hud-hint { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: rgba(235,235,245,.5); text-shadow: 0 1px 3px #000; pointer-events: none; z-index: 2; }

/* capture layout: only the two pictures, for recording */
body.capture .topbar, body.capture .side, body.capture .timeline, body.capture .hud-hint, body.capture .toast { display: none; }
body.capture .app { grid-template-rows: 1fr; }
body.capture .stage { grid-template-columns: 1fr; }
body.capture .mon-ctl, body.capture .tl-speed { display: none; }
body.capture .monitor { right: 26px; bottom: 26px; top: auto; transform: none; width: 45%; border-color: rgba(255,255,255,.30); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
/* the picture on its own, edge to edge: what the contact sheets and the monitor clips record */
body.capture[data-view="monitor"] .monitor { position: static; width: auto; height: 100%; transform: none; border: 0; border-radius: 0; }
body.capture[data-view="monitor"] .mon-overlay { display: none; }

@media (max-width: 1100px) {
  .stage { grid-template-columns: 1fr; }
  .side { position: absolute; left: 12px; top: 12px; bottom: 12px; width: 264px; z-index: 4; }
  .monitor { width: 300px; }
}

/* ---------- drawer (shots & teaching) ---------- */
.drawer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.drawer .sheet { width: min(920px, 92vw); max-height: 84vh; display: flex; flex-direction: column; overflow: hidden;
  background: rgba(30,30,34,.92); backdrop-filter: blur(40px) saturate(1.7); border: 1px solid var(--stroke); border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.drawer header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--stroke); }
.drawer header h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.drawer .body { padding: 16px 20px 22px; overflow-y: auto; }
.pgroup { margin-bottom: 20px; }
.pgroup h4 { margin: 0 0 9px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 8px; }
.pcard { text-align: left; padding: 11px 13px; border-radius: var(--r-m); background: rgba(255,255,255,.06); border: 1px solid transparent; transition: .18s var(--ease); }
.pcard:hover { background: rgba(255,255,255,.12); border-color: var(--stroke-strong); transform: translateY(-1px); }
.pcard b { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.pcard span { display: block; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.teach { display: grid; gap: 14px; max-width: 620px; }
.teach p { margin: 0; color: var(--text-2); line-height: 1.55; }
.teach .step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.teach .step .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-weight: 600; font-size: 12px; }
.teach .step h5 { margin: 2px 0 6px; font-size: 13.5px; font-weight: 600; }
.teach .acts { display: flex; gap: 8px; flex-wrap: wrap; }
#train-log { font-size: 12px; color: var(--text-2); min-height: 18px; }


/* ============================================================ the right panel, the camera's own
   controls under the monitor, and the speed ramp. The right panel is a .side, so the capture layout
   already hides it — a recorded clip must never show the furniture. */
#shot-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px;
  max-height: 232px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
#shot-list .sgroup { font: 600 10.5px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin: 8px 0 2px; }
#shot-list button { display: block; width: 100%; text-align: left; padding: 6px 8px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--text-1); font: 500 12.5px/1.3 var(--ui); cursor: pointer; }
#shot-list button:hover { background: var(--hover); }
#shot-list button.on { background: var(--accent-soft, rgba(10,132,255,.16)); border-color: var(--accent, #0a84ff); color: #fff; }

.jogpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0; }
.jogpad button { padding: 6px 4px; border-radius: 7px; border: 1px solid var(--stroke); background: var(--chip, rgba(255,255,255,.05));
  color: var(--text-1); font: 500 11px/1.2 var(--ui); cursor: pointer; }
.jogpad button:hover { background: var(--hover); }
.jogpad button:active { transform: translateY(1px); }

.jrow { display: grid; grid-template-columns: 26px 1fr 42px; align-items: center; gap: 6px; margin: 3px 0; }
.jrow .jname { font: 600 10.5px var(--mono, ui-monospace); color: var(--text-3); }
.jrow input { width: 100%; }
.jrow .jval { font: 500 10.5px var(--mono, ui-monospace); color: var(--text-2); text-align: right; }
.v.mono { font: 500 11px var(--mono, ui-monospace); }

.mon-ctl { position: absolute; right: 16px; top: calc(16px + 384px * 2 / 3 + 10px); width: 384px; z-index: 3;
  background: var(--panel); backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7);
  border: 1px solid var(--stroke); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 10px 12px 8px; }
.mc-head { display: flex; justify-content: space-between; align-items: baseline; font: 600 12px var(--ui); }
.mc-head span { color: var(--text-3); font-weight: 500; font-size: 11px; }
.mc-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.mc-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mc-pad .mc-lab { grid-column: 1 / -1; font: 600 10px var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.mc-pad button { padding: 5px 0; border-radius: 7px; border: 1px solid var(--stroke); background: var(--chip, rgba(255,255,255,.05));
  color: var(--text-1); font-size: 13px; line-height: 1; cursor: pointer; }
.mc-pad button:hover { background: var(--hover); }
.mc-pad button:active { transform: translateY(1px); }
.mc-step, .mc-slider { display: block; margin-top: 8px; font: 500 11px var(--ui); color: var(--text-2); }
.mc-step { display: grid; grid-template-columns: 34px 1fr 96px; align-items: center; gap: 8px; }
.mc-step span:last-child { text-align: right; font: 500 10.5px var(--mono, ui-monospace); color: var(--text-3); }
.mc-slider .lab { display: flex; justify-content: space-between; margin-bottom: 2px; }
.mc-slider input, .mc-step input { width: 100%; }
.mc-note { margin: 8px 0 0; font: 400 10.5px/1.4 var(--ui); color: var(--text-3); }

.tl-speed { display: grid; grid-template-columns: 46px 1fr 150px; align-items: center; gap: 8px; padding: 4px 12px 8px; }
.tl-speed .sp-title { font: 600 10.5px var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.tl-speed .sp-hint { font: 400 10.5px var(--ui); color: var(--text-3); text-align: right; }
#tl-speed { width: 100%; height: 54px; display: block; border: 1px solid var(--stroke); border-radius: 8px;
  background: rgba(255,255,255,.03); cursor: ns-resize; }
.tl-key .kname { position: absolute; left: 50%; transform: translateX(-50%); bottom: -15px; white-space: nowrap;
  font: 500 10px var(--ui); color: var(--text-2); pointer-events: none; }

@media (max-width: 1200px) {
  .stage { grid-template-columns: 272px 1fr; }
  .side.right { position: absolute; right: 12px; top: 12px; bottom: 12px; width: 280px; z-index: 5; }
  .mon-ctl { display: none; }
}


/* ---------- draggable edges ---------- */
.resize-h { position: absolute; top: 12px; bottom: 12px; width: 9px; z-index: 6; cursor: col-resize; }
.resize-h { left: calc(var(--side-w) - 4px); }
.resize-h.right { left: auto; right: calc(var(--side-w-right) - 4px); }
.resize-h::after { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: transparent; transition: background .15s var(--ease); }
.resize-h:hover::after, .resize-h.dragging::after { background: var(--accent); }
.resize-v { position: absolute; left: 12px; right: 12px; top: -5px; height: 10px; z-index: 6; cursor: row-resize; }
.resize-v::after { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 3px; border-radius: 3px; background: transparent; transition: background .15s var(--ease); }
.resize-v:hover::after, .resize-v.dragging::after { background: var(--accent); }
.timeline { position: relative; min-height: var(--tl-h); display: flex; flex-direction: column; }
.tl-track { flex: 1 1 auto; overflow-x: auto; overflow-y: hidden; }
.tl-inner { position: relative; height: 100%; min-width: 100%; }
.tl-zoom { display: inline-flex; align-items: center; gap: 6px; }
.tl-zoom .icon-btn { width: 26px; height: 26px; font-size: 15px; line-height: 1; }
.tl-zoom .btn { padding: 5px 10px; font-size: 12px; }
.tl-key .tl-t { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); font-family: var(--mono);
  font-size: 10px; color: var(--text-3); white-space: nowrap; }
.tl-key.sel .tl-t { color: var(--warn); }

/* preview: the plan, shown on a ghost of the arm, before it is run */
#btn-preview.on { background: var(--accent); color: #fff; border-color: var(--accent); }
body.previewing .monitor { outline: 2px solid var(--accent); outline-offset: -2px; }
#run-state { color: var(--text-3); }
body.previewing #run-state { color: var(--accent); }
