/* Lumen — cinematic AI video editor */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0c;
  --bg-1: #111114;
  --bg-2: #16161a;
  --bg-3: #1d1d22;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #f4f1ea;
  --text-2: rgba(244,241,234,0.72);
  --text-3: rgba(244,241,234,0.45);
  --text-4: rgba(244,241,234,0.28);
  --accent: #e6c79c;        /* warm filmic gold */
  --accent-2: #c8956a;
  --accent-soft: rgba(230,199,156,0.14);
  --danger: #ff6a4d;
  --good: #8ad3a7;
  --sans: 'Geist', -apple-system, system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-1: #ecebe4;
  --bg-2: #e2e0d7;
  --bg-3: #d6d3c8;
  --line: rgba(20,18,14,0.10);
  --line-2: rgba(20,18,14,0.18);
  --text: #1a1814;
  --text-2: rgba(26,24,20,0.72);
  --text-3: rgba(26,24,20,0.50);
  --text-4: rgba(26,24,20,0.30);
  --accent: #8b5e2a;
  --accent-2: #b07a3a;
  --accent-soft: rgba(139,94,42,0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #0a0a0c; color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

/* the app shell that lives inside MacWindow */
.lumen {
  --row-h: 64px;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  display: grid;
  grid-template-columns: var(--side-w, 240px) 1fr var(--right-w, 380px);
  grid-template-rows: 56px 1fr var(--timeline-h, 200px);
  grid-template-areas:
    "topbar topbar topbar"
    "side   stage  right"
    "side   timeline timeline";
  overflow: hidden;
  position: relative;
}

.lumen.no-right {
  grid-template-columns: var(--side-w, 240px) 1fr 0;
}
.lumen.no-right .right { display: none; }

/* density */
.lumen[data-density="compact"] { --side-w: 200px; }
.lumen[data-density="cozy"] { --side-w: 240px; }
.lumen[data-density="comfy"] { --side-w: 280px; }

/* ─── topbar ─── */
.topbar {
  grid-area: topbar;
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px 0 84px; /* leave room for traffic lights */
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-bottom: 1px solid var(--line);
  -webkit-app-region: drag;
  position: relative;
}
.topbar > * { -webkit-app-region: no-drag; }

.brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2) 60%, #5a3a1a);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 18px rgba(230,199,156,0.35);
}
.brand em { font-style: italic; opacity: 0.7; font-size: 17px; margin-left: 2px; }

.crumb {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  padding-left: 16px; margin-left: 4px;
  border-left: 1px solid var(--line);
  height: 28px;
}
.crumb b { color: var(--text); font-weight: 500; }
.crumb svg { opacity: 0.5; }

.topbar .spacer { flex: 1; }

.tab-group {
  display: flex; gap: 2px; background: var(--bg-1);
  border: 1px solid var(--line); border-radius: 8px; padding: 2px;
}
.tab {
  padding: 5px 12px; font-size: 12px; font-weight: 500;
  color: var(--text-3); border-radius: 6px; cursor: pointer;
  transition: 0.15s; border: 0; background: transparent; font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--bg-3); color: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.04);
}

.icon-btn {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--text-2); display: grid; place-items: center;
  cursor: pointer; transition: 0.15s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--text); border-color: var(--line); }

