:root{--bg: #0b0d12;--surface: #121620;--surface-2: #181d2a;--border: rgba(255, 255, 255, .09);--text: #f3f4f6;--muted: #9ca3af;--accent: #f59e0b;--accent-dim: rgba(245, 158, 11, .14);--green: #10b981;--red: #ef4444}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#2b3347 #0b0d12}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-track{background:#0b0d12}*::-webkit-scrollbar-thumb{background:#2b3347;border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:#3d4863}html,body,#root{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}.app-shell{display:flex;flex-direction:column;height:100vh;overflow:hidden}.topbar{height:58px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.brand-mark{display:flex;align-items:center;gap:10px;font-weight:800;font-size:15px;letter-spacing:.03em}.brand-icon{width:30px;height:30px;border-radius:8px;background:var(--accent);color:#0b0d12;display:grid;place-items:center;font-weight:900}.nav-tabs{display:flex;gap:6px}.nav-tab{display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer}.nav-tab:hover{color:var(--text);background:#ffffff0a}.nav-tab.active{color:#0b0d12;background:var(--accent)}.status-pill{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);padding:5px 10px;border-radius:999px;border:1px solid var(--border);background:var(--bg)}.status-dot{width:8px;height:8px;border-radius:999px;background:var(--green)}.studio-grid{display:grid;grid-template-columns:300px 1fr 380px;flex:1;min-height:0}.panel{display:flex;flex-direction:column;min-height:0;overflow-y:auto;padding:16px;border-right:1px solid var(--border)}.panel:last-child{border-right:none}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:14px}.card-title{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 12px;display:flex;align-items:center;justify-content:space-between}.field{margin-bottom:10px}.field label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:5px}input[type=text],input[type=number],textarea,select{width:100%;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit}textarea{resize:vertical;min-height:64px}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--accent)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 13px;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:13px;font-weight:600;cursor:pointer}.btn:hover:not(:disabled){border-color:#ffffff40}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--accent);color:#0b0d12;border-color:var(--accent)}.btn-primary:hover:not(:disabled){filter:brightness(1.06)}.btn-sm{padding:5px 10px;font-size:12px}.btn-danger{color:#fca5a5;border-color:#ef444459}.project-item{padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);margin-bottom:8px;cursor:pointer}.project-item.selected{border-color:var(--accent);background:var(--accent-dim)}.project-item-title{font-size:13px;font-weight:700;margin-bottom:4px}.project-item-meta{font-size:11px;color:var(--muted);display:flex;justify-content:space-between}.scene-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:14px;display:grid;grid-template-columns:118px 1fr;gap:14px}.scene-thumb{width:118px;height:210px;border-radius:8px;overflow:hidden;background:#07090d;border:1px solid var(--border);position:relative}.scene-thumb img,.scene-thumb video{width:100%;height:100%;object-fit:cover}.scene-badge{position:absolute;top:6px;left:6px;background:#0a0c12cc;color:var(--text);font-size:10px;font-weight:700;padding:3px 6px;border-radius:5px}.player-stage{display:flex;flex-direction:column;align-items:center;gap:14px}.phone-frame{width:315px;height:560px;border-radius:18px;overflow:hidden;border:2px solid rgba(255,255,255,.14);box-shadow:0 20px 50px #0000008c;background:#000}.cost-box{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px}.cost-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:5px}.cost-total{display:flex;justify-content:space-between;font-size:14px;font-weight:800;color:var(--text);padding-top:8px;border-top:1px solid var(--border)}.savings-tag{display:inline-block;margin-top:6px;font-size:11px;font-weight:700;color:#34d399;background:#10b98124;padding:3px 8px;border-radius:999px}.progress-bar{width:100%;height:7px;background:var(--bg);border-radius:999px;overflow:hidden;margin-top:8px}.progress-fill{height:100%;background:var(--accent);transition:width .25s ease}.page-wrap{max-width:860px;margin:0 auto;padding:24px 20px;width:100%;overflow-y:auto;flex:1}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.error-banner{background:#ef444424;border:1px solid rgba(239,68,68,.4);color:#fecaca;padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:12px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1220px){.app-shell{height:auto;min-height:100vh;overflow:auto}.studio-grid{grid-template-columns:minmax(260px,1fr) 360px;overflow:visible}.studio-grid>aside.panel:first-child{order:1;overflow:visible;border-bottom:1px solid var(--border)}.studio-grid>aside.panel:last-child{order:2;overflow:visible;border-right:none;border-bottom:1px solid var(--border)}.studio-grid>main.panel{order:3;grid-column:1 / -1;overflow:visible;border-right:none}}@media(max-width:760px){.studio-grid{grid-template-columns:1fr}.studio-grid>aside.panel:first-child{border-right:none}}.auth-gate{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,rgba(245,158,11,.08),transparent 45%),var(--bg)}.auth-card{width:100%;max-width:410px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:28px;box-shadow:0 24px 64px #00000080}.auth-logo{width:56px;height:56px;object-fit:contain;border-radius:12px;margin-bottom:12px}.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;font-size:10px;font-weight:800;background:#f59e0b33;color:var(--accent)}.nav-tab.active .nav-badge{background:#0b0d1240;color:#0b0d12}.video-title-box{width:100%;background:linear-gradient(135deg,#f59e0b17,#121620f2);border:1px solid rgba(245,158,11,.35);border-radius:12px;padding:12px 14px}.video-title-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.video-title-label{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}.video-title-preview{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:13px;font-weight:700;color:#fff;line-height:1.4;word-break:break-word;margin-bottom:8px}.btn-danger-solid{background:#ef4444;border-color:#ef4444;color:#fff}.btn-danger-solid:hover:not(:disabled){filter:brightness(1.08)}.btn-purple-solid{background:#7c3aed;border-color:#7c3aed;color:#fff}.btn-purple-solid:hover:not(:disabled){filter:brightness(1.1)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#05070bc7;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px;z-index:1000}.modal-card{width:100%;max-width:540px;max-height:90vh;overflow-y:auto;background:#171b24;border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:18px 20px;box-shadow:0 24px 64px #000000a6}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border)}.schedule-picker-box{background:var(--surface-2);border:1px solid rgba(167,139,250,.45);border-radius:10px;padding:12px}input[type=datetime-local],input[type=email],input[type=password]{width:100%;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit;color-scheme:dark}.scheduler-wrap{flex:1;min-height:0;overflow-y:auto;max-width:1120px;width:100%;margin:0 auto;padding:20px 20px 36px}.scheduler-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.filter-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.filter-chip{padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:12px;font-weight:600;cursor:pointer}.filter-chip:hover{color:var(--text);border-color:#ffffff38}.filter-chip.active{background:var(--accent);border-color:var(--accent);color:#0b0d12}.filter-chip.active.tone-purple{background:#7c3aed;border-color:#7c3aed;color:#fff}.filter-chip.active.tone-green{background:#16a34a;border-color:#16a34a;color:#fff}.filter-chip.active.tone-red{background:#ef4444;border-color:#ef4444;color:#fff}.yt-summary-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border-radius:12px;background:#7c3aed24;border:1px solid rgba(167,139,250,.45);margin-bottom:14px}.scheduler-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:56px 20px;color:var(--muted);font-size:14px;background:var(--surface);border:1px solid var(--border);border-radius:12px}.scheduler-list{display:flex;flex-direction:column;gap:12px}.scheduler-card{display:flex;gap:14px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:12px}.scheduler-card.status-border-ready_for_review{border-color:#f59e0b59}.scheduler-card.status-border-scheduled{border-color:#a78bfa6b}.scheduler-card.status-border-published{border-color:#34d39961}.scheduler-card.status-border-failed{border-color:#f8717173}.scheduler-thumb{width:72px;height:128px;flex-shrink:0;border-radius:8px;overflow:hidden;background:#0a0c10;border:1px solid var(--border);display:grid;place-items:center}.scheduler-thumb img{width:100%;height:100%;object-fit:cover}.scheduler-card-body{flex:1;min-width:0}.scheduler-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}.scheduler-card-title{font-size:15px;font-weight:700;color:#fff}.scheduler-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted);margin-top:5px}.scheduler-script{margin:8px 0 0;font-size:12px;color:#d1d5db;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.status-badge{padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.04em;background:#ffffff14;color:var(--muted);flex-shrink:0}.status-badge.status-ready_for_review{background:#f59e0b29;color:#f59e0b}.status-badge.status-scheduled{background:#a78bfa2e;color:#c4b5fd}.status-badge.status-published{background:#34d39929;color:#34d399}.status-badge.status-queued,.status-badge.status-generating{background:#60a5fa2e;color:#93c5fd}.status-badge.status-failed{background:#f871712e;color:#f87171}.yt-confirm-box{margin-top:10px;padding:9px 12px;border-radius:8px}.yt-confirm-scheduled{background:#7c3aed29;border:1px solid rgba(167,139,250,.5)}.yt-confirm-published{background:#10b9811f;border:1px solid rgba(52,211,153,.42)}.yt-confirm-uploading{background:#f59e0b24;border:1px solid rgba(245,158,11,.45)}.yt-confirm-armed{background:#3b82f624;border:1px solid rgba(96,165,250,.45)}.yt-confirm-error{background:#ef444424;border:1px solid rgba(248,113,113,.45)}.yt-confirm-heading{font-size:11px;font-weight:800;letter-spacing:.05em;color:#34d399}.yt-id-pill{font-size:10px;padding:2px 6px;border-radius:4px;background:#ffffff14;color:#e5e7eb}
