:root{font-family:system-ui,"Yu Gothic UI","Meiryo",sans-serif;color:#e9f0fb;background:#09121f}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;background:#101e30;border-bottom:1px solid #29415b}header strong{font-size:1.35rem;letter-spacing:.14em;color:#8de9ea}header span{margin-left:16px;color:#c1d1e4}header small{color:#9fb0c4}main{display:grid;grid-template-columns:292px minmax(620px,1fr);min-height:calc(100vh - 61px)}aside{padding:16px;background:#101b2a;border-right:1px solid #29415b;overflow:auto}section{background:#172638;border:1px solid #2c435d;border-radius:12px;padding:15px;margin-bottom:14px}h2{font-size:1rem;margin:0 0 13px;color:#9fe4ee}label{display:block;font-size:.84rem;color:#c5d5e8}label input:not([type=file]),select{display:block;width:100%;margin:5px 0 11px;background:#0d1929;color:#fff;border:1px solid #42607b;border-radius:7px;padding:8px;font:inherit}input:focus,select:focus,button:focus-visible{outline:2px solid #69dbe5;outline-offset:2px}.drop{position:relative;display:grid;place-items:center;text-align:center;min-height:78px;border:2px dashed #547594;border-radius:9px;background:#102b3e;color:#d9f5fb;cursor:pointer;padding:8px;margin-bottom:8px}.drop:hover,.drop.over{border-color:#72f4e6;background:#1b4152}.drop input,.button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.filename{font-size:.8rem;overflow-wrap:anywhere;color:#9eb4c8;margin-bottom:12px}.jacket{height:136px;overflow:hidden}.jacket img{max-height:120px;max-width:100%;object-fit:contain}.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hint,.bottom p{font-size:.75rem;line-height:1.5;color:#91a8c0;margin:0}.buttonGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}button,.button{background:#213b54;color:#e8f4fc;border:1px solid #4b7091;border-radius:7px;padding:8px 11px;font:inherit;font-size:.83rem;cursor:pointer;text-align:center}button:hover,.button:hover{background:#2b536e}button.active,.segmented button.active{background:#146d78;color:#fff;border-color:#52d5df}.button{position:relative}#status{font-size:.78rem;color:#a9d4d9;min-height:2.5em}article{padding:16px 20px;min-width:0}.toolbar,.transport{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.toolbar label{display:flex;align-items:center;gap:6px;white-space:nowrap}.toolbar input,.toolbar select{margin:0!important;width:auto!important;min-width:92px}.segmented{display:flex;margin-right:12px}.segmented button{border-radius:0}.segmented button:first-child{border-radius:7px 0 0 7px}.segmented button:last-child{border-radius:0 7px 7px 0}.spacer{flex:1}#noteCount{font-size:.8rem;color:#a8c6d9}#seek{flex:1;min-width:140px}#clock{font-variant-numeric:tabular-nums;font-size:.85rem;color:#9fdee5}.canvasWrap{border:1px solid #38536b;border-radius:12px;overflow:hidden;background:#101b2b}canvas{display:block;width:100%;height:560px;touch-action:none;cursor:crosshair}.bottom{padding:10px 0}.bottom label{display:flex;align-items:center;gap:10px}.bottom input{flex:1}.report{font-size:.82rem;white-space:pre-wrap;line-height:1.5;color:#bdd2e5;max-height:120px;overflow:auto}@media(max-width:900px){main{display:block}aside{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}section{margin:0}article{padding:12px}}@media(max-width:650px){aside{display:block}section{margin-bottom:10px}}

.studioPanel{margin-top:18px}.studioHeading,.studioControls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.studioHeading h2{margin:0;flex:1}.studioControls{margin-top:12px}.studioControls label{max-width:170px}.studioControls input,.studioControls select{margin-bottom:0!important}.studioColumns{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}#studioIssues,#studioTempo{max-height:270px;overflow:auto;display:grid;gap:6px}#studioIssues button,#studioTempo button{text-align:left}#studioSummary{overflow:auto;margin:14px 0}#studioSummary table{width:100%;border-collapse:collapse;font-size:.85rem}#studioSummary th,#studioSummary td{padding:10px;border-bottom:1px solid #39536b;text-align:right}#studioSummary th:first-child,#studioSummary td:first-child{text-align:left}.studioDialog{width:95vw;height:94vh;max-width:none;max-height:none;background:#101e30;color:#e9f0fb;border:1px solid #69dbe5;border-radius:12px}.studioDialog::backdrop{background:#000b}.studioDialog iframe{width:100%;height:calc(100% - 55px);border:0}#studioProposal{font-size:.82rem;color:#9fe4ee}#studioSong,#studioDraft{width:100%;margin:8px 0}button:disabled{opacity:.45;cursor:default}@media(max-width:1000px){.studioColumns{grid-template-columns:1fr}}
/* A quiet editing surface; secondary tools stay closed until needed. */
main{grid-template-columns:260px minmax(0,1fr)}aside{padding:12px}article{padding:16px;max-width:1180px;width:100%;margin:auto;margin-top:0}.studioFold{border:1px solid #2c435d;border-radius:10px;margin-bottom:10px;background:#142235}.studioFold>summary{padding:12px 14px;cursor:pointer;font-size:.85rem;color:#b8dbe5}.studioFold>section{border:0;margin:0;background:transparent;padding:12px}.studioFold section h2[hidden]{display:none}.studioFold .studioHeading:has(h2[hidden]){margin-bottom:0}.studioFold label{margin-bottom:5px}.studioFold input[type=file]{max-width:100%}.editorCue{color:#8faec3;font-size:.78rem;margin:8px 0}#chart{height:clamp(480px,calc(100vh - 265px),900px)}.canvasWrap{max-width:800px;margin:0 auto}.toolbar{gap:6px}.bottom{max-width:800px;margin:auto}.studioPanel{margin-top:0}.transport{padding:8px 0}#studioPlaytest{background:#14616c;border-color:#4cbdc7;white-space:nowrap}#noteCount{margin-left:auto}#headWave{height:150px}aside>.studioFold>section .hint{margin-top:8px}aside>.studioFold>section select{max-width:100%}@media(max-width:900px){main{display:block}aside{display:block;max-width:100%;border-right:0}article{padding:12px}#chart{height:560px}}
.soundToolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 12px;padding:8px 10px;background:#122235;border-radius:8px}.soundToolbar label{display:flex;align-items:center;gap:7px;white-space:nowrap}.soundToolbar input[type=range]{width:90px;margin:0;padding:0}.soundToolbar output{min-width:32px;font-size:.75rem;color:#9bb9cb}.soundToolbar button[aria-pressed=true]{border-color:#4cbdc7;color:#9ff2e9}
.tempoList{display:grid;gap:6px;margin-top:10px}.tempoList p{margin:0;color:#b9dbe4;font-size:.8rem}.tempoRow{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;background:#102235;border:1px solid #35546b;border-radius:7px;font-size:.78rem}.tempoRow button{padding:4px 7px}
.keyRecord{max-width:800px;margin:0 auto 12px;padding:10px 12px;background:#102438;border-color:#315a72}.keyRecordHead,.keyRecordOptions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.keyRecordHead strong{color:#a4e9ed}.keyRecordHead span{font-size:.76rem;color:#a4bace}.keyRecordOptions{margin-top:8px;font-size:.78rem}.keyRecordOptions label{display:flex;align-items:center;gap:5px}.keyRecordOptions input{width:auto!important;margin:0!important}.keyRecord p{font-size:.76rem;color:#bfd7e3;margin:8px 0}.keyRecord #recordKeys{display:flex;gap:5px}.keyRecord #recordKeys b{display:grid;place-items:center;width:33px;height:29px;background:#1c3951;border:1px solid #568299;border-radius:5px}.keyRecord #recordKeys b.down{background:#b03090;color:white;box-shadow:0 0 13px #ed58bf}.keyRecord #recordPreview{display:flex;gap:5px;flex-wrap:wrap;max-height:72px;overflow:auto;margin-top:7px}.keyRecord #recordPreview span{font-size:.72rem;padding:3px 5px;background:#233c50;border-radius:4px}#recordStart{background:#7a275f;border-color:#d450a0}
.inputSettings{margin-top:10px;padding:8px;background:#0d1d2d;border-radius:7px}.inputSettings summary{cursor:pointer;color:#bce5e9}.inputSettings .keyBindings{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}.inputSettings .offsetInput{display:inline-block!important;width:82px!important;margin:0!important}.inputSettings .settingStatus{min-height:1em}
.keyRecord:not([open]){padding:8px 12px}.keyRecord>summary{cursor:pointer;color:#bce5e9;font-size:.8rem}.keyRecord[open]>summary{margin-bottom:8px}
@media(min-width:901px){body{height:100vh;overflow:hidden}main{height:calc(100vh - 61px);min-height:0}aside{height:100%;overflow:auto}article{height:100%;display:flex;flex-direction:column;overflow:hidden;padding:8px 14px}.toolbar,.transport,.soundToolbar,.editorCue,.keyRecord,.bottom,.report{flex:none}.toolbar{margin-bottom:5px}.transport{margin-bottom:5px;padding:3px 0}.soundToolbar{margin-bottom:5px}.editorCue{margin:3px 0}.keyRecord{margin-bottom:5px}.canvasWrap{flex:1;min-height:210px;width:100%;max-width:800px}#chart{height:100%;min-height:210px}.bottom{padding:4px 0}.bottom p{font-size:.69rem}.report{max-height:44px}.studioFold{flex:none}}

/* The first action and recovery from a saved JSON stay visible in the sidebar. */
aside>.studioFold:has(#newSongCreate),#reconnectPanel{background:#192d43;border-color:#3e7795}
aside>.studioFold:has(#newSongCreate)>summary,#reconnectPanel h2{color:#b6f3f4;font-weight:700}
.primaryDrop{min-height:88px;gap:3px;border-color:#66d8dc;background:#133c4c}
.primaryDrop strong{font-size:.96rem}.primaryDrop small{font-size:.72rem;color:#b6d5dd}
.primaryAction{width:100%;background:#147c85;border-color:#75e5e6;font-weight:700;padding:11px}
.primaryAction:hover{background:#1b949d}
#newSongAudioName{color:#d0e9ee;min-height:1.5em}
#reconnectPanel[hidden]{display:none}
.advancedExport{margin-top:9px;color:#a9c9d8;font-size:.78rem}
.advancedExport summary{cursor:pointer;padding:6px 0}
.advancedExport .buttonGrid{padding-top:5px}
#status{overflow-wrap:anywhere}
.workflowGuide{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 11px;margin-bottom:8px;background:#14283b;border:1px solid #345d72;border-radius:9px;font-size:.8rem;color:#afcddd;flex:none}
.workflowGuide strong{color:#e5fbf9;font-size:.87rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workflowGuide span{white-space:nowrap;font-size:.73rem}
.toolbar .noteWidthControl{gap:4px}.toolbar .noteWidthControl input{width:90px!important;min-width:90px}.noteWidthControl output{min-width:31px;font-size:.72rem;color:#b7d9e4}
article>#status{margin:0 0 7px;min-height:0;background:#112b39;border-left:3px solid #59c8cf;border-radius:4px;padding:5px 9px;color:#d5edf0;font-size:.76rem}
@media(max-width:1100px){.workflowGuide{display:block}.workflowGuide span{display:block;white-space:normal;margin-top:3px}}
@media(min-width:901px){.report{max-height:96px}}

@media(min-width:901px){
 body.focusEditor header,body.focusEditor aside,body.focusEditor .workflowGuide,body.focusEditor .editorCue,body.focusEditor .soundToolbar,body.focusEditor .keyRecord{display:none!important}
 body.focusEditor main{display:block;height:100vh;min-height:0}
 body.focusEditor article{height:100vh;max-width:none;padding:8px 12px}
 body.focusEditor .canvasWrap{max-width:760px;min-height:420px}
 body.focusEditor .toolbar{margin-bottom:3px}
 body.focusEditor .transport{margin-bottom:3px}
}
#focusEditor{margin-left:6px;white-space:nowrap;background:#234558}
#focusEditor[aria-pressed=true]{background:#146d78;border-color:#6adbe1}
aside>.editorCue{padding:9px 4px;line-height:1.55}
aside>.keyRecord{max-width:none;margin:0 0 10px}
aside>.soundSettings .soundToolbar{margin:0;padding:10px;gap:8px;align-items:flex-start}
aside>.soundSettings .soundToolbar label{width:100%;justify-content:space-between}
aside>.soundSettings .soundToolbar input[type=range]{width:110px}
.focusTools{justify-content:center;gap:4px;flex-wrap:wrap}
.focusTools .spacer{display:none}
.focusTools button{padding:6px 8px;font-size:.77rem}
.focusTools .segmented{margin-right:5px}
.focusTools #noteCount{margin-left:5px}
.focusTools #focusEditor{margin-left:4px}
.toolbar .zoomControl{gap:3px}.toolbar .zoomControl select{min-width:64px!important;width:64px!important}.toolbar .zoomControl button{padding:4px 6px;min-width:26px;font-size:.92rem;line-height:1.15}
.bpmCandidates{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0 11px}.bpmCandidates:empty{display:none}.bpmCandidates p{width:100%;font-size:.73rem;line-height:1.4;color:#a9cad6;margin:0}.bpmCandidates button{padding:5px 7px;font-size:.71rem}.bpmCandidates button.active{background:#187c83;border-color:#72e4e6}#newAutoBpm,#editAutoBpm{width:100%;margin:2px 0 5px;background:#224b5e}
.singleSubmit{background:#12616b;border-color:#56c9cf;white-space:nowrap;font-weight:600}.singleSubmit:hover{background:#187c85}


/* 2026-11-12: DAW-style editing workspace. Keep the left navigation accessible. */
main{grid-template-columns:232px minmax(0,1fr)}
aside{padding:10px}
article{max-width:1450px}
.editorStage{display:flex;flex:1;min-height:210px;width:100%;min-width:0}
.editorStage>.canvasWrap{flex:1;min-width:0}
.editorRail{display:none}
.studioControls [hidden]{display:none!important}
@media(min-width:901px){
 body.focusEditor header,body.focusEditor .workflowGuide,body.focusEditor .editorCue,body.focusEditor .keyRecord{display:none!important}
 body.focusEditor main{display:grid;grid-template-columns:184px minmax(0,1fr);height:100vh;min-height:0}
 body.focusEditor aside{display:block!important;height:100vh;padding:8px;background:#0d1b2b;overflow:auto;border-right:1px solid #2f536a}
 body.focusEditor aside>.studioFold{margin-bottom:5px}
 body.focusEditor aside>.studioFold>summary{padding:9px 8px;font-size:.75rem;line-height:1.35}
 body.focusEditor aside>.studioFold>section{padding:9px}
 body.focusEditor article{height:100vh;max-width:none;width:100%;padding:7px 10px;min-width:0}
 body.focusEditor .focusTools{justify-content:flex-start;flex-wrap:wrap;flex:none;min-height:33px;margin-bottom:5px}
 body.focusEditor .focusTools #noteCount{margin-left:auto}
 body.focusEditor .editorStage{display:grid;grid-template-columns:clamp(140px,12vw,165px) minmax(0,1fr) clamp(155px,13vw,183px);gap:9px;max-width:1500px;margin:0 auto;min-height:250px;width:100%;flex:1}
 body.focusEditor .editorRail{display:flex;flex-direction:column;gap:6px;min-height:0;overflow:auto;align-items:stretch;background:#12243a;border:1px solid #2c4961;border-radius:8px;padding:10px 8px}
 body.focusEditor .editorRail:before{display:block;font-size:.71rem;font-weight:700;letter-spacing:.08em;color:#97cbd8;margin-bottom:3px}
 body.focusEditor .leftRail:before{content:'ツール / 選択編集'}
 body.focusEditor .rightRail:before{content:'表示 / 操作'}
 body.focusEditor .editorRail button{width:100%;text-align:left;font-size:.77rem;padding:7px 8px;min-height:30px}
 body.focusEditor .editorRail label{display:flex;flex-direction:column;align-items:stretch;gap:4px;white-space:normal;font-size:.75rem;color:#b9d7e9}
 body.focusEditor .editorRail label input,body.focusEditor .editorRail label select{width:100%!important;min-width:0!important;margin:0!important}
 body.focusEditor .editorRail .zoomControl{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;align-items:center;gap:3px}
 body.focusEditor .editorRail .zoomControl select{width:100%!important;min-width:0!important}
 body.focusEditor .editorRail .zoomControl button{text-align:center;width:100%;padding:4px}
 body.focusEditor .editorRail .noteWidthControl input[type=range]{width:100%!important}
 body.focusEditor .editorRail .noteWidthControl output{align-self:flex-end}
 body.focusEditor .canvasWrap{max-width:none!important;min-width:0;min-height:250px;margin:0;width:100%}
 body.focusEditor .bottom{max-width:1500px;width:100%}
 body.focusEditor #chart{min-height:240px}
}
@media(max-width:1100px) and (min-width:901px){
 body.focusEditor main{grid-template-columns:152px minmax(0,1fr)}
 body.focusEditor .editorStage{grid-template-columns:130px minmax(0,1fr) 138px;gap:5px}
 body.focusEditor .editorRail{padding:7px 5px}
}

body.focusEditor .editorRail .zoomControl>span{grid-column:1/-1}

/* Stage navigation keeps project tasks separate from the persistent note lane. */
[data-workspace-hidden]{display:none!important}
.workspaceNav{position:sticky;top:-1px;z-index:2;display:grid;grid-template-columns:.78fr 1fr 1.12fr;gap:3px;background:#0b1827;padding:5px;margin:0 0 12px;border:1px solid #2d465a;border-radius:10px}
.workspaceNav button{min-height:38px;border:0;background:transparent;color:#adbfce;font-weight:600;padding:5px 3px}
.workspaceNav button[aria-pressed=true]{background:#235162;color:#fff;box-shadow:inset 0 -2px #78e4e0}
.workspaceFile{display:block;width:100%;padding:13px 11px;text-align:left;margin:0 0 12px;background:#163d4a;border-color:#548d97}
.workspaceFile strong,.workspaceFile small{display:block}.workspaceFile small{color:#bfdbdf;margin-top:5px;font-size:.72rem;line-height:1.5}
#editorGestureHint{white-space:normal}
@media(min-width:901px){main{grid-template-columns:clamp(268px,23vw,342px) minmax(0,1fr)}}
.editorStage{position:relative}
.workspaceWelcome{position:absolute;inset:0;display:grid;place-content:center;justify-items:start;overflow:auto;gap:12px;padding:clamp(14px,4vw,54px);margin:0;border:1px solid #344f60;border-radius:12px;background:linear-gradient(130deg,#102b3b,#0d1927 74%);color:#e5f3f5}
.workspaceWelcome[hidden]{display:none}
.workspaceWelcome h2{font-size:clamp(1.15rem,2.3vw,1.85rem);color:#edf8f8;margin:0}
.workspaceWelcome p{max-width:34em;margin:0;color:#afc3ce;font-size:.88rem;line-height:1.65}
.workspaceWelcome div{display:flex;gap:7px;flex-wrap:wrap}
.workspaceWelcome button[data-file]{background:#166570;border-color:#56b6be}
#deliveryPanel h3{font-size:.92rem;color:#d8edf0;margin:16px 0 9px}
#deliveryPanel h3:first-of-type{margin-top:0}
#deliveryPanel>button,#deliveryPanel>.buttonGrid{width:100%;margin:5px 0}
#deliveryPanel .advancedExport{margin-top:14px}
aside .editorCue{font-size:.74rem;color:#a2b9c6}

/* A full-height lane alongside the inspector, placement tools and transport. */
@media(min-width:901px) and (orientation:landscape){
 body:not(.focusEditor) article:has(.editorStage){
  display:grid!important;grid-template-columns:minmax(158px,195px) minmax(0,1fr);
  grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:5px 12px;
  align-content:stretch;padding:7px 12px;
 }
 body:not(.focusEditor) article>.workflowGuide{grid-column:1/-1;grid-row:1;margin:0;padding:5px 10px}
 body:not(.focusEditor) article>.toolbar:has(#difficulties){grid-column:1/-1;grid-row:2;margin:0}
 body:not(.focusEditor) article>.editorStage{grid-column:2;grid-row:3/5;min-height:0}
 body:not(.focusEditor) article>.editorStage>.canvasWrap{width:100%;max-width:none;min-height:0}
 body:not(.focusEditor) article>.bottom{grid-column:2;grid-row:5;width:100%;max-width:none}
 body:not(.focusEditor) article>.toolbar:has(#tapTool){
  grid-column:1;grid-row:3;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  flex-wrap:nowrap;min-height:0;overflow:auto;margin:0;padding:8px;gap:5px;
  border:1px solid #294456;border-radius:8px;background:#102131;
 }
 body:not(.focusEditor) article>.toolbar:has(#tapTool) .spacer{display:none}
 body:not(.focusEditor) article>.toolbar:has(#tapTool) button{text-align:left;flex:none;min-height:30px}
 body:not(.focusEditor) article>.toolbar:has(#tapTool) [data-selection-action]:disabled{display:none}
 body:not(.focusEditor) article>.toolbar:has(#tapTool) label{flex-wrap:wrap;justify-content:space-between}
 body:not(.focusEditor) article>.transport{grid-column:1;grid-row:4;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4px;padding:6px;margin:0;background:#102131;border-radius:8px}
 body:not(.focusEditor) article>.transport>*{min-width:0;width:100%;font-size:.76rem}
 body:not(.focusEditor) article>.transport #seek,body:not(.focusEditor) article>.transport #clock{grid-column:1/-1;text-align:center}
 body:not(.focusEditor) article>#status{grid-column:1;grid-row:5;margin:0;max-height:3.3em;overflow:auto}
 body:not(.focusEditor) article>.report:not(:empty){grid-column:1/-1;max-height:64px}
 body:not(.focusEditor) article>.report:empty{display:none}
 body:not(.focusEditor) article>.mobileNavigation{grid-column:1/-1;grid-row:2;justify-self:end;margin:0}
}
@media(min-width:901px) and (orientation:landscape){
 body:not(.focusEditor) article>.toolbar:has(#tapTool){
  display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:max-content;align-content:start;column-gap:4px;
 }
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>button{width:100%;min-width:0;padding:6px;font-size:.77rem;text-align:center}
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>label,
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>#selectTool,
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>#deleteNote{grid-column:1/-1}
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>:is(#tapTool,#holdTool,#selectTool){order:-3}
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>label:has(#snap){order:-2}
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>label.zoomControl{order:-1}
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>label.zoomControl>span{width:100%}
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>label.zoomControl{justify-content:start;gap:3px}
 body:not(.focusEditor) article>.bottom{align-self:center}
 body:not(.focusEditor) article>#status{max-height:2.6em}
}
@media(min-width:901px) and (max-height:700px) and (orientation:landscape){
 body:not(.focusEditor) article>.workflowGuide span{display:none}
}
.workspaceCollapse{display:block;width:100%;text-align:right;background:transparent;color:#a9c5d2;border:0;font-size:.76rem;padding:4px 6px;margin:0 0 4px}
.workspaceCollapse:hover{background:#20384b;color:white}
.workspaceCollapse[hidden]{display:none}
@media(min-width:901px) and (orientation:landscape){
 body.compactInspector main{grid-template-columns:54px minmax(0,1fr)!important}
 body.compactInspector aside{width:54px!important;padding:5px!important;overflow:hidden}
 body.compactInspector aside>:not(.workspaceCollapse){display:none!important}
 body.compactInspector aside>.workspaceCollapse{margin:0;padding:10px 2px;min-height:42px;background:#173449;border:1px solid #365469;text-align:center;font-size:.74rem}
}
.songSheetLink{display:block;color:#8de1df;font-size:.81rem;text-underline-offset:3px;line-height:1.5}
aside>.songSheetLink{margin:0 0 8px}
.dropReady{outline:2px dashed #93f2e3;outline-offset:-5px}
#studioExit{width:min(440px,92vw);color:#e7f2f4;background:#142635;border:1px solid #4b7284;border-radius:12px;padding:22px}
#studioExit::backdrop{background:#03101ccc}
#studioExit h2{font-size:1.2rem;margin:0 0 12px}
#studioExit p{line-height:1.6}
#studioExit div{display:flex;gap:6px;flex-wrap:wrap}
#studioExit [data-close]{background:#146873}

#deliveryPanel .draftSaveControls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 8px;padding:9px 0}
#deliveryPanel .draftSaveControls label{display:grid;gap:3px;margin:0}
#deliveryPanel .draftSaveControls p{grid-column:1/-1;margin:0}

/* Keep mirrored controls visually balanced in the narrow edit rails. */
#rotateSelectionLeft,#rotateSelectionRight{white-space:nowrap;font-size:.75rem;padding-inline:5px}
#studioIssues .regulationIssue{border-color:#b28554;background:#3a2e26}
#studioIssues .regulationIssue:hover{background:#4a3b2f}
﻿
/* Workflow refresh: stable task navigation, uncluttered editing tools and explicit export formats. */
.workspaceNav{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 9px}
.workflowGuide .workspaceNav{position:static;display:flex;gap:4px;flex:none;margin:0}
.workflowGuide .workspaceNav button{min-width:3.55em;padding:5px 12px;min-height:32px}
.workflowGuide #currentProject{min-width:0}
.workflowGuide #editorGestureHint{text-align:right}
.workspaceSectionTitle{padding:9px 10px 11px;margin:0 0 9px;border-bottom:1px solid #355365}
.workspaceSectionTitle h2{margin:0 0 3px;font-size:1.05rem}
.workspaceSectionTitle .hint{color:#bdd0dc}
.workspaceFile:focus-visible,.workspaceNav button:focus-visible,.selectionCommands summary:focus-visible,
.flowExportOptions summary:focus-visible{outline:2px solid #93f4f1;outline-offset:2px}
.flowDeliveryGroup{display:grid;gap:7px;padding-top:12px;margin-top:12px;border-top:1px solid #34556c}
#deliveryPanel .flowDeliveryGroup h3{margin:0}
.flowDeliveryGroup button,#deliveryPanel .advancedExport,#deliveryPanel #validate{width:100%}
#flowSubmitDiff{color:#9df3ee}
.flowExportOptions summary,#deliveryPanel .advancedExport summary{cursor:pointer;font-size:.83rem;color:#d3e8f0;padding:6px 2px}
.flowExportOptions .buttonGrid{margin-top:6px}
.flowFileControl[hidden]{display:none}
.selectionCommands{border:1px solid #35546c;border-radius:8px;background:#142a40;color:#d1e6ee;font-size:.78rem;min-width:0}
.selectionCommands summary{cursor:pointer;padding:7px 8px;white-space:normal}
.selectionCommandGrid,.displayCommandBody{display:grid;gap:4px;padding:0 6px 6px}
.selectionCommandGrid button{white-space:normal;text-align:center!important;padding:5px}
.selectionCommandGrid #deleteNote{color:#ffc6c1}
.displayCommandBody .noteWidthControl{display:flex;white-space:normal;flex-wrap:wrap;align-items:center;gap:4px}
.displayCommandBody .noteWidthControl input[type=range]{width:100%!important;min-width:0}
[data-selection-action]:disabled{display:inline-block!important}
#studioAudit,.flowTrial{width:100%}
.flowTrial{margin-top:4px}
#studioSummary table{font-size:.75rem}
#studioSummary th,#studioSummary td{padding:6px 3px}
#studioSummary th{white-space:nowrap}
@media(min-width:901px){
 body.focusEditor .workflowGuide{display:flex!important;margin-bottom:5px}
 body.focusEditor #editorGestureHint{display:none}
}
@media(min-width:901px) and (orientation:landscape){
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>.selectionCommands{grid-column:1/-1}
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>.selectionCommands .selectionCommandGrid{grid-template-columns:1fr 1fr}
 body:not(.focusEditor) article>.toolbar:has(#tapTool)>.selectionCommands .selectionCommandGrid>:is(#pasteNotes,#mirrorSelection,#deleteNote){grid-column:1/-1}
}
@media(max-width:1100px){
 .workflowGuide:has(.workspaceNav){display:grid;grid-template-columns:1fr;padding:8px}
 .workflowGuide:has(.workspaceNav) #editorGestureHint{text-align:left;margin:0}
}
@media(max-width:900px){
 body:not(:has(.mobileNav)) aside{display:block}
 .workspaceNav button{padding:5px 3px;min-height:40px}
 .workspaceNav{top:0}
}


#tapTool span,#holdTool span{display:block;font-size:.72rem;color:#c5dee6}
#tapTool kbd,#holdTool kbd{display:inline-block;font:inherit;color:#a1e9ec;margin-right:3px}

/* Production menu: four persistent destinations and explicit start actions. */
#productionMenu {scroll-padding-top:9rem}
#productionMenu .workspaceNav {
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:7px;
  top:-1px; z-index:6; margin-bottom:10px; border-color:#385268;
  background:#101d2c; margin-inline:0;
}
#productionMenu .workspaceNav button {
  display:flex; align-items:flex-start; justify-content:center; flex-direction:column;
  text-align:left; min-height:58px; padding:7px 8px; gap:3px;
  border:1px solid #31485b; border-radius:7px; background:#17273a; color:#e1edf5;
}
#productionMenu .workspaceNav button[aria-pressed=true] {
  background:#174451; color:#f4ffff; border-color:#72d6da; box-shadow:inset 3px 0 #72d6da;
}
.workspaceNav button strong,.workspaceNav button small {display:block;line-height:1.3}
.workspaceNav button small {font-size:10px;color:#b6cad8;font-weight:500}
.workspaceSectionTitle {padding:0 1px 8px;margin:0 0 8px}
.workspaceSectionTitle h2 {font-size:1.05rem;margin:0}
.workspaceActions {display:grid;gap:7px;margin:0 0 13px}
.workspaceAction {text-align:left;padding:10px 12px;width:100%;margin:0;min-height:56px;background:#192d41;color:#edf7ff;border:1px solid #405d76}
.workspaceAction strong,.workspaceAction small {display:block;line-height:1.35}
.workspaceAction small {font-size:.72rem;color:#b9d1e0;margin-top:4px}
.workspaceActionPrimary {background:#154653;border-color:#68bfc4}
.workspaceAction:hover {border-color:#7ddfe4;background:#235565}
.workspaceAction:focus-visible {outline:2px solid #a3f4ff;outline-offset:2px}
#productionMenu details.studioFold>summary {min-height:42px;padding-block:11px}
.workspaceSavePanel>summary[hidden] {display:none}
.workspaceSavePanel h3 {font-size:.9rem;color:#e5f1fb}
.workspaceSavePanel button {max-width:100%;white-space:normal}
.workspaceAdvanced>div {padding:0 5px 5px}
