:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;background:#090909;color:#eee;--muted:#858585;--line:#292929;--warm:#dbb28c;--panel:#121212;--white:#f1ede8}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#090909}
body{overflow-x:hidden}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.38}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--warm);outline-offset:3px}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.studio{min-height:100dvh;display:flex;flex-direction:column}
.topbar{min-height:70px;padding:12px clamp(18px,3.2vw,52px);display:flex;align-items:center;gap:21px;border-bottom:1px solid var(--line);background:#0b0b0b}
.brand{display:flex;align-items:center;gap:9px;white-space:nowrap}
.brand-mark{font-size:27px;font-weight:800;letter-spacing:-.12em}
.brand-dot{color:var(--warm)}
.brand-name{font-size:18px;font-weight:650;letter-spacing:-.06em}
.mode-name{font-size:12px;color:#bcb5af;letter-spacing:.03em;white-space:nowrap}
.beta{display:inline-flex;margin-left:8px;font-size:9px;font-weight:650;letter-spacing:.1em;color:var(--warm);border:1px solid #75573e;border-radius:3px;padding:4px 6px}
.top-actions{display:flex;gap:8px;margin-left:auto;align-items:center}
.small-button,.export-button,.choose-button{border:1px solid #42403f;color:var(--white);border-radius:6px;background:#202020;font-size:12px;letter-spacing:.015em;font-weight:600;padding:11px 15px;transition:background .17s,border .17s}
.small-button:hover,.choose-button:hover{background:#2e2e2e}
.export-button{background:var(--white);color:#181818;border-color:var(--white)}
.export-button:hover{background:#d8d3cd}
.workspace{display:grid;grid-template-columns:minmax(230px,260px) minmax(0,1fr) minmax(230px,260px);gap:0;flex:1;min-height:0}
.panel{min-width:0;background:#101010;display:flex;flex-direction:column}
.looks-panel{border-right:1px solid var(--line)}
.texture-panel{border-left:1px solid var(--line)}
.panel-head{padding:32px 23px 22px}
.eyebrow{font-size:9px;color:var(--warm);font-weight:700;letter-spacing:.19em;text-transform:uppercase;margin:0 0 12px}
.panel-head h2{font-size:21px;font-weight:520;letter-spacing:-.052em;margin:0 0 9px}
.panel-head p:not(.eyebrow){font-size:11px;line-height:1.6;color:#838383;margin:0}
.category-bar{display:flex;gap:5px;flex-wrap:wrap;padding:0 18px 18px}
.category{border:1px solid transparent;border-radius:5px;background:#1c1c1c;color:#979797;font-size:10px;padding:7px 8px;transition:all .15s}
.category:hover{color:#dedede}
.category.active{color:#f1e7da;border-color:#6f5845;background:#332920}
.look-list{padding:0 13px 16px;display:flex;flex-direction:column;gap:4px;min-height:150px;max-height:calc(100dvh - 375px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#414141 transparent}
.look-item{display:flex;gap:12px;align-items:center;text-align:left;border-radius:7px;background:transparent;color:#d4d2ce;border:1px solid transparent;padding:9px;width:100%;min-width:0;transition:all .15s}
.look-item:hover{background:#212121}
.look-item[aria-pressed="true"]{background:#2c241f;border-color:#6b4d39}
.look-swatch{flex:0 0 42px;width:42px;height:42px;display:block;border-radius:4px;box-shadow:inset 0 0 12px #0006}
.look-detail{display:flex;flex-direction:column;gap:4px;min-width:0}
.look-title{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.look-subtitle{font-size:10px;color:#908f8d}
.look-strength{margin-top:auto;border-top:1px solid var(--line);padding:20px 23px 26px}
.range-label{display:flex;justify-content:space-between;gap:12px;margin:8px 0 12px;font-size:12px;font-weight:500;color:#ccc}
.range-label output{font-size:11px;color:var(--warm);font-variant-numeric:tabular-nums}
input[type=range]{display:block;width:100%;height:20px;background:transparent;accent-color:#d7af89;cursor:pointer;margin:0}
.fine-print{color:#777;font-size:10px;line-height:1.6;margin:12px 0 0}
.view-column{min-width:0;display:flex;flex-direction:column;padding:clamp(20px,3vw,44px);gap:0;background:radial-gradient(ellipse at 60% 45%,#1b1918 0%,#0c0c0c 62%)}
.preview-title{display:flex;gap:14px;justify-content:space-between;align-items:center;min-height:55px;margin-bottom:20px}
.preview-title h1{margin:0;color:#f5f1ed;font-size:clamp(20px,2.5vw,32px);font-weight:450;letter-spacing:-.055em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(57vw,640px)}
.preview-spec{font-size:10px;color:#aaa;white-space:nowrap;border:1px solid #303030;padding:7px 10px;border-radius:5px}
.stage{min-width:0;min-height:310px;flex:1;position:relative;display:grid;place-items:center;border:1px solid #282523;background:#121111;border-radius:11px;overflow:hidden;isolation:isolate}
.stage.dragging{border-color:#d9aa78}
.empty-state{text-align:center;position:relative;padding:28px 20px;display:flex;align-items:center;flex-direction:column}
.empty-art{height:100px;min-width:145px;display:flex;align-items:center;justify-content:center;color:#b9ab98;gap:27px;margin-bottom:20px;border:1px solid #443932;border-radius:9px;transform:rotate(-4deg);background:linear-gradient(155deg,#312923,#171615)}
.play-glyph{font-size:23px;color:#eac9a5}
.perforations{line-height:1.12;font-size:22px;color:#716559}
.empty-state h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(28px,3vw,45px);line-height:1.15;letter-spacing:-.045em;font-weight:400;margin:6px 0 26px}
.empty-state .eyebrow{margin-top:3px}
.choose-button{background:#ded4c9;border-color:#ded4c9;color:#171717;padding:12px 20px}
.choose-button:hover{background:#fff}
.drop-hint{font-size:11px;color:#777;margin:20px 0 0}
.drop-overlay{position:absolute;inset:0;z-index:5;background:#141414ed;display:grid;place-items:center;color:var(--white);letter-spacing:.1em;font-size:16px}
.video-layer{position:absolute;inset:0;display:grid;place-items:center}
.video-layer video,.video-layer canvas{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;margin:auto}
.video-layer video{z-index:1}
.video-layer canvas{z-index:2}
.video-layer.comparing canvas{visibility:hidden}
.original-label{position:absolute;z-index:3;top:17px;left:19px;font-size:10px;letter-spacing:.17em;background:#000a;color:white;padding:7px 10px;border:1px solid #ffffff44;border-radius:4px}
.stage-overlay{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:#0009;color:#f4f0ea;font-size:14px}
.transport{display:flex;gap:15px;align-items:center;padding:20px 3px 13px}
.play-button{font-size:13px;color:#eee;background:#242424;border:1px solid #3c3c3c;border-radius:50%;height:38px;width:38px;flex-shrink:0}
.transport input[type=range]{flex:1;min-width:0}
.timecode{font:11px ui-monospace,Menlo,Consolas,monospace;color:#bbb;min-width:106px;text-align:right}
.preview-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;min-height:45px;color:#737373;font-size:10px}
.hold-compare{border:0;background:none;color:#bbb;font-size:11px;padding:8px 0;touch-action:none}
.hold-compare span{font-size:16px;vertical-align:-2px;margin-right:5px}
.hold-compare:not(:disabled):hover{color:white}
.status{min-height:17px;color:#b4a48f;font-size:11px;line-height:1.5}
.status.error{color:#f39b91}
.texture-section{padding:21px 23px;border-bottom:1px solid #2b2b2b}
.texture-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.texture-heading h3{font-size:14px;margin:0 0 7px;font-weight:550}
.texture-heading p{margin:0;font-size:10px;color:#858585}
.texture-symbol{font-size:25px;color:#b9a48f}.texture-symbol svg{width:22px;height:22px;display:block;fill:currentColor;stroke:none}
.texture-footer{padding:23px;margin-top:auto}
.reset-button{font-size:11px;background:#242424;color:#ccc;border:1px solid #383838;padding:10px 13px;border-radius:5px}
.studio-footer{display:flex;justify-content:space-between;padding:16px clamp(18px,3vw,52px);border-top:1px solid var(--line);font-size:9px;letter-spacing:.12em;color:#676767;gap:20px}
dialog{width:min(430px,calc(100vw - 28px));background:#171717;color:#f1f1f1;border:1px solid #45403b;border-radius:14px;box-shadow:0 26px 140px #000b;padding:28px;max-height:calc(100dvh - 36px);overflow-y:auto}
dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start}
.dialog-head h2{font-size:27px;letter-spacing:-.045em;font-weight:500;margin:0}
.close-button{background:none;border:0;color:#bbb;font-size:30px;line-height:1}
.dialog-lead{font-size:12px;color:#999;line-height:1.7;margin:17px 0 21px}
.export-option{display:flex;justify-content:space-between;align-items:center;gap:17px;border-top:1px solid #333;padding:15px 0;font-size:12px}
.export-option strong{font-size:11px;font-weight:500;color:#c6b49e;text-align:right}
.export-option select{background:#2a2a2a;color:#eee;border:1px solid #464646;border-radius:5px;padding:9px 8px}
.export-hint{font-size:11px;line-height:1.7;color:#a89a8c;margin:12px 0}
.support-hint{margin:9px auto 0;max-width:340px;font-size:10px;line-height:1.6;color:#989087}
.export-option select{max-width:min(215px,58vw);min-width:0}
.export-option .audio-toggle{display:inline-flex;align-items:center;justify-content:flex-end;gap:7px;max-width:62%;font-size:11px;line-height:1.4;color:#d2c4b7;cursor:pointer}
.audio-toggle input[type=checkbox]{width:15px;height:15px;flex-shrink:0;accent-color:#d7af89}

.progress-track{background:#333;height:5px;border-radius:4px;overflow:hidden}
.progress-fill{height:100%;width:0;background:#d5ac83}
.export-progress{margin:20px 0;color:#bbb;font-size:11px}
.export-progress span{display:block;margin-top:7px}
.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}
.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}
@media(max-width:1120px){.workspace{grid-template-columns:210px minmax(0,1fr) 214px}.panel-head,.texture-section,.texture-footer,.look-strength{padding-left:16px;padding-right:16px}.view-column{padding:20px}.preview-title h1{max-width:38vw}}
@media(max-width:820px){.topbar{min-height:62px;padding:9px 15px;gap:11px}.brand-name{font-size:16px}.mode-name{font-size:10px}.mode-name .beta{display:none}.top-actions .small-button{display:none}.workspace{display:flex;flex-direction:column}.view-column{order:0;padding:18px 14px;min-height:65dvh}.stage{min-height:280px;flex:1;aspect-ratio:4/3}.preview-title{margin-bottom:14px}.preview-title h1{font-size:22px;max-width:65vw}.preview-bottom span{display:none}.looks-panel{order:1;border-right:none;border-top:1px solid var(--line)}.texture-panel{order:2;border-left:none;border-top:1px solid var(--line)}.panel-head{padding:23px 17px 14px}.category-bar{padding:0 13px 14px;flex-wrap:nowrap;overflow-x:auto}.category{white-space:nowrap}.look-list{padding:0 13px 12px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,178px);overflow-x:auto;overflow-y:hidden;max-height:none;min-height:72px;scroll-snap-type:x proximity}.look-item{scroll-snap-align:start}.look-strength{margin-top:0;padding:14px 17px}.texture-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.texture-panel .panel-head{grid-column:1/-1}.texture-section{padding:16px;border-bottom:none;border-right:1px solid #262626}.texture-heading{margin-bottom:10px}.texture-section .range-label{font-size:11px}.texture-footer{grid-column:1/-1;padding:14px 17px}.studio-footer{padding:14px 17px}.transport{padding-top:13px}}
@media(max-width:560px){.brand-mark{font-size:23px}.mode-name{font-size:10px}.top-actions{gap:5px}.export-button{padding:9px 11px}.view-column{min-height:58dvh}.preview-title{min-height:40px}.preview-title h1{font-size:19px}.preview-spec{display:none}.empty-art{height:74px;min-width:110px;margin-bottom:13px}.empty-state h2{font-size:28px}.stage{min-height:240px}.texture-panel{grid-template-columns:1fr}.texture-section{border-right:none;border-bottom:1px solid #292929}.texture-heading{margin-bottom:9px}.texture-footer{grid-column:1}.look-item{padding:6px}.timecode{font-size:10px;min-width:86px}.transport{gap:8px}.studio-footer{font-size:8px;letter-spacing:.07em}.preview-bottom{min-height:33px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}


/* Shared KindaFilm Photo Studio design language; stays scoped to Video Film. */
:root {
  --bg-canvas:#000000;
  --bg-stage:#060608;
  --bg-panel:#0d0d0f;
  --bg-card:#121215;
  --bg-elevated:#1d1d22;
  --border-subtle:rgba(255,255,255,.065);
  --border-default:rgba(255,255,255,.13);
  --border-strong:rgba(255,255,255,.26);
  --text-primary:#f2f2f3;
  --text-secondary:#b6b6be;
  --text-muted:#94949c;
  --accent-warm:#e8c17a;
  --warm:var(--accent-warm);
  --white:var(--text-primary);
  --line:var(--border-subtle);
  --panel:var(--bg-panel);
  font-family:system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
}
html,body { background:var(--bg-canvas); color:var(--text-primary); }
.topbar {
  flex:none;
  min-height:52px;
  padding:0 20px;
  gap:12px;
  background:var(--bg-canvas);
  border-bottom:1px solid var(--border-subtle);
}
.brand {
  min-width:0;
  flex:0 1 auto;
  gap:9px;
  background:none;
  color:#fff;
  padding:0;
  text-align:left;
}
.brand-mark {display:block;flex:none;width:28px;height:28px;color:#fff}
.brand-name {font-size:18px;font-weight:640;letter-spacing:-.035em;color:#fff}
.brand-divider {height:16px;width:1px;flex:none;background:var(--border-default);margin:0 4px}
.brand-subtitle {font-size:9px;font-weight:680;letter-spacing:.2em;color:var(--text-muted);white-space:nowrap}
.beta {
  flex:none;margin-left:3px;
  font-size:9px;
  border-color:var(--border-default);
  color:var(--text-muted);
}
.top-actions{gap:8px}
.small-button,.export-button,.choose-button {
  border-radius:8px;
  font-size:12px;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease;
}
.small-button {background:var(--bg-card);border-color:var(--border-default);color:var(--text-primary)}
.small-button:hover {background:var(--bg-elevated);border-color:var(--border-strong)}
.export-button,.choose-button {background:#f2f2f3;color:#0a0a0c;border-color:#f2f2f3}
.export-button:hover:not(:disabled),.choose-button:hover {background:#fff;color:#000}
.panel {background:var(--bg-panel)}
.looks-panel {border-right:1px solid var(--border-subtle)}
.texture-panel {border-left:1px solid var(--border-subtle)}
.view-column {background:var(--bg-canvas)}
.stage {background:var(--bg-stage);border:1px solid var(--border-default);border-radius:11px}
.preview-title h1 {color:var(--text-primary)}
.preview-spec {border-color:var(--border-default);color:var(--text-secondary)}
.eyebrow {color:var(--accent-warm)}
.panel-head p:not(.eyebrow),.look-subtitle,.fine-print {color:var(--text-muted)}
.category {background:var(--bg-card);color:var(--text-secondary);border-radius:8px}
.category.active {background:var(--bg-elevated);color:var(--text-primary);border-color:rgba(232,193,122,.48)}
.look-item:hover {background:var(--bg-elevated)}
.look-item[aria-pressed="true"] {background:var(--bg-elevated);border-color:rgba(232,193,122,.48)}
.look-title {color:var(--text-primary)}
.range-label {color:var(--text-secondary)}
.range-label output {color:var(--accent-warm)}
input[type=range],.audio-toggle input[type=checkbox] {accent-color:var(--accent-warm)}
.empty-state {width:min(100%,480px);padding:24px 18px;min-width:0}
.empty-art {
  width:70px;height:60px;min-width:0;
  padding:9px;
  transform:none;
  border:1px solid var(--border-default);
  border-radius:11px;
  background:var(--bg-card);
  margin:0 0 14px;
}
.empty-art svg {display:block;width:48px;height:40px;stroke:var(--accent-warm);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.empty-state h2 {
  font-family:system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  font-weight:450;
  font-size:clamp(24px,2.8vw,38px);
  line-height:1.18;
  letter-spacing:-.06em;
  margin:8px 0 20px;
}
.drop-hint,.support-hint {color:var(--text-muted)}
.status {color:var(--text-secondary)}
.status.error {color:#f39b91}
.texture-section {border-bottom-color:var(--border-subtle)}
.reset-button {background:var(--bg-card);border-color:var(--border-default);color:var(--text-secondary);border-radius:8px}
.studio-footer {border-top-color:var(--border-subtle);color:var(--text-muted)}
.dialog-head h2 {color:var(--text-primary)}
dialog {background:var(--bg-panel);border-color:var(--border-default)}
.export-option {border-top-color:var(--border-subtle)}
.export-option select {background:var(--bg-card);color:var(--text-primary);border-color:var(--border-default);border-radius:8px}
.export-option strong {color:var(--text-secondary)}
@media (max-width:820px) {
  .topbar {min-height:56px;padding:0 15px;gap:8px}
  .beta {display:none}
  .view-column {min-height:0;padding:14px 14px 8px}
  .stage {flex:none;min-height:300px;aspect-ratio:auto}
  .preview-title {margin-bottom:11px}
  .preview-bottom {min-height:32px}
  .looks-panel,.texture-panel {border-left:0;border-right:0;border-top:1px solid var(--border-subtle)}
  .panel-head {padding:19px 17px 12px}
  .category-bar {gap:6px;padding-bottom:12px}
  .look-list {grid-auto-columns:minmax(142px,168px)}
  .look-strength {padding:12px 17px 16px}
}
@media (max-width:560px) {
  .topbar {padding:0 13px}
  .brand {gap:7px}
  .brand-mark {width:26px;height:26px}
  .brand-name {font-size:16px}
  .brand-divider {margin:0 1px}
  .brand-subtitle {font-size:8px;letter-spacing:.1em}
  .top-actions {gap:5px}
  .export-button {padding:8px 11px;white-space:nowrap}
  .preview-title h1 {font-size:19px}
  .stage {min-height:285px}
  .empty-state {padding:18px 14px}
  .empty-art {width:58px;height:54px;padding:6px;margin-bottom:10px}
  .empty-art svg {width:45px;height:38px}
  .empty-state h2 {font-size:clamp(24px,6.5vw,30px);margin:6px 0 16px}
  .empty-state .eyebrow {font-size:8px}
  .drop-hint {margin-top:12px}
  .support-hint {margin-top:5px}
  .look-list {min-height:66px;grid-auto-columns:minmax(134px,154px)}
  .studio-footer {font-size:9px}
}


/* V1.4B / Cinematic Light: tucked away until requested, friendly to mobile. */
.texture-panel {min-height:0;overflow-y:auto;overscroll-behavior:contain;}
.light-panel {flex:none;border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle);background:var(--bg-panel);min-width:0;}
.light-panel > summary {list-style:none;cursor:pointer;display:flex;gap:10px;align-items:center;padding:17px 20px;min-height:70px;user-select:none;}
.light-panel > summary::-webkit-details-marker{display:none}
.light-panel > summary:focus-visible{outline:2px solid var(--accent-warm);outline-offset:-3px;border-radius:8px}
.light-panel-icon{flex:none;width:32px;height:32px;border:1px solid var(--border-default);border-radius:9px;display:grid;place-items:center;color:var(--accent-warm);background:var(--bg-card)}
.light-panel-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.light-panel-title{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.light-panel-title .eyebrow{margin:0;font-size:9px;letter-spacing:.12em}
.light-panel-title strong{color:var(--text-primary);font-size:13px;font-weight:570;letter-spacing:-.018em}
.light-panel-title small{color:var(--text-muted);font-size:10px}
.light-panel-chevron{font-size:19px;color:var(--text-secondary);transform-origin:center;transition:transform .16s ease}
.light-panel[open] .light-panel-chevron{transform:rotate(180deg)}
.light-panel[data-active="true"] > summary .light-panel-icon{border-color:var(--accent-warm);background:rgba(232,193,122,.12)}
.light-controls{padding:0 20px 18px;border-top:1px solid var(--border-subtle)}
.light-controls .fine-print{margin:13px 0 15px}
.light-controls .range-label{font-size:11px;margin:11px 0 5px;align-items:baseline}
.light-controls .range-label label{line-height:1.4}
.light-controls .range-label output{flex-shrink:0}
.light-controls input[type=range]{height:22px}
.light-controls .reset-button{margin-top:17px;max-width:100%}
@media(max-width:820px){
  .texture-panel{overflow:visible}
  .light-panel{grid-column:1/-1;min-width:0}
  .light-panel > summary{padding:14px 17px}
  .light-controls{padding:0 17px 18px}
}
@media(prefers-reduced-motion:reduce){.light-panel-chevron{transition:none}}


/* V1.4C - compare and preview controls, isolated from Photo Studio. */
.preview-bottom {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  padding-top:8px;
  min-height:45px;
}
.compare-actions {display:flex;align-items:center;gap:8px;min-width:0}
.compare-actions .hold-compare,.split-button{
  display:inline-flex;
  gap:6px;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:8px;
  border:1px solid var(--border-default);
  background:var(--bg-card);
  color:var(--text-secondary);
  font-size:11px;
  font-weight:520;
  min-height:34px;
  white-space:nowrap;
}
.compare-actions .hold-compare span,.split-button span {font-size:14px;line-height:1;margin:0}
.compare-actions .hold-compare:not(:disabled):hover,.split-button:not(:disabled):hover{
  color:var(--text-primary);background:var(--bg-elevated);
}
.split-button[aria-pressed="true"] {background:var(--bg-elevated);color:var(--text-primary);border-color:var(--accent-warm)}
.preview-quality {display:flex;gap:8px;align-items:center;color:var(--text-muted);font-size:10px;white-space:nowrap}
.preview-quality select {
  color:var(--text-primary);
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:7px;
  height:34px;
  padding:0 25px 0 9px;
  font-size:11px;
  max-width:116px;
}
.preview-meta {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;line-height:1.5;min-height:17px;color:var(--text-muted);margin:0 0 7px}
.preview-meta #previewNote {flex:1 1 240px}
.preview-meta #previewMetrics {font-variant-numeric:tabular-nums;color:var(--text-secondary);font-size:10px;white-space:nowrap}
.video-layer.split-view {cursor:ew-resize;touch-action:none}
.video-layer.split-view #filmCanvas {
  clip-path:inset(0 0 0 var(--split-percent,50%));
  -webkit-clip-path:inset(0 0 0 var(--split-percent,50%));
}
.split-divider {
  position:absolute;
  top:0;
  bottom:0;
  left:var(--split-percent,50%);
  transform:translateX(-50%);
  width:2px;
  z-index:3;
  pointer-events:none;
  background:rgba(255,255,255,.96);
  box-shadow:0 0 8px #000b;
}
.split-grip {
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  display:grid;place-items:center;
  width:33px;height:35px;
  border:1px solid rgba(255,255,255,.8);
  border-radius:10px;
  color:#fff;
  background:#111e;
  font-size:19px;
  line-height:1;
  box-shadow:0 2px 13px #0009;
}
.split-label {
  position:absolute;
  top:13px;
  z-index:3;
  padding:5px 7px;
  font-size:9px;
  font-weight:650;
  letter-spacing:.1em;
  background:#0009;
  border:1px solid rgba(255,255,255,.26);
  color:#fff;
  border-radius:5px;
  pointer-events:none;
}
.split-original {left:12px}
.split-edited {right:12px}
.video-layer.comparing .split-divider,.video-layer.comparing .split-label {visibility:hidden}
.split-tools {display:flex;align-items:center;gap:12px;padding:0 3px 7px}
.split-tools label,.split-tools output {color:var(--text-secondary);font-size:11px;white-space:nowrap}
.split-tools input[type=range] {flex:1;min-width:0;accent-color:var(--accent-warm)}
.split-tools output {min-width:35px;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:820px) {
  .preview-bottom {gap:8px;padding-top:9px;min-height:40px}
  .preview-meta #previewNote {display:block}
  .preview-meta {padding:0 2px 5px}
}
@media(max-width:560px) {
  .preview-bottom {flex-wrap:nowrap}
  .compare-actions {gap:5px}
  .compare-actions .hold-compare,.split-button {
    min-height:36px;font-size:10px;padding:6px 8px;gap:4px
  }
  .preview-quality {gap:4px;font-size:10px}
  .preview-quality select {max-width:90px;padding:0 21px 0 7px;font-size:10px;min-height:36px}
  .split-tools {gap:8px}
  .split-tools label {font-size:10px}
  .preview-meta #previewMetrics {font-size:9px}
  .split-label {font-size:8px}
}

/* Earlier mobile rules hide all preview-bottom spans; restore button symbols and selector label. */
@media(max-width:820px){.preview-bottom span{display:inline}}


/* V1.5A — export integrity: restrained diagnostics, scoped to Video Film. */
.export-plan {
  margin:14px 0 10px;
  border:1px solid var(--border-default);
  background:var(--bg-card);
  border-radius:9px;
  padding:12px 14px;
  font-size:11px;
  line-height:1.65;
  color:var(--text-secondary);
  font-variant-numeric:tabular-nums;
}
.export-progress small{
  display:block;
  margin-top:7px;
  font-size:10px;
  line-height:1.5;
  color:var(--text-muted);
  font-variant-numeric:tabular-nums;
}
.export-receipt{
  border:1px solid var(--border-default);
  border-radius:10px;
  background:var(--bg-card);
  padding:12px 14px;
  margin:5px 0 16px;
  min-width:0;
}
.export-receipt .eyebrow{font-size:9px;letter-spacing:.13em;margin:0 0 6px}
.export-receipt-main{margin:0;color:var(--text-primary);font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.export-receipt-detail{margin:7px 0 0;color:var(--text-muted);font-size:10px;line-height:1.6;overflow-wrap:anywhere}
#exportDialog{
  max-height:min(88dvh,800px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
@media(max-width:560px){
  .export-plan{padding:10px 11px;font-size:10px}
  .export-receipt{margin-bottom:12px;padding:10px 11px}
  #exportDialog{max-height:88dvh}
}


/* V1.5B — optional frame-controlled WebM; compatible MediaRecorder stays default. */
.export-engine-note{
  margin:-5px 0 12px;
  color:var(--text-muted);
  font-size:11px;
  line-height:1.6;
  max-width:100%;
}
#frameRateRow select,#exportEngine{
  color:var(--text-primary);
  background:var(--bg-card);
  border:1px solid var(--border-default);
  border-radius:8px;
}
#frameRateRow[hidden],#recordingRateRow[hidden],#exportCodecRow[hidden]{display:none!important}
#exportEngine option:disabled{color:#777}
#exportDialog .export-option:has(#exportEngine){
  border-top-color:var(--border-default);
}
@media(max-width:560px){
  #exportEngine{max-width:min(200px,56vw);font-size:11px;}
  .export-engine-note{font-size:10px;}
}


/* Video Film mobile workbench: the same restrained SVG, graphite palette,
   compact labels and drawer language as the Photo Studio bottom tools. */
.mobile-tool-dock,.mobile-tools-sheet{display:none}
.mobile-tool-action svg,.mobile-tools-close svg{
  width:21px;height:21px;fill:none;stroke:currentColor;
  stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;
}
@media(max-width:820px){
  html,body{height:100%;max-height:100%;overflow:hidden;overscroll-behavior:none}
  .studio{height:100dvh;min-height:0;overflow:hidden}
  .topbar{height:52px;min-height:52px;padding:0 14px;flex:none}
  .topbar .top-actions{display:none}
  .workspace{display:flex;flex:1;min-height:0;overflow:hidden}
  .view-column{
    width:100%;height:100%;flex:1;min-height:0!important;
    display:flex;flex-direction:column;overflow:hidden;
    padding:9px 12px 6px;gap:0;
  }
  .preview-title{min-height:33px;max-height:38px;margin:0 0 7px;flex:none}
  .preview-title .eyebrow{margin:0 0 4px;font-size:8px}
  .preview-title h1{font-size:17px;line-height:1.15;max-width:85vw}
  .stage{
    flex:1 1 auto!important;aspect-ratio:auto!important;
    min-height:0!important;height:auto;max-height:none;
    border-radius:10px;
  }
  .transport{flex:none;padding:9px 2px 4px;min-height:45px}
  .transport .play-button{width:34px;height:34px;font-size:12px}
  .preview-meta{flex:none;min-height:20px;padding:0 2px;margin:1px 0 2px}
  .preview-meta #previewNote{display:none}
  .preview-meta #previewMetrics{font-size:9px;line-height:1.3}
  .status{min-height:0;max-height:31px;flex:none;overflow:hidden;
    font-size:10px;line-height:1.3;margin-top:1px}
  .export-receipt{flex:none;max-height:70px;overflow-y:auto;margin:2px 0 4px;padding:7px 9px}
  .export-receipt .eyebrow{display:none}
  .export-receipt-detail{font-size:9px}
  .studio-footer{display:none}
  .mobile-tool-dock{
    flex:none;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
    position:relative;z-index:28;width:100%;
    min-height:calc(64px + env(safe-area-inset-bottom));
    padding:7px max(5px,env(safe-area-inset-left))
      calc(6px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-right));
    gap:2px;border-top:1px solid var(--border-default);
    background:#0c0c0e;
  }
  .mobile-tool-action{
    appearance:none;min-width:0;min-height:48px;padding:4px 1px 3px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
    color:var(--text-muted);background:transparent;border:1px solid transparent;
    border-radius:11px;touch-action:manipulation;
  }
  .mobile-tool-action svg{width:20px;height:20px;flex:none}
  .mobile-tool-action span{font-size:9px;font-weight:540;line-height:1.1;letter-spacing:.005em;white-space:nowrap}
  .mobile-tool-action[aria-pressed="true"]{
    color:var(--text-primary);border-color:var(--border-default);background:var(--bg-elevated);
  }
  .mobile-tool-action[aria-pressed="true"] svg{stroke:var(--accent-warm)}
  .mobile-tool-action:disabled{opacity:.34}
  .mobile-export-action:not(:disabled){color:var(--text-primary)}
  .mobile-tools-sheet:not([hidden]){
    display:flex;flex-direction:column;
    position:fixed;left:0;right:0;
    bottom:calc(64px + env(safe-area-inset-bottom));
    z-index:27;max-height:min(50dvh,440px);min-height:122px;
    background:#111114;border:1px solid var(--border-default);border-bottom:none;
    border-radius:18px 18px 0 0;
    box-shadow:0 -18px 60px #000b;
    overflow:hidden;overscroll-behavior:contain;
    animation:video-tools-rise .16s ease-out both;
  }
  .mobile-tools-head{
    flex:none;min-height:54px;display:flex;align-items:center;justify-content:space-between;
    padding:10px 15px 8px;border-bottom:1px solid var(--border-subtle);
  }
  .mobile-tools-head .eyebrow{display:block;margin:0 0 3px;color:var(--accent-warm);font-size:8px}
  .mobile-tools-head h2{margin:0;font-size:14px;font-weight:580;letter-spacing:-.025em}
  .mobile-tools-close{flex:none;width:30px;height:30px;display:grid;place-items:center;
    background:var(--bg-elevated);border:1px solid var(--border-default);
    border-radius:9px;color:var(--text-secondary)}
  .mobile-tools-close svg{width:16px;height:16px}
  .mobile-tools-content{
    display:block;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;
    -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
    scrollbar-width:thin;scrollbar-color:#555 transparent;
  }
  .mobile-tools-content>.looks-panel,
  .mobile-tools-content>.texture-panel,
  .mobile-tools-content>.mobile-view-controls{
    display:none!important;max-width:none;width:100%;margin:0;border:0;
    min-height:0;background:transparent;box-shadow:none;overflow:visible;
  }
  body[data-video-tool="looks"] .mobile-tools-content>.looks-panel,
  body[data-video-tool="adjust"] .mobile-tools-content>.looks-panel,
  body[data-video-tool="texture"] .mobile-tools-content>.texture-panel,
  body[data-video-tool="light"] .mobile-tools-content>.texture-panel,
  body[data-video-tool="view"] .mobile-tools-content>.mobile-view-controls{
    display:flex!important;flex-direction:column;
  }
  .mobile-tools-content .panel-head{display:none}
  body[data-video-tool="looks"] .looks-panel>.look-strength{display:none}
  body[data-video-tool="adjust"] .looks-panel>.category-bar,
  body[data-video-tool="adjust"] .looks-panel>.look-list{display:none}
  body[data-video-tool="looks"] .category-bar{
    position:sticky;top:0;z-index:2;display:flex;flex-wrap:nowrap;gap:5px;
    padding:10px 12px 8px;overflow-x:auto;scrollbar-width:none;
    background:#111114;
  }
  body[data-video-tool="looks"] .category-bar::-webkit-scrollbar{display:none}
  body[data-video-tool="looks"] .category{flex:none;padding:7px 10px;font-size:10px}
  body[data-video-tool="looks"] .look-list{
    display:grid;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-columns:auto;gap:4px;max-height:none;min-height:0;
    overflow:visible;scroll-snap-type:none;padding:4px 10px 14px;
  }
  body[data-video-tool="looks"] .look-item{padding:6px;gap:8px;min-height:51px;border-radius:8px}
  body[data-video-tool="looks"] .look-swatch{flex:0 0 35px;width:35px;height:35px;border-radius:6px}
  body[data-video-tool="looks"] .look-title{font-size:11px}
  body[data-video-tool="looks"] .look-subtitle{font-size:8px;line-height:1.3}
  body[data-video-tool="adjust"] .look-strength{
    display:block;margin:0;padding:10px 17px 17px;border:0;
  }
  .mobile-tools-content .range-label{margin:9px 0 3px;font-size:11px}
  .mobile-tools-content input[type="range"]{height:26px;touch-action:pan-x}
  body[data-video-tool="texture"] .texture-panel>.light-panel,
  body[data-video-tool="light"] .texture-panel>.texture-section,
  body[data-video-tool="light"] .texture-panel>.texture-footer{display:none!important}
  body[data-video-tool="texture"] .texture-panel>.texture-section{
    display:block;width:100%;padding:10px 17px 12px;border-right:0;
    border-bottom:1px solid var(--border-subtle);
  }
  body[data-video-tool="texture"] .texture-heading{margin-bottom:5px}
  body[data-video-tool="texture"] .texture-heading h3{font-size:12px;margin-bottom:2px}
  body[data-video-tool="texture"] .texture-heading p{font-size:9px}
  body[data-video-tool="texture"] .texture-symbol{font-size:18px}
  body[data-video-tool="texture"] .texture-footer{display:block;padding:12px 17px 17px;margin:0}
  body[data-video-tool="light"] .texture-panel>.light-panel{
    display:block!important;border:0;background:transparent;
  }
  body[data-video-tool="light"] .light-panel>summary{display:none}
  body[data-video-tool="light"] .light-controls{padding:9px 17px 18px;border:0}
  body[data-video-tool="light"] .light-controls .fine-print{margin:5px 0 12px;font-size:9px}
  .mobile-view-controls{padding:12px 16px 16px}
  .mobile-controls-note{margin:0 0 9px;color:var(--text-muted);font-size:10px;line-height:1.5}
  .mobile-view-controls .preview-bottom{min-height:42px;padding:0;display:flex;flex-wrap:wrap}
  .mobile-view-controls .preview-quality{display:flex}
  .mobile-view-controls .preview-bottom span{display:inline}
  .mobile-view-controls .split-tools{padding:10px 0 0;width:100%}
}
@keyframes video-tools-rise{from{opacity:.75;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:820px) and (max-height:540px){
  .topbar{height:43px;min-height:43px}
  .preview-title{min-height:24px;max-height:28px;margin-bottom:3px}
  .preview-title .eyebrow{display:none}
  .transport{min-height:34px;padding:3px 1px}
  .mobile-tool-dock{min-height:calc(57px + env(safe-area-inset-bottom))}
  .mobile-tools-sheet:not([hidden]){bottom:calc(57px + env(safe-area-inset-bottom));max-height:65dvh}
}
@media(prefers-reduced-motion:reduce){.mobile-tools-sheet:not([hidden]){animation:none}}


/* V1.6 — Film Recipes: original, shareable settings without video storage.
   Compact inline rail on desktop, same controls inside mobile Looks sheet. */
.video-recipes{
  flex:none;
  min-width:0;
  margin:0 13px 13px;
  padding:12px 11px 9px;
  border:1px solid var(--border-default,#343131);
  background:rgba(255,255,255,.018);
  border-radius:10px;
}
.video-recipes-heading{display:flex;align-items:center;justify-content:space-between;gap:9px}
.video-recipes-heading .eyebrow{font-size:8px;margin:0 0 4px}
.video-recipes-heading h3{font-size:12px;font-weight:580;letter-spacing:-.025em;color:#f1eee9;margin:0}
.video-recipe-save,.video-recipe-actions button{
  appearance:none;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid #55463b;color:#e7c6a7;background:#25201d;
  border-radius:7px;padding:7px 9px;min-height:30px;flex:none;
  font-size:10px;font-weight:560;
}
.video-recipe-save svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round}
.video-recipe-save:hover,.video-recipe-actions button:hover{background:#342922}
.video-recipe-save:disabled{opacity:.45}
.video-recipe-list{display:flex;gap:5px;overflow-x:auto;min-width:0;padding:10px 0 2px;scrollbar-width:thin;scrollbar-color:#51443c transparent;overscroll-behavior-inline:contain}
.video-recipe-empty{font-size:10px;line-height:1.55;color:#8d8680;margin:0}
.video-recipe-item{display:flex;align-items:stretch;flex:none;max-width:200px;border:1px solid #3a3430;border-radius:7px;overflow:hidden;background:#211e1d}
.video-recipe-item[data-matching="true"]{border-color:#bd906c;background:#332920}
.video-recipe-apply{appearance:none;background:transparent;color:#e4dfd9;border:0;padding:9px 8px;font-size:10px;font-weight:550;text-align:left;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.video-recipe-apply[aria-pressed="true"]{color:#ebc4a0}
.video-recipe-remove{appearance:none;border:0;border-left:1px solid #3b332e;background:transparent;color:#aaa;padding:8px 9px;font-size:13px;line-height:1}
.video-recipe-remove:hover{color:#fff;background:#48302b}
.video-recipe-save-panel{padding:11px 0 5px;display:flex;flex-direction:column;gap:7px}
.video-recipe-save-panel label{font-size:10px;color:#bfb5ab}
.video-recipe-save-panel input{min-width:0;width:100%;background:#1c1a1a;border:1px solid #49413d;color:#f7f3ee;border-radius:7px;padding:9px 10px;font-size:12px}
.video-recipe-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.video-recipe-actions button{background:#202020;border-color:#48413b;color:#ddd}
.video-recipe-actions .video-recipe-confirm{background:#ebded0;border-color:#ebded0;color:#201b18}
.video-recipe-manage{border-top:1px solid #302a27;margin-top:10px;padding-top:7px;color:#918781;font-size:9px}
.video-recipe-manage>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px;padding:2px 0}
.video-recipe-manage>summary::-webkit-details-marker{display:none}
.video-recipe-manage .video-recipe-actions{padding:10px 0 2px}
.video-recipe-manage button{font-size:9px;min-height:29px}
@media(max-width:820px){
  body[data-video-tool="adjust"] .looks-panel>.video-recipes{display:none!important}
  body[data-video-tool="looks"] .looks-panel>.video-recipes{
    display:block!important;margin:9px 10px 2px;padding:11px 12px 9px;border-radius:10px;
  }
  body[data-video-tool="looks"] .looks-panel>.video-recipes .video-recipe-list{
    overflow-x:auto;max-width:100%;padding:9px 0 3px;
  }
  body[data-video-tool="looks"] .looks-panel>.video-recipes .video-recipe-item{max-width:170px}
  body[data-video-tool="looks"] .looks-panel>.video-recipes .video-recipe-apply{max-width:129px}
  body[data-video-tool="looks"] .category-bar{position:static}
}


/* V1.8 — Cinematic Light Leaks, part of the existing Light tools. */
.light-leak-group{
  border:1px solid var(--border-default);background:rgba(232,193,122,.035);
  border-radius:11px;padding:12px 13px 13px;margin:17px 0 15px;
}
.light-leak-heading{display:grid;grid-template-columns:29px 1fr;column-gap:9px;align-items:center}
.light-leak-icon{
  grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;
  border:1px solid rgba(232,193,122,.22);border-radius:8px;
  color:var(--accent-warm);background:rgba(232,193,122,.06);
}
.light-leak-icon svg{
  width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;
  stroke-linecap:round;stroke-linejoin:round;
}
.light-leak-heading strong{font-size:11px;font-weight:590;color:var(--text-primary)}
.light-leak-heading small{font-size:9px;line-height:1.6;color:var(--text-muted)}
.light-leak-group .range-label{margin:11px 0 4px}
.light-leak-style{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin:12px 0 10px;font-size:11px;color:var(--text-secondary);
}
.light-leak-style select{
  min-width:0;width:155px;max-width:64%;height:34px;padding:0 9px;
  font:inherit;font-size:11px;color:var(--text-primary);background:var(--bg-elevated);
  border:1px solid var(--border-default);border-radius:8px;
}
.light-leak-group .fine-print{margin:8px 0 0;font-size:9px;line-height:1.55}
.light-leak-style select:focus-visible{outline:2px solid var(--accent-warm);outline-offset:2px}
@media(max-width:820px){
  .light-leak-group{margin:14px 0;padding:11px 12px}
  .light-leak-style select{width:150px}
}


/* Desktop editor workbench V1.9 — keep the preview and navigation in the
   viewport. Long collections scroll inside their own tools, never the page. */
@media (min-width:821px) {
  html,body {
    height:100%;
    overflow:hidden;
    overscroll-behavior:none;
  }
  .studio {
    height:100dvh;
    min-height:0;
    overflow:hidden;
  }
  .topbar,.studio-footer {flex:none}
  .studio-footer {
    padding:9px clamp(18px,2vw,30px);
    min-height:32px;
    align-items:center;
  }
  .workspace {
    flex:1 1 auto;
    min-height:0;
    height:0;
    overflow:hidden;
    grid-template-columns:clamp(218px,20vw,264px) minmax(0,1fr) clamp(218px,20vw,264px);
  }
  .workspace > .panel,
  .workspace > .view-column {
    min-height:0;
    max-height:100%;
  }
  .looks-panel,.texture-panel {
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-width:thin;
    scrollbar-color:#464248 transparent;
  }
  .panel-head {
    padding:18px 17px 12px;
    flex:none;
  }
  .panel-head .eyebrow {margin-bottom:7px}
  .panel-head h2 {font-size:19px;margin-bottom:5px}
  .panel-head p:not(.eyebrow) {line-height:1.4}
  .video-recipes {
    flex:none;
    margin:0 11px 9px;
    padding:9px 10px 7px;
  }
  .video-recipe-list {padding-top:7px}
  .video-recipe-manage {margin-top:7px}
  .category-bar {
    flex:none;
    gap:5px;
    padding:0 11px 10px;
  }
  .category {padding:6px 7px}
  .look-list {
    flex:1 1 auto;
    min-height:100px;
    max-height:none;
    overflow-y:auto;
    overflow-x:hidden;
    padding:0 11px 9px;
    overscroll-behavior-y:contain;
  }
  .look-item {gap:9px;padding:6px}
  .look-swatch {flex-basis:37px;width:37px;height:37px}
  .look-strength {
    flex:none;
    margin-top:0;
    padding:11px 17px 14px;
  }
  .look-strength .range-label {margin:6px 0 4px}
  .look-strength input[type=range] {height:19px}
  .look-strength .fine-print {margin-top:7px}
  .texture-section {padding:15px 17px}
  .texture-heading {margin-bottom:10px}
  .texture-heading h3 {margin-bottom:4px}
  .texture-section .range-label,
  .texture-footer .range-label {margin:7px 0 4px}
  .texture-panel input[type=range] {height:19px}
  .texture-footer {padding:15px 17px}
  .light-panel > summary {min-height:59px;padding:12px 17px}
  .light-controls {padding:0 17px 15px}
  .view-column {
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-width:thin;
    padding:clamp(14px,1.7vw,26px);
  }
  .preview-title {min-height:44px;margin-bottom:12px;flex:none}
  .preview-title .eyebrow {margin-bottom:6px}
  .preview-title h1 {font-size:clamp(20px,2.3vw,28px)}
  .stage {
    min-height:min(250px,36dvh);
    flex:1 1 0%;
  }
  .transport {flex:none;padding:11px 3px 6px}
  .preview-bottom {flex:none;min-height:40px;padding-top:4px}
  .split-tools,.preview-meta,.status,.export-receipt {flex:none}
  .preview-meta {margin-bottom:3px}
  .status {min-height:0}
  .export-receipt {margin-bottom:7px}
}
/* Short desktop windows retain all tools via pane scrolling and simplify the
   pre-import empty state instead of forcing the whole application to scroll. */
@media (min-width:821px) and (max-height:700px) {
  .panel-head {padding-top:11px;padding-bottom:8px}
  .video-recipes {margin-bottom:6px}
  .look-list {min-height:84px}
  .look-strength {padding-top:8px;padding-bottom:10px}
  .view-column {padding-top:11px;padding-bottom:10px}
  .preview-title {min-height:33px;margin-bottom:7px}
  .stage {min-height:170px}
  .empty-state {padding:10px 16px}
  .empty-art {height:47px;width:53px;margin-bottom:7px}
  .empty-art svg {height:32px;width:39px}
  .empty-state h2 {font-size:24px;margin:4px 0 10px}
  .drop-hint {margin-top:9px}
  .transport {padding-top:7px;padding-bottom:3px}
}


/* V2.0 desktop finishing: distinct editing modes in the two tool rails,
   less visual noise around the image, and no extra page-level scrolling. */
.desktop-panel-switch {display:none}
@media (min-width:821px) {
  .desktop-panels-ready .desktop-panel-switch {
    position:sticky;
    top:0;
    z-index:6;
    flex:none;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px;
    padding:8px 11px 10px;
    background:rgba(13,13,15,.97);
    border-bottom:1px solid var(--border-subtle);
  }
  .desktop-panel-switch button {
    min-height:33px;
    border:1px solid transparent;
    border-radius:8px;
    background:#18181b;
    color:var(--text-muted);
    font-size:11px;
    font-weight:570;
    letter-spacing:.005em;
    transition:color .15s ease,background-color .15s ease,border-color .15s ease;
  }
  .desktop-panel-switch button:hover {
    color:var(--text-primary);
    background:#262428;
  }
  .desktop-panel-switch button[aria-pressed="true"] {
    color:#f1dfc2;
    border-color:rgba(232,193,122,.4);
    background:rgba(232,193,122,.11);
  }
  .desktop-panel-switch button:focus-visible {
    outline:2px solid var(--accent-warm);
    outline-offset:2px;
  }

  /* JS opt-in: if the switcher fails to load, all original controls remain visible. */
  .desktop-panels-ready .looks-panel[data-desktop-view="looks"] > .look-strength {
    display:none;
  }
  .desktop-panels-ready .looks-panel[data-desktop-view="adjust"] > .video-recipes,
  .desktop-panels-ready .looks-panel[data-desktop-view="adjust"] > .category-bar,
  .desktop-panels-ready .looks-panel[data-desktop-view="adjust"] > .look-list {
    display:none;
  }
  .desktop-panels-ready .looks-panel[data-desktop-view="adjust"] > .look-strength {
    flex:1 1 auto;
    min-height:0;
    margin-top:0;
    padding:17px 17px 22px;
    overflow-y:auto;
    border-top:0;
  }
  .desktop-panels-ready .looks-panel[data-desktop-view="adjust"] .range-label {
    margin:13px 0 6px;
    font-size:11px;
  }
  .desktop-panels-ready .looks-panel[data-desktop-view="adjust"] input[type=range] {
    height:25px;
  }
  .desktop-panels-ready .texture-panel[data-desktop-view="texture"] > .light-panel {
    display:none;
  }
  .desktop-panels-ready .texture-panel[data-desktop-view="light"] > .texture-section,
  .desktop-panels-ready .texture-panel[data-desktop-view="light"] > .texture-footer {
    display:none;
  }
  .desktop-panels-ready .texture-panel[data-desktop-view="light"] > .light-panel {
    display:block;
    border-top:0;
    background:transparent;
  }
  .desktop-panels-ready .texture-panel[data-desktop-view="light"] .light-panel > summary {
    padding:11px 16px;
    min-height:57px;
  }
  .desktop-panels-ready .texture-panel[data-desktop-view="light"] .light-controls {
    padding:0 17px 18px;
  }

  /* Stage first: tools frame the media but never visually overpower it. */
  .view-column {
    background:radial-gradient(ellipse at 50% 42%,#111013 0%,#08080a 68%);
    overflow-x:hidden;
  }
  .stage {
    border-color:rgba(255,255,255,.17);
    box-shadow:0 16px 44px rgba(0,0,0,.24);
    border-radius:12px;
  }
  .preview-title h1 {
    max-width:min(48vw,680px);
  }
  .preview-bottom {
    border-top:1px solid var(--border-subtle);
    margin-top:7px;
    padding-top:8px;
  }
  .compare-actions .hold-compare,.split-button {
    border-radius:7px;
  }
  .topbar {
    background:#09090b;
  }
}
@media (min-width:821px) and (max-height:700px) {
  .studio-footer {display:none}
  .desktop-panels-ready .desktop-panel-switch {
    padding-top:6px;
    padding-bottom:7px;
  }
  .desktop-panel-switch button {min-height:30px}
  .preview-bottom {margin-top:4px;padding-top:5px}
  /* Very short browser windows must never clip the import CTA. */
  .empty-state {
    max-height:100%;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-width:thin;
  }
}
@media (prefers-reduced-motion:reduce) {
  .desktop-panel-switch button {transition:none}
}
