/* ==========================================================================
   KutipClip v2: Editorial Cinema & Tactile Cutting Studio
   Dial: ENERGY 3 / RHYTHM 3 / MOTION 2
   All color pairs mathematically verified WCAG AA via contrast-check.py
   ========================================================================== */

:root {
  /* Warm Archival Paper Desk (Light Default) */
  --bg-ground: #F6F3EB;
  --bg-surface: #FFFDF9;
  --bg-subtle: #EAE5D9;
  --text-primary: #151619;
  --text-muted: #52555E;
  --border-subtle: #DDD7C9;
  --border-control: #6B6F7A;

  /* Editorial Vermilion Accent */
  --accent-bg: #C93B1A;
  --accent-fg: #FFFFFF;
  --accent-text: #B73415;

  /* Shared Obsidian Screening Console */
  --stage-ground: #0E1014;
  --stage-surface: #171A21;
  --stage-border: #2C313D;
  --stage-ink: #F5F2EB;
  --stage-muted: #A5AAB5;
  --stage-accent: #F26B46;
  --stage-accent-fg: #0E1014;

  /* Semantic Statuses */
  --status-ok-fg: #14532D;
  --status-ok-bg: #E6F4EA;
  --status-warn-fg: #7C2D12;
  --status-warn-bg: #FEF3C7;
  --status-alert-fg: #7F1D1D;
  --status-alert-bg: #FEE2E2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: 28px;
  --space-7: 40px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg-ground: #0E1014;
  --bg-surface: #171A21;
  --bg-subtle: #222630;
  --text-primary: #F5F2EB;
  --text-muted: #A8AEBA;
  --border-subtle: #2A2F3B;
  --border-control: #6F7685;

  --accent-bg: #F26B46;
  --accent-fg: #0E1014;
  --accent-text: #F68365;

  --status-ok-fg: #86EFAC;
  --status-ok-bg: #13291E;
  --status-warn-fg: #FCD34D;
  --status-warn-bg: #2E2312;
  --status-alert-fg: #FCA5A5;
  --status-alert-bg: #321719;
}

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

html {
  font-size: 16px;
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-ground);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms ease, color 200ms ease;
}

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background: var(--accent-bg);
  color: var(--accent-fg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-4);
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.shell {
  width: min(1220px, calc(100% - 28px));
  margin-inline: auto;
}

/* ================= EDITORIAL MASTHEAD ================= */
.masthead {
  padding-top: var(--space-4);
  padding-bottom: var(--space-5);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: inline-block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: block;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.masthead-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.mode-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}

.mode-tab {
  min-height: 38px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 220ms var(--ease-spring), color 180ms ease;
}

.mode-tab.active {
  background: var(--text-primary);
  color: var(--bg-surface);
}

.hero-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding-top: var(--space-5);
}

.hero-headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.8vw, 3.6rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent-text);
}

.hero-copy {
  margin: 0;
  max-width: 44ch;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ================= MAIN FLOW ================= */
.main-flow {
  padding-bottom: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--status-ok-bg);
  color: var(--status-ok-fg);
  border: 1px solid var(--status-ok-fg);
  font-size: 0.875rem;
  font-weight: 600;
  animation: slideDownIn 220ms var(--ease-spring);
}

/* ================= BAND 1: OBSIDIAN CINEMA CONSOLE ================= */
.cinema-console {
  background: var(--stage-ground);
  color: var(--stage-ink);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 48px -24px rgba(14, 16, 20, 0.45);
}

.console-top {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--stage-border);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* 35mm Film Sprocket Motif */
.sprocket-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.sprocket-strip span {
  width: 8px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid #3B4252;
  background: #171A21;
}

.console-source {
  flex: 1 1 320px;
  min-width: 0;
}

.source-inline {
  display: flex;
  gap: var(--space-2);
}

.console-input {
  flex: 1;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid #485060;
  background: var(--stage-surface);
  color: var(--stage-ink);
  font-size: 0.875rem;
}

.console-input::placeholder {
  color: var(--stage-muted);
}

.console-error {
  margin: var(--space-2) 0 0;
  padding: 6px var(--space-3);
  border-radius: var(--radius-sm);
  background: #321719;
  color: #FCA5A5;
  font-size: 0.8125rem;
}

