🎬 Open-source, self-hosted AI agent that runs a YouTube channel end to end: researches topics, writes scripts, generates narration, visuals and video, optimizes SEO, and publishes after your approval, then learns from analytics. Works with Gemini, OpenAI, OpenRouter, DeepSeek and more.
JavaScript ai-agentsautomationcontent-automationcontent-creationcontent-strategygoogle-geminijavascriptnodejsopenaiself-hostedseo-optimizationsocial-media-automationthumbnail-generatorvideo-generationyoutube-apiyoutube-automationyoutube-botyoutube-channelyoutube-shortsyoutube-uploader
feat: production UI overhaul with command palette and motion layer
darkzOGx89d4485ec503
diff --git a/dashboard/enhance.js b/dashboard/enhance.jsnew file mode 100644index 0000000..a7fd064--- /dev/null+++ b/dashboard/enhance.js@@ -0,0 +1,382 @@+/* ============================================================+ Lumen console enhancement layer — motion, command palette,+ instrumentation. Loads after app.js; touches nothing internal.+ Cross-file globals below are declared by app.js.+ ============================================================ */+/* global ui, renderNotifications */+(() => {+ 'use strict';++ const $ = s => document.querySelector(s);+ const $$ = s => Array.from(document.querySelectorAll(s));+ const reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;++ const MINI_LABELS = {+ overview: 'Home', operator: 'Operator', pipeline: 'Pipeline',+ calendar: 'Calendar', analytics: 'Stats', readiness: 'Checks', settings: 'Setup'+ };+ function ensureMiniLabels() {+ $$('.nav-item').forEach(item => {+ if (!item.querySelector('.mini-label')) {+ const span = document.createElement('span');+ span.className = 'mini-label';+ span.textContent = MINI_LABELS[item.dataset.view] || item.textContent.trim();+ item.appendChild(span);+ }+ });+ }+ ensureMiniLabels();+ setInterval(ensureMiniLabels, 4000);++ /* ---------- 1. View choreography ---------- */+ const VIEW_META = {+ overview: ['OPERATOR OVERVIEW', 'Know what happens next.', 'Overview'],+ operator: ['AUTONOMOUS OPERATOR', 'Give Lumen the strategy.', 'Operator'],+ pipeline: ['CONTENT OPERATIONS', 'From idea to published.', 'Pipeline'],+ calendar: ['EDITORIAL PLANNING', 'Plan before you generate.', 'Calendar'],+ analytics: ['PERFORMANCE', 'Turn results into the next move.', 'Analytics'],+ readiness: ['PRODUCTION READINESS', 'Verify before autonomy runs.', 'Readiness'],+ settings: ['CHANNEL GUARDRAILS', 'Make every agent sound like you.', 'Setup']+ };+ let currentView = 'overview';+ const baseSwitchView = window.switchView;+ if (typeof baseSwitchView === 'function') {+ window.switchView = function (view) {+ if (!VIEW_META[view]) return baseSwitchView(view);+ const changed = view !== currentView;+ const previous = currentView;+ currentView = view;+ baseSwitchView(view);+ document.title = `${VIEW_META[view][2]} · Lumen`;+ const section = $(`#${view}-view`);+ if (section) {+ // Directional slide: forward views enter from the right, back from the left.+ const order = Object.keys(VIEW_META);+ section.style.setProperty('--enter-from', order.indexOf(view) >= order.indexOf(previous) ? '1' : '-1');+ delete section.dataset.viewEnter;+ if (changed && !reduceMotion) {+ void section.offsetWidth; // restart animation+ section.dataset.viewEnter = 'true';+ }+ // Restagger static children + arm scroll reveals+ Array.from(section.children).forEach((child, i) => child.style.setProperty('--i', i));+ armReveals(section);+ }+ };+ }++ /* ---------- 2. Count-up instrumentation ---------- */+ const easeOut = t => 1 - Math.pow(1 - t, 3);+ function countUp(el) {+ if (!el || reduceMotion) return;+ const raw = (el.textContent || '').trim();+ const match = raw.match(/^(\d[\d,]*)(.*)$/);+ if (!match) return;+ const target = Number(match[1].replaceAll(',', ''));+ if (!Number.isFinite(target) || target === 0 || target > 100000) return;+ if (el.dataset.counted === String(target)) return;+ el.dataset.counted = String(target);+ const suffix = match[2];+ const dur = 750;+ const start = performance.now();+ function frame(now) {+ const t = Math.min(1, (now - start) / dur);+ el.textContent = `${Math.round(target * easeOut(t)).toLocaleString()}${suffix}`;+ if (t < 1) requestAnimationFrame(frame);+ }+ requestAnimationFrame(frame);+ }+ const origRenderDashboard = window.renderDashboard;+ if (typeof origRenderDashboard === 'function') {+ window.renderDashboard = function (...args) {+ origRenderDashboard.apply(this, args);+ // Rail pause/resume glyph follows real system state+ document.body.dataset.automationPaused = String(Boolean(ui.state?.system?.automationPaused));+ requestAnimationFrame(() => {+ ['#stat-review', '#stat-scheduled', '#stat-published', '#analytics-total'].forEach(s => countUp($(s)));+ const score = $('#stat-score');+ if (score && /\d/.test(score.textContent)) {+ score.dataset.counted = ''; // composite "x/100" values just fade-slide via CSS+ score.classList.remove('score-pop');+ void score.offsetWidth;+ score.classList.add('score-pop');+ }+ });+ };+ }++ /* ---------- 3. Command palette ---------- */+ const palette = document.createElement('div');+ palette.className = 'cmdk-backdrop hidden';+ palette.innerHTML = `+ <div class="cmdk" role="dialog" aria-modal="true" aria-label="Command palette">+ <div class="cmdk-head">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>+ <input class="cmdk-input" type="text" placeholder="Jump to a view, run a command…" aria-label="Command input" autocomplete="off" spellcheck="false">+ <kbd>esc</kbd>+ </div>+ <div class="cmdk-list" role="listbox" aria-label="Commands"></div>+ <div class="cmdk-foot"><span><kbd>↑</kbd><kbd>↓</kbd> navigate</span><span><kbd>↵</kbd> run</span><span class="cmdk-brand">Lumen console</span></div>+ </div>`;+ document.body.appendChild(palette);+ const listEl = palette.querySelector('.cmdk-list');+ const inputEl = palette.querySelector('.cmdk-input');++ function buildCommands() {+ const cmds = Object.entries(VIEW_META).map(([id, meta]) => ({+ group: 'Navigate', icon: 'view', label: meta[2] === 'Setup' ? 'Channel setup' : meta[2],+ hint: meta[1], keywords: id, run: () => window.switchView(id)+ }));+ const action = (label, hint, selector, keywords) => ({+ group: 'Actions', icon: 'action', label, hint, keywords,+ run: () => { const el = $(selector); if (el) el.click(); }+ });+ cmds.push(+ action('Create video', 'Queue a new generation job', '#generate-button', 'generate new video create'),+ action('Add backlog idea', 'Save a topic for later', '#add-idea-button', 'idea backlog topic'),+ action('Run verified readiness check', 'Prove the production path', '#run-readiness-button', 'readiness verify dry run check'),+ ui.state?.system?.automationPaused+ ? action('Resume automation', 'Unpause the scheduler', '#automation-toggle', 'resume unpause automation play')+ : action('Pause automation', 'Halt scheduled generation', '#automation-toggle', 'pause halt automation stop'),+ action('Refresh dashboard data', 'Pull latest state now', '#refresh-button', 'refresh reload sync data'),+ action('Set dashboard API key', 'Store access key in this browser', '#api-key-button', 'api key auth credentials')+ );+ return cmds;+ }++ let filtered = [];+ let selected = 0;++ function icon(kind) {+ return kind === 'view'+ ? '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>'+ : '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2 4.5 13.5H11l-1 8.5 9-12h-6.5z"/></svg>';+ }++ function renderList() {+ const q = inputEl.value.trim().toLowerCase();+ const cmds = buildCommands();+ filtered = q ? cmds.filter(c => `${c.label} ${c.hint} ${c.keywords}`.toLowerCase().includes(q)) : cmds;+ selected = Math.min(selected, Math.max(0, filtered.length - 1));+ if (!filtered.length) {+ listEl.innerHTML = '<div class="cmdk-empty">No matching commands.</div>';+ return;+ }+ let lastGroup = '';+ listEl.innerHTML = filtered.map((c, i) => {+ const head = c.group !== lastGroup ? `<p class="cmdk-group">${c.group}</p>` : '';+ lastGroup = c.group;+ return `${head}<div class="cmdk-row ${i === selected ? 'selected' : ''}" role="option" aria-selected="${i === selected}" data-cmd="${i}">+ <span class="cmdk-icon">${icon(c.icon)}</span>+ <span class="cmdk-label">${c.label}</span>+ <span class="cmdk-hint">${c.hint}</span>+ </div>`;+ }).join('');+ listEl.querySelector('.cmdk-row.selected')?.scrollIntoView({ block: 'nearest' });+ }++ function openPalette() {+ palette.classList.remove('hidden');+ document.body.classList.add('cmdk-open');+ inputEl.value = '';+ selected = 0;+ renderList();+ requestAnimationFrame(() => inputEl.focus());+ }+ function closePalette() {+ palette.classList.add('hidden');+ document.body.classList.remove('cmdk-open');+ }+ function runCommand(index) {+ const cmd = filtered[index];+ if (!cmd) return;+ closePalette();+ setTimeout(() => cmd.run(), 60);+ }++ palette.addEventListener('click', event => {+ if (event.target === palette) return closePalette();+ const row = event.target.closest('[data-cmd]');+ if (row) runCommand(Number(row.dataset.cmd));+ });+ inputEl.addEventListener('input', () => { selected = 0; renderList(); });++ document.addEventListener('keydown', event => {+ if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'k') {+ event.preventDefault();+ return palette.classList.contains('hidden') ? openPalette() : closePalette();+ }+ if (!palette.classList.contains('hidden')) {+ if (event.key === 'Escape') { event.preventDefault(); return closePalette(); }+ if (event.key === 'ArrowDown') { event.preventDefault(); selected = Math.min(filtered.length - 1, selected + 1); return renderList(); }+ if (event.key === 'ArrowUp') { event.preventDefault(); selected = Math.max(0, selected - 1); return renderList(); }+ if (event.key === 'Enter') { event.preventDefault(); return runCommand(selected); }+ return;+ }+ // Typing guard: chords only outside form fields+ const tag = event.target.tagName;+ const typing = tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || event.target.isContentEditable;+ if (typing || event.ctrlKey || event.metaKey || event.altKey) return;++ if (event.key === '/') { event.preventDefault(); return openPalette(); }+ if (event.key.toLowerCase() === 'n') {+ event.preventDefault();+ if (!$('#generate-button').disabled) $('#generate-dialog').showModal();+ return;+ }+ // g-chords: g o → overview, g p → pipeline …+ if (event.key.toLowerCase() === 'g') {+ chordArmed = true;+ clearTimeout(chordTimer);+ chordTimer = setTimeout(() => { chordArmed = false; }, 1200);+ return;+ }+ if (chordArmed) {+ const map = { o: 'overview', p: 'pipeline', c: 'calendar', a: 'analytics', r: 'readiness', s: 'settings', d: 'operator' };+ const view = map[event.key.toLowerCase()];+ chordArmed = false;+ clearTimeout(chordTimer);+ if (view) { event.preventDefault(); window.switchView(view); }+ }+ });+ let chordArmed = false;+ let chordTimer = null;++ // Visible trigger in the topbar+ const trigger = document.createElement('button');+ trigger.className = 'kbd-trigger';+ trigger.setAttribute('aria-label', 'Open command palette');+ trigger.innerHTML = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><span>Search</span><kbd>Ctrl K</kbd>';+ trigger.addEventListener('click', openPalette);+ $('.top-actions').prepend(trigger);++ /* ---------- 4. Cursor spotlight + card glow + tilt ---------- */+ if (!reduceMotion) {+ const glowSelector = '.stat, .pipeline-item, .review-card, .job-card, .plan-card, .learning-card, .readiness-check, .retention-scene';+ const spotlight = $('.spotlight');+ let lastGlow = null;+ let spotlightRaf = 0;+ document.addEventListener('pointermove', event => {+ document.body.classList.add('has-pointer');+ if (spotlight) {+ cancelAnimationFrame(spotlightRaf);+ spotlightRaf = requestAnimationFrame(() => {+ spotlight.style.setProperty('--mx', `${event.clientX}px`);+ spotlight.style.setProperty('--my', `${event.clientY}px`);+ });+ }+ const el = event.target.closest?.(glowSelector);+ if (el !== lastGlow && lastGlow) lastGlow.style.setProperty('--gx', '');+ lastGlow = el;+ if (el) {+ const rect = el.getBoundingClientRect();+ el.style.setProperty('--gx', `${event.clientX - rect.left}px`);+ el.style.setProperty('--gy', `${event.clientY - rect.top}px`);+ }+ }, { passive: true });++ // Subtle 3D tilt on stat cards+ $$('.stat').forEach(card => {+ card.addEventListener('pointermove', event => {+ const rect = card.getBoundingClientRect();+ const rx = ((event.clientY - rect.top) / rect.height - .5) * -4;+ const ry = ((event.clientX - rect.left) / rect.width - .5) * 4;+ card.style.transform = `perspective(700px) rotateX(${rx.toFixed(2)}deg) rotateY(${ry.toFixed(2)}deg) translateY(-2px)`;+ });+ card.addEventListener('pointerleave', () => { card.style.transform = ''; });+ });+ }++ /* ---------- 5. Button ripple ---------- */+ if (!reduceMotion) {+ document.addEventListener('pointerdown', event => {+ const button = event.target.closest('.button.primary, .button.secondary, .nav-item');+ if (!button) return;+ const rect = button.getBoundingClientRect();+ const ripple = document.createElement('span');+ ripple.className = 'ripple';+ const size = Math.max(rect.width, rect.height) * 2.1;+ ripple.style.cssText = `width:${size}px;height:${size}px;left:${event.clientX - rect.left - size / 2}px;top:${event.clientY - rect.top - size / 2}px`;+ button.appendChild(ripple);+ ripple.addEventListener('animationend', () => ripple.remove());+ });+ }++ /* ---------- 6. Scroll reveals (static panels only) ---------- */+ const io = 'IntersectionObserver' in window && !reduceMotion+ ? new IntersectionObserver(entries => {+ for (const entry of entries) {+ if (entry.isIntersecting) {+ entry.target.classList.add('revealed');+ io.unobserve(entry.target);+ }+ }+ }, { threshold: .06, rootMargin: '0px 0px -36px 0px' })+ : null;+ function armReveals(scope) {+ if (!io) return;+ (scope || document).querySelectorAll('.panel:not(.revealed)').forEach(panel => {+ panel.classList.add('reveal');+ io.observe(panel);+ });+ }++ /* ---------- 7. Sticky topbar elevation ---------- */+ const topbar = $('.topbar');+ window.addEventListener('scroll', () => {+ document.body.classList.toggle('scrolled', window.scrollY > 10);+ }, { passive: true });+ if (topbar) armReveals(document);++ /* ---------- 8. Toast v2 (icon + slide, keeps API) ---------- */+ const origShowToast = window.showToast;+ if (typeof origShowToast === 'function') {+ window.showToast = function (message, type = 'success') {+ const toast = $('#toast');+ const iconPath = type === 'error'+ ? '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><circle cx="12" cy="12" r="9.5"/><path d="M12 7.5v5.5M12 16.5v.5"/></svg>'+ : type === 'warning'+ ? '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3 2.5 20h19z"/><path d="M12 10v4M12 17v.5"/></svg>'+ : '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9.5"/><path d="m8 12.5 2.8 2.8L16.5 9"/></svg>';+ toast.innerHTML = `<span class="toast-icon ${type}">${iconPath}</span><span class="toast-msg"></span>`;+ toast.querySelector('.toast-msg').textContent = message;+ toast.className = `toast ${type}`;+ void toast.offsetWidth;+ toast.classList.add('armed');+ clearTimeout(ui.toastTimer);+ ui.toastTimer = setTimeout(() => toast.classList.add('hidden'), 4200);+ };+ }++ /* ---------- 9. Live relative-time ticker ---------- */+ setInterval(() => {+ if (ui.state && !ui.refreshing && !document.hidden) {+ try {+ renderNotifications(ui.state.notifications || [], ui.state.events || []);+ } catch { /* next tick */ }+ }+ }, 30000);++ /* ---------- 10. Sidebar status cluster (clock + version) ---------- */+ const footer = $('.sidebar-footer');+ if (footer) {+ const cluster = document.createElement('div');+ cluster.className = 'console-meta';+ cluster.innerHTML = `+ <div class="console-clock"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3.5 2"/></svg><span>--:--</span></div>+ <span class="console-version">v2.8.0 · local</span>`;+ footer.prepend(cluster);+ const clockLabel = cluster.querySelector('.console-clock span');+ const tickClock = () => {+ clockLabel.textContent = new Date().toLocaleTimeString(undefined, { hour: '2-digit', minute: '2-digit' });+ };+ tickClock();+ setInterval(tickClock, 15000);+ }++ /* ---------- 11. First-paint boot sequence ---------- */+ requestAnimationFrame(() => requestAnimationFrame(() => {+ document.documentElement.classList.remove('preboot');+ armReveals($('.view.active'));+ }));+})();diff --git a/dashboard/index.html b/dashboard/index.htmlindex 446c081..66193f2 100644--- a/dashboard/index.html+++ b/dashboard/index.html@@ -1,27 +1,35 @@<!doctype html>-<html lang="en">+<html lang="en" class="preboot"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="color-scheme" content="dark">+ <meta name="theme-color" content="#06080c"><title>YouTube Automation Studio</title>+ <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%23ff4d5e'/%3E%3Cpath d='M12 9.5v13l11-6.5z' fill='white'/%3E%3C/svg%3E">+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet"><link rel="stylesheet" href="/styles.css"></head><body>+ <div class="aurora" aria-hidden="true"></div>+ <div class="spotlight" aria-hidden="true"></div><div class="app-shell"><aside class="sidebar"><a class="brand" href="#overview" aria-label="YouTube Automation Studio home">- <span class="brand-mark">▶</span>- <span><strong id="brand-name">Automation Studio</strong><small>YouTube operator console</small></span>+ <span class="brand-mark"><svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M8 5.5v13l11-6.5z" fill="currentColor"/></svg></span>+ <span><strong id="brand-name">Automation Studio</strong><small>Operator console</small></span></a>+ <p class="sidebar-label" aria-hidden="true">Workspace</p><nav aria-label="Main navigation">- <button class="nav-item active" data-view="overview"><span>⌂</span> Overview</button>- <button class="nav-item" data-view="operator"><span>◎</span> Autonomous operator</button>- <button class="nav-item" data-view="pipeline"><span>≋</span> Pipeline <b id="review-badge" class="badge hidden">0</b></button>- <button class="nav-item" data-view="calendar"><span>□</span> Calendar & ideas</button>- <button class="nav-item" data-view="analytics"><span>⌁</span> Analytics</button>- <button class="nav-item" data-view="readiness"><span>✓</span> Production readiness</button>- <button class="nav-item" data-view="settings"><span>⚙</span> Channel setup</button>+ <button class="nav-item active" data-view="overview"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="7.5" height="9.5" rx="1.5"/><rect x="13.5" y="3" width="7.5" height="5.5" rx="1.5"/><rect x="13.5" y="11.5" width="7.5" height="9.5" rx="1.5"/><rect x="3" y="15.5" width="7.5" height="5.5" rx="1.5"/></svg> Overview</button>+ <button class="nav-item" data-view="operator"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3.2"/><path d="M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M18.7 5.3l-2.1 2.1M7.4 16.6l-2.1 2.1"/></svg> Autonomous operator</button>+ <button class="nav-item" data-view="pipeline"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 6h10M4 12h16M4 18h7"/><circle cx="17.5" cy="6" r="2"/><circle cx="14.5" cy="18" r="2"/></svg> Pipeline <b id="review-badge" class="badge hidden">0</b></button>+ <button class="nav-item" data-view="calendar"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4.5" width="18" height="16.5" rx="2"/><path d="M3 9.5h18M8 2.5v4M16 2.5v4M7.5 13.5h3v3h-3z"/></svg> Calendar & ideas</button>+ <button class="nav-item" data-view="analytics"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 20.5h17"/><path d="M6.5 20V11M11 20V4.5M15.5 20v-7M20 20V8.5"/></svg> Analytics</button>+ <button class="nav-item" data-view="readiness"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 2.8l7.5 3v6c0 4.8-3.2 8.2-7.5 9.4-4.3-1.2-7.5-4.6-7.5-9.4v-6z"/><path d="M8.8 12.2l2.3 2.3 4.4-4.6"/></svg> Production readiness</button>+ <button class="nav-item" data-view="settings"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 00.34 1.87l.06.06a2 2 0 11-2.83 2.83l-.06-.06A1.7 1.7 0 0015 19.4a1.7 1.7 0 00-1 1.55V21a2 2 0 11-4 0v-.09A1.7 1.7 0 009 19.4a1.7 1.7 0 00-1.87.33l-.06.06a2 2 0 11-2.83-2.83l.06-.06A1.7 1.7 0 004.6 15a1.7 1.7 0 00-1.55-1H3a2 2 0 110-4h.09A1.7 1.7 0 004.6 9a1.7 1.7 0 00-.33-1.87l-.06-.06a2 2 0 112.83-2.83l.06.06A1.7 1.7 0 009 4.6a1.7 1.7 0 001-1.55V3a2 2 0 114 0v.09a1.7 1.7 0 001 1.51 1.7 1.7 0 001.87-.34l.06-.06a2 2 0 112.83 2.83l-.06.06A1.7 1.7 0 0019.4 9c.28.66.9 1.05 1.55 1H21a2 2 0 110 4h-.09a1.7 1.7 0 00-1.51 1z"/></svg> Channel setup</button></nav><div class="sidebar-footer"><div class="system-pill"><i id="system-dot"></i><span id="system-label">Connecting…</span></div>@@ -36,7 +44,7 @@<h1 id="view-title">Know what happens next.</h1></div><div class="top-actions">- <button id="refresh-button" class="icon-button" title="Refresh dashboard" aria-label="Refresh dashboard">↻</button>+ <button id="refresh-button" class="icon-button" title="Refresh dashboard" aria-label="Refresh dashboard"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12a9 9 0 11-2.64-6.36"/><path d="M21 3v6h-6"/></svg></button><button id="generate-button" class="button primary">+ Create video</button></div></header>@@ -239,5 +247,6 @@</dialog><script src="/app.js" defer></script>+ <script src="/enhance.js" defer></script></body></html>diff --git a/dashboard/styles.css b/dashboard/styles.cssindex 651abd5..b88bcc3 100644--- a/dashboard/styles.css+++ b/dashboard/styles.css@@ -1,316 +1,664 @@+/* ============================================================+ LUMEN — Operator Console+ Design language: editorial control-room. Mono instrumentation,+ hairline structure, one saturated brand accent, layered depth.+ ============================================================ */+:root {- --bg: #090b0f;- --panel: #11151b;- --panel-soft: #151a22;- --line: #252c37;- --text: #f4f6f8;- --muted: #929baa;+ /* Surfaces */+ --bg: #06080c;+ --surface-1: #0c1017;+ --surface-2: #10151e;+ --surface-3: #151b26;+ --surface-inset: #080b10;++ /* Hairlines */+ --line: rgba(151, 167, 195, .13);+ --line-strong: rgba(151, 167, 195, .24);++ /* Ink */+ --text: #edf1f7;+ --text-2: #b9c3d4;+ --muted: #7d889d;++ /* Brand + semantics */--red: #ff4d5e;- --red-soft: rgba(255, 77, 94, .13);- --green: #48d597;- --amber: #f5b944;- --blue: #72a5ff;- --radius: 16px;- font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;+ --red-hot: #ff6b7a;+ --red-deep: #d92c46;+ --red-soft: rgba(255, 77, 94, .12);+ --green: #3ddc97;+ --green-soft: rgba(61, 220, 151, .11);+ --amber: #ffc247;+ --amber-soft: rgba(255, 194, 71, .11);+ --blue: #6ea8ff;+ --blue-soft: rgba(110, 168, 255, .11);+ --purple: #c47bff;+ --purple-soft: rgba(196, 123, 255, .1);++ /* Geometry */+ --radius-lg: 16px;+ --radius: 12px;+ --radius-sm: 9px;+ --sidebar-w: 248px;++ /* Elevation */+ --shadow-panel: inset 0 1px 0 rgba(255, 255, 255, .035), 0 24px 48px -28px rgba(0, 0, 0, .65);+ --shadow-pop: 0 6px 16px -6px rgba(0, 0, 0, .5), 0 24px 60px -20px rgba(0, 0, 0, .55);+ --shadow-cta: 0 2px 10px -2px rgba(255, 77, 94, .55), 0 10px 30px -8px rgba(217, 44, 70, .45);+ --ring: 0 0 0 3px rgba(255, 77, 94, .28);++ --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;+ --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;++ font-family: var(--font-sans);+ accent-color: var(--red);+ color-scheme: dark;}+* { box-sizing: border-box; }-body { margin: 0; color: var(--text); background: radial-gradient(circle at 80% 0%, #17131b 0, var(--bg) 30%); min-height: 100vh; overflow-x: hidden; }++html { scrollbar-color: #2a3342 var(--bg); }++body {+ margin: 0;+ color: var(--text);+ background:+ radial-gradient(1100px 520px at 85% -10%, rgba(217, 44, 70, .075), transparent 60%),+ radial-gradient(900px 600px at -15% 20%, rgba(110, 168, 255, .05), transparent 55%),+ var(--bg);+ min-height: 100vh;+ overflow-x: hidden;+ font-size: 14px;+ line-height: 1.5;+ -webkit-font-smoothing: antialiased;+}++/* Blueprint grid — decorative, near-invisible */+body::before {+ content: "";+ position: fixed;+ inset: 0;+ background-image:+ linear-gradient(rgba(151, 167, 195, .032) 1px, transparent 1px),+ linear-gradient(90deg, rgba(151, 167, 195, .032) 1px, transparent 1px);+ background-size: 44px 44px;+ mask-image: radial-gradient(1200px 800px at 60% 0%, rgba(0, 0, 0, .9), transparent 75%);+ pointer-events: none;+ z-index: 0;+}++::selection { background: rgba(255, 77, 94, .32); }++::-webkit-scrollbar { width: 10px; height: 10px; }+::-webkit-scrollbar-track { background: transparent; }+::-webkit-scrollbar-thumb { background: #232c3a; border-radius: 99px; border: 2px solid var(--bg); }+::-webkit-scrollbar-thumb:hover { background: #313c4e; }+button, input, select, textarea { font: inherit; }button { color: inherit; }-.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }-.sidebar { border-right: 1px solid var(--line); padding: 28px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: rgba(9,11,15,.9); backdrop-filter: blur(18px); }-.brand { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; padding: 0 8px 34px; }-.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--red); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(255,77,94,.22); }++:focus-visible {+ outline: none;+ box-shadow: var(--ring);+ border-radius: var(--radius-sm);+}++h1, h2, h3, p { margin-top: 0; }+h1 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; font-weight: 800; margin-bottom: 0; }+h2 { letter-spacing: -.02em; margin-bottom: 0; font-weight: 700; }+a { color: var(--blue); }++.app-shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }++/* ============ Sidebar ============ */+.sidebar {+ border-right: 1px solid var(--line);+ padding: 24px 16px 20px;+ display: flex;+ flex-direction: column;+ position: sticky;+ top: 0;+ height: 100vh;+ background: linear-gradient(180deg, rgba(12, 16, 23, .92), rgba(6, 8, 12, .96));+ backdrop-filter: blur(18px);+}++.brand { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; padding: 4px 8px 26px; }+.brand-mark {+ width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px;+ display: grid; place-items: center;+ background: linear-gradient(140deg, var(--red-hot), var(--red-deep));+ box-shadow: 0 8px 22px -6px rgba(255, 77, 94, .5), inset 0 1px 0 rgba(255, 255, 255, .3);+ color: #fff;+}+.brand-mark svg { width: 16px; height: 16px; }.brand strong, .brand small { display: block; }-.brand strong { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }-.brand small { color: var(--muted); font-size: 11px; margin-top: 3px; }-nav { display: grid; gap: 7px; }-.nav-item { border: 0; background: transparent; color: var(--muted); text-align: left; padding: 12px 14px; border-radius: 10px; cursor: pointer; display: flex; gap: 12px; align-items: center; }-.nav-item:hover, .nav-item.active { background: var(--panel-soft); color: var(--text); }-.nav-item.active { box-shadow: inset 2px 0 var(--red); }-.badge { margin-left: auto; border-radius: 999px; background: var(--red); color: white; font-size: 11px; padding: 2px 7px; }-.sidebar-footer { margin-top: auto; display: grid; gap: 14px; }-.system-pill { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 0 8px; }-.system-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px currentColor; }+.brand strong { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; letter-spacing: -.01em; }+.brand small { color: var(--muted); font-size: 10px; margin-top: 3px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }++.sidebar-label {+ color: var(--muted); font-family: var(--font-mono); font-size: 9px; font-weight: 600;+ letter-spacing: .22em; text-transform: uppercase; padding: 0 14px 8px;+}++nav { display: grid; gap: 3px; }+.nav-item {+ border: 0; background: transparent; color: var(--muted); text-align: left;+ padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;+ display: flex; gap: 11px; align-items: center;+ font-size: 13.5px; font-weight: 500;+ position: relative;+ transition: color .15s ease, background-color .15s ease;+}+.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .75; transition: opacity .15s ease; }+.nav-item:hover { background: rgba(151, 167, 195, .06); color: var(--text-2); }+.nav-item:hover svg { opacity: 1; }+.nav-item.active { background: linear-gradient(90deg, var(--red-soft), rgba(255, 77, 94, .03)); color: var(--text); }+.nav-item.active svg { opacity: 1; color: var(--red); }+.nav-item.active::before {+ content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;+ border-radius: 99px; background: linear-gradient(180deg, var(--red-hot), var(--red-deep));+ box-shadow: 0 0 12px rgba(255, 77, 94, .55);+}++.badge {+ margin-left: auto; border-radius: 999px; background: var(--red); color: white;+ font-size: 10px; font-weight: 700; font-family: var(--font-mono);+ padding: 2px 7px; box-shadow: 0 0 10px rgba(255, 77, 94, .45);+}++.sidebar-footer { margin-top: auto; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }+.system-pill { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 0 8px; font-family: var(--font-mono); letter-spacing: .02em; }+.system-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px currentColor; animation: pulse 2.4s ease-in-out infinite; }.system-pill i.online { background: var(--green); }-main { padding: 0 4vw 70px; min-width: 0; }-.topbar { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }-h1, h2, h3, p { margin-top: 0; }-h1 { font-size: clamp(27px, 3vw, 42px); letter-spacing: -.04em; margin-bottom: 0; }-h2 { letter-spacing: -.025em; margin-bottom: 0; }-.eyebrow { color: var(--red); letter-spacing: .14em; font-size: 10px; font-weight: 800; margin-bottom: 8px; }+@keyframes pulse { 50% { opacity: .45; } }++/* ============ Main column ============ */+main { padding: 0 3.2vw 72px; min-width: 0; }++.topbar {+ min-height: 128px; display: flex; align-items: center; justify-content: space-between;+ gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px;+}++.eyebrow {+ color: var(--red); letter-spacing: .18em; font-size: 10px; font-weight: 700;+ font-family: var(--font-mono); text-transform: uppercase; margin-bottom: 9px;+}+.top-actions, .form-actions { display: flex; gap: 10px; align-items: center; }++/* ============ Buttons ============ */.button, .icon-button, .text-button, .close-button { border: 0; cursor: pointer; }-.button { border-radius: 10px; padding: 11px 16px; font-weight: 700; }-.button.primary { background: var(--red); color: white; box-shadow: 0 8px 24px rgba(255,77,94,.17); }-.button.primary:hover { background: #ff6271; }-.button.secondary { background: var(--panel-soft); border: 1px solid var(--line); }++.button {+ border-radius: 10px; padding: 10px 16px; font-weight: 650; font-size: 13.5px;+ display: inline-flex; align-items: center; justify-content: center; gap: 7px;+ transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease, filter .14s ease;+}+.button:active { transform: translateY(1px) scale(.99); }+.button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; filter: none !important; }++.button.primary {+ background: linear-gradient(160deg, var(--red-hot), var(--red-deep));+ color: #fff; box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255, 255, 255, .28);+ border: 1px solid rgba(255, 255, 255, .08);+}+.button.primary:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 14px -2px rgba(255, 77, 94, .6), 0 14px 34px -8px rgba(217, 44, 70, .5), inset 0 1px 0 rgba(255, 255, 255, .28); }++.button.secondary { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }+.button.secondary:hover:not(:disabled) { background: var(--surface-3); border-color: rgba(151, 167, 195, .38); transform: translateY(-1px); }+.button.ghost { background: transparent; color: var(--muted); }-.button.danger { background: var(--red-soft); color: #ff8994; }+.button.ghost:hover { color: var(--text); background: rgba(151, 167, 195, .07); }++.button.danger { background: var(--red-soft); color: var(--red-hot); border: 1px solid rgba(255, 77, 94, .3); }+.button.danger:hover:not(:disabled) { background: rgba(255, 77, 94, .2); }+.button.full { width: 100%; }-.button.small { font-size: 12px; padding: 8px 10px; }-.icon-button, .close-button { width: 42px; height: 42px; border-radius: 10px; background: var(--panel-soft); border: 1px solid var(--line); font-size: 22px; }-.text-button { color: var(--muted); background: none; font-size: 13px; }-.text-button:hover { color: var(--text); }-.view { display: none; animation: enter .22s ease-out; }+.button.small { font-size: 12px; padding: 7px 11px; border-radius: 8px; }++.icon-button, .close-button {+ width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2);+ border: 1px solid var(--line-strong); font-size: 20px; color: var(--text-2);+ display: inline-grid; place-items: center;+ transition: background-color .14s ease, transform .14s ease, border-color .14s ease;+}+.icon-button svg { width: 17px; height: 17px; }+.icon-button:hover { background: var(--surface-3); border-color: rgba(151, 167, 195, .38); transform: translateY(-1px); }++.text-button { color: var(--muted); background: none; font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 7px; transition: color .14s ease, background-color .14s ease; }+.text-button:hover { color: var(--text); background: rgba(151, 167, 195, .08); }+.text-button.approve { color: var(--green); }+.text-button.approve:hover { color: var(--green); background: var(--green-soft); }+.text-button.danger-text { color: var(--red-hot); }+.text-button:disabled { opacity: .4; cursor: not-allowed; }++/* ============ Views ============ */+.view { display: none; animation: enter .24s cubic-bezier(.2, .7, .3, 1); }.view.active { display: block; }-.setup-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(245,185,68,.35); background: rgba(245,185,68,.08); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }-.setup-banner strong { color: #ffd67d; }-.setup-banner p { color: var(--muted); margin: 5px 0 0; font-size: 13px; }-.setup-banner code { background: #0b0e12; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; white-space: nowrap; }-@keyframes enter { from { opacity: 0; transform: translateY(5px); } }-.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }-.stat, .panel { min-width: 0; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(21,26,34,.96), rgba(13,16,21,.96)); border-radius: var(--radius); }-.stat { padding: 20px; min-height: 128px; display: flex; flex-direction: column; }+@keyframes enter { from { opacity: 0; transform: translateY(6px); } }++.setup-banner {+ display: flex; align-items: center; justify-content: space-between; gap: 20px;+ border: 1px solid rgba(255, 194, 71, .3); background: linear-gradient(160deg, rgba(255, 194, 71, .09), rgba(255, 194, 71, .03));+ border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px;+}+.setup-banner strong { color: var(--amber); }+.setup-banner p { color: var(--text-2); margin: 5px 0 0; font-size: 13px; }+.setup-banner code { background: var(--surface-inset); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--amber); }++/* ============ Stats ============ */+.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }++.stat, .panel {+ min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);+ background: linear-gradient(155deg, var(--surface-2), var(--surface-1) 65%);+ box-shadow: var(--shadow-panel);+}++.stat { padding: 18px 20px; min-height: 122px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .16s ease, border-color .16s ease; }+.stat:hover { transform: translateY(-2px); border-color: var(--line-strong); }+.stat::after {+ content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px;+ background: linear-gradient(90deg, var(--red), transparent 70%); opacity: .5; border-radius: 99px 99px 0 0;+}.stat span, .stat small { color: var(--muted); }-.stat span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }-.stat strong { font-size: 36px; letter-spacing: -.04em; margin: auto 0 1px; }+.stat span { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-mono); font-weight: 600; }+.stat strong { font-size: 34px; letter-spacing: -.03em; margin: auto 0 2px; font-weight: 750; font-family: var(--font-mono); background: linear-gradient(160deg, #fff, #aeb9cc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }.stat small { font-size: 11px; }-.overview-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 18px; }++/* ============ Panels ============ */+.overview-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 16px; }.overview-grid.lower { grid-template-columns: 1fr 1fr; }.panel { padding: 22px; }.panel-heading, .split-heading, .section-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.panel-heading { margin-bottom: 18px; }-.panel-heading h2 { font-size: 19px; }+.panel-heading h2 { font-size: 18px; }++.section-intro, .split-heading { margin-bottom: 24px; }+.section-intro p, .split-heading p { color: var(--muted); margin: 7px 0 0; }++/* ============ Lists & cards ============ */.card-list, .activity-list, .timeline, .idea-list, .calendar-list { display: grid; gap: 10px; }-.empty { color: var(--muted); border: 1px dashed var(--line); padding: 24px; border-radius: 12px; text-align: center; }-.review-card, .job-card, .activity, .timeline-item, .idea-card, .performer-card { border: 1px solid var(--line); background: rgba(255,255,255,.018); border-radius: 12px; padding: 14px; }+.card-list.compact { gap: 8px; }++.empty {+ color: var(--muted); border: 1px dashed var(--line-strong); padding: 26px 22px;+ border-radius: var(--radius); text-align: center; font-size: 13px; line-height: 1.55;+ background: rgba(151, 167, 195, .025);+}++.review-card, .job-card, .activity, .timeline-item, .idea-card, .performer-card {+ border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius); padding: 14px;+ transition: border-color .15s ease, transform .15s ease, background-color .15s ease;+}+.review-card:hover, .idea-card:hover, .timeline-item:hover { border-color: var(--line-strong); transform: translateY(-1px); }.review-card, .job-card, .timeline-item, .idea-card { display: flex; align-items: center; gap: 14px; }-.review-thumb { width: 86px; aspect-ratio: 16/9; background: #222833; border-radius: 8px; object-fit: cover; }++.review-thumb { width: 86px; aspect-ratio: 16/9; background: var(--surface-3); border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }.review-meta, .job-meta, .timeline-meta, .idea-meta { min-width: 0; flex: 1; }-.review-meta strong, .job-meta strong, .timeline-meta strong, .idea-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.review-meta strong, .job-meta strong, .timeline-meta strong, .idea-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }.meta-line { color: var(--muted); font-size: 12px; margin-top: 5px; }-.checkpoint-line { color: var(--green); font-size: 11px; margin-top: 7px; }+.checkpoint-line { color: var(--green); font-size: 11px; margin-top: 6px; font-family: var(--font-mono); }+.job-recovery, .run-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }.job-recovery select { width: 132px; padding: 7px 9px; }-.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: rgba(114,165,255,.12); color: var(--blue); }-.status.needs_review, .status.queued { color: var(--amber); background: rgba(245,185,68,.12); }-.status.needs_attention, .status.failed, .status.interrupted, .status.reconciliation_required, .status.rejected { color: #ff8994; background: var(--red-soft); }-.status.approved, .status.scheduled, .status.published, .status.completed, .status.passed { color: var(--green); background: rgba(72,213,151,.12); }-.status.success { color: var(--green); background: rgba(72,213,151,.12); }-.status.warning, .status.skipped, .status.unverified { color: var(--amber); background: rgba(245,185,68,.12); }-.progress { height: 5px; border-radius: 99px; background: #262c35; margin-top: 9px; overflow: hidden; }-.progress i { display: block; height: 100%; background: var(--red); border-radius: inherit; }++/* ============ Status chips ============ */+.status {+ display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 9px 3px 7px;+ font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;+ font-family: var(--font-mono); background: var(--blue-soft); color: var(--blue);+ border: 1px solid transparent; white-space: nowrap;+}+.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; flex: 0 0 5px; }+.status.needs_review, .status.queued, .status.warning, .status.skipped, .status.unverified { color: var(--amber); background: var(--amber-soft); border-color: rgba(255, 194, 71, .18); }+.status.needs_attention, .status.failed, .status.interrupted, .status.reconciliation_required, .status.rejected, .status.drop_off { color: var(--red-hot); background: var(--red-soft); border-color: rgba(255, 77, 94, .2); }+.status.approved, .status.scheduled, .status.published, .status.completed, .status.passed, .status.success, .status.strong_hold, .status.rewatch, .status.narration_current { color: var(--green); background: var(--green-soft); border-color: rgba(61, 220, 151, .18); }+.status.steady, .status.insufficient, .status.narration_intentional_silence { color: var(--blue); background: var(--blue-soft); }+.status.narration_stale, .status.narration_unavailable, .status.narration_failed, .status.narration_generating, .status.needs_rebuild, .status.visual_stale, .status.missing_asset, .status.generating { color: var(--amber); background: var(--amber-soft); border-color: rgba(255, 194, 71, .18); }++/* ============ Progress ============ */+.progress { height: 5px; border-radius: 99px; background: rgba(151, 167, 195, .12); margin-top: 10px; overflow: hidden; }+.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-hot)); border-radius: inherit; box-shadow: 0 0 8px rgba(255, 77, 94, .5); transition: width .4s ease; position: relative; overflow: hidden; }+.progress i::after {+ content: ""; position: absolute; inset: 0;+ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);+ animation: shimmer 1.6s linear infinite;+}+@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }++/* ============ Activity ============ */.activity { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start; }-.activity i { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; margin-top: 5px; }+.activity i { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; margin-top: 6px; box-shadow: 0 0 8px currentColor; }.activity.error i { background: var(--red); }.activity.warning i { background: var(--amber); }.activity.success i { background: var(--green); }.activity p { margin: 0; font-size: 13px; }-.activity small { color: var(--muted); font-size: 10px; }-.section-intro, .split-heading { margin-bottom: 24px; }-.section-intro p, .split-heading p { color: var(--muted); margin: 7px 0 0; }-select, input, textarea { width: 100%; border: 1px solid var(--line); background: #0d1015; color: var(--text); border-radius: 9px; padding: 11px 12px; outline: none; }-input:focus, textarea:focus, select:focus { border-color: #636d7c; box-shadow: 0 0 0 3px rgba(114,165,255,.08); }+.activity small { color: var(--muted); font-size: 10px; font-family: var(--font-mono); }++/* ============ Forms ============ */+select, input, textarea {+ width: 100%; border: 1px solid var(--line-strong); background: var(--surface-inset); color: var(--text);+ border-radius: var(--radius-sm); padding: 10px 12px; outline: none;+ transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;+}+input:hover:not(:disabled), textarea:hover:not(:disabled), select:hover:not(:disabled) { border-color: rgba(151, 167, 195, .34); }+input:focus, textarea:focus, select:focus { border-color: rgba(255, 77, 94, .55); box-shadow: 0 0 0 3px rgba(255, 77, 94, .14); }+input:disabled, textarea:disabled, select:disabled { opacity: .5; cursor: not-allowed; }+input::placeholder, textarea::placeholder { color: #59637a; }+select { cursor: pointer; }+textarea { resize: vertical; }++label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }+label > span { color: var(--text); font-weight: 650; font-size: 12.5px; }+label small { color: var(--muted); font-weight: 400; }+label:has(input:disabled) > span { color: var(--muted); }+.section-intro select { width: auto; min-width: 170px; }++.settings-form { max-width: 920px; }+.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }+.form-grid.two { grid-template-columns: 1fr 1fr; }+.full-row { grid-column: 1 / -1; }+.form-actions { margin-top: 4px; }++.settings-row { display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 22px 0; padding: 16px 0; }++/* Toggle switch — input IS the track, ::before is the knob */+.toggle { display: flex; align-items: center; gap: 9px; color: var(--text); cursor: pointer; font-size: 12.5px; }+.toggle input {+ appearance: none; -webkit-appearance: none; width: 36px; height: 20px; flex: 0 0 36px;+ border-radius: 999px; background: rgba(151, 167, 195, .18); border: 1px solid var(--line-strong);+ position: relative; cursor: pointer; padding: 0; margin: 0; transition: background-color .18s ease, border-color .18s ease;+}+.toggle input::before {+ content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;+ background: #97a4ba; transition: transform .18s cubic-bezier(.3, .8, .4, 1), background-color .18s ease;+ box-shadow: 0 1px 3px rgba(0, 0, 0, .4);+}+.toggle input:checked { background: linear-gradient(160deg, var(--red-hot), var(--red-deep)); border-color: transparent; }+.toggle input:checked::before { transform: translateX(16px); background: #fff; }+.toggle input:focus-visible { box-shadow: var(--ring); }+.toggle input:disabled { opacity: .4; cursor: not-allowed; }+.toggle.paid-probe { font-size: 11.5px; color: var(--text-2); }+.toggle.disclosure-toggle { align-items: flex-start; font-size: 11.5px; line-height: 1.45; color: var(--text-2); }+.toggle.disclosure-toggle input { margin-top: 1px; }++/* ============ Pipeline ============ */.pipeline-list { display: grid; gap: 10px; }-.pipeline-item { display: grid; grid-template-columns: minmax(260px, 2fr) 1fr 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line); background: var(--panel); padding: 17px; border-radius: 13px; cursor: pointer; }-.pipeline-item:hover { border-color: #3a4452; transform: translateY(-1px); }-.pipeline-title strong { display: block; margin-bottom: 5px; }-.pipeline-title span, .pipeline-col span { color: var(--muted); font-size: 11px; }-.pipeline-col strong { display: block; font-size: 13px; margin-top: 4px; }-.calendar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }-.operator-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 18px; align-items: start; }-.operator-side { display: grid; gap: 18px; }+.pipeline-item {+ display: grid; grid-template-columns: minmax(260px, 2fr) 1fr 1fr auto; gap: 18px; align-items: center;+ border: 1px solid var(--line); background: linear-gradient(155deg, var(--surface-2), var(--surface-1));+ padding: 16px 18px; border-radius: var(--radius); cursor: pointer;+ transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;+}+.pipeline-item:hover { border-color: rgba(255, 77, 94, .35); transform: translateY(-1px); box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .8); }+.pipeline-title strong { display: block; margin-bottom: 5px; font-size: 13.5px; }+.pipeline-title span, .pipeline-col span { color: var(--muted); font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }+.pipeline-col strong { display: block; font-size: 13px; margin-top: 5px; font-weight: 600; }++/* ============ Calendar / operator ============ */+.calendar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }+.operator-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 16px; align-items: start; }+.operator-side { display: grid; gap: 16px; }.operator-grid .settings-form { max-width: none; }+.plan-list { display: grid; gap: 10px; }-.plan-card { border: 1px solid var(--line); background: rgba(255,255,255,.018); border-radius: 12px; padding: 14px; }-.plan-card strong { display: block; line-height: 1.35; }+.plan-card { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius); padding: 14px; transition: border-color .15s ease; }+.plan-card:hover { border-color: var(--line-strong); }+.plan-card strong { display: block; line-height: 1.35; font-size: 13.5px; }.plan-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 7px 0 0; }+.plan-card .meta-line { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }+.run-summary { display: grid; gap: 12px; }-.run-summary-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }-.run-summary-row strong { color: var(--text); text-align: right; }-.date-chip { min-width: 52px; text-align: center; border: 1px solid var(--line); border-radius: 9px; padding: 7px; }+.run-summary-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; align-items: center; }+.run-summary-row strong { color: var(--text); text-align: right; font-weight: 600; }++.date-chip {+ min-width: 52px; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);+ padding: 7px; background: var(--surface-inset); flex: 0 0 52px;+}.date-chip strong, .date-chip small { display: block; }-.date-chip strong { font-size: 19px; }-.date-chip small { color: var(--red); font-size: 9px; text-transform: uppercase; }+.date-chip strong { font-size: 19px; font-family: var(--font-mono); letter-spacing: -.03em; }+.date-chip small { color: var(--red); font-size: 8.5px; text-transform: uppercase; letter-spacing: .16em; font-family: var(--font-mono); font-weight: 700; }++/* ============ Analytics ============ */.analytics-stats { grid-template-columns: 1fr 1fr 2fr; }-.stat.wide strong.recommendation { font-size: 19px; line-height: 1.35; letter-spacing: -.02em; }-.learning-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 18px; margin-bottom: 18px; }+.stat.wide strong.recommendation { font-size: 18px; line-height: 1.4; letter-spacing: -.02em; font-family: var(--font-sans); -webkit-text-fill-color: var(--text); background: none; font-weight: 650; }++.learning-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 16px; margin-bottom: 16px; }.baseline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }-.baseline-grid > div { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: rgba(255,255,255,.018); }+.baseline-grid > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px; background: var(--surface-inset); transition: border-color .15s ease; }+.baseline-grid > div:hover { border-color: var(--line-strong); }.baseline-grid span, .baseline-grid strong { display: block; }-.baseline-grid span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }-.baseline-grid strong { font-size: 22px; margin-top: 5px; }+.baseline-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); font-weight: 600; }+.baseline-grid strong { font-size: 21px; margin-top: 6px; font-family: var(--font-mono); letter-spacing: -.02em; }.baseline-grid .empty { grid-column: 1 / -1; }+.learning-list { display: grid; gap: 10px; }-.learning-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.018); }+.learning-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface-2); transition: border-color .15s ease; }+.learning-card:hover { border-color: var(--line-strong); }.learning-card-heading, .learning-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }-.learning-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 8px 0 12px; }+.learning-card p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 8px 0 12px; }.learning-meta { color: var(--muted); font-size: 11px; }-.learning-actions { display: flex; gap: 12px; }-.text-button.approve { color: var(--green); }-.retention-studio { display: grid; gap: 16px; margin-bottom: 18px; overflow: hidden; }+.learning-actions { display: flex; gap: 10px; }++/* ============ Retention studio ============ */+.retention-studio { display: grid; gap: 16px; margin-bottom: 16px; overflow: hidden; }.retention-heading { align-items: flex-start; margin-bottom: 0; }.retention-heading p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 7px 0 0; }.retention-controls { display: flex; align-items: end; gap: 9px; min-width: min(100%, 360px); }.retention-controls label { flex: 1; }.retention-controls select { min-width: 220px; }-.retention-chart { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #090c10; overflow: hidden; }++.retention-chart { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-inset); overflow: hidden; }.retention-chart svg { display: block; width: 100%; height: auto; min-height: 210px; }-.retention-chart text { fill: var(--muted); font-size: 11px; }-.retention-band.band-0 { fill: rgba(114,165,255,.035); }-.retention-band.band-1 { fill: rgba(204,121,255,.035); }-.scene-boundary { stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-dasharray: 4 5; }-.retention-grid-line { stroke: rgba(255,255,255,.09); stroke-width: 1; }-.retention-line { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 3px 8px rgba(255,77,94,.2)); }+.retention-chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-mono); }+.retention-band.band-0 { fill: rgba(110, 168, 255, .04); }+.retention-band.band-1 { fill: rgba(196, 123, 255, .04); }+.scene-boundary { stroke: rgba(255, 255, 255, .13); stroke-width: 1; stroke-dasharray: 4 5; }+.retention-grid-line { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }+.retention-line { fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(255, 77, 94, .35)); }+.retention-scene-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }-.retention-scene { display: grid; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 13px; background: rgba(255,255,255,.018); }-.retention-scene.drop_off { border-color: rgba(255,137,148,.34); }-.retention-scene.strong_hold, .retention-scene.rewatch { border-color: rgba(72,213,151,.25); }+.retention-scene { display: grid; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; background: var(--surface-2); transition: border-color .15s ease; }+.retention-scene:hover { border-color: var(--line-strong); }+.retention-scene.drop_off { border-color: rgba(255, 107, 122, .35); }+.retention-scene.strong_hold, .retention-scene.rewatch { border-color: rgba(61, 220, 151, .25); }.retention-scene-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }.retention-scene-heading span, .retention-scene-heading strong { display: block; }-.retention-scene-heading span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }+.retention-scene-heading span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; font-family: var(--font-mono); font-weight: 600; }.retention-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.retention-metrics > div { border-top: 1px solid var(--line); padding-top: 8px; }.retention-metrics span, .retention-metrics strong { display: block; }-.retention-metrics span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }-.retention-metrics strong { margin-top: 4px; font-size: 13px; }+.retention-metrics span { color: var(--muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-mono); }+.retention-metrics strong { margin-top: 4px; font-size: 13px; font-family: var(--font-mono); }.retention-policy { margin-top: 0; }-.status.drop_off { color: #ff8994; background: var(--red-soft); }-.status.strong_hold, .status.rewatch { color: var(--green); background: rgba(72,213,151,.12); }-.status.steady, .status.insufficient { color: var(--blue); background: rgba(114,165,255,.12); }-.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }-.settings-form { max-width: 920px; }-.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }-.form-grid.two { grid-template-columns: 1fr 1fr; }-label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }-label > span { color: var(--text); font-weight: 700; }-label small { color: var(--muted); font-weight: 400; }-.full-row { grid-column: 1 / -1; }-.settings-row { display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; padding: 18px 0; }-.toggle { display: flex; align-items: center; gap: 9px; color: var(--text); cursor: pointer; }-.toggle input { width: auto; }-.dialog { width: min(560px, calc(100vw - 30px)); border: 1px solid var(--line); background: #11151b; color: var(--text); border-radius: 18px; padding: 24px; box-shadow: 0 30px 100px rgba(0,0,0,.55); }-.dialog::backdrop { background: rgba(1,3,6,.76); backdrop-filter: blur(7px); }-.dialog form { display: grid; gap: 18px; }-.dialog-heading { display: flex; align-items: start; justify-content: space-between; }-.dialog-heading h2 { font-size: 27px; }-.content-dialog { width: min(1080px, calc(100vw - 30px)); max-height: calc(100vh - 30px); overflow: auto; }-.callout { background: rgba(114,165,255,.08); border: 1px solid rgba(114,165,255,.18); padding: 12px; border-radius: 10px; color: #b9d0fb; font-size: 12px; margin: 0; }-.activation-panel { margin-top: 18px; }-.activation-panel .callout { margin-bottom: 14px; }-.readiness-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); gap: 28px; align-items: center; margin-bottom: 18px; }-.readiness-hero h2 { font-size: 25px; margin: 5px 0 8px; }++.scene-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }+.scene-summary strong, .scene-summary span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 10px; font-family: var(--font-mono); font-size: 10px; background: var(--surface-inset); }+.scene-summary strong { color: var(--text); }++/* ============ Readiness ============ */+.readiness-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); gap: 28px; align-items: center; margin-bottom: 16px; }+.readiness-hero h2 { font-size: 24px; margin: 5px 0 8px; }.readiness-hero p:not(.eyebrow) { color: var(--muted); line-height: 1.55; max-width: 760px; }-.readiness-actions { display: grid; gap: 11px; padding: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.018); border-radius: 12px; }+.readiness-actions { display: grid; gap: 11px; padding: 16px; border: 1px solid var(--line-strong); background: var(--surface-inset); border-radius: var(--radius); }.readiness-actions small { color: var(--muted); line-height: 1.45; }-.readiness-actions .paid-probe { font-size: 11px; }.readiness-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }-.readiness-check { border: 1px solid var(--line); background: var(--panel); border-radius: 13px; padding: 17px; min-height: 180px; }-.readiness-check.passed { border-color: rgba(72,213,151,.26); }-.readiness-check.failed { border-color: rgba(255,87,98,.34); }-.readiness-check.warning, .readiness-check.skipped { border-color: rgba(245,185,68,.28); }+.readiness-check { border: 1px solid var(--line); background: linear-gradient(155deg, var(--surface-2), var(--surface-1)); border-radius: var(--radius); padding: 17px; min-height: 180px; transition: border-color .15s ease, transform .15s ease; }+.readiness-check:hover { transform: translateY(-1px); }+.readiness-check.passed { border-color: rgba(61, 220, 151, .28); }+.readiness-check.failed { border-color: rgba(255, 77, 94, .38); }+.readiness-check.warning, .readiness-check.skipped { border-color: rgba(255, 194, 71, .3); }.readiness-check-heading { display: flex; gap: 11px; align-items: center; }-.readiness-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; background: rgba(114,165,255,.1); color: var(--blue); font-weight: 900; }-.readiness-check.passed .readiness-icon { color: var(--green); background: rgba(72,213,151,.12); }-.readiness-check.failed .readiness-icon { color: #ff8994; background: var(--red-soft); }-.readiness-check.warning .readiness-icon, .readiness-check.skipped .readiness-icon { color: var(--amber); background: rgba(245,185,68,.12); }-.readiness-check p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 15px 0 12px; }-.readiness-check > small { display: block; color: #b9c2cf; font-size: 11px; line-height: 1.5; }+.readiness-check-heading strong { font-size: 13.5px; }+.readiness-icon {+ display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;+ background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 14px;+}+.readiness-check.passed .readiness-icon { color: var(--green); background: var(--green-soft); }+.readiness-check.failed .readiness-icon { color: var(--red-hot); background: var(--red-soft); }+.readiness-check.warning .readiness-icon, .readiness-check.skipped .readiness-icon { color: var(--amber); background: var(--amber-soft); }+.readiness-check p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 14px 0 12px; }+.readiness-check > small { display: block; color: var(--text-2); font-size: 11px; line-height: 1.5; }.readiness-policy { margin-top: 18px; }++/* ============ Timeline / activation ============ */.timeline-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; border: 2px solid var(--muted); }-.timeline-dot.done { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px rgba(72, 213, 151, .1); }+.timeline-dot.done { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 151, .12), 0 0 10px rgba(61, 220, 151, .5); }+.activation-panel { margin-top: 16px; }+.activation-panel .callout { margin-bottom: 14px; }.activation-share { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; padding-top: 4px; }++/* ============ Content dialog internals ============ */.content-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; }-.preview { background: #080a0d; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; display: grid; place-items: center; }+.preview { background: var(--surface-inset); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; display: grid; place-items: center; }.preview video, .preview img { width: 100%; height: 100%; object-fit: contain; }-.preview-placeholder { color: var(--muted); text-align: center; padding: 20px; }+.preview-placeholder { color: var(--muted); text-align: center; padding: 20px; font-size: 12px; }.editor { display: grid; gap: 14px; }-.experiment-panel { display: grid; gap: 14px; border: 1px solid rgba(114,165,255,.28); background: rgba(114,165,255,.06); border-radius: 12px; padding: 14px; }++.experiment-panel { display: grid; gap: 14px; border: 1px solid rgba(110, 168, 255, .3); background: var(--blue-soft); border-radius: var(--radius); padding: 14px; }.experiment-panel p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 6px 0 0; }.experiment-thumbnails { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }-.experiment-thumb { cursor: pointer; border: 1px solid var(--line); background: #0d1015; border-radius: 9px; padding: 7px; }-.experiment-thumb:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(114,165,255,.12); }+.experiment-thumb { cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface-inset); border-radius: var(--radius-sm); padding: 7px; position: relative; transition: border-color .15s ease, box-shadow .15s ease; }+.experiment-thumb:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(110, 168, 255, .18); }.experiment-thumb input { width: auto; position: absolute; opacity: 0; }-.experiment-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #080a0d; }+.experiment-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--surface-inset); }.experiment-thumb span { display: block; color: var(--text); font-size: 11px; margin-top: 6px; text-align: center; }-.scene-repair-panel { display: grid; gap: 14px; border: 1px solid rgba(245,185,68,.28); background: rgba(245,185,68,.045); border-radius: 12px; padding: 14px; }++.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 18px 0; }+.quality-check { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: var(--surface-inset); }+.quality-check.pass { color: var(--green); border-color: rgba(61, 220, 151, .22); }+.quality-check.fail { color: var(--red-hot); border-color: rgba(255, 77, 94, .25); }++/* ============ Scene repair ============ */+.scene-repair-panel { display: grid; gap: 14px; border: 1px solid rgba(255, 194, 71, .28); background: rgba(255, 194, 71, .04); border-radius: var(--radius); padding: 14px; }.scene-heading { align-items: flex-start; margin: 0; }-.scene-heading h3 { font-size: 17px; margin: 2px 0 0; }+.scene-heading h3 { font-size: 16px; margin: 2px 0 0; }.scene-heading p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 6px 0 0; }-.narration-recovery { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid rgba(72,213,151,.25); background: rgba(72,213,151,.055); border-radius: 10px; padding: 12px; }-.narration-recovery.attention { border-color: rgba(255,137,148,.38); background: rgba(255,137,148,.06); }-.narration-recovery.intentional { border-color: rgba(114,165,255,.35); background: rgba(114,165,255,.06); }++.narration-recovery { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid rgba(61, 220, 151, .25); background: rgba(61, 220, 151, .05); border-radius: var(--radius-sm); padding: 12px 14px; }+.narration-recovery.attention { border-color: rgba(255, 107, 122, .38); background: rgba(255, 77, 94, .06); }+.narration-recovery.intentional { border-color: rgba(110, 168, 255, .35); background: var(--blue-soft); }.narration-recovery strong { display: block; margin-top: 2px; font-size: 13px; }.narration-recovery p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.45; margin: 5px 0 0; }-.narration-evidence { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }-.scene-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }-.scene-summary strong, .scene-summary span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; }-.scene-summary strong { color: var(--text); }+.narration-evidence { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; font-family: var(--font-mono); }+.scene-list { display: grid; gap: 12px; }-.scene-card { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: rgba(7,10,14,.48); min-width: 0; }-.scene-card.locked { border-color: rgba(114,165,255,.34); }+.scene-card { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; background: rgba(8, 11, 16, .55); min-width: 0; transition: border-color .15s ease; }+.scene-card:hover { border-color: var(--line-strong); }+.scene-card.locked { border-color: rgba(110, 168, 255, .34); }.scene-card-top { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(180px, 1fr); gap: 12px; align-items: start; }-.scene-preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #080a0d; }+.scene-preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-inset); }.scene-preview img, .scene-preview video { width: 100%; height: 100%; object-fit: cover; }-.scene-number { position: absolute; top: 7px; left: 7px; display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 999px; color: white; background: rgba(7,10,14,.82); font-size: 11px; font-weight: 800; }+.scene-number { position: absolute; top: 7px; left: 7px; display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 999px; color: white; background: rgba(6, 8, 12, .85); font-size: 11px; font-weight: 700; font-family: var(--font-mono); border: 1px solid rgba(255, 255, 255, .12); }.scene-identity { display: grid; gap: 10px; }-.scene-status-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; }-.scene-options { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 10px; }-.scene-options .toggle { font-size: 10px; }-.scene-narration-evidence { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--muted); font-size: 10px; }-.scene-actions { display: flex; flex-wrap: wrap; gap: 5px 13px; align-items: center; border-top: 1px solid var(--line); padding-top: 9px; }-.scene-actions .text-button, .upload-button { min-height: 42px; display: inline-flex; align-items: center; }-.scene-actions .text-button:disabled, .upload-button.disabled { opacity: .42; cursor: not-allowed; }+.scene-status-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; font-family: var(--font-mono); }+.scene-options { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 10.5px; }+.scene-options .toggle { font-size: 10.5px; }+.scene-narration-evidence { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--muted); font-size: 10px; font-family: var(--font-mono); }+.scene-actions { display: flex; flex-wrap: wrap; gap: 5px 13px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }+.scene-actions .text-button, .upload-button { min-height: 40px; display: inline-flex; align-items: center; }+.scene-actions .text-button:disabled, .upload-button.disabled { opacity: .4; cursor: not-allowed; }.upload-button { cursor: pointer; }.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }.scene-sources { max-height: 130px; overflow: auto; }-.status.narration_stale, .status.narration_unavailable, .status.narration_failed, .status.narration_generating, .status.needs_rebuild, .status.visual_stale, .status.missing_asset, .status.generating { color: var(--amber); background: rgba(245,185,68,.12); }-.status.narration_current { color: var(--green); background: rgba(72,213,151,.1); }-.status.narration_intentional_silence { color: var(--blue); background: rgba(114,165,255,.12); }-.shorts-studio { display: grid; gap: 14px; border: 1px solid rgba(204,121,255,.3); background: rgba(204,121,255,.045); border-radius: 12px; padding: 14px; }++.source-checklist { display: grid; gap: 7px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; }+.source-checklist legend { color: var(--text); font-size: 11px; font-weight: 700; padding: 0 5px; }+.source-checklist label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }+.source-checklist input { width: auto; }+.source-link { color: var(--blue); font-size: 11px; }+.empty-inline { color: var(--muted); font-size: 12px; margin: 0; padding: 10px 0; }+.danger-text { color: var(--red-hot); }++/* ============ Shorts studio ============ */+.shorts-studio { display: grid; gap: 14px; border: 1px solid rgba(196, 123, 255, .3); background: var(--purple-soft); border-radius: var(--radius); padding: 14px; }.shorts-heading { align-items: flex-start; margin: 0; }-.shorts-heading h3 { font-size: 17px; margin: 2px 0 0; }+.shorts-heading h3 { font-size: 16px; margin: 2px 0 0; }.shorts-heading p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 6px 0 0; max-width: 680px; }.shorts-evidence { display: flex; flex-wrap: wrap; gap: 7px; }-.shorts-evidence span { color: var(--amber); background: rgba(245,185,68,.09); border: 1px solid rgba(245,185,68,.2); border-radius: 999px; padding: 5px 9px; font-size: 10px; }-.shorts-evidence.ready span { color: var(--green); background: rgba(72,213,151,.07); border-color: rgba(72,213,151,.2); }+.shorts-evidence span { color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(255, 194, 71, .2); border-radius: 999px; padding: 5px 10px; font-size: 10px; font-family: var(--font-mono); }+.shorts-evidence.ready span { color: var(--green); background: var(--green-soft); border-color: rgba(61, 220, 151, .2); }.shorts-grid { display: grid; gap: 13px; }-.short-card { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 14px; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: rgba(7,10,14,.5); }-.short-preview { display: grid; place-items: center; width: 100%; max-height: 420px; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #080a0d; }+.short-card { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: rgba(8, 11, 16, .55); }+.short-preview { display: grid; place-items: center; width: 100%; max-height: 420px; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-inset); }.short-preview video { width: 100%; height: 100%; object-fit: contain; }.short-placeholder { display: grid; place-items: center; gap: 4px; color: var(--muted); text-align: center; }-.short-placeholder strong { color: var(--text); font-size: 30px; letter-spacing: -.04em; }-.short-placeholder span { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }+.short-placeholder strong { color: var(--text); font-size: 30px; letter-spacing: -.04em; font-family: var(--font-mono); }+.short-placeholder span { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); }.short-editor { display: grid; align-content: start; gap: 10px; min-width: 0; }.short-rationale { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 0; }.short-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-top: 1px solid var(--line); padding-top: 10px; }-.short-actions .text-button, .short-actions .button { min-height: 42px; }-.provenance-panel { display: grid; gap: 14px; border: 1px solid rgba(72,213,151,.25); background: rgba(72,213,151,.045); border-radius: 12px; padding: 14px; }+.short-actions .text-button, .short-actions .button { min-height: 40px; }++/* ============ Provenance ============ */+.provenance-panel { display: grid; gap: 14px; border: 1px solid rgba(61, 220, 151, .25); background: rgba(61, 220, 151, .04); border-radius: var(--radius); padding: 14px; }.provenance-panel .panel-heading { align-items: flex-start; margin: 0; }-.provenance-panel h3 { font-size: 17px; margin: 2px 0 0; }+.provenance-panel h3 { font-size: 16px; margin: 2px 0 0; }.provenance-panel .panel-heading p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 6px 0 0; }.provenance-toolbar, .provenance-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }-.provenance-toolbar { border-top: 1px solid var(--line); padding-top: 12px; }+.provenance-toolbar { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }.provenance-list { display: grid; gap: 10px; }-.provenance-item { display: grid; gap: 11px; border: 1px solid var(--line); background: rgba(7,10,14,.44); border-radius: 10px; padding: 12px; }-.provenance-item.high-risk { border-color: rgba(245,185,68,.38); }+.provenance-item { display: grid; gap: 11px; border: 1px solid var(--line); background: rgba(8, 11, 16, .44); border-radius: var(--radius-sm); padding: 12px; }+.provenance-item.high-risk { border-color: rgba(255, 194, 71, .4); }.provenance-item-heading strong { font-size: 12px; }-.danger-text { color: #ff8994; }-.source-checklist { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }-.source-checklist legend { color: var(--text); font-size: 11px; font-weight: 700; padding: 0 5px; }-.source-checklist label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }-.source-checklist input { width: auto; }-.source-link { color: var(--blue); font-size: 11px; }-.empty-inline { color: var(--muted); font-size: 12px; margin: 0; padding: 10px 0; }-.disclosure-toggle { align-items: flex-start; font-size: 11px; line-height: 1.4; }-.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 18px 0; }-.quality-check { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 9px; }-.quality-check.pass { color: var(--green); }-.quality-check.fail { color: #ff8994; }-.loading-bar { height: 2px; position: fixed; top: 0; left: 248px; right: 0; z-index: 10; overflow: hidden; }-.loading-bar.active::after { content: ""; display: block; height: 100%; width: 35%; background: var(--red); animation: load 1s infinite ease-in-out; }++/* ============ Callouts ============ */+.callout {+ background: var(--blue-soft); border: 1px solid rgba(110, 168, 255, .2); padding: 12px 14px;+ border-radius: var(--radius-sm); color: #b9d0fb; font-size: 12px; line-height: 1.55; margin: 0;+}++/* ============ Dialogs ============ */+.dialog {+ width: min(560px, calc(100vw - 30px)); border: 1px solid var(--line-strong);+ background: linear-gradient(165deg, var(--surface-2), var(--surface-1)); color: var(--text);+ border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-pop);+}+.dialog::backdrop { background: rgba(2, 4, 8, .72); backdrop-filter: blur(8px) saturate(.8); }+.dialog[open] { animation: dialog-in .22s cubic-bezier(.2, .9, .3, 1.2); }+@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }+.dialog form { display: grid; gap: 18px; }+.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }+.dialog-heading h2 { font-size: 24px; letter-spacing: -.02em; }+.content-dialog { width: min(1080px, calc(100vw - 30px)); max-height: calc(100vh - 30px); overflow: auto; }++/* ============ Toast & loading ============ */+.toast {+ position: fixed; right: 28px; bottom: 28px; max-width: 380px;+ background: rgba(18, 23, 32, .96); backdrop-filter: blur(12px);+ border: 1px solid var(--line-strong); border-left: 3px solid var(--green);+ border-radius: var(--radius); padding: 13px 16px; z-index: 30;+ box-shadow: var(--shadow-pop); font-size: 13px; color: var(--text);+ animation: toast-in .25s cubic-bezier(.2, .9, .3, 1.15);+}+@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }+.toast.error { border-left-color: var(--red); }++.loading-bar { height: 2px; position: fixed; top: 0; left: var(--sidebar-w); right: 0; z-index: 10; overflow: hidden; }+.loading-bar.active::after {+ content: ""; display: block; height: 100%; width: 35%;+ background: linear-gradient(90deg, transparent, var(--red), transparent);+ animation: load 1s infinite ease-in-out;+}@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(400%); } }-.toast { position: fixed; right: 28px; bottom: 28px; max-width: 380px; background: #202630; border: 1px solid #3b4554; border-radius: 11px; padding: 13px 16px; z-index: 30; box-shadow: 0 18px 50px rgba(0,0,0,.35); }-.toast.error { border-color: var(--red); }+.hidden { display: none !important; }+.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }++/* ============ Responsive ============ */@media (max-width: 900px) {.app-shell { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100vw; overflow: hidden; }- .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }- .brand { padding-bottom: 14px; }- nav { display: flex; overflow-x: auto; }- .nav-item { white-space: nowrap; }+ .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }+ .brand { padding-bottom: 12px; }+ .sidebar-label { display: none; }+ nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }+ .nav-item { white-space: nowrap; flex: 0 0 auto; }+ .nav-item.active::before { display: none; }.sidebar-footer { display: none; }main { width: 100%; max-width: 100vw; padding: 0 18px 60px; }.loading-bar { left: 0; }@@ -320,12 +668,13 @@ label small { color: var(--muted); font-weight: 400; }.pipeline-item { grid-template-columns: 1fr auto; }.pipeline-col { display: none; }}+@media (max-width: 560px) {- .topbar { align-items: flex-start; padding: 25px 0; }+ .topbar { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0 18px; }.top-actions .icon-button { display: none; }.stats-grid, .form-grid, .form-grid.two, .quality-grid { grid-template-columns: 1fr; }.full-row { grid-column: auto; }- .stat { min-height: 110px; }+ .stat { min-height: 108px; }.section-intro, .split-heading, .panel-heading, .form-actions { align-items: flex-start; flex-wrap: wrap; }.job-card { align-items: flex-start; flex-wrap: wrap; }.job-recovery { width: auto; max-width: 100%; flex: 1 1 100%; }@@ -338,4 +687,289 @@ label small { color: var(--muted); font-weight: 400; }.retention-controls { width: 100%; min-width: 0; align-items: stretch; flex-direction: column; }.retention-controls select { min-width: 0; }.scene-actions { gap: 4px 11px; }+ .toast { left: 16px; right: 16px; max-width: none; }+}++/* ============ Reduced motion ============ */+@media (prefers-reduced-motion: reduce) {+ *, *::before, *::after {+ animation-duration: .01ms !important;+ animation-iteration-count: 1 !important;+ transition-duration: .01ms !important;+ }+}++/* ============================================================+ PRODUCTION LAYER — ambience, choreography, palette, glow+ ============================================================ */++/* ---------- Preboot gate ---------- */+.preboot body { opacity: 0; }+html:not(.preboot) body { animation: boot-in .55s cubic-bezier(.2, .7, .3, 1); }+@keyframes boot-in { from { opacity: 0; transform: translateY(8px) scale(.995); } }++/* ---------- Aurora ambience ---------- */+.aurora {+ position: fixed; inset: -20%; z-index: 0; pointer-events: none;+ background:+ radial-gradient(38% 42% at 22% 24%, rgba(217, 44, 70, .13), transparent 68%),+ radial-gradient(34% 38% at 78% 18%, rgba(110, 168, 255, .09), transparent 66%),+ radial-gradient(40% 44% at 62% 82%, rgba(196, 123, 255, .07), transparent 70%),+ radial-gradient(30% 34% at 12% 74%, rgba(61, 220, 151, .05), transparent 64%);+ filter: blur(46px);+}+body:not(.cmdk-open) .aurora { animation: aurora-drift 26s ease-in-out infinite alternate; }+@keyframes aurora-drift {+ 0% { transform: translate3d(0, 0, 0) scale(1); }+ 50% { transform: translate3d(-2.5%, 2%, 0) scale(1.06) rotate(2deg); }+ 100% { transform: translate3d(2%, -2%, 0) scale(1.02) rotate(-2deg); }+}++/* ---------- Cursor spotlight ---------- */+.spotlight {+ position: fixed; inset: 0; z-index: 2; pointer-events: none;+ opacity: 0; transition: opacity .5s ease;+}+body.has-pointer .spotlight { opacity: 1; }+.spotlight::before {+ content: ""; position: absolute; inset: 0;+ background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(110, 168, 255, .055), transparent 65%);+}++/* ---------- Card cursor glow + gradient border sheen ---------- */+.stat, .pipeline-item, .review-card, .job-card, .plan-card, .learning-card, .readiness-check, .retention-scene {+ position: relative;+}+.stat::before, .pipeline-item::before, .review-card::before, .job-card::before,+.plan-card::before, .learning-card::before, .readiness-check::before, .retention-scene::before {+ content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;+ opacity: 0; transition: opacity .25s ease;+ background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 77, 94, .08), transparent 60%);+}+.stat:hover::before, .pipeline-item:hover::before, .review-card:hover::before, .job-card:hover::before,+.plan-card:hover::before, .learning-card:hover::before, .readiness-check:hover::before, .retention-scene:hover::before { opacity: 1; }+.readiness-check::after {+ content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;+ background: radial-gradient(170px at var(--gx, 50%) var(--gy, 50%), rgba(255, 77, 94, .55), transparent 65%);+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);+ -webkit-mask-composite: xor; mask-composite: exclude;+ opacity: 0; transition: opacity .25s ease;+}+.readiness-check:hover::after { opacity: 1; }++/* ---------- View enter choreography ---------- */+.view[data-view-enter] { animation: view-slide .34s cubic-bezier(.2, .75, .25, 1) both; }+@keyframes view-slide {+ from { opacity: 0; transform: translateX(calc(var(--enter-from, 1) * 26px)); }+ to { opacity: 1; transform: none; }+}+.view[data-view-enter] > * { animation: child-rise .4s cubic-bezier(.2, .75, .25, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 40ms); }+@keyframes child-rise { from { opacity: 0; transform: translateY(14px); } }++/* ---------- Scroll reveal ---------- */+.panel.reveal { opacity: 0; transform: translateY(16px); }+.panel.reveal.revealed { opacity: 1; transform: none; transition: opacity .55s cubic-bezier(.2, .7, .3, 1), transform .55s cubic-bezier(.2, .7, .3, 1); }+@media (prefers-reduced-motion: reduce) { .panel.reveal { opacity: 1; transform: none; } }++/* ---------- Score pop ---------- */+.score-pop { animation: score-pop .6s cubic-bezier(.3, .8, .35, 1.15); display: inline-block; }+@keyframes score-pop { 0% { transform: translateY(8px); opacity: 0; } 100% { transform: none; opacity: 1; } }++/* ---------- Ripple ---------- */+.ripple {+ position: absolute; border-radius: 50%; pointer-events: none;+ background: radial-gradient(circle, rgba(255, 255, 255, .28) 0%, transparent 62%);+ transform: scale(0); animation: ripple .55s ease-out forwards; mix-blend-mode: screen;+}+@keyframes ripple { to { transform: scale(1); opacity: 0; } }+.nav-item, .button.primary, .button.secondary { position: relative; overflow: hidden; }++/* ---------- Sticky topbar elevation ---------- */+.topbar {+ position: sticky; top: 0; z-index: 5; margin-top: -1px; padding: 10px 0 14px;+ background: linear-gradient(180deg, rgba(6, 8, 12, .93) 62%, rgba(6, 8, 12, .5) 86%, transparent);+ backdrop-filter: blur(10px);+}+body.scrolled .topbar { border-bottom-color: var(--line-strong); }++/* ---------- Command palette ---------- */+.cmdk-backdrop {+ position: fixed; inset: 0; z-index: 80; background: rgba(2, 4, 8, .6);+ backdrop-filter: blur(9px) saturate(.85); display: grid; place-items: start center; padding-top: 14vh;+ animation: cmdk-fade .18s ease;+}+.cmdk-backdrop.hidden { display: none !important; }+@keyframes cmdk-fade { from { opacity: 0; } }+.cmdk {+ width: min(600px, calc(100vw - 32px)); max-height: min(430px, 68vh); overflow: hidden;+ display: grid; grid-template-rows: auto 1fr auto;+ background: linear-gradient(168deg, rgba(21, 27, 38, .97), rgba(12, 16, 23, .98));+ border: 1px solid rgba(151, 167, 195, .2); border-radius: 18px;+ box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03), 0 0 90px -30px rgba(255, 77, 94, .3);+ animation: cmdk-pop .22s cubic-bezier(.2, .9, .3, 1.18);+}+@keyframes cmdk-pop { from { opacity: 0; transform: translateY(-12px) scale(.965); } }+.cmdk-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }+.cmdk-head svg { width: 17px; height: 17px; flex: 0 0 17px; }+.cmdk-input {+ flex: 1; background: none !important; border: 0 !important; padding: 0 !important;+ font-size: 15px; color: var(--text); outline: none !important; height: auto; box-shadow: none !important;+}+.cmdk-head kbd { margin-left: auto; }+kbd {+ display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;+ border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-inset);+ color: var(--muted); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em;+}+.cmdk-list { overflow-y: auto; padding: 8px; scrollbar-width: thin; }+.cmdk-group { margin: 10px 8px 5px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }+.cmdk-row {+ display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;+ cursor: pointer; border: 1px solid transparent; transition: background-color .12s ease, border-color .12s ease;+}+.cmdk-row:hover { background: rgba(151, 167, 195, .06); }+.cmdk-row.selected { background: linear-gradient(90deg, var(--red-soft), rgba(255, 77, 94, .04)); border-color: rgba(255, 77, 94, .28); }+.cmdk-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: var(--surface-inset); border: 1px solid var(--line); color: var(--text-2); }+.cmdk-icon svg { width: 15px; height: 15px; }+.cmdk-label { font-size: 13.5px; font-weight: 600; white-space: nowrap; }+.cmdk-hint { margin-left: auto; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.cmdk-empty { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }+.cmdk-foot { display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; }+.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }+.cmdk-brand { margin-left: auto; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-size: 9px; }+.kbd-trigger {+ display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px;+ background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); cursor: pointer;+ font-size: 13px; transition: border-color .15s ease, color .15s ease, background-color .15s ease;+}+.kbd-trigger svg { width: 15px; height: 15px; }+.kbd-trigger:hover { color: var(--text); border-color: rgba(151, 167, 195, .4); background: var(--surface-3); }+.kbd-trigger kbd { pointer-events: none; }++/* ---------- Toast v2 ---------- */+.toast { display: flex; gap: 11px; align-items: flex-start; }+.toast.armed { animation: toast-v2 .32s cubic-bezier(.2, .9, .3, 1.2); }+@keyframes toast-v2 { from { opacity: 0; transform: translateY(14px) scale(.96); } }+.toast .toast-msg { flex: 1; }+.toast-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; }+.toast-icon svg { width: 13px; height: 13px; }+.toast-icon.success { color: var(--green); }+.toast-icon.error { color: var(--red-hot); }+.toast-icon.warning { color: var(--amber); }++/* ---------- Console clock cluster ---------- */+.console-meta { display: grid; gap: 3px; padding: 0 8px 12px; font-family: var(--font-mono); }+.console-clock { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13px; letter-spacing: .04em; }+.console-clock svg { width: 14px; height: 14px; color: var(--muted); }+.console-version { color: #5b657a; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }++.cmdk-row:focus-visible { box-shadow: var(--ring); }++@media (max-width: 900px) {+ .kbd-trigger span, .kbd-trigger kbd { display: none; }+ .kbd-trigger { padding: 0 10px; }+}++/* ============================================================+ V3 — STRUCTURAL LAYER+ Icon rail · floating command bar · bento stats · rich empties+ ============================================================ */++/* ---------- Floating glass command bar ---------- */+.topbar {+ position: sticky; top: 14px; z-index: 6;+ margin: 14px 0 26px; padding: 14px 20px;+ background: linear-gradient(168deg, rgba(19, 24, 34, .88), rgba(11, 14, 20, .82));+ border: 1px solid var(--line-strong); border-radius: 18px;+ backdrop-filter: blur(16px) saturate(1.15);+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 44px -22px rgba(0, 0, 0, .75);+}+body.scrolled .topbar { border-color: rgba(151, 167, 195, .32); }+.topbar h1 { font-size: clamp(21px, 2vw, 28px); }++/* ---------- Rich empty states ---------- */+.empty {+ position: relative;+ border: 1px solid transparent;+ background:+ radial-gradient(340px 130px at 50% 0%, rgba(255, 77, 94, .06), transparent 70%),+ radial-gradient(260px 120px at 50% 115%, rgba(110, 168, 255, .05), transparent 70%),+ var(--surface-inset);+ padding: 38px 24px 34px;+ font-size: 13px;+ color: var(--muted);+}+.empty::before {+ content: "◈";+ display: block;+ margin: 0 auto 12px;+ width: 46px; height: 46px; line-height: 46px;+ border-radius: 50%;+ border: 1px solid var(--line);+ background: linear-gradient(160deg, var(--surface-2), var(--surface-inset));+ color: #5f6b81;+ font-size: 17px;+ text-align: center;+ box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);+}++/* ---------- Featured stat tile (bento) ---------- */+.stats-grid .stat:first-child {+ background:+ radial-gradient(420px 200px at 12% -20%, rgba(255, 77, 94, .17), transparent 62%),+ linear-gradient(155deg, var(--surface-3), var(--surface-1));+ border-color: rgba(255, 77, 94, .26);+}+.stats-grid .stat:first-child::after { opacity: .95; background: linear-gradient(90deg, var(--red-hot), transparent 80%); }+.stats-grid .stat:first-child span { color: var(--red-hot); }+.stats-grid .stat:first-child strong { background: linear-gradient(160deg, #fff, #ffb9c0); -webkit-background-clip: text; background-clip: text; }+.stats-grid .stat:first-child strong { font-size: 40px; }++/* ---------- Panel radius bump ---------- */+.panel, .dialog { border-radius: 18px; }++/* ---------- Icon rail (≥1101px) ---------- */+@media (min-width: 1101px) {+ :root { --sidebar-w: 84px; --rail-icon: 42px; }+ .app-shell { grid-template-columns: var(--sidebar-w) 1fr; }+ .sidebar { padding: 20px 0 18px; align-items: center; }+ .brand { padding: 0 0 22px; justify-content: center; }+ .brand > span:last-child { display: none; }+ .brand-mark { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; }+ .sidebar-label { visibility: hidden; height: 12px; padding: 0; margin: 0; }+ nav { justify-items: center; gap: 6px; width: 100%; padding: 0 10px; }+ .nav-item {+ width: 100%; flex-direction: column; gap: 5px; padding: 9px 4px 7px;+ border-radius: 13px; justify-content: center;+ font-size: 0; /* collapse the text node; mini-label rendered below */+ }+ .nav-item svg { width: var(--rail-icon); height: var(--rail-icon); opacity: .85; }+ .nav-item .mini-label {+ display: block; font-size: 8.5px; font-weight: 600; letter-spacing: .02em;+ color: inherit; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;+ }+ .nav-item.active::before { top: 10px; bottom: 10px; }+ .badge { position: absolute; top: 4px; right: calc(50% - 30px); margin: 0; }+ .sidebar-footer { padding: 14px 0 0; justify-items: center; gap: 10px; width: 100%; border-top: 1px solid var(--line); margin-top: auto; }+ .console-meta { padding: 0; justify-items: center; }+ .console-clock { font-size: 11px; gap: 5px; }+ .console-clock svg { display: none; }+ .console-version { display: none; }+ .system-pill { padding: 0; }+ .system-pill span { display: none; }+ #automation-toggle { width: 44px; height: 44px; padding: 0; font-size: 0; border-radius: 13px; }+ #automation-toggle::before { content: "\23F8"; font-size: 17px; color: var(--text-2); }+ body[data-automation-paused="true"] #automation-toggle::before { content: "\25B6"; color: var(--green); }+ main { padding: 0 2.6vw 72px; }+ .loading-bar { left: var(--sidebar-w); }+}++/* ---------- View slide tuned to new geometry ---------- */+@keyframes view-slide {+ from { opacity: 0; transform: translateX(calc(var(--enter-from, 1) * 30px)); }+ to { opacity: 1; transform: none; }+}++@media (max-width: 900px) {+ .topbar { position: static; margin-top: 4px; }}diff --git a/eslint.config.js b/eslint.config.jsindex 45b8e86..bf8c96f 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -42,7 +42,13 @@ module.exports = [setTimeout: 'readonly',URL: 'readonly',window: 'readonly',- document: 'readonly'+ document: 'readonly',+ matchMedia: 'readonly',+ performance: 'readonly',+ requestAnimationFrame: 'readonly',+ cancelAnimationFrame: 'readonly',+ IntersectionObserver: 'readonly',+ PointerEvent: 'readonly'}},rules: {