/* DoVertical — DoSmooth Apps Design System
 * Palette: Titanium, Platinum & Deep Slate (DoSmooth Oy Brand Manual v2.3.0, § 3.4)
 * Philosophy: Silent Nordic Luxury & Frictionless Precision — zero ALL-CAPS shouting, icon-first clarity.
 * Copyright (c) 2026 DoSmooth Oy (Business ID: 3670223-1). All rights reserved.
 */

:root {
  /* DoSmooth Apps Master Surfaces */
  --bg-obsidian: #070a0f;
  --bg-surface: #0b0f17;
  --bg-panel: #0e131e;
  --bg-card: #131a27;
  --bg-hover: #1a2334;
  --border-subtle: #1e2638;
  --border-strong: #2d3850;

  /* Typography */
  --text-titanium: #ffffff;
  --text-platinum: #e2e8f0;
  --text-silver: #94a3b8;
  --text-muted: #64748b;

  /* Disciplined Accents */
  --accent-steel: #38bdf8;
  --accent-steel-soft: rgba(56, 189, 248, 0.12);
  --accent-emerald: #34d399;
  --accent-emerald-soft: rgba(52, 211, 153, 0.12);
  --accent-gold: #e5b85c;
  --accent-gold-soft: rgba(229, 184, 92, 0.14);
  --accent-rose: #fb7185;

  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --font-brand: 'Avenir Next', 'Outfit', -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-obsidian);
  color: var(--text-platinum);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

.text-emerald {
  color: var(--accent-emerald);
}

/* Vector Icon System (crisp 1.65px stroke) */
.ic,
.ic-sm,
.ic-xs {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ic {
  width: 16px;
  height: 16px;
}

.ic-sm {
  width: 15px;
  height: 15px;
}

.ic-xs {
  width: 13px;
  height: 13px;
}

/* Custom subtle scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* Shell */
.studio-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: var(--bg-obsidian);
}

/* Topbar (52px — crisp DoSmooth Studio header) */
.topbar {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 20;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Strict Horizontal DoSmooth Pebble Lockup */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--border-subtle);
}

.brand-pebble {
  display: block;
  width: 28px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-titanium);
  white-space: nowrap;
}

.brand-pillar {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-silver);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.status-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.status-local {
  color: var(--accent-emerald);
  border-color: rgba(52, 211, 153, 0.28);
  background: var(--accent-emerald-soft);
}

.dot-emerald {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.7);
  flex-shrink: 0;
}

/* Tactile Buttons (Titanium / Slate Hierarchy) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-platinum);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, opacity 0.14s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

/* DoSmooth Apps Signature Primary CTA: Titanium White on Deep Slate */
.btn-titanium {
  background: var(--text-titanium);
  color: var(--bg-obsidian);
  font-weight: 600;
  border-color: var(--text-titanium);
}

.btn-titanium:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #e2e8f0;
}

.btn-tool {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-platinum);
}

.btn-tool:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-titanium);
}

.btn-pro {
  background: transparent;
  border-color: rgba(229, 184, 92, 0.38);
  color: var(--accent-gold);
}

.btn-pro:hover:not(:disabled) {
  background: var(--accent-gold-soft);
  border-color: rgba(229, 184, 92, 0.65);
}

.btn-pro.is-unlocked {
  border-color: rgba(52, 211, 153, 0.45);
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.btn-emerald {
  background: #059669;
  border-color: var(--accent-emerald);
  color: #ffffff;
  font-weight: 600;
}

.btn-emerald:hover:not(:disabled) {
  background: #047857;
}

.btn-icon-tool {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-silver);
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-icon-tool:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-titanium);
}

.btn-icon-tool:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-icon-solid {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text-titanium);
  border: 1px solid var(--text-titanium);
  color: var(--bg-obsidian);
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-icon-solid:hover:not(:disabled) {
  background: #e2e8f0;
}

.btn-icon-solid:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-icon-ghost {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-icon-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-titanium);
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-silver);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-titanium);
}

