/* ═══════════════════════════════════════════════════════════════════════
   GeNIDEA Video · IDE-grade editor surface
   ─────────────────────────────────────────────────────────────────────────
   Aesthetic: warm-dark editor tool · signal-amber single accent.
   Energy:    Claude Code / Cursor / VS Code chrome, with a video viewport
              in the place of a code buffer.
   Type:      JetBrains Mono everywhere mechanical (IDs, timestamps,
              durations, panel headers) · Geist for editorial labels.
   Anti-slop: no aurora, no purple gradient, no Inter; hairline 1px
              dividers; uppercase mono headers; `::` separators in chrome.
   Scope:    body[data-platform="timeline"].ux-004-geidea  (timeline-only)
   ═══════════════════════════════════════════════════════════════════════ */


/* ── 1 · Tokens ─────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea {
  /* surfaces — warm-dark, slightly green-shifted (NOT cold-blue) */
  --bg:        #0b0d10;
  --bg-2:      #0f1217;
  --panel:     #13171d;
  --panel-2:   #181d24;
  --panel-3:   #1e242c;

  /* hairlines */
  --line:      rgba(255, 255, 255, 0.055);
  --line-2:    rgba(255, 255, 255, 0.09);
  --line-3:    rgba(255, 255, 255, 0.14);

  /* text */
  --text:      #ebe9e4;       /* warm off-white */
  --text-2:    #b8b5af;
  --dim:       #7e7c77;
  --faint:     #56544f;

  /* THE accent — glowing PINK + neon YELLOW (the colors David loved in the
     previous theme), on the warm-dark IDE base. Pink is primary; yellow is
     the highlight / default-marker; the gradient is the signature glow. */
  --accent:        #ff5cc8;   /* glowing pink — primary */
  --accent-2:      #ff86d6;
  --accent-yellow: #eaff3a;   /* neon yellow — highlights, ★ defaults */
  --accent-soft:   rgba(255, 92, 200, 0.16);
  --accent-line:   rgba(255, 92, 200, 0.42);
  --accent-glow:   rgba(255, 92, 200, 0.60);
  --accent-yellow-glow: rgba(234, 255, 58, 0.55);
  --accent-grad:   linear-gradient(100deg, #ff5cc8 0%, #ff7ac4 48%, #eaff3a 135%);

  /* semantic */
  --ok:        #6cffb1;
  --warn:      #ffd56b;
  --err:       #ff5b5b;

  /* shadows — flat, not bloomy */
  --shadow-1:  0 1px 0 rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
  --shadow-2:  0 8px 24px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-2);
  --shadow-popover: 0 20px 50px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line-3);

  /* motion — IDE-instant, not springy */
  --ease:      cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast:    90ms;
  --t-mid:     180ms;
  --t-slow:    260ms;

  /* type */
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;
  --sans:  "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* rhythm */
  --r-tile:    6px;
  --r-card:    9px;
  --r-popover: 12px;

  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11", "tnum";
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-2);
  background: var(--bg);

  /* kill the legacy aurora */
  background-image: none;
}

/* atmospheric subtle film-grain (very low opacity, only over the page bg) */
body[data-platform="timeline"].ux-004-geidea::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  mix-blend-mode: screen;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
/* kill the legacy aurora ::after noise overlay */
body[data-platform="timeline"].ux-004-geidea::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body[data-platform="timeline"].ux-004-geidea *,
  body[data-platform="timeline"].ux-004-geidea *::before,
  body[data-platform="timeline"].ux-004-geidea *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.08s !important;
  }
}

/* ── 2 · Universal element resets within scope ───────────────────────── */
body[data-platform="timeline"].ux-004-geidea ::selection {
  background: var(--accent-soft);
  color: var(--text);
}

body[data-platform="timeline"].ux-004-geidea :focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 4px;
}

body[data-platform="timeline"].ux-004-geidea ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
body[data-platform="timeline"].ux-004-geidea ::-webkit-scrollbar-track {
  background: transparent;
}
body[data-platform="timeline"].ux-004-geidea ::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 2px solid var(--bg);
  border-radius: 6px;
}
body[data-platform="timeline"].ux-004-geidea ::-webkit-scrollbar-thumb:hover {
  background: var(--line-3);
}

body[data-platform="timeline"].ux-004-geidea code,
body[data-platform="timeline"].ux-004-geidea pre,
body[data-platform="timeline"].ux-004-geidea .mono,
body[data-platform="timeline"].ux-004-geidea .timecode,
body[data-platform="timeline"].ux-004-geidea .ecid {
  font-family: var(--mono);
  font-feature-settings: "calt" 0, "tnum";
}

/* a tiny "::" separator helper used in chrome strings */
body[data-platform="timeline"].ux-004-geidea .sep {
  display: inline-block;
  padding: 0 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════════
   3 · Launcher — the door
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea #timelineLauncherModal.ux-004-launcher.open .modal,
body[data-platform="timeline"].ux-004-geidea #timelineLauncherModal.open .modal {
  max-width: 640px;
  width: min(92vw, 640px);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-popover);
  box-shadow: var(--shadow-popover);
  padding: 28px 30px 24px;
  font-family: var(--sans);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-door-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-door-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  position: relative;
  animation: none;
  box-shadow: none;
}
body[data-platform="timeline"].ux-004-geidea .ux-004-door-mark::after {
  content: "";
  position: absolute;
  inset: auto 5px 5px auto;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: amber-pulse 2.6s ease-in-out infinite;
}
body[data-platform="timeline"].ux-004-geidea .ux-004-door-mark::before {
  content: "▰";
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.05em;
}

@keyframes amber-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

body[data-platform="timeline"].ux-004-geidea .ux-004-door h2 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--text);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-door-tagline {
  color: var(--dim);
  font-size: 13.5px;
  margin: 0 0 26px;
  line-height: 1.55;
}

body[data-platform="timeline"].ux-004-geidea .ux-004-vuid-row label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}

body[data-platform="timeline"].ux-004-geidea .ux-004-vuid-row input {
  width: 100%;
  font-family: var(--mono);
  font-size: 14px;
  padding: 13px 14px;
  border-radius: var(--r-tile);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  letter-spacing: 0.01em;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-vuid-row input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-vuid-helper {
  margin: 9px 0 20px;
  font-size: 12px;
  color: var(--faint);
  font-family: var(--mono);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-door-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

body[data-platform="timeline"].ux-004-geidea .ux-004-btn-primary {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-tile);
  padding: 11px 18px;
  cursor: pointer;
  animation: none;
  box-shadow: none;
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .ux-004-btn-primary:hover {
  background: var(--accent-2);
  transform: none;
}
body[data-platform="timeline"].ux-004-geidea .ux-004-btn-primary:active {
  transform: translateY(1px);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-btn-ghost {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-tile);
  padding: 11px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .ux-004-btn-ghost:hover {
  color: var(--text);
  border-color: var(--line-3);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-footer-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin: 0 0 20px;
  line-height: 1.5;
}

body[data-platform="timeline"].ux-004-geidea .ux-004-banner {
  padding: 11px 13px;
  border-radius: var(--r-tile);
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 14px;
  font-family: var(--mono);
}
body[data-platform="timeline"].ux-004-geidea .ux-004-banner-warn {
  background: rgba(255, 213, 107, 0.06);
  border: 1px solid rgba(255, 213, 107, 0.25);
  color: var(--text);
}
body[data-platform="timeline"].ux-004-geidea .ux-004-banner-error {
  background: rgba(255, 91, 91, 0.06);
  border: 1px solid rgba(255, 91, 91, 0.30);
  color: var(--text);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-continue h3 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--dim);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-continue .timeline-launcher-list {
  max-height: 240px;
  overflow: auto;
}

body[data-platform="timeline"].ux-004-geidea .timeline-launcher-job.ux-004-turbogen-job {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

body[data-platform="timeline"].ux-004-geidea .ux-004-turbogen-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 8px;
  padding: 2px 6px;
  background: var(--accent-soft);
  border-radius: 3px;
}

body[data-platform="timeline"].ux-004-geidea .ux-004-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  margin: 0 0 10px;
  border-radius: var(--r-tile);
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}
body[data-platform="timeline"].ux-004-geidea .ux-004-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(108, 255, 177, 0.5);
  flex-shrink: 0;
}

body[data-platform="timeline"].ux-004-geidea .ux-004-smart-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}


/* ═══════════════════════════════════════════════════════════════════════
   4 · Studio shell — the editor surface
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .studio {
  background: var(--bg);
  font-family: var(--sans);
  color: var(--text-2);
}

/* Three-pane grid stays; we just claim the rows and add a bottom status bar */
body[data-platform="timeline"].ux-004-geidea .studio {
  display: grid;
  grid-template-rows: 44px 1fr 28px;
  grid-template-areas:
    "topbar"
    "body"
    "statusbar";
}

body[data-platform="timeline"].ux-004-geidea .studio-top-bar {
  grid-area: topbar;
  height: 44px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  position: relative;
}
body[data-platform="timeline"].ux-004-geidea .studio-top-bar::after {
  /* tab-underline channel */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}

body[data-platform="timeline"].ux-004-geidea .studio-body {
  grid-area: body;
  background: var(--bg);
  position: relative;
}

/* The 3-pane interior — we keep the existing 240/1fr/300 grid but slim
   the borders and harden the typographic edges. */
body[data-platform="timeline"].ux-004-geidea .studio-left,
body[data-platform="timeline"].ux-004-geidea .studio-right {
  background: var(--panel);
  border-color: var(--line);
}

body[data-platform="timeline"].ux-004-geidea .studio-left {
  border-right: 1px solid var(--line);
}
body[data-platform="timeline"].ux-004-geidea .studio-right {
  border-left: 1px solid var(--line);
}

body[data-platform="timeline"].ux-004-geidea .studio-main {
  background: var(--bg);
}

/* preview / timeline / transcript get hairline channels */
body[data-platform="timeline"].ux-004-geidea .studio-preview {
  background: #06080b;
  border-bottom: 1px solid var(--line);
  position: relative;
}
body[data-platform="timeline"].ux-004-geidea .studio-preview::after {
  /* subtle CRT-corner vignette — broadcast nod, very low */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 70%, rgba(0,0,0,0.40) 100%);
}

body[data-platform="timeline"].ux-004-geidea .studio-timeline {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

body[data-platform="timeline"].ux-004-geidea .studio-transcript {
  background: var(--panel);
  border-top: 1px solid var(--line);
}


/* ── 4a · Studio top-bar typography & breadcrumb ─────────────────────── */
body[data-platform="timeline"].ux-004-geidea .studio-top-bar .breadcrumb,
body[data-platform="timeline"].ux-004-geidea .studio-top-bar .crumb,
body[data-platform="timeline"].ux-004-geidea .studio-top-bar h1,
body[data-platform="timeline"].ux-004-geidea .studio-top-bar h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
  text-transform: none;
}

body[data-platform="timeline"].ux-004-geidea .studio-top-bar button,
body[data-platform="timeline"].ux-004-geidea .studio-top-bar .btn {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  padding: 6px 11px;
  border-radius: var(--r-tile);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .studio-top-bar button:hover,
body[data-platform="timeline"].ux-004-geidea .studio-top-bar .btn:hover {
  border-color: var(--line-3);
  color: var(--text);
}
body[data-platform="timeline"].ux-004-geidea .studio-top-bar button.primary,
body[data-platform="timeline"].ux-004-geidea .studio-top-bar .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a0d00;
  font-weight: 600;
}
body[data-platform="timeline"].ux-004-geidea .studio-top-bar button.primary:hover,
body[data-platform="timeline"].ux-004-geidea .studio-top-bar .btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}


