/* Traxxy configure_ui: Segoe UI Semibold; heading 21, body/button 15, small 12.5. */
:root{color-scheme:dark;--line:#555b68;--muted:#b7becb;--orange:#ff681f;--ink:#e8eaee;background:#24262c;color:#e8eaee;font-family:'Segoe UI Semibold','Segoe UI',sans-serif;font-weight:600}
*{font-family:'Segoe UI Semibold','Segoe UI',sans-serif}body{background:#24262c;color:#e8eaee;font-size:var(--practice-font-size,16px);font-weight:600}main{padding:12px 16px;gap:8px}h1,h2,h3,h4,.brand{font-family:inherit;letter-spacing:0;font-weight:600}h1,h2,h3,.panel h3,.list-heading h4{font-size:21px}h1{margin:0}h2{margin:0}button,input,select{font-size:var(--practice-font-size,16px);font-weight:600}button{transition:background .1s}button:hover{filter:brightness(1.14)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #79c2ff;outline-offset:2px}input,select{color:#e8eaee;background:#363940;border:1px solid #646b79;border-radius:4px}input[type=number],.time,.anchor-pair small{font-variant-numeric:tabular-nums}.button,.header-actions .button,#song-library{padding:6px 10px;font-size:var(--practice-font-size,16px);background:#363940;border-color:#626a79;color:#e8eaee}.button.dark{background:#0066ff;border-color:#3f8cff;color:white}.button.light{background:#3d4049;color:#e8eaee}.header-actions{gap:6px}.track-heading{min-height:34px;gap:10px}.cover,.track-kicker{display:none}.track-heading p{font-size:var(--practice-font-size,16px);color:#b7becb}.track-meta{gap:18px}.track-meta>span{font-size:21px}.track-meta small{font-size:var(--practice-font-size,16px);color:#bdc8d9}.status{font-size:var(--practice-font-size,16px);color:#c3cbd7;min-height:18px}.status.error{color:#ffa48f}
.sidebar{background:#1d1f24;border-right:1px solid #505562;padding:20px 12px}.sidebar .brand{font-size:27px}.brand-icon{color:#ffb700}.workspace-label,.side-heading,.side-bottom,.keys{color:#b6bfce}.nav-active{background:#343943;border-color:#566476;color:#f0f2f5}.upload-side{color:#b9dcff}.divider{background:#4d5360}.part-item{padding:7px 4px;margin:3px 0;gap:8px;align-items:flex-start}.part-item.active{background:#304b6c;outline:1px solid #6fa5db}.part-index{font-size:var(--practice-font-size,16px);padding:2px 5px;background:#0066ff;color:#fff}.sidebar .part-main{font-size:var(--practice-font-size,16px);padding:2px;line-height:1.3}.part-main small{font-size:var(--practice-font-size,16px);color:#c2ccdc;line-height:1.35}.delete-part{font-size:17px;color:#d3dae5}.side-heading{font-size:var(--practice-font-size,16px)}.side-bottom{font-size:var(--practice-font-size,16px)}.sidebar .keys{font-size:var(--practice-font-size,16px)}
.transport{justify-content:flex-start;gap:9px 14px;padding:8px 10px;background:#2b2e36;border:1px solid #646c7b;box-shadow:0 3px 8px #0005;border-radius:6px}.playback{gap:8px}.play-button{width:40px;height:40px;font-size:20px;background:#ff681f}.icon-button{color:#d2dbe8}.time{font-size:var(--practice-font-size,16px);color:#e8eaee;margin-right:0;gap:5px}.time strong{font-size:18px}.time>span{color:#bac3d0}.speed{padding:5px 7px;gap:6px;background:#343a46;border:1px solid #73839a;color:#f0f3f8}.speed>label{color:#e8eaee;font-size:var(--practice-font-size,16px)}.speed #playback-bpm{width:78px;padding:4px 6px;background:#20242d;color:#fff;border-color:#7f92ae;font-size:18px}.speed button{padding:4px 7px;background:#444b58;color:#f4f6fa;border-color:#7f899a;font-size:var(--practice-font-size,16px)}.speed small{font-size:var(--practice-font-size,16px);color:#d5dce8}.speed #speed-value{color:#e8eaee}.speed input[type=range]{width:95px}.pitch-control{gap:5px;font-size:var(--practice-font-size,16px);color:#e8eaee}.pitch-control label,.pitch-control span{color:#d0d8e4;font-size:var(--practice-font-size,16px)}.pitch-control input,.pitch-control button{font-size:var(--practice-font-size,16px);padding:4px 6px;background:#363d49;border:1px solid #697689;color:#fff}.pitch-control input{width:48px}.pitch-control button:last-child{font-size:var(--practice-font-size,16px)}.volume{display:flex;color:#d0d8e4;font-size:var(--practice-font-size,16px);gap:6px}.volume input{width:60px}.loop-switch{background:#3c4657;color:#e8eaee;font-size:var(--practice-font-size,16px)}.loop-switch.loop-active{background:#0066ff;color:white}.loop-switch.loop-active .switch-track{background:#80baff}.build-version,.transport-version{background:#0066ff;border:1px solid #9ac9ff;color:#fff;border-radius:4px;font-size:var(--practice-font-size,16px);font-weight:700;padding:5px 8px;white-space:nowrap}.build-version{margin-left:10px}.transport-version{margin-left:auto;letter-spacing:0}
.control-deck{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,1.15fr) minmax(320px,1.15fr);gap:10px;min-height:0;flex:none;align-items:start;overflow:visible}.loop-column,.anchor-column{display:flex;flex-direction:column;gap:10px;min-height:0}.control-deck .panel{flex:none;min-height:0;height:auto;align-self:start;width:100%;padding:12px;background:#2e3139;border:1px solid #596170;border-radius:6px;box-shadow:none}.control-deck .section-heading{gap:8px;align-items:center}.control-deck h3{margin:0;color:#f0f2f6}.section-heading .eyebrow{display:none}.pill,.panel .pill{font-size:var(--practice-font-size,16px);padding:3px 6px;letter-spacing:0;background:#3e4a5e;border-color:#73859e;color:#dce9fa}.pill.neutral{background:#414651;color:#dce0e8;border-color:#6c7685}.panel .helper,.helper{font-size:var(--practice-font-size,16px);color:#bec8d8;line-height:1.35;margin:8px 0 0}.subtle{font-size:var(--practice-font-size,16px);color:#c1ccdb}.loop-inputs{margin-top:10px;gap:7px;align-items:end}.loop-inputs label,.marker-form label,.beat-editor label{font-size:var(--practice-font-size,16px);color:#cbd4e2;letter-spacing:0;text-transform:none}.loop-panel .loop-inputs input{font-size:var(--practice-font-size,16px);padding:6px 7px;margin-top:4px;background:#20242b;color:#fff;border:1px solid #697689}.loop-inputs .button{padding:7px 9px;font-size:var(--practice-font-size,16px)}.range-arrow{color:#c6d6e9;padding-bottom:7px}.save-part{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:7px;margin-top:10px;padding-top:9px;border-color:#535c6b}.loop-name-label{display:flex;flex-direction:column;gap:4px;font-size:var(--practice-font-size,16px);color:#cbd4e2;min-width:0}.save-part input{display:block;width:100%;min-width:0;font-size:var(--practice-font-size,16px);padding:6px 7px;background:#20242b;color:#fff;border:1px solid #697689;border-radius:4px}.save-part button,.update-part{font-size:var(--practice-font-size,16px);padding:7px 8px;background:#414a59;border:1px solid #708099;color:#e9f2ff;border-radius:4px;white-space:nowrap}.beat-editor{margin-top:10px;gap:7px}.beat-editor input{padding:8px 5px;margin-top:4px;background:#aed2f4;color:#142235;border:1px solid #88b9e5;font-size:18px;font-weight:700}.beat-editor label{color:#cbd4e2}
.marker-panel{display:flex;flex-direction:column;gap:9px}.marker-panel .section-heading{margin:0}.marker-panel .section-heading h3{font-size:21px}.marker-panel .section-heading>.button{font-size:var(--practice-font-size,16px);padding:5px 7px}.marker-panel #delete-selected-marker{font-size:var(--practice-font-size,16px);color:#ffb8a7;background:none;border:0}.marker-form{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:7px;margin:0}.marker-form input{font-size:var(--practice-font-size,16px);padding:6px 7px;margin-top:4px;background:#20242b;color:#fff;border-color:#697689}.marker-form .button{font-size:var(--practice-font-size,16px);padding:7px}.annotation-lists,.marker-manager{display:block;flex:none;min-height:0}.marker-list{display:flex;flex-direction:column;flex:none;max-height:230px;overflow:auto;gap:5px;padding:0}.marker-chip{flex:none;min-height:32px;background:#ffdb36;border:1px solid #bba225;border-radius:3px}.marker-chip button{font-size:var(--practice-font-size,16px);padding:6px 8px;color:#2a2409}.marker-backup{padding-top:8px;border-color:#535c6b;gap:12px;margin:0}.marker-backup button{font-size:var(--practice-font-size,16px);color:#bad9ff}.anchor-manager{background:#2b3441!important;border-color:#5d7795!important}.list-heading{margin-bottom:8px}.list-heading h4{font-size:21px;color:#f1f4f8}.list-heading button{font-size:var(--practice-font-size,16px);color:#ffb8a7}.loop-anchor-list{flex:none;max-height:310px;overflow:auto;gap:6px}.anchor-group{padding:7px;background:#36485e;border:1px solid #6c90b9}.anchor-group.selected{background:#285487;border-color:#99caff;box-shadow:inset 0 0 0 1px #99caff}.anchor-title,.anchor-title button{font-size:var(--practice-font-size,16px);color:#e9f2ff}.anchor-title button{padding:1px 3px}.anchor-pair{gap:6px;margin-top:5px}.anchor-pair button{font-size:var(--practice-font-size,16px);padding:5px 7px;background:#98c9f1;color:#142b43}.anchor-pair small{font-size:var(--practice-font-size,16px);color:#142b43}.grid-settings{padding:10px;background:#2e3139;border-color:#596170;gap:7px}.grid-settings>div{width:100%;margin:0}.grid-settings strong{font-size:var(--practice-font-size,16px);color:#edf2f8}.grid-settings label{font-size:var(--practice-font-size,16px);color:#cbd4e2}.grid-settings input,.grid-settings select{font-size:var(--practice-font-size,16px);padding:5px;background:#20242b;color:#fff;border-color:#697689}.grid-settings .button{font-size:var(--practice-font-size,16px);padding:6px 8px}.analysis-actions{display:flex;align-items:flex-start;gap:8px}.analysis-actions .button{font-size:var(--practice-font-size,16px);padding:5px 8px}.analysis-actions p{font-size:var(--practice-font-size,16px);color:#bac6d8;line-height:1.3;max-height:none;margin:0}.analysis-actions{margin:0}footer{padding:3px 0;font-size:var(--practice-font-size,16px);color:#bbc8db;gap:12px}footer .pitch-note,footer button{font-size:var(--practice-font-size,16px);color:#bbc8db}.panel button:disabled{opacity:.4}
.card-heading,.zoom{font-size:var(--practice-font-size,16px)}.card-heading .muted{font-size:var(--practice-font-size,16px);color:#becbdd}.timeline-foot{font-size:var(--practice-font-size,16px);padding:8px 12px;color:#cfdaea}.chord-cell{font-size:21px;font-weight:600}.bar-tick{font-size:21px}.loop-strip-label,.loop-lane .saved-loop-range,.timeline-marker{font-size:var(--practice-font-size,16px)}.track-labels{font-size:var(--practice-font-size,16px)}.time-ruler{font-size:var(--practice-font-size,16px)}.video-toolbar,.video-tools,.video-loop-keys{font-size:var(--practice-font-size,16px)}.video-tools span{font-size:var(--practice-font-size,16px)}.video-toolbar .button,.video-tools button,.video-loop-keys button{font-size:var(--practice-font-size,16px);background:#414a59;color:#edf4ff;border-color:#708099}.video-toolbar input,.video-tools input[type=number]{background:#20242b;color:#fff;border-color:#708099}
@media(max-width:1300px){.control-deck{grid-template-columns:minmax(260px,1fr) minmax(300px,1fr)}.anchor-column{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr;align-items:start}.anchor-column .analysis-actions{grid-column:2}.anchor-manager{grid-row:span 2}.transport-version{margin-left:0}}
@media(max-width:800px){main{padding:8px}.control-deck{display:flex;flex-direction:column;gap:8px}.loop-column,.anchor-column,.marker-panel{width:100%}.anchor-column{display:flex}.save-part{grid-template-columns:1fr auto}.loop-name-label{grid-column:1/-1}.transport{position:sticky;gap:7px;padding:7px}.transport-version{font-size:var(--practice-font-size,16px);margin-left:auto}.speed{flex-basis:100%}.speed>label{display:block}.speed small{font-size:var(--practice-font-size,16px)}.volume{display:none}.build-version{font-size:var(--practice-font-size,16px)}.track-meta>span{font-size:18px}}

.save-part input{flex:none;height:34px}.speed small{display:none}.speed input[type=range]{width:72px}.speed{flex-wrap:nowrap}

.transport>.speed{margin-left:0}.transport{column-gap:8px}.speed input[type=range]{width:54px}.volume input{width:48px}.control-deck>.grid-settings{grid-column:1/-1;flex-direction:row;align-items:center;padding:9px 12px;gap:10px}.control-deck>.grid-settings>div{width:auto;margin-right:4px}.control-deck>.analysis-actions{grid-column:1/-1;align-items:center}.marker-panel #marker-count{font-size:var(--practice-font-size,16px);padding:2px 6px;border:1px solid #7e8a9d;border-radius:4px;margin-left:5px;color:#cbd9ed}@media(max-width:800px){.control-deck>.grid-settings{flex-wrap:wrap;gap:8px}.transport>.speed{flex-basis:auto}.speed input[type=range]{width:72px}}

.time{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:95px}.time strong{font-size:var(--practice-font-size,16px);white-space:nowrap}.time>span{font-size:var(--practice-font-size,16px);white-space:nowrap}.loop-panel .loop-inputs input{min-width:0;letter-spacing:.2px;font-variant-numeric:tabular-nums}.anchor-pair button{white-space:nowrap}.anchor-pair small{float:none;display:block;font-size:var(--practice-font-size,16px);margin-top:2px}.track-labels{width:78px;flex-basis:78px}.track-labels span{padding:0 5px}.time-ruler span{white-space:nowrap}

.loop-strip-label,.saved-loop-name{position:absolute;display:block;box-sizing:border-box;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;padding-left:5px;padding-right:5px}.saved-loop-name{top:0;bottom:0;line-height:62px;font-size:var(--practice-font-size,16px);font-weight:600}.loop-strip-label{padding-left:5px;padding-right:5px}.transport{column-gap:6px}

.loop-strip-label[hidden]{display:none}

#fit-timeline{font-size:var(--practice-font-size,16px);font-weight:600;padding:4px 8px;border:1px solid #839ab7;border-radius:4px;background:#35445a;color:#edf5ff}.ruler,.chord-lane,.time-ruler{overflow:hidden}.bar-tick{position:relative;min-width:0;border:0;padding-left:2px;overflow:visible;white-space:nowrap}.bar-tick::before{content:'';position:absolute;left:0;top:0;bottom:0;border-left:1px solid #8797ab;pointer-events:none}.chord-cell.compressed{min-width:0;padding:0;border:0;font-size:0;box-shadow:inset 1px 0 #303744}.time-ruler span{overflow:visible;padding-left:3px}.wave-wrap{overflow:visible}.wave-wrap canvas{position:sticky;left:0;top:0}

.wave-wrap{overflow:clip}.marker-lane{overflow:hidden}.bar-tick{padding-left:0}

/* Avoid accidental browser text/image selection without blocking field editing. */
body,body *{user-select:none;-webkit-user-select:none}input,textarea,[contenteditable=true],input *,textarea *,[contenteditable=true] *{user-select:text;-webkit-user-select:text}.playback{display:grid;grid-template-columns:auto auto auto auto;column-gap:8px;row-gap:3px}.count-in-controls{grid-column:1/-1;display:flex;align-items:center;gap:8px}.count-in-switch{font-size:var(--practice-font-size,16px);font-weight:600;padding:3px 8px;background:#3c4657;border:1px solid #7a8ba5;border-radius:4px;color:#dce9fa}.count-in-switch[aria-pressed=true]{background:#285487;border-color:#7fbdff;color:#fff}.count-in-status{font-size:var(--practice-font-size,16px);font-weight:700;padding:3px 8px;background:#ffdb36;color:#242000;border-radius:4px;white-space:nowrap}.count-in-status[hidden],.annotation-context-menu[hidden]{display:none}.annotation-context-menu{position:fixed;z-index:9999;max-width:340px;min-width:180px;padding:5px;background:#303744;border:1px solid #8ba3c3;border-radius:5px;box-shadow:0 6px 20px #0008}.annotation-context-menu button{display:block;width:100%;text-align:left;font-size:var(--practice-font-size,16px);font-weight:600;color:#ffd0c3;background:transparent;border:0;padding:9px 12px;border-radius:3px;white-space:normal}.annotation-context-menu button:hover,.annotation-context-menu button:focus-visible{background:#7b3438;color:white;outline:0}.annotation-context-menu button:disabled{color:#c4ccda;opacity:.7;cursor:default}
#undo,#redo,#undo:disabled,#redo:disabled{background:#363d49;border-color:#697689;color:#e8eaee}#save-song{background:#285487;border-color:#86baf7;color:#fff}

.saved-data-picker{display:flex;align-items:center;gap:7px;font-size:var(--practice-font-size,16px);color:#e8eaee}.saved-data-picker>span{white-space:nowrap}.saved-data-picker select{max-width:240px}#undo:disabled,#redo:disabled{opacity:1;color:#aebed1;background:#303640;border-color:#647084}#save-song:disabled{opacity:1;color:#d0ddef;background:#35475f;border-color:#7a8da8}.chord-cell.compressed{font-size:var(--practice-font-size,16px);text-indent:-10000px;overflow:hidden}.loop-lane .loop-handle::after{content:'◀';font-size:var(--practice-font-size,16px)}.loop-lane .loop-handle.end::after{content:'▶'}.transport{column-gap:10px}@media(max-width:1900px) and (min-width:1101px){.transport{display:grid;grid-template-columns:auto auto auto minmax(80px,1fr) auto;grid-template-areas:'playback tempo tempo volume version' 'playback pitch cents volume version';column-gap:12px;row-gap:5px}.transport>.playback{grid-area:playback}.transport>.speed{grid-area:tempo;justify-self:start}.transport>.pitch-control:not(.cents-control){grid-area:pitch;justify-self:start}.transport>.cents-control{grid-area:cents;justify-self:start}.transport>.volume{grid-area:volume;justify-self:end}.transport>.transport-version{grid-area:version;margin-left:0}}

#config-dialog{width:min(480px,calc(100vw - 32px));max-height:90vh;overflow:auto;padding:22px;background:#2e3139;color:#edf2f8;border:1px solid #8ba3c3;border-radius:8px;font:600 var(--practice-font-size,16px) "Segoe UI",sans-serif;box-shadow:0 12px 50px #0009}#config-dialog::backdrop{background:#0009}.config-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.config-heading h2{margin:0;font-size:24px}.config-heading button{font:inherit;color:#fff;background:#285487;border:1px solid #86baf7;border-radius:4px;padding:7px 14px}.config-toggle{display:flex;align-items:center;gap:10px;margin-bottom:20px}.config-toggle input{width:22px;height:22px;accent-color:#64b5ff}.config-field{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0}.config-field input,.config-field select{font:inherit;background:#20242b;color:white;border:1px solid #8ba3c3;border-radius:4px;padding:8px}.config-field input{width:80px}.config-field select{min-width:170px}#config-dialog p{font-size:var(--practice-font-size,16px);font-weight:400;line-height:1.45;color:#cbd4e2}#config-dialog .config-saved{color:#a9dcae;margin-bottom:0}

/* Two loop controls: compact selector and one editor. */
.sidebar .part-item{align-items:center;padding:8px 6px;gap:8px}.sidebar .part-main{min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left}.sidebar .part-index{flex:none;min-width:25px;text-align:center}.loop-panel .section-heading{flex-wrap:wrap}.loop-panel .section-heading>div{flex:1;min-width:150px}.loop-panel .delete-loop-button{font:600 var(--practice-font-size,16px) "Segoe UI",sans-serif;color:#ffb8a7;background:#49343c;border:1px solid #9c6f76;border-radius:4px;padding:5px 8px}.loop-panel .delete-loop-button:disabled{opacity:.5}.control-deck>.editor-panel{min-width:0}@media(min-width:801px) and (max-width:1300px){.control-deck>.editor-panel{grid-column:1/-1}}

.edit-loop-button{display:block;width:100%;margin:0 0 8px;padding:8px;font:600 var(--practice-font-size,16px) "Segoe UI",sans-serif;text-align:left;border:1px solid #708099;border-radius:4px;background:#35445a;color:#edf5ff}#loop-editor-dialog{width:min(740px,calc(100vw - 32px));max-height:90vh;overflow:auto;padding:0;border:1px solid #8ba3c3;border-radius:8px;background:#2e3139;color:#edf2f8;box-shadow:0 12px 50px #0009}#loop-editor-dialog::backdrop{background:#0009}#loop-editor-dialog .loop-panel{width:100%;height:auto;padding:20px;margin:0;background:#2e3139;border:0;box-shadow:none}#loop-editor-dialog h3{color:#edf2f8;font:600 21px "Segoe UI",sans-serif;margin:0}#close-loop-editor{font:600 var(--practice-font-size,16px) "Segoe UI",sans-serif;color:white;background:#285487;border:1px solid #86baf7;border-radius:4px;padding:6px 12px}.control-deck{grid-template-columns:minmax(320px,1.15fr) minmax(280px,1fr)}@media(min-width:801px) and (max-width:1300px){.control-deck>.editor-panel{grid-column:auto}}@media(max-width:800px){#loop-editor-dialog .loop-panel{padding:12px}.loop-panel .loop-inputs{flex-wrap:wrap}}

/* Outlined transport and four-part musical locators. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.transport .playback{grid-template-columns:auto auto;column-gap:12px}.transport-buttons{display:flex;align-items:stretch;gap:0;border:2px solid #a6abb2;border-radius:5px;overflow:hidden;background:#4a4d52}.transport-buttons .transport-key{display:flex;align-items:center;justify-content:center;flex:none;width:50px;height:46px;padding:9px;border:0;border-right:1px solid #72777e;border-radius:0;background:#4a4d52;color:#e6e8eb;box-shadow:none;cursor:pointer}.transport-buttons .transport-key:last-child{border-right:0}.transport-key svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linejoin:miter;stroke-linecap:square}.transport-buttons .transport-key:hover{background:#626870}.transport-buttons .transport-key:focus-visible{outline:2px solid #ffdb36;outline-offset:-3px}.transport-buttons #loop.loop-active{background:#285487;color:#bfe0ff}.transport-buttons #play.is-counting{background:#715b1a;color:#ffdf62}#play .count-cancel-icon{display:none}#play.is-counting .play-triangle{display:block}#play.is-counting .count-cancel-icon{display:none}.transport-buttons #pause{background:#8e959f;color:#1d232b}.time strong{font-family:"Segoe UI",sans-serif;font-size:20px;font-variant-numeric:tabular-nums}.time>span{font-variant-numeric:tabular-nums}.count-in-controls{grid-column:1/-1}
#loop-editor-dialog{width:min(840px,calc(100vw - 32px))}.locator-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:16px}.locator-control{min-width:0}.locator-label{display:block;font-size:var(--practice-font-size,16px);color:#cbd4e2;margin-bottom:6px}.locator-position{display:flex;align-items:stretch;gap:0;background:#20242b;border:1px solid #858c96;border-radius:5px;padding:0 6px 0 0;min-width:0}.locator-position label{display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1;gap:2px}.locator-position label span{font-size:var(--practice-font-size,16px);color:#bbc5d3;text-align:center;white-space:nowrap}.locator-position b{font-size:23px;align-self:center;color:#d6dbe3;padding:16px 1px 0}.loop-panel .locator-position input{width:100%;min-width:0;padding:4px 0;margin:0;border:0;border-radius:0;background:transparent;color:#edf2f8;font:600 22px "Segoe UI",sans-serif;text-align:center;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}.locator-position input::-webkit-inner-spin-button,.locator-position input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.locator-position input:focus{outline:2px solid #7dbdff;outline-offset:-2px;background:#303b4b}.locator-position label:first-of-type{flex:1.2}.locator-position label:last-of-type{flex:1.6}.locator-flag{width:34px;flex:none;border:0;border-right:1px solid #858c96;margin-right:4px;border-radius:4px 0 0 4px;background:#4a4d52;color:#e6e8eb;padding:4px}.locator-flag svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5}.locator-format{font-size:var(--practice-font-size,16px);color:#bbc5d3;margin:9px 0}.loop-editor-footer{display:flex;justify-content:flex-end;margin-top:24px;padding-top:14px;border-top:1px solid #596170}.loop-editor-footer .delete-loop-button{background:#49343c;color:#ffb8a7;padding:8px 12px}.loop-panel .section-heading #close-loop-editor{margin-left:auto}
@media(max-width:1100px){.transport-buttons .transport-key{width:44px;height:44px}.transport .playback{grid-template-columns:auto auto}}@media(max-width:740px){.locator-inputs{grid-template-columns:1fr}.locator-position{max-width:100%}.locator-inputs>#apply-loop{justify-self:start}.transport .playback{grid-template-columns:auto}.transport .time{grid-row:2}.transport .count-in-controls{grid-row:3}}

@media(min-width:801px) and (max-width:1450px){.transport{display:flex;flex-wrap:wrap}.transport>.playback{flex:none}.transport>.speed{flex:none}.transport>.volume{margin-left:auto}.transport>.transport-version{margin-left:auto}}

.locator-error{font-size:var(--practice-font-size,16px);color:#ffb8a7;margin:8px 0}.locator-error:empty{display:none}

.annotation-tabs{display:flex;flex:none;border-bottom:1px solid #708099;gap:3px;margin-bottom:10px}.annotation-tabs button{flex:1;font:600 17px "Segoe UI",sans-serif;background:#292e38;color:#cbd4e2;border:1px solid #596170;border-bottom:0;border-radius:5px 5px 0 0;padding:9px 5px}.annotation-tabs button[aria-selected=true]{background:#285487;color:white;border-color:#86baf7}.annotation-tabs button:focus-visible{outline:2px solid #ffdb36;outline-offset:-3px}.sidebar-tab-panel{display:flex;flex:1;min-height:0;flex-direction:column}.sidebar-tab-panel[hidden],.marker-panel[hidden]{display:none!important}.loop-list-tools{display:flex;gap:6px;align-items:stretch;margin-bottom:8px}.loop-list-tools .edit-loop-button{flex:1;margin:0}.loop-list-tools #add-part{font-size:24px;padding:2px 9px;border:1px solid #708099;background:#35445a;color:#edf5ff;border-radius:4px}#sidebar-marker-host{flex:1;min-height:0;overflow:auto}#sidebar-marker-host .marker-list{max-height:none;margin:0;overflow:visible}#sidebar-marker-host .marker-chip{width:100%;margin:3px 0;background:#ffdb36;border-radius:4px}#sidebar-marker-host .marker-chip>button{width:100%;text-align:left;padding:9px 8px;font-size:var(--practice-font-size,16px);color:#2a2409}#sidebar-marker-host .marker-chip.selected{outline:2px solid #fff4a2;background:#ffea87}.control-deck>.marker-backup{grid-column:1/-1;margin:0;padding:7px 0;order:4}.control-deck>.grid-settings{grid-column:2;grid-row:1;flex-wrap:wrap;gap:10px}.control-deck>.analysis-actions{grid-column:1/-1}.sensitivity-control{display:flex;align-items:center;gap:10px}.config-field .sensitivity-control input{width:140px;padding:0}.sensitivity-control output{min-width:30px;font-variant-numeric:tabular-nums}@media(max-width:1000px){.control-deck>.grid-settings{grid-column:1/-1;grid-row:auto}}

.auto-chord-status{display:block;font-size:var(--practice-font-size,16px);line-height:1.4;color:#ffdf62;margin:8px 0}.auto-chord-status:empty{display:none}

.editor-panel[hidden]{display:none!important}.control-deck{grid-template-columns:minmax(0,1fr)}.control-deck>.grid-settings{grid-column:1/-1;grid-row:auto}

/* The practice workspace fills the viewport; secondary controls live in Config. */
html,body{height:100%;min-height:0;overflow:hidden}main{height:100dvh;min-height:0;overflow:hidden;gap:6px;padding:10px 14px}header,.track-heading,.transport,.status-row{flex:none}.status-row{order:2;display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}.status-row #status{margin:0;min-height:20px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-row #save-state{flex:none;font-size:var(--practice-font-size,16px);color:#b5d9bd;white-space:nowrap}.transport{position:relative;top:auto}.media-workspace{order:4;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:8px;--measure-height:clamp(26px,5vh,60px);--chord-height:clamp(36px,7vh,84px);--marker-height:clamp(36px,6vh,72px);--loop-view-height:clamp(48px,14vh,144px);--time-height:30px}.timeline-card{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;margin:0}.card-heading{flex:none;min-height:40px;padding:6px 10px}.timeline-body{display:flex;flex:1;min-height:0;overflow:hidden}.timeline-scroll{flex:1;min-width:0;min-height:0;height:100%;overflow-x:auto;overflow-y:hidden}.timeline-content,.track-labels{display:grid;grid-template-rows:var(--measure-height) var(--chord-height) var(--marker-height) var(--loop-view-height) minmax(60px,1fr) var(--time-height);min-height:0;height:100%;align-content:stretch}.track-labels{flex:none;width:78px}.track-labels span{height:auto!important;min-height:0;flex:none;display:flex;align-items:center}.ruler,.chord-lane,.marker-lane,.time-ruler{height:100%;min-height:0;flex-basis:auto}.loop-viewport{height:var(--loop-view-height)!important;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden}.loop-lane{min-height:96px;background:repeating-linear-gradient(to bottom,#26384b 0px,#26384b 46px,#849bb4 46px,#849bb4 48px)}.loop-lane.precision{background:#344d66}.loop-lane .saved-loop-range{height:40px;padding:0 20px}.saved-loop-name{line-height:36px}.loop-lane .loop-shade,.loop-lane .loop-handle{height:40px}.loop-strip-label{line-height:20px;padding:0 24px}.loop-seed{line-height:36px}#loop-new-row{height:48px;padding:14px 14px;white-space:nowrap}.wave-wrap{height:100%;min-height:0;flex:none}.wave-wrap canvas{height:100%;min-height:0}.time-ruler{overflow:hidden}.timeline-foot{flex:none;min-height:28px;padding:4px 9px;gap:8px}.timeline-foot>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-foot>span:last-child{min-width:0}.timeline-marker{top:10px;padding:6px 7px}.timeline-marker::before{top:-10px;bottom:-8px}.timeline-marker::after{bottom:-13px}.status-row #status.error{color:#ffa48f}
.config-details{border-top:1px solid #596170;margin-top:12px;padding-top:10px}.config-details>summary{font-size:17px;color:#cde4ff;cursor:pointer;padding:3px 0}.config-details .grid-settings{display:flex;flex-wrap:wrap;padding:12px 0;background:none;border:0;gap:12px}.config-details .grid-settings>div{width:100%}.config-details .grid-settings p{margin:5px 0}.config-details .grid-settings label{display:flex;align-items:center;gap:7px}.config-details .grid-settings input{width:86px}.config-details .grid-settings select{width:62px}.config-details .analysis-actions{margin-top:12px;flex-wrap:wrap;gap:8px}.config-details #pitch-note{font-size:var(--practice-font-size,16px);color:#cbd4e2}.config-details .marker-backup{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0;padding:0;border:0}.config-details .marker-backup>span{display:none}#config-data-host>button{font-size:var(--practice-font-size,16px);border:1px solid #708099;border-radius:4px;background:#35445a;color:#edf5ff;padding:7px 10px}.config-heading{position:sticky;top:-22px;background:#2e3139;z-index:2;padding-top:6px;padding-bottom:6px}.config-details .analysis-actions p{max-width:100%;overflow-wrap:anywhere}
.media-workspace:has(.video-panel:not([hidden])){flex-direction:row}.media-workspace:has(.video-panel:not([hidden])) .video-panel{display:flex;flex-direction:column;align-self:stretch;flex:0 0 66%;width:66%;min-height:0;margin:0}.media-workspace:has(.video-panel:not([hidden])) .timeline-card{min-width:0;width:34%}.media-workspace .video-stage{height:auto;min-height:0;flex:1}.video-panel .video-toolbar,.video-panel .video-tools{padding:7px;gap:6px;flex:none}.video-panel .video-loop-keys{padding:4px 7px;gap:5px;flex:none;max-height:70px;overflow:auto}
@media(max-width:1100px){.sidebar{display:flex;width:180px;padding:12px 10px}.sidebar .brand{font-size:25px}.sidebar .brand-icon{font-size:28px}.sidebar .parts{display:block;flex:1;min-height:0}.sidebar .side-bottom{display:block;font-size:var(--practice-font-size,16px)}.sidebar .workspace-label,.sidebar .nav-active,.sidebar .upload-side,.sidebar .divider{display:none}main{margin-left:180px;width:calc(100% - 180px);padding:8px}.header-actions{gap:4px}header{gap:6px}.status-row #save-state{display:none}.media-workspace{--loop-view-height:96px}}@media(max-height:700px){main{gap:4px}.track-heading p{display:none}.card-heading{min-height:34px}.media-workspace{--measure-height:28px;--chord-height:40px;--marker-height:40px;--loop-view-height:96px;--time-height:26px}.timeline-foot{min-height:24px}.sidebar .workspace-label{margin-top:12px}.sidebar .nav-active{padding:8px}.side-bottom .keys{display:none}}@media(max-width:700px){.sidebar{display:flex;width:145px}.sidebar .brand{font-size:21px}.sidebar .brand-icon{font-size:24px}main{margin-left:145px;width:calc(100% - 145px)}.header-actions{max-width:none}.media-workspace:has(.video-panel:not([hidden])) .video-panel{flex-basis:60%;width:60%}.media-workspace:has(.video-panel:not([hidden])) .timeline-card{width:40%}.timeline-foot>span:last-child{display:none}.transport .transport-version{display:none}}

.status-row #status{order:0;flex:1}.status-row #save-state{order:1}.timeline-content,.track-labels{grid-template-rows:var(--measure-height) var(--chord-height) var(--marker-height) var(--loop-view-height) minmax(40px,1fr) var(--time-height)}#config-data-host{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding-top:10px}#config-data-host .saved-data-picker{width:100%;flex-wrap:wrap}#config-data-host .marker-backup{width:100%}.media-workspace:has(.video-panel:not([hidden])) .card-heading{flex-wrap:wrap;gap:4px}.media-workspace:has(.video-panel:not([hidden])) .zoom{max-width:100%;gap:5px}.media-workspace:has(.video-panel:not([hidden])) .zoom input{width:70px}@media(max-height:800px){.media-workspace{--measure-height:28px;--chord-height:44px;--marker-height:44px;--loop-view-height:96px;--time-height:28px}}

.media-workspace{--loop-view-height:min(var(--loop-content-height,144px),144px)}@media(max-height:800px),(max-width:1100px){.media-workspace{--loop-view-height:min(var(--loop-content-height,96px),96px)}}

/* Floating video stays independent of the timeline layout. */
#video-panel.floating-video:not(:fullscreen){position:fixed;z-index:100;display:flex;flex-direction:column;align-self:auto;flex:none;min-width:0;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:0;border:2px solid #8ba3c3;border-radius:7px;box-shadow:0 12px 40px #000a;overflow:hidden;background:#202630}#video-panel.floating-video[hidden],#show-video[hidden]{display:none!important}.video-window-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 9px;background:#35445a;cursor:move;touch-action:none;flex:none}.video-window-title>strong{font-size:18px}.video-window-actions{display:flex;align-items:center;gap:8px}.video-window-actions button{font:600 var(--practice-font-size,16px) "Segoe UI",sans-serif;color:#eef4ff;background:#414a59;border:1px solid #8ba3c3;border-radius:4px;padding:4px 8px}.video-window-actions #close-video{font-size:24px;line-height:24px;padding:1px 8px}.floating-video .video-stage{height:auto!important;flex:none!important;width:100%;min-height:0;aspect-ratio:16/9}.floating-video .video-toolbar,.floating-video .video-tools{padding:6px 8px;gap:6px;flex:none}.floating-video .video-toolbar strong{display:none}.floating-video .video-tools>span{display:none}.floating-video .video-toolbar .button,.floating-video .video-tools button{padding:4px 7px;font-size:var(--practice-font-size,16px)}.floating-video .video-toolbar input,.floating-video .video-tools input[type=number]{padding:4px;width:74px}.floating-video .video-tools input[type=range]{width:90px}.floating-video .video-loop-keys{flex:none;max-height:56px;overflow:auto;padding:4px 22px 6px 8px;gap:5px}.floating-video .video-loop-keys button{font-size:var(--practice-font-size,16px);padding:4px 6px}.video-window-resize{position:absolute;bottom:0;right:0;width:26px;height:26px;text-align:right;line-height:26px;font-size:24px;color:#cde4ff;cursor:nwse-resize;touch-action:none;z-index:2}.video-window-resize:focus-visible{outline:2px solid #ffdb36;outline-offset:-2px}.floating-video:fullscreen{display:flex;flex-direction:column;left:0!important;top:0!important;width:100vw!important;height:100dvh!important;max-height:none}.floating-video:fullscreen .video-stage{flex:1!important;aspect-ratio:auto}.floating-video:fullscreen .video-window-resize{display:none}

/* Primary media import remains visible at every sidebar width. */
.sidebar .upload-side{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:22px 0 4px;padding:12px 8px;border:1px solid #73afff;border-radius:6px;background:#0066ff;color:#fff;font-size:18px;font-weight:700;line-height:1.25;text-align:left;flex-shrink:0}.sidebar .upload-side>span:first-child{font-size:27px;line-height:1}.sidebar .upload-side small{display:block;font-size:var(--practice-font-size,16px);font-weight:500;margin-top:3px}.sidebar .upload-side:hover{background:#1977ff;filter:none}.sidebar .upload-side:focus-visible{outline:3px solid #ffdb36;outline-offset:3px}@media(max-width:700px){.sidebar .upload-side{font-size:16px;gap:4px;padding:10px 5px}.sidebar .upload-side>span:first-child{font-size:21px}}

.sidebar .sidebar-video{display:block;flex:none;width:100%;margin:6px 0 0;padding:10px 8px;border:1px solid #86baff;border-radius:6px;background:#0066ff;color:#fff;font-size:18px;font-weight:700}.sidebar .sidebar-video[aria-pressed="true"]{background:transparent;color:#a9b4c5;border-color:#596474;opacity:.65}.sidebar .sidebar-video:focus-visible{outline:3px solid #ffdb36;outline-offset:3px}

.sidebar .sidebar-build{display:block;align-self:flex-start;margin:8px 0 0;padding:4px 7px;font-size:var(--practice-font-size,16px);line-height:1.4;white-space:normal}.sidebar .upload-side{margin-top:18px}main>header{justify-content:flex-end}main>header .header-actions{margin-left:auto}

.video-stage .video-reconnect{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:20px;background:#202630;text-align:center}.video-reconnect[hidden]{display:none!important}.video-reconnect p{font-size:18px;margin:0}.video-reconnect button{background:#0066ff;border:1px solid #86baff;border-radius:5px;color:white;padding:12px 18px;font-size:18px}.video-reconnect small{font-size:var(--practice-font-size,16px);color:#c2ccdc}

.transport-key#loop svg{stroke-width:4;stroke-linecap:butt;stroke-linejoin:round;overflow:visible}

.sidebar .recent-files-label{display:flex;flex-direction:column;gap:5px;margin:10px 0 2px;color:#d5deeb;font-size:var(--practice-font-size,16px);flex:none}.sidebar #recent-files{display:block;width:100%;min-width:0;max-width:100%;padding:8px 5px;font-size:var(--practice-font-size,16px);background:#343e4e;color:#fff;border:1px solid #8395af}.sidebar #recent-files option{font-size:var(--practice-font-size,16px)}

main>header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}.top-media-controls{grid-column:2;display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}main>header .header-actions{grid-column:3;justify-self:end;margin-left:0;flex-wrap:nowrap}.top-media-controls .upload-side{display:flex;align-items:center;gap:9px;padding:8px 14px;border:1px solid #73afff;border-radius:6px;background:#0066ff;color:#fff;font-size:18px;font-weight:700;line-height:1.2;text-align:left;white-space:nowrap}.top-media-controls .upload-side>span:first-child{font-size:27px}.top-media-controls .upload-side small{display:block;font-size:var(--practice-font-size,16px);font-weight:500;margin-top:2px}.top-media-controls .recent-files-label{display:flex;flex-direction:column;gap:4px;font-size:var(--practice-font-size,16px);color:#d5deeb;min-width:0}.top-media-controls #recent-files{width:clamp(180px,23vw,360px);max-width:100%;padding:8px;font-size:var(--practice-font-size,16px);background:#343e4e;color:#fff;border:1px solid #8395af}.sidebar .sidebar-video{margin-top:18px}@media(max-width:1100px){main>header{grid-template-columns:minmax(0,1fr) auto}.top-media-controls{grid-column:1;justify-self:center}.header-actions{grid-column:2!important}.top-media-controls #recent-files{width:180px}}@media(max-width:760px){main>header{grid-template-columns:1fr}.top-media-controls{grid-column:1;width:100%;gap:6px}.top-media-controls .upload-side{font-size:16px;padding:7px}.top-media-controls .recent-files-label{flex:1}.top-media-controls #recent-files{width:100%}main>header .header-actions{grid-column:1!important;justify-self:end}}

body.initializing .app,body.initializing #video-panel{visibility:hidden}.startup-loading{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#24262c;color:#d5deeb}.startup-loading strong{font-size:28px;color:#fff}.startup-loading span{font-size:18px}

.top-media-controls .top-video-toggle{flex:none;align-self:center;white-space:nowrap;padding:10px 12px;border:1px solid #86baff;border-radius:6px;background:#0066ff;color:#fff;font-size:16px;font-weight:700}.top-media-controls .top-video-toggle[aria-pressed="true"]{background:transparent;color:#a9b4c5;border-color:#596474;opacity:.65}@media(max-width:900px){main>header{grid-template-columns:1fr auto}.top-media-controls{grid-column:1;gap:8px}.top-media-controls #recent-files{width:180px}}@media(max-width:760px){.top-media-controls{flex-wrap:wrap}.top-media-controls .top-video-toggle{padding:7px 10px}}
@media(max-width:760px){main>header{grid-template-columns:1fr}}

/* One visual family for the three file/video controls. */
.top-media-controls{align-items:stretch;gap:8px}
.top-media-controls .upload-side,.top-media-controls .recent-files-label,.top-media-controls .top-video-toggle{height:64px;margin:0;padding:8px 12px;border:1px solid #7089aa;border-radius:6px;background:#35445a;color:#edf4ff;font-family:inherit;font-size:16px;font-weight:600;line-height:1.25;box-shadow:inset 0 1px 0 #ffffff0a;align-self:stretch}
.top-media-controls .upload-side{min-width:222px;gap:10px;background:#0066ff;border-color:#73afff}
.top-media-controls .upload-side small{font-size:var(--practice-font-size,16px);font-weight:500;margin-top:4px;color:#e0edff}
.top-media-controls .upload-side>span:first-child{font-size:26px;font-weight:400}
.top-media-controls .recent-files-label{justify-content:center;gap:4px;min-width:220px}
.top-media-controls #recent-files{width:clamp(220px,22vw,340px);padding:3px 6px;height:26px;background:#263348;border-color:#7089aa;border-radius:3px;font:500 var(--practice-font-size,16px) 'Segoe UI',sans-serif}
.top-media-controls .top-video-toggle{min-width:120px;text-align:center}
.top-media-controls .top-video-toggle[aria-pressed="true"]{background:#2b3442;color:#aebaca;border-color:#596b83;opacity:.65}
.top-media-controls button:hover{filter:brightness(1.12)}
@media(max-width:1100px){main>header{grid-template-columns:minmax(0,1fr) auto}.top-media-controls{grid-column:1;min-width:0}.top-media-controls #recent-files{width:220px}}
@media(max-width:900px){main>header{grid-template-columns:1fr}.top-media-controls{grid-column:1;justify-self:center;flex-wrap:wrap}.header-actions{grid-column:1!important;justify-self:end}.top-media-controls .recent-files-label{flex:1}.top-media-controls #recent-files{width:100%}}

/* Compact transport and a shared header home for timeline zoom. */
.sidebar .side-bottom{padding-top:14px;text-align:left}.sidebar .side-bottom .keys{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;margin:0;text-align:left;width:100%}.keys>span{display:flex;align-items:center;justify-content:flex-start;gap:7px}.keys kbd{min-width:24px;text-align:center}.transport .playback{grid-template-columns:auto;gap:4px}.count-in-controls{grid-column:1}.transport-buttons #pause{background:#4a4d52;color:#e6e8eb}.transport-buttons #pause svg{stroke-width:5}.track-heading>div:nth-child(2){min-width:0}main>header .header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0;max-width:100%}.header-actions .zoom{display:flex;align-items:center;justify-content:flex-end;flex:1 1 100%;gap:7px;min-width:0;white-space:nowrap}.header-actions .zoom input{width:110px;min-width:45px;max-width:140px}.header-actions .zoom #fit-timeline{padding:4px 7px}.header-actions .zoom output{min-width:42px;text-align:right}

/* Keep every loop shortcut row inside the floating video window. */
#video-panel .video-loop-keys{height:auto;max-height:none;overflow:visible;flex:none;padding:6px 32px 10px 8px;gap:6px;align-content:flex-start}#video-panel .video-loop-keys button{flex:none;margin:2px 0}#video-panel #video-reset,#video-panel #video-offset-reset{background:#57343e;border:1px solid #bd7180;color:#ffd8df}#video-panel #video-reset:hover,#video-panel #video-offset-reset:hover{background:#72434f;filter:none}

/* Match the main transport, with secondary video groups aligned right. */
#video-panel .video-transport{display:flex;flex:none;border:2px solid #a6abb2;border-radius:5px;overflow:hidden;background:#4a4d52}#video-panel .video-transport .transport-key{width:44px;height:40px;padding:6px;border:0;border-right:1px solid #72777e;border-radius:0;background:#4a4d52;color:#e6e8eb;display:flex;align-items:center;justify-content:center}#video-panel .video-transport .transport-key:last-child{border-right:0}#video-pause svg{stroke-width:5}#video-play .count-cancel-icon{display:none}#video-play.is-counting .play-triangle{display:block}#video-play.is-counting .count-cancel-icon{display:none}#video-panel #video-play.is-counting{background:#715b1a;color:#ffdf62}.video-count-group{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-left:auto}.video-offset-group{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;margin-left:auto}.video-offset-group label{white-space:nowrap}#video-panel .video-toolbar{align-items:center}.video-count-group .count-in-status{margin-left:auto}

/* Keep history actions easy to find beside their shortcut hints. */
.sidebar .history-controls{display:flex;gap:6px;width:100%;margin:0 0 12px}.sidebar .history-controls button{flex:1;min-width:0;padding:9px 6px;border:1px solid #80b2ef;border-radius:5px;background:#23588f;color:#f1f7ff;font-size:16px;font-weight:700;opacity:1}.sidebar .history-controls button:hover:not(:disabled){background:#2e6dae}.sidebar .history-controls button:disabled{background:#303a49;border-color:#66778e;color:#a8b7cc;cursor:default}.sidebar .side-bottom .keys{gap:6px;color:#d0d9e7}.sidebar .keys kbd{flex:none;background:#303947;border-color:#66778e;color:#eef4ff}.sidebar .side-bottom{flex-shrink:0}

/* Framed transport groups and a consistent Reset treatment. */
.transport{display:flex;flex-wrap:wrap;align-items:center;gap:9px 12px}.transport .pitch-settings,.transport .volume{display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid #73839a;border-radius:5px;background:#343a46;flex:none;align-self:center}.pitch-settings .pitch-control{margin:0;flex:none}.transport .volume input{width:120px;min-width:120px}.transport .volume{margin-left:0}.transport :is(#tempo-reset,#pitch-reset,#cents-reset),#video-panel :is(#video-tempo-reset,#video-reset,#video-offset-reset){background:#57343e;border:1px solid #bd7180;color:#ffd8df}.transport :is(#tempo-reset,#pitch-reset,#cents-reset):hover,#video-panel :is(#video-tempo-reset,#video-reset,#video-offset-reset):hover{background:#72434f;filter:none}.transport .transport-video-button{flex:none;padding:10px 12px;border:1px solid #73afff;border-radius:5px;background:#0066ff;color:#fff;font-size:16px;font-weight:600;white-space:nowrap}.transport .transport-video-button[aria-pressed="true"]{background:#303a49;border-color:#64748b;color:#aebaca;opacity:.6}@media(max-width:800px){.transport .pitch-settings{flex-wrap:wrap}.transport>.speed{flex-basis:auto}.transport .volume{display:flex}}

#loop-editor-dialog .save-part{grid-template-columns:1fr;border:0;padding-top:0;margin:16px 0}#loop-editor-dialog [hidden]{display:none!important}#loop-editor-dialog .locator-inputs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.loop-editor-footer{justify-content:flex-start;gap:8px;align-items:center}.loop-footer-spacer{flex:1}#cancel-loop-editor{padding:6px 12px;border:1px solid #708099;border-radius:4px;background:#414a59;color:#edf2f8}@media(max-width:740px){#loop-editor-dialog .locator-inputs{grid-template-columns:1fr}}

#video-panel #video-zoom{width:64px}#video-panel #video-offset{width:62px}#video-panel .video-loop-keys button.active{background:#414a59;color:#edf4ff;outline:none}#video-panel .video-loop-keys button:focus:not(:focus-visible){outline:none}

#marker-editor-dialog{width:min(620px,calc(100vw - 32px));max-height:90vh;overflow:auto;padding:20px;border:1px solid #8ba3c3;border-radius:8px;background:#2e3139;color:#edf2f8;box-shadow:0 12px 50px #0009}#marker-editor-dialog::backdrop{background:#0009}#marker-editor-dialog h3{font-size:21px;margin:0 0 16px}#marker-editor-dialog .loop-name-label{margin-bottom:16px}#marker-edit-name{width:100%;height:34px;padding:6px 7px;border:1px solid #697689;border-radius:4px;background:#20242b;color:white}#marker-position{padding-left:8px}#marker-position input{width:100%;min-width:0;padding:4px 0;border:0;background:transparent;color:#edf2f8;font:600 22px "Segoe UI",sans-serif;text-align:center;appearance:textfield}#marker-position input::-webkit-inner-spin-button,#marker-position input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#marker-editor-dialog button{border:1px solid #708099;border-radius:4px;padding:6px 12px;background:#414a59;color:#edf2f8}#marker-editor-done{background:#285487!important;border-color:#86baf7!important}#marker-editor-delete{background:#49343c!important;color:#ffb8a7!important}#marker-editor-dialog [hidden]{display:none!important}

#marker-editor-dialog .marker-edit-panel{padding:0;margin:0;background:transparent;border:0;box-shadow:none}

.transport{align-items:flex-start}.transport>.speed,.transport>.pitch-settings,.transport>.volume,.transport>.transport-video-button{align-self:flex-start;margin-top:0}.transport .playback{align-self:flex-start}#count-in-status:not([hidden]){display:inline-block}.transport .count-in-controls:has(#count-in-status[hidden]){display:none}

.sidebar .annotation-lock{flex:none;width:30px;min-width:30px;padding:4px;border:1px solid #73839a;border-radius:4px;background:#343a46;color:#edf2f8;font-size:var(--practice-font-size,16px)}.sidebar .annotation-lock[aria-pressed="true"]{background:#665624;border-color:#d9bb5a}.marker-chip button[data-marker]{flex:1}.marker-chip .annotation-lock{margin:3px}.part-item{gap:5px}#loop-editor-lock,#marker-editor-lock{float:right;padding:6px 10px;border:1px solid #73839a;border-radius:4px;background:#414a59;color:#edf2f8}#loop-editor-lock[hidden],#marker-editor-lock[hidden]{display:none!important}

#time-ruler{position:relative}#time-ruler .beat-ruler-label{position:absolute;top:50%;transform:translateY(-50%);padding-left:3px;white-space:nowrap;font-variant-numeric:tabular-nums}#time-ruler .inner-beat{color:#c4cfdf;font-weight:400}

#wave-wrap,#time-ruler,#ruler,#chord-lane{cursor:grab;touch-action:pan-y}#timeline-scroll.timeline-panning,#timeline-scroll.timeline-panning *{cursor:grabbing!important;user-select:none!important}#timeline-scroll.timeline-panning{touch-action:none}

/* Locked dialogs keep only Unlock, Done and Cancel at full strength. */
#loop-editor-dialog.locked-editor :is(.save-part,.locator-inputs,.locator-format,.helper,.locator-error,.section-heading h3),#marker-editor-dialog.locked-editor :is(h3,.loop-name-label,.locator-control,.locator-format,.locator-error){opacity:.4}
#loop-editor-dialog.locked-editor :is(#loop-editor-lock,#close-loop-editor,#cancel-loop-editor),#marker-editor-dialog.locked-editor :is(#marker-editor-lock,#marker-editor-done,#marker-editor-cancel){opacity:1}

#help-dialog{width:min(1000px,calc(100vw - 32px));height:min(860px,90dvh);padding:0;border:1px solid #8ba3c3;border-radius:8px;background:#242830;color:#edf2f8}#help-dialog::backdrop{background:#0009}#help-dialog[open]{display:flex;flex-direction:column}#help-dialog .config-heading{flex:none;padding:12px 16px;border-bottom:1px solid #596170}#help-dialog h2{font-size:20px;margin:0}#close-help{padding:6px 14px;color:white;border:1px solid #86baf7;border-radius:4px;background:#285487}#help-content{width:100%;flex:1;min-height:0;border:0}

.transport .tempo-percent{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #73839a;border-radius:5px;background:#343a46;flex:none}.tempo-percent button{width:32px;height:32px;padding:0;border:1px solid #708099;border-radius:4px;background:#414a59;color:#edf2f8;font-size:21px}.tempo-percent output{display:block;min-width:64px;text-align:center;font-size:19px;font-variant-numeric:tabular-nums;color:#fff}.track-heading #track-meter{display:block!important;margin:2px 0 0;color:#bcc8d8;font-size:var(--practice-font-size,16px)}.timeline-foot #status{margin:0;min-width:0;max-width:45%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--practice-font-size,16px)}.status-row{min-height:0}.status-row #save-state{margin-left:auto}

/* Keep all background hit targets out of open modal editors. */
body:has(dialog[open]) .app,body:has(dialog[open]) #video-panel{pointer-events:none}
body:has(dialog[open]) dialog,body:has(dialog[open]) dialog *{pointer-events:auto}
#loop-editor-dialog,#marker-editor-dialog{cursor:default;isolation:isolate}
#loop-editor-dialog::backdrop,#marker-editor-dialog::backdrop{background:rgba(0,0,0,.76);cursor:default;pointer-events:auto}
#loop-editor-dialog input:not(:disabled),#marker-editor-dialog input:not(:disabled){cursor:text}
#loop-editor-dialog :disabled,#marker-editor-dialog :disabled{cursor:not-allowed}
#marker-editor-form{width:100%;box-sizing:border-box}

#loop-editor-dialog .annotation-editor-heading,#marker-editor-dialog .annotation-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;min-width:0}#marker-editor-dialog .annotation-editor-heading h3,#loop-editor-dialog .annotation-editor-heading h3{margin:0;min-width:0;flex:1}#loop-editor-lock,#marker-editor-lock{float:none;flex:none;margin:0}#marker-editor-dialog .loop-name-label,#loop-editor-dialog .save-part{clear:both;width:100%;min-width:0}#marker-edit-name{box-sizing:border-box;max-width:100%}

.loop-pre-roll-field{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}.loop-pre-roll-field input{width:90px;padding:6px 8px;border:1px solid #697689;border-radius:4px;background:#20242b;color:#fff}.loop-pre-roll-field small{flex-basis:100%;color:#bec8d8;font-size:var(--practice-font-size,16px)}#loop-editor-dialog.locked-editor .loop-pre-roll-field{opacity:.4}

.transport .tempo-percent output{background:#20242b!important;color:#fff!important;opacity:1!important;border:1px solid #8b9bb0;border-radius:4px;padding:5px 8px;line-height:24px;min-width:74px}.track-heading #subtitle,.track-heading #track-meter{display:block!important;color:#edf2f8!important;opacity:1;font-size:16px!important;line-height:1.35;margin:3px 0 0}

#video-panel .video-seek-controls{display:flex;align-items:center;gap:7px;flex:none;padding:7px 8px;background:#303744}#video-panel .video-seek-controls input{flex:1;min-width:50px;width:auto;accent-color:#7dbdff}#video-panel .video-seek-controls button{flex:none;padding:5px 7px;background:#414a59;color:#edf4ff;border:1px solid #708099;border-radius:4px;font-size:var(--practice-font-size,16px)}#video-seek-position{flex:none;min-width:88px;text-align:right;color:#fff;font-variant-numeric:tabular-nums;font-size:var(--practice-font-size,16px)}

#video-panel .video-scrub-track{position:relative;display:flex;align-items:center;flex:1;min-width:60px}#video-panel .video-scrub-track input{width:100%;margin:0;cursor:ew-resize}.video-scrub-center{position:absolute;left:50%;top:50%;height:14px;transform:translate(-50%,-50%);border-left:2px solid #dae4f2;pointer-events:none;opacity:.7}

#video-panel .video-seek-controls{justify-content:flex-start;flex-wrap:wrap;gap:6px}#video-panel .video-scrub-track{flex:0 1 140px;max-width:140px;min-width:90px}#video-panel #video-seek-position{min-width:0;flex:0 0 auto;text-align:left;margin-left:2px}

/* Arrow while hovering; hand only during an actual timeline drag. */
#timeline-scroll:not(.timeline-panning),#timeline-scroll:not(.timeline-panning) *{cursor:default}#timeline-scroll.timeline-panning,#timeline-scroll.timeline-panning *,#timeline-scroll .timeline-marker.dragging,#timeline-scroll .loop-lane.dragging-annotation,#timeline-scroll .loop-lane.dragging-annotation *{cursor:grabbing!important}

/* Reserve a fixed lock column; marker-name buttons must not push it out of the sidebar. */
#sidebar-marker-host .marker-chip{display:flex;align-items:center;min-width:0;max-width:100%;box-sizing:border-box;overflow:hidden}#sidebar-marker-host .marker-chip>button[data-marker]{flex:1 1 0;min-width:0;width:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#sidebar-marker-host .marker-chip>button.annotation-lock,.sidebar .part-item>button.annotation-lock{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;min-width:30px;max-width:30px;height:30px;padding:3px;margin:3px;text-align:center;line-height:1;overflow:hidden}

#sidebar-marker-host{min-width:0;overflow-x:hidden}#sidebar-marker-host .marker-list{min-width:0;width:100%;box-sizing:border-box}

/* Shared readable minimum for application controls and helper text. */
:root{--practice-font-size:16px}.locator-position label span{font-size:var(--practice-font-size)}.time-ruler{line-height:1.2}

/* Pointer selection must not leave a white highlight on loop endpoints. */
#loop-lane .loop-handle:not(:focus-visible),#loop-lane .loop-handle.selected:not(:focus-visible){outline:none;box-shadow:none}#loop-lane .loop-handle:focus-visible{outline:2px solid #ffdb36;outline-offset:-3px}

/* One height and surface treatment across the main transport row. */
.transport{--transport-control-height:50px}
.transport>.tempo-percent,.transport>.pitch-settings,.transport>.volume,.transport>.transport-video-button{box-sizing:border-box;min-height:var(--transport-control-height);height:var(--transport-control-height);align-items:center;border-radius:5px}
.transport>.pitch-settings,.transport>.volume{padding:6px 8px;background:#343a46;border-color:#73839a}
.transport .pitch-settings .pitch-control{height:36px;align-items:center}
.transport .pitch-settings .pitch-control input,.transport .pitch-settings .pitch-control button{box-sizing:border-box;height:36px;min-height:36px;border-radius:4px}
.transport .pitch-settings .pitch-control input{background:#20242b;border-color:#8b9bb0;font-variant-numeric:tabular-nums}
.transport .pitch-settings .pitch-control button{min-width:32px}
.transport>.transport-video-button{display:flex;justify-content:center;padding:6px 12px}
@media(max-width:1100px){.transport{--transport-control-height:48px}}
@media(max-width:800px){.transport>.pitch-settings{height:auto;min-height:var(--transport-control-height)}}

.recording-loading[hidden]{display:none!important}.recording-loading{position:fixed;top:90px;left:50%;transform:translateX(-50%);z-index:1200;width:min(460px,calc(100vw - 32px));padding:16px 20px;background:#303a49;color:#edf2f8;border:2px solid #88baff;border-radius:8px;box-shadow:0 8px 24px #0008;font-size:16px;pointer-events:none;display:flex;flex-direction:column;gap:10px}.recording-loading strong{font-size:19px;overflow-wrap:anywhere}.recording-loading ol{margin:0;padding-left:24px;line-height:1.6}.recording-loading li[data-state=waiting]{color:#a9b5c6}.recording-loading li[data-state=active]{color:#ffdf53;font-weight:700}.recording-loading li[data-state=done]{color:#c6e7d0}.recording-loading progress{width:100%;height:12px;accent-color:#64b3ff}.recording-loading[data-error=true]{border-color:#ef9b9b}.loading-video-preview #video-panel{visibility:visible!important;z-index:1100}.loading-video-preview #startup-loading{display:none}.loading-video-preview #video-loop-keys{visibility:hidden}

.transport>.zoom{display:flex;flex:none;align-items:center;gap:8px;height:var(--transport-control-height);box-sizing:border-box;padding:6px 8px;border:1px solid #73839a;border-radius:5px;background:#343a46;white-space:nowrap;margin:0}.transport>.zoom input{width:130px;min-width:70px}.transport>.zoom output{min-width:54px;color:#edf2f8;text-align:right}#video-panel:fullscreen #fullscreen{background:#285487;color:white;border-color:#9cc9ff}

.top-media-controls .song-library-button{align-self:stretch;padding:10px 16px;border:1px solid #7d9bc3;border-radius:5px;background:#35445a;color:#edf5ff;font-size:16px;font-weight:600;white-space:nowrap}#song-library-dialog{width:min(820px,calc(100vw - 32px));max-height:85dvh;padding:22px;background:#2e3139;color:#edf2f8;border:1px solid #8ba3c3;border-radius:8px;box-shadow:0 12px 50px #0009}#song-library-dialog::backdrop{background:#000b}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.library-heading h2{margin:0;font-size:24px}.library-heading button{padding:8px 16px;background:#285487;border:1px solid #86baf7;border-radius:4px;color:white}.library-filters{display:flex;gap:16px}.library-filters label{display:flex;flex-direction:column;gap:6px;min-width:0}.library-filters label:first-child{flex:1}.library-filters input,.library-filters select{font-size:16px;padding:10px;background:#20242b;color:white;border:1px solid #8b9bb0;border-radius:4px}.library-song-list{overflow:auto;max-height:52dvh;display:flex;flex-direction:column;gap:8px}.library-song{display:flex;flex-direction:column;gap:4px;flex:none;width:100%;text-align:left;padding:12px;background:#35445a;border:1px solid #708099;border-radius:5px;color:#edf2f8;font-size:16px}.library-song strong{font-size:18px}.library-song span{color:#d0dbea;overflow-wrap:anywhere}.library-song small{font-size:16px;color:#bac6d6}.library-song[aria-current=true]{border-color:#86baf7;background:#285487}.library-song:hover{background:#425673}.library-song:focus-visible{outline:2px solid #ffdb36;outline-offset:-3px}#song-library-dialog [data-library-count]{margin:12px 0;font-size:16px}@media(max-width:600px){.library-filters{flex-direction:column}}

.library-song strong{overflow-wrap:anywhere}

.join-tools{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.join-tools button{padding:8px 12px;border:1px solid #7e9cbe;border-radius:4px;background:#35445a;color:#edf2f8;font-size:16px}.join-tools #find-best-join{background:#285487;border-color:#86baf7}.join-tools output{flex-basis:100%;font-size:16px;line-height:1.4;color:#cddbea}#loop-editor-dialog.locked-editor .join-tools{opacity:.4}

.automatic-join-toggle{display:flex;align-items:center;gap:8px;flex-basis:100%;font-size:16px}.automatic-join-toggle input{width:18px;height:18px;accent-color:#64b3ff}

/* Gold group labels and utility controls on the tool row. */
.transport>.tempo-percent>span:first-child,.transport .pitch-control>label,.transport>.volume>label,.transport>.zoom>label{color:#ffdb64;font-weight:600}
.transport>.transport-utilities{display:flex;align-items:stretch;gap:8px;flex:none;margin-left:auto;min-height:var(--transport-control-height)}.transport-utilities>.button{display:flex;align-items:center;justify-content:center;padding:6px 14px;border:1px solid #73839a;border-radius:5px;background:#343a46;color:#edf2f8;font-size:16px;font-weight:600}

.transport .cents-control>label{color:#d0d8e4;font-weight:400}

/* Reuse the startup presentation whenever a recording opens. */
body.recording-opening.loading-video-visible #video-panel{visibility:visible!important;z-index:1100}
.recording-loading{top:90px;background:#000;border:1px solid #596170;box-shadow:none;width:min(380px,calc(100vw - 32px));padding:20px 24px;text-align:center}
.recording-loading ol,.recording-loading [data-loading-detail]{display:none}.recording-loading strong{font-size:20px;color:#edf2f8}.recording-loading progress{height:14px}.recording-loading[data-error=true] [data-loading-detail]{display:block;text-align:left}.recording-loading[data-error=true]{pointer-events:none}

/* Keep the original app-start screen separate from later recording loads. */
body.initializing #recording-loading{display:none!important}body.initializing #startup-loading{display:flex!important}body.initializing #video-panel{visibility:hidden!important}

.recording-loading{top:50%;left:50%;transform:translate(-50%,-50%);width:min(620px,calc(100vw - 40px));padding:38px 42px;gap:22px;border-radius:10px}.recording-loading strong{font-size:26px}.recording-loading progress{height:20px}

.timeline-foot{justify-content:center}.timeline-foot #snap-help{display:block!important;max-width:none;text-align:center}.status-row #status:not(.error){display:none}.status-row #status.error{display:block;flex:1;white-space:normal;color:#ffa48f}

.empty-track-prompt{display:none}.timeline-body{position:relative}.empty-track .empty-track-prompt{display:block;position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;margin:0;padding:24px;color:#d3deec;font-size:22px;text-align:center;pointer-events:none}.empty-track .timeline-scroll,.empty-track .track-labels{visibility:hidden}.empty-track .track-heading #subtitle,.empty-track .track-heading #track-meter{display:none!important}.empty-track .transport>*:not(.transport-utilities){opacity:.45;pointer-events:none}

.library-import-empty{background:none;border:0;color:#9dcbff;text-align:left;text-decoration:underline;font-size:16px;padding:12px 0;cursor:pointer}.library-import-empty:hover{color:#d1e8ff}.library-import-empty:focus-visible{outline:2px solid #ffdb36;outline-offset:3px}

/* Lock label changes must not change editor heading geometry. */
#loop-editor-lock,#marker-editor-lock{box-sizing:border-box;min-width:120px;white-space:nowrap;text-align:center;line-height:1.3}
#loop-editor-dialog,#marker-editor-dialog{scrollbar-gutter:stable}