.btn-lg {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-sm {
  padding: 7px 11px;
  font-size: 12.5px;
}

.btn-xs {
  padding: 5px 9px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

/* 3-Column Sleek Workspace (Comfortable typography + generous canvas space) */
.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 310px;
}

.panel {
  background: var(--bg-surface);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.panel-left {
  border-right: 1px solid var(--border-subtle);
}

.panel-right {
  border-left: 1px solid var(--border-subtle);
}

.panel-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-platinum);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-tag {
  font-size: 11.5px;
  color: var(--text-silver);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 5px;
}

.lock-dot,
.lock-pill,
.pro-dot {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 184, 92, 0.3);
}

/* Reframe Mode Visual Tiles */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px 9px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-silver);
  cursor: pointer;
  transition: all 0.14s ease;
}

.mode-card .lock-dot {
  position: absolute;
  top: 5px;
  right: 5px;
}

.mode-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-titanium);
}

.mode-card.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-titanium);
  color: var(--text-titanium);
}

.mode-glyph {
  width: 34px;
  height: 26px;
}

.mode-title {
  font-size: 13px;
  font-weight: 500;
}

/* Safe Zone Icon Grid */
.safezone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.sz-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-silver);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}

.sz-btn:hover {
  background: var(--bg-hover);
  color: var(--text-titanium);
}

.sz-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-titanium);
  color: var(--text-titanium);
}

/* Segmented Controls */
.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--bg-obsidian);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.seg-btn:hover {
  color: var(--text-platinum);
}

.seg-btn.active {
  background: var(--bg-hover);
  color: var(--text-titanium);
}

/* Sliders & Inputs */
.slider-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-silver);
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--border-strong);
  outline: none;
  cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-titanium);
  border: 2px solid var(--bg-obsidian);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.icon-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.icon-input:focus-within {
  border-color: var(--border-strong);
  color: var(--text-titanium);
}

.icon-input input[type='text'] {
  border: none;
  background: transparent;
  padding: 7px 0;
}

input[type='text'],
select {
  width: 100%;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-titanium);
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 10px;
  outline: none;
}

input[type='text']::placeholder {
  color: var(--text-muted);
}

input[type='text']:focus,
select:focus {
  border-color: var(--text-platinum);
}

.text-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.text-field span {
  font-size: 12.5px;
  color: var(--text-silver);
}

.compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-silver);
  font-size: 12.5px;
}

.icon-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.micro-status {
  font-size: 10.5px;
  color: var(--text-muted);
}

.micro-note {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.mini-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--border-subtle);
  overflow: hidden;
}

.mini-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--text-titanium);
  transition: width 0.12s linear;
}

/* Center Stage Column */
.stage-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: radial-gradient(circle at 50% 38%, #0e1420 0%, #070a0f 70%);
}

.viewport-area {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

/* Silent Nordic Luxury Dropzone */
.dropzone {
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  border: 1px dashed var(--border-strong);
  background: rgba(11, 15, 23, 0.85);
  padding: 40px 32px 32px;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.dropzone.drag-over {
  border-color: var(--text-titanium);
  background: rgba(255, 255, 255, 0.04);
}

.dropzone-glyph {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.dropzone h1 {
  margin: 0 0 8px;
  font-family: var(--font-brand);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-titanium);
}

.dropzone p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-silver);
}

.dropzone-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.dropzone-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-silver);
}

.dropzone-pills span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Active Dual Monitors */
.monitors-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.monitor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-silver);
  margin-bottom: 6px;
}

.vertical-monitor-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phone-frame {
  position: relative;
  height: min(67vh, 640px);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}

#preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.source-monitor-wrap {
  width: min(300px, 26vw);
  display: flex;
  flex-direction: column;
}

.source-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
  cursor: crosshair;
}

#source-video,
#source-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#source-overlay-canvas {
  pointer-events: none;
}