/* ── 4b · Panel headers — the IDE signature ──────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .studio-left .section-header,
body[data-platform="timeline"].ux-004-geidea .studio-left .panel-header,
body[data-platform="timeline"].ux-004-geidea .studio-right .section-header,
body[data-platform="timeline"].ux-004-geidea .studio-right .panel-header,
body[data-platform="timeline"].ux-004-geidea .studio-left h2,
body[data-platform="timeline"].ux-004-geidea .studio-left h3,
body[data-platform="timeline"].ux-004-geidea .studio-right h2,
body[data-platform="timeline"].ux-004-geidea .studio-right h3 {
  font-family: var(--mono) !important;
  font-size: 10.5px !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 12px 14px 10px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 9px;
  user-select: none;
}

/* Tiny chevron dot before each panel header — IDE feel */
body[data-platform="timeline"].ux-004-geidea .studio-left .section-header::before,
body[data-platform="timeline"].ux-004-geidea .studio-right .section-header::before {
  content: "▸";
  font-size: 10px;
  color: var(--faint);
  transition: transform var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .studio-left .section-header.open::before,
body[data-platform="timeline"].ux-004-geidea .studio-right .section-header.open::before {
  transform: rotate(90deg);
}


/* ═══════════════════════════════════════════════════════════════════════
   5 · Source library / bin — the "file explorer" of the editor
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .studio-left .bin-asset,
body[data-platform="timeline"].ux-004-geidea .studio-left .studio-bin-asset,
body[data-platform="timeline"].ux-004-geidea .studio-left .clip-row,
body[data-platform="timeline"].ux-004-geidea .studio-left .source-clip,
body[data-platform="timeline"].ux-004-geidea .studio-left .source-library-clip {
  background: transparent;
  border-radius: 0;
  border: none;
  border-left: 2px solid transparent;
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
body[data-platform="timeline"].ux-004-geidea .studio-left .bin-asset:hover,
body[data-platform="timeline"].ux-004-geidea .studio-left .studio-bin-asset:hover,
body[data-platform="timeline"].ux-004-geidea .studio-left .clip-row:hover,
body[data-platform="timeline"].ux-004-geidea .studio-left .source-clip:hover,
body[data-platform="timeline"].ux-004-geidea .studio-left .source-library-clip:hover {
  background: var(--panel-2);
  color: var(--text);
}
body[data-platform="timeline"].ux-004-geidea .studio-left .bin-asset.is-selected,
body[data-platform="timeline"].ux-004-geidea .studio-left .studio-bin-asset.is-selected,
body[data-platform="timeline"].ux-004-geidea .studio-left .clip-row.is-selected,
body[data-platform="timeline"].ux-004-geidea .studio-left .source-clip.is-selected,
body[data-platform="timeline"].ux-004-geidea .studio-left .source-library-clip.is-selected {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--text);
}

/* clip metadata read as mono — ECID, timestamps, durations  */
body[data-platform="timeline"].ux-004-geidea .studio-left .clip-meta,
body[data-platform="timeline"].ux-004-geidea .studio-left .clip-duration,
body[data-platform="timeline"].ux-004-geidea .studio-left .clip-ecid {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--dim);
}

/* search input in left panel */
body[data-platform="timeline"].ux-004-geidea .studio-left input[type="text"],
body[data-platform="timeline"].ux-004-geidea .studio-left input[type="search"] {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 7px 10px;
  width: calc(100% - 28px);
  margin: 8px 14px;
}
body[data-platform="timeline"].ux-004-geidea .studio-left input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}


/* ═══════════════════════════════════════════════════════════════════════
   6 · Center — preview + timeline + transcript polish
   ─────────────────────────────────────────────────────────────────────── */

/* video wrapper — keep dark, make the controls feel native */
body[data-platform="timeline"].ux-004-geidea .studio-preview video {
  background: #000;
}

/* the smart-timeline shell + clips — flatten gradients, use a single accent */
body[data-platform="timeline"].ux-004-geidea .smart-timeline-shell {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

body[data-platform="timeline"].ux-004-geidea .smart-block.smart-clip {
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  animation: none !important;
  box-shadow: none;
  font-family: var(--sans);
}

body[data-platform="timeline"].ux-004-geidea .smart-block.smart-clip:hover {
  transform: none;
  border-color: var(--line-3);
  background: var(--panel-3);
  box-shadow: none;
}

body[data-platform="timeline"].ux-004-geidea .smart-block.smart-clip.is-selected {
  box-shadow: none;
  border-color: var(--accent);
  background: var(--accent-soft);
}

body[data-platform="timeline"].ux-004-geidea .smart-block.smart-clip.ux-004-clip-done::before {
  display: none;
}

/* multi-track timeline track labels */
body[data-platform="timeline"].ux-004-geidea .timeline-track-header,
body[data-platform="timeline"].ux-004-geidea .tl-track-header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--panel);
  border-right: 1px solid var(--line);
}

/* playhead — make it ALWAYS amber */
body[data-platform="timeline"].ux-004-geidea .timeline-playhead,
body[data-platform="timeline"].ux-004-geidea .tl-playhead,
body[data-platform="timeline"].ux-004-geidea .studio-timeline .playhead {
  background: var(--accent) !important;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* transcript cards — make them feel like terminal output rows */
body[data-platform="timeline"].ux-004-geidea .studio-transcript .segment-card,
body[data-platform="timeline"].ux-004-geidea .studio-transcript .transcript-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  font-family: var(--sans);
  font-size: 12.5px;
  padding: 8px 10px;
}
body[data-platform="timeline"].ux-004-geidea .studio-transcript .segment-card.segment-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
body[data-platform="timeline"].ux-004-geidea .studio-transcript .segment-card .timecode {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}


/* ═══════════════════════════════════════════════════════════════════════
   7 · Right panel — Properties + Chat (W-REEDIT-ready)
   ─────────────────────────────────────────────────────────────────────── */

/* Slightly wider right panel for a chat-suitable column */
body[data-platform="timeline"].ux-004-geidea .studio-body {
  grid-template-columns: 240px 1fr 360px;
}

/* Right-panel tab bar (Chat | Properties) — injected via JS */
body[data-platform="timeline"].ux-004-geidea .tg-right-tabs {
  display: flex;
  align-items: stretch;
  height: 36px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
}
body[data-platform="timeline"].ux-004-geidea .tg-right-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-right-tab:hover {
  color: var(--text-2);
}
body[data-platform="timeline"].ux-004-geidea .tg-right-tab.active {
  color: var(--text);
}
body[data-platform="timeline"].ux-004-geidea .tg-right-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
body[data-platform="timeline"].ux-004-geidea .tg-right-tab .tg-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  display: inline-block;
}

/* ── 7a · Chat surface (the W-REEDIT seat) ───────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .tg-chat {
  display: none;
  flex-direction: column;
  height: calc(100% - 36px);
}
body[data-platform="timeline"].ux-004-geidea .tg-chat.active { display: flex; }

body[data-platform="timeline"].ux-004-geidea .tg-chat-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 12px 16px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
body[data-platform="timeline"].ux-004-geidea .tg-chat-meta .tg-model {
  color: var(--accent);
  font-weight: 600;
}
body[data-platform="timeline"].ux-004-geidea .tg-chat-meta .tg-rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: amber-pulse 2.4s ease-in-out infinite;
}

body[data-platform="timeline"].ux-004-geidea .tg-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-platform="timeline"].ux-004-geidea .tg-msg {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  animation: tg-reveal 220ms var(--ease) both;
}
body[data-platform="timeline"].ux-004-geidea .tg-msg-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body[data-platform="timeline"].ux-004-geidea .tg-msg-role.user { color: var(--accent); }
body[data-platform="timeline"].ux-004-geidea .tg-msg-body {
  color: var(--text-2);
}
body[data-platform="timeline"].ux-004-geidea .tg-msg .tg-diff {
  margin-top: 9px;
  padding: 8px 10px;
  border-left: 2px solid var(--accent);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  white-space: pre-wrap;
  border-radius: 0 4px 4px 0;
}

@keyframes tg-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

body[data-platform="timeline"].ux-004-geidea .tg-chat-suggestions {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body[data-platform="timeline"].ux-004-geidea .tg-suggestion {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-suggestion:hover {
  border-color: var(--accent-line);
  color: var(--text);
  background: var(--accent-soft);
}

body[data-platform="timeline"].ux-004-geidea .tg-chat-composer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body[data-platform="timeline"].ux-004-geidea .tg-chat-composer textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-tile);
  resize: none;
  min-height: 62px;
  max-height: 240px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-chat-composer textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

body[data-platform="timeline"].ux-004-geidea .tg-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body[data-platform="timeline"].ux-004-geidea .tg-chat-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
body[data-platform="timeline"].ux-004-geidea .tg-chat-hint kbd {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--panel-3);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 1px 5px;
  margin: 0 1px;
}

body[data-platform="timeline"].ux-004-geidea .tg-btn-send {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-tile);
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-btn-send:hover {
  background: var(--accent-2);
}
body[data-platform="timeline"].ux-004-geidea .tg-btn-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* ── 7b · Properties surface — keep existing UI, just restyle ────────── */
body[data-platform="timeline"].ux-004-geidea .tg-properties {
  display: none;
  height: calc(100% - 36px);
  overflow-y: auto;
}
body[data-platform="timeline"].ux-004-geidea .tg-properties.active { display: block; }


