/* Shared visual contract: neutral surfaces, gold for primary/selected actions,
   readable UI type, aligned 24px gutters, and contained menu/dialog overflow. */
@media screen {
body.studio-refined {
  --studio-side:304px;--studio-header:64px;--system-gutter:24px;--system-control:36px;
  --bg:#121416;--panel:#1a1d20;--surface-0:#121416;--surface-1:#1a1d20;--surface-2:#24282c;--surface-3:#30353a;
  --text:#eceeea;--dim:#adb5b8;--line:#3c4246;--line-soft:#2e3337;--accent:#dac084;
  --system-canvas:816px;--system-radius:8px;
  font-size:14px;line-height:1.5;
}
body.studio-refined * {box-sizing:border-box;}
body.studio-refined :is(button,input,textarea,select,summary) {font-family:var(--sans);font-size:13px;letter-spacing:0;}
body.studio-refined :is(input,select,textarea) {min-width:0;max-width:100%;}
body.studio-refined button {line-height:1.25;}
body.studio-refined button:disabled {opacity:.42;cursor:not-allowed;}
body.studio-refined [hidden] {display:none!important;}
.systemIcon {display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
body.studio-refined :is(.workspaceGlyph,.productionNavIcon) {filter:none;}
body.studio-refined #sidebar header#brand {height:var(--studio-header);min-height:var(--studio-header);gap:0;background:var(--panel);}
body.studio-refined #brand .brandHeading {display:flex;align-items:center;justify-content:flex-start;flex-basis:var(--studio-side);padding:0 var(--system-gutter);margin:0;text-align:left;}
body.studio-refined #brand #brandSplash {padding:0;}
body.studio-refined #brand .brandLockup {justify-content:flex-start;gap:8px;}
body.studio-refined #brand .brandLockup > span {font-size:18px;letter-spacing:-.6px;}
body.studio-refined #workspaceDock {gap:8px;padding:0 16px;height:64px;}
body.studio-refined #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn) {gap:8px;padding:0 8px;}
body.studio-refined #workspaceDock .workspaceLabel {font-size:13px;}
body.studio-refined .studioProjectHome {display:inline-flex;position:static;margin:0;min-height:36px;padding:8px 12px;font-size:13px;color:var(--text);}
.systemProjectName {display:flex;min-width:120px;max-width:280px;flex:1;margin:0 16px 0 auto;}
body.studio-refined #brand #writerDocumentName {width:100%;height:36px;margin:0;padding:8px 12px;border:1px solid transparent;border-radius:6px;background:none;color:var(--text);font-size:13px;text-overflow:ellipsis;}
body.studio-refined #brand #writerDocumentName:hover,body.studio-refined #brand #writerDocumentName:focus {border-color:var(--line);background:var(--surface-0);}
.systemGlobalActions {display:flex;align-items:center;gap:8px;padding:0 8px;margin-left:auto;}
body.studio-refined #appUtilityDock {position:static;display:flex;align-items:center;gap:4px;margin:0 16px 0 0;flex:none;pointer-events:auto;}
body.studio-refined #appUtilityDock button {font-size:13px;min-height:36px;height:36px;padding:8px;}
body.studio-refined #appUtilityDock #systemShortcutsButton {gap:8px;padding:8px 12px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);}
body.studio-refined #appUtilityDock #systemShortcutsButton:hover {background:var(--surface-3);border-color:var(--dim);}
body.studio-refined #appUtilityDock [data-about-open] {display:none;}
body.studio-refined #appearanceSettingsPanel {position:fixed;top:72px;right:16px;bottom:auto;left:auto;width:340px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 88px);overflow:auto;border-radius:8px;background:var(--panel);border:1px solid var(--line);padding:20px;box-shadow:0 16px 48px #0006;}
.systemDensitySetting {display:grid;grid-template-columns:1fr 140px;align-items:center;gap:12px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line-soft);color:var(--text);font-size:13px;}
body.studio-refined .systemDensitySetting select {height:36px;background:var(--surface-0);color:var(--text);padding:8px;border:1px solid var(--line);border-radius:6px;}
body.studio-refined .projectShareButton,body.studio-refined .writerDocumentRow {display:none!important;}
body.studio-refined .workspaceBottomDock {padding:0 24px 16px;gap:12px;}
body.studio-refined #writerNextStep {display:none;}
body.studio-refined #writerDrawer,body.studio-refined #productionDrawer {padding:8px 24px 0;}
body.studio-refined #sidebar #sideScroll {padding:0 24px 24px;}
body.studio-refined #sidebar :is(.secToggle,.writerDetails>summary) {text-transform:none;font-size:13px;font-weight:600;letter-spacing:0;height:48px;min-height:48px;line-height:20px;}
body.studio-refined #sidebar #sideScroll .secToggle>span:not(.chev) {line-height:20px;}
body.studio-refined #sidebar #writerDrawer .writerDetailsBody label {font-size:12px;letter-spacing:0;}
body.studio-refined #sidebar :is(.writerDetailsBody input,.writerDetailsBody textarea,.sceneItem b,.noteText,.projectNextStep p) {font-size:13px;line-height:1.5;}
body.studio-refined #sidebar :is(.ctx,.noteLineMeta,.typedNoteTarget,.typedNoteSaveHint,#rehearsalHint,.voiceQualityCopy,.voiceQualityCopy b,.studioVoiceInfo,.studioCastMeta,.studioRoleButton,.studioTuneRow,.studioTuneRow .tv) {font-size:12px;line-height:1.5;color:var(--dim);}
body.studio-refined #sidebar .studioCastName {font-size:13px;}
body.studio-refined #sidebar .studioCast select {font-size:13px;min-height:36px;}
body.studio-refined .studioRoleButton {margin-top:8px;min-height:32px;gap:8px;}
body.studio-refined #productionDrawer #insTabs {gap:4px;margin:8px 0 24px;min-height:0;}
body.studio-refined #productionDrawer #insTabs button {height:44px;min-height:44px;padding:12px;gap:12px;font-size:13px;}
body.studio-refined #productionDrawer #insTabs button.active {background:var(--surface-3);color:var(--text);}
body.studio-refined .projectNextStep :is(span,small,p,b) {font-size:12px;line-height:1.6;}

/* Home is one composition, with the project library in the content column. */
body.studio-refined.splash-home:not(.table-read-empty) #sidebar {width:0;min-width:0;border:0;}
body.studio-refined.splash-home:not(.table-read-empty) #homeDrawer {display:none!important;}
body.studio-refined #empty .studioWelcome {width:min(1120px,100%);max-width:1120px;padding:48px 32px 32px;margin:auto;}
body.studio-refined .studioWelcomeHeading {margin-bottom:32px;}
body.studio-refined .studioEyebrow {font-size:12px;color:var(--dim);letter-spacing:1.2px;}
body.studio-refined .studioHero {grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;align-items:center;}
body.studio-refined #empty .studioHero h2 {font-size:56px;line-height:1.08;letter-spacing:-2px;}
body.studio-refined .studioHeroCopy>p {font-size:16px;line-height:1.7;color:var(--dim);margin:24px 0;}
body.studio-refined .studioHeroActions {display:flex;gap:16px;align-items:center;flex-wrap:wrap;}
body.studio-refined .studioPrimary {height:48px;min-height:48px;font-size:14px;padding:12px 20px;}
body.studio-refined .studioTextButton {font-size:14px;padding:12px;min-height:48px;}
body.studio-refined .studioFileTypes {font-size:12px;color:var(--dim);margin-top:12px;}
body.studio-refined .studioDemo {transform:none!important;margin:0;border-radius:12px;background:var(--panel);border-color:var(--line);}
body.studio-refined .studioDemo header {font-size:12px;color:var(--dim);}
body.studio-refined.splash-home #readerBar,body.studio-refined.writer-mode #readerBar,body.studio-refined.production-mode #readerBar {display:none;}
body.studio-refined .studioDemoScene {font-size:12px;color:var(--dim);}
body.studio-refined .studioDemoScene p {font-size:13px;line-height:1.7;}
body.studio-refined .studioDemoLine b {font-size:12px;letter-spacing:1px;}
body.studio-refined .studioDemoLine p {font-size:14px;line-height:1.6;}
body.studio-refined .studioDemo footer button {font-size:14px;}
body.studio-refined .studioDemo footer small {font-size:12px;color:var(--dim);}
.systemRecentProjects {margin-top:40px;padding:24px 0;border-top:1px solid var(--line-soft);}
body.studio-refined .recentTitle {font-size:13px;padding:0;margin:0 0 16px;text-transform:none;letter-spacing:0;color:var(--text);}
body.studio-refined .recentProjectList {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
body.studio-refined .recentProject {position:relative;display:block;overflow:visible;margin:0;padding:0;background:var(--panel);border:1px solid var(--line-soft);border-radius:8px;}
body.studio-refined .recentProjectOpen {width:100%;min-height:104px;padding:16px 40px 16px 16px;gap:12px;}
body.studio-refined .recentProject:hover {transform:none;}
body.studio-refined .recentProject:has(.studioProjectActions[open]) {z-index:40;}
body.studio-refined .recentProjectOpen {padding:16px 40px 16px 16px!important;}
body.studio-refined .studioProjectActions .recentProjectActions {position:absolute;top:32px;right:0;display:grid;gap:4px;width:176px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 12px 32px #0006;opacity:1;}
body.studio-refined .studioProjectActions .recentProjectActions button {display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:40px;padding:8px 12px!important;border:0!important;background:none!important;font-size:13px;}
body.studio-refined .studioProjectActions .recentProjectActions button:hover {background:var(--surface-3)!important;}
body.studio-refined .studioProjectActions .studioProjectActionLabel {font-size:13px;}
body.studio-refined .recentProjectOpen b {font-size:14px;line-height:1.5;font-weight:550;}
body.studio-refined .recentProjectOpen small {font-size:12px;line-height:1.5;color:var(--dim);}
body.studio-refined .recentProjectGlyph {width:20px;height:20px;font-size:18px;color:var(--dim);}
body.studio-refined .recentProjectsEmpty {padding:24px;min-height:0;text-align:left;display:flex;gap:16px;align-items:center;}
body.studio-refined .recentProjectsEmpty :is(b,small) {font-size:13px;line-height:1.5;}
body.studio-refined .studioWorkflow {margin-top:16px;padding-top:24px;}
body.studio-refined .studioWorkflow :is(span,p) {font-size:13px;color:var(--dim);}
body.studio-refined .studioWelcomeFooter {margin-top:32px;font-size:12px;color:var(--dim);}
body.studio-refined .studioWelcomeFooter button {font-size:13px;}

/* Every menu is an anchored, readable panel; no toolbar text wraps. */
body.studio-refined :is(.systemButton,.systemIconButton,.systemMenu summary) {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--system-control);padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:var(--text);font-size:13px;line-height:18px;white-space:nowrap;cursor:pointer;}
body.studio-refined .systemIconButton {width:36px;padding:8px;background:none;border-color:transparent;}
.systemMenu {position:relative;flex:none;}
.systemMenu>summary {list-style:none;}
.systemMenu>summary::-webkit-details-marker {display:none;}
.systemMenu[open]>summary {background:var(--surface-3);}
.systemMenuPanel {position:absolute;top:calc(100% + 8px);right:0;z-index:250;display:flex;flex-direction:column;gap:4px;min-width:248px;max-width:min(360px,calc(100vw - 32px));max-height:65dvh;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 12px 40px #0007;}
body.studio-refined .systemMenuPanel button {display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:40px;width:100%;padding:10px 12px;border:0;border-radius:5px;background:none;color:var(--text);font-size:13px;text-align:left;white-space:normal;}
body.studio-refined .systemMenuPanel button:hover {background:var(--surface-3);}
body.studio-refined .systemMenuPanel .writerViewSwitch {display:flex;flex-direction:column;gap:4px;}
body.studio-refined :is(.systemMenuPanel button.active,.writerViewSwitch button.active,#writerFormatRail>button.active) {color:var(--text);border-color:transparent;background:var(--surface-3);box-shadow:none;}
body.studio-refined .systemMenuPanel :is(#writerRevisionModeBtn,#writerSceneNumbersBtn) {color:var(--text);background:none;border:0;box-shadow:none;}
body.studio-refined .systemMenuPanel :is(#writerRevisionModeBtn,#writerSceneNumbersBtn).active {background:var(--surface-3);}
body.studio-refined .systemMenuPanel .writerStateTool span {display:inline;font-size:13px;font-weight:500;line-height:1.5;}
body.studio-refined .systemMenuPanel svg {stroke:currentColor;}
body.studio-refined kbd {display:inline-block;flex:none;border:1px solid var(--line);border-radius:4px;padding:2px 5px;font:11px/1.3 var(--sans);background:var(--surface-0);color:var(--dim);white-space:nowrap;}
body.studio-refined .systemMenuPanel kbd {margin-left:auto;}

/* Writer: one toolbar, centered paper, and a quiet status row. */
body.studio-refined #writerToolbar {display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:8px 24px;border-bottom:1px solid var(--line-soft);overflow:visible;}
body.studio-refined #writerFormatRail {display:flex;flex:1;align-items:center;gap:4px;min-width:0;min-height:0;margin:0;padding:0;border:0;overflow:visible;}
body.studio-refined #writerFormatRail>button {flex-direction:row;height:36px;min-height:36px;padding:8px;gap:6px;font-size:12px;}
body.studio-refined #writerFormatRail>button kbd {border:0;background:none;padding:0;color:var(--dim);font-size:11px;}
body.studio-refined #writerFormatRail>.studioMoreFormats {margin:0;}
body.studio-refined .studioMoreFormats>summary {gap:8px;padding:8px;font-size:12px;height:36px;min-height:36px;}
.studioMoreFormats>summary svg {width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;}
body.studio-refined #writerFormatRail .studioMoreFormatsPanel {left:0;right:auto;grid-template-columns:1fr;width:232px;max-height:65dvh;overflow:auto;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:8px;}
body.studio-refined #writerFormatRail .studioMoreFormatsPanel button {height:40px;font-size:13px;}
.systemElementHint {display:none;}
body.studio-refined .writerUtilityRail {display:none;}
.systemWriterActions {display:flex;align-items:center;gap:8px;flex:none;margin-left:auto;}
body.studio-refined #writerExportMenuBtn {height:36px;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;font-size:13px;}
body.studio-refined #writerExportMenuPanel {top:calc(100% + 8px);right:0;min-width:296px;max-height:65dvh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:8px;}
body.studio-refined #writerExportMenuPanel button {min-height:56px;padding:12px;font-size:13px;}
body.studio-refined #writerExportMenuPanel small {font-size:12px;line-height:1.5;color:var(--dim);}
body.studio-refined #writerPagesView {padding:32px 24px 64px;background:var(--bg);scroll-padding:32px;}
body.studio-refined #writerPaperWrap {margin:0 auto 64px;}
body.studio-refined #writerPaper .writerBlock {border-color:transparent;padding-left:4px;padding-right:4px;}
body.studio-refined #writerPaper .writerBlock:focus {border-color:transparent;background:#dedbcf55;box-shadow:none;outline:0;}
body.studio-refined #writerPaper .writerBlock::after {display:none;}
body.studio-refined #writerPaper .writerBlock:empty::before {color:#79776e;opacity:1;}
body.studio-refined #writerPageNumbers {color:#72736e;}
body.studio-refined #writerStatusBar {min-height:40px;gap:8px;padding:4px 24px;font-size:12px;color:var(--dim);flex-wrap:nowrap;}
body.studio-refined #writerStatusBar #writerStats {font-size:12px;white-space:nowrap;}
body.studio-refined #writerStatusBar #writerShortcutHint {margin-left:auto;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.studio-refined #writerStatusBar :is(#writerUndo,#writerRedo) {width:32px;height:32px;min-width:32px;min-height:32px;padding:7px;border:0;background:none;color:var(--dim);}
.systemCheckChip {background:none;border:0;color:var(--dim);font-size:12px;padding:8px;white-space:nowrap;}
body.studio-refined #writerFindBar {display:flex;align-items:center;gap:8px;padding:12px 24px;background:var(--panel);border-bottom:1px solid var(--line);flex-wrap:wrap;}
body.studio-refined #writerFindBar input {flex:1 1 160px;min-height:36px;padding:8px 12px;font-size:13px;}
body.studio-refined #writerFindBar button {min-height:36px;font-size:13px;}
body.studio-refined #writerFindCount {font-size:12px;}
.systemExitFocus {display:none;}
body.systemFocus {--studio-side:0px;--studio-header:0px;padding-top:0;}
body.studio-refined.systemFocus #sidebar,body.studio-refined.systemFocus #writerToolbar,body.studio-refined.systemFocus #appUtilityDock {display:none!important;}
body.studio-refined.systemFocus #main {height:100dvh;}
body.systemFocus .systemExitFocus {display:flex;align-items:center;gap:8px;position:fixed;right:24px;top:16px;z-index:200;height:36px;padding:8px 12px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:6px;}

/* Table Read shares the writer's centered canvas. */
body.studio-refined #sidebar .studioCastCount {font-size:12px;line-height:18px;color:var(--dim);}
body.studio-refined #sidebar .studioVoiceControls {grid-template-columns:minmax(0,1fr) 32px 32px;}
body.studio-refined #sidebar .studioVoiceControls button {width:32px;}
body.studio-refined #writerOutlineTools {position:static!important;inset:auto!important;transform:none!important;margin:8px 0!important;display:flex;flex-wrap:wrap;gap:8px;padding:12px;border-block:1px solid var(--line-soft);}
body.studio-refined #writerOutlineTools button {width:28px;min-height:28px;padding:4px;}
body.studio-refined #writerOutlineColors {display:block;width:100%;height:auto;padding:0;border:0;background:none;}
body.studio-refined #writerOutlineColors .writerOutlineColorToggle {display:none;}
body.studio-refined #writerOutlineColors .writerOutlineColorPalette {position:static;display:grid;grid-template-columns:repeat(6,28px);gap:8px;padding:0;height:auto;border:0;background:none;box-shadow:none;}
body.studio-refined #writerOutlineColors .writerOutlineColorPalette>span {grid-column:1/-1;display:block;padding:0;margin:0 0 4px;border:0;font-size:12px;letter-spacing:0;text-transform:none;}
body.studio-refined #writerOutlineColors .writerOutlineColorPalette button {background:var(--swatch);border:1px solid #ffffff40;width:28px;height:28px;padding:0;min-height:28px;flex:none;}
body.studio-refined #writerOutlineColors .writerOutlineColorPalette button.active {box-shadow:0 0 0 2px var(--panel),0 0 0 3px var(--text);}
body.studio-refined #writerOutlineColors .writerOutlineColorPalette button.active::after {left:9px;top:8px;}
body.studio-refined .writerOutlineCard {padding:20px;border-radius:8px;background:var(--panel);box-shadow:none;}
body.studio-refined .writerOutlineCard.selected {border-color:var(--card-color);box-shadow:none;}
body.studio-refined .writerOutlineCard::before {height:3px;border-radius:0;}
body.studio-refined .writerOutlineCard h3 {font-size:14px;line-height:1.5;}
body.studio-refined .writerOutlineCard .writerOutlineExcerpt {font-size:13px;line-height:1.6;}
body.studio-refined .writerOutlineCard textarea {font-size:13px;line-height:1.6;padding:12px;}
body.studio-refined .writerOutlineMeta {font-size:12px;line-height:1.5;}
body.studio-refined .writerOutlineCardFoot {flex-wrap:wrap;gap:12px;margin-top:16px;}
body.studio-refined .writerOutlineMove {margin-left:auto;}
body.studio-refined .writerOutlineMove button {font-size:12px;min-height:32px;min-width:32px;}
body.studio-refined #readerBar {padding:16px max(24px,calc((100% - var(--system-canvas))/2 + 24px));min-height:56px;display:flex;align-items:center;gap:16px;background:var(--bg);}
body.studio-refined #readerScene {font-size:13px;line-height:20px;letter-spacing:0;}
body.studio-refined #readerSpeaker {font-size:12px;line-height:20px;color:var(--dim);}
body.studio-refined #script {width:100%;max-width:var(--system-canvas);padding:32px 24px 152px;margin:0 auto;line-height:1.8;}
body.studio-refined #script .scene {font-size:calc(var(--reader-font-size,15.5px) * .90323);letter-spacing:.4px;margin:0 0 24px;padding:16px 0;color:var(--text);}
body.studio-refined #script .action {font-size:calc(var(--reader-font-size,15.5px) * 1.03226);color:#bbc1c2;}
body.studio-refined #script .cue {font-size:calc(var(--reader-font-size,15.5px) * .77419);letter-spacing:1px;}
body.studio-refined #script .dlg {max-width:540px;margin:24px auto;padding:16px 24px;border:1px solid transparent;}
body.studio-refined #script .item.active {background:#242b2a;border-color:#3f5750;box-shadow:inset 3px 0 #91b5aa;}
body.studio-refined #script .words {font-size:calc(var(--reader-font-size,15.5px) * 1.09677);line-height:1.7;}
body.studio-refined #controls {left:calc(var(--studio-side) + max(24px,(100vw - var(--studio-side) - var(--system-canvas))/2));right:max(24px,(100vw - var(--studio-side) - var(--system-canvas))/2);bottom:24px;min-height:80px;gap:16px;padding:16px 20px!important;border-radius:8px;background:var(--panel)!important;border:1px solid var(--line)!important;backdrop-filter:none;}
body.studio-refined #controls .readerTrack {position:absolute;left:20px;right:20px;bottom:8px;height:2px;margin:0;background:var(--line-soft);}
body.studio-refined #controls .studioTransportInfo small {font-size:12px;color:var(--dim);}
body.studio-refined #controls .studioTransportInfo b {font-size:14px;}
body.studio-refined #controls .studioTransportMark {width:36px;height:36px;border:0;background:var(--surface-2);color:var(--dim);}
body.studio-refined #controls .studioTransportHint {font-size:12px;color:var(--dim);}
body.studio-refined #playBtn {height:40px;min-height:40px;min-width:128px;font-size:13px;}
body.studio-refined #stopBtn {font-size:13px;}

/* Production: readable controls and a single border around each scene. */
body.studio-refined #insights {max-width:1248px;margin:auto;padding:24px;}
body.studio-refined #iBody {padding:0;}
.systemProductionActions {display:flex;justify-content:flex-end;gap:8px;margin-bottom:16px;}
body.studio-refined .shotWorkspaceToolbar {display:flex;align-items:center;gap:12px;padding:0 0 24px;margin:0;border:0;background:none;flex-wrap:wrap;}
body.studio-refined .shotSearch {flex:1 1 240px;min-width:180px;max-width:none;}
body.studio-refined .shotSearch input {height:40px;font-size:13px;}
.systemProductionFilter,.systemProductionView {position:relative;}
.systemProductionFilter>summary,.systemProductionView>summary {list-style:none;cursor:pointer;display:flex;align-items:center;height:40px;padding:8px 16px;background:var(--surface-2);border:1px solid var(--line);border-radius:6px;font-size:13px;}
.systemProductionFilter>summary::after,.systemProductionView>summary::after {content:'⌄';margin-left:12px;line-height:1;}
.systemProductionFilter>div,.systemProductionView>div {position:absolute;right:0;top:calc(100% + 8px);z-index:100;min-width:240px;padding:16px;display:grid;gap:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 12px 32px #0007;}
body.studio-refined .shotStatusFilter {display:grid;gap:8px;}
body.studio-refined .shotStatusFilter span {font-size:12px;color:var(--dim);}
body.studio-refined .shotStatusFilter select {height:40px;font-size:13px;width:100%;}
body.studio-refined .shotDensity {display:flex;gap:4px;}
body.studio-refined .shotDensity button {min-height:36px;font-size:12px;}
body.studio-refined .shotFilterCount {font-size:12px;white-space:nowrap;color:var(--dim);}
body.studio-refined .orderTools {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--line-soft);}
body.studio-refined .orderToolsCopy b {font-size:18px;color:var(--text);}
body.studio-refined .orderToolsCopy>span {font-size:13px;line-height:1.5;color:var(--dim);margin-top:8px;max-width:440px;}
body.studio-refined .orderToolsActions {display:flex;gap:8px;}
body.studio-refined .insUtilityButton {font-size:13px;color:var(--text);min-height:40px;padding:8px 12px;}
body.studio-refined .contactSheetButton span {font-size:12px;color:var(--dim);}
body.studio-refined .productionSceneHead {grid-template-columns:24px 40px minmax(0,1fr) auto;gap:16px;padding:24px;}
body.studio-refined .productionSceneHead .dragHandle {width:24px;height:32px;border:0;background:none;}
body.studio-refined .sceneCardKicker {gap:8px;margin:0 0 8px;}
body.studio-refined .sceneCardKicker>span {font-size:12px;line-height:18px;color:var(--dim);font-weight:450;letter-spacing:0;}
body.studio-refined .sceneCardTitle {font-size:16px;line-height:24px;}
body.studio-refined .sceneCardCast {font-size:13px;line-height:20px;color:var(--dim);}
body.studio-refined .sceneCardSummaryCounts {gap:12px;margin-top:8px;}
body.studio-refined .sceneCardSummaryCounts i {font-size:12px;color:var(--dim);font-style:normal;}
body.studio-refined .sceneCardSummaryCounts i:empty {display:none;}
body.studio-refined .sceneCardActions {display:flex;align-items:center;gap:8px;}
body.studio-refined .sceneStatusButton {display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:108px;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:var(--surface-2);box-shadow:none;}
body.studio-refined .sceneStatusButton .statusMark {display:none;}
body.studio-refined .sceneStatusLabel {display:inline;font-size:12px;line-height:18px;white-space:nowrap;}
body.studio-refined .sceneStatusButton.ready {color:#b4d2bc;}
body.studio-refined .sceneStatusButton.blocked {color:#e4b197;}
body.studio-refined .sceneCardActions .insJump {min-height:36px;font-size:12px;}
body.studio-refined .orderBtns {display:flex;gap:4px;}
body.studio-refined .orderBtns button {width:28px;height:32px;color:var(--dim);opacity:1;font-size:16px;}
body.studio-refined .sceneBlockBody {padding:24px;border-top:1px solid var(--line-soft);background:none;}
body.studio-refined .sceneFacts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px;}
body.studio-refined .sceneFacts>span {display:grid;grid-template-columns:72px minmax(0,1fr);align-items:baseline;gap:8px;font-size:13px;line-height:1.6;}
body.studio-refined .sceneFacts b {font-size:12px;color:var(--dim);}
body.studio-refined .sceneRequirements {margin:24px 0;padding:24px 0;border:0;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);border-radius:0;background:none;}
body.studio-refined .sceneRequirements header {gap:16px;}
body.studio-refined .sceneRequirements header b {font-size:14px;}
body.studio-refined .sceneRequirements :is(header span,header em,.requirementsEmpty) {font-size:12px;line-height:1.6;color:var(--dim);}
body.studio-refined .requirementAdd {display:grid;grid-template-columns:152px minmax(0,1fr) 64px;gap:8px;}
body.studio-refined .requirementAdd :is(input,select,button) {min-height:40px;font-size:13px;}
body.studio-refined .shotHead {padding:0;margin:24px 0 16px;}
body.studio-refined .shotHead b {font-size:14px;color:var(--text);}
body.studio-refined .shotHead button {min-height:36px;padding:8px 12px;font-size:12px;}
body.studio-refined .shotRow.rich {padding:16px 0;border:0;border-top:1px solid var(--line-soft);border-radius:0;background:none;}
body.studio-refined .shotPrimary {display:grid!important;grid-template-columns:56px 72px 156px minmax(120px,1fr) minmax(120px,1fr) 96px!important;gap:12px!important;align-items:center;}
body.studio-refined .shotPrimary :is(input,select) {width:100%;height:40px;min-height:40px;font-size:13px;padding:8px 12px;}
body.studio-refined .shotPrimary select {color:var(--text);padding-right:24px;}
body.studio-refined .shotNo.shotDragHandle {display:flex;align-items:center;justify-content:center;gap:8px;width:56px;height:40px;padding:8px 4px;border:0;background:none;}
body.studio-refined .shotNo b {font-size:13px;color:var(--text);}
body.studio-refined .shotReference {width:72px;height:48px;}
body.studio-refined .shotReference label {height:48px;width:72px;}
body.studio-refined .shotReference label>span {display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;}
body.studio-refined .shotReference small {font-size:10px;line-height:12px;white-space:nowrap;letter-spacing:0;text-transform:none;}
body.studio-refined .shotReference i {font-size:16px;height:16px;line-height:16px;}
body.studio-refined .shotBtns {display:flex;gap:4px;align-items:center;}
body.studio-refined .shotBtns button {height:32px;width:28px;min-width:28px;padding:4px;font-size:16px;color:var(--dim);border:0;background:none;}
body.studio-refined .shotBtns [data-shot-del] {color:#d4a3a3;}
body.studio-refined .shotTechnical {margin:12px 0 0 80px;}
body.studio-refined .shotTechnical>summary {font-size:12px;line-height:20px;min-height:28px;color:var(--dim);}
body.studio-refined .shotTechnical>div {gap:12px;padding-top:12px;}
body.studio-refined .shotTechnical label {font-size:12px;}
body.studio-refined .shotTechnical input {min-height:36px;font-size:13px;}
body.studio-refined :is(.todayStatusGrid,.scheduleBoardSummary) small {font-size:12px;}
body.studio-refined :is(.todaySection,.scheduleLane,.callSection,.productionEmptyState) {border-color:var(--line-soft);box-shadow:none;}
body.studio-refined :is(.todaySection,.scheduleLane,.callSection) :is(label,small,p) {font-size:12px;line-height:1.6;}

/* One dialog treatment; content scrolls while headers and actions stay clear. */
body.studio-refined .utilityDialogWrap {padding:24px;background:#050607bb;backdrop-filter:blur(4px);}
body.studio-refined :is(.utilityDialogWrap,#pasteScriptWrap,#reportWrap,#mapEditorWrap) {z-index:1000;}
body.studio-refined :is(.utilityDialog,#pasteScriptDialog) {width:min(760px,calc(100vw - 48px));max-height:calc(100dvh - 48px);border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);box-shadow:0 24px 80px #0008;overflow:auto;}
body.studio-refined .utilityDialogHead {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-bottom:1px solid var(--line-soft);background:none;}
body.studio-refined .utilityDialogHead :is(h1,h2) {font-size:24px;line-height:1.2;letter-spacing:-.4px;margin:4px 0 0;color:var(--text);}
body.studio-refined .utilityDialogHead :is(span,p) {font-size:12px;line-height:1.6;color:var(--dim);}
body.studio-refined .utilityDialogBody {padding:24px;}
body.studio-refined .utilityDialogFoot {position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid var(--line-soft);background:var(--panel);}
body.studio-refined .utilityDialog :is(p,small,label,li) {font-size:13px;line-height:1.6;}
body.studio-refined .utilityDialog :is(input,select,textarea) {font-size:14px;line-height:1.5;min-height:40px;background:var(--surface-0);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:8px 12px;}
body.studio-refined .utilityDialog button {min-height:36px;font-size:13px;}
body.studio-refined .utilityDialog :is(label>span,.writerCheckSummary span,.readinessSummary span,.storageProjectMeta,.storageProjectMeta span,.reviewCommentAuthor,.reviewCommentState,.reviewCommentContext,.reviewCommentAccountability,.reviewComment time,.commentsSectionHead span,.noteActionSourceType,.noteActionState) {font-size:12px;line-height:1.5;letter-spacing:0;text-transform:none;}
body.studio-refined .utilityDialog :is(label,input,select,button) {font-weight:500;}
body.studio-refined .reviewComment {padding:16px;border-radius:8px;}
body.studio-refined .reviewComment header,.reviewCommentIdentity {flex-wrap:wrap;}
body.studio-refined .commentsComposerGrid {grid-template-columns:repeat(2,minmax(0,1fr));}
body.studio-refined #contactSheetGrid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
body.studio-refined .contactSheetCopy :is(span,b,small) {display:block;white-space:normal;overflow:visible;text-overflow:clip;font-size:12px;line-height:1.6;}
body.studio-refined .contactSheetCopy b {font-size:14px;margin:8px 0;}
body.studio-refined .contactSheetCopy {padding:16px;}
body.studio-refined .projectNextStep {grid-template-columns:minmax(0,1fr);gap:12px;}
body.studio-refined .projectNextStep button {justify-self:start;}
body.studio-refined .projectNextStepCopy>span {font-weight:500;text-transform:none;letter-spacing:0;}
body.studio-refined #sidebar #notesSection :is(.typedNoteTarget,.typedNoteSaveHint,.ctx,.noteText) {font-size:12px;line-height:1.5;}
body.studio-refined #sidebar #notesSection .typedNoteMeta {display:flex;flex-wrap:wrap;gap:4px 12px;}
body.studio-refined #inlineNotePopover :is(#inlineNotePopoverKicker,#inlineNotePopoverContext,.inlineNoteCardMeta,.inlineNoteCardMeta time,.inlineNoteText) {font-size:12px;line-height:1.6;}
body.studio-refined #inlineNotePopover {width:min(400px,calc(100vw - 24px));z-index:300;}
body.studio-refined #inlineNotePopover .inlineNoteActions {flex-wrap:wrap;}
body.studio-refined .editBox {padding:16px;gap:8px;border-radius:8px;}
body.studio-refined .editBox :is(b,small,select,input,button) {font-size:13px;line-height:1.5;min-height:36px;}
body.studio-refined #appearanceSettingsPanel :is(span,b,small) {font-size:12px;}
body.studio-refined #appearanceSettingsPanel h2 {font-size:20px;}
body.studio-refined #appearanceSettingsPanel header {padding:0 0 16px;}
body.studio-refined :is(.scheduleStripMeta,.scheduleLaneMetrics,.scheduleLaneSummary,.todaySection,.dayOverview,.callSection,.callDistribution,.directoryGrid) :is(b,i,em,small,time) {font-size:12px;line-height:1.5;letter-spacing:0;}
body.studio-refined :is(.scheduleStripMain strong,.directoryCard>b,.todaySection>header,.callSection>summary,.scheduleLaneHeader strong) {font-size:14px;line-height:1.5;}
body.studio-refined :is(.scheduleClear,.scheduleIssue,.scheduleStripOrder,.scheduleStripBody,.dayCallBtn,.scheduleBuild,.scheduleSetupCopy,.doodTotal,.doodTable th) {font-size:12px;line-height:1.5;}
body.studio-refined :is(.callFormGrid,.directoryGrid,.scheduleLane,.locationMapFields,.shotTechnical) :is(input,select,textarea) {font-size:14px;font-weight:400;min-height:40px;}
body.studio-refined :is(.callFormGrid,.locationMapFields,.shotTechnical,.scheduleLane) label {font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;line-height:1.5;}
body.studio-refined .callFormGrid label:has([data-call-field="basecamp"]),body.studio-refined .callFormGrid label:has([data-call-field="hospital"]) {grid-column:1/-1;}
body.studio-refined .locationMapCardBody {grid-template-columns:1fr;gap:16px;padding:20px;}
body.studio-refined .locationMapFields {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
body.studio-refined .locationMapCardActions {justify-content:flex-end;flex-wrap:wrap;gap:8px;}
body.studio-refined .locationMapCardActions :is(button,label),body.studio-refined .locationMapLinks a {font-size:12px;min-height:36px;}
body.studio-refined .sceneFacts em {justify-self:start;font-size:12px;line-height:1.5;}
body.studio-refined .productionSceneCard>.productionSceneHead .sceneCardTitle::after {content:'';display:inline-block;width:7px;height:7px;border-right:1.5px solid var(--dim);border-bottom:1.5px solid var(--dim);transform:rotate(-45deg);margin:0 0 2px 12px;}
body.studio-refined .productionSceneCard[open]>.productionSceneHead .sceneCardTitle::after {transform:rotate(45deg);}
body.studio-refined .callCompletion:disabled {opacity:1;}
body.studio-refined #reportWrap {padding:24px;}
body.studio-refined #report {width:min(760px,100%);max-width:760px;padding:24px;margin:0;}
body.studio-refined #report :is(.wrapSummary span,.rTag,.rContext,.rNoteReview) {font-size:12px;line-height:1.5;letter-spacing:0;}
body.studio-refined #report .rNote {padding:16px;display:grid;gap:8px;}
body.studio-refined #report .rNoteReview {position:static;transform:none;justify-self:end;min-height:36px;}
body.studio-refined .systemModalClose {display:grid;place-items:center;width:36px;height:36px;flex:none;padding:8px;border:0;border-radius:6px;background:none;color:var(--dim);}
.systemDialog {position:fixed;inset:0;margin:auto;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);box-shadow:0 24px 80px #0008;overflow:auto;}
.systemDialog::backdrop {background:#050607bb;backdrop-filter:blur(4px);}
.systemDialog>header {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-bottom:1px solid var(--line-soft);}
.systemDialog h2 {font-size:22px;line-height:1.2;letter-spacing:-.4px;margin:4px 0 0;}
.systemDialog header span {font-size:11px;letter-spacing:1px;color:var(--dim);}
.systemDialog header>button {width:36px;height:36px;background:none;border:0;color:var(--dim);font-size:24px;}
.systemDialogBody {padding:24px;}
.systemDialog>footer {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 24px;border-top:1px solid var(--line-soft);font-size:12px;color:var(--dim);}
.systemDialog>footer button {min-height:36px;background:var(--surface-2);border:1px solid var(--line);color:var(--text);border-radius:6px;padding:8px 12px;}
.systemProjectsDialog {width:min(920px,calc(100vw - 32px));}
.systemCommandSearch {padding:16px 24px;}
body.studio-refined .systemCommandSearch input {width:100%;height:44px;padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--surface-0);color:var(--text);font-size:16px;}
.systemCommandList {max-height:420px;overflow:auto;padding:0 16px 16px;}
body.studio-refined .systemCommand {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;padding:12px;text-align:left;border:0;border-radius:6px;background:none;color:var(--text);}
.systemCommand b {display:block;font-size:14px;font-weight:550;}
.systemCommand small {display:block;font-size:12px;color:var(--dim);margin-top:4px;}
body.studio-refined .systemCommand[aria-selected="true"] {background:var(--surface-3);}
.systemShortcutRow {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0;border-bottom:1px solid var(--line-soft);font-size:13px;}
.systemShortcuts p {font-size:12px;color:var(--dim);line-height:1.6;margin:24px 0 0;}

body[data-interface-density="compact"] {--system-control:32px;}
body.studio-refined[data-interface-density="compact"] .productionSceneHead {padding:16px 24px;}
body.studio-refined[data-interface-density="compact"] .studioCast {padding-block:12px;}

@media(max-width:1450px){
 body.studio-refined #writerFormatRail>button kbd {display:none;}
 body.studio-refined #writerFormatRail>button {padding:8px 6px;}
 body.studio-refined #writerFormatRail>button[data-writer-element="parenthetical"] {font-size:0;gap:0;}
 body.studio-refined #writerFormatRail>button[data-writer-element="parenthetical"] span {font-size:12px;}
 .systemProjectName {max-width:200px;margin-right:8px;}
 body.studio-refined #appUtilityDock>button {display:none;}
 body.studio-refined .shotPrimary {grid-template-columns:48px 72px 148px minmax(120px,1fr) 96px!important;}
 body.studio-refined .shotPrimary [data-shot-field="note"] {grid-column:3/5;grid-row:2;}
 body.studio-refined .shotPrimary .shotBtns {grid-column:5;grid-row:1;}
 body.studio-refined .sceneCardActions {flex-wrap:wrap;justify-content:flex-end;max-width:180px;}
 body.studio-refined .sceneFacts {grid-template-columns:1fr;gap:8px;}
}
@media(max-width:1200px){
 body.studio-refined #writerFormatRail>button,body.studio-refined #writerFormatRail>.studioMoreFormats {display:none;}
 body.studio-refined #writerFormatRail>.studioMobileFormats {display:block;position:relative;}
 .studioMobileFormats>summary {display:flex;align-items:center;gap:12px;min-height:36px;padding:8px;list-style:none;cursor:pointer;font-size:13px;}
 .studioMobileFormats>summary .studioFormatLabel {display:none;}
 .studioMobileFormats>summary svg {width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;}
 .studioMobileFormatsPanel {position:absolute;top:calc(100% + 8px);left:0;right:auto;z-index:250;display:grid;grid-template-columns:1fr;width:248px;max-height:65dvh;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 12px 32px #0008;}
 body.studio-refined #writerFormatRail .studioMobileFormatsPanel button {display:flex;align-items:center;gap:12px;padding:8px 12px;width:100%;height:40px;text-align:left;border:0;border-radius:6px;background:none;color:var(--text);font-size:13px;}
 body.studio-refined #writerFormatRail .studioMobileFormatsPanel button svg {width:18px;height:18px;}
 body.studio-refined #writerFormatRail .studioMobileFormatsPanel button kbd {margin-left:auto;}
 .systemProjectName {min-width:100px;max-width:180px;margin-left:auto;}
 body.studio-refined #workspaceDock {gap:0;padding:0 8px;}
 body.studio-refined #workspaceDock .systemIcon {display:none;}
 body.studio-refined #brand .brandHeading {padding-inline:24px;}
 body.studio-refined #brand .brandLockup>span {font-size:16px;}
 body.studio-refined #writerShortcutHint {display:none;}
 body.studio-refined .studioTransportHint {display:none;}
 body.studio-refined .productionSceneHead {grid-template-columns:24px 32px minmax(0,1fr);gap:12px;padding:20px;}
 body.studio-refined .sceneCardActions {grid-column:3;justify-content:flex-start;max-width:none;}
 body.studio-refined .shotPrimary {grid-template-columns:48px 72px minmax(148px,1fr) 96px!important;}
 body.studio-refined .shotPrimary [data-shot-field="subject"] {grid-column:2/4;grid-row:2;}
 body.studio-refined .shotPrimary [data-shot-field="note"] {grid-column:2/4;grid-row:3;}
 body.studio-refined .shotPrimary .shotBtns {grid-column:4;grid-row:1;}
 body.studio-refined .shotTechnical>div {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.studio-refined .orderTools {align-items:flex-start;flex-wrap:wrap;gap:16px;}
}
@media(max-width:1000px){
 .systemProjectName {display:none;}
}
@media(max-width:900px){
 body.studio-refined {--system-gutter:16px;}
 .systemProjectName {display:none;}
 body.studio-refined :is(#systemProjects,#systemShare) {width:36px;height:36px;padding:8px;gap:0;}
 body.studio-refined :is(#systemProjects,#systemShare) span {display:none;}
 body.studio-refined #appUtilityDock {display:none;}
 body.studio-refined .orderTools {display:grid;grid-template-columns:minmax(0,1fr);}
 body.studio-refined .orderToolsActions {display:flex;flex-wrap:wrap;gap:8px;min-width:0;}
 body.studio-refined .orderToolsActions button {flex:1;}
 body.studio-refined .sceneCardTitle {white-space:normal;overflow-wrap:anywhere;line-height:1.5;}
 body.studio-refined #workspaceDock .workspaceLabel {font-size:12px;}
 body.studio-refined #brand .brandHeading {flex-basis:var(--studio-side);padding-inline:16px;}
 body.studio-refined #sidebar #sideScroll,body.studio-refined #writerDrawer,body.studio-refined #productionDrawer {padding-inline:16px;}
 body.studio-refined #empty .studioHero h2 {font-size:44px;}
 body.studio-refined .studioHero {gap:24px;}
 body.studio-refined .studioHeroCopy>p {font-size:14px;}
 body.studio-refined .recentProjectList {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.studio-refined #insights {padding:16px;}
 body.studio-refined .sceneBlockBody {padding:16px;}
 body.studio-refined .shotPrimary {grid-template-columns:48px 72px minmax(140px,1fr)!important;gap:8px!important;}
 body.studio-refined .shotPrimary .shotBtns {grid-column:1/3;grid-row:4;}
 body.studio-refined .shotPrimary [data-shot-field="subject"],body.studio-refined .shotPrimary [data-shot-field="note"] {grid-column:1/-1;}
 body.studio-refined .shotTechnical {margin-left:0;}
 body.studio-refined .requirementAdd {grid-template-columns:1fr 64px;}
 body.studio-refined .requirementAdd select {grid-column:1/-1;}
}
@media(max-width:700px){
 body.studio-refined {--studio-header:112px;--studio-side:0px;padding-top:112px;}
 body.studio-refined #sidebar header#brand {height:112px;min-height:112px;align-items:flex-start;}
 body.studio-refined #brand .brandHeading {position:absolute;top:16px;left:0;flex-basis:auto;width:auto;padding-inline:16px;}
 body.studio-refined #brand .brandLockup>span {font-size:17px;}
 body.studio-refined #workspaceDock {position:absolute;top:56px;left:8px;right:60px;width:auto;height:56px;display:flex;gap:4px;padding:0;}
 body.studio-refined #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn) {flex:1;min-width:0;height:56px;padding:0 8px;}
 body.studio-refined.splash-home #workspaceDock {right:8px;}
 body.studio-refined.splash-home #workspaceDock #mobileMenuBtn {display:none!important;}
 body.studio-refined #workspaceDock .workspaceLabel {font-size:13px;}
 body.studio-refined #workspaceDock #mobileMenuBtn {position:fixed!important;top:67px!important;right:16px!important;width:36px;height:36px;display:grid;place-items:center;}
 body.studio-refined .studioProjectHome {position:static;margin:0;padding:8px;font-size:12px;}
 .systemGlobalActions {position:absolute;right:12px;top:12px;padding:0;gap:4px;}
 body.studio-refined :is(#systemProjects,#systemShare) {font-size:0;width:36px;height:36px;padding:8px;gap:0;}
 body.studio-refined :is(#systemProjects,#systemShare) span {display:none;}
 body.studio-refined #appUtilityDock {display:none;}
 body.studio-refined #sidebar {width:0;min-width:0;border:0;padding:0;height:calc(100dvh - 112px);}
 body.studio-refined.mobile-menu-open #sidebar {position:fixed;left:0;top:112px;bottom:0;width:min(320px,calc(100vw - 32px));min-width:0;z-index:140;background:var(--panel);border-right:1px solid var(--line);}
 body.studio-refined.mobile-menu-open #sidebar>#mobileDrawer {padding-bottom:24px!important;}
 body.studio-refined #main {width:100%;height:calc(100dvh - 112px);}
 body.studio-refined #empty .studioWelcome {padding:32px 20px;}
 body.studio-refined .studioWelcomeHeading {margin-bottom:24px;}
 body.studio-refined .studioHero {grid-template-columns:1fr;gap:32px;}
 body.studio-refined #empty .studioHero h2 {font-size:44px;}
 body.studio-refined .studioHeroCopy>p {font-size:15px;}
 body.studio-refined .studioHeroActions {gap:8px;}
 body.studio-refined .studioPrimary {font-size:13px;padding-inline:16px;}
 body.studio-refined .studioTextButton {font-size:13px;padding-inline:8px;}
 body.studio-refined .studioDemo {width:100%;}
 body.studio-refined .recentProjectList {grid-template-columns:1fr;}
 body.studio-refined .studioWorkflow {grid-template-columns:1fr;gap:24px;}
 body.studio-refined .studioWorkflow article {padding:0;border:0;}
 body.studio-refined #writerToolbar {padding:8px 12px;gap:8px;min-height:56px;}
 .systemWriterActions {gap:4px;}
 body.studio-refined .systemWriterActions summary {padding:8px;font-size:12px;gap:4px;}
 body.studio-refined #writerExportMenuBtn {width:auto;min-width:64px;padding:8px;font-size:12px;}
 body.studio-refined #writerExportMenuBtn span {display:inline;}
 body.studio-refined #writerExportMenuBtn svg {display:none;}
 body.studio-refined #writerFormatRail .studioMobileFormats>summary {font-size:12px;padding:8px 0;gap:4px;max-width:130px;}
 body.studio-refined #writerFormatRail .studioMobileFormats>summary b {font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
 body.studio-refined #writerPagesView {padding:24px 16px 48px;}
 body.studio-refined #writerStatusBar {padding:4px 12px;gap:4px;}
 body.studio-refined #writerStatusBar #writerStats {font-size:11px;}
 body.studio-refined #writerStatusBar .systemCheckChip {display:none;}
 body.studio-refined #readerBar {padding:16px;gap:12px;}
 body.studio-refined #readerScene {font-size:12px;max-width:80%;}
 body.studio-refined #script {padding:24px 16px 152px;}
 body.studio-refined #script .dlg {padding:12px;margin:24px 0;}
 body.studio-refined #script .action,body.studio-refined #script .words {font-size:calc(var(--reader-font-size,14px) * 1.07143);}
 body.studio-refined #controls {left:12px;right:12px;bottom:12px;gap:8px;padding:12px!important;min-height:80px;}
 body.studio-refined #controls .studioTransportMark,body.studio-refined #controls .studioTransportHint {display:none;}
 body.studio-refined #controls .studioTransportInfo b {font-size:13px;}
 body.studio-refined #controls .studioTransportInfo small {font-size:11px;}
 body.studio-refined #controls .btns {gap:4px;}
 body.studio-refined #playBtn {min-width:96px;font-size:12px;padding:8px;}
 body.studio-refined #stopBtn {min-width:36px;font-size:11px;padding:4px;}
 body.studio-refined #controls .readerTrack {left:12px;right:12px;bottom:4px;}
 body.studio-refined.production-mode #insWrap {inset:112px 0 0;}
 body.studio-refined #insights {padding:16px;}
 body.studio-refined .productionSceneHead {padding:16px;grid-template-columns:24px 24px minmax(0,1fr);}
 body.studio-refined .productionSceneHead .sceneCardMain {grid-column:1/-1;}
 body.studio-refined .productionSceneHead .sceneCardActions {grid-column:1/-1;}
 body.studio-refined .sceneCardActions .orderBtns {margin-left:auto;}
 body.studio-refined .shotSearch {flex-basis:100%;}
 body.studio-refined .shotWorkspaceToolbar {gap:8px;}
 body.studio-refined .shotPrimary {grid-template-columns:40px 64px minmax(128px,1fr)!important;}
 body.studio-refined .shotPrimary select {padding-left:8px;font-size:12px;}
 body.studio-refined .shotReference,body.studio-refined .shotReference label {width:64px;}
 body.studio-refined .shotNo.shotDragHandle {width:40px;gap:4px;}
 body.studio-refined .shotTechnical>div {grid-template-columns:1fr;}
 body.studio-refined .utilityDialogWrap {padding:12px;}
 body.studio-refined :is(.utilityDialog,#pasteScriptDialog) {width:calc(100vw - 24px);max-height:calc(100dvh - 24px);}
 body.studio-refined .utilityDialogHead,body.studio-refined .utilityDialogBody {padding:20px;}
 body.studio-refined .utilityDialogHead h2 {font-size:22px;}
 body.studio-refined .utilityDialogFoot {padding:16px;gap:8px;}
 .systemDialog>header,.systemDialogBody {padding:20px;}
 .systemDialog>footer {padding:16px;gap:8px;flex-wrap:wrap;}
 .systemShortcutRow {align-items:flex-start;gap:16px;font-size:12px;}
 .systemShortcutRow kbd {white-space:normal;text-align:right;}
 .systemCommandList {max-height:50dvh;}
}
}

@media screen {
body.studio-refined .writerSnapshot {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px;}
body.studio-refined .writerSnapshot>span:first-child {display:grid;gap:4px;min-width:0;}
body.studio-refined .writerSnapshot b {font-size:13px;line-height:1.5;}
body.studio-refined .writerSnapshot small {font-size:12px;line-height:1.5;}
body.studio-refined .writerSnapshotActions {display:flex;gap:8px;}
body.studio-refined .writerSnapshotActions button {min-height:36px;font-size:12px;padding:8px;}
body.studio-refined .writerSnapshotActions .writerSnapshotDelete {margin-left:auto;width:36px;}
body.studio-refined .utilityDialog:focus {outline:none;}
body.studio-refined .systemDistribution {margin:0 0 16px;border:1px solid var(--line-soft);border-radius:8px;}
body.studio-refined .systemDistribution>summary {display:flex;align-items:center;gap:16px;min-height:56px;padding:16px;font-size:14px;cursor:pointer;list-style:none;}
body.studio-refined .systemDistribution>summary span {margin-left:auto;font-size:12px;color:var(--dim);}
body.studio-refined .systemDistribution>summary::after {content:'';width:7px;height:7px;border-right:1.5px solid var(--dim);border-bottom:1.5px solid var(--dim);transform:rotate(-45deg);}
body.studio-refined .systemDistribution[open]>summary::after {transform:rotate(45deg);}
body.studio-refined .systemDistribution .callDistribution {margin:0;border:0;border-radius:0;background:none;}
body.studio-refined .callDistribution>header>div>span {display:none;}
body.studio-refined .callDistribution h3 {font-size:16px;letter-spacing:0;text-transform:none;}
body.studio-refined .callSection table {font-size:13px;}
body.studio-refined .callSection :is(th,td) {font-size:12px;line-height:1.5;padding:12px;}
body.studio-refined .callSection table input {font-size:13px;min-height:40px;}
body.studio-refined .directoryGrid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
body.studio-refined .directoryCard {padding:16px;gap:8px;}
body.studio-refined .directoryQuickActions a {font-size:12px;min-height:32px;padding:8px;}
body.studio-refined .scheduleStripActions button {background:var(--surface-2);color:var(--text);font-size:12px;border:1px solid var(--line);border-radius:6px;padding:8px 12px;min-height:36px;}
body.studio-refined .scheduleStripActions {flex-wrap:wrap;gap:8px;}
body.studio-refined #mapEditor {border-radius:12px;}
body.studio-refined .mapEditorToolbar {gap:12px;padding:16px;flex-wrap:wrap;}
body.studio-refined .mapEditorToolbar :is(button,input,select) {font-size:13px;min-height:36px;}
body.studio-refined .mapEditorHead h2 {font-size:22px;}
body.studio-refined :is(.mapEditorHead span,#mapEditorHint) {font-size:12px;line-height:1.5;}
@media(max-width:700px){
 body.studio-refined .systemDistribution>summary {flex-wrap:wrap;gap:8px;}
 body.studio-refined .systemDistribution>summary span {margin:0;flex-basis:100%;}
 body.studio-refined .systemDistribution>summary::after {position:absolute;right:32px;}
 body.studio-refined .directoryGrid,body.studio-refined .locationMapFields,body.studio-refined #contactSheetGrid {grid-template-columns:1fr;}
 body.studio-refined .locationMapCardBody {padding:16px;}
 body.studio-refined .utilityDialogHead,body.studio-refined .utilityDialogBody {padding:20px;}
 body.studio-refined #reportWrap {padding:12px;overflow:auto;}
 body.studio-refined #report {padding:20px;min-height:0;}
 body.studio-refined .wrapSummary {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.studio-refined #mapEditorWrap {padding:12px;}
 body.studio-refined .mapEditorToolbar {padding:12px;gap:8px;}
}
}

@media screen {
body.studio-refined #optSection .optRow {padding-block:12px;gap:12px;}
body.studio-refined #mapEditorHint {white-space:normal;overflow:visible;text-overflow:clip;}
body.studio-refined [data-mobile-production-view] {font-size:12px;}
body.studio-refined .distributionHistory {padding:16px;}
body.studio-refined .distributionHistory summary {font-size:13px;line-height:1.5;}
body.studio-refined .distributionHistory p {display:grid;gap:4px;line-height:1.5;font-size:12px;}
@media(min-width:701px){
 body.studio-refined #script {padding-inline:40px;}
 body.studio-refined #readerBar {padding-inline:40px;}
}
}