.source-telemetry {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Tactile Timeline Dock */
.timeline-dock {
  flex-shrink: 0;
  padding: 10px 18px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.transport-controls,
.trim-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timecode {
  font-size: 13px;
  color: var(--text-platinum);
  padding-left: 6px;
  white-space: nowrap;
}

.timeline-track-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.timeline-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
}

.timeline-trim-region {
  position: absolute;
  height: 10px;
  left: 0%;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border-left: 2.5px solid var(--text-titanium);
  border-right: 2.5px solid var(--text-titanium);
  pointer-events: none;
}

.timeline-markers {
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
}

.cut-marker {
  position: absolute;
  top: 2px;
  width: 2px;
  height: 16px;
  background: var(--accent-rose);
  border-radius: 2px;
  transform: translateX(-1px);
}

.pin-marker {
  position: absolute;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent-steel);
  border: 1.5px solid var(--bg-obsidian);
  transform: translateX(-50%) rotate(45deg);
}

.timeline-playhead {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0%;
  width: 2px;
  background: var(--text-titanium);
  pointer-events: none;
}

.timeline-scrubber {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 24px !important;
  opacity: 0;
  cursor: pointer;
}

.trim-sliders-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.trim-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Right Inspector Icon Tabs */
.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-obsidian);
  flex-shrink: 0;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 8px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.14s ease;
}

.tab-btn:hover {
  color: var(--text-platinum);
}

.tab-btn.active {
  color: var(--text-titanium);
  border-bottom-color: var(--text-titanium);
  background: rgba(255, 255, 255, 0.03);
}

.tab-pane {
  display: none;
  flex-direction: column;
}

.tab-pane.active {
  display: flex;
}

/* Visual LUT Swatch Film Look Grid */
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.filter-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-silver);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.filter-chip:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-titanium);
}

.filter-chip.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--text-titanium);
  color: var(--text-titanium);
}

.filter-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sw-original { background: linear-gradient(135deg, #334155, #94a3b8); }
.sw-crisp { background: linear-gradient(135deg, #0f172a, #38bdf8 60%, #f8fafc); }
.sw-vibrant { background: linear-gradient(135deg, #f97316, #ec4899 55%, #06b6d4); }
.sw-bw { background: linear-gradient(135deg, #111827, #9ca3af 55%, #f9fafb); }
.sw-cinema { background: linear-gradient(135deg, #0f3d4c, #d97706 70%, #fde68a); }
.sw-glow { background: linear-gradient(135deg, #4c1d95, #f9a8d4 60%, #fffbeb); }
.sw-noir { background: linear-gradient(135deg, #000000 35%, #52525b 75%, #e4e4e7); }
.sw-sepia { background: linear-gradient(135deg, #451a03, #a16207 60%, #fef3c7); }
.sw-super8 { background: linear-gradient(135deg, #7c2d12, #ea580c 55%, #fcd34d); }
.sw-vhs { background: linear-gradient(135deg, #ef4444, #22c55e 50%, #3b82f6); }
.sw-neon { background: linear-gradient(135deg, #0e7490, #06b6d4 45%, #ec4899); }

/* Text & Cues */
.cue-composer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cue-composer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cue-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
}

.empty-cues {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 8px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
}

.cue-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
}

.cue-item-body {
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.cue-item-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-silver);
}

.cue-item-text {
  font-size: 11.5px;
  color: var(--text-platinum);
  word-break: break-word;
}

.cue-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
}

.cue-del-btn:hover {
  color: var(--accent-rose);
}

/* Export Tab: Filename, Privacy, Metadata & Quality Pills */
.filename-input-wrap {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-obsidian);
  overflow: hidden;
}

.filename-input-wrap:focus-within {
  border-color: var(--text-platinum);
}

.filename-input-wrap input[type='text'] {
  border: none;
  border-radius: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.filename-ext {
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-silver);
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px solid var(--border-subtle);
}

.privacy-strip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--accent-emerald);
  font-size: 12.5px;
  font-weight: 500;
}

.privacy-strip-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-circle-btn {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.5);
  background: rgba(5, 150, 105, 0.2);
  color: #ecfdf5;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.help-circle-btn:hover {
  background: rgba(52, 211, 153, 0.3);
}

.exif-popover {
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-obsidian);
  border: 1px solid rgba(52, 211, 153, 0.35);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-silver);
}

.exif-popover p {
  margin: 0;
}

.exif-popover strong {
  color: var(--text-titanium);
}

.exif-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent-emerald);
}

.meta-details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  overflow: hidden;
}

.meta-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-platinum);
  cursor: pointer;
  user-select: none;
}

.meta-details summary::-webkit-details-marker {
  display: none;
}

.meta-details[open] summary {
  border-bottom: 1px solid var(--border-subtle);
}

.meta-fields-stack {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 3-Column Horizontal Quality Selector */
.res-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.res-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-silver);
  cursor: pointer;
  transition: all 0.14s ease;
}

.res-card strong {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-platinum);
}

.res-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.res-card.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-titanium);
}

.res-card.active strong {
  color: var(--text-titanium);
}

.res-sub {
  font-size: 11.5px;
  font-weight: 600;
}

.res-sub.free {
  color: var(--accent-emerald);
}

.res-sub.pro {
  color: var(--accent-gold);
}

.audio-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compact-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-platinum);
  cursor: pointer;
}

.toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compact-toggle input[type='checkbox'] {
  width: 15px;
  height: 15px;
  accent-color: var(--text-titanium);
}

.engine-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-silver);
}