/* ═══════════════════════════════════════════════════════════════════════
   8 · Status bar — terminal-style chrome (bottom 28px)
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .tg-statusbar {
  grid-area: statusbar;
  height: 28px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.02em;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

body[data-platform="timeline"].ux-004-geidea .tg-statusbar .tg-st-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
}

body[data-platform="timeline"].ux-004-geidea .tg-statusbar .tg-st-sep {
  color: var(--faint);
  padding: 0 9px;
}

body[data-platform="timeline"].ux-004-geidea .tg-statusbar .tg-st-rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: amber-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

body[data-platform="timeline"].ux-004-geidea .tg-statusbar .tg-st-label {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9.5px;
}

body[data-platform="timeline"].ux-004-geidea .tg-statusbar .tg-st-val {
  color: var(--text);
}

body[data-platform="timeline"].ux-004-geidea .tg-statusbar .tg-st-grade {
  color: var(--accent);
  font-weight: 600;
}

body[data-platform="timeline"].ux-004-geidea .tg-statusbar .tg-st-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

body[data-platform="timeline"].ux-004-geidea .tg-statusbar .tg-cmd-hint {
  color: var(--faint);
}
body[data-platform="timeline"].ux-004-geidea .tg-statusbar .tg-cmd-hint kbd {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--panel-3);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 1px 5px;
}


/* ═══════════════════════════════════════════════════════════════════════
   9 · Command palette — ⌘K overlay
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .tg-palette-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 11, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  animation: tg-scrim 140ms var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-palette-scrim.open {
  display: flex;
}
@keyframes tg-scrim {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body[data-platform="timeline"].ux-004-geidea .tg-palette {
  width: min(640px, 92vw);
  background: var(--panel);
  border: 1px solid var(--line-3);
  border-radius: var(--r-popover);
  box-shadow: var(--shadow-popover);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  animation: tg-palette-in 220ms var(--ease);
}
@keyframes tg-palette-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

body[data-platform="timeline"].ux-004-geidea .tg-palette-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
body[data-platform="timeline"].ux-004-geidea .tg-palette-prompt {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  user-select: none;
}
body[data-platform="timeline"].ux-004-geidea .tg-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.005em;
}
body[data-platform="timeline"].ux-004-geidea .tg-palette-input::placeholder {
  color: var(--faint);
}

body[data-platform="timeline"].ux-004-geidea .tg-palette-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
}

body[data-platform="timeline"].ux-004-geidea .tg-palette-section {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 10px 16px 4px;
}

body[data-platform="timeline"].ux-004-geidea .tg-palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
  border-left: 2px solid transparent;
}
body[data-platform="timeline"].ux-004-geidea .tg-palette-item:hover,
body[data-platform="timeline"].ux-004-geidea .tg-palette-item.is-active {
  background: var(--accent-soft);
  color: var(--text);
  border-left-color: var(--accent);
}
body[data-platform="timeline"].ux-004-geidea .tg-palette-item .tg-palette-verb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  min-width: 88px;
}
body[data-platform="timeline"].ux-004-geidea .tg-palette-item .tg-palette-kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

body[data-platform="timeline"].ux-004-geidea .tg-palette-empty {
  padding: 32px 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}


/* ═══════════════════════════════════════════════════════════════════════
   10 · Global button + control polish (inside Studio only)
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .studio button,
body[data-platform="timeline"].ux-004-geidea .studio .btn {
  font-family: var(--sans);
}

body[data-platform="timeline"].ux-004-geidea .studio .btn-primary,
body[data-platform="timeline"].ux-004-geidea .studio button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a0d00;
}
body[data-platform="timeline"].ux-004-geidea .studio .btn-primary:hover,
body[data-platform="timeline"].ux-004-geidea .studio button.primary:hover {
  background: var(--accent-2);
}

body[data-platform="timeline"].ux-004-geidea .studio input,
body[data-platform="timeline"].ux-004-geidea .studio select,
body[data-platform="timeline"].ux-004-geidea .studio textarea {
  font-family: var(--sans);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: var(--r-tile);
}
body[data-platform="timeline"].ux-004-geidea .studio input:focus,
body[data-platform="timeline"].ux-004-geidea .studio select:focus,
body[data-platform="timeline"].ux-004-geidea .studio textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

/* dim badges, used-/pinned-clip pills, tags */
body[data-platform="timeline"].ux-004-geidea .studio .badge,
body[data-platform="timeline"].ux-004-geidea .studio .pill,
body[data-platform="timeline"].ux-004-geidea .studio .chip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-2);
  color: var(--dim);
  border: 1px solid var(--line);
}
body[data-platform="timeline"].ux-004-geidea .studio .badge.is-active,
body[data-platform="timeline"].ux-004-geidea .studio .pill.is-active,
body[data-platform="timeline"].ux-004-geidea .studio .chip.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}


/* ═══════════════════════════════════════════════════════════════════════
   11 · Tame the Atlas-tails when they slip through
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .vp-timeline-overlay,
body[data-platform="timeline"].ux-004-geidea .vp-segment-overlay {
  display: none !important;
}

/* hide any full-platform-only chrome that may have leaked into timeline */
body[data-platform="timeline"].ux-004-geidea .full-platform-only {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   11b · Chat aside — floating W-REEDIT seat (slides in from the right)
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .tg-chat-aside {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--panel);
  border-left: 1px solid var(--line-2);
  z-index: 8500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-mid) var(--ease);
  box-shadow: -10px 0 30px -10px rgba(0, 0, 0, 0.55);
}
body[data-platform="timeline"].ux-004-geidea .tg-chat-aside.open {
  transform: translateX(0);
}

body[data-platform="timeline"].ux-004-geidea .tg-chat-aside .tg-right-tabs {
  position: relative;
  flex-shrink: 0;
}
body[data-platform="timeline"].ux-004-geidea .tg-chat-aside .tg-chat-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-chat-aside .tg-chat-close:hover {
  color: var(--text);
  border-color: var(--line-3);
}

body[data-platform="timeline"].ux-004-geidea .tg-chat-aside .tg-chat {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
body[data-platform="timeline"].ux-004-geidea .tg-chat-aside .tg-chat.active {
  display: flex;
}

body[data-platform="timeline"].ux-004-geidea .tg-properties-empty {
  padding: 28px 18px;
  text-align: center;
}
body[data-platform="timeline"].ux-004-geidea .tg-empty-text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--dim);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════
   12 · Floating chip — TurboGen Studio brand mark
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .timeline-floating-chip {
  background: var(--panel);
  border: 1px solid var(--line-3);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--shadow-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body[data-platform="timeline"].ux-004-geidea .timeline-floating-chip:hover {
  border-color: var(--accent-line);
  color: var(--accent-2);
}
body[data-platform="timeline"].ux-004-geidea .timeline-floating-chip .timeline-chip-icon {
  color: var(--accent);
}


/* ═══════════════════════════════════════════════════════════════════════
   13 · IDE LAYOUT v2 — video hero · small timeline · bottom chat dock ·
        right-panel tabs (Cut / Actions / Library)
   Overrides earlier rules (later cascade wins). This is the real structural
   redesign: the agent lives at the bottom (Claude-Code style), the video is
   the hero, the right panel shows DATA.
   ─────────────────────────────────────────────────────────────────────── */

/* --- studio becomes a flex column: topbar / body(grows) / dock(bottom) ---
   (flex is bulletproof vs grid-row auto-placement; the dock ALWAYS pins
   to the bottom and the body always fills the height) --- */
body[data-platform="timeline"].ux-004-geidea .studio {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  grid-template-rows: none;
  grid-template-areas: none;
}
body[data-platform="timeline"].ux-004-geidea .studio-top-bar {
  flex: 0 0 44px;
}
body[data-platform="timeline"].ux-004-geidea .studio-body {
  flex: 1 1 auto;
  min-height: 0;          /* let the inner columns scroll instead of overflowing */
}

/* video HERO: kill transcript, shrink timeline, let preview expand --- */
body[data-platform="timeline"].ux-004-geidea .studio-transcript {
  display: none !important;
}
body[data-platform="timeline"].ux-004-geidea .studio-timeline {
  height: 160px !important;            /* was 440 → 232 → 160 (smaller still) */
  flex-shrink: 0;
}
body[data-platform="timeline"].ux-004-geidea .studio-preview {
  flex: 1 1 auto;
  min-height: 300px;                   /* the hero — tall */
  padding: 8px 7%;                     /* narrower video, centered with gutters */
}
/* when the dock is collapsed, the timeline gives a touch more to video */
body[data-platform="timeline"].ux-004-geidea .studio.tg-dock-collapsed .studio-timeline {
  height: 140px !important;
}
/* the center column stacks: video (grows) / timeline / chat dock */
body[data-platform="timeline"].ux-004-geidea .studio-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;   /* anchor for the chat peek + focused overlay */
}

/* Right panel (Cut / Voice / GFX / Actions x-ray) is removed — features will
   be re-integrated differently later. Layout: left drawer (210) + main only. */
body[data-platform="timeline"].ux-004-geidea .studio-body {
  grid-template-columns: 210px 1fr 0;
  grid-template-areas: "left main right";
}
body[data-platform="timeline"].ux-004-geidea .studio-left { grid-area: left; }
body[data-platform="timeline"].ux-004-geidea .studio-main { grid-area: main; }
body[data-platform="timeline"].ux-004-geidea .studio-right { grid-area: right; }
body[data-platform="timeline"].ux-004-geidea .studio-right,
body[data-platform="timeline"].ux-004-geidea #tgRightTabs,
body[data-platform="timeline"].ux-004-geidea .tg-rpanel {
  display: none !important;
}
/* tab strip sits at the very top of the right column; push app.js content down */
body[data-platform="timeline"].ux-004-geidea .studio-right {
  position: relative;
  padding-top: 38px;
}

/* ── 13a · right-panel tab strip (absolute, anchored over right column) ── */
body[data-platform="timeline"].ux-004-geidea #tgRightTabs {
  position: absolute;
  top: 44px;            /* below the studio top bar */
  right: 0;
  width: 340px;
  height: 38px;
  display: flex;
  align-items: stretch;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  z-index: 40;
}
body[data-platform="timeline"].ux-004-geidea .studio-body.right-collapsed ~ #tgRightTabs,
body[data-platform="timeline"].ux-004-geidea #tgRightTabs.hidden { display: none; }

body[data-platform="timeline"].ux-004-geidea .tg-rtab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-rtab:hover { color: var(--text-2); }
body[data-platform="timeline"].ux-004-geidea .tg-rtab.active { color: var(--text); }
body[data-platform="timeline"].ux-004-geidea .tg-rtab.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
body[data-platform="timeline"].ux-004-geidea .tg-rtab .tg-rtab-count {
  font-size: 9px;
  color: var(--faint);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 1px 5px;
}

/* ── 13b · Actions + Library overlay panels (cover the right column) ──── */
body[data-platform="timeline"].ux-004-geidea .tg-rpanel {
  position: absolute;
  top: 82px;            /* 44 topbar + 38 tabstrip */
  right: 0; bottom: 0;
  width: 340px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  z-index: 39;
  display: none;
}
body[data-platform="timeline"].ux-004-geidea .tg-rpanel.active { display: block; }

body[data-platform="timeline"].ux-004-geidea .tg-rpanel-section {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 14px 14px 8px;
}

/* Actions tab — skill / quick-edit buttons */
body[data-platform="timeline"].ux-004-geidea .tg-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 20px);
  margin: 4px 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-action-btn:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}
body[data-platform="timeline"].ux-004-geidea .tg-action-btn .tg-action-verb {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 58px;
}
body[data-platform="timeline"].ux-004-geidea .tg-action-btn .tg-action-desc {
  color: var(--dim);
  font-size: 11px;
}

