:root {
  --bg:          #0d0d14;
  --surface:     #1a1a2e;
  --surface2:    #16213e;
  --surface3:    #0f1629;
  --accent:      #00b4d8;
  --accent-glow: rgba(0, 180, 216, 0.14);
  --success:     #06d6a0;
  --warning:     #ffd166;
  --error:       #ef476f;
  --exp:         #a855f7;
  --exp-glow:    rgba(168, 85, 247, 0.12);
  --text:        #e2e8f0;
  --muted:       #64748b;
  --muted2:      #475569;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);
  --sidebar-w:   320px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }

/* ── Scrollbars ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ──────────────────────────────────────────────────────────────
   LOGIN SCREEN
   ────────────────────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,180,216,0.06) 0%, transparent 70%);
}

.login-box { width: 100%; max-width: 400px; }

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}
.login-brand .emoji { font-size: 48px; display: block; margin-bottom: 12px; line-height: 1; }
.login-brand h1 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 20%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.login-brand p { color: var(--muted); font-size: 13px; margin-top: 6px; }

.login-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 32px;
}

.login-step { text-align: center; }
.login-step h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.login-step p  { color: var(--muted); font-size: 14px; line-height: 1.6; }

.otp-wrapper { margin-top: 20px; text-align: left; }
.otp-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted); margin-bottom: 8px;
}
.otp-input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; font-size: 28px; font-weight: 700;
  letter-spacing: 10px; color: var(--text); text-align: center; outline: none;
  transition: border-color 0.15s;
}
.otp-input:focus { border-color: var(--accent); }

.status-msg { margin-top: 10px; font-size: 13px; text-align: center; min-height: 18px; }
.status-msg.error   { color: var(--error); }
.status-msg.success { color: var(--success); }
.status-msg.info    { color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 11px 20px; border-radius: 10px; font-size: 14px;
  font-weight: 600; cursor: pointer; border: none;
  transition: filter 0.15s, opacity 0.15s, background 0.15s; text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary  { background: var(--accent); color: #000; width: 100%; margin-top: 20px; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border2); font-size: 13px; padding: 8px 14px;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.22); }
.btn-danger {
  background: transparent; color: var(--error);
  border: 1px solid rgba(239, 71, 111, 0.3);
  font-size: 12px; padding: 7px 12px; border-radius: 8px;
}
.btn-danger:hover { background: rgba(239,71,111,0.08); border-color: var(--error); }
.btn-success { background: var(--success); color: #000; font-size: 13px; padding: 8px 14px; border-radius: 8px; }
.btn-success:hover { filter: brightness(1.1); }


.back-link { text-align: center; margin-top: 14px; }

/* ──────────────────────────────────────────────────────────────
   APP LAYOUT (two-panel)
   ────────────────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--surface3);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .brand-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.sidebar-brand h1 {
  font-size: 16px; font-weight: 800; letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 20%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1;
}
.sidebar-brand p { font-size: 11px; color: var(--muted); margin-top: 2px; }

.sidebar-section {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-section:last-child { border-bottom: none; }

.section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted2); margin-bottom: 10px;
  display: flex; align-items: center; gap: 5px;
}

/* ── Storage card ── */
.storage-card { padding: 16px 24px 18px; border-bottom: 1px solid var(--border); }
.storage-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.storage-header .storage-icon { font-size: 13px; color: var(--muted); }
.storage-text { font-size: 12px; font-weight: 600; color: var(--text); }
.storage-bar {
  height: 4px; background: rgba(255,255,255,0.07);
  border-radius: 4px; overflow: hidden;
}
.storage-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.4s ease, background 0.4s ease;
}
.storage-meta { font-size: 10px; color: var(--muted); margin-top: 5px; }

/* ── Drop zone ── */
.drop-zone {
  position: relative;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 12px; padding: 32px 20px; text-align: center;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  background: rgba(255,255,255,0.02);
}
.drop-zone.dragover, .drop-zone:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.drop-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.drop-icon { font-size: 32px; margin-bottom: 10px; line-height: 1; display: block; }
.drop-zone h3 { font-size: 14px; font-weight: 700; }
.drop-zone p  { color: var(--muted); font-size: 12px; margin-top: 4px; }
.drop-formats {
  margin-top: 8px; font-size: 10px; color: var(--muted);
  background: rgba(255,255,255,0.04); display: inline-block;
  padding: 3px 9px; border-radius: 20px;
}

/* ── Upload progress ── */
.upload-progress { padding: 14px 24px; border-bottom: 1px solid var(--border); }
.progress-bar    { height: 3px; background: var(--surface2); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.progress-fill   { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.1s linear; width: 0%; }
.progress-label  { font-size: 11px; color: var(--muted); }

/* ── Config rows (timing, YT toggle) ── */
.config-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
}
.config-icon { font-size: 16px; flex-shrink: 0; }
.config-label { flex: 1; }
.config-label strong { font-size: 13px; font-weight: 600; display: block; }
.config-label span   { font-size: 11px; color: var(--muted); }

/* timing inputs */
.timing-controls { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.timing-field    { display: flex; align-items: center; gap: 4px; }
.timing-field label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--muted);
}
.timing-field input {
  width: 44px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 7px; padding: 4px 6px; font-size: 13px; font-weight: 700;
  color: var(--text); text-align: center; outline: none; transition: border-color 0.15s;
}
.timing-field input:focus { border-color: var(--accent); }
.timing-field span { font-size: 11px; color: var(--muted); }

/* YT toggle */
.toggle-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
}
.toggle-label input[type="checkbox"] { display: none; }
.toggle-track {
  width: 34px; height: 18px; background: rgba(255,255,255,0.1);
  border-radius: 999px; flex-shrink: 0; position: relative; transition: background 0.2s;
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  background: #fff; border-radius: 50%; transition: transform 0.2s;
}
.toggle-label input:checked ~ .toggle-track { background: var(--accent); }
.toggle-label input:checked ~ .toggle-track .toggle-thumb { transform: translateX(16px); }
.toggle-label.yt input:checked ~ .toggle-track { background: #ff0000; }
.toggle-text strong { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.toggle-text span   { font-size: 11px; color: var(--muted); }

/* ── Cue library ── */
.cue-library { padding: 16px 24px 18px; border-bottom: 1px solid var(--border); }
.cue-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cue-header-row .cue-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted2);
  display: flex; align-items: center; gap: 5px;
}
.cue-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cue-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,180,216,0.1); border: 1px solid rgba(0,180,216,0.22);
  color: var(--accent); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
}
.cue-chip-remove {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0; opacity: 0.55; transition: opacity 0.15s;
}
.cue-chip-remove:hover { opacity: 1; }
.cue-add-row { display: flex; gap: 6px; }
.cue-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; font-size: 12px; color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.cue-input:focus { border-color: var(--accent); }
.cue-input::placeholder { color: var(--muted2); }
.btn-cue-add {
  background: var(--accent); color: #000; font-size: 12px; font-weight: 700;
  padding: 7px 12px; border-radius: 8px; border: none; cursor: pointer;
  transition: filter 0.15s; white-space: nowrap;
}
.btn-cue-add:hover { filter: brightness(1.12); }

