:root {
  color-scheme: light;
  --bg: #f4f4f4;
  --panel: #ffffff;
  --text: #111111;
  --muted: #676767;
  --line: #d6d6d6;
  --dark: #111111;
  --danger: #9b1c1c;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button, input, select { font: inherit; }

button, select, input[type="text"], input[type="number"] {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111;
}

button { padding: 0 12px; cursor: pointer; }
button:hover { background: #f3f3f3; }
button:disabled { opacity: .5; cursor: not-allowed; }

input[type="text"], input[type="number"], select {
  width: 100%;
  padding: 7px 9px;
}

input[type="range"] { width: 100%; }

.page {
  width: min(1500px, calc(100% - 32px));
  margin: 18px auto 60px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 4px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -1px;
}

.hero p { margin: 0; color: var(--muted); }

.add-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.add-file-button:hover, .add-file-button.dragging { background: #2b2b2b; }
.add-file-button input { display: none; }

.upload-progress-wrap { margin-top: 8px; }
.top-upload-progress { margin: 0 0 10px; }

.workspace { display: grid; gap: 18px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  gap: 18px;
  align-items: stretch;
}

.editor-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preview-panel { flex: 0 0 auto; }
.source-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.trim-panel { flex: 0 0 auto; }
.settings-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 { margin: 0; font-size: 19px; }

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 8px;
}

.video-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.preview-skip-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
}

.preview-skip-controls button {
  min-height: 32px;
  padding: 0 13px;
  font-size: 12px;
}

.source-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
}