/* Library tab — cross-job games + plays */
body[data-platform="timeline"].ux-004-geidea .tg-lib-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-item:hover {
  background: var(--panel-2);
  border-left-color: var(--accent);
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-thumb {
  width: 30px; height: 30px;
  border-radius: 5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  flex-shrink: 0;
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-main { min-width: 0; flex: 1; }
body[data-platform="timeline"].ux-004-geidea .tg-lib-name {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}
body[data-platform="timeline"].ux-004-geidea .tg-rpanel-loading,
body[data-platform="timeline"].ux-004-geidea .tg-rpanel-empty {
  padding: 28px 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  background: var(--panel);
}

/* ── 13c · Cut X-RAY (rendered into #studioRight by app.js) ───────────── */
body[data-platform="timeline"].ux-004-geidea .tg-cut-summary {
  display: flex;
  gap: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
body[data-platform="timeline"].ux-004-geidea .tg-cut-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body[data-platform="timeline"].ux-004-geidea .tg-cut-stat b {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
body[data-platform="timeline"].ux-004-geidea .tg-cut-stat i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
body[data-platform="timeline"].ux-004-geidea .tg-xray { padding: 6px 0; }
body[data-platform="timeline"].ux-004-geidea .tg-xray-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-xray-row:hover {
  background: var(--panel-2);
  border-left-color: var(--accent);
}
body[data-platform="timeline"].ux-004-geidea .tg-xray-row.is-skip { opacity: 0.4; }
body[data-platform="timeline"].ux-004-geidea .tg-xray-idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  flex-shrink: 0;
}
body[data-platform="timeline"].ux-004-geidea .tg-xray-label {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
body[data-platform="timeline"].ux-004-geidea .tg-xray-bar {
  width: 46px; height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
body[data-platform="timeline"].ux-004-geidea .tg-xray-fill {
  display: block; height: 100%;
  background: var(--accent);
  opacity: 0.7;
}
body[data-platform="timeline"].ux-004-geidea .tg-xray-dur {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  flex-shrink: 0;
  width: 34px;
  text-align: right;
}
body[data-platform="timeline"].ux-004-geidea .tg-xray-tags {
  display: flex; gap: 3px; flex-shrink: 0;
}
body[data-platform="timeline"].ux-004-geidea .tg-xray-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--bg-2);
  border-radius: 3px;
  padding: 1px 4px;
}
body[data-platform="timeline"].ux-004-geidea .tg-xray-tag.tg-xray-tr { color: var(--accent-2); }
body[data-platform="timeline"].ux-004-geidea .tg-xray-tag.tg-xray-skip { color: var(--err); }
body[data-platform="timeline"].ux-004-geidea .tg-xray-empty,
body[data-platform="timeline"].ux-004-geidea .tg-cut-empty {
  padding: 24px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   13d · BOTTOM CHAT DOCK — the agent, always present (Claude-Code style)
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea #tgDock {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  max-height: 44vh;
  transition: max-height var(--t-mid) var(--ease);
}

/* collapsed → just a slim resume strip */
body[data-platform="timeline"].ux-004-geidea .studio.tg-dock-collapsed #tgDock {
  max-height: 30px;
}
body[data-platform="timeline"].ux-004-geidea .studio.tg-dock-collapsed #tgDockBody,
body[data-platform="timeline"].ux-004-geidea .studio.tg-dock-collapsed .tg-dock-composer {
  display: none;
}
body[data-platform="timeline"].ux-004-geidea .tg-dock-resume {
  display: none;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
}
body[data-platform="timeline"].ux-004-geidea .studio.tg-dock-collapsed .tg-dock-resume { display: flex; }
body[data-platform="timeline"].ux-004-geidea .tg-dock-resume:hover { color: var(--text); }

/* dock header bar (label + controls) */
body[data-platform="timeline"].ux-004-geidea .tg-dock-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
body[data-platform="timeline"].ux-004-geidea .studio.tg-dock-collapsed .tg-dock-bar { display: none; }
body[data-platform="timeline"].ux-004-geidea .tg-dock-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex; align-items: center; gap: 8px;
}
body[data-platform="timeline"].ux-004-geidea .tg-dock-title .tg-rec {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px var(--accent-glow);
  animation: amber-pulse 2.4s ease-in-out infinite;
}
body[data-platform="timeline"].ux-004-geidea .tg-dock-title .tg-model { color: var(--accent); }
body[data-platform="timeline"].ux-004-geidea .tg-dock-ctrls { margin-left: auto; display: flex; gap: 4px; }
body[data-platform="timeline"].ux-004-geidea .tg-dock-ctrl {
  width: 24px; height: 22px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-dock-ctrl:hover { color: var(--text); border-color: var(--line-2); }

/* dock conversation body — IDLE: collapsed to nothing (the video is the hero).
   It only materialises as a hover PEEK, a click-to-FOCUS full stage, or the
   persistent SPLIT view (see 13e). */
body[data-platform="timeline"].ux-004-geidea #tgDockBody {
  flex: 0 0 auto;
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: max-height var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease), padding var(--t-mid) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea #tgDockBody:empty { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   13e · CHAT REVEAL — the video clears the stage for the agent (OPUS)
   idle → (hover) peek → (click/send) focused · plus a persistent SPLIT toggle
   ─────────────────────────────────────────────────────────────────────── */

/* the "esc ↩ video" hint — only on the cleared (focused) stage */
body[data-platform="timeline"].ux-004-geidea .tg-dock-esc {
  display: none;
  margin-left: 6px;
  font-size: 9px;
  letter-spacing: 0.10em;
  color: var(--faint);
  text-transform: none;
}
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-focused .tg-dock-esc { display: inline; }

/* ── PEEK · hovering the input floats a frosted glance over the video ── */
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-peek #tgDockBody {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 70px;
  max-height: 244px;
  opacity: 1;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  box-shadow: 0 -16px 54px -18px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  pointer-events: none;
  z-index: 42;
  -webkit-mask-image: linear-gradient(to top, #000 70%, transparent);
  mask-image: linear-gradient(to top, #000 70%, transparent);
  animation: tg-peek-rise 170ms var(--ease) both;
}
@keyframes tg-peek-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── FOCUSED · the video recedes behind glass; the full chat takes over ── */
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-focused .studio-preview {
  transform: scale(0.965);
  filter: blur(2px) brightness(0.55) saturate(0.9);
  transition: transform 340ms var(--ease), filter 340ms var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-focused .studio-timeline {
  opacity: 0;
  pointer-events: none;
}
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-focused #tgDock {
  position: absolute;
  inset: 0;
  max-height: none;
  z-index: 50;
  border-top: none;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  backdrop-filter: blur(28px) saturate(1.1);
  animation: tg-focus-in 240ms var(--ease) both;
}
@keyframes tg-focus-in { from { opacity: 0.35; } to { opacity: 1; } }
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-focused #tgDockBody {
  position: static;
  flex: 1 1 auto;
  max-height: none;
  opacity: 1;
  overflow-y: auto;
  padding: 22px 20px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  pointer-events: auto;
}
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-focused .tg-dock-bar,
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-focused .tg-dock-composer {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: transparent;
}

/* ── SPLIT · clicking the chat opens a 50/50 split: chat LEFT, video RIGHT.
        Timeline + transcript hide; the dock anchors to the left half. ───── */
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-split {
  flex-direction: row;
  align-items: stretch;
}
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-split #studioTimeline,
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-split .studio-transcript {
  display: none;
}
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-split .studio-preview {
  order: 2;
  flex: 1 1 50%;
  min-width: 0;
  min-height: 0;
}
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-split #tgDock {
  order: 1;
  position: static;
  flex: 1 1 50%;
  max-height: none;
  height: 100%;
  width: auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-split #tgDockBody {
  position: static;
  flex: 1 1 auto;
  max-height: none;
  opacity: 1;
  overflow-y: auto;
  padding: 16px 16px;
  pointer-events: auto;
}
/* the split toggle reads "active" while engaged */
body[data-platform="timeline"].ux-004-geidea .studio-main.tg-chat-split #tgDockSplit {
  color: var(--accent);
  border-color: var(--accent-soft);
}

