.trim-window{position:fixed;z-index:41;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:12px;width:min(94vw,560px);max-height:94vh;padding:16px;background:var(--sheet);border:1px solid var(--border);border-radius:0;box-shadow:0 8px 32px rgb(var(--shadow-rgb) / .45)}.trim-close{position:absolute;top:8px;right:8px;width:36px;height:36px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--muted);border:none;font-size:16px;touch-action:manipulation}.trim-close:active{background:var(--pressed)}.trim-title{text-align:center;font-size:15px;font-weight:600;color:var(--muted)}.trim-wave-wrap{position:relative;height:clamp(96px,24vh,160px);touch-action:none;-webkit-user-select:none;user-select:none}.trim-canvas{display:block;width:100%;height:100%;border-radius:0;background:var(--surface-2);border:1px solid var(--border)}.trim-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px;pointer-events:none}.trim-controls{display:flex;align-items:center;justify-content:center;gap:14px}.trim-play-btn{width:48px;height:48px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--ink);border:1px solid var(--border);touch-action:manipulation}.trim-play-btn:active{background:var(--pressed)}.trim-play-btn:disabled{opacity:.45}.trim-range{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}.trim-confirm-btn{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 16px;font-size:16px;font-weight:600;color:#fff;background:var(--accent);border:none;border-radius:0;touch-action:manipulation}.trim-confirm-btn:active{filter:brightness(.9)}.trim-confirm-btn:disabled{opacity:.45}.trim-error{text-align:center;font-size:15px;color:var(--ink);padding:8px 4px 4px}.trim-error-btns{display:flex;gap:10px}.trim-error-btns>*{flex:1}.trim-secondary-btn{padding:14px 16px;font-size:16px;font-weight:600;color:var(--ink);background:var(--surface-2);border:1px solid var(--btn-edge-shade);border-radius:0;touch-action:manipulation;box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent);text-shadow:0 1px 0 var(--carve-text)}.trim-secondary-btn:active{background:var(--pressed)}.trim-confirm-scrim{z-index:42;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.trim-confirm-card{position:fixed;z-index:43;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:12px;width:min(90vw,360px);padding:16px;background:var(--sheet);border:1px solid var(--border);border-radius:0;box-shadow:0 8px 32px rgb(var(--shadow-rgb) / .45)}.trim-discard-btn{padding:14px 16px;font-size:16px;font-weight:600;color:#fff;background:var(--danger);border:none;border-radius:0;touch-action:manipulation}.trim-discard-btn:active{filter:brightness(.9)}.app{display:flex;flex-direction:column;height:100%;width:100%;--fab-size: 48px;--tool-btn-h: 34px;--tool-gap: 4px;--btn-line: transparent;--cat-line: color-mix(in srgb, #000 16%, var(--surface-2));--btn-edge-shade: color-mix(in srgb, #000 16%, transparent);--cat-line-soft: color-mix(in srgb, #000 24%, var(--surface-2));--btn-line-grad: linear-gradient( to bottom, transparent 5%, var(--btn-line) 5%, var(--btn-line) 95%, transparent 95% );--cat-line-grad: linear-gradient( to bottom, transparent 5%, var(--cat-line) 5%, var(--cat-line) 95%, transparent 95% );--cat-line-soft-grad: linear-gradient( to bottom, var(--cat-line-soft) 0, var(--cat-line-soft) calc(100% - 3px) , transparent calc(100% - 3px) );--cat-line-soft-grad-up: linear-gradient( to bottom, transparent 0, transparent 3px, var(--cat-line-soft) 3px );--btn-line-grad-h: linear-gradient( to right, transparent 5%, var(--btn-line) 5%, var(--btn-line) 95%, transparent 95% );--cat-line-grad-h: linear-gradient( to right, transparent 5%, var(--cat-line) 5%, var(--cat-line) 95%, transparent 95% )}:root[data-theme=night] .app{--cat-line: color-mix(in srgb, #fff 16%, var(--surface-2));--cat-line-soft: color-mix(in srgb, #fff 24%, var(--surface-2))}@keyframes btn-press-pulse{0%{background-color:var(--pressed);box-shadow:inset 0 0 0 2px var(--accent)}}.btn-press-pulse{animation:btn-press-pulse .18s ease-out}@media(prefers-reduced-motion:reduce){.btn-press-pulse{animation:none}}.app.is-editing:after{content:"";position:fixed;top:0;right:0;bottom:0;left:0;border-radius:0;pointer-events:none;z-index:50;box-shadow:inset 0 0 8px 1px color-mix(in srgb,var(--accent) 65%,transparent),inset 0 0 30px 6px color-mix(in srgb,var(--accent) 35%,transparent)}.topbar{display:flex;align-items:center;gap:var(--tool-gap);padding:max(6px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 6px 0;background:var(--surface)}.topbar>*{flex:0 0 auto}.topbar>.topbar-tools{display:flex;align-items:center;align-self:stretch;gap:var(--tool-gap);flex:1 1 auto;min-width:0;overflow-x:auto;touch-action:pan-x}.topbar-tools>*{flex:0 0 auto}.tb-group{display:contents}.tb-group>*{flex:0 0 auto}.topbar-tools,.notebar,.bartools-actions{scrollbar-width:none}.topbar-tools::-webkit-scrollbar,.notebar::-webkit-scrollbar,.bartools-actions::-webkit-scrollbar{display:none}.brand{font-weight:700;letter-spacing:.5px;color:var(--accent)}.topbar-menu{position:relative;align-self:stretch;display:flex;align-items:center;gap:var(--tool-gap);flex:0 0 auto;background:var(--surface);padding-left:max(7px,env(safe-area-inset-left));padding-right:calc(var(--tool-gap) * 2);border-right:1px solid var(--border);margin-right:var(--tool-gap)}.topbar-history{position:relative;align-self:stretch;display:flex;align-items:center;flex:0 0 auto;margin-left:auto;background:var(--surface);padding-left:calc(var(--tool-gap) * 2);padding-right:max(7px,env(safe-area-inset-right));border-left:1px solid var(--border)}.topbar-history .toolbar{background:transparent;padding:0;gap:var(--tool-gap)}.topbar-history .toolbar-btn{min-width:41px;font-size:18px}.topbar .toolbar-btn-voice{flex:0 0 auto;width:41px;padding:0;font-size:13px}.tb-sep{flex:0 0 auto;width:1px;height:18px;background:var(--muted);opacity:.5;margin:0 var(--tool-gap)}.ghost-btn{font-size:13px;color:var(--muted);padding:6px 10px;border-radius:8px;background:var(--surface-2)}.ghost-btn:active{background:var(--pressed)}.topbar .ghost-btn{display:inline-flex;align-items:center;min-height:var(--tool-btn-h);padding-top:0;padding-bottom:0}.topbar-menu .ghost-btn{min-width:41px;padding-left:0;padding-right:0;justify-content:center}.topbar.is-collapsed{display:none}.topbar-fold-fab{position:absolute;top:8px;left:max(7px,env(safe-area-inset-left));z-index:5;display:inline-flex;align-items:center;justify-content:center;min-width:41px;min-height:var(--tool-btn-h);border-radius:8px;font-size:13px;color:var(--muted);background:var(--surface-2);border:1px solid var(--border)}.topbar-fold-fab:active{background:var(--pressed)}.install-btn{color:var(--accent);white-space:nowrap}.shift-fab{position:absolute;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:5;width:var(--fab-size);height:var(--fab-size);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:20px;background:var(--surface-2);color:var(--ink);border:1px solid var(--border);box-shadow:0 2px 8px rgb(var(--shadow-rgb) / .4);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.shift-fab.held{background:var(--pressed);transform:scale(.94)}.shift-fab.focused{background:var(--accent);color:var(--on-accent-ink)}.mode-fab{position:absolute;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:5;width:var(--fab-size);height:var(--fab-size);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:20px;background:var(--surface-2);color:var(--ink);border:1px solid var(--border);box-shadow:0 2px 8px rgb(var(--shadow-rgb) / .4);touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.mode-fab.active{background:var(--accent);color:var(--on-accent-ink);border-color:var(--accent)}.app.landscape{--fab-size: 44px}.app.landscape .mode-fab{font-size:18px}.ctrl-stick{position:absolute;bottom:max(64px,calc(env(safe-area-inset-bottom) + 50px));z-index:6;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.ctrl-stick.left{left:max(14px,env(safe-area-inset-left))}.ctrl-stick.right{right:max(14px,env(safe-area-inset-right))}.ctrl-pad-handle{position:absolute;width:20px;height:20px;padding:0;border:none;background:none;color:var(--muted);display:flex;align-items:center;justify-content:center;opacity:.93;touch-action:none;z-index:1}.ctrl-pad-handle svg{width:12px;height:12px}.ctrl-stick.left .ctrl-pad-handle{top:-10px;left:-10px}.ctrl-stick.right .ctrl-pad-handle{top:-10px;right:-10px}.ctrl-pad-handle:after{content:"";position:absolute;left:50%;top:50%;width:7px;border-top:1px dotted currentColor;transform-origin:0 0}.ctrl-stick.left .ctrl-pad-handle:after{transform:rotate(45deg) translate(8px)}.ctrl-stick.right .ctrl-pad-handle:after{transform:rotate(135deg) translate(8px)}.ctrl-pad-handle.moving{color:var(--accent)}.ctrl-history-btn{position:absolute;width:28px;height:21px;padding:0;border:1px solid var(--border);border-radius:3px;background:var(--surface-2);color:var(--muted);display:flex;align-items:center;justify-content:center;opacity:.93;touch-action:none;z-index:1}.ctrl-stick.left .ctrl-history-btn{top:-9.5px;right:-13px;transform:rotate(45deg);box-shadow:1.4px 1.4px 5px rgb(var(--shadow-rgb) / .35)}.ctrl-stick.right .ctrl-history-btn{top:-9.5px;left:-13px;transform:rotate(-45deg);box-shadow:-1.4px 1.4px 5px rgb(var(--shadow-rgb) / .35)}.ctrl-history-btn:disabled{opacity:.45}.ctrl-history-glyph{width:13px;height:13px}.ctrl-stick.left .ctrl-history-glyph{transform:rotate(-45deg)}.ctrl-stick.right .ctrl-history-glyph{transform:rotate(45deg)}.ctrl-stick-base{position:relative;width:88px;height:88px;border-radius:999px;background:transparent;box-shadow:0 2px 10px rgb(var(--shadow-rgb) / .35);opacity:.93;display:flex;align-items:center;justify-content:center;touch-action:none}.ctrl-stick-knob{width:36px;height:36px;border-radius:999px;background:var(--accent);display:flex;align-items:center;justify-content:center;box-shadow:0 1px 5px rgb(var(--shadow-rgb) / .45);transition:transform .13s ease;pointer-events:none}.ctrl-stick-knob.held{transition:none}.ctrl-stick-knob .note-glyph{height:20px;color:var(--on-accent-ink)}.ctrl-dpad{position:relative;width:88px;height:88px;display:flex;align-items:center;justify-content:center;opacity:.93;filter:drop-shadow(0 2px 5px rgb(var(--shadow-rgb) / .35));touch-action:none}.ctrl-dpad-btn{position:absolute;display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid var(--border);border-radius:3px;background:var(--surface-2);font-size:10px;line-height:1;color:var(--muted);touch-action:none}.ctrl-dpad-btn.pressed{color:var(--accent);background:var(--pressed)}.ctrl-dpad-btn.up{top:calc(50% - 42px);left:calc(50% - 14px)}.ctrl-dpad-btn.down{top:calc(50% + 14px);left:calc(50% - 14px)}.ctrl-dpad-btn.west{left:calc(50% - 42px);top:calc(50% - 14px)}.ctrl-dpad-btn.east{left:calc(50% + 14px);top:calc(50% - 14px)}.ctrl-dpad-center{position:relative;width:28px;height:28px;padding:0;border:0;border-radius:3px;background:var(--accent);color:var(--on-accent-ink);display:flex;align-items:center;justify-content:center;touch-action:none}.ctrl-dpad-center .note-glyph{height:18px}.ctrl-dpad-center .ctrl-dpad-rest{font-family:Bravura,serif;font-size:15px;line-height:1}.ctrl-dpad-hold-ring{position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;width:32px;height:32px;pointer-events:none}.ctrl-dpad-hold-ring rect{fill:none;stroke:var(--on-accent-ink);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;animation:ctrl-hold-progress .75s linear forwards}@keyframes ctrl-hold-progress{to{stroke-dashoffset:0}}.ctrl-stick-dial{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.ctrl-stick-chassis{fill:var(--surface-2);stroke:var(--border);stroke-width:1}.ctrl-stick-wedge{fill:var(--accent);opacity:.18}.ctrl-stick-step{fill:var(--surface-2);stroke:var(--border);stroke-width:1}.ctrl-stick-label{position:absolute;display:flex;align-items:center;justify-content:center;color:var(--muted);transform:translate(-50%,-50%);transition:transform .16s ease-out;pointer-events:none}.ctrl-stick-label .note-glyph{height:14px}.ctrl-stick-label.candidate{color:var(--accent)}.ctrl-stick-label.dimmed{opacity:.25;filter:blur(1px)}.ctrl-stick-label.dotted{animation:ctrl-dot-pulse .32s ease-out}@keyframes ctrl-dot-pulse{0%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.18)}to{transform:translate(-50%,-50%) scale(1)}}.ctrl-stick-base.reject{animation:ctrl-reject .3s ease-in-out}@keyframes ctrl-reject{0%,to{translate:0 0}25%{translate:-6px 0}50%{translate:6px 0}75%{translate:-4px 0}}.ctrl-place-pulse{fill:var(--sel, var(--accent));transform-box:fill-box;transform-origin:center;animation:ctrl-place-pulse .45s ease-out forwards}@keyframes ctrl-place-pulse{0%{opacity:.45;transform:scale(.5)}to{opacity:0;transform:scale(1.7)}}.playback-fabs{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));z-index:5;display:flex;flex-direction:column;gap:8px}.playback-fabs.is-horizontal{flex-direction:row}.playback-fab{width:var(--fab-size);height:var(--fab-size);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;background:var(--surface-2);color:var(--ink);border:1px solid var(--border);box-shadow:0 2px 8px rgb(var(--shadow-rgb) / .4);touch-action:none;user-select:none;-webkit-user-select:none}.playback-fab:active:not(:disabled){background:var(--pressed)}.playback-fab:disabled{opacity:.4}.playback-fab.active{background:var(--accent);color:var(--on-accent-bright)}.playback-fab svg{filter:drop-shadow(0 -.5px .5px rgb(0 0 0 / .4)) drop-shadow(0 1px .5px var(--carve-glyph))}.picked-up{opacity:.35;transition:opacity .12s ease}.drag-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;pointer-events:none}.drag-lift{position:absolute;transform:scale(1.12);transform-origin:center;filter:drop-shadow(0 10px 26px rgb(var(--shadow-rgb) / .55));will-change:left,top}.drag-lift>*{opacity:1!important;width:100%;height:100%;margin:0}.cat-ghost{display:flex;align-items:center;gap:var(--tool-gap)}.drag-lift>.cat-ghost{opacity:.85!important}.cat-ghost>*{flex:0 0 auto;opacity:1!important;margin:0}.fab-preview{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;pointer-events:none}.fab-preview-edge{position:absolute;background:color-mix(in srgb,var(--accent) 55%,transparent);box-shadow:0 0 10px 1px color-mix(in srgb,var(--accent) 50%,transparent);border-radius:2px}.fab-preview-ghost{position:absolute;border:2px dashed color-mix(in srgb,var(--accent) 85%,transparent);border-radius:50%;background:color-mix(in srgb,var(--accent) 12%,transparent);transition:left 60ms linear,top 60ms linear}.fab-preview-ghost.blocked{border-color:color-mix(in srgb,var(--danger, #d9534f) 90%,transparent);border-style:solid;background:color-mix(in srgb,var(--danger, #d9534f) 14%,transparent)}.reorder-shadow{position:fixed;z-index:1000;pointer-events:none;background:color-mix(in srgb,var(--accent) 16%,transparent);border:2px dashed color-mix(in srgb,var(--accent) 70%,transparent);border-radius:0;box-sizing:border-box;transition:left .12s ease,top .12s ease}.notebar{display:flex;align-items:center;gap:4px;padding:4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left));background:var(--surface);border-bottom:var(--divider-w) solid var(--divider);overflow-x:auto;touch-action:pan-x}.notebar-btn{flex:0 0 auto;min-width:41px;padding:0;min-height:var(--tool-btn-h);display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:15px;font-weight:600}.note-glyph{display:block;color:inherit;height:32px;width:auto}.notebar-btn.active{background:var(--accent);color:var(--on-accent-ink)}.mark-btn{flex:0 0 auto;width:41px;height:var(--tool-btn-h);display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:20px;font-weight:600;overflow:hidden}.mark-btn .mark-glyph{display:inline-block;line-height:1}.mark-btn.active{background:var(--accent);color:var(--on-accent-ink)}.mark-btn:disabled{opacity:.35}.mark-btn.smufl .mark-glyph{font-family:Bravura,serif}.note-rest-toggle{position:relative;width:41px;overflow:hidden}.note-rest-toggle .nr-rest,.note-rest-toggle .nr-note{position:absolute;display:flex;align-items:center;justify-content:center;transition:transform .12s ease,opacity .12s ease;z-index:1;opacity:.325}.note-rest-toggle .nr-rest{top:3px;left:3px;width:17px;height:20px;font-family:Bravura,serif;font-size:13px;line-height:1;transform-origin:top left;transform:scale(.8)}.note-rest-toggle .nr-note{right:2px;bottom:2px;width:17px;height:22px;transform-origin:bottom right;transform:scale(.8)}.note-rest-toggle .nr-note .note-glyph{height:20px;width:auto}.note-rest-toggle .nr-active{opacity:1;transform:scale(1.2)}.note-rest-toggle .nr-slash{position:absolute;left:50%;top:15%;width:1.2px;height:70%;pointer-events:none;background:var(--muted);transform:translate(-50%) rotate(20deg);opacity:.6}.notebar>.tb-sep{margin-left:auto}.tuplet-glyph{display:block;color:inherit}.tuplet-picker{position:fixed;z-index:31;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:14px;padding:12px 14px 14px;box-shadow:0 12px 32px rgb(var(--shadow-rgb) / .35)}.tuplet-picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tuplet-choice{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 10px;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);color:var(--ink);font:inherit}.tuplet-choice:disabled{opacity:.35}.tuplet-choice-name{font-size:11px;color:var(--muted)}.notebar-btn:disabled{opacity:.35}.app.landscape .notebar.notebar-inline,.app.portrait .notebar.notebar-inline{flex:0 0 auto;overflow-x:visible;touch-action:auto;gap:var(--tool-gap);padding:0;margin:0;background:transparent;border-bottom:none}.notebar-inline>.tb-sep{margin-left:var(--tool-gap)}.stage{flex:1;min-height:0;display:flex;position:relative}.gesture-surface{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;touch-action:none;background:var(--desk)}.view-pager{display:flex;width:200%;height:100%;transition:transform .24s ease;will-change:transform}.view-page{position:relative;flex:0 0 50%;width:50%;height:100%;overflow:hidden}.pianoroll{width:100%;height:100%;background:var(--surface)}.pianoroll-svg{display:block}.viewport-layer{position:absolute;top:0;left:0;transform-origin:0 0;will-change:transform}.score-svg,.magnifier-glass{display:block;--ink: #14181c;--staff: #3a3f46;--muted: #5f6672;--accent: #2f6fed;--accent-2: #d05a28;--cursor: #d98f00;--danger: #d92d2d;--shadow-rgb: 0 0 0}.magnifier-glass{background:#fff;border-radius:12px;box-shadow:0 2px 6px rgb(var(--shadow-rgb) / .22),0 14px 36px rgb(var(--shadow-rgb) / .3)}.page-card{filter:drop-shadow(0 2px 6px rgb(var(--shadow-rgb) / .22)) drop-shadow(0 10px 28px rgb(var(--shadow-rgb) / .28))}.header-field-mark{fill:none;stroke:color-mix(in srgb,var(--muted) 40%,transparent);stroke-width:1}.score-svg[data-active-voice="1"] [data-voice="1"]{--ink: #007f00;--rest-ink: #007f00}.score-svg[data-active-voice="2"] [data-voice="2"]{--ink: #c53f00;--rest-ink: #c53f00}.score-svg[data-active-voice="3"] [data-voice="3"]{--ink: #c31989;--rest-ink: #c31989}.score-svg [data-voice="1"]{--sel: #00c400}.score-svg [data-voice="2"]{--sel: #ff6717}.score-svg [data-voice="3"]{--sel: #f231ac}.toolbar-btn.toolbar-btn-voice{font-weight:700;min-width:2em;color:var(--voice-color)}.voice-toggle-num{font-size:.78em;margin-left:1px}@keyframes liftPulse{0%,to{opacity:.65}50%{opacity:1}}.move-affordance{animation:liftPulse 1s ease-in-out infinite}.gesture-hud{position:absolute;top:12px;left:50%;z-index:45;transform:translate(-50%);background:rgb(var(--shadow-rgb) / .65);color:#fff;font-size:13px;padding:6px 14px;border-radius:999px;pointer-events:none;white-space:nowrap}.bartools{display:flex;align-items:center;gap:8px;box-sizing:border-box;padding:4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left));background:var(--surface)}.bartools-info{font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}.bartools-actions{display:flex;gap:8px;flex:1;overflow-x:auto;touch-action:pan-x}.bartools-clip{display:flex;gap:8px;flex:0 0 auto}.bartools-btn{flex:0 0 auto}.bartools-btn{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tool-btn-h);padding:0 7px;border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:15px;font-weight:600;white-space:nowrap}.bartools-btn:active{background:var(--pressed)}.bartools-btn:disabled{opacity:.4}.bar-select-highlight{fill:var(--accent);opacity:.14}.bar-fresh-highlight{fill:#1f9d55;opacity:.16}.selbar{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left));background:var(--surface);border-top:var(--divider-w) solid var(--divider)}.selbar-info{font-size:13px;color:var(--muted);flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selbar-actions{display:flex;gap:8px}.selbar-hairpin{display:contents}.app.portrait .selbar-actions{min-width:0;overflow-x:auto;touch-action:pan-x;scrollbar-width:none}.app.portrait .selbar-actions::-webkit-scrollbar{display:none}.selbar-btn{flex:0 0 auto;min-width:55px;min-height:var(--tool-btn-h);border-radius:8px;background:var(--surface-2);color:var(--muted);font-weight:600}.selbar-btn:active{background:var(--pressed)}.selbar-btn.active{background:var(--accent);color:var(--on-accent)}.selbar-btn.insert{font-size:18px;letter-spacing:-1px}.selbar-btn.danger{color:var(--danger)}.picker-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20}.picker{position:fixed;z-index:21;transform:translate(-50%,12px);background:var(--elevated);border:1px solid var(--border);border-radius:12px;padding:6px;min-width:120px;box-shadow:0 8px 24px rgb(var(--shadow-rgb) / .5)}.picker-title{font-size:11px;color:var(--muted);padding:4px 8px}.picker-item{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 12px;border-radius:8px;color:var(--ink);font-weight:600}.picker-item:active{background:var(--pressed)}.picker-dot{width:10px;height:10px;border-radius:50%;background:var(--ink)}.picker-dot[data-kind=rest]{background:var(--muted)}.splash-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;background:var(--bg)}.splash-overlay .brand{font-size:28px}.modal-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:rgb(var(--shadow-rgb) / .5)}.toolbar-gear-scrim{z-index:32}.modal{position:fixed;z-index:31;left:50%;bottom:0;transform:translate(-50%);width:min(96vw,480px);max-height:80vh;overflow-y:auto;background:var(--sheet);border:1px solid var(--border);border-radius:16px 16px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px rgb(var(--shadow-rgb) / .5)}.drawer{position:fixed;z-index:31;top:0;left:0;bottom:0;width:min(92vw,360px);display:flex;flex-direction:column;background:var(--sheet);border-right:1px solid var(--border);box-shadow:8px 0 30px rgb(var(--shadow-rgb) / .5)}.drawer-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;border-bottom:1px solid var(--border)}.drawer-title{display:flex;flex-direction:column;min-width:0}.drawer-scores{padding-top:env(safe-area-inset-top);width:min(78vw,306px);background:var(--surface-2)}.drawer-scores .drawer-head{padding:0;gap:0;border-bottom:none}.drawer-scores .drawer-title{flex:1;height:55px;justify-content:center}.drawer-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted)}.drawer-head-btn{display:inline-flex;align-items:center;justify-content:center;min-width:41px;height:var(--tool-btn-h);padding:0 10px;border:none;border-radius:0;background:var(--surface-2);color:var(--muted);font-size:13px}.drawer-head-btn:active{background:var(--pressed)}.drawer-foot{flex:none;display:flex;justify-content:flex-end;padding-bottom:env(safe-area-inset-bottom)}.drawer-foot .drawer-head-btn{border-top:1px solid var(--cat-line-soft);border-left:1px solid var(--cat-line-soft)}.drawer-scores .drawer-head-btn{background:transparent;box-shadow:none;text-shadow:none}.drawer-foot .drawer-head-btn:last-child{min-width:41px;padding:0;font-size:16px;line-height:1}.drawer-scores .drawer-score-name{width:100%;max-width:none;padding:0 12px;white-space:normal;line-height:25px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;font-family:Georgia,Iowan Old Style,Palatino Linotype,Times New Roman,serif;font-size:19px;background:transparent}.drawer-scores .drawer-score-name-input{height:55px;font-family:Georgia,Iowan Old Style,Palatino Linotype,Times New Roman,serif;font-size:19px}.drawer-score-name{display:block;max-width:100%;margin:0;padding:1px 4px 1px 0;border:none;background:none;font-family:inherit;font-size:18px;font-weight:700;text-align:left;color:var(--ink);cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drawer-score-name:hover{color:var(--accent)}.drawer-score-name-input{width:100%;box-sizing:border-box;padding:1px 4px;border:1px solid var(--accent);border-radius:4px;background:var(--surface-2);font-family:inherit;font-size:18px;font-weight:700;color:var(--ink)}.drawer-body{flex:1;min-height:0;overflow-y:auto;padding:12px 16px calc(16px + env(safe-area-inset-bottom)) 0}.drawer-scores .drawer-body{padding-top:0;padding-bottom:16px}.drawer-body .modal-section-title:first-of-type{margin-top:12px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-primary{width:100%;min-height:48px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-weight:700;margin-bottom:12px}.load-score-toggle{width:100%;min-height:44px;display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:10px;background:var(--pressed);color:var(--ink);font-weight:600;margin-bottom:12px}.load-score-toggle[aria-expanded=true]{margin-bottom:6px}.load-score-caret{color:var(--muted);font-size:12px}.load-score-hint{color:var(--muted);font-weight:400;font-size:12px}.drawer-accordion{display:flex;flex-direction:column;background:var(--surface-2)}.drawer-parent-btn,.drawer-sub-btn,.drawer-subsub-btn{box-sizing:border-box;min-height:44px;margin:0;display:flex;align-items:center;gap:10px;padding:0 14px;border:none;border-radius:0;background:var(--surface-2);color:var(--ink);font:inherit;font-size:15px;text-align:left;cursor:pointer;box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent);text-shadow:0 1px 0 var(--carve-text)}.drawer-parent-btn:active:enabled,.drawer-sub-btn:active:enabled,.drawer-subsub-btn:active:enabled{background:var(--pressed)}.drawer-parent-btn:disabled,.drawer-sub-btn:disabled,.drawer-subsub-btn:disabled{color:var(--muted);cursor:default;text-shadow:none}.drawer-hint{margin-left:auto;color:var(--muted);font-weight:400;font-size:12px;text-shadow:none}.drawer-parent-btn,.drawer-sub-btn,.drawer-subsub-btn{margin-left:0;width:calc(100% + 16px)}.drawer-accordion>.drawer-parent-btn{border-top:1px solid var(--cat-line-soft)}.drawer-accordion>:last-child{border-bottom:1px solid var(--cat-line-soft)}.drawer-sub-btn,.drawer-subsub-btn{background:color-mix(in srgb,#fff 35%,var(--surface-2));box-shadow:none;text-shadow:none}.drawer-subsub-btn{background:color-mix(in srgb,#fff 70%,var(--surface-2))}.drawer-sub-btn>svg,.drawer-subsub-btn>svg{flex:none;color:var(--muted)}:root[data-theme=night] .drawer-sub-btn,:root[data-theme=night] .drawer-subsub-btn,:root[data-theme=night] .drawer-staff-list li,:root[data-theme=night] .drawer-staff-card.dragging,:root[data-theme=night] .score-list li,:root[data-theme=night] .upload-row,:root[data-theme=night] .uploads-empty{--ink: #14181c;--muted: #3f464f;--danger: #c22525}:root[data-theme=night] .drawer-sub-btn>svg,:root[data-theme=night] .drawer-subsub-btn>svg{color:var(--ink)}:root[data-theme=night] .drawer-sub-btn:active:enabled{background:color-mix(in srgb,#fff 24%,var(--surface-2))}:root[data-theme=night] .drawer-subsub-btn:active:enabled{background:color-mix(in srgb,#fff 55%,var(--surface-2))}.help-title{padding:0 8px 0 14px;font-size:15px;font-weight:600}.help-lang{display:flex}.help-lang .drawer-head-btn{border-left:1px solid var(--cat-line-soft)}.help-lang .drawer-head-btn[aria-pressed=true]{color:var(--accent);font-weight:700}.drawer-foot .drawer-help-btn{border-left:1px solid var(--cat-line-soft)}.help-tip-row{display:flex;width:calc(100% + 16px)}.help-tip-row>.drawer-sub-btn{width:auto;flex:1;min-width:0}.help-tip-row>.help-tip-show{flex:none;justify-content:center;width:48px;padding:0;color:var(--accent)}.help-answer{width:calc(100% + 16px);padding:10px 14px 12px;background:color-mix(in srgb,#fff 70%,var(--surface-2));color:var(--ink);font-size:13.5px;line-height:1.45;white-space:pre-line}.help-answer .help-key{display:inline-block;min-width:24px;padding:0 5px;border:1px solid color-mix(in srgb,var(--ink) 40%,transparent);border-radius:5px;background:color-mix(in srgb,#fff 60%,transparent);box-shadow:0 1px color-mix(in srgb,var(--ink) 30%,transparent);font:inherit;line-height:1.3;text-align:center}.help-answer .help-graphic{display:block;width:100%;max-width:250px;height:auto;margin:2px auto 10px}:root[data-theme=night] .help-answer{--ink: #14181c;--muted: #3f464f}.drawer-help .drawer-body{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.drawer-help .drawer-title{flex:none}.help-search{position:relative;display:flex;align-items:center;flex:1;min-width:0;padding:0 6px 0 0}.help-search-input{flex:1;min-width:0;height:36px;padding:0 34px 0 10px;border:1px solid var(--cat-line-soft);border-radius:8px;background:var(--surface-2);color:var(--ink);font:inherit;font-size:14px}.help-search-input:placeholder-shown{padding-right:10px}.help-search-input:focus-visible{outline:none;border-color:var(--accent)}.help-search-input::-webkit-search-cancel-button{-webkit-appearance:none}.help-search-clear{position:absolute;right:10px;width:30px;height:30px;padding:0;border:none;border-radius:50%;background:none;color:var(--muted);font-size:14px;line-height:30px;text-align:center}.help-search-cat{width:calc(100% + 16px);padding:12px 14px 4px;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.help-mark{padding:0 1px;border-radius:3px;background:color-mix(in srgb,var(--accent) 28%,transparent);color:inherit}.help-noresults{width:calc(100% + 16px);padding:16px 14px;color:var(--muted);font-size:13.5px}.help-didyoumean{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}.help-suggestion{padding:4px 10px;border:1px solid color-mix(in srgb,var(--accent) 55%,transparent);border-radius:14px;background:none;color:var(--accent);font:inherit;font-size:13.5px;font-weight:600}.help-highlight{position:fixed;z-index:60;pointer-events:none;border:3px solid var(--accent);border-radius:10px;animation:help-pulse 1.4s ease-in-out infinite}@keyframes help-pulse{0%,to{box-shadow:0 0 color-mix(in srgb,var(--accent) 45%,transparent)}50%{box-shadow:0 0 0 7px color-mix(in srgb,var(--accent) 5%,transparent)}}.drawer-staff-list{list-style:none;margin:0;padding:0;width:calc(100% + 16px);display:flex;flex-direction:column}.drawer-staff-list li{display:flex;align-items:stretch;min-height:44px;background:color-mix(in srgb,#fff 70%,var(--surface-2))}.drawer-staff-name{flex:none;width:72px;display:flex;align-items:center;padding-left:14px;font-size:15px;color:var(--ink)}.drawer-staff-card{flex:1;min-width:0;display:flex;align-items:stretch}.drawer-staff-main{flex:1;min-width:0;display:flex;align-items:center;padding:0 8px;border:none;background:none;color:var(--ink);font:inherit;font-size:14px;text-align:left;cursor:pointer}.drawer-staff-main:disabled{cursor:default}.drawer-staff-clef{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.drawer-staff-action{width:48px;border:none;background:none;color:var(--muted);font-size:13px;cursor:pointer}.drawer-staff-action.danger{color:var(--danger)}.drawer-staff-action:disabled{opacity:.35;cursor:default}.drawer-staff-card.staff-hidden .drawer-staff-clef{opacity:.45}.drawer-staff-list.reordering .drawer-staff-card{transition:transform .16s ease}.drawer-staff-card.dragging{transition:none;position:relative;z-index:1;outline:2px solid var(--accent);box-shadow:0 6px 18px rgb(var(--shadow-rgb) / .45);background:color-mix(in srgb,#fff 70%,var(--surface-2))}.drawer-staff-card.dragging .toolbar-config-handle{cursor:grabbing;color:var(--ink)}.score-list{list-style:none;margin:0;padding:0;width:calc(100% + 16px);display:flex;flex-direction:column}.score-list li{display:flex;align-items:stretch;min-height:44px;background:color-mix(in srgb,#fff 70%,var(--surface-2))}.score-list li.current .score-name{font-weight:800}.score-open{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:6px 8px 6px 14px;color:var(--ink)}.score-name{font-weight:600}.score-date{font-size:11px;color:var(--muted)}.score-action{width:48px;color:var(--muted);font-size:16px}.score-action.danger{color:var(--danger)}.uploads-list{list-style:none;margin:0;padding:0;width:calc(100% + 16px);display:flex;flex-direction:column}.upload-row{display:flex;flex-direction:column;gap:2px;background:color-mix(in srgb,#fff 70%,var(--surface-2));padding:8px 14px}.upload-actions{display:flex;gap:6px;margin-top:2px}.upload-action{min-width:40px;min-height:32px;padding:0 8px;background:none;color:var(--muted);font-size:14px}.upload-action.danger{color:var(--danger)}.upload-name-input{box-sizing:border-box;width:100%;padding:1px 4px;border:1px solid var(--accent);border-radius:4px;background:transparent;font-family:inherit;font-size:14px;font-weight:600;color:var(--ink)}.uploads-empty{box-sizing:border-box;margin:0;width:calc(100% + 16px);min-height:44px;display:flex;align-items:center;padding:4px 14px;background:color-mix(in srgb,#fff 70%,var(--surface-2));color:var(--muted);font-size:13px}.modal-section-title{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);margin:16px 4px 6px}.modal-export{display:flex;gap:8px}.modal-export.nested{flex-direction:column;margin:0 0 12px 22px}.modal-export.nested .ctx-chip{background:var(--surface-2)}.toolbar-config{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}.toolbar-config li{display:flex;align-items:center;gap:4px}.toolbar-config-toggle{flex:1;display:flex;align-items:center;gap:8px;padding-left:8px}.toolbar-config-name{flex:1;min-height:38px;display:flex;align-items:center;padding:0 4px;font-size:14px;color:var(--ink)}.toolbar-config-name.is-hidden{color:var(--muted);text-decoration:line-through}.toolbar-config-gear{width:36px;min-height:38px;color:var(--muted);font-size:16px}.toolbar-config-gear.is-open{color:var(--ink)}.toolbar-config-handle{width:36px;min-height:38px;color:var(--muted);font-size:16px;touch-action:none;cursor:grab}.toolbar-config li.dragging{background:var(--surface-2);border-radius:10px}.toolbar-config li.dragging .toolbar-config-handle{cursor:grabbing;color:var(--ink)}.toolbar-gear-pop{position:fixed;z-index:33;min-width:200px;max-width:min(80vw,280px);max-height:60dvh;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:2px;background:var(--elevated);border:1px solid var(--border);border-radius:12px;padding:8px;box-shadow:0 10px 30px rgb(var(--shadow-rgb) / .55)}.toolbar-gear-row{display:flex;align-items:center;gap:10px;min-height:30px;padding:0 6px;font-size:14px;color:var(--ink);cursor:pointer}.toolbar-gear-row input:disabled{opacity:.4}.toolbar-gear-cat{font-weight:600}.toolbar-gear-sep{height:1px;background:var(--border);margin:4px 2px}.toolbar-config-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}.toolbar-config-hint{font-size:11px;color:var(--muted)}.settings-section{display:flex;flex-direction:column;gap:2px;margin-bottom:14px}.settings-section:last-child{margin-bottom:0}.settings-reset-btn{min-height:var(--tool-btn-h);padding:0 10px;border-radius:0;background:var(--surface-2);color:var(--ink);font-size:14px;font-weight:600;margin-top:4px}.settings-reset-btn:active{background:var(--pressed)}.settings-nv-value{display:flex;align-items:center;gap:6px}.settings-nv-value .note-glyph{height:20px}.settings-acc-glyph{font-family:Bravura,serif;font-size:20px;line-height:1;width:18px;text-align:center;flex:none}.nv-frac{display:inline-flex;align-items:center;line-height:1}.nv-frac-num,.nv-frac-den{font-size:11px}.nv-frac-num{transform:translateY(-3px)}.nv-frac-den{transform:translateY(3px)}.nv-frac-slash{margin:0 1px}.settings-voice-swatch{width:12px;height:12px;border-radius:50%;flex:none}.ctx-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:24}.ctx-menu{position:fixed;z-index:25;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--elevated);border:1px solid var(--border);border-radius:0;padding:10px;box-shadow:0 10px 30px rgb(var(--shadow-rgb) / .55)}.ctx-menu.landscape{width:min(92vw,256px)}.ctx-menu.portrait{width:min(92vw,520px)}.ctx-section-title{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:6px 4px 4px}.ctx-lane{margin-bottom:4px}.ctx-row{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}.ctx-row::-webkit-scrollbar{display:none}.ctx-lane-track{position:relative;height:3px;margin-top:4px;background:var(--pressed)}.ctx-lane-track.idle{visibility:hidden}.ctx-lane-thumb{position:absolute;top:0;bottom:0;background:var(--muted)}.ctx-chip{min-width:37px;min-height:37px;flex-shrink:0;padding:0 9px;border-radius:0;border:1px solid var(--cat-line-soft);background:var(--pressed);color:var(--ink);font-size:15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center}.ctx-chip.wide{flex:1;font-size:12px}.ctx-chip.active{background:var(--accent);color:var(--on-accent)}.ctx-chip.danger{color:var(--danger)}.ctx-chip.smufl{font-family:Bravura,serif;font-size:24px;line-height:1}.ctx-smufl-glyph{display:inline-block;line-height:1}.ctx-chip.smufl,.ctx-chip.dynamic{text-shadow:0 1px 0 var(--carve-text)}.ctx-chip .grace-glyph{filter:drop-shadow(0 1px 0 var(--carve-glyph))}.ctx-chip.active.smufl,.ctx-chip.active.dynamic{text-shadow:0 1px 0 color-mix(in srgb,#000 28%,transparent)}.ctx-chip.active .grace-glyph,.ctx-chip.active .note-glyph{filter:drop-shadow(0 1px 0 color-mix(in srgb,#000 32%,transparent))}.ctx-chip:active{filter:brightness(1.15)}.ctx-chip.rhythm{gap:3px;padding:0 8px}.ctx-chip.rhythm .note-glyph{height:22px}.ctx-rhythm-count{font-size:12px;font-weight:700}.ctx-chip.grace-variant{min-width:0;padding:4px 6px}.ctx-chip.grace-variant .grace-glyph,.ctx-chip.grace-value .grace-glyph{display:block;width:25px;height:25px}.tse-sheet{position:fixed;z-index:31;left:50%;bottom:calc(12px + env(safe-area-inset-bottom));transform:translate(-50%);width:min(96vw,480px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--sheet);border:1px solid var(--border);border-radius:0;padding:16px;box-shadow:0 4px 30px rgb(var(--shadow-rgb) / .5)}.tse-sheet.tse-centered{top:50%;bottom:auto;transform:translate(-50%,-50%)}.tse-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.tse-title{font-weight:700}.tse-warning{margin-bottom:12px;padding:8px 12px;border-radius:0;background:color-mix(in srgb,var(--danger, #d9534f) 15%,transparent);border:1px solid var(--danger, #d9534f);color:var(--ink);font-size:.85rem}.import-report-list{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto}.import-report-list li{padding:8px 12px;border-radius:10px;background:var(--surface-2);color:var(--ink);font-size:.9rem}.tse-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.tse-grid.cols-2{grid-template-columns:repeat(2,1fr)}.tse-grid.cols-3{grid-template-columns:repeat(3,1fr)}.tse-grid.tse-tempo-presets{grid-template-columns:repeat(7,minmax(0,1fr))}.tse-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:40px;padding:6px;border-radius:0;border:1px solid var(--btn-edge-shade);background:var(--surface-2);color:var(--ink);font-size:15px;font-weight:600;cursor:pointer;touch-action:manipulation;box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent);text-shadow:0 1px 0 var(--carve-text)}.tse-btn:active:not(:disabled){background:var(--pressed)}.tse-btn.active{background:var(--accent);color:var(--on-accent);text-shadow:0 1px 0 color-mix(in srgb,#000 28%,transparent)}.tse-btn:disabled{text-shadow:none;background:color-mix(in srgb,var(--surface-2) 40%,var(--sheet));color:color-mix(in srgb,var(--muted) 40%,var(--sheet))}.tse-sub{font-size:12px;font-weight:600;color:var(--muted)}.tse-btn.active .tse-sub{color:inherit}.tse-num{font-size:18px}.keysig-thumb{width:60px;height:48px;overflow:visible;filter:drop-shadow(0 1px 0 var(--carve-glyph))}.tse-btn.active .keysig-thumb{filter:drop-shadow(0 1px 0 color-mix(in srgb,#000 32%,transparent))}.tse-presets{display:flex;gap:8px;margin-bottom:14px}.tse-preset{flex:1;min-height:44px;padding:6px 4px}.tse-sig{display:flex;flex-direction:column;align-items:center;line-height:1;font-size:24px}.tse-sig>span{display:block;height:.86em;overflow:visible}.clef-glyph{flex:none;font-family:Bravura,serif;font-size:22px;line-height:1;width:44px;height:40px;display:flex;align-items:center;justify-content:center;overflow:visible}.barline-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.barline-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;border-radius:0;border:1px solid var(--btn-edge-shade);background:var(--surface-2);color:var(--ink);cursor:pointer;touch-action:manipulation;box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent);text-shadow:0 1px 0 var(--carve-text)}.barline-option.active{background:var(--accent);color:var(--on-accent);text-shadow:0 1px 0 color-mix(in srgb,#000 28%,transparent)}.barline-option:active:not(:disabled){background:var(--pressed)}.barline-option:disabled{text-shadow:none;background:color-mix(in srgb,var(--surface-2) 40%,var(--sheet));color:color-mix(in srgb,var(--muted) 40%,var(--sheet))}.barline-glyph{display:block;width:24px;height:24px}.barline-label{font-size:12px;font-weight:600;text-align:center;color:var(--muted)}.barline-option.active .barline-label{color:inherit}.dynamic-glyph{font-family:Georgia,Times New Roman,serif;font-style:italic;font-weight:700;font-size:24px;line-height:1}.ctx-chip.dynamic{font-family:Georgia,Times New Roman,serif;font-style:italic;font-weight:700}.tse-add-row{display:flex;position:sticky;bottom:0;padding-top:14px;background:var(--sheet)}.tse-add{flex:1 1 auto;height:52px;border-radius:0;border:1px solid var(--btn-edge-shade);background:var(--accent);color:var(--on-accent);font-size:18px;font-weight:800;letter-spacing:.3px;touch-action:manipulation;box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent),inset 0 -1px 0 var(--btn-edge-shade),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent);text-shadow:0 1px 0 color-mix(in srgb,#000 28%,transparent)}.tse-add:active{filter:brightness(1.15);transform:scale(.99)}.tse-sheet.tse-compact{padding:12px}.tse-compact .tse-head{margin-bottom:8px}.tse-compact .tse-heading{margin:0 0 4px}.tse-compact .tse-grid{margin-bottom:8px}.tse-compact .tse-wheel-wrap{padding:8px 16px}.tse-compact .tse-label{margin-bottom:4px}.tse-compact .tse-add-row{padding-top:10px}.tse-compact .tse-add{height:44px;font-size:17px}.hairpin-length{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 12px}.hairpin-step{width:44px;height:44px;border-radius:0;background:var(--surface-2);border:1px solid var(--btn-edge-shade);color:var(--ink);font-size:24px;font-weight:700;line-height:1;touch-action:manipulation;box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent);text-shadow:0 1px 0 var(--carve-text)}.hairpin-step:active:not(:disabled){background:var(--pressed)}.hairpin-step:disabled{opacity:.4}.hairpin-length-val{min-width:84px;text-align:center;font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--accent)}.hairpin-scrim{backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.hairpin-overlay{bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(94vw,440px)}.hairpin-canvas{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px 0 8px}.hairpin-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:62px;height:64px;padding:6px 8px;background:var(--surface-2);border:1px solid var(--btn-edge-shade);border-radius:0;color:var(--ink);touch-action:manipulation;box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent);text-shadow:0 1px 0 var(--carve-text)}.hairpin-slot.active{background:var(--accent);color:var(--on-accent);text-shadow:0 1px 0 color-mix(in srgb,#000 28%,transparent)}.hairpin-slot.active .barline-label{color:inherit}.hairpin-slot:active{background:var(--pressed)}.hairpin-wedge{flex:1 1 auto;min-width:0;max-width:170px;height:56px}.hairpin-picker{margin-bottom:12px}.rj-heading{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:2px 0 6px}.rj-mark{flex:none;font-family:Bravura,serif;font-weight:400;font-size:20px;line-height:1;width:32px;height:24px;display:flex;align-items:center;justify-content:center;overflow:visible;transform:translateY(8px)}.rj-volta{flex:none;width:32px;height:18px;border-top:1.5px solid currentColor;border-left:1.5px solid currentColor;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;line-height:1}.rj-sign{font-family:Bravura,serif;font-weight:400;font-size:18px;line-height:0}.tse-heading{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:2px 0 6px}.barline-grid+.tse-heading{margin-top:16px}.tse-custom{display:flex;align-items:center;justify-content:center;gap:16px;margin:10px 0 4px}.tse-custom-staff{position:relative;display:block;width:214px;height:104px}.tse-measure{position:absolute;left:0;top:50%;transform:translateY(-50%);width:100%;overflow:visible;pointer-events:none}.tse-wheelnum{position:absolute;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:100%;height:64px;color:var(--accent);line-height:1;cursor:ew-resize;touch-action:none;-webkit-user-select:none;user-select:none;overflow:visible;perspective:520px}.tse-wheelnum-num{top:20px;padding-top:12px}.tse-wheelnum-den{top:84px;padding-bottom:12px}.tse-digits{display:block;overflow:visible;pointer-events:none}.tse-apply{height:56px;padding:0 22px;border-radius:0;background:var(--accent);color:var(--on-accent);font-size:16px;font-weight:800;letter-spacing:.3px;touch-action:manipulation;box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent),inset 0 -1px 0 var(--btn-edge-shade),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent);text-shadow:0 1px 0 color-mix(in srgb,#000 28%,transparent)}.tse-apply:active{filter:brightness(1.15);transform:scale(.99)}.app.portrait .tse-custom{justify-content:flex-start;gap:8px}.app.portrait .tse-custom-staff{width:calc((100% - 48px) / 7 * 5 + 32px);flex:none;height:136px}.app.portrait .tse-apply{flex:1 1 0;min-width:0;padding:0}.app.portrait .tse-wheelnum-num{top:36px}.app.portrait .tse-wheelnum-den{top:100px}.tse-wheelnum:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.tse-wheelnum.active{background:var(--pressed)}.tse-wheel{position:absolute;top:0;right:0;bottom:0;left:0;transform-style:preserve-3d;pointer-events:none}.tse-wheelnum-num .tse-wheel{top:12px}.tse-wheelnum-den .tse-wheel{bottom:12px}.tse-wheel-cell{position:absolute;top:50%;left:50%;display:block;color:var(--muted);white-space:nowrap;backface-visibility:hidden}.tse-wheel-cell.is-center{color:var(--accent)}.tse-label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);margin-bottom:8px;text-align:center}.tse-wheel-wrap{background:var(--surface-2);border-radius:0;padding:10px 16px}.tse-wheel-row{position:relative;display:flex;align-items:stretch;justify-content:center}.app.portrait .tse-wheel-row{justify-content:flex-start}.tse-tap{position:absolute;top:0;right:0;bottom:0;padding:6px 20px}.bpm-wheel{position:relative;width:240px;height:52px;margin:0 auto;perspective:460px;cursor:ew-resize;touch-action:none;-webkit-user-select:none;user-select:none;overflow:hidden;-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 22%,#000 78%,transparent 100%);mask-image:linear-gradient(to right,transparent 0%,#000 22%,#000 78%,transparent 100%)}.bpm-wheel:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:10px}.bpm-wheel-rail{position:absolute;top:4px;bottom:4px;left:50%;width:60px;transform:translate(-50%);border-radius:8px;background:var(--pressed);pointer-events:none}.bpm-wheel-face{position:absolute;top:0;right:0;bottom:0;left:0;transform-style:preserve-3d;pointer-events:none}.bpm-wheel-row{position:absolute;top:0;bottom:0;left:50%;width:60px;margin-left:-30px;line-height:52px;text-align:center;font-variant-numeric:tabular-nums;font-size:22px;font-weight:500;color:var(--muted);backface-visibility:hidden;will-change:transform,opacity}.bpm-wheel-row.is-center{font-size:30px;font-weight:800;color:var(--ink)}.loupe{position:fixed;z-index:15;transform:translate(-50%,-160%);background:var(--accent);color:var(--on-accent);font-weight:800;font-size:16px;padding:6px 12px;border-radius:10px;pointer-events:none;box-shadow:0 6px 18px rgb(var(--shadow-rgb) / .5)}.magnifier{position:fixed;z-index:16;width:200px;height:150px;overflow:hidden;border-radius:14px;border:2px solid var(--accent);box-shadow:0 10px 28px rgb(var(--shadow-rgb) / .55);pointer-events:none}.magnifier-glass{width:100%;height:100%}.magnifier-cross{position:absolute;left:50%;top:50%;width:20px;height:20px;transform:translate(-50%,-50%);pointer-events:none}.magnifier-cross:before,.magnifier-cross:after{content:"";position:absolute;background:var(--cursor);opacity:.9}.magnifier-cross:before{left:50%;top:0;width:2px;height:100%;transform:translate(-50%)}.magnifier-cross:after{top:50%;left:0;height:2px;width:100%;transform:translateY(-50%)}.magnifier-label{position:absolute;left:50%;bottom:6px;transform:translate(-50%);background:var(--accent);color:var(--on-accent);font-weight:800;font-size:13px;padding:2px 8px;border-radius:8px;pointer-events:none}.toolbar{display:flex;align-items:center;gap:8px;padding:6px 8px;background:var(--surface)}.toolbar-btn{flex:1;min-height:var(--tool-btn-h);border-radius:10px;background:var(--surface-2);color:var(--muted);font-weight:600}.toolbar-btn-icon{flex:0 0 auto;min-width:57px;font-size:24px;line-height:1}.toolbar-btn-delete:not(:disabled){color:var(--danger)}.toolbar-btn:disabled{opacity:.4}.toolbar-btn:active:not(:disabled){background:var(--pressed)}.toolbar-btn.active{background:var(--accent);color:var(--on-accent-bright)}.floatbar{position:fixed;z-index:14;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}.floatbar-row{display:flex;align-items:center;gap:16px;pointer-events:none}.floatbar-group,.floatbar .toolbar{display:flex;align-items:center;gap:0;padding:0;background:none;pointer-events:auto}.floatbar-group>*,.floatbar .toolbar>*{border:1px solid var(--cat-line-soft)}.floatbar-group>*+*,.floatbar .toolbar>*+*{border-left:0}.floatbar .toolbar-btn{min-width:41px;font-size:18px}.floatbar{animation:panel-fade-in .18s ease-out}.floatbar.is-closing{animation:panel-fade-out .18s ease-out forwards}.botbar{position:absolute;left:0;right:0;bottom:0;z-index:4;display:flex;align-items:flex-end;gap:0;padding:0;background:transparent;pointer-events:none}.botbar>*{pointer-events:auto}.botbar.is-locked>*{pointer-events:none}.botbar-tools{display:flex;align-items:center;flex:1 1 auto;gap:8px;min-width:0;overflow-x:auto;touch-action:pan-x;scrollbar-width:none;background:var(--surface);padding:6px 8px max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.botbar-tools:empty{display:none}.botbar-tools::-webkit-scrollbar{display:none}.botbar>.toolbar{flex:0 0 auto;margin-left:auto;border-left:1px solid var(--border);padding:6px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) 8px}.botbar-tools:empty+.toolbar{background:transparent;border-top:none;border-left:none}.botbar .toolbar-btn,.botbar .selbar-btn{min-width:44px;border-radius:8px;font-size:14px}.botbar .toolbar-btn-icon{font-size:19px}.botbar .selbar-btn.insert{font-size:16px}.app.portrait .botbar .selbar-actions,.app.portrait .botbar .bartools-actions{flex:0 0 auto;overflow-x:visible;touch-action:auto;gap:8px}.tempo{display:flex;flex:1;align-items:center;gap:8px;min-height:44px;padding:0 12px;border-radius:10px;background:var(--surface-2);color:var(--muted)}.tempo-label{font-weight:600;font-size:14px;white-space:nowrap}.tempo-input{width:calc(4ch + 14px);padding:4px 6px;border:1px solid var(--surface-3, rgba(0, 0, 0, .15));border-radius:6px;background:var(--surface-1, #fff);color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums;text-align:right;-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}.tempo-input::-webkit-outer-spin-button,.tempo-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tempo-input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.topbar .tempo-inline{flex:0 0 auto;min-height:var(--tool-btn-h);padding:0 10px;border-radius:8px;gap:6px;cursor:pointer;color:var(--muted)}.topbar .tempo-inline:active{background:var(--pressed)}.topbar .tempo-inline:focus-within{outline:2px solid var(--accent);outline-offset:1px}.topbar .tempo-inline .tempo-label{font-size:13px}.topbar .tempo-inline .tempo-input{flex:0 0 auto;width:calc(3ch + 2px);padding:0;border:none;background:transparent;font-size:13px}.topbar .tempo-inline .tempo-input:focus-visible{outline:none}.app.landscape .topbar{padding:max(4px,env(safe-area-inset-top)) 0 4px 0}.app.landscape .notebar{padding:2px max(12px,env(safe-area-inset-right)) 2px max(12px,env(safe-area-inset-left))}.app.landscape .selbar{padding:4px 12px}.app.landscape{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"top" "stage"}.app.landscape .stage>.selbar,.app.landscape .stage>.bartools{position:absolute;top:0;right:0;bottom:0;z-index:4;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:8px;box-sizing:border-box;width:calc(83px + env(safe-area-inset-right));padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) 8px;border-top:none;border-left:1px solid var(--cat-line-soft);overflow-y:auto;touch-action:pan-y}.app.landscape .stage>.selbar>.selbar-info{display:none}.app.landscape .stage>.selbar .selbar-actions,.app.landscape .stage>.bartools .bartools-actions,.app.landscape .stage>.bartools .bartools-clip{flex-direction:column;flex:0 0 auto;overflow-x:visible;touch-action:pan-y}.app.landscape>.topbar{grid-area:top}.app.landscape>.stage{grid-area:stage;min-width:0;min-height:0}.ivlbar{position:absolute;right:max(10px,env(safe-area-inset-right));top:50%;transform:translateY(-50%);max-height:86%;z-index:5;display:flex;flex-direction:column;gap:6px;overflow-y:auto;padding:6px;border-radius:12px;background:var(--surface);border:1px solid var(--divider);box-shadow:0 2px 8px rgb(var(--shadow-rgb) / .4);touch-action:pan-y}.ivl-btn{flex:0 0 auto;min-width:34px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--surface-2);color:var(--ink);font-size:15px;font-weight:600}.ivl-btn:active{background-color:var(--pressed)}.ivl-btn.sign{position:relative;background-color:var(--surface-2);border:1px solid var(--border);background-image:linear-gradient(to bottom right,transparent calc(50% - .75px),var(--border) calc(50% - .75px),var(--border) calc(50% + .75px),transparent calc(50% + .75px))}.ivl-btn.sign .sign-plus,.ivl-btn.sign .sign-minus{position:absolute;line-height:1;color:var(--ink);font-size:13px;font-weight:600;opacity:.5;transition:font-size .1s ease,opacity .1s ease}.ivl-btn.sign .sign-plus{top:3px;left:4px}.ivl-btn.sign .sign-minus{right:5px;bottom:3px}.ivl-btn.sign .on{font-size:21px;font-weight:800;opacity:1}.app.landscape .ivlbar{right:calc(96px + env(safe-area-inset-right))}.scrim-dim{z-index:40;background:rgb(var(--shadow-rgb) / .35);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}.record-fab.under-chooser{visibility:hidden}.chooser-item{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;transition:transform .18s ease-out,opacity .18s ease-out}.chooser-btn{width:var(--fab-size);height:var(--fab-size);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--ink);border:1px solid var(--border);box-shadow:0 2px 8px rgb(var(--shadow-rgb) / .4);touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.chooser-btn:active{background:var(--pressed)}.chooser-item.dim .chooser-btn{opacity:.55}.chooser-label{font-size:12px;color:#fff;text-shadow:0 1px 3px rgb(0 0 0 / .6);user-select:none;-webkit-user-select:none}.dest-chooser{position:fixed;z-index:41;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:12px;width:min(88vw,340px);padding:18px;background:var(--sheet);border:1px solid var(--border);border-radius:0;box-shadow:0 8px 30px rgb(var(--shadow-rgb) / .5)}.dest-title{text-align:center;font-size:15px;font-weight:600;color:var(--muted);margin-bottom:2px}.dest-btn{display:flex;align-items:center;gap:12px;padding:14px 16px;font-size:16px;font-weight:600;color:var(--ink);background:var(--surface-2);border:1px solid var(--btn-edge-shade);border-radius:0;touch-action:manipulation;box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent);text-shadow:0 1px 0 var(--carve-text)}.dest-btn:active{background:var(--pressed)}.dest-glyph{font-size:20px;line-height:1}.insert-cursor-line{stroke:var(--danger);stroke-width:2.5;stroke-linecap:round}.insert-cursor-handle{fill:var(--danger);stroke:#fff;stroke-width:2}.insert-confirm-bar{position:fixed;z-index:20;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%);display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--sheet);border:1px solid var(--border);border-radius:0;box-shadow:0 4px 18px rgb(var(--shadow-rgb) / .4)}.app.landscape .insert-confirm-bar{bottom:calc(29px + env(safe-area-inset-bottom))}.insert-confirm-hint{font-size:13px;color:var(--muted);white-space:nowrap}.insert-confirm-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--border);font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--ink);touch-action:manipulation}.insert-confirm-btn:active{background:var(--pressed)}.insert-confirm-btn.confirm{background:var(--accent);border-color:var(--accent);color:#fff}.insert-confirm-btn.cancel{color:var(--danger)}.rec-window{position:fixed;z-index:41;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:14px;width:min(94vw,480px);padding:18px;background:var(--sheet);border:1px solid var(--border);border-radius:0;box-shadow:0 8px 30px rgb(var(--shadow-rgb) / .5)}.rec-close{position:absolute;top:6px;right:6px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:transparent;color:var(--muted);font-size:16px;touch-action:manipulation}.rec-close:active{background:var(--pressed)}.rec-time{margin-top:10px;font-size:30px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}.rec-wave-wrap{position:relative;width:100%;padding:6px;background:var(--surface-2);border:1px solid var(--border)}.rec-wave{display:block;width:100%;height:72px}.rec-paused-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:2px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}.rec-btn-row{display:flex;align-items:center;gap:32px}.rec-btn-item{display:flex;flex-direction:column;align-items:center;gap:4px}.rec-btn-label{font-size:12px;color:var(--muted)}.rec-pause-btn{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:50%;background:var(--surface-2);color:var(--ink);touch-action:manipulation}.rec-pause-btn:active:not(:disabled){background:var(--pressed)}.rec-stop-btn{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border:1px solid var(--danger);border-radius:50%;background:var(--danger);color:#fff;touch-action:manipulation}.rec-stop-btn:active:not(:disabled){filter:brightness(.85)}.rec-pause-btn:disabled,.rec-stop-btn:disabled{opacity:.5}.rec-error{padding:6px 4px 0;font-size:15px;text-align:center;color:var(--ink)}.rec-ok-btn{padding:10px 32px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--ink);font-size:15px;font-weight:600;touch-action:manipulation}.rec-ok-btn:active{background:var(--pressed)}.transcribe-card{position:fixed;z-index:41;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:16px;width:min(88vw,340px);padding:24px 18px;background:var(--sheet);border:1px solid var(--border);border-radius:0;box-shadow:0 8px 30px rgb(var(--shadow-rgb) / .5)}.transcribe-spinner{width:40px;height:40px;border-radius:50%;border:4px solid var(--surface-2);border-top-color:var(--accent);animation:transcribeSpin .9s linear infinite}@keyframes transcribeSpin{to{transform:rotate(360deg)}}.transcribe-text{font-size:16px;font-weight:600;color:var(--ink);text-align:center}.transcribe-error{color:var(--danger);overflow-wrap:anywhere}.transcribe-note{font-size:13px;color:var(--muted);text-align:center}.transcribe-cancel{padding:10px 32px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--ink);font-size:15px;font-weight:600;touch-action:manipulation}.transcribe-cancel:active{background:var(--pressed)}.toolbar-btn,.notebar-btn,.mark-btn,.selbar-btn,.bartools-btn,.topbar .ghost-btn,.topbar .tempo-inline{border-radius:0}.topbar,.topbar-menu,.topbar-history{background:linear-gradient(to top,transparent 3px,var(--surface) 3px)}.topbar{position:relative;z-index:6}.stage{margin-top:-3px}.topbar-menu>:last-child,.topbar-tools>.tb-group:has(+.tb-sep)>:last-child,.topbar-tools>.tb-group:has(+.tb-sep)>.notebar-inline>:last-child,.topbar-tools:has(+.topbar-history)>.tb-group:last-child>:last-child,.topbar-tools:has(+.topbar-history)>.tb-group:last-child>.notebar-inline>:last-child,.notebar-inline>:has(+.tb-sep){border-bottom-right-radius:2px}.topbar-menu+.topbar-tools>.tb-group:first-child>:first-child,.topbar-menu+.topbar-tools>.tb-group:first-child>.notebar-inline>:first-child,.topbar-tools>.tb-sep+.tb-group>:first-child,.topbar-tools>.tb-sep+.tb-group>.notebar-inline>:first-child,.topbar-history .toolbar>:first-child,.notebar-inline>.tb-sep+*{border-bottom-left-radius:2px}.botbar .toolbar-btn,.botbar .selbar-btn{border-radius:0}.tb-sep{width:1px;height:auto;align-self:stretch;background:var(--cat-line-soft-grad);opacity:1;margin:0}.topbar-menu{border-right:none}.topbar-history{border-left:none}.botbar>.toolbar{border-left:none;position:relative}.topbar-menu:after,.topbar-history:after,.botbar>.toolbar:after{content:"";position:absolute;top:0;bottom:0;width:1px;background:var(--cat-line-soft-grad);pointer-events:none}.topbar-menu:after{right:0}.topbar-history:after,.botbar>.toolbar:after{left:0}.botbar>.toolbar:after{background:var(--cat-line-soft-grad-up)}.botbar-tools:empty+.toolbar:after{display:none}.topbar,.topbar>.topbar-tools,.topbar-menu{gap:0}.tb-group>*+*,.topbar-menu>*+*{border-left:none;background-image:var(--btn-line-grad);background-repeat:no-repeat;background-size:1px 100%;background-position:left center}.toolbar,.topbar-history .toolbar{gap:0}.toolbar>*+*{border-left:none;background-image:var(--btn-line-grad);background-repeat:no-repeat;background-size:1px 100%;background-position:left center}.notebar,.app.landscape .notebar.notebar-inline,.app.portrait .notebar.notebar-inline{gap:0}.notebar>*+*{border-left:none;background-image:var(--btn-line-grad);background-repeat:no-repeat;background-size:1px 100%;background-position:left center}.notebar>.tb-sep{background-image:var(--cat-line-soft-grad);background-size:auto;background-position:center}.notebar>.tb-sep+*{border-left:none;background-image:none}.selbar-actions{gap:0}.selbar-actions>*+*,.selbar-hairpin>*+*,.selbar-actions>*+.selbar-hairpin>:first-child{border-left:none;background-image:var(--btn-line-grad);background-repeat:no-repeat;background-size:1px 100%;background-position:left center}.bartools,.bartools-clip,.bartools-actions{gap:0}.bartools-clip>*+*,.bartools-actions>*+*{border-left:none;background-image:var(--btn-line-grad);background-repeat:no-repeat;background-size:1px 100%;background-position:left center}.bartools-clip+.bartools-actions{border-left:none;background-image:var(--cat-line-grad);background-repeat:no-repeat;background-size:2px 100%;background-position:left center;margin-left:0;padding-left:0}.app.portrait .botbar .selbar-actions,.app.portrait .botbar .bartools-actions{gap:1px}.botbar-tools{gap:0}.app.landscape .stage>.selbar .selbar-actions>*+*,.app.landscape .stage>.selbar .selbar-hairpin>*+*,.app.landscape .stage>.selbar .selbar-actions>*+.selbar-hairpin>:first-child,.app.landscape .stage>.bartools .bartools-clip>*+*,.app.landscape .stage>.bartools .bartools-actions>*+*{border-left:none;border-top:none;background-image:var(--btn-line-grad-h);background-repeat:no-repeat;background-size:100% 1px;background-position:center top}.app.landscape .stage>.bartools .bartools-clip+.bartools-actions{border-left:none;border-top:none;margin-left:0;padding-left:0;background-image:var(--cat-line-grad-h);background-repeat:no-repeat;background-size:100% 2px;background-position:center top;margin-top:0;padding-top:0}.topbar{padding:env(safe-area-inset-top) 0 0 0}.topbar-menu{padding-left:env(safe-area-inset-left);padding-right:1px;margin-right:0}.topbar-history{padding-left:1px;padding-right:env(safe-area-inset-right)}.notebar{padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)}.notebar>.tb-sep,.notebar-inline>.tb-sep{margin-left:0}.toolbar{padding:0}.selbar,.bartools{padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)}.botbar-tools{padding:0 0 env(safe-area-inset-bottom) env(safe-area-inset-left)}.botbar>.toolbar{padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) 1px}.app.landscape .stage>.selbar,.app.landscape .stage>.bartools{padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) 0;gap:0}.app.landscape .stage>.selbar,.app.landscape .stage>.bartools{padding-top:4px;background:linear-gradient(to bottom,transparent 3px,var(--cat-line-soft) 3px,var(--cat-line-soft) 4px,var(--surface) 4px)}.app.landscape .stage>.bartools .bartools-clip>:first-child,.app.landscape .stage>.selbar .selbar-actions>:first-child:not(.selbar-hairpin),.app.landscape .stage>.selbar .selbar-actions>.selbar-hairpin:first-child>:first-child{border-top-left-radius:0;border-top-right-radius:0;box-shadow:inset 0 -1px 0 var(--btn-edge-shade),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent)}.app.landscape .topbar{padding:env(safe-area-inset-top) 0 0 0}.app.landscape .notebar,.app.landscape .selbar{padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)}.toolbar-btn,.notebar-btn,.mark-btn,.selbar-btn,.bartools-btn,.topbar .ghost-btn,.topbar .tempo-inline,.drawer-head-btn{box-shadow:inset 0 1px color-mix(in srgb,#fff 24%,transparent),inset 0 -1px 0 var(--btn-edge-shade),0 1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent);text-shadow:0 1px 0 var(--carve-text)}.toolbar-btn:disabled,.notebar-btn:disabled,.mark-btn:disabled,.selbar-btn:disabled,.bartools-btn:disabled,.topbar .ghost-btn:disabled{text-shadow:none;opacity:1;background-color:color-mix(in srgb,var(--surface-2) 40%,var(--surface));color:color-mix(in srgb,var(--muted) 40%,var(--surface))}.notebar-btn:disabled .note-glyph,.mark-btn:disabled .mark-glyph,.notebar-btn:disabled .tuplet-glyph{filter:none}.note-glyph,.mark-glyph,.tuplet-glyph{filter:drop-shadow(0 1px 0 var(--carve-glyph))}.notebar-btn.active,.mark-btn.active,.selbar-btn.active,.toolbar-btn.active{text-shadow:0 1px 0 color-mix(in srgb,#000 28%,transparent)}.notebar-btn.active .note-glyph,.mark-btn.active .mark-glyph{filter:drop-shadow(0 1px 0 color-mix(in srgb,#000 32%,transparent))}.botbar-tools,.botbar>.toolbar{background:linear-gradient(to bottom,transparent 3px,var(--surface) 3px)}.botbar-tools:empty+.toolbar{background:transparent}.botbar .toolbar-btn,.botbar .selbar-btn,.botbar .bartools-btn{box-shadow:inset 0 -1px color-mix(in srgb,#fff 24%,transparent),inset 0 1px 0 var(--btn-edge-shade),0 -1.5px 1.5px -1.5px color-mix(in srgb,#000 12%,transparent)}.botbar .bartools-actions>*+*:before,.botbar .selbar-actions>*+*:not(.selbar-hairpin):before,.botbar .selbar-hairpin>*+*:before,.botbar .selbar-actions>*+.selbar-hairpin>:first-child:before,.botbar .bartools-clip+.bartools-actions>:first-child:before{content:"";position:absolute;top:0;bottom:0;left:-1px;width:1px;background:var(--cat-line-soft-grad-up);pointer-events:none}.botbar .bartools-actions>*,.botbar .selbar-actions>*,.botbar .selbar-hairpin>*{position:relative;border-top-left-radius:2px;border-top-right-radius:2px}.botbar .bartools-clip>:last-child{border-top-right-radius:2px}.botbar>.toolbar>:first-child{border-top-left-radius:2px}.botbar-tools:not(:empty){flex:0 1 auto;margin-left:auto}.botbar-tools:not(:empty)+.toolbar{margin-left:0}.botbar .bartools-clip+.bartools-actions{margin-left:1px;background-image:none}.is-closing{pointer-events:none}@keyframes panel-slide-in-left{0%{transform:translate(-100%)}}@keyframes panel-slide-out-left{to{transform:translate(-100%)}}@keyframes panel-slide-in-right{0%{transform:translate(100%)}}@keyframes panel-slide-out-right{to{transform:translate(100%)}}@keyframes panel-fade-in{0%{opacity:0}}@keyframes panel-fade-out{to{opacity:0}}.drawer-scores:not(.drawer-help){animation:panel-slide-in-left .18s ease-out}.drawer-scores.is-closing{animation:panel-slide-out-left .18s ease-out forwards}.scrim-anim{animation:panel-fade-in .18s ease-out}.scrim-anim.is-closing{animation:panel-fade-out .18s ease-out forwards}.app.landscape .stage>.selbar,.app.landscape .stage>.bartools{animation:panel-slide-in-right .18s ease-out}.app.landscape .stage>.selbar.is-closing,.app.landscape .stage>.bartools.is-closing{animation:panel-slide-out-right .18s ease-out forwards}.botbar{overflow:hidden}.botbar>.toolbar{position:relative;z-index:1}.app.portrait .botbar-tools:not(:empty){animation:panel-slide-in-right .18s ease-out}.app.portrait .botbar-tools:has(>.is-closing):not(:has(>:not(.is-closing))){animation:panel-slide-out-right .18s ease-out forwards}.app.portrait .botbar-tools>*{animation:panel-fade-in .18s ease-out}.app.portrait .botbar-tools>.is-closing{animation:panel-fade-out .18s ease-out forwards}@media(prefers-reduced-motion:reduce){.drawer-scores,.scrim-anim,.app.landscape .stage>.selbar,.app.landscape .stage>.bartools,.botbar-tools,.botbar-tools>*,.floatbar{animation-duration:1ms!important}}:root{--bg: #1a1a1a;--surface: #242424;--surface-2: #2e2e2e;--ink: #ececec;--muted: #9a9a9a;--accent: #5b9dff;--accent-2: #ff8f5b;--cursor: #ffc24b;--staff: #c9c9c9;--toolbar-h: 64px;--border: #000;--divider: var(--accent);--divider-w: 2px;--desk: color-mix(in srgb, #000 24%, var(--surface-2));--pressed: #3a3a3a;--pressed-strong: #474747;--elevated: #2b2b2b;--sheet: #232323;--danger: #ff7a7a;--on-accent: #07203f;--on-accent-ink: #000;--on-accent-bright: #fff;--shadow-rgb: 0 0 0;--carve-text: color-mix(in srgb, #000 50%, transparent);--carve-glyph: color-mix(in srgb, #000 55%, transparent);--key-white: #f4f4f4;--key-black: #1c1c1c;--roll-staff-1: #3a86ff;--roll-staff-2: #7cb9ff;--roll-staff-3: #2bbf7a;--roll-staff-4: #c879ff;--addmeasure-face: var(--surface-2);--addmeasure-ink: var(--ink);--addmeasure-stroke: var(--staff);--addmeasure-danger: var(--danger);color-scheme:dark}:root[data-theme=day]{--bg: #ffffff;--surface: #ffffff;--surface-2: #e7e9ee;--ink: #000000;--muted: #5f6672;--accent: #2f6fed;--accent-2: #e2622e;--cursor: #eb9d00;--staff: #6b7079;--border: #d4d7dd;--pressed: #d7dae0;--pressed-strong: #c5c9d1;--elevated: #ffffff;--sheet: #ffffff;--danger: #d92d2d;--on-accent: #ffffff;--on-accent-ink: #ffffff;--on-accent-bright: #ffffff;--shadow-rgb: 0 0 0;--carve-text: color-mix(in srgb, #fff 40%, transparent);--carve-glyph: color-mix(in srgb, #fff 45%, transparent);--desk: #dfe3e9;--key-white: #ffffff;--key-black: #333840;color-scheme:light}:root[data-theme=ivory]{--bg: #3a1c09;--surface: #4e270d;--surface-2: #f5e8c9;--ink: #3a2412;--muted: #7a5230;--accent: #9b1e2f;--accent-2: #c24a4a;--cursor: #cf7a12;--staff: #c9c9c9;--border: #d8c9a4;--pressed: #e7d6ac;--pressed-strong: #dbc79a;--elevated: #f6ead0;--sheet: #f8eed6;--danger: #b3261e;--on-accent: #ffffff;--on-accent-ink: #ffffff;--on-accent-bright: #ffffff;--shadow-rgb: 40 20 8;--carve-text: color-mix(in srgb, #fff 40%, transparent);--carve-glyph: color-mix(in srgb, #fff 45%, transparent);--desk: #2c1607;--key-white: #ffffff;--key-black: #333840;color-scheme:light}@font-face{font-family:Bravura;src:url(/fonts/Bravura.woff2) format("woff2");font-display:block}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html,body,#root{margin:0;height:100%;width:100%}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overscroll-behavior:none;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden}#root{display:flex;flex-direction:column}button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