.info-item {
  background: #fff;
  padding: 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.info-value {
  display: block;
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trim-section { display: grid; gap: 11px; }

.trim-times-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.trim-divider { background: var(--line); width: 1px; }
.trim-point { min-width: 0; }

.trim-label-group {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.trim-label-group label { font-size: 13px; font-weight: 700; }
.time-format { font-size: 11px; color: var(--muted); }

.trim-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}

.trim-controls button {
  flex: 0 0 69px;
  width: 69px;
  min-height: 32px;
  padding: 0 4px;
  font-size: 11px;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trim-controls input {
  flex: 0 1 112px;
  width: 112px;
  min-width: 84px;
  max-width: 112px;
  min-height: 32px;
  padding: 5px 5px;
  font-size: 12px;
  text-align: center;
}

.dual-range-wrap {
  position: relative;
  height: 32px;
  margin: 0;
}

.dual-range-track, .dual-range-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 4px;
  border-radius: 999px;
}

.dual-range-track { background: #d7d7d7; }
.dual-range-fill { right: auto; background: #111; }

.dual-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.dual-range-input::-webkit-slider-runnable-track { height: 4px; background: transparent; border: 0; }
.dual-range-input::-webkit-slider-thumb {
  width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  border: 2px solid #111; background: #fff; appearance: none; -webkit-appearance: none;
  pointer-events: auto; cursor: ew-resize;
}
.dual-range-input::-moz-range-track { height: 4px; background: transparent; border: 0; }
.dual-range-input::-moz-range-progress { background: transparent; }
.dual-range-input::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid #111;
  background: #fff; pointer-events: auto; cursor: ew-resize;
}
.start-range { z-index: 3; }
.end-range { z-index: 4; }

.trim-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  min-height: 35px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 13px;
}

.trim-bottom-divider {
  width: 1px;
  height: 100%;
  min-height: 25px;
  background: var(--line);
}

.set-duration-controls,
.duration-display {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.set-duration-controls {
  justify-content: flex-start;
}

.set-duration-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.check-point-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.check-point-controls button {
  min-height: 27px;
  height: 27px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.duration-display {
  justify-content: flex-end;
  align-self: center;
  white-space: nowrap;
}

.set-duration-controls > span,
.duration-display > span {
  font-weight: 700;
}

.set-duration-controls button {
  min-height: 26px;
  height: 26px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.settings-panel .section-heading { margin-bottom: 9px; }

.compact-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}

.field { display: grid; gap: 5px; margin-bottom: 10px; }
.field label { font-size: 12px; font-weight: 700; }

.compact-settings .compact-field {
  display: grid;
  grid-template-columns: minmax(72px, .82fr) minmax(96px, 1.18fr);
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
}

.compact-settings .compact-field label {
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}

.compact-settings .compact-field select {
  min-height: 32px;
  padding: 4px 5px;
  font-size: 12px;
}

.hint { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 3px 0 0; }

.custom-resolution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 9px 0;
}
.custom-resolution .full { grid-column: 1 / -1; }

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.switch-label input { width: 15px; height: 15px; }

.stream-copy {
  padding: 8px 9px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 9px 0;
}

.primary { background: var(--dark); color: #fff; border-color: var(--dark); }
.primary:hover { background: #2b2b2b; }

.convert-button {
  width: 100%;
  min-height: 42px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
}

.danger { color: var(--danger); border-color: #d8a4a4; background: #fff; }
.progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #dedede; }
.progress-track.large { height: 14px; }
.progress-fill { height: 100%; width: 0%; background: #111; transition: width .2s linear; }
.row { display: flex; gap: 10px; margin-bottom: 7px; }
.between { justify-content: space-between; }
.conversion-stats { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin: 9px 0 14px; }
.complete-area { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.download-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 8px; background: #111; color: #fff; text-decoration: none; font-weight: 700; }
.error-box { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; background: #fff3f3; border: 1px solid #e0b4b4; color: #751313; padding: 12px; border-radius: 8px; font-size: 12px; margin-top: 14px; }
.hidden { display: none !important; }

@media (max-width: 1120px) {
  .editor-grid { grid-template-columns: 1fr; }
  .source-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-panel { flex: 0 0 auto; }
}

@media (max-width: 760px) {
  .page { width: min(100% - 16px, 1500px); margin-top: 12px; }
  .hero { align-items: flex-start; flex-direction: column; }
  .trim-times-row { grid-template-columns: 1fr; gap: 10px; }
  .trim-divider { width: 100%; height: 1px; }
  .compact-settings { grid-template-columns: 1fr; }
  .source-info { grid-template-columns: 1fr 1fr; }
  .stream-copy { align-items: flex-start; flex-direction: column; }
}


.inline-conversion {
  margin-top: 9px;
}

.inline-progress-row,
.inline-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.inline-progress-row {
  margin-bottom: 5px;
}

.inline-progress-meta {
  margin-top: 4px;
}

.inline-progress-track {
  height: 8px;
}

.size-summary {
  min-height: 14px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: 6px;
}

.download-button {
  min-height: 38px;
  font-size: 14px;
}

.download-button.disabled {
  background: #d8d8d8;
  color: #8a8a8a;
  border: 1px solid #cfcfcf;
  pointer-events: none;
}

.compact-cancel {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}


.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.action-buttons .convert-button,
.extract-audio-button {
  width: 100%;
  min-height: 42px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
  font-weight: 700;
  font-size: 14px;
}

.extract-audio-button {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.extract-audio-button:hover:not(:disabled) {
  background: #f3f3f3;
}

@media (max-width: 560px) {
  .action-buttons {
    grid-template-columns: 1fr;
  }
}


.extract-format-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 175px);
  align-items: center;
  justify-content: end;
  gap: 7px;
  margin: 6px 0 7px;
}

.extract-format-row label {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.extract-format-row select {
  min-height: 32px;
  padding: 4px 7px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .extract-format-row {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}


/* One-pixel typography increase inside Output Settings only.
   The section title and Convert/Extract action buttons intentionally retain their existing sizes. */
.settings-panel > .field label,
.settings-panel .custom-resolution .field label {
  font-size: 13px;
}

.settings-panel .custom-resolution input[type="number"] {
  font-size: 17px;
}


@media (max-width: 760px) {
  .trim-bottom-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .trim-bottom-divider {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }

  .duration-display {
    justify-content: flex-start;
  }
}

/* Shared theme for Image Converter, YouTube Downloader and Video Editor. */
:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --panel: #fff;
  --border: #d7e2ea;
  --line: var(--border);
  --text: #182637;
  --muted: #526477;
  --accent: #136c58;
  --accent-hover: #0e5848;
  --glow: #d8ebef;
  --panel-hover: #f0f8f7;
  --soft-2: #e4f3ee;
  --button-bg: #fff;
  --input-bg: #fff;
  --progress-bg: #e4ecee;
  --progress-active: #b47611;
  --danger: #a32a38;
  --radius: 19px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101827;
  --panel: #192437;
  --border: #324157;
  --text: #f4f7fb;
  --muted: #aebdd0;
  --accent: #8ae5c5;
  --accent-hover: #b7f6df;
  --glow: #23354b;
  --panel-hover: #203046;
  --soft-2: #2b3a51;
  --button-bg: #192437;
  --input-bg: #141f30;
  --progress-bg: #2d3d51;
  --progress-active: #e9a94f;
  --danger: #ff9fac;
}
html { min-height: 100%; scrollbar-gutter: stable both-edges; background: var(--bg); }
html, body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); }
body {
  min-height: 100vh; line-height: 1.55; padding: 0 20px 80px;
  background: radial-gradient(ellipse at 85% 2%, var(--glow) 0, transparent 45%), var(--bg);
}
/* The navigation + title share the exact 1050px centreline and button metrics. */
.page { width: min(1050px, 100%); margin: 0 auto; }
.page-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 28px 0 8px; }
.home-link, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 9px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--button-bg); color: var(--text);
  font: inherit; font-size: .88rem; font-weight: 650; line-height: 1.35;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.home-link:hover, .theme-toggle:hover { border-color: var(--accent); background: var(--panel-hover); }
.theme-toggle svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, [data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
.hero { display: block; padding: 0; margin: 0; text-align: left; }
.hero h1 { max-width: none; margin: 0; font-size: clamp(1.863rem, 4.86vw, 3.564rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; color: var(--text); }
.video-toolbar { display: flex; justify-content: flex-end; margin: 25px 0 16px; }
.add-file-button {
  min-height: 46px; padding: 0 19px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel); color: var(--accent); font-size: 15px; font-weight: 650;
}
.add-file-button:hover, .add-file-button.dragging { background: var(--panel-hover); border-color: var(--accent); }
/* Allow the editor's two-column controls to retain their usable original width,
   while navigation and title align to the shared 1050px layout. */
.workspace, .top-upload-progress {
  width: min(1500px, calc(100vw - 40px));
  position: relative; left: 50%; transform: translateX(-50%);
}
.workspace { gap: 16px; }
.editor-grid, .editor-column { gap: 16px; }
.panel {
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 19px; padding: 19px; box-shadow: 0 8px 32px -30px #0008;
}
.section-heading h2 { color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.section-heading #previewTime { color: var(--muted); }
button, select, input[type="text"], input[type="number"] {
  border-color: var(--border); border-radius: 9px; background: var(--input-bg); color: var(--text);
}
button:hover:not(:disabled) { background: var(--panel-hover); border-color: var(--accent); }
button:disabled { opacity: .48; }
.info-item { background: var(--panel); }
.info-label, .time-format, .hint, .inline-progress-row, .inline-progress-meta,
.size-summary, .hero p { color: var(--muted); }
.info-value { color: var(--text); font-weight: 650; }
.source-info { border-color: var(--border); background: var(--border); }
.trim-divider, .trim-bottom-divider { background: var(--border); }
.trim-bottom-row, .stream-copy { background: var(--panel-hover); border-color: var(--border); }
.dual-range-track { background: var(--progress-bg); }
.dual-range-fill { background: var(--accent); }
.dual-range-input::-webkit-slider-thumb { border-color: var(--accent); background: var(--panel); }
.dual-range-input::-moz-range-thumb { border-color: var(--accent); background: var(--panel); }
input[type="checkbox"], input[type="range"] { accent-color: var(--accent); }
.progress-track { background: var(--progress-bg); }
.progress-fill { background: var(--progress-active); }
.primary, .convert-button, .download-button:not(.disabled) {
  background: #136c58; border-color: #136c58; color: white; font-weight: 650;
}
.primary:hover:not(:disabled), .convert-button:hover:not(:disabled), .download-button:not(.disabled):hover {
  background: #0e5848; border-color: #0e5848; color: white;
}
[data-theme="dark"] .primary, [data-theme="dark"] .convert-button,
[data-theme="dark"] .download-button:not(.disabled) {
  background: #8ae5c5; border-color: #8ae5c5; color: #101827;
}
[data-theme="dark"] .primary:hover:not(:disabled), [data-theme="dark"] .convert-button:hover:not(:disabled),
[data-theme="dark"] .download-button:not(.disabled):hover { background: #b7f6df; border-color: #b7f6df; }
.extract-audio-button { color: var(--text); background: var(--panel); border-color: var(--border); font-weight: 650; }
.extract-audio-button:hover:not(:disabled) { background: var(--panel-hover); border-color: var(--accent); }
.download-button.disabled { background: var(--progress-bg); color: var(--muted); border-color: var(--border); }
.danger { color: var(--danger); border-color: var(--border); background: var(--panel); }
.error-box { color: var(--danger); border-color: var(--border); background: var(--panel-hover); }
.home-link:focus-visible, .theme-toggle:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, .add-file-button:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1300px) { .editor-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .page-nav { padding: 22px 0 4px; }
  .workspace, .top-upload-progress { width: min(1500px, calc(100vw - 40px)); }
  .editor-grid { grid-template-columns: 1fr; }
  .hero { display: block; }
}
@media (max-width: 500px) {
  body { padding: 0 14px 44px; }
  .page-nav { gap: 8px; padding: 22px 0 4px; }
  .home-link, .theme-toggle { padding: 9px 11px; font-size: .78rem; gap: 6px; }
  .theme-toggle svg { width: 16px; height: 16px; flex-basis: 16px; }
  .workspace, .top-upload-progress { width: calc(100vw - 28px); }
  .video-toolbar { margin-top: 25px; }
  .panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }


/* V2: narrower, horizontally centred workspace with matching left/right margins. */
.page { width: min(1240px, 100%); }
.page-nav { width: 100%; margin-inline: auto; }
.hero { width: min(1050px, 100%); margin-inline: auto; }
.workspace, .top-upload-progress {
  width: min(1240px, 100%);
  position: static;
  left: auto;
  transform: none;
  margin-inline: auto;
}
.editor-grid { grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); }
.hero { margin-bottom: 20px; }
.video-stage { background: var(--panel-hover); border: 1.5px dashed var(--border); }
.video-stage:not(.has-video) video { visibility: hidden; }
.video-stage.has-video { background: #000; border: 0; }
.video-upload-placeholder {
  position: absolute; inset: 0; z-index: 5; display: flex;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 12px; padding: 25px 20px; text-align: center;
  color: var(--text); cursor: pointer; background: var(--panel-hover);
  transition: background .15s ease, border-color .15s ease;
}
.video-upload-placeholder:hover, .video-upload-placeholder.dragging { background: var(--soft-2); }
.video-upload-placeholder input { display: none; }
.upload-choice {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 43px; padding: 0 23px; border-radius: 11px;
  background: #136c58; color: #fff; font-weight: 700; font-size: 14px;
}
.video-upload-placeholder:hover .upload-choice { background: #0e5848; }
.upload-help { font-size: 12px; color: var(--muted); }
.video-upload-placeholder:focus-within { outline: 3px solid var(--accent); outline-offset: -5px; }
.video-stage.has-video .video-upload-placeholder {
  inset: 10px 10px auto auto; width: auto; height: auto; min-height: auto;
  background: transparent; padding: 0; border: 0; border-radius: 9px;
}
.video-stage.has-video .upload-help { display: none; }
.video-stage.has-video .upload-choice {
  min-height: 32px; padding: 0 12px; border-radius: 8px;
  background: rgba(17, 31, 45, .88); color: #fff; font-size: 12px;
  border: 1px solid rgba(255,255,255,.35);
}
.video-stage.has-video .upload-choice { font-size: 0; }
.video-stage.has-video .upload-choice::before { font-size: 12px; content: 'Change file'; }
.video-stage.has-video .video-upload-placeholder:hover .upload-choice { background: #136c58; }
/* Keep the trim controls usable in a narrower settings column. */
.trim-controls button { flex: 0 0 55px; width: 55px; }
.trim-controls input { min-width: 75px; flex: 1 1 75px; }
@media (max-width: 1200px) { .editor-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .page, .workspace, .top-upload-progress { width: 100%; }
  .page-nav, .hero { width: 100%; }
  .video-upload-placeholder { gap: 9px; padding: 16px 12px; }
  .upload-choice { min-height: 38px; }
}
/* V3: align the Video Editor title with the Preview panel heading. */
.hero { width: 100%; padding-left: 20px; }
@media (max-width: 500px) { .hero { padding-left: 15px; } }