body[data-platform="timeline"].ux-004-geidea .tg-m {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  animation: tg-reveal 200ms var(--ease) both;
}
body[data-platform="timeline"].ux-004-geidea .tg-m-role {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
body[data-platform="timeline"].ux-004-geidea .tg-m-role.you { color: var(--accent); }
body[data-platform="timeline"].ux-004-geidea .tg-m-body { color: var(--text); }
body[data-platform="timeline"].ux-004-geidea .tg-m-body code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--panel-3);
  border-radius: 3px;
  padding: 1px 5px;
}
body[data-platform="timeline"].ux-004-geidea .tg-m-diff {
  margin-top: 8px;
  border-left: 2px solid var(--accent);
  background: var(--bg);
  border-radius: 0 4px 4px 0;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
}
body[data-platform="timeline"].ux-004-geidea .tg-m-diff .add { color: var(--ok); }
body[data-platform="timeline"].ux-004-geidea .tg-m-diff .del { color: var(--err); }
body[data-platform="timeline"].ux-004-geidea .tg-m-thinking {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  display: flex; align-items: center; gap: 8px;
}
body[data-platform="timeline"].ux-004-geidea .tg-m-thinking .tg-spin {
  width: 9px; height: 9px;
  border: 1.5px solid var(--line-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tg-spin 0.7s linear infinite;
}
@keyframes tg-spin { to { transform: rotate(360deg); } }

/* dock composer (the always-present prompt) */
body[data-platform="timeline"].ux-004-geidea .tg-dock-composer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 10px 9px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
body[data-platform="timeline"].ux-004-geidea .tg-dock-prompt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 8px 12px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-dock-prompt:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
body[data-platform="timeline"].ux-004-geidea .tg-dock-prompt::before {
  content: "›";
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}
body[data-platform="timeline"].ux-004-geidea #tgDockInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  max-height: 120px;
  min-height: 20px;
}
body[data-platform="timeline"].ux-004-geidea #tgDockInput::placeholder { color: var(--faint); }
body[data-platform="timeline"].ux-004-geidea .tg-dock-send {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 9px 15px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-dock-send:hover { background: var(--accent-2); }
body[data-platform="timeline"].ux-004-geidea .tg-dock-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* suppressed v1 chrome (kept in CSS, no longer mounted) */
body[data-platform="timeline"].ux-004-geidea .tg-statusbar,
body[data-platform="timeline"].ux-004-geidea .tg-chat-aside { display: none !important; }


/* ═══════════════════════════════════════════════════════════════════════
   14 · "＋ New" create button in the Studio top bar
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea #tgCreateBtn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-tile);
  padding: 6px 13px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea #tgCreateBtn:hover { background: var(--accent-2); }


/* ═══════════════════════════════════════════════════════════════════════
   15 · Right-sidebar "Voice & Script" element (first of the settings stack)
        — collapsible Cursor-style sections.
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea .tg-voice-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  overflow-y: auto;
  font-family: var(--sans);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-section {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-section-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px 10px;
  background: var(--panel);
  border: none;
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-section-header:hover { background: var(--panel-2); }
body[data-platform="timeline"].ux-004-geidea .tg-voice-chevron {
  font-size: 10px;
  color: var(--faint);
  transition: transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-section.collapsed .tg-voice-chevron { transform: rotate(-90deg); }
body[data-platform="timeline"].ux-004-geidea .tg-voice-section-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  flex: 1;
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-section-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 14px 14px;
  background: var(--panel);
  overflow: hidden;
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-section.collapsed .tg-voice-section-body {
  max-height: 0;
  padding: 0 14px;
  opacity: 0;
  pointer-events: none;
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-control { display: flex; flex-direction: column; gap: 6px; }
body[data-platform="timeline"].ux-004-geidea .tg-voice-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 8px 28px 8px 10px;
  border-radius: var(--r-tile);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b8b5af' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-select:hover { border-color: var(--line-3); }
body[data-platform="timeline"].ux-004-geidea .tg-voice-select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-select option { background: var(--bg-2); color: var(--text); }
body[data-platform="timeline"].ux-004-geidea .tg-voice-script-input {
  width: 100%;
  min-height: 110px;
  max-height: 240px;
  padding: 9px 11px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-tile);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-script-input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-script-input::placeholder { color: var(--faint); }
body[data-platform="timeline"].ux-004-geidea .tg-voice-primary-btn {
  width: 100%;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #1a0d00;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 14px;
  border-radius: var(--r-tile);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-primary-btn:hover { background: var(--accent-2); }
body[data-platform="timeline"].ux-004-geidea .tg-voice-primary-btn:active { transform: translateY(1px); }
body[data-platform="timeline"].ux-004-geidea .tg-voice-primary-btn:disabled { opacity: 0.4; cursor: not-allowed; }
body[data-platform="timeline"].ux-004-geidea .tg-voice-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: var(--r-tile);
  cursor: not-allowed;
  opacity: 0.7;
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-badge {
  background: var(--faint);
  color: var(--bg-2);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-status {
  min-height: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 7px;
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-status.ok { color: var(--ok); }
body[data-platform="timeline"].ux-004-geidea .tg-voice-status.err { color: var(--err); }
body[data-platform="timeline"].ux-004-geidea .tg-voice-status .tg-spin {
  width: 9px; height: 9px;
  border: 1.5px solid var(--line-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tg-spin 0.7s linear infinite;
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-empty {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 26px 18px; text-align: center;
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-empty-icon { font-size: 26px; opacity: 0.3; }
body[data-platform="timeline"].ux-004-geidea .tg-voice-empty-text {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
}
body[data-platform="timeline"].ux-004-geidea .tg-voice-empty-hint {
  font-family: var(--sans); font-size: 11.5px; color: var(--faint); line-height: 1.5; max-width: 210px;
}


/* ═══════════════════════════════════════════════════════════════════════
   16 · VIBRANT GLOW — pink→yellow gradient + glow on the signature elements
        (brings back the colors David loved, without the purple aurora).
   ─────────────────────────────────────────────────────────────────────── */

/* primary actions → glowing pink→yellow gradient */
body[data-platform="timeline"].ux-004-geidea .tg-dock-send,
body[data-platform="timeline"].ux-004-geidea .tg-voice-primary-btn,
body[data-platform="timeline"].ux-004-geidea #tgCreateBtn,
body[data-platform="timeline"].ux-004-geidea .ux-004-btn-primary,
body[data-platform="timeline"].ux-004-geidea .studio-top-bar button.primary,
body[data-platform="timeline"].ux-004-geidea .studio-top-bar .btn.primary,
body[data-platform="timeline"].ux-004-geidea .studio .btn-primary,
body[data-platform="timeline"].ux-004-geidea .studio button.primary {
  background: var(--accent-grad) !important;
  background-size: 160% 160%;
  border-color: var(--accent) !important;
  color: #200818 !important;
  box-shadow: 0 0 20px -3px var(--accent-glow), 0 2px 8px -4px rgba(0,0,0,.6);
}
body[data-platform="timeline"].ux-004-geidea .tg-dock-send:hover,
body[data-platform="timeline"].ux-004-geidea .tg-voice-primary-btn:hover,
body[data-platform="timeline"].ux-004-geidea #tgCreateBtn:hover,
body[data-platform="timeline"].ux-004-geidea .ux-004-btn-primary:hover {
  filter: brightness(1.07);
  box-shadow: 0 0 26px -2px var(--accent-glow), 0 2px 8px -4px rgba(0,0,0,.6);
}

/* REC / live dots → pink glow pulse */
body[data-platform="timeline"].ux-004-geidea .tg-rec,
body[data-platform="timeline"].ux-004-geidea .tg-dock-title .tg-rec,
body[data-platform="timeline"].ux-004-geidea .tg-chat-meta .tg-rec,
body[data-platform="timeline"].ux-004-geidea .ux-004-door-mark::after {
  background: var(--accent) !important;
  box-shadow: 0 0 14px var(--accent-glow), 0 0 4px var(--accent) !important;
}

/* active tab underline → gradient */
body[data-platform="timeline"].ux-004-geidea .tg-rtab.active::after,
body[data-platform="timeline"].ux-004-geidea .tg-right-tab.active::after {
  background: var(--accent-grad) !important;
  box-shadow: 0 0 10px -1px var(--accent-glow);
}

/* timeline playhead → pink glow */
body[data-platform="timeline"].ux-004-geidea .timeline-playhead,
body[data-platform="timeline"].ux-004-geidea .tl-playhead,
body[data-platform="timeline"].ux-004-geidea .studio-timeline .playhead {
  background: var(--accent) !important;
  box-shadow: 0 0 10px var(--accent-glow) !important;
}

/* selection / focus accents keep pink; ★ default markers lean yellow */
body[data-platform="timeline"].ux-004-geidea .tg-xray-fill { background: var(--accent); opacity: 0.85; }
body[data-platform="timeline"].ux-004-geidea .tg-cut-stat b { color: var(--accent-2); }
body[data-platform="timeline"].ux-004-geidea .tg-dock-title .tg-model,
body[data-platform="timeline"].ux-004-geidea .tg-chat-meta .tg-model { color: var(--accent-yellow); }

/* prompt-bar focus glow → pink */
body[data-platform="timeline"].ux-004-geidea .tg-dock-prompt:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 18px -6px var(--accent-glow);
}


/* ═══════════════════════════════════════════════════════════════════════
   17 · LEFT EXPLORER — collapsible. Collapsed → a rail trigger at the top;
        hover the rail → the menu opens as a floating panel.
   ─────────────────────────────────────────────────────────────────────── */

/* hide app.js's own left collapse chevron — we drive collapse ourselves */
body[data-platform="timeline"].ux-004-geidea .studio-left .studio-panel-collapse {
  display: none;
}


/* Library panel — Games / Plays / Created tabs */
body[data-platform="timeline"].ux-004-geidea .tg-lib-tabs {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-tab:hover { color: var(--text-2); }
body[data-platform="timeline"].ux-004-geidea .tg-lib-tab.active { color: var(--text); }
body[data-platform="timeline"].ux-004-geidea .tg-lib-tab.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-content {
  overflow-y: auto;
  flex: 1;
}
/* Sport filter chips */
body[data-platform="timeline"].ux-004-geidea .tg-lib-filter-row {
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-sport-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-sport-chip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--dim);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-sport-chip:hover {
  background: var(--panel-2);
  color: var(--text-2);
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-sport-chip.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-search {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
}
body[data-platform="timeline"].ux-004-geidea .tg-lib-search:focus {
  border-color: var(--accent);
}
/* collapsed state — left column gone; panel floats off-screen to the left */
body[data-platform="timeline"].ux-004-geidea .studio.tg-left-collapsed .studio-body {
  grid-template-columns: 0 1fr 0;
}
body[data-platform="timeline"].ux-004-geidea .studio.tg-left-collapsed #studioLeft {
  position: absolute;
  top: 44px;
  left: 0;
  bottom: 0;
  width: 230px;
  transform: translateX(-100%);
  transition: transform 0.18s var(--ease);
  z-index: 60;
  box-shadow: 14px 0 36px -14px rgba(0, 0, 0, 0.75);
  border-right: 1px solid var(--line-2);
  background: var(--panel);
  overflow-y: auto;
}
/* peek the floating menu in (logo or + NEW set this) */
body[data-platform="timeline"].ux-004-geidea .studio.tg-left-collapsed.tg-left-peek #studioLeft {
  transform: translateX(0);
}


/* ═══════════════════════════════════════════════════════════════════════
   18 · LEFT EXPLORER TREE — editorial groups (Goals ▸ … ▸ Music ▸ SFX)
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea {
  & .tg-tree-meta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 12px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em;
    color: var(--faint);
    border-bottom: 1px solid var(--line);
  }
  & .tg-tree-fulllib {
    background: transparent; border: 1px solid var(--line); border-radius: 5px;
    color: var(--dim); width: 22px; height: 20px; cursor: pointer; font-size: 11px;
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  }
  & .tg-tree-fulllib:hover { color: var(--accent); border-color: var(--accent-line); }

  & .tg-tree { padding-bottom: 16px; }
  & .tg-tree-group { border-bottom: 1px solid var(--line); }
  & .tg-tree-group > summary { list-style: none; cursor: pointer; outline: none; }
  & .tg-tree-group > summary::-webkit-details-marker { display: none; }
  & .tg-tree-head {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    font-family: var(--mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
    user-select: none;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  }
  & .tg-tree-head:hover { color: var(--text-2); background: var(--panel-2); }
  & .tg-tree-chev { font-size: 9px; color: var(--faint); transition: transform var(--t-fast) var(--ease); }
  & .tg-tree-group[open] > summary .tg-tree-chev { transform: rotate(90deg); }
  & .tg-tree-name { flex: 1; }
  & .tg-tree-count { font-size: 9px; color: var(--faint); background: var(--bg-2); border-radius: 999px; padding: 1px 6px; }
  & .tg-tree-headadd { background: transparent; border: none; color: var(--dim); cursor: pointer; font-size: 14px; padding: 0 2px; line-height: 1; }
  & .tg-tree-headadd:hover { color: var(--accent); }
  & .tg-tree-rows { padding: 2px 0 6px; }
  & .tg-tree-row {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 24px; cursor: pointer;
    border-left: 2px solid transparent;
    transition: background var(--t-fast) var(--ease);
  }
  & .tg-tree-row:hover { background: var(--panel-2); border-left-color: var(--accent); }
  & .tg-tree-row.is-used { opacity: 0.45; }
  & .tg-tree-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
  & .tg-k-goal { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
  & .tg-k-highlight { background: var(--accent-yellow); box-shadow: 0 0 6px var(--accent-yellow-glow); }
  & .tg-k-penalty { background: var(--err); }
  & .tg-k-save { background: var(--ok); }
  & .tg-k-replay { background: var(--faint); }
  & .tg-k-assist, & .tg-k-defense, & .tg-k-turnover { background: var(--dim); }
  & .tg-tree-label {
    flex: 1; min-width: 0;
    font-family: var(--sans); font-size: 12px; color: var(--text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  & .tg-tree-row:hover .tg-tree-label { color: var(--text); }
  & .tg-tree-dur { font-family: var(--mono); font-size: 9.5px; color: var(--faint); flex-shrink: 0; }
  & .tg-tree-add {
    opacity: 0; background: transparent; border: 1px solid var(--line-2);
    border-radius: 4px; color: var(--dim); width: 18px; height: 18px;
    cursor: pointer; font-size: 11px; flex-shrink: 0; line-height: 1;
  }
  & .tg-tree-row:hover .tg-tree-add { opacity: 1; }
  & .tg-tree-add:hover { color: var(--accent); border-color: var(--accent-line); }
  & .tg-tree-empty { padding: 6px 24px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
  & .tg-tree-rows .studio-bin-item { padding-left: 24px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   19 · BRAND — geNIDEA wordmark, top-left (app identity)
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea {
  & .studio-top-bar { padding-left: 156px; }   /* clear the brand lockup */

  & #tgBrand {
    position: absolute; top: 0; left: 0; height: 44px;
    display: flex; align-items: center; gap: 9px;
    padding: 0 14px; z-index: 70; pointer-events: none;
    user-select: none;
  }
  & #tgBrand .tg-brand-mark {
    width: 22px; height: 22px; border-radius: 6px;
    background: var(--accent-grad); background-size: 150% 150%;
    box-shadow: 0 0 16px -2px var(--accent-glow);
    position: relative; flex-shrink: 0;
  }
  & #tgBrand .tg-brand-mark::after {
    content: ""; position: absolute; inset: 5px;
    border-radius: 3px; background: var(--bg-2);
  }
  & #tgBrand .tg-brand-word {
    font-family: var(--mono); font-size: 13px; font-weight: 700;
    letter-spacing: 0.16em; color: var(--text);
  }
  & #tgBrand .tg-brand-ge { color: var(--dim); font-weight: 500; }
}


