/* Intrinsic rows prevent a short editor from letting notes spill into its action toolbar. */
:root{--control-height:34px;--editor-piano-height:126px;--notes-height:30px;--panel-gap:12px}
html[data-ui-density=compact]{--control-height:30px;--editor-piano-height:110px;--notes-height:28px;--panel-gap:10px}
.density-toggle{display:inline-flex;align-items:center;gap:2px;background:#eaf0e0;border:1px solid #d6e0c9;border-radius:8px;padding:3px;flex-shrink:0}
.density-toggle button{border:0;background:transparent;color:#76866b;font-size:11px;line-height:1.4;padding:5px 11px;border-radius:5px;min-height:26px;white-space:nowrap}
.density-toggle button.active{background:#fff;color:#3d5b2d;box-shadow:0 1px 4px #3147221a}
header{gap:14px;min-width:0}header>#breadcrumb{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}header>.header-tools{flex-shrink:0;margin-left:0!important}
.composer-workspace{display:grid!important;grid-template-rows:minmax(min-content,.95fr) minmax(228px,1fr)!important;gap:var(--panel-gap)!important;align-content:start;overflow:auto!important;min-height:0;scrollbar-gutter:stable;padding-right:2px}
.compact-editor{display:grid!important;grid-template-rows:auto auto auto auto!important;align-content:start;align-items:start;min-height:min-content!important;height:auto;overflow:visible!important;gap:10px!important;padding:16px!important}
.compact-editor>.topline{display:flex!important;min-height:18px;flex-shrink:0}.compact-editor>.topline h2{font-size:12px;line-height:1.5;margin:0}.compact-editor>.topline .chip{display:none!important}
#freeDraft.compact-draft{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(155px,23%,235px)!important;grid-template-rows:var(--editor-piano-height) minmax(var(--notes-height),auto)!important;grid-template-areas:'piano result' 'notes result';gap:10px 16px!important;flex:none!important;min-height:0!important;height:auto!important;overflow:visible!important;align-items:stretch}
.compact-draft>.free-piano-scroll{grid-area:piano!important;margin:0!important;height:var(--editor-piano-height)!important;min-height:0!important;overflow-x:auto;overflow-y:hidden;padding:0 0 5px!important;align-self:stretch}
.compact-draft .free-piano-track{height:100%!important;min-height:0!important}.compact-draft .free-key{height:100%!important;min-height:0!important}.compact-draft .free-key.black{height:61%!important;min-height:0!important}
#freeDraft>.selected-notes{grid-area:notes!important;display:flex!important;align-items:flex-start!important;align-content:flex-start;flex-wrap:wrap!important;gap:6px!important;margin:0!important;padding:3px 0 5px!important;min-height:var(--notes-height)!important;max-height:76px;height:auto!important;overflow:auto!important;line-height:1.4;box-sizing:border-box}
#freeDraft>.selected-notes .chip{display:inline-flex!important;align-items:center;flex:0 0 auto;font-size:11px!important;line-height:1.4!important;padding:3px 8px!important;margin:0!important;min-height:22px;white-space:nowrap;border-radius:5px;box-sizing:border-box}
.compact-draft>.recognition{grid-area:result!important;position:relative;min-height:0;max-height:calc(var(--editor-piano-height) + 86px);height:auto;overflow:auto;padding:12px!important;align-self:stretch;display:flex;flex-direction:column;gap:7px}
.compact-draft .recognition .eyebrow{font-size:9px!important;letter-spacing:.3px;margin:0!important;line-height:1.5}.compact-draft .recognized-name{font-size:30px!important;line-height:1.2;margin:0!important}.compact-draft .recognition .flex{gap:6px;align-items:flex-start}.compact-draft .candidate{padding:5px 8px!important;font-size:12px!important;line-height:1.5}.compact-draft .candidate small{font-size:9px!important;line-height:1.4}
.compact-editor>.editor-action-row{position:relative!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;margin:0!important;padding:0!important;min-height:var(--control-height)!important;flex-shrink:0}
.compact-editor>.editor-action-row:last-child{padding-top:10px!important;border-top:1px solid var(--line);min-height:calc(var(--control-height) + 11px)!important}
.icon-action,.editor-action-row .icon-action,.transport-row .icon-action{display:inline-flex!important;align-items:center;justify-content:center;gap:6px!important;min-height:var(--control-height)!important;min-width:var(--control-height)!important;padding:6px 9px!important;line-height:1.25!important;white-space:nowrap;vertical-align:middle;box-sizing:border-box}
.icon-action svg{width:16px!important;height:16px!important;flex-shrink:0}.icon-action .action-caption{font-size:11px!important;line-height:1.4;letter-spacing:0!important}.icon-action.with-caption{padding-left:10px!important;padding-right:10px!important}
.editor-action-row #commitTarget{position:static;flex:0 1 auto;font-size:11px!important;line-height:1.6;white-space:normal;color:#718166;margin:0 0 0 3px;max-width:100%}
.compact-timeline{display:grid!important;grid-template-rows:auto auto minmax(86px,1fr) auto!important;align-items:start;gap:10px!important;min-height:228px!important;height:auto;overflow:visible!important;margin:0!important;padding:16px!important}
.compact-timeline>.topline{display:flex!important;min-height:18px}.compact-timeline>.topline h2{font-size:12px!important;margin:0}.compact-timeline .topline>.chip{font-size:9px;white-space:nowrap}
.timeline-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:12px!important;width:100%;min-width:0}
.timeline-toolbar .composer-controls{display:flex!important;flex-wrap:wrap;gap:12px!important;align-items:flex-end;min-width:0;width:auto;flex:1 1 280px}
label[data-iconified]{min-width:0}.composer-controls label[data-iconified]{display:flex;flex-direction:column;align-items:flex-start;gap:4px!important;flex:0 0 auto;font-size:10px}
.field-caption{display:none;font-size:10px;line-height:1.4;color:#75856b;white-space:nowrap}
html[data-ui-density=detailed] label[data-iconified]>.field-glyph{display:none!important}html[data-ui-density=detailed] label[data-iconified]>.field-caption{display:block}
html[data-ui-density=compact] label[data-iconified]>.field-caption{display:none}html[data-ui-density=compact] label[data-iconified]>.field-glyph{display:inline-flex}
html[data-ui-density=compact] .composer-controls label[data-iconified]{flex-direction:row;align-items:center;gap:5px!important}
.timeline-toolbar .composer-controls input,.timeline-toolbar .composer-controls select{margin:0!important;font-size:11px!important;padding:6px 8px!important;min-height:30px;max-width:100%;width:70px!important;line-height:1.4}
.timeline-toolbar .composer-controls label:nth-child(2) select{width:62px!important}.timeline-toolbar .composer-controls label:nth-child(3) select{width:90px!important}
.timeline-toolbar .transport-row{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;margin:0!important;padding:0;flex:0 1 auto;min-width:0;max-width:100%}
.transport-row label{font-size:10px!important;line-height:1.5}.transport-row label.flex{gap:5px}.transport-row label select{width:96px!important;max-width:100%;min-height:30px;font-size:10px!important;padding:5px 7px!important;line-height:1.5}
.transport-row input[type=checkbox]{margin:0!important;flex:0 0 auto}
.horizontal-timeline{min-height:86px!important;height:100%;min-width:0;align-self:stretch;margin:0;overflow-x:auto;overflow-y:hidden;padding:0 0 7px!important}
.horizontal-timeline .free-bar{height:100%;min-height:82px;gap:7px}.horizontal-timeline .bar-number{height:24px!important;min-height:24px!important;line-height:1.3;font-size:13px!important;flex-shrink:0}
.horizontal-timeline .bar-steps{min-height:0;overflow:hidden}.horizontal-timeline .timeline-cell{min-height:50px!important;padding:8px!important;gap:3px;overflow:auto}.horizontal-timeline .timeline-cell strong{font-size:17px!important;line-height:1.3}.horizontal-timeline .timeline-cell small,.horizontal-timeline .timeline-cell span{font-size:9px!important;line-height:1.5}
.timeline-more{max-height:130px!important;overflow:auto;min-height:20px;padding:0!important;margin:0!important}.timeline-more .flex{gap:8px!important;flex-wrap:wrap!important;margin-top:8px!important;overflow:visible!important}.timeline-more summary{min-height:20px;padding:3px 1px!important;line-height:1.3;letter-spacing:0;font-size:11px!important}
html[data-ui-density=detailed] .timeline-more summary{font-weight:500}.toolbar-fields label[data-iconified]{display:flex;align-items:center;gap:7px}.toolbar-fields label[data-iconified]>.field-caption{font-size:10px}.toolbar-fields select{font-size:11px!important;min-height:30px;padding:5px 8px!important}
.lab-stage{gap:12px!important;overflow:auto!important}.lab-formula{height:auto!important;min-height:30px;max-height:90px;padding-bottom:2px;gap:6px}.lab-formula>span{line-height:1.5}.lab-instrument{flex:1 0 105px!important;min-height:105px!important;max-height:240px}.lab-summary{flex-wrap:wrap;gap:10px}.compact-actions{gap:7px!important}.chord-check{gap:10px;padding-top:10px;align-items:center}
html[data-ui-density=detailed] .lab-detail .detail-copy{max-height:98px}.lab-detail .detail-copy p{font-size:12px;line-height:1.8}.field-glyph{line-height:1;min-width:14px}.field-glyph svg{vertical-align:middle}
.window-actions .icon-action{min-width:26px!important;min-height:26px!important;padding:4px!important}.window-actions .icon-action svg{width:13px!important;height:13px!important}
.resume-learning.legacy-resume{max-width:260px;min-width:130px;gap:10px;align-items:center;padding:10px 15px;font-size:11px;z-index:19}.legacy-resume .dock-copy{display:flex!important;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;max-width:205px}.dock-copy b{font-size:11px;font-weight:600;line-height:1.4;white-space:nowrap}.dock-copy small{display:block!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--muted);line-height:1.4}.legacy-lab-launcher{min-height:40px}.legacy-lab-launcher>span{font-size:11px!important}
html[data-ui-density=compact] .compact-editor{gap:8px!important;padding:14px!important}html[data-ui-density=compact] .compact-timeline{gap:8px!important;padding:14px!important;min-height:210px!important}html[data-ui-density=compact] .compact-draft .recognition .eyebrow{font-size:8px!important}html[data-ui-density=compact] .compact-draft .candidate small{font-size:8px!important}html[data-ui-density=compact] .compact-draft>.recognition{gap:5px;padding:10px!important}html[data-ui-density=compact] .timeline-toolbar .composer-controls{gap:9px!important}
html[data-ui-density=detailed] .compact-draft .recognition .hint{font-size:10px;line-height:1.6;margin:0}
.embedded .lab-stage{gap:10px!important}.embedded .lab-instrument{min-height:88px!important;flex-basis:88px!important}.embedded .compact-actions{flex-wrap:wrap}.embedded .lab-summary h1{font-size:28px!important}.embedded .toolbar-fields label[data-iconified]>.field-caption{font-size:9px}.embedded .toolbar-fields select{font-size:10px!important;min-height:26px;padding:4px 6px!important}.embedded .icon-action{min-height:28px!important;padding:5px 7px!important}.embedded .icon-action .action-caption{font-size:10px!important}.embedded .lab-detail .detail-copy{max-height:75px}.embedded .lab-detail .detail-copy p{font-size:10px}.embedded .chord-check>.btn{max-width:100%}
@media(min-width:1101px) and (min-height:850px){:root{--editor-piano-height:160px}html[data-ui-density=compact]{--editor-piano-height:146px}}
@media(max-height:740px) and (min-width:701px){:root{--editor-piano-height:104px}html[data-ui-density=compact]{--editor-piano-height:94px}.compact-editor{gap:8px!important;padding:13px!important}.compact-timeline{min-height:212px!important;padding:13px!important;gap:8px!important}.composer-workspace{grid-template-rows:minmax(min-content,.9fr) minmax(212px,1fr)!important}}
@media(max-width:1000px){.timeline-toolbar .transport-row{flex-basis:100%}.compact-timeline{min-height:250px!important}#freeDraft.compact-draft{grid-template-columns:minmax(0,1fr) 170px!important;gap:10px 12px!important}.density-toggle button{font-size:10px;padding:5px 9px}}
@media(max-width:700px){:root{--editor-piano-height:105px;--control-height:32px;--notes-height:29px;--panel-gap:10px}html[data-ui-density=compact]{--editor-piano-height:92px;--control-height:29px;--notes-height:28px}header{gap:9px!important;padding:0 12px!important;justify-content:space-between}header>#breadcrumb{display:none!important}.header-tools{margin-left:auto!important;gap:10px!important}.header-tools a{font-size:10px!important}.density-toggle{padding:3px;border-radius:7px}.density-toggle button{padding:4px 10px;min-height:25px;font-size:10px}main.tool-page{padding-left:9px!important;padding-right:9px!important;gap:9px!important}.workspace-modebar{flex-wrap:wrap;min-height:32px;gap:6px!important}.workspace-modebar .workspace-title{min-width:80px}.workspace-modebar button{min-height:29px}.composer-workspace{grid-template-rows:minmax(min-content,.9fr) minmax(232px,1fr)!important;gap:var(--panel-gap)!important;padding-right:2px}.compact-editor{gap:9px!important;padding:12px!important}.compact-editor>.topline{display:flex!important;min-height:16px}.compact-editor>.topline h2{font-size:11px}.compact-timeline{gap:9px!important;min-height:232px!important;padding:12px!important}.compact-timeline>.topline{display:flex!important}.compact-timeline>.topline .chip{display:none!important}#freeDraft.compact-draft{grid-template-columns:minmax(0,1fr) 115px!important;gap:9px 9px!important}.compact-draft>.recognition{padding:9px!important;gap:6px;max-height:calc(var(--editor-piano-height) + 85px)}.compact-draft .recognized-name{font-size:27px!important}.compact-draft .recognition .eyebrow{font-size:8px!important;line-height:1.5}.compact-draft .candidate{font-size:10px!important;padding:4px 6px!important}.compact-draft .candidate small{font-size:8px!important}.compact-editor>.editor-action-row{gap:7px!important;flex-wrap:wrap!important}.compact-editor>.editor-action-row:last-child{padding-top:9px!important}.icon-action,.editor-action-row .icon-action,.transport-row .icon-action{padding:5px 7px!important;gap:5px!important;min-height:var(--control-height)!important;min-width:var(--control-height)!important}.icon-action.with-caption{padding-left:8px!important;padding-right:8px!important}.icon-action svg{width:15px!important;height:15px!important}.icon-action .action-caption{font-size:10px!important;line-height:1.4}.editor-action-row #commitTarget{font-size:10px!important;margin-left:2px}#freeDraft>.selected-notes{gap:5px!important;padding:3px 0 5px!important;max-height:72px}#freeDraft>.selected-notes .chip{font-size:10px!important;padding:3px 7px!important;min-height:21px}.timeline-toolbar{gap:9px!important}.timeline-toolbar .composer-controls{width:100%;flex:1 1 100%;gap:9px!important;justify-content:space-between;align-items:flex-end}.composer-controls label[data-iconified]{gap:4px!important}.field-caption{font-size:9px}.timeline-toolbar .composer-controls input,.timeline-toolbar .composer-controls select{width:57px!important;font-size:10px!important;min-height:29px;padding:5px 6px!important}.timeline-toolbar .composer-controls label:nth-child(2) select{width:49px!important}.timeline-toolbar .composer-controls label:nth-child(3) select{width:78px!important}.timeline-toolbar .transport-row{width:100%;gap:6px!important;flex-wrap:wrap!important}.transport-row label{font-size:9px!important}.transport-row label select{width:82px!important;font-size:9px!important;padding:4px 6px!important;min-height:29px}.horizontal-timeline{min-height:80px!important}.horizontal-timeline .timeline-cell strong{font-size:16px!important}.horizontal-timeline .timeline-cell small,.horizontal-timeline .timeline-cell span{font-size:8px!important}.timeline-more{max-height:115px!important}.timeline-more .flex{flex-wrap:wrap!important;gap:6px!important}.timeline-more summary{font-size:10px!important}.toolbar-fields{gap:8px}.toolbar-fields label[data-iconified]{gap:5px}.toolbar-fields label[data-iconified]>.field-caption{font-size:9px}.toolbar-fields select{font-size:10px!important;min-height:28px;padding:4px 6px!important}.lab-stage{gap:10px!important}.lab-summary h1{font-size:29px}.lab-summary .compact-actions{gap:5px!important}.lab-instrument{min-height:95px!important;flex-basis:95px!important}.chord-check{gap:9px}.legacy-resume .dock-copy{max-width:150px}.resume-learning.legacy-resume{max-width:213px;min-width:110px;gap:8px;padding:9px 12px}.legacy-resume .dock-copy b{font-size:10px}.legacy-resume .dock-copy small{font-size:9px}.floating-launcher.legacy-lab-launcher{padding:10px 12px;min-height:40px}.legacy-lab-launcher>span{font-size:10px!important}html[data-ui-density=compact] .compact-editor{padding:11px!important;gap:8px!important}html[data-ui-density=compact] .compact-timeline{padding:11px!important;gap:8px!important;min-height:210px!important}html[data-ui-density=compact] .composer-workspace{grid-template-rows:minmax(min-content,.9fr) minmax(210px,1fr)!important}html[data-ui-density=compact] .timeline-toolbar .composer-controls{gap:7px!important}html[data-ui-density=compact] .timeline-toolbar .composer-controls input,html[data-ui-density=compact] .timeline-toolbar .composer-controls select{width:47px!important}html[data-ui-density=compact] .timeline-toolbar .composer-controls label:nth-child(2) select{width:39px!important}html[data-ui-density=compact] .timeline-toolbar .composer-controls label:nth-child(3) select{width:66px!important}.embedded #freeDraft.compact-draft{grid-template-columns:minmax(0,1fr) 110px!important}.embedded .toolbar-fields{gap:6px}.embedded .lab-stage{padding:10px!important}.embedded .icon-action .action-caption{font-size:9px!important}}
@media(max-width:359px){#freeDraft.compact-draft{grid-template-columns:minmax(0,1fr) 103px!important;column-gap:8px!important}.compact-draft>.recognition{padding:7px!important}.timeline-toolbar .composer-controls{gap:6px!important}.field-caption{font-size:8px}.timeline-toolbar .composer-controls input,.timeline-toolbar .composer-controls select{width:51px!important}.timeline-toolbar .composer-controls label:nth-child(2) select{width:43px!important}.timeline-toolbar .composer-controls label:nth-child(3) select{width:72px!important}.resume-learning.legacy-resume{max-width:185px}.legacy-resume .dock-copy{max-width:129px}}
/* Each panel must cover its intrinsic content even when the viewport needs scrolling. */
.composer-workspace{grid-template-rows:minmax(min-content,.95fr) minmax(min-content,1fr)!important}
.compact-timeline{min-height:min-content!important}
html[data-ui-density=compact] .compact-timeline{min-height:min-content!important}
@media(max-height:740px) and (min-width:701px){.composer-workspace{grid-template-rows:minmax(min-content,.9fr) minmax(min-content,1fr)!important}}
@media(max-width:700px){.composer-workspace,html[data-ui-density=compact] .composer-workspace{grid-template-rows:minmax(min-content,.9fr) minmax(min-content,1fr)!important}}

html[data-ui-density=compact] .timeline-cell small{display:none!important}
@media(max-width:700px){.compact-draft .recognized-name{font-size:21px!important;overflow-wrap:anywhere}.compact-draft .recognition .hint{font-size:9px!important}}
/* Keep the page navigation outside the embedded tool at every breakpoint. */
body.embedded>aside,body.embedded>.shell>header,body.embedded>.shell>footer{display:none!important}