.export-progress-box {
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.export-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-silver);
}

.progress-track {
  height: 5px;
  border-radius: 999px;
  background: var(--bg-obsidian);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--text-titanium);
  transition: width 0.1s linear;
}

.export-result-box {
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--accent-emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.32);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.export-result-meta {
  font-size: 11px;
  color: #a7f3d0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.export-result-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Modals (Clean Nordic Glass) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 22px 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-card.modal-wide {
  max-width: 620px;
}

.modal-sub {
  display: block;
  font-size: 12.5px;
  color: var(--text-silver);
  margin-top: 2px;
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.compare-head h3 {
  margin: 0 !important;
}

.price-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.price-tag.free {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.price-tag.pro {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 184, 92, 0.35);
}

.pro-checkout-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.license-details {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.license-details summary {
  list-style: none;
  font-size: 12.5px;
  color: var(--text-silver);
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.license-details summary::-webkit-details-marker {
  display: none;
}

.license-details summary:hover {
  color: var(--text-titanium);
}

.license-details[open] .license-box {
  margin-top: 10px;
}

.modal-footer-split {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-brand-title h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-titanium);
}

.modal-lead {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-silver);
}

.defaults-grid,
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.defaults-toggles {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.compare-col {
  padding: 13px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
}

.compare-col.pro-col {
  border-color: rgba(229, 184, 92, 0.4);
}

.compare-col h3 {
  margin: 0 0 8px;
  font-family: var(--font-brand);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-titanium);
}

.compare-col ul {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-silver);
}

.license-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.license-input-row {
  display: flex;
  gap: 8px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Subtle Toasts */
.toast-root {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 150;
  pointer-events: none;
}

.toast {
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-titanium);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

@media (max-width: 1140px) {
  .source-monitor-wrap {
    display: none;
  }
  .status-cluster .mono {
    display: none;
  }
}

@media (max-width: 960px) {
  .status-cluster,
  .brand-pillar {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }
  .studio-shell {
    height: auto;
    min-height: 100vh;
  }
  .topbar {
    padding: 0 10px;
  }
  .topbar .btn span {
    display: none;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  /* Mobile-first order: 9:16 preview & timeline first, tools underneath */
  .stage-column {
    order: -1;
  }
  .phone-frame {
    height: min(62vh, 520px);
  }
  .panel-left,
  .panel-right {
    border: none;
    border-top: 1px solid var(--border-subtle);
    overflow: visible;
  }
  .defaults-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }
}