/* ── Sidebar footer ── */
.sidebar-footer {
  margin-top: auto;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-failed-actions {
  display: flex;
  gap: 6px;
}
.footer-main-actions {
  display: flex;
  gap: 8px;
}
.footer-failed-actions .btn { flex: 1; justify-content: center; font-size: 11px; }
.footer-main-actions .btn   { flex: 1; justify-content: center; }
.btn-sm { padding: 6px 10px !important; font-size: 11px !important; }

/* ──────────────────────────────────────────────────────────────
   MAIN CONTENT
   ────────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 40px 36px 60px;
  overflow-y: auto;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.main-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.main-header h2 {
  font-size: 18px; font-weight: 800; letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 8px;
}
.main-header-controls { display: flex; align-items: center; gap: 16px; }

.toggle-control {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
}
.toggle-control input[type="checkbox"] { display: none; }
.toggle-control input:checked ~ .toggle-track { background: var(--accent); }
.toggle-control input:checked ~ .toggle-track .toggle-thumb { transform: translateX(16px); }
.toggle-control .toggle-text { font-size: 12px; color: var(--muted); }

.jobs-count {
  font-size: 12px; color: var(--muted); padding: 3px 10px;
  background: rgba(255,255,255,0.05); border-radius: 20px;
}

/* ── Jobs list ── */
.jobs-list { display: flex; flex-direction: column; gap: 8px; }

.empty-state {
  text-align: center; padding: 60px 24px; color: var(--muted);
}
.empty-state .empty-icon { font-size: 40px; margin-bottom: 14px; display: block; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; line-height: 1.6; }

/* ──────────────────────────────────────────────────────────────
   JOB CARD
   ────────────────────────────────────────────────────────────── */
.job-card {
  background: rgba(26,26,46,0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
  opacity: 0.85;
}
.job-card:hover { opacity: 1; }
.job-card.done      { border-color: rgba(6, 214, 160, 0.18); }
.job-card.failed    { border-color: rgba(239, 71, 111, 0.18); }
.job-card.cancelled { opacity: 0.55; }
.job-card.uploading { border-color: rgba(0, 180, 216, 0.18); }

/* card header row */
.job-top {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
}
.job-icon  { font-size: 17px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.job-info  { flex: 1; min-width: 0; }
.job-name  {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px;
}
.job-meta  { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.job-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* status dot */
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot.queued     { background: var(--muted); }
.dot.processing { background: var(--warning); animation: blink 1.4s ease-in-out infinite; }
.dot.done       { background: var(--success); }
.dot.failed     { background: var(--error); }
.dot.cancelled  { background: var(--muted); }
.dot.uploading  { background: var(--accent); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* step pills */
.step-pills { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.pill {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
  background: rgba(255,255,255,0.04); color: var(--muted2);
}
.pill.active    { background: rgba(255,209,102,0.15); color: var(--warning); }
.pill.completed { background: rgba(6,214,160,0.12);  color: var(--success); }

.error-text { font-size: 11px; color: var(--error); margin-top: 5px; word-break: break-word; }
.yt-badge {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,0,0,0.15); color: #ff6b6b; flex-shrink: 0;
}

/* cancel / menu buttons */
.btn-cancel {
  background: transparent; border: 1px solid rgba(239, 71, 111, 0.3);
  color: var(--error); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-cancel:hover { background: rgba(239,71,111,0.1); border-color: var(--error); }

/* three-dots menu */
.job-menu-wrap { position: relative; }
.btn-menu {
  background: transparent; border: none; color: var(--muted); font-size: 18px;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; line-height: 1;
}
.btn-menu:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.job-menu {
  position: absolute; right: 0; top: 34px; background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 4px;
  min-width: 200px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.job-menu button {
  display: flex; align-items: center; gap: 7px; width: 100%; background: none;
  border: none; color: var(--text); font-size: 13px; padding: 8px 11px;
  border-radius: 7px; cursor: pointer; text-align: left; transition: background 0.15s;
}
.job-menu button:hover { background: rgba(255,255,255,0.06); }
.job-menu button.danger { color: var(--error); }
.job-menu .menu-divider { height: 1px; background: var(--border); margin: 3px 0; }

/* ── Job timeline ── */
.job-timeline {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 20px 14px; border-top: 1px solid var(--border);
  font-size: 11px;
}
.job-timeline-row { display: flex; align-items: center; gap: 6px; }
.tl-icon  { width: 14px; text-align: center; flex-shrink: 0; }
.tl-label { color: var(--muted); }
.tl-time  { color: var(--text); margin-left: auto; font-variant-numeric: tabular-nums; }

/* ── Transcript ── */
.transcript-box {
  margin: 0 18px 14px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
}
.transcript-text {
  font-size: 12px; line-height: 1.7; color: var(--text);
  white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow-y: auto;
}

/* ── Section toggles ── */
.section-header {
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
}
.section-toggle {
  flex: 1; background: none; border: none;
  color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 11px 20px; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: color 0.15s;
}
.section-toggle:hover { color: var(--text); }
.section-toggle .arrow { transition: transform 0.2s; display: inline-block; }
.section-toggle.open .arrow { transform: rotate(90deg); }
.section-toggle .exp-badge {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: var(--exp-glow); color: var(--exp); margin-left: 4px;
}
.btn-view-reel {
  background: none; border: none; border-left: 1px solid var(--border);
  color: var(--accent); font-size: 11px; font-weight: 600;
  padding: 11px 16px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s;
}
.btn-view-reel:hover { background: var(--accent-glow); }
.btn-view-reel.exp { color: var(--exp); }
.btn-view-reel.exp:hover { background: var(--exp-glow); }

/* ── Keyword clip list ── */
.clip-list { padding: 6px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.clip-row {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  cursor: pointer; border-radius: 8px; padding: 5px 4px; transition: background 0.12s;
}
.clip-row:hover { background: rgba(255,255,255,0.04); }
.clip-label { flex: 1; color: var(--muted); }
.clip-label strong { color: var(--text); }
.btn-clip {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 7px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; transition: background 0.15s;
  flex-shrink: 0;
}
.btn-clip:hover { background: rgba(255,255,255,0.1); }

/* ── Commentary inline ── */
.commentary-inline {
  margin: 10px 14px 4px;
  border-radius: 10px;
  border: 1px solid rgba(168,85,247,0.2);
  background: rgba(168,85,247,0.06);
  overflow: hidden;
}
.commentary-inline.generating {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  color: var(--muted); font-size: 13px;
}
.commentary-inline.done .commentary-inline-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-size: 13px; font-weight: 600;
}
.commentary-inline-icon { font-size: 15px; }
.commentary-inline.done .commentary-inline-header span { flex: 1; }
.commentary-article-link { font-size: 11px; font-weight: 500; color: var(--accent); text-decoration: none; opacity: 0.8; white-space: nowrap; }
.commentary-article-link:hover { opacity: 1; text-decoration: underline; }

/* ── Actions bar (detail view) ── */
.actions-bar-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; flex-wrap: wrap;
}

.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 9px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border2);
  background: var(--surface2); color: var(--text);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.action-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

.action-btn-accent {
  background: rgba(0,180,216,0.1); border-color: rgba(0,180,216,0.3); color: var(--accent);
}
.action-btn-accent:hover { background: rgba(0,180,216,0.18); }

.action-btn-done {
  color: var(--success); border-color: rgba(6,214,160,0.3); background: rgba(6,214,160,0.07);
}
.action-btn-done:hover { background: rgba(6,214,160,0.14); }

.action-btn-processing {
  color: var(--warning); border-color: rgba(255,209,102,0.3);
  background: rgba(255,209,102,0.06); cursor: default; pointer-events: none;
}

/* ── Commentary panel (separate top-level section) ── */
.commentary-panel-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; flex-wrap: wrap;
}
.commentary-panel-body {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
}
.commentary-panel-body.generating { color: var(--muted); font-size: 13px; }
.commentary-panel-icon { font-size: 18px; flex-shrink: 0; }
.commentary-panel-title-group { display: flex; align-items: center; gap: 7px; }
.commentary-panel-title { font-size: 13px; font-weight: 600; }
.commentary-panel-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.commentary-panel-badge {
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
  background: rgba(6,214,160,0.12); color: var(--success);
}
.commentary-video-wrap { border-top: 1px solid var(--border); }
.commentary-video-wrap video { width: 100%; max-height: 320px; display: block; object-fit: contain; background: #000; }

/* ── Experimental info (collapsed description) ── */
.exp-info { padding: 10px 16px 14px; }
.exp-description { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── Experimental clips ── */
.exp-list { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.exp-card {
  background: var(--surface2); border: 1px solid rgba(168,85,247,0.18);
  border-radius: 12px; overflow: hidden;
}
.exp-card.rated-up   { border-color: rgba(6,214,160,0.3); }
.exp-card.rated-down { border-color: rgba(239,71,111,0.2); opacity: 0.7; }

.exp-video-wrap { position: relative; background: #000; }
.exp-video-wrap video { width: 100%; max-height: 260px; display: block; object-fit: contain; }
.exp-card-body { padding: 10px 12px 12px; }
.exp-reason {
  font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 6px;
}
.exp-reason-icon { flex-shrink: 0; }
.exp-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.btn-rate {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 8px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text); transition: background 0.15s, border-color 0.15s;
}
.btn-rate:hover { background: rgba(255,255,255,0.08); }
.btn-rate.up   { border-color: rgba(6,214,160,0.35); color: var(--success); }
.btn-rate.up:hover   { background: rgba(6,214,160,0.08); }
.btn-rate.down { border-color: rgba(239,71,111,0.35); color: var(--error); }
.btn-rate.down:hover { background: rgba(239,71,111,0.08); }
.btn-rate.selected-up   { background: rgba(6,214,160,0.12); border-color: var(--success); }
.btn-rate.selected-down { background: rgba(239,71,111,0.1);  border-color: var(--error); }

.rated-label { font-size: 12px; color: var(--muted); font-style: italic; }

.exp-reason-input-wrap { margin-top: 8px; display: none; }
.exp-reason-input-wrap.visible { display: flex; gap: 6px; }
.exp-reason-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; font-size: 12px; color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.exp-reason-input:focus { border-color: var(--error); }
.exp-reason-input::placeholder { color: var(--muted2); }
.btn-submit-reason {
  background: var(--error); color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 11px; border-radius: 8px; border: none; cursor: pointer;
  white-space: nowrap; transition: filter 0.15s;
}
.btn-submit-reason:hover { filter: brightness(1.1); }

/* ──────────────────────────────────────────────────────────────
   REEL OVERLAY
   ────────────────────────────────────────────────────────────── */
.reel-overlay {
  position: fixed; inset: 0; z-index: 1000; background: #000;
  display: flex; flex-direction: column;
}
.reel-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.reel-close {
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 16px; width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.reel-close:hover { background: rgba(255,255,255,0.22); }
.reel-title   { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.reel-counter { font-size: 13px; color: rgba(255,255,255,0.7); }

.reel-scroll {
  flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.reel-scroll::-webkit-scrollbar { display: none; }

.reel-item {
  height: 100svh; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 80px 20px 28px; gap: 14px;
}
.reel-video-wrap { position: relative; width: 100%; max-height: 62svh; }
.reel-video {
  width: 100%; max-height: 62svh; object-fit: contain;
  border-radius: 12px; background: #111; display: block;
}
.reel-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 10px 10px; border-radius: 0 0 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  pointer-events: none;
}
.reel-ctrl-row {
  display: flex; align-items: center; gap: 9px;
  pointer-events: auto;
}
.reel-play-btn {
  background: none; border: none; color: #fff; font-size: 14px;
  width: 24px; text-align: center; cursor: pointer; flex-shrink: 0; padding: 0; line-height: 1;
}
.reel-time-display { font-size: 11px; color: rgba(255,255,255,0.8); white-space: nowrap; flex-shrink: 0; }
.reel-progress {
  flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 3px;
  cursor: pointer; position: relative; transition: height 0.12s;
}
.reel-progress:hover { height: 5px; }
.reel-progress-fill { height: 100%; background: #fff; border-radius: 3px; width: 0%; pointer-events: none; }
.reel-mute-btn {
  background: none; border: none; color: rgba(255,255,255,0.75); font-size: 13px;
  padding: 0; cursor: pointer; flex-shrink: 0; line-height: 1;
}
.reel-speed-btn {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 6px; border-radius: 5px; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s; line-height: 1.4;
}
.reel-speed-btn:hover { background: rgba(255,255,255,0.22); }

.reel-meta  { width: 100%; max-width: 520px; }
.reel-label { font-size: 14px; font-weight: 700; color: #fff; }
.reel-sub   { font-weight: 400; color: rgba(255,255,255,0.5); font-size: 13px; }
.reel-ai-reason {
  font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px;
  display: flex; align-items: flex-start; gap: 5px;
}

.reel-bottom {
  width: 100%; max-width: 520px;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.reel-save {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 15px; border-radius: 22px; text-decoration: none;
  transition: background 0.15s;
}
.reel-save:hover { background: rgba(255,255,255,0.2); }

.reel-rate-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 22px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08); color: #fff; transition: background 0.15s;
}
.reel-rate-btn.up   { border-color: rgba(6,214,160,0.45);  color: var(--success); }
.reel-rate-btn.up:hover   { background: rgba(6,214,160,0.15); }
.reel-rate-btn.down { border-color: rgba(239,71,111,0.45); color: var(--error); }
.reel-rate-btn.down:hover { background: rgba(239,71,111,0.12); }

.reel-rated-label { font-size: 12px; color: rgba(255,255,255,0.6); font-style: italic; }
.reel-undo-btn {
  background: none; border: none; color: rgba(255,255,255,0.45); font-size: 12px;
  cursor: pointer; text-decoration: underline; padding: 0;
}
.reel-undo-btn:hover { color: #fff; }

.reel-reason-wrap { width: 100%; max-width: 520px; display: none; }
.reel-reason-wrap.visible { display: flex; gap: 6px; }
.reel-reason-input {
  flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; padding: 8px 11px; font-size: 12px; color: #fff; outline: none;
  transition: border-color 0.15s;
}
.reel-reason-input:focus { border-color: var(--error); }
.reel-reason-input::placeholder { color: rgba(255,255,255,0.35); }
.reel-reason-submit {
  background: var(--error); color: #fff; font-size: 12px; font-weight: 600;
  padding: 8px 11px; border-radius: 8px; border: none; cursor: pointer;
  white-space: nowrap; transition: filter 0.15s;
}
.reel-reason-submit:hover { filter: brightness(1.1); }

/* ──────────────────────────────────────────────────────────────
   JOB LIST — compact rows
   ────────────────────────────────────────────────────────────── */
.jobs-list { gap: 6px; }

.job-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}
.job-row:hover { border-color: var(--border2); background: var(--surface2); }

.job-row .dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted);
}
.job-row .dot.queued    { background: var(--muted); }
.job-row .dot.processing { background: var(--warning); }
.job-row .dot.done      { background: var(--success); }
.job-row .dot.failed    { background: var(--error); }
.job-row .dot.cancelled { background: var(--muted); }

.row-name {
  flex: 1 1 0; min-width: 0;
  font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.row-tags { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.yt-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: #c4302b; padding: 2px 5px; border-radius: 4px;
}

.clips-tag {
  font-size: 11px; font-weight: 600; color: var(--success);
  background: rgba(6,214,160,0.12); padding: 2px 7px; border-radius: 4px;
}

.commentary-badge {
  font-size: 11px; font-weight: 700; padding: 2px 5px; border-radius: 4px;
  background: rgba(168,85,247,0.15); color: var(--exp);
}

.yt-live-link {
  font-size: 11px; font-weight: 600; color: #c4302b;
  text-decoration: none; padding: 2px 7px;
  background: rgba(196,48,43,0.1); border-radius: 4px;
  transition: background 0.15s;
}
.yt-live-link:hover { background: rgba(196,48,43,0.2); }

.row-status {
  flex-shrink: 0; font-size: 12px; color: var(--muted);
  white-space: nowrap;
}

.row-time {
  flex-shrink: 0; font-size: 11px; color: var(--muted2);
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────
   JOB DETAIL — full inspect view
   ────────────────────────────────────────────────────────────── */
.job-detail { display: flex; flex-direction: column; gap: 12px; }
.job-detail.hidden { display: none; }

.detail-back { margin-bottom: 4px; }

.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-back:hover { border-color: var(--accent); background: var(--surface2); }

.tl-yt-link {
  font-size: 12px; font-weight: 600; color: #c4302b;
  text-decoration: none; margin-left: 8px;
}
.tl-yt-link:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────────────────────
   SIDEBAR — drop zone lateral spacing
   ────────────────────────────────────────────────────────────── */
.sidebar > .drop-zone { margin: 8px 12px; width: auto; }

/* ──────────────────────────────────────────────────────────────
   INSPECT PANELS — modular card stack
   ────────────────────────────────────────────────────────────── */
.inspect-panels { display: flex; flex-direction: column; gap: 10px; }

.inspect-header {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.inspect-icon { font-size: 28px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.inspect-header-body { flex: 1; min-width: 0; }
.inspect-filename {
  font-size: 15px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 6px;
}
.inspect-meta-row { display: flex; align-items: center; gap: 6px; }
.inspect-status { font-size: 13px; color: var(--muted); }
.inspect-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.inspect-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.inspect-panel > .section-header { border-top: none; }

.inspect-panel-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted2);
  padding: 14px 20px 6px;
}

/* ── YouTube info grid ── */
.yt-info-grid { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.yt-info-row  { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.yt-info-key  { color: var(--muted); min-width: 90px; flex-shrink: 0; }
.yt-info-val  { color: var(--text); word-break: break-all; }

/* ── Inspect timeline ── */
.inspect-tl { padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 0; }
.tl-row {
  display: flex; align-items: flex-start; gap: 12px;
  position: relative; padding-bottom: 14px;
}
.tl-row.last { padding-bottom: 0; }
.tl-row:not(.last)::after {
  content: ''; position: absolute;
  left: 7px; top: 16px; bottom: 0;
  width: 1px; background: var(--border);
}
.tl-dot {
  width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface2); border: 2px solid var(--border2);
  margin-top: 1px; position: relative; z-index: 1;
}
.tl-dot.done { background: var(--success); border-color: var(--success); }
.tl-dot.yt   { background: #c4302b; border-color: #c4302b; }
.tl-content  { flex: 1; min-width: 0; }
.inspect-tl .tl-label { font-size: 13px; color: var(--text); font-weight: 500; }
.inspect-tl-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Filter bar ── */
#filter-bar { margin-bottom: 14px; }
.filter-bar-inner {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  background: transparent; border: none;
  border-radius: 0; padding: 0;
}
.filter-group { display: flex; align-items: center; gap: 4px; }
.filter-group-label { display: none; }
.filter-sep { display: none; }
.filter-chip {
  font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid transparent;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.filter-chip:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.filter-chip.active {
  color: var(--accent); background: var(--accent-glow);
  border-color: rgba(0,180,216,0.3);
}
.filter-spacer { flex: 1; }
.filter-count { font-size: 11px; color: var(--muted2); white-space: nowrap; }

/* ──────────────────────────────────────────────────────────────
   SESSION MODE TOGGLE
   ────────────────────────────────────────────────────────────── */
.toggle-label.session .toggle-track { background: var(--surface2); }
#session-toggle:checked + .toggle-track { background: var(--warning); }

/* ──────────────────────────────────────────────────────────────
   BATCH SESSION CARDS
   ────────────────────────────────────────────────────────────── */
.batch-sessions { display: flex; flex-direction: column; gap: 16px; margin-bottom: 12px; }

.batch-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.batch-card:hover {
  border-color: rgba(0,180,216,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.batch-header { padding: 16px 20px 12px; }

.batch-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.batch-icon { font-size: 22px; flex-shrink: 0; }
.batch-title-text { flex: 1; min-width: 0; }
.batch-label { display: block; font-size: 15px; font-weight: 700; }
.batch-meta  { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.batch-delete-btn {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 16px; padding: 4px 6px;
  border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.batch-delete-btn:hover { color: var(--error); background: rgba(239,71,111,0.1); }

.batch-progress-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.batch-progress-bar {
  flex: 1; height: 5px; background: var(--surface3); border-radius: 4px; overflow: hidden;
}
.batch-progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 4px; transition: width 0.4s ease;
}
.batch-progress-label { font-size: 12px; color: var(--muted); white-space: nowrap; }

.batch-body {
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
}

.batch-grid-placeholder {
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ──────────────────────────────────────────────────────────────
   PIPELINE STEPPER
   ────────────────────────────────────────────────────────────── */
.batch-pipeline {
  display: flex;
  align-items: flex-start;
  margin-top: 14px;
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.pipeline-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.pipeline-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.pipeline-step.done   .pipeline-dot   { background: rgba(6,214,160,0.12); color: var(--success); font-size: 11px; font-weight: 800; }
.pipeline-step.done   .pipeline-label { color: var(--success); }
.pipeline-step.active .pipeline-dot   { background: var(--accent-glow); border: 1.5px solid var(--accent); color: var(--accent); }
.pipeline-step.active .pipeline-label { color: var(--accent); font-weight: 700; }
.pipeline-step.pending .pipeline-dot  { background: var(--surface3); color: var(--muted2); }
.pipeline-step.pending .pipeline-label{ color: var(--muted2); }
.pipeline-connector {
  flex: 1; height: 2px;
  background: var(--surface3);
  margin: 14px 4px 0;
  align-self: flex-start;
}
.pipeline-connector.done { background: rgba(6,214,160,0.3); }

/* ──────────────────────────────────────────────────────────────
   WEEK GRID
   ────────────────────────────────────────────────────────────── */
.week-grid {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.week-col {
  flex: 1;
  min-width: 68px;
  background: var(--surface2);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.week-col.past { opacity: 0.45; }
.week-col.today {
  background: rgba(0,180,216,0.07);
  border: 1px solid rgba(0,180,216,0.18);
}
.week-col.today .week-label { color: var(--accent); }
.week-col.sunday {
  background: rgba(255, 209, 102, 0.07);
  border: 1px solid rgba(255, 209, 102, 0.18);
}

.week-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.week-col.sunday .week-label { color: var(--warning); }

.week-date  { font-size: 11px; color: var(--text); font-weight: 600; text-align: center; }

.week-slots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: center;
  margin-top: 2px;
}

.slot {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 5px;
  text-align: center;
  white-space: nowrap;
}
.slot.pending  { background: var(--surface3); color: var(--muted); }
.slot.uploaded { background: rgba(6,214,160,0.15); color: var(--success); text-decoration: none; display: block; }
.slot.uploaded:hover { text-decoration: underline; }
.slot.processing { background: rgba(0,180,216,0.1); color: var(--accent); }
.slot.empty    { color: var(--muted2); font-size: 13px; }

.slot-lf-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--warning);
  letter-spacing: 0.3px;
  text-align: center;
}

/* ──────────────────────────────────────────────────────────────
   LONG-FORM SECTION (inside batch-body)
   ────────────────────────────────────────────────────────────── */
.batch-longform-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 14px;
  background: rgba(255,209,102,0.04);
  border: 1px solid rgba(255,209,102,0.12);
  border-radius: 10px;
}
.batch-lf-icon  { font-size: 18px; flex-shrink: 0; }
.batch-lf-title { font-size: 13px; font-weight: 700; color: var(--warning); flex: 1; }
.batch-lf-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lf-status      { font-size: 12px; }
.lf-status.lf-live      { color: var(--success); font-weight: 600; }
.lf-status.lf-processing { color: var(--accent); }
.lf-status.lf-scheduled  { color: var(--muted); }
.lf-status.lf-failed     { color: var(--error); }

.batch-yt-link {
  font-size: 12px; padding: 5px 12px; border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border2);
  color: var(--text);
  transition: border-color 0.15s;
}
.batch-yt-link:hover { border-color: var(--accent); color: var(--accent); }

/* ──────────────────────────────────────────────────────────────
   TOP NAVIGATION
   ────────────────────────────────────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
  background: var(--surface3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
  flex-shrink: 0;
}

.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.top-nav-brand .brand-emoji { font-size: 22px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 15px; font-weight: 800; letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 20%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.2;
}
.brand-sub { font-size: 10px; color: var(--muted); }

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-storage {
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.nav-storage:hover { opacity: 1; }
.nav-storage-bar {
  width: 56px; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px; overflow: hidden;
}
.nav-storage-fill {
  height: 100%; border-radius: 4px;
  background: var(--accent);
  transition: width 0.4s ease, background 0.4s ease;
  width: 0%;
}

.nav-upload-btn { padding: 8px 18px; font-size: 13px; margin-top: 0; width: auto; }
.nav-icon-btn {
  width: 34px; height: 34px; padding: 0;
  font-size: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

/* ──────────────────────────────────────────────────────────────
   CONTENT SECTIONS
   ────────────────────────────────────────────────────────────── */
.content-section { margin-bottom: 32px; }

.content-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.files-section { margin-top: 16px; }

.files-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 10px;
  border-top: 1px solid var(--border);
  margin-bottom: 4px;
}

.files-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted2);
  opacity: 0.7;
}

/* ── Sessions empty state ── */
.sessions-empty {
  padding: 52px 24px;
  text-align: center;
  border: 2px dashed rgba(255,255,255,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.01);
}
.sessions-empty .empty-icon { font-size: 40px; margin-bottom: 14px; display: block; }
.sessions-empty h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.sessions-empty p  { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.sessions-empty .btn-primary { width: auto; margin-top: 0; padding: 10px 24px; display: inline-flex; }

/* ──────────────────────────────────────────────────────────────
   MODALS
   ────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }

.modal-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted); width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* Upload modal */
.upload-modal-box { max-width: 520px; }

.upload-modal-box .drop-zone {
  margin: 20px 24px 0;
  width: auto;
}

.upload-modal-box .upload-progress {
  margin: 12px 24px 0;
  padding: 0;
  border: none;
  background: none;
}

.upload-quick-settings {
  padding: 14px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.upload-quick-settings .toggle-label {
  padding: 10px 0;
  border: none;
}

.timing-config-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

/* Settings modal */
.settings-modal-box { max-width: 460px; }

.settings-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-child { border-bottom: none; }

.settings-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted2);
  margin-bottom: 12px;
}

.settings-toggle {
  padding: 8px 0;
  border: none;
}

.settings-danger {
  border-top: 1px solid rgba(239,71,111,0.12) !important;
}

.danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.settings-signout { padding: 14px 24px !important; }

.storage-card-inner { display: flex; flex-direction: column; gap: 6px; }

/* ──────────────────────────────────────────────────────────────
   STANDALONE FILES SECTION
   ────────────────────────────────────────────────────────────── */
.standalone-section {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.standalone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
  border-radius: 8px;
  transition: opacity 0.15s;
}
.standalone-header:hover { opacity: 0.8; }

.standalone-header-left { display: flex; flex-direction: column; gap: 2px; }
.standalone-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted2);
}
.standalone-desc { font-size: 11px; color: var(--muted2); opacity: 0.7; }

.standalone-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.standalone-count {
  font-size: 11px;
  color: var(--muted2);
}
.standalone-chevron {
  font-size: 10px;
  color: var(--muted2);
  transition: transform 0.2s;
}

.standalone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

/* ──────────────────────────────────────────────────────────────
   SESSION DETAIL
   ────────────────────────────────────────────────────────────── */
.session-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.back-btn {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 6px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.back-btn:hover { color: var(--accent); }

.session-detail-title { flex: 1; min-width: 0; }
.session-detail-title h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}
.session-detail-meta { font-size: 13px; color: var(--muted); }

/* ── Session Tabs ── */
.session-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.session-tab {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.session-tab:hover { color: var(--text); }
.session-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Overview Tab ── */
.overview-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.stat-card.stat-error .stat-value { color: var(--error); }

.overview-progress { margin: 20px 0; }

.overview-files { margin-top: 32px; }
.overview-sub {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted2);
  margin-bottom: 12px;
}

.source-files-list { display: flex; flex-direction: column; gap: 6px; }
.source-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(26,26,46,0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}
.source-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-file-meta { font-size: 11px; color: var(--muted); white-space: nowrap; margin-right: 4px; }

/* ── Clips Tab ── */
.tab-clips .clips-tab-header {
  margin-bottom: 20px;
}
.clips-count { font-size: 13px; color: var(--muted); }

.clips-job-group { margin-bottom: 24px; }
.clips-job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.clips-job-name { font-size: 13px; font-weight: 600; }

.clip-rows { display: flex; flex-direction: column; gap: 2px; }
.clip-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.1s;
}
.clip-row:hover { background: rgba(255,255,255,0.05); }
.clip-index { color: var(--muted2); min-width: 22px; text-align: right; font-size: 11px; }
.clip-time  { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 100px; font-size: 12px; }
.clip-cue   { flex: 1; color: var(--text); font-weight: 500; }
.clip-play  { color: var(--muted2); font-size: 11px; opacity: 0; transition: opacity 0.1s; }
.clip-row:hover .clip-play { opacity: 1; color: var(--accent); }

/* ── Long Reel Tab ── */
.tab-longreel { padding: 8px 0; }
.lfreel-card {
  background: var(--surface);
  border: 1px solid rgba(255,209,102,0.15);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.lfreel-icon  { font-size: 44px; margin-bottom: 14px; }
.lfreel-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.lfreel-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }

.lfreel-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: left;
}
.lfreel-status strong { font-weight: 700; display: block; }
.lfreel-status.lfreel-live      { background: rgba(6,214,160,0.1);   color: var(--success); }
.lfreel-status.lfreel-processing { background: var(--accent-glow);   color: var(--accent); }
.lfreel-status.lfreel-scheduled  { background: rgba(255,255,255,0.04); color: var(--muted); }
.lfreel-status.lfreel-failed    { background: rgba(239,71,111,0.1);  color: var(--error); }
.lfreel-time { font-size: 11px; margin-top: 3px; opacity: 0.7; }
.lfreel-actions { margin-top: 4px; display: flex; justify-content: center; }

/* ── Publish Tab ── */
.publish-summary {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.publish-all-live { color: var(--success); }

.publish-day { margin-bottom: 24px; }
.publish-day.past { opacity: 0.65; }

.publish-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.publish-day-name { font-size: 15px; font-weight: 700; }
.publish-day.today .publish-day-name { color: var(--accent); }
.publish-day-date  { font-size: 12px; color: var(--muted); flex: 1; }
.publish-day-count { font-size: 11px; color: var(--muted2); white-space: nowrap; }

.publish-slots { display: flex; flex-direction: column; gap: 6px; }

.publish-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(26,26,46,0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}
.publish-slot.published { border-color: rgba(6,214,160,0.2); }
.publish-slot-num   { color: var(--muted2); min-width: 20px; text-align: right; font-size: 11px; }
.publish-slot-time  { flex: 1; }
.publish-slot-label { font-size: 11px; color: var(--muted); }
.publish-slot.past:not(.published) .publish-slot-label { color: var(--warning); }

/* ── Commentary Tab ── */
.commentary-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.commentary-list { display: flex; flex-direction: column; gap: 12px; }

.comm-row {
  background: rgba(26,26,46,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.comm-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.comm-filename {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.comm-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.comm-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.comm-badge.comm-done       { background: rgba(6,214,160,0.12); color: var(--success); }
.comm-badge.comm-processing { background: var(--accent-glow); color: var(--accent); }
.comm-badge.comm-none       { background: rgba(255,255,255,0.05); color: var(--muted2); }

.comm-video-wrap {
  padding: 0 16px 16px;
}
.comm-video-wrap video {
  width: 100%;
  max-width: 360px;
  border-radius: 8px;
  background: #000;
  display: block;
}

/* ── Tab empty state ── */
.tab-empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
}
.tab-empty .empty-icon { font-size: 36px; display: block; margin-bottom: 16px; }
.tab-empty p { font-size: 14px; line-height: 1.6; }

/* ──────────────────────────────────────────────────────────────
   TIKTOK RE-UPLOAD QUEUE
   ────────────────────────────────────────────────────────────── */

.reupload-queue-section {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: 12px;
  background: rgba(255, 184, 0, 0.04);
  overflow: hidden;
}

.reupload-queue-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: rgba(255, 184, 0, 0.07);
  border-bottom: 1px solid rgba(255, 184, 0, 0.15);
}

.reupload-queue-icon { font-size: 1rem; }

.reupload-queue-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warning);
}

.reupload-queue-count {
  background: var(--warning);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
}

.btn-sync-sheet {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-sync-sheet:hover { background: rgba(0, 180, 216, 0.12); }
.btn-sync-sheet:disabled { opacity: 0.6; cursor: default; }

.reupload-queue-list { display: flex; flex-direction: column; }

.reupload-item {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.reupload-item:last-child { border-bottom: none; }
.reupload-item:hover { background: rgba(255,255,255,0.02); }

.reupload-item-highlight {
  background: rgba(255, 184, 0, 0.1) !important;
  transition: background 0.4s;
}

.reupload-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.reupload-item-title {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.reupload-yt-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.reupload-yt-link:hover { text-decoration: underline; }

.reupload-item-right { flex-shrink: 0; }

.btn-reupload-expand {
  background: none;
  border: 1px solid rgba(255, 184, 0, 0.4);
  color: var(--warning);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-reupload-expand:hover {
  background: rgba(255, 184, 0, 0.1);
  border-color: var(--warning);
}

.reupload-needed-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 184, 0, 0.12);
  color: var(--warning);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.reupload-needed-tag:hover { background: rgba(255, 184, 0, 0.22); }

.reupload-upload-panel {
  width: 100%;
  padding: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reupload-hint {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}
.reupload-hint a { color: var(--accent); text-decoration: none; }
.reupload-hint a:hover { text-decoration: underline; }

.reupload-file-input {
  font-size: 0.83rem;
  color: var(--text);
  cursor: pointer;
}

.reupload-actions {
  display: flex;
  gap: 8px;
}

.reupload-progress,
.reupload-success,
.reupload-error {
  font-size: 0.83rem;
  border-radius: 6px;
  padding: 7px 10px;
}

.reupload-progress { color: var(--muted); background: rgba(255,255,255,0.04); }
.reupload-success  { color: var(--success); background: rgba(6, 214, 160, 0.08); }
.reupload-error    { color: var(--error);   background: rgba(239, 71, 111, 0.08); }

/* ── RESPONSIVE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .top-nav { padding: 0 16px; gap: 10px; }
  .brand-sub { display: none; }
  .main-content { padding: 20px 16px 40px; max-width: 100%; }
  .week-grid { gap: 5px; }
  .week-col  { min-width: 56px; padding: 8px 5px; }
  .nav-storage { display: none; }
  .modal-box { border-radius: 14px; }
  .clips-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
  .clips-job-bar { gap: 8px; }
  .lfreel-hero { padding: 20px; gap: 14px; }
  .lfreel-hero-icon { font-size: 28px; }
  .session-tab { padding: 10px 12px; font-size: 12px; }
}

/* ──────────────────────────────────────────────────────────────
   PHASE 2.5 — CLIPS TAB
   ────────────────────────────────────────────────────────────── */

/* ── Small button utilities ── */
.btn-xs { padding: 5px 10px !important; font-size: 11px !important; border-radius: 7px !important; }
.btn-danger-ghost {
  color: var(--error) !important;
  border-color: rgba(239,71,111,0.25) !important;
}
.btn-danger-ghost:hover {
  color: var(--error) !important;
  border-color: var(--error) !important;
  background: rgba(239,71,111,0.08) !important;
}

/* Clips masthead */
.clips-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.clips-masthead-stats { display: flex; align-items: baseline; gap: 8px; }
.clips-total-num {
  font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1;
}
.clips-total-label { font-size: 13px; color: var(--muted); }
.clips-masthead-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Per-job section */
.clips-job-section { margin-bottom: 28px; }

.clips-job-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 12px; flex-wrap: wrap;
}
.clips-job-left {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0; flex-wrap: wrap;
}
.clips-job-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.clips-job-filename {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
.clips-job-count { font-size: 11px; color: var(--muted); white-space: nowrap; }

.clip-job-badge {
  font-size: 10px; font-weight: 600; padding: 2px 7px;
  border-radius: 20px; white-space: nowrap;
}
.badge-uploaded   { background: rgba(196,48,43,0.15); color: #ff6b6b; }
.badge-commentary { background: rgba(168,85,247,0.12); color: var(--exp); }
.badge-processing { background: var(--accent-glow); color: var(--accent); }
.badge-failed     { background: rgba(239,71,111,0.1); color: var(--error); }

/* Card grid — 9:16 portrait */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.clip-card {
  cursor: pointer; border-radius: 10px; overflow: hidden;
  background: var(--surface2); border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.12s;
}
.clip-card:hover { border-color: rgba(0,180,216,0.35); transform: translateY(-2px); }

.clip-card-thumb {
  position: relative; aspect-ratio: 9 / 16;
  background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
}

.clip-card-index {
  position: absolute; top: 5px; left: 5px;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.45); padding: 2px 5px; border-radius: 4px; line-height: 1.3;
}

.clip-card-play {
  font-size: 18px; color: rgba(255,255,255,0.4);
  transition: color 0.12s, transform 0.12s;
}
.clip-card:hover .clip-card-play { color: var(--accent); transform: scale(1.15); }

.clip-card-info { padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.clip-card-ts  { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clip-card-cue { font-size: 11px; font-weight: 600; color: var(--text); text-transform: lowercase; }

/* ──────────────────────────────────────────────────────────────
   PHASE 2.5 — COMMENTARY TAB CONTROL BAR
   ────────────────────────────────────────────────────────────── */

.comm-control-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.comm-control-stats { display: flex; align-items: baseline; gap: 8px; }
.comm-stat-primary {
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1;
}
.comm-stat-label { font-size: 13px; color: var(--muted); }

.comm-meta-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 20px;
}
.comm-meta-item { display: flex; flex-direction: column; gap: 3px; }
.comm-meta-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--muted2);
}
.comm-meta-value { font-size: 13px; font-weight: 600; color: var(--text); }

/* ──────────────────────────────────────────────────────────────
   PHASE 2.5 — LONG REEL HERO PANEL
   ────────────────────────────────────────────────────────────── */

.lfreel-hero {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px 32px; border-radius: 16px;
  border: 1px solid var(--border); margin-bottom: 20px;
}
.lfreel-hero.pending    { background: rgba(255,255,255,0.02); }
.lfreel-hero.processing { background: var(--accent-glow); border-color: rgba(0,180,216,0.25); }
.lfreel-hero.live       { background: rgba(6,214,160,0.06); border-color: rgba(6,214,160,0.2); }
.lfreel-hero.ready      { background: rgba(0,180,216,0.04); border-color: rgba(0,180,216,0.15); }
.lfreel-hero.failed     { background: rgba(239,71,111,0.05); border-color: rgba(239,71,111,0.2); }

.lfreel-hero-icon { font-size: 38px; flex-shrink: 0; line-height: 1; }
.lfreel-hero-body { flex: 1; min-width: 0; }
.lfreel-hero-title {
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 4px;
}
.lfreel-hero-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }

.lfreel-progress-wrap { margin: 12px 0 16px; }
.lfreel-progress-bar {
  height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden;
}
.lfreel-progress-fill {
  height: 100%; border-radius: 4px; background: var(--accent);
  animation: lfProgress 2.4s ease-in-out infinite alternate;
}
@keyframes lfProgress { from { width: 15%; } to { width: 75%; } }

.lfreel-player { border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--border); }
.lfreel-player video { width: 100%; max-height: 480px; display: block; object-fit: contain; }

.lfreel-waiting { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* ──────────────────────────────────────────────────────────────
   PHASE 2.5 — PUBLISH TAB
   ────────────────────────────────────────────────────────────── */

.pub-summary-bar {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.pub-summary-stat { font-size: 14px; font-weight: 600; color: var(--text); }
.pub-all-live {
  font-size: 13px; color: var(--success); font-weight: 600;
  background: rgba(6,214,160,0.1); padding: 3px 10px; border-radius: 20px;
}

.pub-schedule { display: flex; flex-direction: column; gap: 20px; }

.pub-day.past { opacity: 0.6; }

.pub-day-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.pub-day-name  { font-size: 15px; font-weight: 700; }
.pub-day.today .pub-day-name { color: var(--accent); }
.pub-day-date  { font-size: 12px; color: var(--muted); flex: 1; }
.pub-day-tally { font-size: 11px; color: var(--muted2); white-space: nowrap; }

.pub-slots { display: flex; flex-direction: column; gap: 6px; }

.pub-slot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(26,26,46,0.4); font-size: 13px;
}
.pub-slot.pub-live    { border-color: rgba(6,214,160,0.2); background: rgba(6,214,160,0.05); }
.pub-slot.pub-overdue { border-color: rgba(255,209,102,0.2); }

.pub-slot-num {
  font-size: 10px; color: var(--muted2);
  min-width: 18px; text-align: right; flex-shrink: 0;
}
.pub-platform-badge {
  font-size: 10px; font-weight: 700;
  background: rgba(196,48,43,0.2); color: #ff6b6b;
  padding: 2px 5px; border-radius: 4px; flex-shrink: 0;
}
.pub-slot-time {
  font-size: 12px; font-weight: 600; color: var(--text);
  white-space: nowrap; flex-shrink: 0;
}
.pub-slot-file {
  flex: 1; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.pub-slot-label { font-size: 11px; color: var(--muted2); white-space: nowrap; flex-shrink: 0; }
.pub-slot.pub-overdue .pub-slot-label { color: var(--warning); }

.pub-section-divider {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted2);
  padding: 12px 0 8px; border-top: 1px solid var(--border); margin-top: 8px;
}

.pub-longreel-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(255,209,102,0.15); background: rgba(255,209,102,0.04); font-size: 13px;
}
.pub-longreel-row.pub-live { border-color: rgba(6,214,160,0.2); background: rgba(6,214,160,0.05); }

.pub-lf-icon  { font-size: 16px; flex-shrink: 0; }
.pub-lf-label { font-size: 13px; font-weight: 600; color: var(--warning); flex: 1; }
.pub-longreel-row.pub-live .pub-lf-label { color: var(--success); }
.pub-lf-status { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ──────────────────────────────────────────────────────────────
   LIBRARY PAGE
   ────────────────────────────────────────────────────────────── */

.lib-page { padding: 0; }

.lib-header { margin-bottom: 20px; }
.lib-title-row {
  display: flex; align-items: baseline; gap: 12px;
}
.lib-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.4px;
}
.lib-subtitle {
  font-size: 13px; color: var(--muted);
}

.lib-filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.lib-filter-count {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,0.1); color: var(--muted2);
  padding: 1px 5px; border-radius: 10px; margin-left: 3px;
}
.filter-chip.active .lib-filter-count { background: rgba(0,180,216,0.2); color: var(--accent); }

.lib-list { display: flex; flex-direction: column; gap: 8px; }

.lib-loading {
  padding: 60px 24px; text-align: center;
  color: var(--muted); font-size: 14px;
}

.lib-empty {
  padding: 64px 24px; text-align: center; color: var(--muted);
}
.lib-empty .empty-icon { font-size: 36px; display: block; margin-bottom: 16px; }
.lib-empty p { font-size: 14px; line-height: 1.6; }

/* Nav Library + Publish buttons */
.nav-library-btn,
.nav-publish-btn {
  padding: 7px 14px; font-size: 13px; margin-top: 0; width: auto; text-decoration: none;
}

/* ── Storage cleanup row ─────────────────────────────────────────────────── */
.storage-cleanup-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; flex-wrap: wrap;
}
.storage-cleanup-hint { font-size: 12px; color: var(--warning); flex: 1; min-width: 0; }
.storage-cleanup-hint.hidden { display: none; }

/* ── Week grid private slot ──────────────────────────────────────────────── */
.slot.slot-private {
  background: rgba(255,209,102,0.1); color: var(--warning);
  border-color: rgba(255,209,102,0.25); text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════
   LIBRARY CARDS  (lc-* namespace)
   ══════════════════════════════════════════════════════════════════ */

.lib-list { display: flex; flex-direction: column; gap: 8px; }

/* Card shell */
.lc-card {
  display: flex; align-items: center; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lc-card:hover { border-color: var(--border2); box-shadow: 0 2px 16px rgba(0,0,0,0.2); }

/* State-tinted borders */
.lc-card--live      { border-color: rgba(6,214,160,0.2); }
.lc-card--live:hover { border-color: rgba(6,214,160,0.4); }
.lc-card--private   { border-color: rgba(255,209,102,0.15); }
.lc-card--archived  { border-color: rgba(59,130,246,0.15); }
.lc-card--missing   { border-color: rgba(239,68,68,0.2); opacity: 0.7; }

/* Thumbnail */
.lc-thumb {
  width: 88px; min-width: 88px; height: 60px;
  background: var(--surface2); overflow: hidden;
  position: relative; flex-shrink: 0;
}
.lc-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lc-thumb-placeholder {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  font-size: 22px; color: var(--muted2);
}
.lc-thumb--fallback img { display: none; }
.lc-thumb--fallback .lc-thumb-placeholder { display: flex; }

/* Body */
.lc-body {
  flex: 1; min-width: 0;
  padding: 11px 14px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.lc-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.lc-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; font-size: 11px; color: var(--muted2);
}
.lc-meta-session {
  color: var(--accent); text-decoration: none; white-space: nowrap;
}
.lc-meta-session:hover { text-decoration: underline; }
.lc-meta-clips  { color: var(--muted); white-space: nowrap; }
.lc-meta-date   { white-space: nowrap; }
.lc-meta-eng    { white-space: nowrap; }

/* Local file indicator */
.lc-local {
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--muted2); display: block; margin-top: 1px;
}
.lc-local--cloud { color: #60a5fa; }
.lc-local--disk  { color: var(--muted); }

/* Lifecycle strip */
.lcs {
  display: flex; align-items: center; gap: 0;
  margin-top: 4px;
}
.lcs-step {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted2); white-space: nowrap;
}
.lcs-step.lcs-done   { color: rgba(6,214,160,0.6); }
.lcs-step.lcs-active { color: var(--text); }
.lcs-arrow {
  font-size: 9px; color: var(--muted2); margin: 0 4px; line-height: 1;
}

/* Right panel */
.lc-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px;
  padding: 11px 14px;
  flex-shrink: 0; min-width: 120px;
}

/* State chips */
.lc-chip {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  white-space: nowrap; letter-spacing: 0.01em;
}
.lc-chip--live      { background: rgba(6,214,160,0.12); color: var(--success); }
.lc-chip--private   { background: rgba(255,209,102,0.10); color: var(--warning); }
.lc-chip--cloud     { background: rgba(59,130,246,0.10); color: #60a5fa; }
.lc-chip--warn      { background: rgba(239,68,68,0.12); color: var(--error); }
.lc-chip--generated { background: rgba(255,255,255,0.06); color: var(--muted); }

/* Actions */
.lc-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.lc-action-cleanup { color: var(--muted) !important; }
.lc-comm-badge {
  font-size: 10px; color: var(--exp);
  background: var(--exp-glow); padding: 2px 7px; border-radius: 4px; font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════
   PUBLISH QUEUE  (new pub-* additions + runway)
   ══════════════════════════════════════════════════════════════════ */

/* Runway summary card */
.runway-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.runway-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.runway-headline { display: flex; align-items: baseline; gap: 8px; }
.runway-days {
  font-size: 40px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.runway-days-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.runway-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.runway-chip {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.runway-chip--live   { background: rgba(6,214,160,0.12); color: var(--success); }
.runway-chip--failed { background: rgba(239,68,68,0.12); color: var(--error); }

.runway-bar-wrap { margin-bottom: 10px; }
.runway-bar {
  height: 6px; background: rgba(255,255,255,0.07);
  border-radius: 6px; overflow: hidden; margin-bottom: 6px;
}
.runway-bar-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transition: width 0.4s ease;
  min-width: 4px;
}
.runway-bar-label { font-size: 11px; color: var(--muted2); }

.runway-footer {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.runway-cadence { color: var(--muted2); }
.runway-next strong { color: var(--text); }
.runway-today { color: var(--accent); }

/* Section title */
.pub-section-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--warning);
  margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,209,102,0.15);
}

/* Group header */
.pub-group { margin-bottom: 22px; }
.pub-group-header {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 0 8px; border-bottom: 1px solid var(--border);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.pub-group-count {
  background: var(--surface2); color: var(--muted2);
  font-size: 10px; padding: 1px 6px; border-radius: 9px;
  font-weight: 600; margin-left: auto;
}
.pub-group-slots { display: flex; flex-direction: column; gap: 6px; }

/* Group state modifiers */
.pub-group--failed .pub-group-header { color: var(--error); border-bottom-color: rgba(239,68,68,0.2); }
.pub-group--live   .pub-group-header { color: var(--success); border-bottom-color: rgba(6,214,160,0.2); }

/* Shorts slot card */
.pub-slot-card {
  display: flex; align-items: center; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: border-color 0.15s;
}
.pub-slot-card:hover { border-color: var(--border2); }
.pub-slot-card.pub-slot--live    { border-color: rgba(6,214,160,0.2); background: rgba(6,214,160,0.03); }
.pub-slot-card.pub-slot--private { border-color: rgba(255,209,102,0.15); }
.pub-slot-card.pub-slot--failed  { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.04); }
.pub-slot-card.pub-slot--uploading { border-color: rgba(0,180,216,0.2); }

/* Shorts thumbnail */
.pub-slot-thumb {
  width: 64px; min-width: 64px; height: 48px;
  background: var(--surface2); overflow: hidden;
  position: relative; flex-shrink: 0;
}
.pub-slot-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pub-slot-thumb-fb {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  font-size: 18px; color: var(--muted2);
}
.pub-slot-thumb--fallback img { display: none; }
.pub-slot-thumb--fallback .pub-slot-thumb-fb { display: flex; }

.pub-slot-body {
  flex: 1; padding: 9px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.pub-slot-session { font-size: 12px; color: var(--muted); }
.pub-slot-error   { font-size: 11px; color: var(--error); margin-top: 2px; }
.pub-slot-right   { display: flex; align-items: center; gap: 8px; padding: 0 12px; flex-shrink: 0; }

/* Shared status pill */
.pub-status {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 5px; white-space: nowrap;
}
.pub-status--live      { background: rgba(6,214,160,0.12); color: var(--success); }
.pub-status--private   { background: rgba(255,209,102,0.10); color: var(--warning); }
.pub-status--uploading { background: rgba(0,180,216,0.12); color: var(--accent); }
.pub-status--failed    { background: rgba(239,68,68,0.12); color: var(--error); }
.pub-status--pending   { background: rgba(255,255,255,0.05); color: var(--muted2); }

/* Long reel premium card */
.pub-longreels { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.pub-lr-card {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,209,102,0.04);
  border: 1px solid rgba(255,209,102,0.18);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pub-lr-card:hover { border-color: rgba(255,209,102,0.35); box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.pub-lr-card--live   { background: rgba(6,214,160,0.04); border-color: rgba(6,214,160,0.25); }
.pub-lr-card--failed { background: rgba(239,68,68,0.04); border-color: rgba(239,68,68,0.25); }

.pub-lr-thumb {
  width: 120px; min-width: 120px; height: 78px;
  background: var(--surface2); overflow: hidden;
  position: relative; flex-shrink: 0;
}
.pub-lr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-lr-thumb-fb {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  font-size: 28px; color: var(--muted2);
}
.pub-lr-thumb--fallback img { display: none; }
.pub-lr-thumb--fallback .pub-lr-thumb-fb { display: flex; }

.pub-lr-body {
  flex: 1; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.pub-lr-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--warning);
}
.pub-lr-card--live .pub-lr-label   { color: var(--success); }
.pub-lr-card--failed .pub-lr-label { color: var(--error); }
.pub-lr-session { font-size: 13px; color: var(--muted); }
.pub-lr-actions { padding: 0 16px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* Manual override buttons — visually understated */
.pub-mark-live-btn { color: var(--muted) !important; }

/* ── Cancel/Archive session ──────────────────────────────────────────────── */

.batch-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.batch-cancel-btn {
  flex-shrink: 0; background: none; border: 1px solid var(--border);
  cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.batch-cancel-btn:hover { color: var(--warning); border-color: var(--warning); background: rgba(255,180,0,0.07); }

.batch-archive-btn {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 16px; padding: 4px 6px;
  border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.batch-archive-btn:hover { color: var(--accent); background: rgba(255,255,255,0.07); }

.batch-status-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 2px 7px; border-radius: 10px;
  flex-shrink: 0;
}
.batch-status-badge.badge-cancelled { background: rgba(239,71,111,0.15); color: var(--error); }
.batch-status-badge.badge-archived  { background: rgba(255,255,255,0.08); color: var(--muted); }

/* Show-archived toggle row */
.sessions-archived-row {
  text-align: center;
  padding: 12px 0 4px;
}
.sessions-archived-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--muted);
  padding: 4px 10px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.sessions-archived-toggle:hover { color: var(--text); background: var(--surface2); }

/* Archive modal */
.archive-modal-box { max-width: 420px; }
.archive-modal-body {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.archive-modal-desc { font-size: 14px; color: var(--text); margin: 0; }
.archive-modal-keeps { background: var(--surface2); border-radius: 8px; padding: 12px 16px; }
.archive-keeps-label { font-size: 12px; font-weight: 700; color: var(--muted2); margin: 0 0 6px; }
.archive-keeps-list {
  margin: 0; padding-left: 18px;
  font-size: 13px; color: var(--muted); line-height: 1.7;
}
.archive-cleanup-toggle { border: none; padding: 0; }
.archive-modal-note {
  font-size: 11px; color: var(--muted2); margin: 0;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.archive-modal-footer {
  padding: 16px 24px;
  display: flex; justify-content: flex-end; gap: 10px;
  border-top: 1px solid var(--border);
}

/* Storage breakdown */
.storage-breakdown { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.storage-breakdown.hidden { display: none; }
.storage-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.storage-row-label { opacity: 0.85; }
.storage-row-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.storage-row-safe .storage-row-label,
.storage-row-safe .storage-row-val { color: #22c55e; opacity: 1; }

/* Session detail — action buttons in header */
.session-header-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.session-status-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 3px 9px; border-radius: 10px;
}
.session-status-badge.badge-cancelled { background: rgba(239,71,111,0.15); color: var(--error); }
.session-status-badge.badge-archived  { background: rgba(255,255,255,0.08); color: var(--muted); }

/* Delete source footage modal */
.delete-source-modal-box { max-width: 480px; width: 100%; }
.delete-source-modal-body {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.delete-source-desc { font-size: 14px; color: var(--text); margin: 0; font-weight: 600; }
.delete-source-keeps,
.delete-source-loses { background: var(--surface2); border-radius: 8px; padding: 12px 16px; }
.delete-source-loses { background: rgba(239,71,111,0.06); border: 1px solid rgba(239,71,111,0.15); }
.delete-source-section-label { font-size: 12px; font-weight: 700; color: var(--muted2); margin: 0 0 6px; }
.delete-source-section-warn { color: var(--error); }
.delete-source-list {
  margin: 0; padding-left: 18px;
  font-size: 13px; color: var(--muted); line-height: 1.7;
}
.delete-source-list-warn { color: var(--error); opacity: 0.85; }
.delete-source-note {
  font-size: 11px; color: var(--muted2); margin: 0;
  border-top: 1px solid var(--border); padding-top: 12px; font-weight: 600;
}
.delete-source-modal-footer {
  padding: 16px 24px;
  display: flex; justify-content: flex-end; gap: 10px;
  border-top: 1px solid var(--border);
}

/* Cloud-backed badge */
.batch-status-badge.badge-cloud-backed  { background: rgba(34,197,94,0.12); color: #22c55e; }
.session-status-badge.badge-cloud-backed { background: rgba(34,197,94,0.12); color: #22c55e; }

/* Delete source footage button on batch card */
.batch-delete-source-btn {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 6px; border: 1px solid rgba(239,71,111,0.35);
  background: transparent; color: var(--error); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.batch-delete-source-btn:hover { background: rgba(239,71,111,0.1); border-color: var(--error); }

/* ──────────────────────────────────────────────────────────────
   NAVIGATION — brand link + active states
   ────────────────────────────────────────────────────────────── */
a.top-nav-brand {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.top-nav-brand:hover { opacity: 0.85; }

.nav-sessions-btn {
  padding: 7px 14px; font-size: 13px; margin-top: 0; width: auto; text-decoration: none;
}

.nav-sessions-btn.active,
.nav-library-btn.active,
.nav-publish-btn.active {
  color: var(--accent);
  background: rgba(0, 180, 216, 0.1);
}

@media (max-width: 768px) {
  .nav-sessions-btn { display: none; }
}

/* ──────────────────────────────────────────────────────────────
   BATCH CARD — storage row
   ────────────────────────────────────────────────────────────── */
.batch-storage-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.batch-storage-icon { font-size: 13px; flex-shrink: 0; }
.batch-storage-label { flex: 1; min-width: 0; }
.batch-storage-action-btn {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 6px;
  border: 1px solid rgba(239,71,111,0.35);
  background: transparent; color: var(--error);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.batch-storage-action-btn:hover { background: rgba(239,71,111,0.1); border-color: var(--error); }
.batch-storage-blocked { font-size: 11px; color: var(--muted2); flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────────
   SESSION DETAIL — storage panel (overview tab)
   ────────────────────────────────────────────────────────────── */
.sess-storage-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.sess-storage-panel .overview-sub { margin-bottom: 10px; }
.sess-storage-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; margin-bottom: 12px; color: var(--muted);
}
.sess-storage-cloud  { color: #22c55e; }
.sess-storage-footage { color: var(--warning); }
.sess-storage-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ──────────────────────────────────────────────────────────────
   FORCE DELETE — batch card button + session panel button
   ────────────────────────────────────────────────────────────── */
.batch-storage-force-btn {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 6px;
  border: 1px solid rgba(255,209,102,0.3);
  background: transparent; color: var(--warning);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.batch-storage-force-btn:hover { background: rgba(255,209,102,0.08); border-color: var(--warning); }

.sess-storage-force-btn {
  color: var(--warning) !important;
  border-color: rgba(255,209,102,0.3) !important;
}
.sess-storage-force-btn:hover {
  background: rgba(255,209,102,0.08) !important;
  border-color: var(--warning) !important;
}

/* ──────────────────────────────────────────────────────────────
   FORCE DELETE SOURCE MODAL
   ────────────────────────────────────────────────────────────── */
.force-delete-modal-box { max-width: 500px; width: 100%; }
.force-delete-modal-body {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.force-delete-warning {
  font-size: 12px; font-weight: 700;
  padding: 8px 12px; border-radius: 7px;
  background: rgba(255,209,102,0.1);
  border: 1px solid rgba(255,209,102,0.3);
  color: var(--warning);
  letter-spacing: 0.02em;
}
.force-delete-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

.force-delete-confirm-row {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 12px; border-top: 1px solid var(--border);
  margin-top: 4px;
}
.force-delete-confirm-label { font-size: 12px; color: var(--muted); }
.force-delete-confirm-label strong { color: var(--text); font-family: monospace; }
.force-delete-confirm-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px; font-family: monospace; font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.force-delete-confirm-input:focus { border-color: var(--warning); }
.force-delete-confirm-input::placeholder { color: var(--muted2); font-weight: 400; }
