.vox-combiner-page { min-height: 100vh; background: var(--bg); color: var(--text-main); }
.combiner-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border-subtle); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.combiner-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: min(1400px, calc(100vw - 2rem)); min-height: 62px; margin: 0 auto; }
.combiner-brand { display: flex; align-items: center; gap: .65rem; color: var(--text-main); text-decoration: none; }
.combiner-brand__mark { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 11px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800; }
.combiner-brand strong, .combiner-brand small { display: block; }
.combiner-brand small { margin-top: .1rem; color: var(--text-muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.combiner-header__actions { display: flex; align-items: center; gap: .7rem; }
.combiner-local-badge { padding: .42rem .65rem; border: 1px solid color-mix(in srgb, #3ecf8e 45%, transparent); border-radius: 999px; color: var(--text-muted); font-size: .75rem; font-weight: 650; }
.combiner-shell { display: grid; grid-template-columns: minmax(240px, 275px) minmax(0, 1fr); gap: .8rem; width: min(1400px, calc(100vw - 2rem)); margin: .8rem auto 3.5rem; align-items: start; }
.combiner-panel { border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); padding: .82rem; }
.combiner-panel h1, .combiner-panel h2 { margin: .12rem 0 .55rem; font-size: 1.08rem; }
.combiner-panel-heading, .combiner-timeline-heading, .combiner-wall-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.combiner-eyebrow { margin: 0; color: var(--accent); font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.combiner-help, .combiner-wall-note { color: var(--text-muted); font-size: .78rem; line-height: 1.5; }
.combiner-count { display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .45rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); font-size: .8rem; font-weight: 750; }
.combiner-full-button { width: 100%; justify-content: center; }
.combiner-queue-panel { position: sticky; top: 88px; max-height: calc(100vh - 105px); overflow: auto; }
.combiner-queue { display: grid; gap: .48rem; margin-top: .65rem; }
.combiner-empty { margin: 0; padding: 1rem .75rem; border: 1px dashed var(--border-subtle); border-radius: 11px; color: var(--text-muted); font-size: .78rem; line-height: 1.5; text-align: center; }
.combiner-queue-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .42rem .52rem; align-items: center; padding: .5rem; border: 1px solid var(--border-subtle); border-radius: 10px; background: color-mix(in srgb, var(--bg) 72%, transparent); cursor: grab; }
.combiner-queue-item:active { cursor: grabbing; }
.combiner-queue-item.is-dragging { opacity: .55; }
.combiner-queue-item strong, .combiner-queue-item span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combiner-queue-item span { margin-top: .18rem; color: var(--text-muted); font-size: .71rem; }
.combiner-queue-preview { display: block; width: 100%; height: 100%; border-radius: inherit; background: #000; object-fit: cover; }
.combiner-queue-info { min-width: 0; }
.combiner-queue-actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr auto; gap: .35rem; }
.combiner-queue-actions .btn { justify-content: center; min-height: 1.85rem; padding: .3rem .45rem; font-size: .65rem; }
.combiner-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.combiner-wall-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .55rem; }
.combiner-wall-actions .btn { min-height: 2.25rem; padding: .45rem .7rem; }
.combiner-time { min-width: 9rem; padding: .45rem .6rem; border-radius: 8px; background: color-mix(in srgb, var(--text-main) 7%, transparent); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: center; }
.combiner-wall { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: 1fr; gap: 2px; width: min(100%, 980px); aspect-ratio: 16 / 9; margin: .65rem auto 0; overflow: hidden; border: 1px solid #20242b; border-radius: 12px; background: #000; }
.combiner-wall.is-dragover { outline: 3px solid var(--accent); outline-offset: 3px; }
.combiner-wall-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: .4rem; padding: 1rem; color: #9ba3b2; text-align: center; pointer-events: none; }
.combiner-wall-empty strong { color: #f5f7fb; }
.combiner-wall-tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #080a0e; cursor: pointer; }
.combiner-wall-tile[data-size="full"] { grid-column: span 12; }
.combiner-wall-tile[data-size="half"] { grid-column: span 6; }
.combiner-wall-tile[data-size="third"] { grid-column: span 4; }
.combiner-wall-tile[data-size="quarter"] { grid-column: span 3; }
.combiner-wall-tile.is-selected { z-index: 2; outline: 3px solid var(--accent); outline-offset: -3px; }
.combiner-wall-tile video { width: 100%; height: 100%; display: block; background: #000; object-fit: cover; }
.combiner-wall-tile[data-size="full"] video { object-fit: contain; }
.combiner-wall-tile__label { position: absolute; left: .4rem; bottom: .4rem; max-width: calc(100% - .8rem); padding: .28rem .45rem; overflow: hidden; border-radius: 6px; background: rgba(0, 0, 0, .68); color: #fff; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.combiner-wall-note { margin: .6rem 0 0; }
.combiner-selection-status { padding: .35rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--text-muted); font-size: .72rem; }
.combiner-inspector-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr) auto; gap: .7rem; align-items: end; }
.combiner-inspector-grid label, .combiner-duration-controls label { display: grid; gap: .35rem; color: var(--text-muted); font-size: .72rem; font-weight: 650; }
.combiner-inspector-grid input, .combiner-inspector-grid select, .combiner-duration-controls input { width: 100%; min-height: 2.45rem; padding: .58rem .65rem; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg); color: var(--text-main); font: inherit; }
.combiner-remove { min-height: 2.45rem; justify-content: center; border-color: color-mix(in srgb, #e35d6a 45%, var(--border-subtle)); color: #d94d5c; }
.combiner-duration-controls { display: flex; align-items: end; gap: .45rem; }
.combiner-duration-controls label { grid-template-columns: minmax(0, 1fr) minmax(3rem, 5rem) auto; min-width: 0; max-width: 100%; overflow-wrap: anywhere; align-items: center; }
.combiner-duration-controls input { min-height: 2.15rem; }
.combiner-duration-controls .btn { min-height: 2.15rem; padding: .35rem .55rem; }
.combiner-scrubber-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--text-muted); font-size: .75rem; font-weight: 650; }
.combiner-scrubber-label output { color: var(--text-main); font-variant-numeric: tabular-nums; }
.combiner-scrubber { width: 100%; accent-color: var(--accent); cursor: ew-resize; }
.combiner-ruler { display: flex; justify-content: space-between; color: var(--text-muted); font-size: .62rem; }
.combiner-tracks { display: grid; gap: .45rem; margin-top: .75rem; }
.combiner-track { display: grid; grid-template-columns: minmax(95px, 170px) 1fr; gap: .65rem; align-items: center; }
.combiner-track-name { overflow: hidden; color: var(--text-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.combiner-track-lane { position: relative; height: 1.9rem; overflow: hidden; border-radius: 7px; background: #090b0f; }
.combiner-track-bar { position: absolute; top: .22rem; bottom: .22rem; min-width: 3px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 75%, #fff); border-radius: 5px; background: color-mix(in srgb, var(--accent) 65%, #111827); color: #fff; cursor: pointer; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.combiner-track-bar.is-selected { outline: 2px solid #fff; outline-offset: 1px; }
.combiner-playhead-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #ffca55; pointer-events: none; }
.combiner-footer { display: flex; justify-content: center; gap: 1rem; padding: 1rem; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: .75rem; }
.combiner-footer a { color: var(--accent); }
@media (max-width: 1050px) {
  .combiner-shell { grid-template-columns: 1fr; width: min(960px, calc(100vw - 1.5rem)); }
  .combiner-queue-panel { position: static; max-height: none; }
  .combiner-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combiner-inspector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .combiner-header__inner { width: calc(100vw - 1rem); }
  .combiner-header__actions .combiner-local-badge, .combiner-header__actions > .btn { display: none; }
  .combiner-queue { grid-template-columns: 1fr; }
  .combiner-panel-heading, .combiner-timeline-heading, .combiner-wall-toolbar { display: grid; }
  .combiner-wall-actions { justify-content: flex-start; }
  .combiner-inspector-grid { grid-template-columns: 1fr; }
  .combiner-duration-controls { flex-wrap: wrap; }
  .combiner-track { grid-template-columns: 80px 1fr; }
  .combiner-footer { display: grid; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .combiner-wall-tile video { scroll-behavior: auto; } }

/* Studio v1 additions */
.combiner-projectbar { position: sticky; top: 62px; z-index: 25; border-bottom: 1px solid var(--border-subtle); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); }
.combiner-projectbar__inner { display: flex; align-items: center; gap: .55rem; width: min(1400px, calc(100vw - 2rem)); min-height: 50px; margin: 0 auto; }
.combiner-project-name { display: grid; gap: .2rem; min-width: 210px; color: var(--text-muted); font-size: .64rem; font-weight: 700; text-transform: uppercase; }
.combiner-project-name input { min-height: 2rem; padding: .35rem .55rem; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--surface); color: var(--text-main); font: inherit; font-size: .78rem; text-transform: none; }
.combiner-project-actions { display: flex; flex: 1; flex-wrap: wrap; gap: .4rem; }
.combiner-project-actions .btn { min-height: 2rem; padding: .35rem .58rem; font-size: .7rem; }
.combiner-divider { align-self: stretch; width: 1px; background: var(--border-subtle); }
.combiner-autosave-status { margin: 0 0 0 auto; color: var(--text-muted); font-size: .68rem; white-space: nowrap; }
.combiner-recovery { display: flex; justify-content: center; align-items: center; gap: .55rem; padding: .45rem 1rem; border-top: 1px solid color-mix(in srgb, #d39b30 35%, transparent); background: color-mix(in srgb, #d39b30 10%, var(--surface)); font-size: .75rem; }
.combiner-recovery[hidden] { display: none; }
.combiner-recovery .btn { min-height: 1.9rem; padding: .3rem .55rem; font-size: .68rem; }
.combiner-queue-panel { top: 122px; max-height: calc(100vh - 136px); scrollbar-width: thin; }
.combiner-import-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.combiner-import-buttons .btn { justify-content: center; }
.combiner-queue-group { display: grid; gap: .42rem; }
.combiner-queue-group + .combiner-queue-group { margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--border-subtle); }
.combiner-queue-group__heading { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.combiner-queue-item.is-missing { border-color: color-mix(in srgb, #e35d6a 60%, var(--border-subtle)); }
.combiner-queue-preview-shell { position: relative; grid-row: span 1; width: 76px; height: 48px; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 7px; background: #080b10; }
.combiner-preview-toggle { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: .24rem; width: 100%; border: 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; cursor: pointer; font: inherit; font-size: .58rem; font-weight: 750; }
.combiner-preview-toggle > span:first-child { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: rgba(255,255,255,.92); color: #111827; font-size: .52rem; }
.combiner-queue-item:not(.is-preview-open) .combiner-preview-toggle > span:last-child { display: none; }
.combiner-queue-waveform { width: 100%; height: 100%; border-radius: inherit; background: #090b0f center / cover no-repeat; }
.combiner-queue-waveform.is-placeholder { background: linear-gradient(135deg, #17142a, #392e63); }
.combiner-inline-player { display: block; }
.combiner-queue-item.is-preview-open .combiner-queue-preview-shell { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 7; }
.combiner-queue-item.is-preview-open.is-audio .combiner-queue-preview-shell { aspect-ratio: auto; min-height: 78px; }
.combiner-queue-item.is-preview-open .combiner-queue-info { grid-column: 1 / -1; }
.combiner-queue-item.is-preview-open .combiner-preview-toggle { inset: .35rem .35rem auto auto; width: auto; min-height: 1.7rem; padding: .25rem .4rem; border-radius: 7px; background: rgba(0,0,0,.76); z-index: 2; }
.combiner-queue-item:not(.is-preview-open) audio.combiner-inline-player { display: none; }
.combiner-queue-item.is-preview-open audio.combiner-inline-player { position: absolute; left: .4rem; right: .4rem; bottom: .35rem; width: calc(100% - .8rem); height: 32px; }
.combiner-proxy-row { display: flex; grid-column: 1 / -1; align-items: center; gap: .35rem; }
.combiner-proxy-row .btn { flex: 1; min-height: 1.7rem; padding: .26rem .4rem; font-size: .6rem; }
.combiner-proxy-row progress { width: 100%; height: .5rem; }
.combiner-color-control { display: flex; align-items: center; gap: .35rem; color: var(--text-muted); font-size: .7rem; }
.combiner-color-control input { width: 2.2rem; height: 2rem; padding: .1rem; border: 1px solid var(--border-subtle); border-radius: 7px; background: var(--surface); }
.combiner-wall-tile.is-muted::after, .combiner-wall-tile.is-solo::after { position: absolute; top: .35rem; right: .35rem; padding: .25rem .38rem; border-radius: 5px; background: rgba(0,0,0,.72); color: #fff; font-size: .62rem; font-weight: 750; }
.combiner-wall-tile.is-muted::after { content: "MUTED"; }
.combiner-wall-tile.is-solo::after { content: "SOLO"; }
.combiner-inspector-grid { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.combiner-inspector-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.combiner-inspector-actions .btn { min-height: 2.2rem; padding: .45rem .65rem; font-size: .72rem; }
.combiner-timeline-options { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-top: .75rem; padding: .65rem .75rem; border: 1px solid var(--border-subtle); border-radius: 10px; background: color-mix(in srgb, var(--bg) 65%, transparent); }
.combiner-timeline-options label { display: flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: .4rem; color: var(--text-muted); font-size: .72rem; font-weight: 650; }
.combiner-timeline-options input[type="range"] { width: 110px; accent-color: var(--accent); }
.combiner-timeline-viewport { max-width: 100%; overflow-x: auto; padding-bottom: .25rem; }
.combiner-tracks { width: calc(100% * var(--timeline-zoom, 1)); min-width: 100%; }
.combiner-track-bar { touch-action: none; }
.combiner-trim-handle { position: absolute; top: 0; bottom: 0; width: 9px; border: 0; background: rgba(255,255,255,.78); cursor: ew-resize; touch-action: none; }
.combiner-trim-handle--start { left: 0; }
.combiner-trim-handle--end { right: 0; }
.combiner-track-bar__label { display: block; padding: .14rem .7rem; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.combiner-track-bar.has-thumbnails { background-size: auto 100%; background-repeat: repeat-x; background-color: color-mix(in srgb, var(--accent) 45%, #111827); }
.combiner-track-bar.has-waveform { background-size: 100% 100%; background-repeat: no-repeat; }
.combiner-panel > summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; overflow-wrap: anywhere; cursor: pointer; list-style: none; }
.combiner-panel > summary::-webkit-details-marker { display: none; }
.combiner-panel > summary > span:first-child { display: grid; min-width: 0; max-width: 100%; gap: .2rem; }
.combiner-panel > summary > span:last-child { color: var(--text-muted); font-size: .72rem; }
.combiner-panel[open] > summary { margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border-subtle); }
.combiner-transcript-tools { display: grid; grid-template-columns: minmax(190px, 1fr) repeat(4, auto) minmax(180px, 1fr); gap: .55rem; align-items: end; }
.combiner-transcript-tools label, .combiner-export-grid label { display: grid; gap: .35rem; color: var(--text-muted); font-size: .72rem; font-weight: 650; }
.combiner-transcript-tools input, .combiner-transcript-tools select, .combiner-export-grid input, .combiner-export-grid select { width: 100%; min-height: 2.35rem; padding: .55rem .62rem; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg); color: var(--text-main); font: inherit; }
.combiner-transcript-tools .btn { min-height: 2.35rem; justify-content: center; padding: .45rem .6rem; font-size: .7rem; }
.combiner-transcript-panel progress, .combiner-export-progress progress { width: 100%; accent-color: var(--accent); }
.combiner-caption-list { display: grid; gap: .5rem; margin-top: .75rem; }
.combiner-caption-row { display: grid; grid-template-columns: 78px 78px minmax(180px, 1fr) auto auto; gap: .45rem; align-items: center; }
.combiner-caption-row input { width: 100%; min-height: 2.15rem; padding: .45rem .5rem; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg); color: var(--text-main); font: inherit; font-size: .75rem; }
.combiner-caption-row .btn { min-height: 2.15rem; padding: .4rem .55rem; font-size: .68rem; }
.combiner-caption-row.is-filtered { display: none; }
.combiner-export-grid { display: grid; grid-template-columns: minmax(170px, 1.35fr) repeat(3, minmax(110px, .75fr)); gap: .5rem; }
.combiner-export-grid .combiner-check { display: flex; align-items: center; align-self: end; min-height: 2.35rem; }
.combiner-export-grid .combiner-check input { width: auto; min-height: auto; }
.combiner-export-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.combiner-preflight { display: grid; gap: .45rem; margin-top: .8rem; }
.combiner-preflight-summary { margin: 0; color: var(--text-main); font-size: .875rem; line-height: 1.5; }
.combiner-preflight-details > summary { display: flex; align-items: center; min-height: var(--action-height,36px); margin-bottom: .4rem; cursor: pointer; color: var(--text-main); font-size: .8rem; }
.combiner-preflight-details .combiner-preflight-item { margin-top: .4rem; font-size: .8rem; line-height: 1.5; }
.combiner-preflight-details .combiner-preflight-item strong { font-size: .7rem; }
.combiner-preflight-item { display: flex; justify-content: space-between; gap: .75rem; padding: .42rem .52rem; border: 1px solid var(--border-subtle); border-radius: 8px; font-size: .68rem; }
.combiner-preflight-item[data-level="pass"] { border-color: color-mix(in srgb, #3ecf8e 42%, var(--border-subtle)); }
.combiner-preflight-item[data-level="warn"] { border-color: color-mix(in srgb, #d39b30 50%, var(--border-subtle)); }
.combiner-preflight-item[data-level="block"] { border-color: color-mix(in srgb, #e35d6a 55%, var(--border-subtle)); }
.combiner-preflight-item strong { flex: 0 0 auto; text-transform: uppercase; }
.combiner-export-progress { margin-top: .85rem; }
.combiner-export-progress p { margin: .4rem 0 0; color: var(--text-muted); font-size: .75rem; }
.combiner-hidden-media { position: fixed; left: -99999px; top: 0; width: 2px; height: 2px; overflow: hidden; pointer-events: none; }
.combiner-export-panel { scroll-margin-bottom: 7rem; margin-bottom: 2rem; }
@media (max-width: 1200px) {
  .combiner-projectbar { position: static; }
  .combiner-projectbar__inner { flex-wrap: wrap; padding: .55rem 0; }
  .combiner-queue-panel { top: 88px; max-height: calc(100vh - 105px); }
  .combiner-transcript-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .combiner-projectbar__inner { width: calc(100vw - 1rem); }
  .combiner-project-name { width: 100%; }
  .combiner-autosave-status { width: 100%; margin-left: 0; }
  .combiner-transcript-tools, .combiner-export-grid { grid-template-columns: 1fr; }
  .combiner-caption-row { grid-template-columns: 1fr 1fr; }
  .combiner-caption-row input:nth-child(3) { grid-column: 1 / -1; }
}

/* Modular compact Studio */
.vox-combiner-page .btn { min-height: 1.95rem; padding: .34rem .58rem; border-radius: 7px; font-size: .7rem; }
.combiner-header__inner { min-height: 54px; }
.combiner-brand__mark { width: 2rem; height: 2rem; border-radius: 8px; }
.combiner-local-badge { padding: .3rem .5rem; border-radius: 7px; font-size: .66rem; }
.combiner-projectbar { position: relative; top: auto; }
.combiner-projectbar__inner { min-height: 45px; }
.combiner-project-name { grid-template-columns: auto minmax(150px, 220px); align-items: center; min-width: 0; gap: .4rem; }
.combiner-project-name input { min-height: 1.85rem; }
.combiner-project-actions { align-items: center; gap: .28rem; }
.combiner-icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 1.9rem; min-width: 1.9rem; height: 1.9rem; padding: 0; border: 1px solid var(--border-subtle); border-radius: 50%; background: transparent; color: var(--text-main); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.combiner-icon-button:hover, .combiner-icon-button:focus-visible, .combiner-icon-button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.combiner-icon-button.is-primary { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.combiner-icon-button:disabled { opacity: .4; cursor: not-allowed; }
.combiner-small-button { display: inline-flex; justify-content: center; align-items: center; gap: .3rem; min-height: 1.9rem; padding: .32rem .52rem; border: 1px solid var(--border-subtle); border-radius: 7px; background: transparent; color: var(--text-main); font: inherit; font-size: .68rem; font-weight: 750; cursor: pointer; }
.combiner-small-button:hover, .combiner-small-button:focus-visible { border-color: var(--accent); }
.combiner-small-button.is-primary { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.combiner-viewbar { display: flex; position: sticky; z-index: 24; top: 59px; align-items: center; gap: .3rem; width: min(1400px, calc(100vw - 2rem)); min-height: 39px; margin: .5rem auto 0; padding: .3rem .45rem; border: 1px solid var(--border-subtle); border-radius: 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); }
.combiner-viewbar > span { margin-left: .3rem; color: var(--text-muted); font-size: .64rem; }
.combiner-shell { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr); margin-top: .55rem; }
.combiner-shell.is-library-hidden { grid-template-columns: minmax(0, 1fr); }
.combiner-shell.is-focus-mode { width: min(1180px, calc(100vw - 2rem)); }
.combiner-panel[hidden], .combiner-queue-panel[hidden] { display: none; }
.combiner-panel { padding: .68rem; border-radius: 11px; }
.combiner-queue-panel { top: 105px; max-height: calc(100vh - 116px); }
.combiner-module-summary { display: flex; justify-content: space-between; align-items: center; gap: .6rem; cursor: pointer; list-style: none; }
.combiner-module-summary::-webkit-details-marker { display: none; }
.combiner-module-summary > span:first-child { display: grid; gap: .1rem; min-width: 0; }
.combiner-module-summary strong { font-size: .82rem; }
.combiner-module-summary::after, .combiner-panel > summary::after, .combiner-queue-group > summary::after { content: "⌄"; flex: 0 0 auto; color: var(--text-muted); font-size: .72rem; transition: transform .16s ease; }
.combiner-module[open] > .combiner-module-summary::after, .combiner-panel[open] > summary::after, .combiner-queue-group[open] > summary::after { transform: rotate(180deg); }
.combiner-module-body { padding-top: .55rem; }
.combiner-panel[open] > summary { margin-bottom: .55rem; padding-bottom: .45rem; }
.combiner-wall-panel[open] > summary, .combiner-timeline-panel[open] > summary, .combiner-inspector[open] > summary { margin-bottom: 0; }
.combiner-help, .combiner-wall-note { margin: .45rem 0; font-size: .68rem; line-height: 1.4; }
.combiner-count { min-width: 1.45rem; height: 1.45rem; padding: 0 .28rem; font-size: .62rem; }
.combiner-import-buttons { gap: .35rem; }
.combiner-queue { gap: .38rem; margin-top: .45rem; }
.combiner-queue-group { display: block; padding: .35rem; border: 1px solid var(--border-subtle); border-radius: 8px; }
.combiner-queue-group + .combiner-queue-group { margin-top: .38rem; padding-top: .35rem; border-top: 1px solid var(--border-subtle); }
.combiner-queue-group__heading { cursor: pointer; list-style: none; }
.combiner-queue-group__heading::-webkit-details-marker { display: none; }
.combiner-queue-group__heading > span:nth-child(2) { display: grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-left: auto; border-radius: 50%; background: color-mix(in srgb, var(--accent) 13%, transparent); font-size: .58rem; }
.combiner-queue-group__body { display: grid; gap: .32rem; padding-top: .35rem; }
.combiner-empty { padding: .55rem .45rem; border-radius: 8px; font-size: .66rem; }
.combiner-media-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 1.75rem; gap: .38rem; align-items: center; padding: .38rem; border-radius: 8px; }
.combiner-row-thumb { display: grid; place-items: center; width: 56px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: linear-gradient(135deg, #111827, #24395f); color: rgba(255,255,255,.62); font-size: .46rem; font-weight: 800; letter-spacing: .09em; }
.combiner-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.combiner-row-thumb.is-audio { background-color: #17142a; background-position: center; background-size: cover; color: #b99aff; font-size: .95rem; }
.combiner-queue-info strong, .combiner-queue-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combiner-queue-info strong { font-size: .66rem; }
.combiner-queue-info span { margin-top: .1rem; font-size: .56rem; }
.combiner-tools-trigger { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--text-muted); font: inherit; font-size: .65rem; letter-spacing: .05em; opacity: 0; cursor: pointer; transition: opacity .15s ease, background .15s ease; }
.combiner-media-row:hover .combiner-tools-trigger, .combiner-media-row:focus-within .combiner-tools-trigger, .combiner-media-row.is-tools-open .combiner-tools-trigger { opacity: 1; }
.combiner-tools-trigger:hover, .combiner-tools-trigger:focus-visible, .combiner-tools-trigger[aria-expanded="true"] { border-color: var(--border-subtle); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.combiner-tool-tray { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: .25rem; padding-top: .32rem; border-top: 1px solid var(--border-subtle); }
.combiner-tool-tray[hidden] { display: none; }
.combiner-tool-action { display: inline-flex; align-items: center; gap: .25rem; min-height: 1.68rem; padding: .22rem .38rem; border: 1px solid var(--border-subtle); border-radius: 6px; background: transparent; color: var(--text-main); font: inherit; font-size: .58rem; font-weight: 750; cursor: pointer; }
.combiner-tool-action:hover, .combiner-tool-action:focus-visible { border-color: var(--accent); color: var(--accent); }
.combiner-tool-action.is-primary { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.combiner-tool-action.is-danger { color: #e35d6a; }
.combiner-tool-action:disabled { opacity: .42; cursor: not-allowed; }
.combiner-row-preview, .combiner-row-rename, .combiner-row-progress { grid-column: 1 / -1; }
.combiner-row-primary-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: .4rem; }
.combiner-row-primary-actions .combiner-tool-action { display: inline-flex; width: auto; min-height: 36px; padding: .4rem .6rem; border-radius: .65rem; font-size: .75rem; }
.combiner-row-primary-actions .combiner-tool-action > span:last-child { position: static; width: auto; height: auto; clip-path: none; }
.combiner-advanced { margin-top: .75rem; padding-top: .5rem; border-top: 1px solid var(--border-subtle); }
.combiner-advanced > summary { display: flex; align-items: center; min-height: 36px; cursor: pointer; color: var(--text-main); font-size: .8rem; }
.combiner-advanced[open] > summary { margin-bottom: .5rem; }
.combiner-row-preview[hidden], .combiner-row-rename[hidden] { display: none; }
.combiner-row-preview .combiner-inline-player { width: 100%; max-height: 190px; border-radius: 7px; background: #05070a; }
.combiner-row-preview audio.combiner-inline-player { min-height: 38px; }
.combiner-row-rename { display: grid; gap: .22rem; color: var(--text-muted); font-size: .58rem; font-weight: 700; }
.combiner-row-rename input { width: 100%; padding: .35rem .42rem; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--bg); color: var(--text-main); font: inherit; font-size: .64rem; }
.combiner-row-progress { width: 100%; height: .4rem; }
.combiner-wall-empty[hidden] { display: none; }
.combiner-wall-toolbar { justify-content: flex-end; }
.combiner-wall-actions { gap: .35rem; }
.combiner-wall-actions .btn { min-height: 1.9rem; padding: .32rem .5rem; }
.combiner-time { min-width: min(7.8rem, 100%); max-width: 100%; overflow-wrap: anywhere; padding: .34rem .45rem; font-size: .68rem; }
.combiner-color-control input { width: 1.9rem; height: 1.8rem; }
.combiner-wall { margin-top: .45rem; border-radius: 9px; }
.combiner-wall-note { margin-bottom: 0; }
.combiner-selection-status { padding: .22rem .38rem; border-radius: 6px; font-size: .62rem; }
.combiner-inspector-grid { gap: .45rem; }
.combiner-inspector-grid label, .combiner-duration-controls label { gap: .22rem; font-size: .64rem; }
.combiner-inspector-grid input, .combiner-inspector-grid select, .combiner-duration-controls input { min-height: 1.95rem; padding: .36rem .45rem; border-radius: 7px; font-size: .7rem; }
.combiner-inspector-actions { gap: .3rem; margin-top: .45rem; }
.combiner-inspector-actions .btn { min-height: 1.85rem; padding: .3rem .48rem; font-size: .64rem; }
.combiner-timeline-options { gap: .45rem .8rem; margin-top: .5rem; padding: .45rem .52rem; border-radius: 8px; }
.combiner-scrubber-label { margin-top: .55rem; }
.combiner-tracks { gap: .3rem; margin-top: .5rem; }
.combiner-track-lane { height: 1.65rem; }
.combiner-transcript-tools { gap: .4rem; }
.combiner-transcript-tools input, .combiner-transcript-tools select, .combiner-export-grid input, .combiner-export-grid select { min-height: 1.95rem; padding: .38rem .45rem; border-radius: 7px; font-size: .7rem; }
.combiner-transcript-tools .btn { min-height: 1.95rem; padding: .34rem .45rem; }
.combiner-export-panel { margin-bottom: .8rem; }
@media (hover: none) { .combiner-tools-trigger { opacity: .68; } }
@media (max-width: 1200px) { .combiner-queue-panel { top: 105px; max-height: calc(100vh - 116px); } }
@media (max-width: 1050px) { .combiner-shell, .combiner-shell.is-library-hidden, .combiner-shell.is-focus-mode { grid-template-columns: 1fr; } .combiner-viewbar { width: min(960px, calc(100vw - 1.5rem)); } }
@media (max-width: 700px) { .combiner-viewbar { position: static; width: calc(100vw - 1rem); } .combiner-viewbar > span { display: none; } .combiner-project-name { grid-template-columns: 1fr; width: 100%; } .combiner-project-actions { flex: 0 0 auto; } .combiner-autosave-status { flex: 1; width: auto; } .combiner-queue { grid-template-columns: 1fr; } }

/* Media-library density pass */
.combiner-queue-panel { padding: .48rem; overflow: hidden; }
.combiner-queue-panel .combiner-module-summary { min-height: 1.8rem; padding: 0 .1rem; }
.combiner-queue-panel .combiner-module-summary strong { font-size: .74rem; }
.combiner-queue-panel .combiner-eyebrow { font-size: .55rem; letter-spacing: .08em; }
.combiner-queue-panel .combiner-count { min-width: 1.3rem; height: 1.3rem; font-size: .58rem; }
.combiner-queue-panel .combiner-module-body { padding-top: .35rem; }
.combiner-queue-panel .combiner-help { display: none; }
.combiner-queue-panel .combiner-small-button { min-height: 1.7rem; padding: .22rem .38rem; font-size: .62rem; }
.combiner-queue { gap: .28rem; margin-top: .32rem; }
.combiner-queue-group { padding: .28rem; border-radius: 7px; }
.combiner-queue-group + .combiner-queue-group { margin-top: .28rem; padding-top: .28rem; }
.combiner-queue-group__heading { min-height: 1.4rem; font-size: .58rem; letter-spacing: .06em; }
.combiner-queue-group__heading > span:nth-child(2) { min-width: 1.1rem; height: 1.1rem; font-size: .5rem; }
.combiner-queue-group__body { gap: .24rem; padding-top: .24rem; }
.combiner-media-row { position: relative; grid-template-columns: 44px minmax(0, 1fr) 1.45rem; gap: .28rem; padding: .25rem; border-radius: 7px; }
.combiner-row-thumb { width: 44px; border-radius: 5px; font-size: .38rem; }
.combiner-row-thumb.is-audio { font-size: .8rem; }
.combiner-queue-info strong { font-size: .6rem; line-height: 1.1; }
.combiner-queue-info span { margin-top: .05rem; font-size: .5rem; }
.combiner-tools-trigger { width: 1.45rem; height: 1.45rem; font-size: .56rem; }
.combiner-tool-tray { gap: .2rem; padding-top: .24rem; }
.combiner-tool-action { display: grid; place-items: center; width: 1.52rem; min-width: 1.52rem; min-height: 1.52rem; padding: 0; border-radius: 50%; font-size: .56rem; }
.combiner-tool-action > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.combiner-queue-panel .combiner-empty { padding: .38rem .3rem; font-size: .58rem; }
@media (min-width: 1051px) {
  .combiner-queue-panel { display: flex; height: calc(100dvh - 7.25rem); max-height: calc(100dvh - 7.25rem); }
  .combiner-queue-panel > .combiner-module { display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%; }
  .combiner-queue-panel > .combiner-module[open] > .combiner-module-body { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  .combiner-queue { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* Unified Studio app bar, drawer inspector, and library simplification */
.combiner-header { position: sticky; top: 0; z-index: 40; }
.combiner-appbar { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .65rem; min-height: 58px; padding: .5rem 0; }
.combiner-project-name { display: block; flex: 1 1 180px; max-width: 240px; min-width: 0; font-size: 0; }
.combiner-project-name input { width: 100%; min-height: 1.9rem; font-size: .72rem; }
.combiner-project-actions, .combiner-view-controls { display: flex; align-items: center; gap: .22rem; min-width: 0; }
.combiner-project-actions { flex: none; flex-wrap: wrap; max-width: 100%; }
.combiner-view-controls { flex: 1 1 250px; padding-left: 0; border-left: 0; }
.combiner-appbar .combiner-autosave-status { overflow: hidden; text-overflow: ellipsis; }
.combiner-appbar .combiner-header__actions { gap: .4rem; }
.combiner-back-link { padding: .3rem .42rem; border: 1px solid var(--border-subtle); border-radius: 7px; color: var(--accent); font-size: .64rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.combiner-back-link:hover, .combiner-back-link:focus-visible { border-color: var(--accent); }
.combiner-recovery { position: fixed; z-index: 55; top: 68px; right: 1rem; max-width: min(430px, calc(100vw - 2rem)); border: 1px solid color-mix(in srgb, #d39b30 45%, var(--border-subtle)); border-radius: 9px; box-shadow: 0 14px 38px rgba(0,0,0,.2); }
.combiner-shell { margin-top: .6rem; }
.combiner-queue-panel { top: 68px; max-height: calc(100dvh - 78px); height: calc(100dvh - 78px); }
.combiner-library-tools { display: flex; align-items: center; gap: .28rem; margin-top: .28rem; }
.combiner-library-tools .combiner-icon-button { width: 1.7rem; min-width: 1.7rem; height: 1.7rem; }
.combiner-library-tools label { flex: 1; }
.combiner-library-tools label[hidden] { display: none; }
.combiner-library-tools label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.combiner-library-tools input { width: 100%; min-height: 1.7rem; padding: .24rem .4rem; border: 1px solid var(--border-subtle); border-radius: 7px; background: var(--bg); color: var(--text-main); font: inherit; font-size: .6rem; }
.combiner-queue-info .combiner-row-extra-meta { display: none; }
.combiner-media-row:hover .combiner-row-extra-meta, .combiner-media-row:focus-within .combiner-row-extra-meta { display: block; }
.combiner-inspector-drawer { position: relative; inset: auto; width: 100%; max-height: none; overflow: visible; border-color: var(--border-subtle); box-shadow: none; }
.combiner-inspector-drawer:not([open]) { display: none; }
.combiner-inspector-drawer .combiner-inspector-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
.combiner-inspector-drawer .combiner-module-summary { position: static; background: var(--surface); }
.combiner-inspector-drawer .combiner-module-summary::after { content: "×"; transform: none !important; font-size: 1rem; }
.combiner-inspector-drawer .combiner-selection-status { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vox-combiner-page.is-comfortable-density .combiner-queue-panel { padding: .72rem; }
.vox-combiner-page.is-comfortable-density .combiner-media-row { grid-template-columns: 58px minmax(0, 1fr) 1.8rem; gap: .42rem; padding: .4rem; }
.vox-combiner-page.is-comfortable-density .combiner-row-thumb { width: 58px; }
.vox-combiner-page.is-comfortable-density .combiner-queue-info strong { font-size: .68rem; }
.vox-combiner-page.is-comfortable-density .combiner-queue-info span { font-size: .58rem; }
.vox-combiner-page.is-comfortable-density .combiner-tools-trigger { width: 1.8rem; height: 1.8rem; }
@media (max-width: 1280px) {
  .combiner-appbar { grid-template-columns: auto minmax(150px, 1fr) auto auto; padding: .35rem 0; }
  .combiner-view-controls { grid-column: 2 / 4; grid-row: 2; padding-left: 0; border-left: 0; }
  .combiner-appbar .combiner-autosave-status { grid-column: 4; grid-row: 2; }
  .combiner-queue-panel { top: 104px; max-height: calc(100dvh - 114px); height: calc(100dvh - 114px); }

}
@media (max-width: 700px) {
  .combiner-header { position: relative; }
  .combiner-appbar { grid-template-columns: auto 1fr auto; width: calc(100vw - 1rem); }
  .combiner-project-name { grid-column: 1 / -1; grid-row: 2; }
  .combiner-project-actions { grid-column: 1 / 3; grid-row: 3; }
  .combiner-view-controls { grid-column: 1 / -1; grid-row: 4; flex-wrap: wrap; }
  .combiner-appbar .combiner-autosave-status { grid-column: 3; grid-row: 3; align-self: center; }
  .combiner-appbar .combiner-header__actions { grid-column: 3; grid-row: 1; }
  .combiner-back-link { display: inline-flex; align-items: center; min-height: 44px; }
  .combiner-recovery { top: auto; right: .5rem; bottom: .5rem; left: .5rem; max-width: none; }

}
@media (max-width: 1050px) {
  .combiner-queue-panel { height: auto; max-height: none; overflow: visible; }
}

/* Control alignment and touch-target QA pass */
.vox-combiner-page .btn,
.combiner-small-button,
.combiner-queue-panel .combiner-small-button,
.combiner-recovery .btn,
.combiner-inspector-actions .btn,
.combiner-wall-actions .btn,
.combiner-duration-controls .btn,
.combiner-transcript-tools .btn,
.combiner-caption-row .btn {
  min-height: 2.25rem;
  border-radius: 9px;
}

.combiner-icon-button,
.combiner-library-tools .combiner-icon-button {
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  line-height: 1;
}

.combiner-icon-button > span {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  line-height: 1;
}

.combiner-plus-icon {
  display: block;
  flex: 0 0 auto;
  width: .82rem;
  height: .82rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.combiner-small-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.combiner-project-actions,
.combiner-view-controls {
  gap: .3rem;
  padding: 0;
  border: 0;
  background: none;
}

.combiner-project-actions .combiner-icon-button,
.combiner-view-controls .combiner-icon-button {
  position: relative;
}

@media (hover: hover) and (min-width: 701px) {
  .combiner-project-actions .combiner-icon-button::after,
  .combiner-view-controls .combiner-icon-button::after {
    content: attr(aria-label);
    position: absolute;
    z-index: 80;
    top: calc(100% + .45rem);
    left: 50%;
    padding: .32rem .45rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    font-size: .62rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -.2rem);
    transition: opacity .14s ease, transform .14s ease;
  }

  .combiner-project-actions .combiner-icon-button:hover::after,
  .combiner-project-actions .combiner-icon-button:focus-visible::after,
  .combiner-view-controls .combiner-icon-button:hover::after,
  .combiner-view-controls .combiner-icon-button:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.combiner-view-controls {
  border-left: 0;
}

.combiner-library-tools .combiner-small-button {
  justify-content: center;
}

.combiner-media-row,
.vox-combiner-page.is-comfortable-density .combiner-media-row {
  grid-template-columns: 44px minmax(0, 1fr) 2rem;
}

.combiner-tools-trigger,
.vox-combiner-page.is-comfortable-density .combiner-tools-trigger {
  width: 2rem;
  height: 2rem;
  font-size: .64rem;
}

.combiner-tool-action {
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  font-size: .62rem;
}

.combiner-project-name input,
.combiner-library-tools input {
  min-height: 2.25rem;
}

.combiner-inspector-drawer .combiner-module-summary {
  min-height: 44px;
  padding: .3rem 0;
}

.combiner-inspector-drawer .combiner-module-summary::after {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
}

.combiner-icon-button:disabled,
.combiner-small-button:disabled,
.vox-combiner-page .btn:disabled {
  color: var(--text-muted);
  border-color: var(--border-subtle);
  background: color-mix(in srgb, var(--surface) 88%, var(--text-main) 12%);
  opacity: .62;
  box-shadow: none;
}

@media (hover: none) {
  .combiner-tools-trigger { opacity: 1; }
}


@media (max-width: 700px) {
  .combiner-header {
    backdrop-filter: none;
  }

  .combiner-project-actions,
  .combiner-view-controls {
    flex-wrap: wrap;
    overflow: visible;
    scrollbar-width: none;
  }

  .combiner-project-actions::-webkit-scrollbar,
  .combiner-view-controls::-webkit-scrollbar {
    display: none;
  }

  .combiner-icon-button,
  .combiner-library-tools .combiner-icon-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .vox-combiner-page .btn,
  .combiner-small-button,
  .combiner-queue-panel .combiner-small-button,
  .combiner-recovery .btn,
  .combiner-inspector-actions .btn,
  .combiner-wall-actions .btn,
  .combiner-duration-controls .btn,
  .combiner-transcript-tools .btn,
  .combiner-caption-row .btn,
  .combiner-queue-panel .combiner-module-summary,
  .combiner-queue-group__heading {
    min-height: 44px;
  }

  .combiner-media-row,
  .vox-combiner-page.is-comfortable-density .combiner-media-row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .combiner-tools-trigger,
  .vox-combiner-page.is-comfortable-density .combiner-tools-trigger,
  .combiner-tool-action {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }


  .combiner-recovery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }

  .combiner-recovery > span {
    grid-column: 1 / -1;
  }


  .combiner-inspector-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .combiner-inspector-actions .btn:last-child {
    grid-column: 1 / -1;
  }
}

/* Fit preview and timeline together; retain the real wall/export background. */
.project-studio .combiner-shell{width:min(calc(100% - 2 * var(--project-gutter,.75rem)),90rem);grid-template-columns:minmax(12rem,14rem) minmax(0,1fr);gap:.65rem;margin-bottom:1rem}
.project-studio .combiner-workspace{gap:.65rem}
.project-studio .combiner-queue-panel{height:auto;max-height:calc(100svh - 14rem);align-self:start;overflow:auto}
.project-studio .combiner-wall{width:min(100%,calc(clamp(9rem,32svh,21rem) * 16 / 9));border-color:var(--border-subtle)}
.project-studio .combiner-panel{padding:.6rem}
.project-studio .combiner-panel[open]>.combiner-module-summary{padding-bottom:.3rem}
.project-studio .combiner-module-body{padding-top:.4rem}
.project-studio .combiner-wall-panel[open]>.combiner-module-summary{margin-bottom:0}
.project-studio .combiner-wall-note{margin-top:.4rem}
.project-studio .combiner-empty{margin:0}
.project-studio .combiner-appbar{gap:.45rem;padding-block:.35rem}
.project-studio .combiner-appbar .combiner-view-controls{flex:0 1 auto}
.project-studio .combiner-autosave-status{white-space:normal;overflow-wrap:anywhere}
/* Empty-state instructions are UI, not black exported pixels. Hidden after placement. */
.project-studio .combiner-wall-empty{background:var(--surface);color:var(--text-muted);font-size:.8125rem;line-height:1.45}
.project-studio .combiner-wall-empty strong{color:var(--text-main)}
.project-studio :is(.combiner-row-thumb,.combiner-queue-waveform.is-placeholder){background:var(--bg-alt);color:var(--text-muted)}
.project-studio .combiner-row-thumb.is-audio{background-color:var(--accent-soft);color:var(--accent)}
.project-studio .combiner-track-lane{background:var(--bg-alt)}
.project-studio .combiner-track-bar{background-color:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.project-studio .combiner-track-bar.is-selected{outline-color:var(--focus-ring)}
.project-studio .combiner-playhead-line{background:var(--accent-warm)}
.project-studio .combiner-local-badge{border-color:var(--border-subtle)}
@media(min-width:821px) and (max-width:1050px){
 .project-studio .combiner-shell{grid-template-columns:13rem minmax(0,1fr)}
 .project-studio .combiner-queue{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:820px){
 .project-studio .combiner-shell{grid-template-columns:minmax(0,1fr)}
 .project-studio .combiner-queue-panel{max-height:none;position:static}
 .project-studio .combiner-queue{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}
 .project-studio .combiner-queue-group+.combiner-queue-group{margin-top:0}
 .project-studio .combiner-queue-panel .combiner-module-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem}
 .project-studio .combiner-library-tools{margin:0}
 .project-studio .combiner-queue{grid-column:1/-1}
}
@media(max-width:700px){
 .project-studio .combiner-appbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.4rem}
 .project-studio .combiner-brand{min-width:0;gap:.35rem;font-size:.8125rem}
 .project-studio .combiner-project-name{grid-column:2;grid-row:1;width:100%;max-width:none;margin:0}
 .project-studio .combiner-project-actions{grid-column:1/-1;grid-row:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .project-studio .combiner-divider{display:none}
 .project-studio .combiner-view-controls{grid-column:1/-1;grid-row:auto;flex-wrap:wrap}
 .project-studio .combiner-appbar .combiner-autosave-status{grid-column:1/-1;grid-row:auto;margin:0;font-size:.75rem;line-height:1.4}
 .project-studio .combiner-wall{width:100%}
 .project-studio .combiner-wall-toolbar{display:flex}
 .project-studio .combiner-wall-actions{justify-content:flex-start}
 .project-studio .combiner-duration-controls{gap:.3rem}
 .project-studio .combiner-duration-controls label{grid-template-columns:auto minmax(3rem,4rem);gap:.25rem}
}
@media(pointer:coarse){
 .project-studio :is(.combiner-small-button,.combiner-tool-action,.combiner-tools-trigger,.combiner-queue-group__heading,.combiner-color-control,.combiner-back-link){min-height:44px}
 .project-studio .combiner-color-control input{width:44px;height:44px}
 /* Enlarge the native range boxes and associated checkbox labels, not decoration. */
 .project-studio :is(.combiner-timeline-options label,.combiner-export-grid .combiner-check){min-height:44px}
 .project-studio :is(.combiner-timeline-options input[type=range],.combiner-scrubber){min-height:44px}
}