/* ═══════════════════════════════════════════════════════════════════════
   20 · VIDEO PANEL — modern player chrome · ambient background (not black) ·
        visible manual-trim handles · trim hint
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea {

  /* ── ambient atmosphere instead of a black screen ────────────────────── */
  & .tg-ambient {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    background:
      radial-gradient(58% 48% at 24% 22%, rgba(255, 92, 200, 0.12), transparent 60%),
      radial-gradient(50% 50% at 82% 28%, rgba(234, 255, 58, 0.07), transparent 55%),
      radial-gradient(70% 62% at 62% 92%, rgba(255, 122, 196, 0.10), transparent 62%),
      radial-gradient(40% 40% at 50% 50%, rgba(60, 70, 120, 0.10), transparent 70%),
      #07090d;
    background-size: 200% 200%;
    animation: tg-ambient-drift 26s ease-in-out infinite alternate;
  }
  & .tg-ambient-grain {
    position: absolute; inset: -50%;
    opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    animation: tg-grain-shift 8s steps(6) infinite;
  }
  & .tg-no-film {
    position: relative; z-index: 2; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
  }
  & .tg-no-film .tl-launcher-kicker {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--accent);
  }
  & .tg-no-film h3 { font-family: var(--sans); font-weight: 500; color: var(--text); margin: 2px 0; }
  & .tg-no-film p { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
  & .tg-no-film p b { color: var(--accent-yellow); }

  /* ── modern player chrome ────────────────────────────────────────────── */
  & .studio-preview-stack {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; position: relative; z-index: 1;
  }
  & .studio-preview video {
    max-width: 100%; max-height: calc(100% - 26px);
    border-radius: 9px;
    background: #000;
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line-2);
  }
  & .studio-preview-transport {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 11.5px; color: var(--text-2);
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: 7px; padding: 4px 12px;
  }
  & .studio-tc-current { color: var(--accent); }
  & .studio-tc-sep, & .studio-tc-duration { color: var(--dim); }

  /* ── manual TRIM — make the clip-edge handles visible/amber (cut removed) ─ */
  & .tl-trim-handle {
    background: var(--accent-line);
    transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
    cursor: ew-resize;
  }
  & .tl-trim-handle:hover {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
  }
  & .tl-trim-hint {
    font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em;
    color: var(--faint); padding: 0 8px; white-space: nowrap; user-select: none;
  }
}

@keyframes tg-ambient-drift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
@keyframes tg-grain-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(6%, -4%); }
}


/* ═══════════════════════════════════════════════════════════════════════
   21 · PREVIEW MONTAGE — cross-fading atmosphere scenes (the resting visual,
        not a "running" video player). The <video> shows only while playing.
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea {
  & .tg-montage {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    background: #07090d;
    transition: opacity 0.55s var(--ease);
  }
  & .studio-preview.tg-playing .tg-montage { opacity: 0; pointer-events: none; }

  & .tg-scene { position: absolute; inset: 0; opacity: 0; animation: tg-fade4 28s infinite; will-change: opacity; }
  /* purple + yellow atmosphere (David's pick) — every scene pairs the two */
  & .tg-scene-1 {
    animation-delay: 0s;
    background:
      radial-gradient(70% 60% at 30% 30%, rgba(150, 90, 255, 0.24), transparent 60%),
      radial-gradient(58% 58% at 78% 72%, rgba(234, 255, 58, 0.12), transparent 60%), #0a0812;
  }
  & .tg-scene-2 {
    animation-delay: 7s;
    background:
      radial-gradient(66% 56% at 72% 28%, rgba(234, 255, 58, 0.18), transparent 60%),
      radial-gradient(60% 60% at 24% 76%, rgba(139, 92, 246, 0.20), transparent 60%), #0b0a14;
  }
  & .tg-scene-3 {
    animation-delay: 14s;
    background:
      radial-gradient(72% 60% at 46% 26%, rgba(168, 110, 255, 0.22), transparent 60%),
      radial-gradient(56% 56% at 70% 80%, rgba(255, 225, 80, 0.13), transparent 60%), #0a0812;
  }
  & .tg-scene-4 {
    animation-delay: 21s;
    background:
      radial-gradient(72% 60% at 38% 36%, rgba(120, 70, 235, 0.24), transparent 60%),
      radial-gradient(56% 56% at 78% 66%, rgba(234, 255, 58, 0.15), transparent 60%), #09060f;
  }
  & .tg-montage-sweep {
    position: absolute; top: 0; bottom: 0; left: -45%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: tg-sweep 9s ease-in-out infinite; pointer-events: none;
  }
  & .tg-montage-grain {
    position: absolute; inset: -50%; opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    animation: tg-grain-shift 8s steps(6) infinite;
  }
  & .tg-montage-cap {
    position: absolute; left: 16px; bottom: 14px; z-index: 3;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--faint);
  }

  & .tg-video-stack {
    position: relative; z-index: 1;
    display: none;   /* shown (display:flex) by JS only while previewing/playing */
  }

  & .tg-montage-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4;
    font-family: var(--mono); font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #200818; background: var(--accent-grad); background-size: 150% 150%;
    border: 1px solid var(--accent); border-radius: 999px;
    padding: 11px 22px; cursor: pointer;
    box-shadow: 0 0 26px -4px var(--accent-glow);
    transition: filter var(--t-fast) var(--ease), opacity var(--t-mid) var(--ease);
  }
  & .tg-montage-play:hover { filter: brightness(1.08); }
  & .studio-preview.tg-playing .tg-montage-play { opacity: 0; pointer-events: none; }
}
@keyframes tg-fade4 {
  0% { opacity: 0; } 4% { opacity: 1; } 23% { opacity: 1; } 28% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes tg-sweep {
  0% { left: -45%; } 55% { left: 120%; } 100% { left: 120%; }
}

/* flat overrides for the play/rest swap — guaranteed to win the cascade
   (the nested `:is()`-wrapped versions lost specificity in some engines) */
body[data-platform="timeline"].ux-004-geidea .studio-preview.tg-playing .tg-montage,
body[data-platform="timeline"].ux-004-geidea .studio-preview.tg-playing .tg-montage-play {
  opacity: 0 !important;
  pointer-events: none !important;
}
body[data-platform="timeline"].ux-004-geidea .studio-preview.tg-playing .tg-video-stack {
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   22 · GFX panel rows (graphics on the cut)
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea {
  & .tg-gfx-list { padding: 2px 0 8px; }
  & .tg-gfx-row {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 14px; cursor: pointer;
    border-left: 2px solid transparent;
    transition: background var(--t-fast) var(--ease);
  }
  & .tg-gfx-row:hover { background: var(--panel-2); border-left-color: var(--accent); }
  & .tg-gfx-kind {
    font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
    color: #200818; background: var(--accent); border-radius: 3px; padding: 1px 5px; flex-shrink: 0;
  }
  & .tg-gfx-caption { background: var(--accent-yellow); }
  & .tg-gfx-label {
    flex: 1; min-width: 0; font-family: var(--sans); font-size: 12px; color: var(--text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  & .tg-gfx-row:hover .tg-gfx-label { color: var(--text); }
  & .tg-gfx-time { font-family: var(--mono); font-size: 9.5px; color: var(--faint); flex-shrink: 0; }
}


/* ═══════════════════════════════════════════════════════════════════════
   23 · EMPTY TIMELINE — alive (atmosphere + live-signal equalizer), not a
        dead gray strip.
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea {
  & .tg-tl-empty {
    position: relative; height: 100%; width: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  & .tg-tl-ambient {
    position: absolute; inset: 0; z-index: 0;
    background:
      radial-gradient(60% 120% at 28% 50%, rgba(139, 92, 246, 0.18), transparent 60%),
      radial-gradient(55% 120% at 78% 50%, rgba(234, 255, 58, 0.08), transparent 60%),
      radial-gradient(50% 100% at 55% 120%, rgba(255, 92, 200, 0.10), transparent 60%),
      var(--bg-2);
    background-size: 200% 200%;
    animation: tg-ambient-drift 22s ease-in-out infinite alternate;
  }
  /* the "live signal" — a flowing equalizer along the bottom */
  & .tg-tl-bars {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    height: 56px;
    display: flex; align-items: flex-end; justify-content: center;
    gap: 3px; padding: 0 18px;
    opacity: 0.55; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  & .tg-tl-bars i {
    flex: 1; max-width: 8px; height: 100%;
    transform-origin: bottom;
    transform: scaleY(0.18);
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, var(--accent), rgba(139, 92, 246, 0.6));
    animation: tg-eq 1.4s ease-in-out infinite;
  }
  & .tg-tl-bars i:nth-child(3n)   { background: linear-gradient(180deg, var(--accent-yellow), rgba(255, 149, 0, 0.4)); }
  & .tg-tl-bars i:nth-child(4n+1) { background: linear-gradient(180deg, #a86eff, rgba(139, 92, 246, 0.5)); }

  & .tg-tl-msg {
    position: relative; z-index: 2; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding-bottom: 18px;
  }
  & .tg-tl-kicker {
    font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--accent);
  }
  & .tg-tl-msg h3 {
    font-family: var(--sans); font-weight: 500; font-size: 16px; color: var(--text); margin: 0;
  }
  & .tg-tl-msg p {
    font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin: 0;
  }
  & .tg-tl-msg p b { color: var(--accent-yellow); }
  & .tg-tl-cta {
    margin-top: 4px;
    font-family: var(--mono); font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: #200818; background: var(--accent-grad); background-size: 150% 150%;
    border: 1px solid var(--accent); border-radius: 999px;
    padding: 9px 20px; cursor: pointer;
    box-shadow: 0 0 22px -5px var(--accent-glow);
    transition: filter var(--t-fast) var(--ease);
  }
  & .tg-tl-cta:hover { filter: brightness(1.08); }
}
@keyframes tg-eq {
  0%, 100% { transform: scaleY(0.18); }
  50%      { transform: scaleY(1); }
}


/* ═══════════════════════════════════════════════════════════════════════
   24 · top-left = single logo button (drop the legacy hamburger) ·
        left-panel Voices/Users management modals allowed in timeline mode
   ─────────────────────────────────────────────────────────────────────── */
body[data-platform="timeline"].ux-004-geidea {
  /* remove the legacy sidebar-toggle "hamburger" — only the geNIDEA logo stays */
  & .sidebar-toggle { display: none !important; }

  /* the brand becomes a real clickable logo button (was decorative) */
  & #tgBrand {
    pointer-events: auto; cursor: pointer;
    border-radius: 9px; padding-right: 12px;
    transition: background var(--t-fast) var(--ease);
  }
  & #tgBrand:hover { background: rgba(255, 255, 255, 0.045); }

  /* allow the voice/user admin modals to open in timeline mode
     (override §11's blanket .full-platform-only hide, for these only) */
  & #voiceModal.open, & #voicePromptModal.open,
  & #voiceSampleModal.open, & #userModal.open { display: flex !important; }

  /* management sections (Voices/Users) sit visually apart at the panel bottom */
  & .tg-mgmt { border-top: 1px solid var(--line-2); margin-top: 4px; }
}

/* ── Timeline boot (sync shells/index.timeline.html critical CSS) ─────── */
html[data-platform="timeline"] body.genidea-timeline-boot .layout,
body.genidea-timeline-boot .layout {
  display: none !important;
}
html[data-platform="timeline"] body.genidea-timeline-boot .timeline-floating-chip,
html[data-platform="timeline"] body.genidea-timeline-boot #timelineLauncherModal,
body.genidea-timeline-boot .timeline-floating-chip,
body.genidea-timeline-boot #timelineLauncherModal {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
body.genidea-timeline-boot {
  background: #0b0d10;
}
body.genidea-timeline-boot #studio {
  display: grid !important;
}
body.genidea-timeline-boot #studio[hidden] {
  display: grid !important;
}
/* Sync with index.html critical boot — hide Atlas chrome until app.js ready */
html[data-platform="timeline"] body.genidea-timeline-boot .layout,
body.genidea-timeline-boot .layout {
  display: none !important;
}
html[data-platform="timeline"] body.genidea-timeline-boot .timeline-floating-chip,
html[data-platform="timeline"] body.genidea-timeline-boot #timelineLauncherModal,
body.genidea-timeline-boot .timeline-floating-chip,
body.genidea-timeline-boot #timelineLauncherModal {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
body.genidea-timeline-boot {
  background: #0a0a0e;
}
.film-dock-active-work-host {
  margin-bottom: 14px;
}

.film-dock-active-work {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(110, 231, 183, 0.08), rgba(139, 108, 255, 0.06));
  border: 1px solid rgba(110, 231, 183, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.film-dock-active-work-blocker {
  border-color: rgba(255, 194, 75, 0.35);
  background: linear-gradient(145deg, rgba(255, 194, 75, 0.1), rgba(139, 108, 255, 0.06));
}

.film-dock-active-work-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.film-dock-active-work-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #6ee7b7);
}

.film-dock-active-work-elapsed {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--dim);
}