.drop-zone {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: 6px var(--space-3);
  border: 1px dashed #485060;
  border-radius: var(--radius-md);
  background: var(--stage-surface);
}

.drop-zone.drag-over {
  border-color: var(--stage-accent);
  background: #1F232C;
}

.drop-hint {
  font-size: 0.8125rem;
  color: var(--stage-muted);
  overflow-wrap: anywhere;
}

/* Screening Monitor */
.monitor-wrap {
  padding: var(--space-4) var(--space-5) 0;
}

.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060709;
  border: 1px solid var(--stage-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-empty {
  padding: var(--space-5);
  text-align: center;
  max-width: 44ch;
  color: var(--stage-muted);
  font-size: 0.9375rem;
}

.empty-slate-mark {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: 4px 10px;
  border: 1px solid #3B4252;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--stage-ink);
}

.yt-mount,
.yt-mount iframe,
.local-video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.local-video {
  object-fit: contain;
  background: #000;
}

.crop-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crop-box {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 2px solid var(--stage-accent);
  background: rgba(242, 107, 70, 0.1);
  transition: left 180ms var(--ease-spring), width 220ms var(--ease-spring);
}

.crop-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--stage-accent);
  color: var(--stage-accent-fg);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Interactive Visual Timeline Scrubber */
.timeline-deck {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--stage-muted);
}

.tc-pill strong {
  color: var(--stage-ink);
  font-size: 0.875rem;
  margin-left: 4px;
}

.tc-duration {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  color: var(--stage-ink);
}

.timeline-track {
  position: relative;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  cursor: pointer;
  overflow: hidden;
  touch-action: none;
}

.timeline-ticks {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(245, 242, 235, 0.12) 0px,
    rgba(245, 242, 235, 0.12) 1px,
    transparent 1px,
    transparent 24px
  );
  background-size: 100% 10px;
  background-repeat: no-repeat;
  background-position: top;
}

.timeline-range {
  position: absolute;
  top: 6px;
  bottom: 6px;
  background: rgba(242, 107, 70, 0.24);
  border-top: 2px solid var(--stage-accent);
  border-bottom: 2px solid var(--stage-accent);
  border-radius: 4px;
  transition: left 180ms var(--ease-spring), width 180ms var(--ease-spring);
}

.range-handle {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 6px;
  background: var(--stage-accent);
  border-radius: 2px;
}

.handle-in { left: 0; }
.handle-out { right: 0; }

.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #F5F2EB;
  pointer-events: none;
  transition: left 140ms linear;
}

/* Tactile Hardware Transport Buttons */
.transport-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-1);
}

.timecode-big {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
}

.tc-slash,
#durationTc {
  color: var(--stage-muted);
  font-size: 0.9375rem;
}

.transport-keys {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hw-btn {
  min-height: 44px;
  padding: 0 var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  border: 1px solid #3C4352;
  background: #1E222B;
  color: var(--stage-ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 0 #07080A;
  transition: transform 90ms ease, background-color 150ms ease, border-color 150ms ease;
}

.hw-btn:hover {
  background: #272C38;
  border-color: #5A6376;
}

.hw-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #07080A;
}

.hw-btn[aria-pressed="true"] {
  background: var(--stage-accent);
  color: var(--stage-accent-fg);
  border-color: var(--stage-accent);
}

.hw-btn-accent {
  background: var(--stage-accent);
  color: var(--stage-accent-fg);
  border-color: var(--stage-accent);
  font-weight: 700;
}

.hw-btn-accent:hover {
  filter: brightness(1.06);
  background: var(--stage-accent);
}

.keycap {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
}

/* ================= BAND 2: ASYMMETRIC STUDIO WORKBENCH ================= */
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.workbench-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}

.sheet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-width: 0;
}

.sheet-head {
  margin-bottom: var(--space-4);
}

.sheet-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.sheet-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
}

.sheet-sub {
  margin: var(--space-1) 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Forms */
.clip-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.time-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.field-input,
.field-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-control);
  background: var(--bg-ground);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.field-input.mono,
