/* Sequence composition only; the original wall layout remains available. */
.project-studio .combiner-header { grid-column: 1 / -1; position: relative; top: auto; }
.project-studio .combiner-appbar { width: 100%; margin: 0; }
.project-studio .vs-workflow { display: flex; align-items: center; gap: .4rem; color: var(--text-muted); font-size: .75rem; }
.project-studio .vs-workflow select { min-height: 32px; max-width: 100%; padding: .3rem .5rem; border: 1px solid var(--field-border); border-radius: .5rem; background: var(--field-bg); color: var(--text-main); font: inherit; }
.project-studio .vs-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; list-style: none; margin: 0; padding: .45rem 0 .65rem; border-bottom: 1px solid var(--border-subtle); }
.project-studio .vs-steps li { display: grid; grid-template-columns: 1.5rem minmax(0,1fr); gap: .1rem .45rem; align-content: start; font-size: .8rem; font-weight: 600; }
.project-studio .vs-steps b { display: grid; grid-row: span 2; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--border-subtle); border-radius: 50%; color: var(--accent); font-size: .75rem; }
.project-studio .vs-steps li > span { grid-column: 2; color: var(--text-muted); font-size: .72rem; font-weight: 400; line-height: 1.4; }
.project-studio .vs-steps a { color: var(--accent); text-underline-offset: .15em; }
body[data-studio-workflow="sequence"] .vs-wall-only,
body[data-studio-workflow="wall"] .vs-sequence-only,
body[data-studio-workflow="wall"] .vs-steps { display: none; }