.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #1a1208; font-weight: 600; font-size: 12.5px;
  border: 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 1px 8px rgba(230,199,156,0.3);
  font-family: inherit;
}
.cta:hover { filter: brightness(1.05); }
.cta.ghost {
  background: var(--bg-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cta.ghost:hover { background: var(--bg-3); }

.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #8a6840, #c89972);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: #2a1c0a;
  border: 1px solid var(--line-2);
}

/* ─── sidebar ─── */
.side {
  grid-area: side;
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  overflow-y: auto; padding: 14px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.side-section { padding: 14px 8px 6px; font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-4); }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 7px;
  color: var(--text-2); cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: 0.15s; position: relative;
}
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active {
  background: var(--bg-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-item svg { flex-shrink: 0; opacity: 0.8; }
.nav-item .badge {
  margin-left: auto; font-size: 10.5px; font-family: var(--mono); color: var(--text-3);
  padding: 1px 6px; background: var(--bg-3); border-radius: 4px;
}
.nav-item .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* project card in sidebar */
.proj {
  margin: 8px 4px; padding: 12px;
  background: linear-gradient(180deg, rgba(230,199,156,0.06), rgba(230,199,156,0));
  border: 1px solid var(--line);
  border-radius: 10px;
}
.proj-thumb {
  height: 72px; border-radius: 6px; margin-bottom: 8px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(230,199,156,0.4), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(110,80,170,0.35), transparent 55%),
    linear-gradient(135deg, #2a1f1a, #15171c);
  position: relative; overflow: hidden;
}
.proj-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,0.02) 2px 3px);
  mix-blend-mode: overlay;
}
.proj-name { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.proj-meta { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.proj-prog { height: 3px; background: var(--bg-3); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.proj-prog i { display: block; height: 100%; width: 64%; background: var(--accent); }

/* ─── stage (preview area) ─── */
.stage {
  grid-area: stage;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230,199,156,0.05), transparent 60%),
    var(--bg);
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}

.stage-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.stage-toolbar .spacer { flex: 1; }
.tool-pill { display: flex; gap: 2px; padding: 2px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.tool-pill button { padding: 5px 10px; border-radius: 6px; border: 0;
  background: transparent; color: var(--text-3); font-size: 11.5px; font-weight: 500;
  cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 6px; }
.tool-pill button:hover { color: var(--text); }
.tool-pill button.on { background: var(--bg-3); color: var(--text); }

.canvas-wrap {
  flex: 1; display: grid; place-items: center;
  padding: 32px;
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(230,199,156,0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(120,80,180,0.05), transparent 40%);
}

/* the big preview viewer */
.viewer {
  position: relative;
  width: min(900px, 100%);
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px var(--line-2);
  background: #000;
}
.viewer-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.viewer-grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(20,5,0,0.1), rgba(40,20,5,0.05) 40%, transparent);
  mix-blend-mode: multiply;
}
.viewer-letterbox {
  position: absolute; left: 0; right: 0; height: 8%;
  background: #000;
}
.viewer-letterbox.top { top: 0; }
.viewer-letterbox.bot { bottom: 0; }

.viewer-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  pointer-events: none;
  font-family: var(--mono);
  color: rgba(255,255,255,0.85);
}
.viewer-overlay-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px 16px;
}
.viewer-overlay-top span { background: rgba(0,0,0,0.55); padding: 3px 7px; border-radius: 3px; font-size: 10.5px; letter-spacing: 0.04em; }
.viewer-overlay .spacer { flex: 1; }
.viewer-overlay-bot {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 12px 16px;
  font-size: 10px; letter-spacing: 0.06em;
}
.viewer-rec { display: flex; align-items: center; gap: 6px; }
.viewer-rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff4040; box-shadow: 0 0 8px #ff4040; }

.viewer-cap {
  position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-weight: 500; font-size: 18px;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.4); padding: 8px 18px; border-radius: 4px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
}

/* transport controls below viewer */
.transport {
  margin-top: 18px;
  display: flex; align-items: center; gap: 12px; justify-content: center;
  font-family: var(--mono);
}
.transport .tc { color: var(--text-2); font-size: 12px; min-width: 100px; }
.transport .tc.right { text-align: right; }
.transport .tc b { color: var(--text); font-weight: 500; }

.t-btn { width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: 0.15s; }
.t-btn:hover { background: var(--bg-3); border-color: var(--line-2); }
.t-btn.play {
  width: 44px; height: 44px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #1a1208; border: 0;
  box-shadow: 0 6px 24px rgba(230,199,156,0.25);
}

/* ─── right panel: AI generation ─── */
.right {
  grid-area: right;
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.right-tabs {
  display: flex; padding: 0 14px; padding-top: 14px;
  border-bottom: 1px solid var(--line);
  gap: 0;
}
.right-tab {
  padding: 8px 12px; font-size: 12px; color: var(--text-3); cursor: pointer;
  border: 0; background: transparent; font-family: inherit; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: 0.15s;
}
.right-tab:hover { color: var(--text); }
.right-tab.active { color: var(--text); border-color: var(--accent); }
.right-tab .num { font-family: var(--mono); font-size: 10px; color: var(--text-4); margin-left: 4px; }

.gen-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

.section-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3);
}
.section-label .hint { font-family: var(--mono); font-size: 10px; color: var(--text-4); text-transform: none; letter-spacing: 0; }