.field-textarea.mono {
  font-family: var(--font-mono);
}

.field-textarea {
  resize: vertical;
  field-sizing: content;
  min-height: 80px;
}

.field-range {
  width: 100%;
  min-height: 44px;
  accent-color: var(--accent-bg);
}

.slider-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.8125rem;
}

.slider-val {
  color: var(--text-muted);
}

/* Visual Aspect Ratio Silhouette Picker */
.ratio-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.ratio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-control);
  background: var(--bg-ground);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 180ms var(--ease-spring), border-color 150ms ease, background-color 150ms ease;
}

.ratio-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-text);
}

.ratio-card.active {
  border: 2px solid var(--accent-bg);
  background: var(--bg-surface);
}

.frame-silhouette {
  display: block;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.sil-16-9 { width: 34px; height: 20px; }
.sil-9-16 { width: 18px; height: 30px; }
.sil-1-1  { width: 24px; height: 24px; }

.ratio-card.active .frame-silhouette {
  border-color: var(--accent-text);
}

.ratio-code {
  font-size: 0.8125rem;
  font-weight: 700;
}

.ratio-name {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Primary & Secondary Buttons */
.action-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.btn-primary,
.btn-outline,
.btn-dark {
  min-height: 44px;
  padding: 0 var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease, background-color 150ms ease, border-color 150ms ease;
}

.btn-primary:active,
.btn-outline:active,
.btn-dark:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-bg);
  color: var(--accent-fg);
  border: 1px solid transparent;
  font-weight: 700;
  padding-inline: var(--space-5);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(0.93);
}

.btn-dark {
  background: var(--text-primary);
  color: var(--bg-surface);
  border: 1px solid transparent;
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-control);
}

.btn-outline:hover:not(:disabled) {
  background: var(--bg-subtle);
}

.btn-primary:disabled,
.btn-outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.field-error {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--status-alert-bg);
  color: var(--status-alert-fg);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Render Progress */
.render-box {
  padding: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-ground);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.render-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.progress-track {
  height: 10px;
  width: 100%;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-bg);
  transition: width 120ms linear;
}

/* Transcript Moments */
.moments-list {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.moment-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-ground);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  animation: cardReveal 280ms var(--ease-spring);
}

.moment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.moment-tc {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-text);
}

.moment-reason {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--status-warn-bg);
  color: var(--status-warn-fg);
  font-size: 0.72rem;
  font-weight: 600;
}

.moment-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.moment-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ================= FILM-SLATE CLIP BIN ================= */
.export-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.clips-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.clip-card {
  border-radius: var(--radius-md);
  background: var(--bg-ground);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  animation: cardReveal 280ms var(--ease-spring);
}

.slate-stripe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 6px var(--space-3);
  background: var(--stage-ground);
  color: var(--stage-ink);
  font-size: 0.72rem;
  font-weight: 600;
}

.slate-num {
  color: var(--stage-accent);
}

.clip-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.clip-card-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.clip-card-quote {
  margin: 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--border-control);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.clip-card-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: 4px;
}

.empty-box {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  background: var(--bg-ground);
  border: 1px dashed var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.empty-box p {
  margin: 0;
}

/* ================= FOOTER ================= */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-5);
}

.footer-inner p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 82ch;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE STATE 2: TABLET (<= 980px) ================= */
@media (max-width: 980px) {
  .workbench-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= RESPONSIVE STATE 3: PHONE (320px - 679px) ================= */
@media (max-width: 679px) {
  .shell {
    width: calc(100% - 20px);
  }

  .sprocket-strip {
    display: none;
  }

  .console-top,
  .monitor-wrap,
  .timeline-deck,
  .sheet-card {
    padding-inline: var(--space-4);
  }

  .source-inline {
    flex-direction: column;
  }

  .masthead-controls,
  .mode-switch {
    width: 100%;
  }

  .mode-tab {
    flex: 1;
  }

  .time-pair,
  .ratio-picker {
    grid-template-columns: 1fr;
  }

  .ratio-card {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 54px;
    gap: var(--space-3);
  }

  .action-row .btn-primary,
  .action-row .btn-outline,
  .action-row .btn-dark {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