body[data-studio-workflow="sequence"] .combiner-shell { grid-template-columns: minmax(12rem,14rem) minmax(0,1fr); gap: .65rem; margin-top: .2rem; }
body[data-studio-workflow="sequence"] .combiner-workspace { display: contents; }
body[data-studio-workflow="sequence"] .combiner-queue-panel { grid-column: 1; grid-row: 3 / 9; position: static; height: auto; max-height: none; overflow: visible; padding: .65rem; }
body[data-studio-workflow="sequence"] .combiner-queue-panel > .combiner-module,
body[data-studio-workflow="sequence"] .combiner-queue-panel > .combiner-module[open] > .combiner-module-body { display: block; }
body[data-studio-workflow="sequence"] .combiner-queue { display: grid; grid-template-columns: minmax(0,1fr); max-height: 25rem; overflow-y: auto; }
body[data-studio-workflow="sequence"] .combiner-queue-panel .combiner-help { display: block; font-size: .72rem; }
body[data-studio-workflow="sequence"] .combiner-queue-panel .combiner-module-summary strong { font-size: .85rem; }
body[data-studio-workflow="sequence"] .combiner-queue-info strong { font-size: .75rem; line-height: 1.3; }
body[data-studio-workflow="sequence"] .combiner-queue-info span { font-size: .65rem; line-height: 1.3; }
body[data-studio-workflow="sequence"] .combiner-media-row { gap: .4rem; padding: .35rem; }
body[data-studio-workflow="sequence"] .combiner-wall-panel { grid-column: 2; grid-row: 3; }
body[data-studio-workflow="sequence"] :is(.combiner-inspector,.combiner-timeline-panel,.combiner-transcript-panel,.combiner-export-panel) { grid-column: 2; min-width: 0; }
body[data-studio-workflow="sequence"] .combiner-panel { padding: .65rem; }
body[data-studio-workflow="sequence"] .combiner-panel[open] > summary { padding-bottom: .35rem; margin-bottom: 0; }
body[data-studio-workflow="sequence"] .combiner-module-summary strong { font-size: .85rem; }
body[data-studio-workflow="sequence"] .combiner-wall { width: min(100%,calc(clamp(8.5rem,23svh,15rem) * 16 / 9)); margin: .35rem auto; }
body[data-studio-workflow="sequence"] .combiner-wall-toolbar { justify-content: space-between; }
body[data-studio-workflow="sequence"] .combiner-wall-actions { justify-content: flex-start; width: 100%; }
body[data-studio-workflow="sequence"] .combiner-time { margin-left: auto; }
body[data-studio-workflow="sequence"] .combiner-wall-note { font-size: .72rem; }
body[data-studio-workflow="sequence"] :is(.btn,.combiner-small-button,.combiner-queue-panel .combiner-small-button) { min-height: 32px; padding: .3rem .55rem; font-size: .75rem; }
body[data-studio-workflow="sequence"] .combiner-appbar .app-labeled-button { min-height: 32px; height: auto; }
body[data-studio-workflow="sequence"] .combiner-project-name { flex: 1 1 10rem; max-width: 14rem; }
body[data-studio-workflow="sequence"] .combiner-project-name input { min-height: 32px; font-size: .8rem; }
body[data-studio-workflow="sequence"] .combiner-brand { font-size: .85rem; }
body[data-studio-workflow="sequence"] .combiner-view-controls { margin-left: auto; flex-wrap: wrap; }
body[data-studio-workflow="sequence"] .combiner-autosave-status { flex: 0 1 auto; margin: 0 0 0 auto; font-size: .7rem; }
body[data-studio-workflow="sequence"] .combiner-inspector-drawer .combiner-inspector-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); }
body[data-studio-workflow="sequence"] .combiner-timeline-heading { float: right; margin-left: .75rem; }
body[data-studio-workflow="sequence"] .combiner-timeline-options { margin-top: 0; padding: .25rem .4rem; gap: .35rem .8rem; border: 0; background: none; }
body[data-studio-workflow="sequence"] .combiner-timeline-options label { font-size: .72rem; }
body[data-studio-workflow="sequence"] .combiner-timeline-options input[type="range"] { width: 5rem; }
body[data-studio-workflow="sequence"] .combiner-scrubber-label { clear: both; margin-top: .35rem; }
body[data-studio-workflow="sequence"] .combiner-timeline-viewport { overflow-x: auto; scrollbar-width: thin; padding: .15rem .15rem .35rem; }
body[data-studio-workflow="sequence"] .combiner-tracks { margin-top: .2rem; gap: .4rem; min-width: 100%; }
body[data-studio-workflow="sequence"] .vs-timeline-track { display: grid; grid-template-columns: 8rem minmax(0,1fr); gap: .6rem; align-items: center; min-height: 46px; }
body[data-studio-workflow="sequence"] :is(.vs-track-label,.vs-timeline-track > .combiner-track-name) { color: var(--text-main); font-size: .78rem; font-weight: 650; }
body[data-studio-workflow="sequence"] .vs-timeline-track :is(.combiner-track-lane,.vs-track-lane) { position: relative; min-width: 0; height: 46px; border: 1px solid var(--border-subtle); border-radius: .5rem; background: var(--bg-alt); overflow: visible; }
body[data-studio-workflow="sequence"] .vs-segment { position: absolute; top: 3px; bottom: 3px; min-width: 3px; border: 1px solid var(--accent); border-radius: .4rem; background: var(--accent-soft,var(--selected-bg)); color: var(--text-main); touch-action: none; }
body[data-studio-workflow="sequence"] .vs-timeline-track[data-kind="audio"] .vs-segment { border-color: var(--accent-warm); background: color-mix(in srgb,var(--accent-warm) 17%,var(--surface)); }
body[data-studio-workflow="sequence"] .vs-segment.is-selected { border-width: 2px; outline: 2px solid var(--focus-ring); outline-offset: 1px; }
body[data-studio-workflow="sequence"] .vs-segment-select { display: block; width: 100%; height: 100%; min-height: 0; overflow: hidden; padding: .25rem .8rem; border: 0; border-radius: inherit; background: transparent; color: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
body[data-studio-workflow="sequence"] .vs-segment-select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -3px; }
body[data-studio-workflow="sequence"] .combiner-trim-handle { width: 10px; border-radius: .2rem; background: color-mix(in srgb,var(--text-main) 28%,transparent); }
body[data-studio-workflow="sequence"] .combiner-shell:is(.is-library-hidden,.is-focus-mode) { grid-template-columns: minmax(0,1fr); }
body[data-studio-workflow="sequence"] .combiner-shell:is(.is-library-hidden,.is-focus-mode) .combiner-wall-panel { grid-column: 1; }