.film-dock-active-work-phase {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.film-dock-active-work-game {
  margin: 0 0 8px;
}

.film-dock-active-work-msg {
  margin: 8px 0;
  font-size: 12px;
}

.film-dock-active-work-job {
  display: block;
  margin: 8px 0 10px;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--dim);
  cursor: pointer;
  word-break: break-all;
}

.film-dock-active-work-job:hover {
  color: var(--text);
}

.film-dock-active-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.film-dock-active-work .ux-004-encode-progress {
  max-width: 100%;
  margin: 8px 0;
}

.film-dock-active-work-indeterminate {
  width: 35% !important;
  animation: film-dock-active-work-pulse 1.4s ease-in-out infinite;
}

@keyframes film-dock-active-work-pulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.65;
  }
  50% {
    transform: translateX(180%);
    opacity: 1;
  }
}
/* Film dock — timeline-first Studio left drawer */
body.ux-004-geidea .studio-left.studio-library--film-dock {
  border-right: 1px solid var(--line);
  flex: 1;
  min-height: 0;
  /* one scroll container for the whole drawer (Create + Voices + Users + Library) */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Left drawer = single hub. Film Dock (Create) at the top, Voices / Users /
   Library below it. The brand logo toggles the drawer open/closed.
   The drawer (studio-left) is one scroll container; the Film Dock inside it
   uses natural height (block layout) so flex:1 children don't collapse. */
body.ux-004-geidea #filmDock {
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}
body.ux-004-geidea .film-dock-inner {
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}
body.ux-004-geidea .film-dock-scroll {
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
  max-height: none !important;
}
body.ux-004-geidea .film-dock-games {
  flex: 0 0 auto !important;
  max-height: none !important;
  overflow: visible !important;
  min-height: 0;
}
body.ux-004-geidea .film-dock-footer {
  flex: 0 0 auto !important;
  position: static;
}

body.ux-004-geidea #tgLeftManagement {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 14px 12px;
  gap: 14px;
  background: var(--panel);
}
body.ux-004-geidea .tg-mgmt-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  overflow: hidden;
}
body.ux-004-geidea .tg-mgmt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 11px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
body.ux-004-geidea .tg-mgmt-head:hover { background: rgba(255,255,255,0.03); }
body.ux-004-geidea .tg-mgmt-body { padding: 0 11px 11px; display: flex; flex-direction: column; gap: 8px; }
/* collapsed = body hidden, chev points right */
body.ux-004-geidea .tg-mgmt-section.tg-mgmt-collapsed .tg-mgmt-body { display: none; }
body.ux-004-geidea .tg-mgmt-section:not(.tg-mgmt-collapsed) .tg-mgmt-chev::before { content: "▾"; }
body.ux-004-geidea .tg-mgmt-section.tg-mgmt-collapsed .tg-mgmt-chev::before { content: "▸"; }
body.ux-004-geidea .tg-mgmt-chev { font-size: 9px; color: var(--dim); width: 10px; }
body.ux-004-geidea .tg-mgmt-chev::before { content: "▸"; }
/* Film Dock acts like a section — click the "NEW FILM" header to collapse */
body.ux-004-geidea #filmDock.tg-mgmt-collapsed .film-dock-scroll > *:not(.film-dock-head),
body.ux-004-geidea #filmDock.tg-mgmt-collapsed .film-dock-footer { display: none !important; }
body.ux-004-geidea .tg-mgmt-chev { color: var(--dim); font-size: 9px; }
body.ux-004-geidea .tg-mgmt-title { flex: 1; }
body.ux-004-geidea .tg-mgmt-add {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 13px;
  width: 22px; height: 22px;
  border-radius: 5px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
body.ux-004-geidea .tg-mgmt-add:hover {
  color: var(--accent); border-color: var(--accent-line);
}
body.ux-004-geidea .tg-mgmt-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}
body.ux-004-geidea .tg-mgmt-empty {
  color: var(--faint);
  padding: 6px 4px;
  font-style: italic;
}

body.ux-004-geidea .studio-library--film-dock #filmDock {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
}

.film-dock {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.film-dock-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  gap: 0;
}

.film-dock-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 10px;
  overscroll-behavior: contain;
}

.film-dock-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 13, 24, 0.72), rgba(11, 13, 24, 0.98));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.film-dock-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.film-dock-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.film-dock-game-context-host {
  margin: 2px 0 4px;
}

.film-dock-game-context-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(110, 231, 183, 0.1), rgba(139, 108, 255, 0.07));
  border: 1px solid rgba(110, 231, 183, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 6px 18px rgba(0, 0, 0, 0.22);
}

.film-dock-game-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.film-dock-game-context-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #6ee7b7);
}

.film-dock-game-context-sport {
  flex-shrink: 0;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(110, 231, 183, 0.35);
}

.film-dock-game-context-headline {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.film-dock-game-context-score {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
}

.film-dock-game-context-meta {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.film-dock-game-context-goals {
  margin: 6px 0 0;
  padding-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.film-dock-build-sub[hidden] {
  display: none !important;
}

.film-dock-games {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.ux-004-geidea.genidea-waiting-view .studio-left {
  min-width: 320px;
}

.film-dock-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.film-dock-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  margin-bottom: 4px;
  padding-bottom: 2px;
  min-height: 34px;
  flex-shrink: 0;
}

.film-dock-chips:empty {
  display: none;
}

.film-dock-chips .ux-004-chip {
  flex: 0 0 auto;
}

.film-dock-your-films {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px 10px;
  margin: 0;
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.film-dock-your-films-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0 8px;
  cursor: pointer;
  list-style: none;
}

.film-dock-your-films-summary::-webkit-details-marker {
  display: none;
}

.film-dock-your-films-summary::before {
  content: "▸";
  margin-right: 6px;
  color: var(--muted);
  font-size: 11px;
}

.film-dock-your-films[open] .film-dock-your-films-summary::before {
  content: "▾";
}

.film-dock-your-films-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.film-dock-your-films-hint {
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}

.film-dock-recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.film-dock-recent-job {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  cursor: pointer;
}

.timeline-home-hint {
  font-size: 14px;
  color: var(--accent);
  text-align: center;
  margin: 0;
}

.smart-block.connect-preview-thumb {
  background-size: cover;
  background-position: center;
  min-height: 48px;
}

.smart-block.connect-preview-thumb .smart-block-label,
.smart-block.connect-preview-thumb .smart-block-meta {
  background: linear-gradient(to top, rgb(0 0 0 / 75%), transparent);
  padding: 2px 4px;
  text-shadow: 0 1px 2px rgb(0 0 0 / 80%);
}

.smart-block-meta-compact {
  display: block;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-dock-stuck {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.smart-timeline-shell.connect-preview-mode .smart-lane-blocks {
  pointer-events: none;
}

.smart-timeline-shell.connect-preview-mode .smart-block.connect-preview-readonly {
  pointer-events: auto;
}

.smart-timeline-shell.connect-preview-mode {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.smart-timeline-shell.connect-preview-mode .smart-timeline-scroll {
  flex: 1;
  min-height: 140px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
.smart-timeline-shell.connect-preview-mode .smart-timeline-scroll.is-panning {
  cursor: grabbing;
  user-select: none;
}
.smart-timeline-shell.connect-preview-mode .smart-timeline-scroll:not(.is-panning) {
  cursor: grab;
}
body.ux-004-geidea #studioTimeline .smart-timeline-shell.connect-preview-mode .smart-timeline-canvas {
  padding: 10px 12px 12px 52px;
}
body.ux-004-geidea #studioTimeline .smart-timeline-shell.connect-preview-mode .smart-lane-label {
  width: 44px;
  padding-left: 6px;
  font-size: 10px;
  letter-spacing: 0.05em;
}
body.ux-004-geidea #studioTimeline .smart-timeline-shell.connect-preview-mode .smart-lane-blocks {
  inset: 6px 4px 6px 46px;
}
body.ux-004-geidea #studioTimeline .smart-timeline-shell.connect-preview-dual .smart-lane-plays {
  min-height: 44px;
}
body.ux-004-geidea #studioTimeline .smart-timeline-shell.connect-preview-dual .smart-lane-plays .smart-block.smart-play {
  min-height: 36px;
  font-size: 11px;
}
body.ux-004-geidea #studioTimeline .smart-timeline-shell.connect-preview-dual .smart-lane-plays .smart-block-label {
  font-weight: 700;
}

.smart-timeline-shell.connect-preview-mode .smart-lane.connect-preview-lane {
  min-height: 96px;
}

.smart-timeline-shell.connect-preview-mode .smart-lane.connect-preview-lane .smart-lane-blocks {
  min-height: 88px;
  align-items: stretch;
}

.smart-timeline-shell.connect-preview-dual .smart-timeline-scroll {
  min-height: 200px;
}

.smart-timeline-shell.connect-preview-dual .smart-lane-plays {
  min-height: 52px;
}

.smart-timeline-shell.connect-preview-dual .smart-lane-plays .smart-lane-blocks {
  min-height: 44px;
  align-items: center;
}

.smart-timeline-shell.connect-preview-dual .smart-lane-scenes {
  min-height: 96px;
}

.smart-block.smart-play.connect-preview-play {
  min-height: 40px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.45);
}