/* mode chooser */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mode {
  padding: 10px 11px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-2);
  cursor: pointer; transition: 0.15s; text-align: left;
  display: flex; flex-direction: column; gap: 4px; min-height: 64px;
  font-family: inherit; color: var(--text);
}
.mode:hover { border-color: var(--line-2); }
.mode.on {
  background: var(--accent-soft); border-color: rgba(230,199,156,0.5);
  box-shadow: inset 0 0 0 1px rgba(230,199,156,0.2);
}
.mode-title { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mode-desc { font-size: 11px; color: var(--text-3); line-height: 1.35; }

/* prompt box */
.prompt {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
  transition: 0.15s;
}
.prompt:focus-within { border-color: rgba(230,199,156,0.4); box-shadow: 0 0 0 3px rgba(230,199,156,0.08); }
.prompt textarea {
  border: 0; background: transparent; resize: none; outline: 0;
  color: var(--text); font-family: inherit; font-size: 13px; line-height: 1.5;
  min-height: 76px;
}
.prompt textarea::placeholder { color: var(--text-4); }
.prompt-bottom { display: flex; align-items: center; gap: 6px; }
.prompt-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line);
  font-size: 11px; color: var(--text-2); cursor: pointer; font-family: inherit;
}
.prompt-chip:hover { background: var(--bg); color: var(--text); }
.prompt-chip svg { opacity: 0.7; }
.prompt-bottom .spacer { flex: 1; }
.send-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 7px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #1a1208; font-weight: 600; font-size: 11.5px;
  border: 0; cursor: pointer; font-family: inherit;
}

/* parameters */
.param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.param {
  padding: 8px 10px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; transition: 0.15s; display: flex; flex-direction: column;
}
.param:hover { border-color: var(--line-2); }
.param-k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.param-v { font-size: 12.5px; font-weight: 500; color: var(--text); margin-top: 2px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.param-v svg { opacity: 0.5; }

/* virtual camera moves */
.cams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cam {
  aspect-ratio: 1; border-radius: 8px; background: var(--bg-2);
  border: 1px solid var(--line); cursor: pointer; transition: 0.15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--text-2); font-family: inherit;
}
.cam:hover { background: var(--bg-3); color: var(--text); }
.cam.on { background: var(--accent-soft); border-color: rgba(230,199,156,0.4); color: var(--text); }
.cam-label { font-size: 9.5px; font-weight: 500; letter-spacing: 0.02em; }

/* references row */
.refs { display: flex; gap: 6px; }
.ref-tile {
  width: 56px; height: 56px; border-radius: 6px;
  border: 1px solid var(--line); background-size: cover; background-position: center;
  position: relative; flex-shrink: 0;
}
.ref-tile.add {
  border-style: dashed; background: var(--bg-2);
  display: grid; place-items: center; color: var(--text-3); cursor: pointer;
}
.ref-tile.add:hover { color: var(--text); border-color: var(--line-2); }

