/* Arrangement above; one interchangeable piano / note editor below. */
body.score-editing #workspace .phone-controls,body.score-editing #scoreFlow,body.score-editing #precisionTools,body.score-editing #blockPositionControls{display:none!important}#studioTopbar{flex:none;z-index:22;background:#fafafa;border-bottom:1px solid #d2d5da;color:#1b2530}#studioMainTools,#studioEditTools{display:flex;align-items:center;gap:6px;min-height:38px;padding:4px 10px;flex-wrap:wrap}#studioEditTools{border-top:1px solid #e2e5e8;min-height:34px}#studioEditTools[hidden]{display:none!important}#studioTopbar .transport{display:flex;align-items:center;gap:4px}#studioTopbar button,#studioTopbar select,#studioTopbar input{font-size:12px;min-height:30px;height:30px;padding:4px 8px;margin:0;border-radius:4px}#studioTopbar label{display:flex;align-items:center;gap:5px;font-size:11px;color:#555;margin:0;white-space:nowrap}#studioTopbar select{width:auto;max-width:145px;font-size:12px}#studioTopbar input{width:65px;font-size:12px}body.score-editing #studioTopbar .icon-control{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:4px!important;font-size:0!important}body.score-editing #studioTopbar .icon-control::before{width:18px;height:18px}body.score-editing #studioTopbar #record{width:auto!important;min-width:84px!important;font-size:12px!important;padding:5px 12px!important;background:#111;color:white}body.score-editing #studioTopbar #record::before{display:none}body.score-editing #studioTopbar #record[aria-pressed=true]{background:#000000}#studioMainTools #flowShare{margin-left:auto!important}#studioMainTools #recordpulse{font-size:11px;white-space:nowrap}#studioEditTools #selectedLength{padding:0;border:0;flex:none;gap:6px}#studioEditTools #selectedLength select,#studioEditTools #selectedLength button{min-height:30px;height:30px;font-size:12px}#studioEditTools #zoomTools{margin-left:auto;gap:3px}#studioEditTools #zoomTools button{width:30px;min-width:30px;min-height:30px;height:30px;font-size:18px;padding:2px}#studioEditTools #expandPart{min-height:30px;font-size:12px}#studioEditTools #zoomLabel{font-size:11px}#studioEditTools #convertrecording{min-height:30px;font-size:12px}body.score-editing #trackstudio{padding:0 8px 4px}body.score-editing .phone-navigation{min-height:28px;height:28px;font-size:11px;flex:none}body.score-editing .phone-navigation button{min-height:26px;height:26px;font-size:19px}#phoneSeek input{min-height:24px!important}body.score-editing #musicworkspace{flex:1;min-height:100px;grid-template-columns:190px minmax(0,1fr);gap:7px}body.score-editing #mainmusic{height:100%;min-height:0;overflow:auto;background:#f5f6f8;border:1px solid #d3d6da;border-radius:4px}#arrangementOverview{min-height:100%;position:relative;background:#f8f9fb}.arrangement-ruler{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:160px minmax(0,1fr);height:28px;background:#e8ebef;border-bottom:1px solid #cbd1d8;color:#475569;font-size:11px}.arrangement-ruler>span{padding:7px 10px}.arrangement-ruler>div{position:relative;min-width:0}.arrangement-ruler>div>span{position:absolute;top:0;padding:7px 5px;border-left:1px solid #b5bec9;height:100%}.arrangement-row{display:grid;grid-template-columns:160px minmax(0,1fr);width:100%;padding:0;border:0;border-bottom:1px solid #cfd7e0;border-radius:0;text-align:left;background:#fff;min-height:76px;overflow:hidden}.arrangement-row:hover{background:#f0f5fb}.arrangement-row.selected-arrangement{background:#eaf0fa;box-shadow:inset 3px 0 #315c9c}.arrangement-part{display:flex;justify-content:center;flex-direction:column;gap:5px;padding:10px;min-width:0;border-right:1px solid #ccd3dc}.arrangement-part strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.arrangement-part small{font-size:10px;color:#657387}.arrangement-lane{display:block;position:relative;min-width:0;min-height:76px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100% / var(--arrangement-bars) - 1px),#b8c6d7 calc(100% / var(--arrangement-bars) - 1px),#b8c6d7 calc(100% / var(--arrangement-bars))),repeating-linear-gradient(0deg,transparent 0,transparent 17px,#dfe6ef 18px)}.overview-note{position:absolute;display:block;height:5px;border-radius:1px;pointer-events:none;opacity:.85}.empty-arrangement{font-size:11px;color:#8693a4;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.selected-arrangement .arrangement-lane{background-color:#edf4ff}body.score-editing #scoredock{padding:0!important;max-height:74dvh;overflow:visible;flex:none;position:static!important;border:0;box-shadow:none;background:#fff}#studioDivider{height:7px;cursor:ns-resize;touch-action:none;border-block:1px solid #c9ced4;background:#e5e8ec;position:relative}#studioDivider::after{content:'';position:absolute;width:32px;height:2px;left:calc(50% - 16px);top:2px;background:#8e98a5;border-radius:2px}#studioDivider:focus-visible{outline:2px solid #315c9c;outline-offset:-2px}#studioPanelTabs{display:flex;align-items:center;gap:4px;padding:3px 8px;min-height:32px;border-bottom:1px solid #d6dbe1;background:#eef0f3}#studioPanelTabs button{min-height:26px;padding:4px 12px;font-size:12px;border:1px solid transparent;border-radius:4px;background:transparent}#studioPanelTabs button[aria-pressed=true]{background:#fff;border-color:#bfc7d1;box-shadow:0 1px 2px #0001}#studioPanelTabs #pianotoggle{display:none}#studioPanelTabs #studioHidePanel{margin-left:auto;color:#666;font-size:11px}#studioPanelTabs .panel-part-name{font-size:11px;font-weight:600;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 10px;color:#657080;order:3}#studioPanelTabs #showblocks{order:1}#studioPanelTabs #shownotes{order:2}#studioPanelTabs #studioHidePanel{order:4}#studioPane{height:var(--studio-panel-height,200px);min-height:0;display:flex;flex-direction:column;overflow:hidden}#studioPane[hidden]{display:none!important}#studioDetailEditor{height:100%;min-height:0;overflow:hidden}#studioDetailEditor[hidden]{display:none!important}body.score-editing #studioDetailEditor #centralblocks{height:100%;overflow:auto}body.score-editing #studioDetailEditor #centralnotation{height:100%;overflow:auto;display:flex;align-items:flex-start}body.score-editing #studioDetailEditor #centralnotation[hidden]{display:none!important}body.score-editing #studioDetailEditor #centralnotation .part-lane{width:100%;min-height:0}body.score-editing #studioDetailEditor #centralnotation svg{height:auto;max-height:none;width:calc(100% * var(--score-zoom,1));min-width:600px}body.score-editing #studioPane #pianowrap{display:flex;flex-direction:column;min-height:0;flex:1;padding:0 8px!important;border:0}body.score-editing #studioPane #pianowrap[hidden]{display:none!important}body.score-editing #studioPane .piano-controls{min-height:27px;height:27px;flex:none;padding:2px 0;margin:0;font-size:11px}body.score-editing #studioPane .piano-controls #dockpartname{font-size:11px}body.score-editing #studioPane .piano-controls .octave-controls .icon-control{height:25px!important;min-height:25px!important;width:30px!important;min-width:30px!important;padding:2px!important}body.score-editing #studioPane .piano-scroll{flex:1;min-height:0;display:flex}body.score-editing #studioPane .piano{height:100%!important;min-height:0!important;margin:0;flex:1;min-width:800px}body.score-editing #studioPane .piano-shortcut-hint{height:28px;min-height:28px;flex:none;padding:2px 0;font-size:10px}body.score-editing #studioPane .piano-shortcut-hint button{height:24px;min-height:24px;font-size:18px}body.score-editing #studioPane .key .pitchname{font-size:11px}body.score-editing #studioPane .key .typingname{font-size:9px!important}#studioPane #backingdock{flex:none;max-height:45px;overflow:hidden}#workspace[data-expanded=true] #scoredock{display:block!important}body.score-editing #tracklist{gap:5px}body.score-editing #tracklist .trackchip{padding:4px;margin:0}body.score-editing #tracklist .part-order{padding:2px;min-height:26px}body.score-editing #tracklist .part-strip{padding:2px;gap:4px}body.score-editing #tracklist .inline-part-name input{max-width:106px;font-size:12px;padding:4px;min-height:28px}body.score-editing #tracklist .icon-control{width:28px!important;min-width:28px!important;min-height:28px!important;height:28px!important;padding:3px!important}body.score-editing #tracklist [data-track]{flex:1!important;width:auto!important;min-height:35px!important;padding:3px!important}body.score-editing #partsClose{min-height:28px;padding:4px 10px;font-size:11px}
@media(max-width:1000px){#studioMainTools{gap:5px;padding:4px 7px}#studioMainTools #flowShare{margin-left:0!important}#studioMainTools label{font-size:10px}#studioMainTools select{max-width:120px}#studioEditTools{gap:5px;padding:3px 7px}.arrangement-ruler,.arrangement-row{grid-template-columns:130px minmax(0,1fr)}body.score-editing #workspace[data-layers=open] #tracklist{width:min(230px,80vw)}body.score-editing #musicworkspace{min-height:90px}}
@media(max-width:599px){#studioMainTools{gap:4px;min-height:36px}#studioMainTools button,#studioMainTools select,#studioMainTools input{font-size:11px;min-height:32px;height:32px}body.score-editing #studioTopbar .icon-control{min-width:32px!important;width:32px!important;height:32px!important;min-height:32px!important}#studioMainTools label{gap:3px}#studioMainTools #flowSound{max-width:105px}#studioMainTools #recordhand{max-width:108px}#studioMainTools #recordfrombar{width:43px}#studioEditTools{min-height:34px;gap:5px}#studioEditTools label{font-size:10px}#studioEditTools select,#studioEditTools input{font-size:12px;max-width:100px}#studioEditTools #selectedLength{flex-wrap:nowrap}#studioEditTools #selectedLength select{max-width:100px}#studioPanelTabs{padding:3px 5px;gap:2px}#studioPanelTabs button{font-size:12px;min-height:30px;padding:4px 9px}#studioPanelTabs .panel-part-name{max-width:90px;padding:0 5px;font-size:10px}#studioPanelTabs #studioHidePanel{padding:4px 6px;font-size:10px}.arrangement-ruler,.arrangement-row{grid-template-columns:105px minmax(0,1fr)}.arrangement-part{padding:7px}.arrangement-part strong{font-size:12px}.arrangement-part small{font-size:9px}.arrangement-row,.arrangement-lane{min-height:70px}.empty-arrangement{font-size:10px}.arrangement-ruler>span{font-size:10px;padding-left:7px}body.score-editing #trackstudio{padding:0 5px 3px}body.score-editing #studioPane #centralnotation svg{min-width:440px}body.score-editing #studioPane .piano{width:800px!important;flex:none}}
@media(max-height:550px) and (orientation:landscape){#studioMainTools{padding:2px 6px;min-height:32px}#studioEditTools{padding:2px 6px;min-height:30px}#studioMainTools label,#studioEditTools label{font-size:10px}#studioMainTools button,#studioMainTools select,#studioMainTools input{min-height:28px;height:28px}#studioMainTools #flowShare{font-size:10px}#studioPanelTabs{min-height:28px;padding:1px 5px}#studioPanelTabs button{min-height:25px;height:25px;font-size:11px}.arrangement-row,.arrangement-lane{min-height:64px}body.score-editing #studioPane .piano-controls{height:24px;min-height:24px}}
#studioDetailEditor .central-grid{background:repeating-linear-gradient(to bottom,#fff 0,#fff calc(var(--block-row-height,24px) - 1px),#e3e8ef calc(var(--block-row-height,24px) - 1px),#e3e8ef var(--block-row-height,24px))}#studioDetailEditor .central-block{height:calc(var(--block-row-height,24px) - 3px);min-width:18px;border-radius:2px}#studioDetailEditor .central-block span{padding:3px 5px;font-size:10px;line-height:1.3}#studioDetailEditor .central-start,#studioDetailEditor .central-end{height:30px!important;min-height:30px!important;top:-4px;width:20px!important;min-width:20px!important}#studioDetailEditor .central-start{left:-20px}#studioDetailEditor .central-end{right:-20px}#studioDetailEditor .central-block[data-grid-start=true]>.central-start{left:0}@media(max-width:900px){#studioDetailEditor .central-block span{font-size:11px;padding:7px 5px}#studioDetailEditor .central-start,#studioDetailEditor .central-end{height:40px!important;min-height:40px!important;top:-3px;width:24px!important;min-width:24px!important}}
body.score-editing #studioDetailEditor #centralnotation .part-lane{height:100%;display:flex;align-items:flex-start;padding:4px;box-sizing:border-box}body.score-editing #studioDetailEditor #centralnotation svg{flex:none;max-width:none;min-width:0}
