.fw-page {
  --fw-ink: var(--ink); --fw-muted: var(--muted); --fw-deep: var(--paper);
  --fw-panel: var(--white); --fw-raised: var(--soft); --fw-line: var(--line);
  --fw-accent: var(--action); --fw-secondary: #36566c; --fw-selection: #e1ebf2;
  --fw-clip-video: #dbe9f1; --fw-clip-image: #eae2f0; --fw-clip-card: #f2e3ee;
  --fw-clip-border: #8ca8b6; --fw-selection-line: #476b84;
  --fw-desk-size: max(25rem,calc(100svh - 14rem));
  width: calc(100% - 2 * clamp(.42rem, 1.4vw, 1.7rem));
  padding-block: clamp(.62rem,1.25vw,1.25rem) 1.65rem;
}
.fw-photo { --fw-secondary: #5c4070; --fw-selection: #ede5f4; --fw-selection-line: #78598e; }
[data-theme="dark"] .fw-page {
  --fw-secondary: #bcd4f9; --fw-selection: #2d4150;
  --fw-clip-video: #294453; --fw-clip-image: #3b3650; --fw-clip-card: #4b3550;
  --fw-clip-border: #718da0; --fw-selection-line: #a8c6f0;
}
[data-theme="dark"] .fw-photo { --fw-secondary: #e2c8f7; --fw-selection: #3a324b; --fw-selection-line: #c09cd6; }
.workshop-page .header-inner { width: calc(100% - 2 * clamp(.7rem,1.9vw,2.25rem)); min-height: 58px; }
.workshop-page .site-header .brand-logo { width: clamp(7.1rem,11vw,9.15rem); }
.fw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .42rem 1.2rem; margin-bottom: .8rem; }
.fw-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .88rem; font-weight: 640; }
.fw-breadcrumb a { text-underline-offset: .19em; }
.fw-head h1 { margin: .24rem 0 .16rem; font-size: clamp(1.62rem, 3vw, 2.75rem); letter-spacing: -.06em; line-height: 1.06; }
.fw-lede { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.fw-head-links { display: grid; justify-items: end; gap: .45rem; text-align: right; flex: 0 0 auto; }
.fw-head-links a { font-size: .88rem; color: var(--support); text-underline-offset: .2em; }
.fw-local { display: inline-flex; align-items: center; gap: .38rem; border: 1px solid var(--success-border); border-radius: 100px; padding: .36rem .62rem; font-size: .87rem; font-weight: 720; color: var(--success-ink); background: var(--success-bg); }
.fw-workstation { background: var(--fw-panel); border: 1px solid var(--fw-line); color: var(--fw-ink); border-radius: 13px; overflow: clip; box-shadow: 0 9px 26px #1120220d; }
.fw-workstation :focus-visible { outline-color: var(--focus-color); outline-offset: 2px; }
.fw-space-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem .75rem; padding: .4rem clamp(.55rem,1.3vw,1.05rem); border-bottom: 1px solid var(--fw-line); background: var(--fw-panel); }
.fw-space-modes { display: flex; gap: .25rem; flex-wrap: wrap; }
.fw-workstation[data-focus] { position: fixed; inset: 0; z-index: 12; border: 0; border-radius: 0; overflow: auto; min-height: 100dvh; overscroll-behavior: contain; }
.workshop-page[data-studio-focus] { overflow: hidden; }
.fw-workstation[data-focus] :is(.fw-space-bar,#fw-video-view > .fw-controls) { position: sticky; top: 0; z-index: 5; }
.fw-workstation h2 { font-size: 1.13rem; letter-spacing: -.025em; line-height: 1.25; text-wrap: pretty; }
.fw-workstation h3 { margin-top: .9rem; font-size: .91rem; font-weight: 740; }
.fw-button, .fw-tool, .fw-chip, .fw-preset {
  border: 1px solid var(--fw-line); border-radius: 8px; min-height: 44px; color: inherit;
  background: var(--fw-raised); font: inherit; font-size: .88rem; font-weight: 690;
}
.fw-button { display: inline-flex; align-items: center; justify-content: center; gap: .46rem; padding: .52rem .69rem; line-height: 1.22; text-decoration: none; text-align: center; }
.fw-primary { background: var(--fw-accent); border-color: var(--fw-accent); color: var(--on-action); font-weight: 800; }
.fw-outline { background: var(--fw-panel); }
.fw-button:not(:disabled):hover, .fw-preset:hover, .fw-chip:hover { border-color: var(--field-border); }
.fw-primary:not(:disabled):hover { background: var(--action-hover); border-color: var(--action-hover); }
.fw-text-button { background: transparent; border-color: transparent; color: var(--fw-secondary); justify-content: flex-start; }
.fw-full { width: 100%; }
.fw-controls, .fw-time-top, .fw-music, .fw-output, .fw-result, .fw-stage-label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .58rem 1rem; }
.fw-controls { background: var(--fw-panel); padding: .55rem clamp(.58rem, 1.45vw, 1.15rem); border-bottom: 1px solid var(--fw-line); }
.fw-control-group, .fw-mini-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: .38rem; }
.fw-desk { display: grid; grid-template-columns: minmax(5.35rem,6.25rem) minmax(0,1fr) clamp(16.8rem,22vw,24rem); grid-template-rows: minmax(0,1fr); min-width: 0; height: var(--fw-desk-size); }
.fw-rail { display: flex; flex-direction: column; align-items: stretch; gap: .38rem; padding: .55rem .42rem; background: var(--fw-panel); border-right: 1px solid var(--fw-line); overflow: auto; }
.fw-tool { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .26rem; padding: .5rem .22rem; text-align: center; line-height: 1.2; min-height: 64px; color: var(--fw-muted); background: transparent; border-color: transparent; }
.fw-tool .icon { width: 1.38rem; height: 1.38rem; }
.fw-tool:hover { background: var(--fw-raised); color: var(--fw-ink); }
.fw-tool[aria-pressed=true] { background: var(--fw-selection); color: var(--fw-secondary); border-color: var(--fw-selection-line); }
.fw-stage { min-width: 0; min-height: 0; position: relative; display: grid; place-items: center; overflow: clip; background: var(--paper); }
.fw-photo-stage { padding-bottom: 2.65rem; }
.fw-stage.fw-dragging { outline: 2px dashed var(--fw-accent); outline-offset: -8px; }
.fw-empty { text-align: center; padding: 1rem; display: grid; place-items: center; gap: .65rem; }
.fw-empty h2 { font-size: clamp(1.3rem,2.3vw,1.83rem); letter-spacing: -.05em; }
.fw-empty p { color: var(--fw-muted); font-size: .94rem; line-height: 1.48; max-width: 42ch; }
.fw-drop-icon { display: grid; place-items: center; width: 65px; height: 65px; border-radius: 17px; color: var(--fw-secondary); border: 1px solid var(--fw-line); background: var(--fw-selection); margin-bottom: .3rem; }
.fw-drop-icon .icon { width: 1.85rem; height: 1.85rem; }
.fw-image-frame { position: relative; max-width: 100%; background: var(--fw-raised); box-shadow: 0 8px 28px #0003; }
.fw-image-frame canvas { display: block; max-width: none; width: 100%; height: auto; }
.fw-stage-label { position: absolute; inset: auto .66rem .44rem; gap: .35rem; color: var(--fw-ink); }
.fw-stage-label > span { background: var(--fw-panel); border: 1px solid var(--fw-line); border-radius: 5px; padding: .28rem .5rem; font: .8rem/1.35 ui-monospace,monospace; }
.fw-stage-label .fw-button { min-height: 41px; }
.fw-stage-label .fw-button[aria-pressed=true] { color: var(--fw-secondary); border-color: var(--fw-selection-line); background: var(--fw-selection); }
.fw-crop-overlay, .fw-crop-controls, .fw-photo-pins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fw-doc-outline polygon { fill: #f6ff9825; stroke: #f8ffc0; stroke-width: 2; }
.fw-doc-pin { cursor: move; }
.fw-doc-pin::before { background: #e5f6a2; border-radius: 50%; }
#fw-crop-dim { fill: #030b10a0; }
#fw-crop-outline,.fw-video-crop-outline { stroke: #f8fff7; stroke-width: 2; stroke-dasharray: 7 4; filter:drop-shadow(0 0 1.2px #0c1826); }
#fw-crop-grid { stroke: #f0f6f880; stroke-width: 1; }
.fw-crop-controls button, .fw-photo-pin {
  pointer-events: auto; position: absolute; padding: 0; border: 0; background: transparent; touch-action: none;
}
.fw-crop-move { cursor: move; }
.fw-crop-handle, .fw-photo-pin { width: 44px; height: 44px; transform: translate(-50%,-50%); }
.fw-crop-handle::before, .fw-photo-pin::before { content: ""; display: block; width: 13px; height: 13px; border-radius: 3px; background: #f7fff4; margin: auto; box-shadow: 0 0 0 2px #122525ad; }
.fw-crop-handle[data-corner=nw], .fw-crop-handle[data-corner=se] { cursor: nwse-resize; }
.fw-crop-handle[data-corner=ne], .fw-crop-handle[data-corner=sw] { cursor: nesw-resize; }
.fw-photo-pin { cursor: move; }
.fw-photo-pin::before { border-radius: 50%; background: var(--fw-secondary); }
.fw-photo-pin[aria-pressed=true]::before { box-shadow: 0 0 0 2px #0c171a, 0 0 0 4px var(--fw-secondary); }
.fw-panel { min-width: 0; min-height: 0; padding: clamp(.72rem, 1.45vw, 1.15rem); background: var(--fw-panel); border-left: 1px solid var(--fw-line); overflow: auto; scrollbar-color: var(--field-border) transparent; }
.fw-panel legend, .fw-panel fieldset { min-inline-size: 0; }
.fw-panel fieldset { border: 0; margin: 0; padding: 0; }
.fw-panel :is(p,.fw-stage-help) { color: var(--fw-muted); margin-block: .42rem .66rem; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.fw-panel .fw-export { margin-top: 1rem; padding-top: .88rem; border-top: 1px solid var(--fw-line); }
.fw-export h2 { margin-bottom: .66rem; }
.fw-export .fw-primary { margin-top: .24rem; }
.fw-field { display: grid; gap: .24rem; margin: .52rem 0; font-size: .88rem; font-weight: 690; }
.fw-field :is(input,select,textarea) { display: block; min-height: 44px; border: 1px solid var(--field-border); border-radius: 7px; background: var(--field); padding: .4rem .54rem; font: inherit; font-size: 1rem; min-width: 0; width: 100%; color: var(--fw-ink); }
.fw-field select { appearance: auto; }
.fw-field input::placeholder { color: var(--muted); }
.fw-color-field { grid-template-columns: 1fr 58px; align-items: center; gap: .5rem; min-height: 44px; }
.fw-color-field input { padding: .27rem; }
.fw-slider { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 .48rem; align-items: center; margin-top: .55rem; color: var(--fw-ink); font-size: .88rem; font-weight: 670; }
.fw-slider input { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 37px; margin: 0; accent-color: var(--fw-accent); cursor: pointer; }
.fw-slider output { font: .8rem ui-monospace,monospace; color: var(--fw-muted); }
.fw-checkbox { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9rem; }
.fw-checkbox input { accent-color: var(--fw-accent); width: 1.25rem; height: 1.25rem; }
.fw-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fw-chip { padding: .35rem .5rem; font-size: .86rem; min-width: 44px; }
.fw-chip[aria-pressed=true], .fw-preset[aria-pressed=true] { background: var(--fw-selection); color: var(--fw-secondary); border-color: var(--fw-selection-line); }
.fw-mini-buttons { margin: .48rem 0; }
.fw-mini-buttons .fw-button { flex: 1 1 auto; }
.fw-preset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .42rem; }
.fw-preset { display: grid; gap: .34rem; text-align: left; padding: .33rem; }
.fw-preset > span { display: block; height: 24px; border-radius: 5px; background: linear-gradient(130deg,#687d85,#e8d0a2); }
.fw-preset-warm > span { background: linear-gradient(130deg,#6b3d39,#f7ca73); }
.fw-preset-vivid > span { background: linear-gradient(125deg,#20666e,#b1e171); }
.fw-preset-mono > span { background: linear-gradient(125deg,#343434,#dfdfdf); }
.fw-video-desk { grid-template-columns: minmax(0,1fr) clamp(16.8rem,22vw,24rem); grid-template-rows: minmax(11rem,1fr) auto; grid-template-areas: "stage panel" "timeline timeline"; }
.fw-video-stage { grid-area: stage; }
.fw-video-panel { grid-area: panel; }
.fw-movie-frame { position: relative; background: var(--paper); box-shadow: 0 6px 28px #0004; }
.fw-movie-frame canvas { display: block; width: 100%; height: 100%; }
.fw-preview-note { position: absolute; bottom: .75rem; left: .75rem; padding: .36rem .52rem; border-radius: 6px; font-size: .88rem; background: var(--fw-panel); color: var(--fw-ink); }
.fw-video-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .8rem; padding-bottom: .66rem; border-bottom: 1px solid var(--fw-line); }
.fw-video-tabs .fw-chip { flex: 1 1 auto; padding-inline: .44rem; white-space: nowrap; }
.fw-video-panel .fw-export { border-top: 0; padding-top: 0; margin-top: 0; }
.fw-photo .fw-export { border: 0; padding: 0; margin: 0; }
.fw-save-profiles { margin-block: .65rem; }
.fw-save-profiles .fw-button { flex: 1 1 auto; }
.fw-button[aria-pressed=true]:not(.fw-primary) { border-color: var(--fw-selection-line); color: var(--fw-secondary); background: var(--fw-selection); }
.fw-panel .fw-inline-note, #fw-export-spec { border-radius: 7px; background: var(--fw-raised); padding: .45rem .55rem; color: var(--fw-ink); }
.fw-panel .fw-inline-note:empty { display: none; }
.fw-panel .fw-inline-note[data-warning=true] { color: var(--error-ink); border-left: 3px solid var(--error-border); }
.fw-layer-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem; }
.fw-layer-actions .fw-button { justify-content: flex-start; }
.fw-preset-cool > span { background: linear-gradient(130deg,#294675,#a7e4ec); }
.fw-preset-soft > span { background: linear-gradient(130deg,#68565d,#e2c7a9); }
.fw-transport { flex: 0 1 auto; }
.fw-transport .fw-symbol { box-sizing: border-box; width: 44px; padding: .4rem; }
.fw-symbol > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fw-watch-options { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .6rem; color: var(--fw-muted); font-size: .81rem; }
.fw-watch-options .fw-checkbox { color: var(--fw-ink); }
.fw-look-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .36rem; margin-top: .45rem; }
.fw-look-cinema > span { background: linear-gradient(135deg,#1d4450,#4b786b,#c39359); }
.fw-look-warm > span { background: linear-gradient(130deg,#7b5233,#edc67d); }
.fw-look-cool > span { background: linear-gradient(130deg,#325084,#c0eafa); }
.fw-look-mono > span { background: linear-gradient(120deg,#2c3132,#dddddf); }
.fw-look-vivid > span { background: linear-gradient(125deg,#236b83,#c7df74); }
.fw-effects-break { margin-top: .75rem; border-top: 1px solid var(--fw-line); }
.fw-clip-transition { position: absolute; right: 24px; bottom: 3px; border-radius: 7px; min-width: 29px; height: 28px; padding: 0 .2rem; border: 1px solid var(--fw-clip-border); color: var(--fw-ink); background: var(--fw-panel); font-size: .95rem; }
.fw-clip-transition[data-enabled=true] { color: var(--fw-accent); border-color: var(--fw-accent); }
.fw-clip-transition:hover { background: var(--fw-selection); }
.fw-clip:has(.fw-clip-transition:not([hidden])) .fw-clip-duration { padding-right: 1.1rem; }
.fw-timeline { grid-area: timeline; background: var(--fw-panel); border-top: 1px solid var(--fw-line); padding: .58rem clamp(.58rem,1.45vw,1.15rem) .56rem; min-width: 0; }
.fw-time-top p { color: var(--fw-muted); margin-top: .2rem; font-size: .87rem; line-height: 1.42; }
.fw-time { font: .87rem ui-monospace,monospace; color: var(--fw-ink); padding-inline: .2rem; }
.fw-seek { width: 100%; accent-color: var(--fw-accent); min-height: 35px; margin: .13rem 0 0; }
.fw-track-window { min-height: 76px; background: var(--fw-deep); border-radius: 8px; border: 1px solid var(--fw-line); overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: var(--field-border) transparent; }
.fw-track { position: relative; display: flex; width: 100%; min-width: 0; padding: 4px 0; min-height: 70px; }
.fw-track:empty::before { content: "Tutaj pojawią się ujęcia"; color: var(--fw-muted); margin: auto; padding-inline: .55rem; font-size: .89rem; }
.fw-clip { position: relative; flex: 0 0 auto; border: 1px solid var(--fw-clip-border); border-radius: 7px; background: var(--fw-clip-video); overflow: hidden; min-height: 58px; min-width: 0; }
.fw-clip[data-kind=image] { background: var(--fw-clip-image); }
.fw-clip[data-kind=card] { background: var(--fw-clip-card); }
.fw-clip-type { flex: 0 0 auto; color: var(--fw-secondary); font-size: 1.1rem; font-weight: 760; }
.fw-clip:not(.fw-large-clip) .fw-clip-type { display: none; }
.fw-clip[data-selected=true] { outline: 2px solid var(--fw-accent); outline-offset: -2px; }
.fw-clip.fw-drop-target { border: 2px dashed var(--fw-accent); }
.fw-clip-select { display: flex; align-items: center; gap: .4rem; width: 100%; height: 100%; border: 0; background: transparent; color: var(--fw-ink); padding: .4rem 1.55rem; text-align: left; min-height: 62px; cursor: grab; }
.fw-clip-select img { width: 40px; height: 37px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.fw-clip:not(.fw-large-clip) .fw-clip-select img { display: none; }
.fw-clip-select span { overflow: hidden; min-width: 0; }
.fw-clip-name { display: block; white-space: nowrap; text-overflow: ellipsis; font-size: .86rem; font-weight: 730; }
.fw-clip-duration { display: block; font: .75rem ui-monospace,monospace; color: var(--fw-muted); white-space: nowrap; margin-top: .2rem; }
.fw-trim-handle { position: absolute; inset-block: 1px; width: min(28%,22px); padding: 0; border: 0; color: var(--fw-secondary); background: var(--fw-selection); touch-action: none; cursor: ew-resize; }
.fw-trim-handle::after { content: ""; width: 3px; height: 21px; border-radius: 4px; display: block; background: currentColor; margin: auto; }
.fw-trim-handle[data-trim=in] { inset-inline-start: 1px; border-radius: 5px 0 0 5px; }
.fw-trim-handle[data-trim=out] { inset-inline-end: 1px; border-radius: 0 5px 5px 0; }
.fw-trim-handle:hover, .fw-trim-handle:focus-visible { background: var(--soft-hover); }
.fw-playhead { pointer-events: none; position: absolute; z-index: 2; top: 2px; left: 0; bottom: 2px; width: 2px; color: var(--fw-accent); background: currentColor; will-change: transform; }
.fw-playhead::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 7px; border-radius: 3px; background: currentColor; }
.fw-music { border-top: 1px solid var(--fw-line); justify-content: flex-start; margin-top: .42rem; padding-top: .42rem; gap: .32rem .65rem; }
.fw-music-label { display: inline-flex; align-items: center; gap: .35rem; font-size: .89rem; color: var(--fw-ink); margin-right: .18rem; }
.fw-music-name { flex: 1 1 8rem; font-size: .86rem; color: var(--fw-muted); overflow-wrap: anywhere; }
#fw-music-volume { display: flex; align-items: end; flex-wrap: wrap; gap: .15rem .75rem; flex: 0 1 auto; }
#fw-music-volume label { margin: 0; }
#fw-music-volume .fw-slider { flex: 1 0 8.5rem; }
.fw-output { padding: .55rem clamp(.58rem,1.45vw,1.15rem); border-top: 1px solid var(--fw-line); min-height: 49px; background: var(--fw-panel); }
.fw-status { font-size: .9rem; line-height: 1.45; color: var(--fw-ink); }
.fw-status[data-kind=error] { color: var(--error-ink); }
.fw-output .fw-progress { display: flex; align-items: center; gap: .5rem; }
.fw-progress progress { width: clamp(5rem,15vw,10rem); accent-color: var(--fw-accent); }
.fw-result { width: 100%; border-top: 1px solid var(--fw-line); padding-block: .72rem .44rem; }
.fw-result p { color: var(--fw-muted); font-size: .89rem; margin-top: .2rem; }
.fw-result :is(video,img) { width: 100%; max-height: 25rem; object-fit: contain; background: var(--fw-deep); border-radius: 8px; }
.fw-limits { color: var(--muted); font-size: .9rem; margin-top: .65rem; line-height: 1.55; max-width: 100ch; }

.co-desk { grid-template-columns: minmax(0,1fr) clamp(17rem,23vw,25rem); grid-template-rows: minmax(0,1fr) auto; grid-template-areas: "board panel" "tray panel"; }
.co-stage { grid-area: board; grid-template-rows: minmax(0,1fr) auto; place-items: stretch; }
.co-panel { grid-area: panel; }
.co-tray { grid-area: tray; min-width: 0; padding: .52rem clamp(.58rem,1.45vw,1.15rem); border-top: 1px solid var(--fw-line); background: var(--fw-panel); }
.co-tray-head { display: flex; justify-content: space-between; align-items: baseline; gap: .55rem; margin-bottom: .28rem; }
.co-tray-head span, #co-gallery-empty { color: var(--fw-muted); font-size: .87rem; }
.co-gallery { display: flex; gap: .45rem; overflow-x: auto; padding: .17rem .18rem .26rem; }
.co-thumb { flex: 0 0 92px; display: grid; gap: .2rem; align-items: start; width: 92px; padding: .25rem; background: var(--fw-raised); border: 1px solid var(--fw-line); border-radius: 8px; }
.co-thumb img { width: 100%; height: 48px; object-fit: cover; border-radius: 4px; }
.co-thumb-caption { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: .7rem; }
.co-thumb:is(:hover,[aria-pressed=true]) { background: var(--fw-selection); border-color: var(--fw-selection-line); }
.co-viewport { min-width: 0; min-height: 0; width: 100%; height: 100%; display: grid; place-items: center; overflow: clip; }
.co-board { position: relative; touch-action: auto; background-color: #fff;
  background-image: conic-gradient(#e2e4e2 25%, #fff 0 50%, #e2e4e2 0 75%, #fff 0);
  background-size: 18px 18px; outline: 1px solid #79827d66; box-shadow: 0 8px 30px #0002;
}
.co-board canvas { display: block; width: 100%; height: 100%; }
.co-overlay, .co-guides { position: absolute; inset: 0; pointer-events: none; }
.co-guides { display: none; background-image: linear-gradient(to right,#742d8060 1px,transparent 1px),linear-gradient(to bottom,#742d8060 1px,transparent 1px); background-size: 10% 10%; }
.co-board[data-grid=true] .co-guides { display: block; }
.co-frame { position: absolute; pointer-events: none; }
.co-frame-hit { position: absolute; inset: 0; pointer-events: auto; touch-action: none; border: 0; padding: 0; background: transparent; text-align: left; box-shadow: inset 0 0 0 1px #25363d52; cursor: grab; }
.co-frame-hit:active { cursor: grabbing; }
.co-frame[data-active=true] .co-frame-hit { box-shadow: inset 0 0 0 2px #784f95,inset 0 0 0 4px #fff9; }
.co-frame[data-empty=true] .co-frame-hit { box-shadow: none; border: 2px dashed #8f9c9a; background: #e9edeccc; display: grid; place-items: center; cursor: pointer; }
.co-frame[data-empty=true][data-active=true] .co-frame-hit { border-color: #784f95; background: #eee6f7d9; }
.co-board[data-free=true] .co-frame[data-empty=true] .co-frame-hit { cursor: move; }
.co-frame-badge { position: absolute; top: .35rem; left: .35rem; display: grid; place-items: center; min-width: 1.45rem; min-height: 1.45rem; padding-inline: .2rem; border-radius: 6px; font-size: .77rem; font-weight: 750; background: #18252de8; color: #fff; }
.co-frame[data-small=true]:not([data-empty=true]) .co-frame-badge { visibility: hidden; }
.co-frame[data-empty=true] .co-frame-badge { position: static; text-align: center; background: transparent; color: #394b4e; padding: .15rem; }
.co-handle { position: absolute; border: 0; pointer-events: auto; touch-action: none; padding: 0; background: transparent; width: 37px; height: 37px; transform: translate(-50%,-50%); }
.co-handle::before { content: ""; display: block; width: 12px; height: 12px; background: #fff; border: 2px solid #784f95; border-radius: 3px; box-shadow: 0 1px 4px #0005; margin: auto; }
.co-handle[data-co-corner=nw] { left: 0; top: 0; cursor: nwse-resize; }
.co-handle[data-co-corner=ne] { left: 100%; top: 0; cursor: nesw-resize; }
.co-handle[data-co-corner=sw] { left: 0; top: 100%; cursor: nesw-resize; }
.co-handle[data-co-corner=se] { left: 100%; top: 100%; cursor: nwse-resize; }
.co-frame[data-active=true] { z-index: auto; }
.co-stage-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .28rem .7rem; padding: .26rem .68rem .44rem; color: var(--fw-muted); font-size: .82rem; }
#co-stage-size { font: .81rem/1.35 ui-monospace,monospace; color: var(--fw-ink); }
.co-custom-head { padding-bottom: .65rem; margin-bottom: .65rem; border-bottom: 1px solid var(--fw-line); }
.co-template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.co-template { display: grid; gap: .3rem; place-items: start; text-align: left; align-content: start; padding: .32rem; min-height: 74px; border: 1px solid var(--fw-line); border-radius: 8px; color: var(--fw-ink); font-size: .84rem; font-weight: 680; }
.co-template svg { width: 100%; height: 44px; display: block; border-radius: 5px; background: var(--fw-deep); }
.co-template rect { fill: var(--fw-selection-line); opacity: .66; }
.co-template rect[data-tile="1"] { opacity: .5; }
.co-template rect[data-tile="2"] { opacity: .34; }
.co-template:is(:hover,[aria-pressed=true]) { background: var(--fw-selection); border-color: var(--fw-selection-line); }
.co-number-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .42rem; }
.co-contact { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--fw-line); }
.co-contact summary { cursor: pointer; color: var(--fw-secondary); font-size: .88rem; font-weight: 720; padding: .36rem 0; }
@media (max-width: 880px) {
  .fw-desk { grid-template-columns: minmax(0,1fr) minmax(15.2rem,17rem); }
  .fw-photo-desk { grid-template-rows: auto minmax(0,1fr); }
  .fw-rail { grid-column: 1 / -1; flex-flow: row wrap; border-right: 0; border-bottom: 1px solid var(--fw-line); }
  .fw-tool { flex: 1 1 5.8rem; min-height: 46px; flex-direction: row; gap: .39rem; }
}
@media (max-width: 650px) {
  .fw-head { align-items: flex-start; flex-direction: column; gap: .66rem; }
  .fw-head-links { justify-items: start; text-align: left; }
  .fw-desk { height: auto; grid-template-columns: minmax(0,1fr); grid-template-rows: auto; }
  .fw-stage, .fw-panel { border-left: 0; }
  .fw-panel { max-height: none; border-top: 1px solid var(--fw-line); overflow: visible; }
  .fw-photo-stage, .fw-video-stage, .co-stage { height: clamp(17rem,52svh,35rem); }
  .fw-video-desk { grid-template-areas: "stage" "timeline" "panel"; }
  .co-desk { grid-template-areas: "board" "tray" "panel"; }
  .fw-time-top { align-items: flex-start; }
  .fw-tool { flex-basis: 38%; }
  .fw-rail { gap: .28rem; padding: .35rem; }
  .fw-clip-select { padding-inline: 1.72rem; }
  .fw-trim-handle { width: min(28%,24px); }
  .fw-workstation { overflow: clip; }
  .fw-rail { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .18rem; }
  .fw-tool { min-width: 0; padding-inline: .12rem; flex-direction: column; font-size: .78rem; gap: .18rem; }
  .fw-tool .icon { width: 1.04rem; height: 1.04rem; }
  .fw-transport .fw-time { font-size: .8rem; }
  .fw-head .fw-lede, .fw-head .fw-local { display: none; }
  .fw-workstation[data-focus] { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 450px) {
  .fw-controls .fw-control-group { flex: 1 1 100%; }
  .fw-controls .fw-control-group > .fw-button { flex: 1 1 auto; }
  .fw-space-bar .fw-space-modes { flex: 1 1 auto; }
  .fw-space-bar .fw-chip { flex: 1 1 auto; }
  .fw-space-bar #fw-expand { min-height: 38px; }
  .co-stage-caption { min-height: 2.4rem; }
  .co-gallery { padding-bottom: .48rem; }
  .co-template svg { height: 52px; }
}
.fw-captions{margin-top:16px;padding-top:12px;border-top:1px solid var(--line,#cbd4cc)}
.fw-captions h3{margin:0 0 6px}
.fw-captions p{font-size:.89rem;overflow-wrap:anywhere}
.fw-projects{padding:8px 12px;margin:0 0 10px;border:1px solid var(--line,#cbd4cc);border-radius:9px}
.fw-projects summary{cursor:pointer;display:list-item;font-weight:700;width:fit-content;padding:4px}
.fw-projects p{margin:6px 0;overflow-wrap:anywhere}
.fw-project-fields{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.fw-project-fields .fw-field{margin:0;max-width:275px}
.fw-project-fields .fw-button{white-space:nowrap}
.fw-project-fields select{max-width:100%}
.fw-projects .fw-inline-note:empty{display:none}
.fw-type-editor{position:absolute;inset:0;z-index:4;pointer-events:none;color:#102336}
.fw-type-box{position:absolute;box-sizing:border-box;border:2px solid #7fe9ff;box-shadow:0 0 0 1px #22394c}
.fw-type-move{position:absolute;inset:0;background:transparent;border:0;pointer-events:auto;cursor:grab;touch-action:none}
.fw-type-move:active{cursor:grabbing}
.fw-type-resize{position:absolute;z-index:1;left:var(--handle-x);top:var(--handle-y);transform:translate(-50%,-50%);width:19px;height:19px;padding:0;border:0;background:none;cursor:var(--handle-cursor);touch-action:none;pointer-events:auto}
.fw-type-resize::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:1px;border:1px solid #16303e;background:#c4f5ff}
.fw-type-resize[data-object-edge="nw"]{--handle-x:0%;--handle-y:0%;--handle-cursor:nwse-resize}
.fw-type-resize[data-object-edge="n"]{--handle-x:50%;--handle-y:0%;--handle-cursor:ns-resize}
.fw-type-resize[data-object-edge="ne"]{--handle-x:100%;--handle-y:0%;--handle-cursor:nesw-resize}
.fw-type-resize[data-object-edge="e"]{--handle-x:100%;--handle-y:50%;--handle-cursor:ew-resize}
.fw-type-resize[data-object-edge="se"]{--handle-x:100%;--handle-y:100%;--handle-cursor:nwse-resize}
.fw-type-resize[data-object-edge="s"]{--handle-x:50%;--handle-y:100%;--handle-cursor:ns-resize}
.fw-type-resize[data-object-edge="sw"]{--handle-x:0%;--handle-y:100%;--handle-cursor:nesw-resize}
.fw-type-resize[data-object-edge="w"]{--handle-x:0%;--handle-y:50%;--handle-cursor:ew-resize}
.fw-type-resize:is([data-object-edge="n"],[data-object-edge="s"]){width:max(10px,calc(100% - 20px))}
.fw-type-resize:is([data-object-edge="w"],[data-object-edge="e"]){height:max(10px,calc(100% - 20px))}
.fw-type-resize[data-object-edge]:not(:is([data-object-edge="n"],[data-object-edge="s"],[data-object-edge="w"],[data-object-edge="e"])){z-index:2}
.fw-type-box[data-typing] .fw-type-resize{visibility:hidden}
.fw-type-input{position:absolute;z-index:2;inset:0;width:100%;height:100%;min-height:2.65rem;padding:.20em .31em;border:0;border-radius:0;box-shadow:0 0 0 2px #7fe9ff;resize:none;background:#142530f7;color:white;font:700 1rem/1.18 system-ui,sans-serif;pointer-events:auto;caret-color:#b8f5ff}
.fw-object-menu{margin:.55rem 0;border:1px solid var(--fw-line);border-radius:8px;padding:.5rem .65rem;color:var(--fw-ink)}
.fw-object-menu summary{cursor:pointer;font-size:.92rem;font-weight:650}
.fw-object-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.25rem;margin-top:.5rem}
.fw-object-choices button{min-height:2.36rem;padding:.18rem;border:1px solid var(--fw-line);border-radius:6px;font-size:1.22rem;line-height:1;background:var(--fw-raised);color:var(--fw-ink);cursor:pointer}
.fw-object-choices button:hover{border-color:var(--focus-color)}
.fw-type-guide{position:absolute;background:#79e8fc;box-shadow:0 0 0 1px #16303e}
.fw-type-guide-v{top:0;bottom:0;left:50%;width:1px}.fw-type-guide-h{left:0;right:0;top:50%;height:1px}
.fw-type-palette{display:flex;gap:7px;flex-wrap:wrap;margin:.3rem 0 .55rem}
.fw-range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.fw-timeline-board{--fw-track-heading:6.05rem;min-width:100%;padding-block:.20rem}
.fw-extra-tracks{display:grid;gap:.25rem;margin-top:.12rem}
.fw-lane-row{display:grid;grid-template-columns:var(--fw-track-heading) minmax(0,1fr);align-items:stretch}
.fw-lane-title{position:sticky;left:0;z-index:3;display:flex;align-items:flex-start;gap:.30rem;padding:.46rem .34rem;font-size:.84rem;font-weight:720;color:var(--fw-ink);background:var(--fw-deep);border-right:1px solid var(--fw-line)}
.fw-lane-title .icon{width:1rem;height:1rem}
.fw-video-ruler{position:relative;min-height:1.4rem;overflow:hidden;color:var(--fw-muted);font:.72rem ui-monospace,monospace;background:var(--fw-raised)}
.fw-video-ruler>span{position:absolute;top:.18rem;border-left:1px solid var(--fw-line);padding-left:.24rem;white-space:nowrap}
.fw-ruler-row .fw-lane-title{font-size:.72rem;padding-block:.18rem;background:var(--fw-raised)}
.fw-clip.fw-small-clip .fw-clip-select{padding-inline:.18rem;justify-content:center}
.fw-clip.fw-small-clip .fw-clip-transition{display:none}
.fw-lane{position:relative;min-height:2.35rem;border:1px solid var(--fw-line);border-radius:6px;background:repeating-linear-gradient(90deg,var(--fw-line) 0 1px,transparent 1px 10%),var(--fw-deep);overflow:hidden}
#fw-objects-lane{overflow-y:auto;scrollbar-width:thin;overscroll-behavior-y:contain}
.fw-lane-empty{display:block;padding:.50rem .55rem;font-size:.80rem;color:var(--fw-muted)}
.fw-lane-block{position:absolute;min-width:8px;height:1.78rem;background:#d3ebdf;color:#133b2d;border:1px solid #398065;border-radius:5px;display:flex;touch-action:none}
.fw-lane-block[data-kind="overlay"],.fw-lane-block[data-kind="title"]{background:#e1e4fe;color:#282a63;border-color:#5b61ae}
.fw-lane-block[data-kind="caption"]{background:#e8ebef;color:#304457;border-style:dashed;border-color:#6c8096}
.fw-lane-block[data-selected="true"]{box-shadow:inset 0 0 0 2px currentColor}
.fw-lane-label{width:100%;padding:0 .70rem;border:0;background:none;color:inherit;font-size:.75rem;font-weight:720;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;cursor:grab}
.fw-lane-label:active{cursor:grabbing}
.fw-lane-handle{position:absolute;top:0;bottom:0;width:min(16%,16px);border:0;padding:0;background:transparent;cursor:ew-resize;color:inherit;touch-action:none}
.fw-lane-handle::after{content:"";position:absolute;left:40%;top:34%;width:2px;height:32%;background:currentColor;opacity:.7}
.fw-lane-handle[data-lane-edge="start"]{left:0}.fw-lane-handle[data-lane-edge="end"]{right:0}
.fw-lane-cursor{position:absolute;top:0;left:0;z-index:1;width:2px;background:#ef7154;pointer-events:none}
@media(max-width:560px){.fw-timeline-board{--fw-track-heading:4.9rem}.fw-lane-title{font-size:.73rem;gap:.20rem}.fw-lane-title .icon{width:.85rem}.fw-lane-label{padding-inline:.42rem}}
.fw-type-swatch{width:33px;height:33px;border:1px solid var(--field-border);border-radius:7px;background:var(--sample);cursor:pointer}
.fw-type-swatch[aria-pressed="true"]{outline:2px solid var(--focus-color);outline-offset:2px}
.fw-type-swatch[data-text-color="#ffffff"]{--sample:#fff}.fw-type-swatch[data-text-color="#111820"]{--sample:#111820}.fw-type-swatch[data-text-color="#fff176"]{--sample:#fff176}.fw-type-swatch[data-text-color="#cef678"]{--sample:#cef678}.fw-type-swatch[data-text-color="#61dbff"]{--sample:#61dbff}.fw-type-swatch[data-text-color="#ff9bcb"]{--sample:#ff9bcb}.fw-type-swatch[data-text-color="#ff765f"]{--sample:#ff765f}
.fw-panel .fw-field textarea{width:100%;resize:vertical;min-height:60px}
@media(pointer:coarse){.fw-type-swatch{width:39px;height:39px}.fw-type-resize{width:25px;height:25px}.fw-object-choices button{min-height:2.65rem}}

.fw-audio-page{--fw-secondary:#875819;--fw-selection:#f4ead2;--fw-selection-line:#aa8244}
[data-theme="dark"] .fw-audio-page{--fw-secondary:#f4cf87;--fw-selection:#403421;--fw-selection-line:#caa773}
.fw-audio-desk{display:grid;grid-template-columns:minmax(0,1fr) clamp(16.8rem,22vw,23rem);min-height:clamp(27rem,68vh,44rem)}
.fw-audio-stage{display:grid;place-items:center;min-width:0;padding:clamp(.75rem,2vw,1.6rem);background:var(--fw-deep)}
.fw-audio-stage.fw-dragging{outline:2px dashed var(--fw-selection-line);outline-offset:-7px}
.fw-audio-chart{align-self:center;min-width:0;width:100%;padding:clamp(.65rem,1.4vw,1.12rem);border:1px solid var(--fw-line);background:var(--fw-panel);border-radius:12px}
.fw-audio-top{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;justify-content:space-between}
.fw-audio-top p{font-size:.9rem;color:var(--fw-muted);margin-top:.25rem}
.fw-audio-zoom.fw-field{margin:0;min-width:7.3rem}
.fw-audio-scroll{overflow-x:auto;margin:.7rem 0 .55rem;border:1px solid var(--fw-line);border-radius:8px;background:var(--fw-deep)}
.fw-audio-strip{width:100%;position:relative;overflow:hidden}
.fw-audio-ruler{position:relative;height:1.7rem;font:.77rem/1.1 ui-monospace,monospace;color:var(--fw-muted);background:var(--fw-raised)}
.fw-audio-ruler>span{position:absolute;top:.34rem;padding-left:.24rem;border-left:1px solid var(--fw-line);white-space:nowrap}
.fw-audio-clips{display:flex;align-items:stretch;min-height:clamp(6rem,17vh,10rem)}
.fw-audio-segment{min-width:0;position:relative;display:grid;background:var(--fw-selection);border:1px solid var(--fw-line);color:var(--fw-secondary)}
.fw-audio-segment[data-active=true]{border-color:var(--fw-selection-line);box-shadow:inset 0 0 0 1px var(--fw-selection-line);z-index:1}
.fw-audio-segment[data-muted=true]{color:var(--fw-muted);background:var(--fw-raised)}
.fw-audio-wave{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;width:100%;min-width:0;padding:.33rem .48rem .44rem;color:inherit;background:transparent;border:0;cursor:crosshair;text-align:left}
.fw-audio-clip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.83rem;font-weight:740;line-height:1.2}
.fw-audio-wave svg{margin-top:.28rem;width:100%;height:100%;overflow:hidden;pointer-events:none}
.fw-audio-wave path{fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round}
.fw-audio-trim{position:absolute;top:27%;bottom:0;width:min(12%,23px);border:0;padding:0;color:inherit;background:transparent;cursor:ew-resize;touch-action:none}
.fw-audio-trim::after{content:"";position:absolute;left:38%;top:45%;height:1.0rem;width:3px;background:currentColor;border-radius:2px}
.fw-audio-trim[data-trim-audio=start]{left:0}.fw-audio-trim[data-trim-audio=end]{right:0}
.fw-audio-playhead,.fw-audio-trim-guide{position:absolute;inset:0 auto 0 0;width:2px;pointer-events:none;z-index:2;background:#e65b39}
.fw-audio-trim-guide{background:var(--fw-selection-line);width:3px}
.fw-audio-chart .fw-seek{margin:.45rem 0 .5rem}
.fw-audio-panel{padding:.9rem;background:var(--fw-panel);border-left:1px solid var(--fw-line)}
.fw-audio-panel fieldset{min-width:0;border:0;margin:0 0 .8rem;padding:0}
.fw-audio-panel fieldset+fieldset{border-top:1px solid var(--fw-line);padding-top:.6rem}
.fw-audio-panel legend{font-weight:780;margin-bottom:.24rem;font-size:1.03rem}
.fw-audio-panel p{font-size:.88rem;color:var(--fw-muted);overflow-wrap:anywhere}
.fw-audio-panel .fw-range-fields{gap:.35rem}
.fw-audio-panel .fw-clip-actions{margin:.5rem 0}
.fw-audio-panel .fw-checkbox{margin:.34rem 0}
.fw-audio-page .fw-result audio{width:min(100%,22rem)}
@media(max-width:760px){
  .fw-audio-desk{grid-template-columns:minmax(0,1fr);min-height:0}
  .fw-audio-stage{min-height:15.5rem}
  .fw-audio-panel{border-left:0;border-top:1px solid var(--fw-line)}
  .fw-audio-panel fieldset:disabled{display:none}
}

/* Shared studio chrome; the only flexible row contains the edited material. */
.fw-page { --editor-active: var(--fw-selection); --editor-active-ink: var(--fw-secondary); --editor-line: var(--fw-selection-line); }
.fw-room { min-width: 0; }
.fw-controls.fw-commandbar { position: relative; z-index: 6; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: .25rem; padding: .2rem clamp(.25rem, .9vw, .8rem); }
.fw-command-list { flex: 1 1 auto; }
.fw-command-tail { display: flex; flex: 0 0 auto; align-items: center; gap: .12rem; }
.fw-command-tail .editor-key-fixed, .fw-modebar > .editor-key-fixed { flex: 0 0 auto; background: var(--fw-raised); border-color: var(--fw-line); }
.fw-space-bar { flex-wrap: nowrap; padding-block: .12rem; }
.fw-space-modes { flex-wrap: nowrap; }
.fw-space-modes .fw-chip { display: inline-flex; align-items: center; gap: .4rem; padding-inline: .7rem; }
.fw-space-modes .editor-glyph { width: 1.1rem; height: 1.1rem; }
.fw-workstation[data-focus] { min-height: 0; max-height: 100dvh; }
.fw-workstation[data-focus] :is(#fw-video-view > .fw-controls,[data-studio-room=audio] > .fw-controls) { position: sticky; top: 0; z-index: 8; }
.fw-workstation[data-focus] > .fw-space-bar { z-index: 9; }
.fw-modebar { grid-area: tools; display: flex; align-items: center; min-width: 0; gap: .25rem; padding: .11rem clamp(.25rem,.9vw,.8rem); border-bottom: 1px solid var(--fw-line); background: var(--fw-panel); }
.fw-mode-list { flex: 1 1 auto; }
.fw-modebar .editor-key { min-height: 46px; }
.fw-modebar > .editor-key-fixed { margin-inline-end: 2px; }
.fw-preview-toggle { cursor: pointer; }
.fw-preview-toggle:has(input:disabled) { opacity: .55; cursor: default; }
.fw-commandbar .fw-projects { padding: 0; margin: 0; border: 0; }
.fw-projects .editor-key { list-style: none; width: auto; cursor: pointer; }
.fw-projects summary::-webkit-details-marker { display: none; }
.fw-projects[open] > summary { background: var(--editor-active); border-color: var(--editor-line); }
.fw-project-popover { position: absolute; z-index: 8; inset: calc(100% + 3px) .45rem auto auto; width: min(34rem, calc(100% - .9rem)); max-height: 65vh; overflow: auto; padding: .85rem; border: 1px solid var(--field-border); border-radius: 11px; background: var(--fw-panel); box-shadow: 0 11px 30px #09191e2c; }
.fw-project-popover > p { font-size: .9rem; line-height: 1.42; color: var(--fw-muted); margin-top: 0; }

.fw-desk, .fw-audio-desk { position: relative; height: var(--fw-desk-size); min-height: 0; min-width: 0; grid-template-columns: minmax(0,1fr); }
.fw-photo-desk, .fw-audio-desk { grid-template-rows: auto minmax(0,1fr); grid-template-areas: "tools" "stage"; }
.fw-video-desk { grid-template-rows: auto minmax(10.5rem,1fr) auto; grid-template-areas: "tools" "stage" "timeline"; }
.co-desk { grid-template-rows: auto minmax(0,1fr) auto; grid-template-areas: "tools" "stage" "tray"; }
:is(.fw-photo-stage,.fw-video-stage,.fw-audio-stage,.co-stage) { grid-area: stage; min-height: 0; height: auto; }
:is(.fw-desk,.fw-audio-desk)[data-inspector-open] { grid-template-columns: minmax(0,1fr) clamp(16.5rem,25vw,22rem); }
:is(.fw-photo-desk,.fw-audio-desk)[data-inspector-open] { grid-template-areas: "tools tools" "stage panel"; }
.fw-video-desk[data-inspector-open] { grid-template-areas: "tools tools" "stage panel" "timeline timeline"; }
.co-desk[data-inspector-open] { grid-template-areas: "tools tools" "stage panel" "tray panel"; }
.fw-editor-inspector { grid-area: panel; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.fw-inspector-head { display: flex; justify-content: space-between; align-items: center; gap: .45rem; margin-bottom: .6rem; padding-bottom: .32rem; border-bottom: 1px solid var(--fw-line); font-size: .9rem; font-weight: 740; }
.fw-inspector-close { min-height: 38px; padding: .36rem .55rem; }

.fw-photo-stage { padding-bottom: 0; grid-template-rows: minmax(0,1fr) auto; }
.fw-photo-stage .fw-stage-label { position: static; justify-self: stretch; padding: .14rem .65rem .26rem; }
.fw-photo-stage .fw-stage-label .fw-button { min-height: 36px; padding-block: .25rem; }
.co-stage-caption { min-height: 0; padding-block: .15rem .26rem; }
.co-tray { padding-block: .25rem .32rem; }
.co-tray-head { margin-bottom: .1rem; }
.co-gallery { padding-block: .16rem; }
.co-thumb { flex-basis: 76px; width: 76px; }
.co-thumb img { max-height: 36px; }
.fw-output:not(:has(.fw-status:not(:empty),.fw-progress:not([hidden]),.fw-result:not([hidden]))) { height: 0; min-height: 0; overflow: clip; padding: 0; border: 0; }
.fw-status:empty { margin: 0; }

.fw-layer-actions { grid-template-columns: repeat(auto-fit,minmax(min(100%,5.05rem),1fr)); gap: .28rem; margin-block: .4rem; }
.fw-layer-actions .editor-key { justify-content: center; background: var(--fw-raised); border-color: var(--fw-line); }
.fw-object-menu { padding: .35rem .5rem; margin: .35rem 0; }
.fw-object-menu summary { display: flex; align-items: center; gap: .35rem; min-height: 42px; list-style: none; }
.fw-object-menu summary::-webkit-details-marker { display: none; }
.fw-object-menu summary::after { margin-inline-start: auto; content: "+"; color: var(--fw-secondary); }
.fw-object-menu[open] summary::after { content: "−"; }
.fw-object-choices { grid-template-columns: repeat(3,minmax(0,1fr)); margin: .15rem 0 .2rem; }
.fw-object-choices button { display: grid; justify-items: center; align-content: center; gap: .22rem; min-height: 52px; padding: .24rem; }
.fw-object-symbol { font-size: 1.22rem; }
.fw-object-name { font-size: .8rem; font-weight: 630; line-height: 1.15; overflow-wrap: anywhere; }

.fw-timeline { padding: .25rem clamp(.36rem,1vw,.8rem) .32rem; overflow: clip; }
.fw-time-top { align-items: center; gap: .17rem .4rem; }
.fw-timeline h2 { font-size: .95rem; }
.fw-transport { flex-wrap: nowrap; gap: .21rem; }
.fw-transport .fw-button { min-height: 38px; border-radius: 6px; padding-block: .18rem; }
.fw-transport .fw-symbol { width: 38px; }
.fw-transport-play.editor-key { flex-direction: row; gap: .3rem; padding-inline: .35rem; }
.fw-transport-play.editor-key .icon { width: 1.05rem; height: 1.05rem; }
.fw-timeline .fw-seek { display: block; min-height: 24px; margin: 0; }
.fw-track-window { min-height: 0; }
.fw-timeline-board { padding-block: .1rem; }
.fw-track { min-height: 47px; padding-block: 2px; }
.fw-lane-title { align-items: center; padding-block: .2rem; }
.fw-video-ruler { min-height: 1.18rem; }
.fw-video-ruler > span { top: .12rem; }
.fw-clip { min-height: 43px; }
.fw-clip-select { min-height: 43px; padding-block: .17rem; }
.fw-clip-select img { width: 33px; height: 30px; }
.fw-clip-duration { margin-top: .08rem; }
.fw-clip-transition { height: 25px; bottom: 2px; }
.fw-extra-tracks { gap: .13rem; }
.fw-lane-empty { padding-block: .38rem; }
.fw-video-panel .fw-music { display: block; margin-top: .45rem; }
.fw-video-panel .fw-music-name:empty { display: none; }
.fw-video-panel #fw-music-volume { display: block; }
.fw-video-panel #fw-music-volume .fw-slider { margin-top: .35rem; }

.fw-audio-stage { padding: .46rem; align-items: stretch; overflow: hidden; }
.fw-audio-stage > .fw-empty { align-self: center; }
.fw-audio-chart { align-self: stretch; height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; padding: .55rem; }
.fw-audio-scroll { display: flex; min-height: 0; margin-block: .35rem .08rem; }
.fw-audio-strip { flex: 0 0 auto; display: grid; grid-template-rows: auto minmax(0,1fr); min-height: 0; }
.fw-audio-clips { min-height: 0; }
.fw-audio-wave { min-height: 0; }
.fw-audio-chart .fw-seek { min-height: 30px; margin-block: .12rem; }
.fw-audio-transport > .editor-strip { max-width: 100%; }
.fw-audio-ruler { height: 1.45rem; }

@media (max-width: 760px) {
  :is(.fw-desk,.fw-audio-desk)[data-inspector-open] { grid-template-columns: minmax(0,1fr); }
  :is(.fw-photo-desk,.fw-audio-desk)[data-inspector-open] { grid-template-areas: "tools" "stage"; }
  .fw-video-desk[data-inspector-open] { grid-template-areas: "tools" "stage" "timeline"; }
  .co-desk[data-inspector-open] { grid-template-areas: "tools" "stage" "tray"; }
  .fw-editor-inspector { position: absolute; grid-area: stage; inset: auto .34rem .34rem; z-index: 5; width: auto; max-height: min(100% - .68rem,49dvh); overflow: auto; border: 1px solid var(--field-border); border-radius: 10px; box-shadow: 0 7px 22px #13252d38; }
  .fw-audio-panel fieldset:disabled { display: block; }
  .fw-controls.fw-commandbar .fw-command-tail .editor-key { padding-inline: .34rem; }
  .fw-empty { padding: .5rem; gap: .4rem; }
}
@media (max-width: 440px) {
  .fw-mode-list .editor-key { min-width: 3.03rem; padding-inline: .33rem; }
  .fw-modebar > .editor-key-fixed { min-width: 3.35rem; }
  .fw-transport .fw-time { font-size: .73rem; padding-inline: 0; }
  .fw-transport .fw-symbol { width: 32px; }
  .fw-timeline h2 { font-size: .88rem; }
  .fw-space-bar { gap: .24rem; padding-inline: .28rem; }
  .fw-space-bar .fw-space-modes { flex: 0 0 auto; }
  .fw-space-modes .fw-chip { padding-inline: .42rem; gap: .28rem; font-size: .84rem; }
  .fw-space-bar .editor-key { min-width: 0; padding-inline: .35rem; }
  .fw-space-bar .editor-key span { white-space: nowrap; }
  .fw-object-choices button { min-height: 54px; }
}
@media (pointer: coarse) {
  .fw-transport .fw-button { min-height: 42px; }
  .fw-timeline .fw-seek { min-height: 29px; }
}

/* App window: navigation stays in the chrome, editing options use a rail. */
.workshop-page { overflow: hidden; }
.workshop-page :is(.site-header,.site-footer,.skip) { display: none; }
.fw-workstation[data-focus] { --rail-width: clamp(3.75rem,6.8vw,5.1rem); --fw-desk-size: max(20rem,calc(100dvh - 7rem)); overflow: auto; }
.fd-seo-studio {
  max-inline-size: 62rem;
  margin-block: clamp(1.75rem,4vw,3rem) 1.25rem;
  scroll-margin-block-start: calc(var(--fw-studio-top-size,6rem) + .6rem);
}
.fw-tips-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; }
.fd-seo-studio > .fd-sponsor { margin: 1.75rem 0 0; }
.fw-studio-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: clamp(.4rem,1.2vw,1.05rem); min-height: 50px; padding: .18rem clamp(.34rem,1vw,.85rem); background: var(--fw-panel); border-bottom: 1px solid var(--fw-line); }
.fw-studio-top h1 { font-size: 1.13rem; line-height: 1.14; letter-spacing: -.04em; white-space: nowrap; }
.fw-home { display: inline-flex; align-items: center; gap: .42rem; min-width: 44px; min-height: 44px; padding: .22rem .42rem; color: var(--fw-ink); text-decoration: none; font-size: .88rem; font-weight: 730; border-radius: 8px; }
.fw-home:hover { background: var(--fw-raised); }
.fw-home .icon,.fw-new-project .icon { width: 1.23rem; height: 1.23rem; flex: 0 0 auto; }
.fw-studio-utility { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.22rem,1vw,.75rem); min-width: 0; margin-inline-start: auto; }
.fw-draft-caption { display: flex; align-items: center; gap: .28rem; padding: .25rem .38rem; color: var(--fw-muted); font-size: .84rem; white-space: nowrap; }
.fw-draft-caption .icon { flex: 0 0 auto; }
.fw-draft-caption:is([data-state=saved],[data-state=restored]) { color: var(--success-ink); }
.fw-draft-caption[data-state=error] { color: var(--error-ink); background: var(--error-bg); border-radius: 7px; }
.fw-new-project { white-space: nowrap; min-height: 44px; }
.fw-studio-theme { width: 44px; padding: .25rem; }
.fw-studio-theme[aria-pressed=true] { background: var(--fw-selection); color: var(--fw-secondary); }
.fw-studio-noscript { padding: 1rem; }
.fw-studio-top .fw-space-modes { flex: 0 0 auto; }
.fw-studio-top .fw-chip { min-height: 42px; padding: .25rem .56rem; }
.fw-workstation[data-focus] .fw-room > .fw-commandbar { top: auto; position: relative; z-index: 6; padding-block: 0; }
.fw-commandbar .editor-key.editor-key { flex-direction: row; min-height: 43px; gap: .38rem; }
.fw-commandbar .editor-key > .icon { width: 1.12rem; height: 1.12rem; }
.fw-commandbar .editor-strip { padding-block: 2px; }

:is(.fw-desk,.fw-audio-desk),
:is(.fw-desk,.fw-audio-desk)[data-inspector-open] { grid-template-columns: minmax(0,1fr) var(--rail-width); }
:is(.fw-photo-desk,.fw-audio-desk),
:is(.fw-photo-desk,.fw-audio-desk)[data-inspector-open] { grid-template-rows: minmax(0,1fr); grid-template-areas: "stage tools"; }
.fw-video-desk,.fw-video-desk[data-inspector-open] { grid-template-rows: minmax(9rem,1fr) auto; grid-template-areas: "stage tools" "timeline tools"; }
.co-desk,.co-desk[data-inspector-open] { grid-template-rows: minmax(0,1fr) auto; grid-template-areas: "stage tools" "tray tools"; }
.fw-pdf-desk,.fw-pdf-desk[data-inspector-open] { grid-template-rows: minmax(0,1fr) auto; grid-template-areas: "stage tools" "pages tools"; }
.fw-modebar { flex-direction: column; align-items: stretch; min-height: 0; gap: 0; padding: .33rem .19rem; border: 0; border-inline-start: 1px solid var(--fw-line); z-index: 1; background: var(--fw-panel); }
.fw-mode-list.editor-strip { flex-direction: column; align-items: stretch; min-height: 0; gap: .12rem; padding: 3px; overflow: hidden auto; overscroll-behavior: contain; }
.fw-modebar .editor-key { width: 100%; min-width: 0; min-height: 51px; padding: .27rem .11rem; font-size: .84rem; }
.fw-modebar .editor-key > span { white-space: normal; overflow-wrap: normal; }
.fw-modebar .editor-key > .icon { width: 1.27rem; height: 1.27rem; }
.fw-modebar label { position: relative; }
.fw-editor-inspector { position: absolute; grid-area: stage; inset: .38rem .27rem .38rem auto; z-index: 5; width: min(21rem,calc(100% - .57rem)); max-height: none; margin: 0; padding: .65rem; border: 1px solid var(--field-border); border-radius: 10px; background: var(--fw-panel); overflow: auto; box-shadow: -5px 9px 28px #09191e43; overscroll-behavior: contain; }
.fw-editor-inspector:not([hidden]) { animation: fw-drawer-in .16s ease-out; }
@keyframes fw-drawer-in { from { transform: translateX(9px); opacity: .25; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fw-editor-inspector:not([hidden]) { animation: none; } }
.fw-inspector-head { position: sticky; top: -.6rem; z-index: 3; padding-top: .26rem; background: var(--fw-panel); }

.fw-studio-dialog { width: min(30rem,calc(100% - 1.5rem)); margin: auto; padding: clamp(1rem,3vw,1.55rem); border: 1px solid var(--field-border,#adb8b2); border-radius: 16px; color: var(--fw-ink,var(--ink,#172829)); background-color: var(--fw-panel,var(--white,#fff)); box-shadow: 0 20px 60px #09191e63; }
.fw-studio-dialog::backdrop { background: #101b24a8; }
.fw-studio-dialog h2 { margin: .72rem 0 .45rem; font-size: 1.38rem; font-weight: 800; }
.fw-studio-dialog p { color: var(--fw-muted); font-size: .97rem; line-height: 1.48; }
.fw-dialog-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--fw-line); border-radius: 12px; color: var(--fw-secondary); background: var(--fw-selection); }
.fw-dialog-mark .icon { width: 1.55rem; height: 1.55rem; }
.fw-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .48rem; margin-top: 1.15rem; }
.fw-studio-dialog .fw-dialog-error { color: var(--error-ink); margin-top: .65rem; }

@media(max-width: 670px) {
  .fw-studio-top h1,.fw-draft-caption > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fw-studio-top .fw-chip { padding-inline: .38rem; }
  .fw-new-project { padding-inline: .38rem; gap: .23rem; }
}
@media(max-width: 430px) {
  .fw-studio-top:has(.fw-space-modes) { display: grid; grid-template-columns: 1fr auto; gap: .15rem .25rem; }
  .fw-studio-top .fw-space-modes { grid-area: 2 / 1 / 3 / 3; padding-block: .02rem .08rem; }
  .fw-studio-top:has(.fw-space-modes) .fw-studio-utility { grid-area: 1 / 2 / 2 / 3; }
  .fw-studio-top:has(.fw-space-modes) .fw-home > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fw-studio-top .fw-chip { gap: .23rem; min-height: 36px; font-size: .83rem; }
  .fw-new-project { font-size: .82rem; }
  .fw-draft-caption { padding-inline: .15rem; }
  .fw-studio-utility { gap: .13rem; }
  .fw-modebar .editor-key { font-size: .75rem; }
  .fw-modebar { padding-inline: 2px; }
  .fw-mode-list.editor-strip { padding-inline: 2px; }
  .fw-editor-inspector { width: calc(100% - .49rem); }
  .fw-dialog-actions > button { width: 100%; }
}

/* Compact stacked lanes share one ruler and the same playback cursor. */
.fw-audio-stage { display: block; min-height: 0; padding: clamp(.36rem,1vw,.72rem); overflow: auto; }
.fw-audio-chart { --au-label: clamp(5.9rem,13vw,9.75rem); display: block; height: auto; min-height: 0; padding: .57rem; }
.fw-audio-top { gap: .38rem .65rem; }
.fw-audio-top p { margin-top: .14rem; }
.fw-audio-view-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .38rem .66rem; }
.fw-audio-view-tools .editor-key { flex-direction: row; gap: .35rem; min-height: 44px; border-color: var(--fw-selection-line); background: var(--fw-selection); }
.fw-audio-view-tools .editor-key > .icon { width: 1.22rem; height: 1.22rem; }
.fw-audio-zoom.fw-field { grid-template-columns: auto minmax(3.6rem,1fr); gap: .32rem; align-items: center; font-size: .84rem; }
.fw-audio-zoom select { min-height: 40px; padding-inline: .35rem; }
.fw-audio-scroll { display: block; max-width: 100%; max-height: min(57dvh,36rem); overflow: auto; overscroll-behavior: contain; margin-block: .6rem .28rem; scrollbar-color: var(--field-border) transparent; }
.fw-audio-strip { display: block; min-width: 100%; width: calc(var(--au-label) + var(--au-zoom,1) * (100% - var(--au-label))); overflow: visible; isolation: isolate; }
.fw-audio-ruler-row,.fw-audio-lane { display: grid; grid-template-columns: var(--au-label) minmax(0,1fr); align-items: stretch; }
.fw-audio-ruler-row { position: sticky; top: 0; z-index: 4; }
.fw-audio-ruler { overflow: hidden; }
.fw-audio-label { position: sticky; left: 0; z-index: 3; display: grid; align-items: stretch; min-width: 0; border-inline-end: 1px solid var(--fw-line); background: var(--fw-raised); }
.fw-audio-ruler-row > .fw-audio-label { padding: .16rem .4rem; font-size: .75rem; color: var(--fw-muted); }
.fw-audio-clips { display: grid; min-height: 0; }
.fw-audio-lane { min-height: 52px; border-top: 1px solid var(--fw-line); }
.fw-audio-lane[data-selected=true] > .fw-audio-label { background: var(--fw-selection); color: var(--fw-secondary); }
.fw-audio-track-menu { display: grid; gap: .15rem; align-content: center; justify-items: start; min-width: 0; width: 100%; padding: .28rem .42rem; border: 0; background: transparent; color: inherit; font-size: .86rem; text-align: left; }
.fw-audio-track-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-audio-track-meta { font-size: .77rem; color: var(--fw-muted); }
.fw-audio-lane-body { position: relative; min-width: 0; display: flex; align-items: center; padding-inline: .32rem; background: repeating-linear-gradient(90deg,transparent 0 calc(12.5% - 1px),var(--fw-line) calc(12.5% - 1px) 12.5%),var(--fw-deep); }
.fw-audio-track-add { background: var(--fw-panel); min-height: 43px; padding: .28rem .4rem; }
.fw-audio-track-add .icon { width: 1rem; height: 1rem; }
.fw-audio-segment { position: absolute; inset-block: 3px; min-width: 2px; border-radius: 5px; overflow: hidden; }
.fw-audio-wave { padding: .22rem clamp(.28rem,1vw,.65rem); }
.fw-audio-wave svg { margin-top: .08rem; }
.fw-audio-heads { position: absolute; inset: 0 0 0 var(--au-label); pointer-events: none; z-index: 2; }
.fw-audio-chart #au-empty { margin: .48rem .22rem; }
.fw-audio-transport .editor-key { min-height: 44px; }
@media(max-width: 530px) {
  .fw-audio-chart { --au-label: 5.2rem; padding: .35rem; }
  .fw-audio-lane { min-height: 53px; }
  .fw-audio-view-tools { gap: .22rem; }
  .fw-audio-zoom.fw-field { min-width: 0; }
  .fw-audio-zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fw-audio-track-menu { font-size: .81rem; padding-inline: .3rem; }
}

.fw-context-menu { position: fixed; z-index: 60; min-width: min(12.7rem,calc(100vw - 14px)); max-width: calc(100vw - 14px); max-height: calc(100dvh - 14px); overflow: auto; padding: .3rem; border: 1px solid var(--fw-line,var(--field-border)); border-radius: 10px; background: var(--fw-panel,var(--paper)); color: var(--fw-ink,var(--ink)); box-shadow: 0 10px 32px #0a171f55; }
.fw-context-menu button { display: block; width: 100%; min-height: 37px; padding: .37rem .65rem; text-align: start; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; font-size: .88rem; font-weight: 650; }
.fw-context-menu button:focus-visible,.fw-context-menu button:not(:disabled):hover { background: var(--fw-selection); color: var(--fw-secondary); outline: 0; }
.fw-context-menu button[data-danger]:not(:disabled) { color: var(--error-ink); }
.fw-context-menu button:disabled { opacity: .45; }
.fw-time-top #fw-time-menu { flex-direction: row; min-height: 40px; gap: .24rem; }

.pd-stage { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; padding: 0; isolation: isolate; }
.pd-sheet { position: relative; z-index: 1; max-width: 100%; background: white; box-shadow: 0 5px 22px #111d2348; touch-action: none; }
.pd-sheet:is([data-mode="text"],[data-mode="frame"],[data-mode="highlight"],[data-mode="redact"]) { cursor: crosshair; }
.pd-paper,.pd-paper canvas,.pd-sheet > canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pd-guide { position: absolute; border: 2px solid #10375c; background: #559eed38; pointer-events: none; }
.pd-sheet[data-mode="redact"] .pd-guide { background: #161616ae; border-color: #efac47; }
.pd-pagebar { grid-area: pages; display: flex; gap: .45rem; padding: .32rem clamp(.32rem,1.3vw,.9rem); min-width: 0; min-height: 46px; align-items: center; border-top: 1px solid var(--fw-line); background: var(--fw-panel); }
.pd-pagebar > span { flex: 0 0 auto; color: var(--fw-muted); font-size: .84rem; }
#pd-pages { flex: 1; display: flex; gap: .24rem; padding: .21rem; min-width: 0; overflow: auto; scrollbar-width: thin; }
.pd-page { position: relative; min-width: 38px; min-height: 39px; padding: .2rem; border: 1px solid var(--fw-line); border-radius: 5px; color: var(--fw-ink); background: var(--fw-raised); font: inherit; font-weight: 750; }
.pd-page[aria-current="page"] { background: var(--fw-selection); color: var(--fw-secondary); border-color: var(--fw-selection-line); }
.pd-page[data-marked="true"]::after { content: ""; position: absolute; right: 4px; top: 4px; width: 4px; height: 4px; border-radius: 100%; background: currentColor; }
#pd-more { min-height: 42px; flex-direction: row; gap: .29rem; }
#pd-inspector h2 { font-size: 1.03rem; margin-bottom: .32rem; }
#pd-inspector p { font-size: .89rem; margin-block: .39rem .6rem; color: var(--fw-muted); }
.pd-coords { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .3rem; margin-block: .42rem; }
.pd-precise { margin-top: .7rem; padding-block: .3rem; border-block-start: 1px solid var(--fw-line); }
.pd-precise summary { font-size: .87rem; font-weight: 700; cursor: pointer; }
.fw-axis-label { display:flex; align-items:center; gap:.6rem; }
.fw-type-rotate { position:absolute; z-index:3; left:50%; bottom:calc(100% + 8px); width:28px; height:28px; display:grid; place-items:center; transform:translateX(-50%); padding:0; border-radius:50%; border:1px solid #183d46; background:#c4f5ff; color:#183d46; cursor:grab; pointer-events:auto; touch-action:none; }
.fw-type-rotate::after { content:""; position:absolute; top:100%; left:calc(50% - 1px); height:9px; width:2px; background:#7fe9ff; box-shadow:0 0 0 1px #183d466c; }
.fw-type-rotate .icon { width:16px; height:16px; }
.fw-type-box[data-rotate-bottom=true] .fw-type-rotate { top:calc(100% + 8px); bottom:auto; }
.fw-type-box[data-rotate-bottom=true] .fw-type-rotate::after { bottom:100%; top:auto; }
.fw-type-box[data-typing] .fw-type-rotate { visibility:hidden; }
.fw-text-size input { width:100%; }
.fw-framing-layer { position:absolute; inset:0; z-index:5; display:grid; place-items:center; pointer-events:none; }
.fw-framing-layer[data-frame-mode=crop] { background:#101b22; }
.fw-framing-source { position:relative; min-width:0; min-height:0; }
.fw-framing-canvas { display:block; width:100%; height:100%; object-fit:contain; }
.fw-frame-shade { fill:#09141b9c; }
.fw-framing-layer[data-frame-mode=blur] .fw-frame-shade { fill:#09141b30; }
.fw-frame-grid { stroke:#ffffff71; stroke-width:1; }
.fw-framing-handle { width:31px; height:31px; touch-action:none; transform:translate(-50%,-50%); cursor:crosshair; }
.fw-framing-handle::after { content:""; display:block; position:absolute; top:50%; left:50%; width:10px; height:10px; transform:translate(-50%,-50%); border-radius:2px; background:#f7fff4; box-shadow:0 0 0 1px #122525; }
.fw-framing-handle[data-frame-edge=n],.fw-framing-handle[data-frame-edge=s] { cursor:ns-resize; }
.fw-framing-handle[data-frame-edge=w],.fw-framing-handle[data-frame-edge=e] { cursor:ew-resize; }
.fw-framing-handle[data-frame-edge=nw],.fw-framing-handle[data-frame-edge=se] { cursor:nwse-resize; }
.fw-framing-handle[data-frame-edge=ne],.fw-framing-handle[data-frame-edge=sw] { cursor:nesw-resize; }
#fw-framing-controls button[aria-pressed=true] { background:var(--fw-selection); border-color:var(--fw-selection-line); color:var(--fw-secondary); }
.fw-axis-label > span { font-size:.78rem; color:var(--fw-muted); }
.fw-axis-zoom select { height:36px; border:1px solid var(--field-border); border-radius:6px; padding:.2rem .37rem; font:inherit; font-size:.86rem; color:var(--ink); background:var(--field,var(--white)); }
.fw-axis-key:focus-visible { clip:auto; clip-path:none; width:2.4rem; height:1rem; margin:0; opacity:0; }
.fw-timeline:has(.fw-axis-key:focus-visible) .fw-linear-ruler,.fw-audio-chart:has(.fw-axis-key:focus-visible) .fw-linear-ruler { outline:2px solid var(--fw-selection-line); outline-offset:-2px; }
.fw-linear-ruler { min-height:27px; cursor:crosshair; touch-action:none; background:
  repeating-linear-gradient(90deg,var(--fw-clip-border) 0 1px,transparent 1px max(3px,var(--fw-tick-gap,20px))) left bottom/100% 6px no-repeat,var(--fw-raised); }
.fw-timeline-board { position:relative; padding-block:0; }
.fw-timeline-board .fw-track,.fw-timeline-board .fw-lane,.fw-audio-lane-body { background:
  repeating-linear-gradient(90deg,var(--fw-line) 0 1px,transparent 1px max(3px,var(--fw-tick-gap,20px))),var(--fw-deep); }
.fw-timeline-board .fw-lane { border-inline:0; border-radius:0; }
.fw-timeline-board .fw-track { min-height:56px; }
.fw-timeline-board .fw-clip { position:absolute; top:2px; height:calc(100% - 4px); }
.fw-clip[data-selected=true] { z-index:2; }
.fw-timeline-board .fw-clip-select,.fw-audio-wave { touch-action:none; cursor:grab; user-select:none; }
.fw-timeline-board .fw-clip-select:active,.fw-audio-wave:active { cursor:grabbing; }
.fw-timeline-board .fw-playhead { z-index:4; top:0; bottom:0; left:var(--fw-track-heading); color:#de553a; }
.fw-timeline-board .fw-playhead::before,.fw-audio-playhead::before {
  content:""; position:absolute; top:0; left:-5px; width:12px; height:9px; border-radius:2px;
  background:#de553a; clip-path:polygon(0 0,100% 0,100% 48%,50% 100%,0 48%);
}
.fw-timeline-board .fw-lane-title { z-index:5; }
.fw-timeline-board .fw-lane-cursor { display:none; }
.fw-track-ghost { position:absolute; top:3px; bottom:3px; z-index:3; pointer-events:none; min-width:2px; overflow:hidden; border:1px dashed var(--fw-selection-line); border-radius:5px; padding:.18rem .26rem; background:var(--fw-selection); color:var(--fw-secondary); font:.75rem ui-monospace,monospace; }
.fw-clip[data-moving],.fw-audio-segment[data-moving] { opacity:.38; }
.fw-transport button[aria-pressed=true],.fw-magnet[aria-pressed=true] { background:var(--fw-selection); color:var(--fw-secondary); border-color:var(--fw-selection-line); }
.fw-audio-heads { z-index:5; }
.fw-audio-ruler-row { z-index:3; }
.fw-audio-label { z-index:6; }
@media(max-width:720px){.fw-axis-label > span{display:none}.fw-transport{flex-wrap:wrap}.fw-audio-view-tools .fw-audio-zoom select{width:auto;min-width:4.9rem;}}
@media(max-width: 480px) {
  #pd-more span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #pd-more { min-width: 44px; }
}

/* A command finder that never takes space away from the editing surface. */
.fw-commands-trigger { display:inline-flex; align-items:center; justify-content:center; gap:.42rem; min-inline-size:44px; min-block-size:44px; }
.fw-commands-trigger kbd { padding:.08em .36em; border:1px solid var(--fw-line); border-radius:.3rem; font:inherit; font-size:.85em; }
.fw-commands { width:min(32rem,calc(100% - 1rem)); max-width:none; max-height:calc(100dvh - 1rem); padding:clamp(.8rem,3vw,1.2rem); margin:auto; overscroll-behavior:contain; color:var(--ink); background:var(--white); border:1px solid var(--field-border); border-radius:var(--surface-radius); box-shadow:var(--ui-shadow); }
.fw-commands::backdrop { background:#101b1899; }
.fw-commands .fw-commands-head { display:flex; justify-content:space-between; align-items:center; gap:.65rem; margin-bottom:.65rem; }
.fw-commands-head h2 { font-size:clamp(1.28rem,4vw,1.55rem); }
.fw-commands label { display:block; margin-bottom:.25rem; font-weight:700; }
.fw-commands input { width:100%; min-height:44px; padding:.55rem .7rem; color:var(--ink); background:var(--field); border:1px solid var(--field-border); border-radius:var(--field-radius); }
.fw-commands p { font-size:.95rem; line-height:1.4; }
.fw-commands .fw-command-help { margin:.5rem 0; color:var(--muted); }
.fw-commands .fw-command-count { margin:.6rem 0 .35rem; }
.fw-commands ul { margin:0; padding:0; list-style:none; max-height:min(42dvh,22rem); overflow-y:auto; }
.fw-commands li button { display:block; width:100%; min-height:44px; padding:.55rem .7rem; text-align:start; font-size:1rem; color:var(--ink); background:var(--white); border:0; border-top:1px solid var(--line); }
.fw-commands li button:is(:focus-visible,:hover) { background:var(--soft); }
.fw-commands li button:focus-visible { outline:2px solid var(--focus-color); outline-offset:-3px; }
@media(max-width:980px){.fw-commands-trigger kbd{display:none}}
@media(max-width:800px){.fw-commands-trigger > span{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;}.fw-commands-trigger{padding-inline:.4rem}}