/* generations queue */
.gens { display: flex; flex-direction: column; gap: 8px; }
.gen-card {
  display: flex; gap: 10px; padding: 10px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
  position: relative;
}
.gen-thumb {
  width: 88px; height: 50px; flex-shrink: 0; border-radius: 5px;
  background-size: cover; background-position: center; background-color: #000;
  position: relative; overflow: hidden;
}
.gen-thumb .play-mark { position: absolute; right: 4px; bottom: 4px; font-family: var(--mono);
  font-size: 9px; color: #fff; background: rgba(0,0,0,0.7); padding: 1px 4px; border-radius: 2px; }
.gen-info { flex: 1; min-width: 0; }
.gen-prompt { font-size: 11.5px; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gen-meta { display: flex; gap: 8px; margin-top: 6px; font-size: 10.5px; font-family: var(--mono); color: var(--text-3); }
.gen-status { display: inline-flex; align-items: center; gap: 4px; }
.gen-status.gen i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
.gen-status.done i { width: 5px; height: 5px; border-radius: 50%; background: var(--good); }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.gen-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--bg-3); border-radius: 0 0 10px 10px; overflow: hidden; }
.gen-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ─── timeline ─── */
.timeline {
  grid-area: timeline;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  display: grid; grid-template-rows: 32px 1fr;
  overflow: hidden;
}
.tl-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 11.5px;
}
.tl-toolbar .spacer { flex: 1; }
.tl-toolbar .ic {
  width: 22px; height: 22px; border-radius: 5px;
  display: grid; place-items: center; color: var(--text-3); cursor: pointer;
  background: transparent; border: 0;
}
.tl-toolbar .ic:hover { background: var(--bg-3); color: var(--text); }
.tl-toolbar .zoom { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.tl-toolbar .zoom-bar { width: 80px; height: 3px; background: var(--bg-3); border-radius: 2px; position: relative; }
.tl-toolbar .zoom-bar::after { content: ''; position: absolute; left: 30%; width: 30%; height: 100%;
  background: var(--text-3); border-radius: 2px; }

.tl-body {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 132px 1fr;
}
.tl-tracks-head {
  border-right: 1px solid var(--line);
  background: var(--bg-1);
  display: flex; flex-direction: column;
}
.tl-track-head {
  height: 36px; padding: 0 12px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--text-2);
}
.tl-track-head .lock { width: 14px; height: 14px; opacity: 0.4; }
.tl-track-head .name { flex: 1; font-weight: 500; }
.tl-track-head .vu { display: flex; gap: 1px; }
.tl-track-head .vu i { width: 2px; height: 9px; background: var(--bg-3); border-radius: 1px; }
.tl-track-head .vu i.on { background: var(--good); }

.tl-canvas {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(to right, transparent 0 79px, var(--line) 79px 80px),
    var(--bg);
}
.tl-ruler {
  height: 22px; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  font-family: var(--mono); font-size: 9.5px; color: var(--text-3);
}
.tl-ruler i {
  position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--line-2);
}
.tl-ruler span { position: absolute; bottom: 6px; transform: translateX(-50%); padding: 0 3px; }

.tl-rows {
  position: relative;
}
.tl-row {
  height: 36px; border-bottom: 1px solid var(--line);
  position: relative;
}
.tl-clip {
  position: absolute; top: 4px; bottom: 4px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 6px;
  padding: 0 8px;
  font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,0.95);
  white-space: nowrap; overflow: hidden;
  cursor: pointer;
  font-family: var(--mono);
}
.tl-clip::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
  border-radius: 0 0 3px 3px;
}
.tl-clip.video {
  background: linear-gradient(180deg, #4a3a78, #322656);
  border-color: rgba(150,120,210,0.4);
}
.tl-clip.ai {
  background: linear-gradient(180deg, #7a5a3a, #4a3622);
  border-color: rgba(230,199,156,0.5);
}
.tl-clip.ai::after {
  content: ''; position: absolute; top: 4px; right: 6px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.tl-clip.audio {
  background: linear-gradient(180deg, #2a5e58, #1c3e3a);
  border-color: rgba(120,210,200,0.4);
  display: flex; flex-direction: column; justify-content: center; padding: 0 8px;
}
.tl-clip.audio .wf {
  display: flex; align-items: center; gap: 1px; height: 14px; margin-top: 4px;
}
.tl-clip.audio .wf i {
  width: 2px; background: rgba(160,230,220,0.7); border-radius: 1px;
}
.tl-clip.text {
  background: linear-gradient(180deg, #5a4a2a, #3a2f1a);
  border-color: rgba(230,199,156,0.4);
  font-family: var(--sans);
}

.tl-playhead {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--accent);
  z-index: 5; pointer-events: none;
}
.tl-playhead::before {
  content: ''; position: absolute; top: -1px; left: -7px; width: 15px; height: 12px;
  background: var(--accent); border-radius: 2px 2px 0 8px;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ─── status bar overlay (bottom of stage) ─── */
.status-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 22px; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  font-size: 10.5px; font-family: var(--mono); color: var(--text-3);
  border-top: 1px solid var(--line);
  z-index: 2;
}
.status-bar .ok { color: var(--good); }
.status-bar .warn { color: var(--accent); }

/* generic helpers */
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }
.scroll::-webkit-scrollbar-track { background: transparent; }

/* serif accents */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* canvas header for design canvas pages */
body.canvas-mode { background: #0a0a0c; }