.project-studio .vs-narration { grid-column: 1 / -1; border-color: color-mix(in srgb,var(--accent-warm) 45%,var(--border-subtle)); }
.project-studio .vs-narration-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; }
.project-studio .vs-narration-heading h2 { margin: .15rem 0 .35rem; font-size: .9rem; }
.project-studio #narrationTarget { margin: 0; color: var(--text-muted); font-size: .78rem; }
.project-studio .vs-narration-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.project-studio .vs-meter-label { display: flex; align-items: center; gap: .4rem; color: var(--text-muted); font-size: .72rem; }
.project-studio #narrationMeter { width: 6rem; height: .8rem; accent-color: var(--accent); }
.project-studio .vs-save-reminder { margin: .35rem 0 0; font-size: .72rem; line-height: 1.45; color: var(--text-muted); }
.project-studio .vs-narration .btn:disabled { background: var(--disabled-bg); color: var(--disabled-text); border-color: var(--disabled-border); opacity: 1; }
.project-studio :is(.vs-media-notice,.vs-timeline-settings) > summary { display: flex; align-items: center; min-height: 32px; cursor: pointer; color: var(--text-muted); font-size: .73rem; }
.project-studio :is(.vs-media-notice,.vs-timeline-settings) > summary::before { content: '›'; margin-right: .35rem; }
.project-studio :is(.vs-media-notice,.vs-timeline-settings)[open] > summary::before { content: '⌄'; }
body[data-studio-workflow="sequence"] .combiner-panel > .combiner-module-summary > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .5rem; }
body[data-studio-workflow="sequence"] .combiner-wall { width: min(100%,calc(clamp(8.5rem,19svh,12rem) * 16 / 9)); }
body[data-studio-workflow="sequence"] .vs-timeline-settings { min-height: 38px; }
body[data-studio-workflow="sequence"] .vs-timeline-settings > summary { min-height: 38px; }
body[data-studio-workflow="sequence"] .combiner-timeline-panel .combiner-help { margin-block: .2rem; }
body[data-studio-workflow="sequence"] .vs-secondary { grid-column: 2; }
body[data-studio-workflow="sequence"] .vs-narration { grid-column: 2; }
body[data-studio-workflow="sequence"] .combiner-project-name { display: flex; align-items: center; gap: .35rem; font-size: .75rem; }
body[data-studio-workflow="sequence"] .combiner-project-name input { flex: 1; width: 0; min-width: 0; }
body[data-studio-workflow="sequence"] .vs-steps { padding-block: .15rem .3rem; }
body[data-studio-workflow="sequence"] :is(.combiner-duration-controls,.combiner-ruler),
body[data-studio-workflow="sequence"] #studioInspectorModule:not([open]) { display: none; }
body[data-studio-workflow="sequence"] .vs-segment-select strong,
body[data-studio-workflow="sequence"] .vs-segment-select > span { display: block; overflow: hidden; text-overflow: ellipsis; }
body[data-studio-workflow="sequence"] .vs-segment-select > span { font-size: .65rem; font-weight: 400; }
body[data-studio-workflow="sequence"] .vs-track-empty { padding: .7rem .5rem; display: block; font-size: .75rem; color: var(--text-muted); }
body[data-studio-workflow="sequence"] .combiner-shell:is(.is-library-hidden,.is-focus-mode) :is(.combiner-inspector,.combiner-timeline-panel,.vs-narration,.combiner-transcript-panel,.combiner-export-panel) { grid-column: 1; }
@media (min-width: 701px) {
 body[data-studio-workflow="sequence"] .combiner-appbar { display: grid; grid-template-columns: auto minmax(8rem,1fr) auto auto; gap: .35rem .5rem; }
 body[data-studio-workflow="sequence"] .combiner-project-name { max-width: none; }
 body[data-studio-workflow="sequence"] .combiner-project-actions { grid-column: 1 / 3; grid-row: 2; }
 body[data-studio-workflow="sequence"] .combiner-view-controls { grid-column: 3 / 5; grid-row: 2; justify-content: flex-end; }
 body[data-studio-workflow="sequence"] .combiner-autosave-status { grid-column: 4; grid-row: 1; max-width: 7rem; }
 body[data-studio-workflow="sequence"] .project-navigation :is(.project-back,.combiner-back-link) { min-height: 32px; }
 body[data-studio-workflow="sequence"] .combiner-wall { width: min(100%,calc(clamp(8.2rem,17.5svh,11rem) * 16 / 9)); }
 body[data-studio-workflow="sequence"] .combiner-wall-note { margin: .1rem 0 0; font-size: .7rem; line-height: 1.25; }
 body[data-studio-workflow="sequence"] .vs-timeline-track { min-height: 40px; }
 body[data-studio-workflow="sequence"] .vs-timeline-track :is(.combiner-track-lane,.vs-track-lane) { height: 40px; }
 body[data-studio-workflow="sequence"] .vs-timeline-settings,
 body[data-studio-workflow="sequence"] .vs-timeline-settings > summary { min-height: 32px; }
 body[data-studio-workflow="sequence"] .combiner-scrubber-label { margin-top: 0; }
}