.smart-block.smart-play.connect-preview-play.is-selected {
  border-color: var(--accent, #818cf8);
  box-shadow: 0 0 0 1px var(--accent, #818cf8);
}

.smart-block.smart-clip.is-in-selected-play:not(.is-selected) {
  outline: 1px dashed rgba(129, 140, 248, 0.55);
  outline-offset: -1px;
}

.studio-preview-connect-focus .connect-preview-play-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.studio-preview-connect-focus .connect-preview-focus-hint {
  display: block;
  margin-top: 6px;
}

.smart-block.connect-preview-thumb {
  min-height: 72px;
}

.film-dock-stuck {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.connect-preview-inspector {
  padding: 4px 0 12px;
}

.connect-inspector-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.connect-inspector-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 8px 0;
}

.connect-inspector-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 4px 8px 4px 0;
  vertical-align: top;
  white-space: nowrap;
}

.connect-inspector-table td {
  padding: 4px 0;
}

.connect-inspector-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.connect-inspector-transcript summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.connect-inspector-lines {
  margin: 0;
  padding-left: 1.1rem;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.45;
}

.connect-inspector-lines li {
  margin-bottom: 8px;
}

.connect-inspector-ts {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
}

.connect-inspector-silent {
  font-style: italic;
}

.connect-inspector-warn {
  margin: 0 0 8px;
  padding-left: 1.1rem;
  font-size: 11px;
  color: #fbbf24;
}

.connect-inspector-reedit-dev {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  font-size: 12px;
}

.connect-inspector-reedit-dev summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.connect-reedit-ops-json {
  display: block;
  width: 100%;
  margin: 8px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  resize: vertical;
  min-height: 4.5rem;
}

.connect-reedit-run-btn {
  font-size: 12px;
}

/* CONNECT preview — per-play segment map (right panel) */
.connect-play-breakdown {
  padding: 0 0 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.connect-play-breakdown-head {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.connect-play-breakdown-meta {
  margin: 0 0 10px;
}

.connect-play-breakdown-hint {
  margin-top: 10px;
}

.connect-play-nav {
  margin-bottom: 12px;
  font-size: 12px;
}

.connect-play-nav-summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.connect-play-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(28vh, 200px);
  overflow-y: auto;
}

.connect-play-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.connect-play-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.connect-play-nav-item.is-active {
  border-color: rgba(229, 255, 0, 0.45);
  background: rgba(229, 255, 0, 0.08);
}

.connect-play-nav-meta {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.connect-play-slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.connect-play-slot-btn {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.connect-play-slot-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.connect-play-slot.is-current .connect-play-slot-btn {
  border-color: rgba(229, 255, 0, 0.5);
  background: rgba(229, 255, 0, 0.07);
}

.connect-play-slot-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.connect-play-slot-name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
}

.connect-play-slot-meta {
  display: block;
  font-size: 11px;
}

.connect-play-slot-warn {
  margin: 6px 0 0;
  padding-left: 1rem;
  font-size: 10px;
  color: #fbbf24;
}

.film-dock-clear-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 8px 0 8px;
  padding-left: 18px;
}

.film-dock-your-films .film-dock-clear-actions {
  margin-top: 8px;
}

.studio-preview-connect-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  padding: 16px;
  gap: 12px;
  background: var(--panel-2);
}

.studio-preview-connect-thumb-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.studio-preview-connect-thumb-img.studio-preview-connect-thumb-fallback {
  object-fit: cover;
  opacity: 0.92;
}

.studio-preview-connect-thumb-img {
  max-width: 100%;
  max-height: min(52vh, 480px);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgb(0 0 0 / 35%);
}

.studio-preview-connect-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: min(100%, 320px);
  min-height: min(40vh, 280px);
  padding: 24px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: rgb(0 0 0 / 25%);
}

.studio-preview-connect-thumb-placeholder-icon {
  font-size: 48px;
  line-height: 1;
  opacity: 0.35;
}

.studio-preview-connect-thumb-ec {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--faint);
}

.studio-preview-connect-thumb-caption {
  text-align: center;
  max-width: 42rem;
}

.studio-preview-connect-thumb-meta {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.45;
}

.studio-preview-connect-thumb-meta li + li {
  margin-top: 2px;
}

.studio-preview-connect-thumb-hint {
  display: block;
  margin-top: 8px;
}

/* Home / building — full-height ambience; hide lower studio strips */
body.ux-004-geidea.genidea-waiting-view .studio-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.ux-004-geidea.genidea-waiting-view .studio-preview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.ux-004-geidea.genidea-waiting-view .studio-ambience {
  flex: 1;
  min-height: 0;
}

body.ux-004-geidea.genidea-waiting-view .studio-timeline,
body.ux-004-geidea.genidea-waiting-view .studio-transcript {
  display: none !important;
}

.studio-ambience {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  background: #05060c;
}

.studio-ambience-stage {
  position: absolute;
  inset: 0;
}

.studio-ambience-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.03);
}

.studio-ambience-img.is-active {
  opacity: 1;
}

.studio-ambience-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(5 6 12 / 55%) 0%,
    rgb(5 6 12 / 72%) 45%,
    rgb(5 6 12 / 88%) 100%
  );
  pointer-events: none;
}

.studio-ambience-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 32px 24px;
  gap: 10px;
}

.studio-ambience-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.studio-ambience-sub {
  margin: 0;
  max-width: 420px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.5;
}

.studio-ambience-status {
  margin: 0;
  color: var(--warn);
  font-size: 13px;
}

.studio-ambience-sport {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* GeNIDEA account — visible without sidebar (timeline shell) */
body.ux-004-geidea .studio-top-actions .studio-account-menu {
  margin-left: 8px;
  flex-shrink: 0;
}

body.ux-004-geidea .studio-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
}

body.ux-004-geidea .studio-account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 12px;
}

body.ux-004-geidea .studio-account-menu .user-menu-dropdown {
  right: 0;
  left: auto;
  min-width: 168px;
}

.film-dock-empty-tl {
  margin-top: 0;
  font-size: 12px;
  width: 100%;
  text-align: center;
}

.film-dock-head {
  flex-shrink: 0;
}

.film-dock-game-context-host {
  flex-shrink: 0;
}

/* CONNECT build — event-clip browser in studio right panel */
body.ux-004-geidea .connect-corpus-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;

  }

/* ═══════════════════════════════════════════════════════════════════════
   FILM DOCK — re-theme to match GeNIDEA (dark + pink/yellow accent + mono).
   Section sits inside #studioLeft / #filmDock, opened by clicking the
   "GENERATE" header.
   ═══════════════════════════════════════════════════════════════════════ */
body.ux-004-geidea #filmDock {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 12px 12px;
  overflow: hidden;
}
/* header reads like a section title — mono, uppercase, with chevron */
body.ux-004-geidea #filmDock .film-dock-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
body.ux-004-geidea #filmDock .film-dock-head::before {
  content: "▾";
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 9px;
  color: var(--dim);
}
body.ux-004-geidea #filmDock.tg-mgmt-collapsed .film-dock-head::before { content: "▸"; }
body.ux-004-geidea #filmDock .film-dock-head { padding-left: 28px; }

body.ux-004-geidea #filmDock .film-dock-title,
body.ux-004-geidea .tg-mgmt-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-yellow);
}
body.ux-004-geidea #filmDock .film-dock-tagline {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* tight body padding inside the section */
body.ux-004-geidea #filmDock .film-dock-scroll { padding: 8px 11px; }
body.ux-004-geidea #filmDock .film-dock-footer {
  padding: 8px 11px 11px;
  border-top: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  gap: 7px;
}

/* SPORT CHIPS — mono pills, accent border on active */
body.ux-004-geidea #filmDock .film-dock-chips { gap: 5px; padding: 8px 0 9px; }
body.ux-004-geidea #filmDock .ux-004-chip,
body.ux-004-geidea #filmDock .ux-004-sport-chips > * {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
body.ux-004-geidea #filmDock .ux-004-chip:hover,
body.ux-004-geidea #filmDock .ux-004-sport-chips > *:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}
body.ux-004-geidea #filmDock .ux-004-chip.active,
body.ux-004-geidea #filmDock .ux-004-chip[aria-selected="true"],
body.ux-004-geidea #filmDock .ux-004-sport-chips > *[aria-selected="true"],
body.ux-004-geidea #filmDock .ux-004-sport-chips > *.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* league + date filter inputs (above the game rows) */
body.ux-004-geidea #filmDock .film-dock-filter-row {
  display: flex;
  gap: 6px;
  padding: 0 0 8px;
}
body.ux-004-geidea #filmDock .film-dock-filter-input {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-2);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
body.ux-004-geidea #filmDock .film-dock-filter-input::placeholder {
  color: var(--faint);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}
body.ux-004-geidea #filmDock .film-dock-filter-input:focus {
  border-color: var(--accent);
  background: rgba(255, 92, 200, 0.04);
}

/* GAME ROWS — dark rows with hairline divider; hover shifts to accent */
body.ux-004-geidea #filmDock .film-dock-games { padding: 0; gap: 0; }
body.ux-004-geidea #filmDock .ux-004-triggerable-list > *,
body.ux-004-geidea #filmDock .film-dock-games > * {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 9px 8px !important;
  margin: 0 !important;
  color: var(--text-2) !important;
  font-family: var(--mono) !important;
  font-size: 11.5px !important;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
body.ux-004-geidea #filmDock .ux-004-triggerable-list > *:last-child,
body.ux-004-geidea #filmDock .film-dock-games > *:last-child {
  border-bottom: 0 !important;
}
body.ux-004-geidea #filmDock .ux-004-triggerable-list > *:hover,
body.ux-004-geidea #filmDock .film-dock-games > *:hover {
  background: rgba(255, 92, 200, 0.06) !important;
  color: var(--accent) !important;
}
body.ux-004-geidea #filmDock .ux-004-triggerable-list > *.is-selected,
body.ux-004-geidea #filmDock .ux-004-triggerable-list > *[aria-selected="true"] {
  background: rgba(255, 92, 200, 0.10) !important;
  color: var(--accent) !important;
  box-shadow: inset 2px 0 0 var(--accent) !important;
}

/* BUTTONS — Generate is the primary pink→yellow gradient, Empty timeline is ghost */
body.ux-004-geidea #filmDockGenerateBtn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--accent-grad) !important;
  background-size: 160% 160%;
  border: 1px solid var(--accent) !important;
  color: #200818 !important;
  cursor: pointer;
  box-shadow: 0 0 18px -4px var(--accent-glow), 0 2px 8px -4px rgba(0,0,0,0.5);
  transition: filter var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
body.ux-004-geidea #filmDockGenerateBtn:hover {
  filter: brightness(1.07);
  box-shadow: 0 0 24px -2px var(--accent-glow), 0 2px 8px -4px rgba(0,0,0,0.6);
}
body.ux-004-geidea #filmDock .film-dock-empty-tl,
body.ux-004-geidea #filmDock .ux-004-btn-ghost {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  width: 100%;
  padding: 7px 12px;
  background: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  color: var(--text-2) !important;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
body.ux-004-geidea #filmDock .film-dock-empty-tl:hover,
body.ux-004-geidea #filmDock .ux-004-btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

/* status / sub text */
body.ux-004-geidea #filmDock .film-dock-build-sub,
body.ux-004-geidea #filmDock .film-dock-status,
body.ux-004-geidea #filmDock .row-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