@media (max-width: 700px) {
 body[data-studio-workflow="sequence"] .combiner-shell { grid-template-columns: minmax(0,1fr); }
 body[data-studio-workflow="sequence"] :is(.combiner-inspector,.combiner-timeline-panel,.vs-narration,.combiner-transcript-panel,.combiner-export-panel,.vs-secondary) { grid-column: 1; }
 body[data-studio-workflow="sequence"] .combiner-appbar { display: flex; flex-wrap: wrap; gap: .4rem; }
 body[data-studio-workflow="sequence"] .combiner-project-name { max-width: none; flex: 1 1 9rem; }
 body[data-studio-workflow="sequence"] .combiner-project-actions { display: flex; flex-wrap: wrap; flex-basis: 100%; }
 body[data-studio-workflow="sequence"] .combiner-view-controls { margin-left: 0; }
 body[data-studio-workflow="sequence"] .combiner-queue-panel { grid-column: 1; grid-row: 3; }
 body[data-studio-workflow="sequence"] .combiner-queue-panel .combiner-module-body { display: block; }
 body[data-studio-workflow="sequence"] .combiner-queue-panel .combiner-help { margin-top: 0; }
 body[data-studio-workflow="sequence"] .combiner-wall-panel { grid-column: 1; grid-row: 4; }
 body[data-studio-workflow="sequence"] .combiner-wall { width: min(100%,20rem); }
 body[data-studio-workflow="sequence"] .combiner-time { margin-left: 0; }
 body[data-studio-workflow="sequence"] .combiner-timeline-heading { float: none; margin: 0 0 .3rem; }
 body[data-studio-workflow="sequence"] .combiner-duration-controls label { grid-template-columns: auto minmax(3rem,4rem) auto; }
 body[data-studio-workflow="sequence"] .combiner-timeline-options { padding: 0; }
 body[data-studio-workflow="sequence"] .vs-timeline-track { grid-template-columns: 5.4rem minmax(0,1fr); gap: .35rem; }
 .project-studio .vs-steps { gap: .4rem; }
 .project-studio .vs-steps li { display: block; font-size: .75rem; }
 .project-studio .vs-steps b { margin-bottom: .2rem; }
 .project-studio .vs-steps li > span { display: block; font-size: .7rem; margin-top: .2rem; }
 .project-studio .vs-narration-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .project-studio #narrationRecord { grid-column: 1 / -1; }
}
@media (pointer: coarse) {
 body[data-studio-workflow="sequence"] :is(button,select,input:not([type="checkbox"]):not([type="radio"]),summary,.combiner-appbar .app-labeled-button) { min-height: 44px; }
 body[data-studio-workflow="sequence"] :is(button,select) { min-width: 44px; }
 body[data-studio-workflow="sequence"] :is(.combiner-timeline-options label,.combiner-color-control,.combiner-export-grid .combiner-check) { min-height: 44px; }
 body[data-studio-workflow="sequence"] .combiner-color-control input { width: 44px; height: 44px; }
 body[data-studio-workflow="sequence"] .vs-timeline-track :is(.combiner-track-lane,.vs-track-lane) { height: 56px; }
 body[data-studio-workflow="sequence"] .vs-segment-select { min-height: 44px; }
 body[data-studio-workflow="sequence"] .combiner-media-row { grid-template-columns: 44px minmax(0,1fr) 44px; }
 body[data-studio-workflow="sequence"] .combiner-tools-trigger { width: 44px; height: 44px; }
 .project-studio .vs-narration .btn { min-height: 44px; min-width: 44px; }
}
