.chord-text-targets{display:flex;gap:3px;overflow-x:auto;padding:2px 1px 4px}.score-floating-menu .chord-text-targets button{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:4px;min-width:42px;min-height:20px;box-sizing:border-box;flex:1 0 auto;padding:0 4px;border:1px solid #d7dce2;border-radius:4px;font-size:10px;color:#263445;background:#fff}.score-floating-menu .chord-text-targets button:hover{background:#f1f5f9}.score-floating-menu .chord-text-targets button[aria-pressed=true]{border-color:#70a4dd;background:#eaf3ff}.chord-text-beat{font-size:10px;color:#556171}.chord-text-symbol{display:inline-flex;align-items:baseline;white-space:nowrap;font-family:Arial,sans-serif;font-size:14px;line-height:1}.chord-text-symbol sub{position:relative;bottom:-.2em;font-size:8px;line-height:1}.chord-text-symbol sup{position:relative;top:-.5em;font-size:8px;line-height:1}.chord-text-bass{font-size:.85em;margin-left:2px}.chord-text-editor .score-context-command{margin-top:0}:root{--ink:#1d1d1f;--muted:#6e6e73;--line:#d1d1d6;--soft-line:#e5e5ea;--paper:#ffffff;--surface:#f7f7f8;--canvas:#e9eaed;--brand:#0a84ff;--brand-strong:#0066cc;--brand-soft:#e8f2ff;--blue:#1769aa;--amber:#9a6700;--amber-soft:#fff7df;--danger:#ff3b30}*{box-sizing:border-box}body,html{margin:0;min-height:100%}body{color:var(--ink);background:var(--canvas);font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Helvetica Neue,PingFang SC,sans-serif;letter-spacing:0}button,input,select{font:inherit;letter-spacing:0}button{color:inherit}.workbench{min-height:100vh;display:grid;grid-template-rows:56px auto auto minmax(0,1fr)}.topbar{position:relative;z-index:30;gap:12px;min-width:0;padding:0 16px;color:var(--ink);background:#f6f6f8eb;border-bottom:1px solid #c8c8cc;box-shadow:0 1px 0 #ffffffa8;backdrop-filter:saturate(180%) blur(22px);-webkit-backdrop-filter:saturate(180%) blur(22px)}.product-mark,.topbar{display:flex;align-items:center}.product-mark{height:44px;gap:8px;white-space:nowrap}.brand-cover{width:36px;height:36px;flex:0 0 auto;border:1px solid #ffffffcc;border-radius:8px;box-shadow:0 1px 3px #0000002b,inset 0 0 0 1px #ffffff24;object-fit:cover}.brand-wordmark{width:102px;height:38px;display:block;object-fit:contain}.brand-workbench{width:144px;height:44px;display:block;object-fit:contain}.top-summary{margin-left:auto;display:flex;align-items:center;gap:8px;white-space:nowrap;color:var(--muted);font-size:12px}.top-summary span{padding-right:8px;border-right:1px solid #c7c7cc}.top-summary span:last-child{border:0}.named-version-control{position:relative;flex-shrink:0}.topbar .named-version-trigger{display:inline-flex}.named-version-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:60;width:min(350px,calc(100vw - 24px));padding:12px;box-sizing:border-box;border:1px solid #d2d7df;border-radius:10px;background:#fff;box-shadow:0 8px 24px #17212f24;color:#233044}.named-version-popover label{display:block;margin-bottom:7px;font-size:13px;font-weight:600}.named-version-input-row{display:flex;align-items:center;gap:8px}.named-version-input-row input{flex:1;min-width:0;height:34px;border:1px solid #c7cdd6;border-radius:7px;padding:0 9px;font:inherit;font-size:13px}.named-version-input-row input:focus-visible{outline:2px solid #007aff;outline-offset:1px}.named-version-input-row button{flex-shrink:0;min-height:34px;white-space:nowrap}.named-version-popover[aria-busy=false] button:disabled{cursor:default}.named-version-popover p{margin:8px 0 0;font-size:12px;line-height:1.5;color:#687586}.named-version-popover .named-version-error{color:#b42318}.top-summary .warning-count{color:var(--amber)}.button{min-height:34px;border:1px solid #c6c6ca;border-radius:7px;padding:0 13px;background:linear-gradient(#fff,#f2f2f4);color:var(--ink);box-shadow:0 1px 2px #00000012,inset 0 1px 0 #ffffff;font-weight:600;cursor:pointer;white-space:nowrap}.button:hover{background:#fff;border-color:#b5b5ba}.melody-builder-page{min-height:100vh;padding:24px;background:var(--canvas);color:var(--ink)}.melody-builder-header{max-width:1440px;margin:0 auto 18px;display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.melody-builder-header h1{margin:8px 0 4px;font-size:24px}.melody-builder-header p{margin:0;color:var(--muted);font-size:12px}.melody-dual-layer-global-panel{max-width:1440px;margin:0 auto 14px;padding:12px;display:grid;grid-template-columns:220px minmax(300px,1fr) repeat(2,minmax(180px,240px)) 180px;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.melody-dual-layer-global-panel p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.melody-dual-layer-global-panel fieldset{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;margin:0;padding:7px;border:1px solid var(--line)}.melody-dual-layer-global-panel label{display:grid;gap:3px;font-size:10px}.melody-dual-layer-global-panel input{min-width:0;width:100%}.melody-dual-layer-calibration,.melody-dual-layer-mini-preview{position:relative;overflow:hidden;min-height:96px;border:1px solid #d5d6d9;border-radius:5px;background:repeating-linear-gradient(90deg,transparent 0 24.7%,#b7b7b7 24.8% 25%,transparent 25% 49.7%,#b7b7b7 49.8% 50%)}.melody-dual-layer-calibration:after,.melody-dual-layer-mini-preview:after{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px dashed #c8c8c8}.melody-dual-layer-calibration span,.melody-dual-layer-mini-preview span{position:absolute;left:8%;transform:translateY(-50%);white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800}.melody-dual-layer-calibration .keyboard,.melody-dual-layer-mini-preview .keyboard{color:#d51f2a}.melody-dual-layer-calibration .guitar,.melody-dual-layer-mini-preview .guitar{color:#1877c9}.melody-workbench-preview{max-width:1440px;margin:0 auto 18px;border:1px solid var(--line);background:var(--paper);padding:14px}.melody-preview-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.melody-preview-heading strong{font-size:14px}.melody-preview-heading p,.melody-preview-heading>span,.melody-preview-note{margin:4px 0 0;color:var(--muted);font-size:11px}.melody-preview-heading>span{white-space:nowrap}.melody-preview-score{position:relative;width:min(100%,920px);aspect-ratio:4/1.6;min-height:170px;margin:0 auto;border:1px solid #74747a;background:#fff;overflow:hidden}.melody-preview-chords{position:absolute;inset:42% 0 0;z-index:1}.melody-preview-chords .chord-measure-beat-grid{display:block}.melody-preview-score>.melody-combo-measure-view{z-index:3;inset:0 0 42%;height:58%}.melody-preview-block{position:absolute;z-index:8;bottom:0;height:24px;border:1px solid #9bbfe3;border-radius:4px;padding:0 5px;overflow:hidden;background:#e8f2ffdd;color:var(--brand-strong);cursor:grab;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.melody-preview-block.selected{border-color:var(--brand-strong);background:#cfe5ff}.melody-preview-block:active{cursor:grabbing}.melody-preview-beat-grid{position:absolute;z-index:7;inset:0;display:grid;grid-template-columns:repeat(4,1fr);pointer-events:none}.melody-preview-beat-grid span{border-left:1px dashed #8c8c9180;padding:5px;color:#6e6e73;font-size:10px}.melody-preview-beat-grid span:last-child{border-right:1px dashed #8c8c9180}.melody-preview-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px auto 0;max-width:920px}.melody-preview-controls label{display:grid;gap:4px;color:var(--muted);font-size:10px}.melody-preview-controls select{min-width:0;height:32px;border:1px solid var(--line);border-radius:5px;padding:0 5px;background:#fff;font-size:10px}.melody-preview-controls label.occupied select{color:var(--muted);background:var(--surface)}.melody-preview-note{max-width:920px;margin:9px auto 0}.back-link{color:var(--brand-strong);font-size:12px;text-decoration:none}.melody-store-status{padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--muted);font-size:11px}.melody-store-status.saved{color:#248a3d}.melody-store-status.failed{color:var(--danger)}.melody-builder-layout{max-width:1440px;min-height:720px;margin:0 auto;display:grid;grid-template-columns:280px minmax(0,1fr);border:1px solid var(--line);background:var(--paper)}.melody-library-panel{border-right:1px solid var(--line);padding:14px;background:var(--surface)}.melody-panel-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}.melody-panel-title strong{font-size:13px}.melody-panel-title small{color:var(--muted);font-size:10px}.melody-template-list{display:grid;gap:4px;max-height:370px;overflow:auto}.melody-template-list button{min-height:42px;display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid transparent;border-radius:5px;padding:7px 9px;background:transparent;text-align:left;cursor:pointer}.melody-template-list button.selected,.melody-template-list button:hover{border-color:#8abbea;background:var(--brand-soft)}.melody-template-list span{font-size:12px}.melody-template-list small{color:var(--muted);font-size:10px}.melody-material-section{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.melody-material-list{display:grid;gap:4px}.melody-material-list button{min-height:38px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:5px;padding:4px 7px;background:#fff;text-align:left;cursor:grab;font-size:11px}.melody-material-list button:hover{border-color:var(--brand);background:var(--brand-soft)}.melody-material-thumb{width:28px;height:26px;display:grid;place-items:center}.melody-material-thumb img{max-width:25px;max-height:24px;object-fit:contain}.melody-editor-panel{min-width:0;padding:14px;overflow:auto}.melody-editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.melody-editor-toolbar>input{flex:1 1 220px;min-width:160px;height:34px;border:1px solid var(--line);border-radius:5px;padding:0 9px}.melody-editor-toolbar label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.melody-editor-toolbar label input{width:68px;height:34px;border:1px solid var(--line);border-radius:5px;padding:0 7px}.melody-part-picker{display:inline-flex;flex:0 0 auto;border:1px solid var(--line);border-radius:5px;overflow:hidden;background:var(--surface)}.melody-part-picker button{height:32px;border:0;border-right:1px solid var(--line);padding:0 10px;background:transparent;color:var(--muted);cursor:pointer;font-size:11px}.melody-part-picker button:last-child{border-right:0}.melody-part-picker button.selected{background:var(--brand-soft);color:var(--brand-strong);font-weight:650}.danger-button{color:#b42318}.melody-template-canvas{position:relative;width:min(100%,420px);aspect-ratio:201/183;min-height:0;overflow:hidden;border:1px solid #555;background:#fff;touch-action:none}.melody-template-background{position:absolute;width:830%;height:auto;max-width:none;left:-13.4%;top:-136.6%;pointer-events:none}.melody-template-duration-frame{position:absolute;z-index:2;inset:0 auto 0 0;box-sizing:border-box;border-right:1px dashed #0a84ff;background:#0a84ff08;pointer-events:none}.melody-template-element{position:absolute;z-index:3;width:9%;height:9%;display:grid;place-items:center;border:0;padding:0;background:#0a84ff18;cursor:move;touch-action:none}.melody-template-element img{max-width:100%;max-height:100%;object-fit:contain;pointer-events:none}.melody-template-pitch{position:relative;width:100%;height:100%;display:grid;place-items:center}.melody-template-element.kind-chordHit .melody-template-pitch>img,.melody-template-element.kind-note .melody-template-pitch>img,.melody-template-element.kind-rest .melody-template-pitch>img{width:auto;height:100%;max-width:none;max-height:none;object-fit:contain}.melody-pitch-glyph{position:relative;width:100%;height:100%;display:grid;place-items:center;pointer-events:none}.melody-pitch-glyph>.melody-pitch-main-anchor{position:absolute;left:50%;top:50%;display:block;height:100%;transform:translate(-50%,-50%)}.melody-pitch-main-anchor>.melody-pitch-main{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}img[src*="/melody-materials/blue-digit-"],img[src*="/melody-materials/blue-dot.png"]{filter:url(/melody-materials/guitar-digit-color.svg?v=3#blue)}img[src*="/melody-materials/blue-beam.png"],img[src*="/melody-materials/blue-sustain.png"]{filter:url(/melody-materials/guitar-digit-color.svg?v=3#line)}.melody-pitch-main-anchor>.melody-pitch-accidental{height:56%}.melody-pitch-glyph>.melody-pitch-octave-dot,.melody-pitch-main-anchor>.melody-pitch-accidental{position:absolute;display:block;width:auto;max-width:none;max-height:none;object-fit:contain;transform-origin:center}.melody-pitch-glyph>.melody-pitch-octave-dot{height:18%}.melody-template-element.selected{outline:2px solid var(--brand);outline-offset:2px;background:#0a84ff30}.melody-template-element.kind-beam,.melody-template-element.kind-guide,.melody-template-element.kind-sustain{width:18%;height:5%}.melody-template-element.kind-tripletArc{width:20%;height:8%}.melody-editor-hint{margin:9px 0;color:var(--muted);font-size:11px}.melody-combo-editor{margin-top:18px}.melody-decoration-profile{margin-top:12px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.melody-decoration-profile-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:10px;font-size:12px}.melody-decoration-profile-heading span{color:var(--muted)}.melody-decoration-samples{display:grid;grid-template-columns:repeat(4,54px);gap:8px;align-items:center;margin-bottom:12px}.melody-decoration-samples>span{display:block;position:relative;width:54px;height:54px;border:1px solid var(--line);background:#fff}.melody-decoration-samples .melody-pitch-glyph{position:absolute;inset:13px 16px}.melody-decoration-real-size{display:flex;min-height:34px;align-items:center;gap:10px;margin:-2px 0 12px;color:var(--muted);font-size:11px}.melody-decoration-real-size>span{position:relative;width:30px;height:24px;border:1px solid var(--line);background:#fff}.melody-decoration-real-size .melody-pitch-glyph{position:absolute;left:50%;top:50%;width:14px;height:14px;transform:translate(-50%,-50%)}.melody-decoration-profile-controls{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end}.melody-decoration-profile-controls label{display:grid;gap:3px;color:var(--muted);font-size:11px}.melody-decoration-profile-controls input{width:76px}.melody-combo-editor-heading{margin:0 0 9px;font-size:14px;font-weight:650}.melody-inspector{display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:11px;color:var(--muted);font-size:11px}.melody-inspector strong{color:var(--ink)}.melody-inspector label{display:flex;gap:4px;align-items:center}.melody-inspector input{width:72px;height:30px;border:1px solid var(--line);border-radius:4px;padding:0 6px}.melody-triplet-menu{position:relative;display:inline-flex}.melody-triplet-submenu{position:absolute;z-index:20;top:calc(100% + 4px);right:0;min-width:130px;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 8px 24px #0002}.melody-triplet-submenu button{width:100%;border:0;padding:8px 10px;background:#fff;color:var(--ink);text-align:left;white-space:nowrap;cursor:pointer}.melody-triplet-submenu button:focus-visible,.melody-triplet-submenu button:hover{background:#f0f0f2;outline:none}.melody-pitch-scale-warning{max-width:230px;color:#9a6700;font-size:10px;line-height:1.35}.melody-combo-measure-view{position:absolute;z-index:4;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.score-chord-cell>.melody-combo-measure-view{z-index:12;overflow:visible;pointer-events:none}.score-chord-cell>.melody-combo-measure-view .melody-song-combo{pointer-events:none;cursor:default}.score-chord-row.melody-editing .score-chord-cell>.melody-combo-measure-view{pointer-events:none}.score-chord-row.melody-editing .score-chord-cell>.melody-combo-measure-view .melody-song-combo{pointer-events:auto;cursor:grab;touch-action:none}.score-chord-row.melody-editing .score-chord-cell>.melody-combo-measure-view .melody-song-combo:active{cursor:grabbing}.score-chord-row.melody-editing .score-chord-cell>.melody-combo-measure-view .melody-song-combo.selected{outline:1.5px solid #0a84ff;outline-offset:2px;border-radius:2px;background:#0a84ff0a}.score-chord-row.melody-editing .score-chord-cell>.melody-combo-measure-view .melody-combo-element.interactive-pitch{pointer-events:auto;cursor:pointer}.score-chord-row.melody-editing .score-chord-cell>.melody-combo-measure-view .melody-combo-element.interactive-pitch.pitch-selected{outline:1px solid #ff9f0a;outline-offset:2px;border-radius:2px}.score-chord-cell>.melody-combo-measure-view.previewing{opacity:.62;filter:saturate(.9)}.score-chord-cell>.melody-combo-measure-view.previewing:after{content:"预览";position:absolute;right:2px;top:2px;padding:1px 3px;border-radius:3px;color:#245ea8;background:#eaf4ffdd;font-size:6px;line-height:1.2}.melody-combo-block{position:absolute;top:0;height:100%;border:0;padding:0;background:transparent;pointer-events:auto}.melody-combo-element{position:absolute;z-index:2;display:grid;place-items:center;height:28%;transform-origin:center;pointer-events:none}.score-chord-cell .interactive-pitch .melody-pitch-main,.score-chord-cell .melody-combo-element.interactive-pitch,.score-chord-cell .melody-combo-element.kind-beam,.score-chord-cell .melody-combo-element.kind-guide,.score-chord-cell .melody-combo-element.kind-sustain{pointer-events:auto;cursor:pointer}.score-floating-menu{position:fixed;z-index:1000;width:min(350px,calc(100vw - 16px));overflow:auto;overscroll-behavior:contain;background:white;border:1px solid #ccc;border-radius:10px;box-shadow:0 8px 32px #0003;visibility:hidden}.score-floating-menu-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px;font-size:10px}.score-floating-menu-header button{flex:0 0 28px;height:28px;padding:0;font-size:16px;cursor:pointer}.score-floating-menu{display:flex;flex-direction:column;overflow:hidden}.score-floating-menu .melody-clipboard-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px 0 6px;font-size:10px}.score-floating-menu .melody-clipboard-menu label{grid-column:1/-1;display:flex;align-items:center;gap:6px}.score-floating-menu .melody-clipboard-menu button,.score-floating-menu .melody-clipboard-menu select{min-height:28px;min-width:0;padding:3px 6px;font-size:10px;line-height:1.3}.score-floating-menu-actions{flex:0 0 auto;max-height:35vh;overflow:auto;overscroll-behavior:contain;padding:0 8px}.score-floating-menu-body{min-height:0;overflow:auto;overscroll-behavior:contain}.score-floating-menu.with-measure-zoom{width:min(320px,calc(100vw - 16px))}.score-floating-menu-header button[aria-expanded]{flex:0 0 auto;font-size:11px;padding:0 8px;margin-left:auto}.score-floating-menu-preview{flex:0 0 auto;overflow:hidden;border-block:1px solid #ddd}.melody-measure-zoom p{margin:6px 10px;font-size:11px;color:#555}.melody-measure-zoom-scroll{overflow:hidden;height:86px}.with-measure-zoom .score-melody-menu{padding:4px 6px}.with-measure-zoom .score-melody-menu-row{margin:3px 0;gap:3px}.with-measure-zoom .score-melody-menu button{padding:3px 5px}.melody-zoom-canvas{position:relative;box-sizing:border-box;border-inline:1px solid #aaa;background:#fafcff;pointer-events:auto}.melody-zoom-canvas .melody-song-combo.selected{outline:none}.melody-measure-zoom .melody-zoom-canvas .melody-combo-element.interactive-pitch.pitch-selected{outline:none;background:transparent}.melody-zoom-canvas .interactive-pitch.pitch-selected .melody-pitch-main{outline:2px solid #c95000;outline-offset:2px;border-radius:2px}.melody-measure-zoom-scroll{position:relative}.melody-octave-selection-tools{display:flex;align-items:center;gap:6px;padding:4px 6px;font-size:12px}.melody-octave-selection-tools span{margin-right:auto;color:#756b83}.melody-octave-selection-tools button{border:1px solid #ded7eb;border-radius:7px;padding:4px 10px;background:#f5f1fa;color:#594374;cursor:pointer}.melody-octave-selection-tools button:disabled{opacity:.4;cursor:default}.melody-measure-zoom-scroll:focus{outline:none}.melody-measure-zoom-scroll{touch-action:none;user-select:none}.melody-zoom-beats{display:flex;gap:3px;align-items:center;padding:3px 6px;font-size:10px;flex-wrap:wrap}.melody-zoom-beats>span{padding:2px 4px;border-radius:3px}.melody-zoom-beats>button{padding:2px 4px;border:1px solid #ddd;border-radius:4px;font:inherit;background:white}.melody-zoom-beats>button[aria-pressed=true]{box-shadow:inset 0 -2px #713000}.score-floating-menu-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:4px;padding:5px 6px;border-top:1px solid #ddd;background:white}.score-floating-menu-footer button{width:fit-content;padding:3px 5px;border:1px solid #e4c5c5;border-radius:5px;font-size:11px}.melody-zoom-beats>.active{background:#ffcf91;color:#713000;font-weight:700;outline:1px solid #bd4b00}.melody-zoom-beats.empty-selection>.active{outline-style:dashed}.melody-zoom-beats>.pending{outline:1px dashed #bd4b00}.melody-rhythm-entry{min-width:0}.melody-rhythm-entry>.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.score-melody-template-list>.melody-rhythm-slot{grid-column:auto;position:relative;display:grid;min-width:0;color:inherit}.melody-rhythm-slot.editing>button{visibility:hidden}.score-melody-menu .melody-rhythm-slot>input{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;box-sizing:border-box;margin:0;border:2px solid #c95000;border-radius:4px;padding:0 3px;font:inherit;text-align:center;background:#fff7ed;outline:none}.melody-rhythm-summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.score-melody-menu.rhythm-entry-active>.score-context-command{visibility:hidden}.melody-zoom-selection{position:absolute;z-index:8;pointer-events:none;background:#ff950014}.melody-zoom-selection i{position:absolute;width:8px;height:8px;border:0 solid #c95000}.melody-zoom-selection i:first-child{top:0;left:0;border-top-width:2px;border-left-width:2px}.melody-zoom-selection i:nth-child(2){top:0;right:0;border-top-width:2px;border-right-width:2px}.melody-zoom-selection i:nth-child(3){bottom:0;left:0;border-bottom-width:2px;border-left-width:2px}.melody-zoom-selection i:nth-child(4){bottom:0;right:0;border-bottom-width:2px;border-right-width:2px}.score-floating-menu .score-floating-menu-body>.score-chord-menu,.score-floating-menu .score-floating-menu-body>.score-melody-menu{position:static;inset:auto;width:100%;max-height:none;transform:none;overflow:visible;box-sizing:border-box;box-shadow:none;border:0}@media print{.score-floating-menu{display:none!important}}.melody-combo-element img{display:block;max-width:100%;max-height:100%;object-fit:contain}.melody-combo-element.kind-chordHit>img,.melody-combo-element.kind-note>img,.melody-combo-element.kind-rest>img{width:auto;height:100%;max-width:none;max-height:none;object-fit:contain}.melody-combo-element .secondary-beam{position:absolute;top:125%;left:50%;transform:translateX(-50%)}.melody-combo-element.kind-beam,.melody-combo-element.kind-guide,.melody-combo-element.kind-sustain{height:8%}.melody-combo-element.kind-tripletArc{height:16%}.melody-combo-unmatched{position:absolute;inset:35% 0 auto;color:#b42318;font-size:10px;text-align:center}.melody-measure-application{width:100%}.melody-application-canvas{width:min(100%,620px);margin:0 auto}.melody-application-canvas>.chord-measure-view{position:absolute;inset:0;z-index:4}.melody-application-canvas>.melody-combo-measure-view{z-index:6}.melody-application-canvas .melody-preview-block{z-index:9;bottom:0;height:100%;border:0;border-radius:0;background:transparent;color:transparent}.melody-application-canvas .melody-preview-block.selected{outline:2px solid var(--brand);outline-offset:-2px;background:#0a84ff0d}.melody-application-canvas .melody-preview-beat-grid{display:none}.melody-application-canvas+.melody-application-controls{margin-top:10px}.melody-application-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(100%,620px);margin-inline:auto}.melody-application-controls label{display:grid;gap:4px;color:var(--muted);font-size:10px}.melody-application-controls select{min-width:0;height:32px;border:1px solid var(--line);border-radius:5px;padding:0 5px;background:#fff;font-size:10px}.melody-application-controls label.occupied select{color:var(--muted);background:var(--surface)}.melody-real-row-preview{width:min(100%,1100px);margin:0 auto;border:1px solid var(--line);background:#fff;padding:10px}.melody-real-row-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:9px;color:var(--muted);font-size:11px}.melody-real-row-toolbar label{display:flex;align-items:center;gap:5px}.melody-real-row-controls select,.melody-real-row-toolbar select{height:30px;min-width:0;border:1px solid var(--line);border-radius:4px;background:#fff;font-size:11px}.melody-real-row-template-crop{position:absolute;inset:0;overflow:hidden;pointer-events:none}.melody-real-row-template-crop img{position:absolute;display:block;max-width:none;pointer-events:none;user-select:none}.melody-real-row-canvas>.melody-real-row-chord-layer{position:relative;z-index:2;height:auto}.melody-real-row-measure{position:absolute;top:0;overflow:visible}.melody-real-row-measure>.melody-combo-measure-view{overflow:visible}.melody-real-row-hit{position:absolute;z-index:8;top:0;bottom:0;border:0;padding:0;background:transparent;cursor:grab}.melody-real-row-hit:active{cursor:grabbing}.melody-real-row-hit:hover{outline:1px solid #0a84ff88;outline-offset:-1px;background:#0a84ff0a}.melody-real-row-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.melody-real-row-controls label{display:grid;gap:4px;color:var(--muted);font-size:10px}.melody-real-row-controls label.occupied select{color:var(--muted);background:var(--surface)}.melody-real-row-warnings{display:grid;gap:3px;margin-top:8px;color:#b42318;font-size:11px;line-height:1.35}.melody-real-row-empty{width:min(100%,620px);margin:0 auto;border:1px dashed var(--line);padding:18px;color:var(--muted);font-size:12px}.melody-real-row-toolbar{justify-content:space-between}.melody-real-row-toolbar>div:first-child{display:grid;gap:3px}.melody-real-row-toolbar>div:first-child span{color:var(--muted);font-size:10px}.melody-preview-toolbar-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.melody-real-row-viewport{width:100%;overflow:visible;padding-bottom:3px}.melody-real-row-canvas{position:relative;width:100%;min-width:0;aspect-ratio:2018/258;overflow:visible;border:1px solid #9c9ca2;background:#fff;line-height:0;touch-action:none}.melody-real-row-canvas>.melody-real-row-chord-layer{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}.melody-preview-layer{position:absolute;inset:0;z-index:3;pointer-events:none}.melody-preview-measure{position:absolute;top:0;bottom:0;pointer-events:none}.melody-preview-measure.locked{outline:1px dashed #ff9f0a66;outline-offset:-1px}.melody-preview-beat-target{position:absolute;z-index:1;top:0;bottom:0;border:0;padding:0;background:transparent;pointer-events:auto;cursor:crosshair}.melody-preview-beat-target:hover{background:#0a84ff0d;outline:1px dashed #0a84ff66;outline-offset:-1px}.melody-preview-beat-target.fractional-beat{pointer-events:none;cursor:default}.melody-preview-occupied-hit{position:absolute;z-index:2;top:0;bottom:0;border:0;padding:0;background:transparent;pointer-events:auto;cursor:pointer}.melody-preview-combo{position:absolute;z-index:4;top:0;height:58%;min-width:3%;transform-origin:left top;pointer-events:auto;cursor:grab}.melody-preview-combo:active{cursor:grabbing}.melody-preview-element{position:absolute;z-index:2;display:grid;place-items:center;transform-origin:center;pointer-events:none}.melody-preview-element.interactive-pitch{pointer-events:auto;cursor:pointer}.melody-preview-element.interactive-pitch:after{content:"";position:absolute;inset:-8px}.melody-preview-element.pitch-selected{outline:2px solid #0a84ff;outline-offset:2px;background:#0a84ff1f}.melody-preview-element img{display:block;max-width:100%;max-height:100%;object-fit:contain}.melody-preview-element.resolved-duration-beam>img,.melody-preview-element.resolved-sustain-line>img{width:100%;height:100%;max-width:none;max-height:none;object-fit:fill}.melody-preview-element>.melody-pitch-glyph{position:absolute;inset:0;display:grid;place-items:center;min-width:0;min-height:0}.melody-preview-element.kind-chordHit>img,.melody-preview-element.kind-note>img,.melody-preview-element.kind-rest>img{width:auto;height:100%;max-width:none;max-height:none;object-fit:contain}.melody-preview-element .secondary-beam{position:absolute;top:125%;left:50%;transform:translateX(-50%)}.melody-preview-element.kind-beam,.melody-preview-element.kind-guide,.melody-preview-element.kind-sustain{height:8%}.melody-preview-element.kind-tripletArc{height:16%}.melody-preview-selection-frame{position:absolute;z-index:1;display:none;box-sizing:border-box;border:1px solid #0a84ffbb;background:#0a84ff0b;pointer-events:none}.melody-preview-selection-frame.visible{display:block}.melody-preview-selection-frame.warning{border-color:#b42318;background:#b4231808}.melody-preview-manual-flag{position:absolute;top:102%;left:50%;color:#b42318;font-size:8px;line-height:1;white-space:nowrap;transform:translateX(-50%)}.melody-preview-unmatched-block{position:absolute;z-index:5;top:28%;height:25%;border:1px dashed #b42318;color:#b42318;font-size:9px;text-align:center;line-height:1;pointer-events:auto}.melody-preview-caption{margin-top:7px;color:var(--muted);font-size:10px}.melody-preview-insert-menu,.melody-preview-placement-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:9px;padding:8px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:10px}.melody-preview-insert-menu strong,.melody-preview-placement-controls strong{color:var(--ink)}.melody-preview-insert-menu select,.melody-preview-placement-controls input,.melody-preview-placement-controls select{height:29px;min-width:130px;border:1px solid var(--line);border-radius:4px;background:#fff;padding:0 6px;font-size:10px}.melody-preview-placement-controls label{display:flex;align-items:center;gap:4px}.melody-preview-pitch-controls{display:flex;align-items:center;gap:8px;padding-left:8px;border-left:1px solid var(--line)}.melody-preview-pitch-controls.active{border-left:3px solid #0a84ff;background:#0a84ff12}.melody-preview-pitch-controls label{white-space:nowrap}.melody-preview-placement-controls input{width:68px;min-width:68px}.melody-preview-x-range{color:var(--muted);font-size:10px;white-space:nowrap}.melody-delete-confirm-backdrop{position:fixed;z-index:200;inset:0;display:grid;place-items:center;padding:20px;background:#0000004d}.melody-delete-confirm{width:min(420px,100%);border:1px solid #bfc0c5;border-radius:8px;padding:18px;background:#fff;box-shadow:0 22px 64px #00000045}.melody-delete-confirm h2{margin:0 0 8px;font-size:16px}.melody-delete-confirm p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.melody-delete-confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}@media (max-width:760px){.melody-builder-page{padding:12px}.melody-builder-layout{grid-template-columns:1fr}.melody-library-panel{border-right:0;border-bottom:1px solid var(--line)}.melody-template-list{max-height:170px}.melody-template-canvas{width:100%}.melody-application-controls,.melody-preview-controls,.melody-real-row-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.melody-preview-heading{display:block}.melody-preview-heading>span{display:block;margin-top:6px}.melody-real-row-viewport{overflow-x:auto;overflow-y:visible}.melody-real-row-canvas{width:1060px;min-width:1060px}}.button:disabled{opacity:.55;cursor:wait}.button.analyze,.button.primary{color:#fff;background:linear-gradient(#168cff,#0878e8);border-color:#0873dc;box-shadow:0 1px 2px #0058b94d,inset 0 1px 0 #ffffff38}.button.analyze:hover,.button.primary:hover{background:#0077e6}.button.secondary{color:var(--ink);background:#ffffffa8;border-color:#c6c6ca}.button.analyze{min-height:42px;padding-inline:18px}.export-menu{position:relative}.export-trigger{display:flex;gap:5px}.export-trigger span{font-size:12px;line-height:1}.export-submenu{position:absolute;z-index:50;top:calc(100% + 6px);right:0;width:132px;overflow:hidden;padding:4px;border:1px solid #c7c7cc;border-radius:7px;background:#ffffffed;box-shadow:0 8px 24px #00000024;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.export-submenu button{width:100%;height:34px;border:0;border-radius:5px;padding:0 10px;background:transparent;text-align:left;cursor:pointer;font-size:12px}.export-submenu button:hover{color:var(--brand-strong);background:var(--brand-soft)}.export-submenu button:disabled{color:var(--muted);cursor:wait}.project-library-menu{position:relative;min-width:0}.project-library-trigger{width:clamp(150px,18vw,230px);height:38px;display:flex;flex-direction:column;justify-content:center;gap:2px;overflow:hidden;border:1px solid #c7c7cc;border-radius:7px;padding:0 10px;background:#fff;text-align:left;cursor:pointer}.project-library-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}.project-library-trigger small{display:block;min-width:88px;min-height:11px;color:var(--muted);font-size:9px;line-height:11px}.project-library-trigger small[data-status=saved]{color:#248a3d}.project-library-trigger small[data-status=failed],.project-library-trigger small[data-status=offline]{color:var(--amber)}.project-library-trigger small[data-status=conflict]{color:var(--danger)}.project-library-popover{position:absolute;z-index:80;top:calc(100% + 8px);left:0;width:min(390px,calc(100vw - 24px));max-height:min(720px,calc(100vh - 78px));overflow:auto;border:1px solid #bfc0c5;border-radius:8px;padding:8px;background:#fffffff5;box-shadow:0 16px 44px #00000032;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.project-library-heading,.project-library-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.project-library-heading{min-height:34px;padding:0 4px 7px}.project-library-heading strong{font-size:13px}.project-library-heading button{width:28px;height:28px;border:0;border-radius:5px;background:transparent;cursor:pointer;font-size:20px}.project-library-heading button:hover{background:#ededf0}.project-library-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.project-library-actions button,.project-library-delete,.project-library-disclosure,.project-library-wide-action{min-height:32px;border:1px solid #c9c9ce;border-radius:5px;padding:0 9px;background:#fff;text-align:left;cursor:pointer;font-size:11px}.project-library-actions button:hover,.project-library-disclosure:hover,.project-library-wide-action:hover{border-color:var(--brand);color:var(--brand-strong)}.project-import-input{display:none}.project-library-section{margin-top:8px;border-top:1px solid var(--soft-line);padding-top:8px}.project-library-section-title{min-height:22px;padding:0 4px 5px;color:var(--muted);font-size:10px}.project-library-list{display:grid;gap:3px;max-height:180px;overflow:auto}.project-library-list button{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid transparent;border-radius:5px;padding:5px 8px;background:transparent;text-align:left;cursor:pointer}.project-library-list button:hover{background:var(--brand-soft)}.project-library-list button.selected{border-color:#8abbea;background:var(--brand-soft)}.project-library-list button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650}.project-library-list button small{flex:0 0 auto;color:var(--muted);font-size:9px}.project-library-list p{margin:6px 8px;color:var(--muted);font-size:10px}.project-library-list.compact{max-height:120px}.project-library-disclosure{width:100%}.project-library-wide-action{width:100%;margin-top:5px}.history-list{margin-top:5px}.project-trash-list{display:grid;gap:4px}.project-trash-list>div{min-height:34px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px;padding:3px 5px;border-radius:5px;background:#f5f5f7}.project-trash-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.project-trash-list button{height:26px;border:1px solid #c9c9ce;border-radius:4px;background:#fff;cursor:pointer;font-size:9px}.project-library-delete{width:100%;margin-top:9px;color:#c5281c}.project-library-delete:disabled{opacity:.45;cursor:default}@media (max-width:700px){.project-library-popover{position:fixed;top:54px;right:12px;left:12px;width:auto;max-height:calc(100vh - 66px)}}.project-conflict-backdrop{position:fixed;z-index:200;inset:0;display:grid;place-items:center;padding:20px;background:#0000004d}.project-conflict-dialog{width:min(440px,100%);border:1px solid #bfc0c5;border-radius:8px;padding:18px;background:#fff;box-shadow:0 22px 64px #00000045}.project-conflict-dialog h2{margin:0 0 8px;font-size:16px}.project-conflict-dialog p{margin:0 0 16px;color:var(--muted);font-size:12px;line-height:1.6}.project-conflict-dialog>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.project-rename-form{display:grid;gap:14px}.project-rename-form input{width:100%;height:38px;border:1px solid #bfc0c5;border-radius:6px;padding:0 10px;background:#fff;color:var(--ink);font:inherit}.project-rename-form input:focus{border-color:var(--brand);outline:2px solid var(--brand-soft)}.project-rename-actions{display:flex;justify-content:flex-end;gap:7px}.project-rename-cancel{color:var(--ink);background:#fff;border-color:#c6c6ca}.source-strip{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) auto minmax(100px,140px) auto;gap:10px;padding:10px 14px;background:#f3f3f5;border-bottom:1px solid var(--line)}.file-control,.source-strip{min-width:0;align-items:center}.file-control{height:44px;display:flex;justify-content:center;gap:9px;border:1px solid #c9c9ce;border-radius:8px;padding:5px 9px;background:#fff;box-shadow:0 1px 2px #0000000a;cursor:pointer}.file-control:hover{border-color:var(--brand)}.file-control.has-file{border-color:#8fbbe7;background:var(--brand-soft)}.file-control input{display:none}.file-control .control-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:6px;color:var(--brand);background:var(--brand-soft);font-size:18px;flex:0 0 auto}.file-control>span:not(.control-icon){min-width:0;display:flex;flex-direction:column;text-align:center}.file-control b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.file-control small,.song-name-field{color:var(--muted);font-size:10px}.song-name-field{min-width:0}.song-name-field input{display:block;width:100%;height:28px;margin-top:2px;padding:0 8px;border:1px solid #cbd3cf;border-radius:4px;background:#fff;color:var(--ink)}.metadata-fields{display:flex;gap:6px}.metadata-fields label{color:var(--muted);font-size:10px}.metadata-fields input,.metadata-fields select{display:block;width:76px;height:28px;margin-top:2px;padding:0 7px;border:1px solid #cbd3cf;border-radius:4px;background:#fff;color:var(--ink)}.privacy-state{color:var(--muted);font-size:11px;white-space:nowrap}.privacy-state i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#34c759;margin-right:4px}.notice-bar{min-height:30px;display:flex;align-items:center;gap:9px;padding:5px 16px;color:var(--muted);background:#f7f7f8;border-bottom:1px solid var(--line);font-size:11px}.notice-bar span{color:var(--brand-strong);font-weight:750}.song-structure-alert{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 16px;color:#7a2e00;background:#fff3e8;border-bottom:1px solid #efc19e;font-size:11px}.song-structure-alert>div{display:flex;align-items:baseline;gap:8px;min-width:0}.song-structure-alert strong{flex:0 0 auto}.song-structure-alert span{overflow-wrap:anywhere}.song-structure-alert button{flex:0 0 auto;min-height:26px;padding:0 10px;color:#7a2e00;background:#fff;border:1px solid #d99a6a;border-radius:5px;cursor:pointer;font:inherit;font-weight:700}.pdf-recognition-summary{min-height:34px;display:flex;flex-wrap:wrap;align-items:center;gap:7px 14px;padding:6px 16px;border-bottom:1px solid #d7d7dc;background:#fff8e8;color:#4e493e;font-size:11px}.pdf-recognition-summary strong{color:#8d5f00}.pdf-recognition-summary .pdf-recognition-warning{flex:1 1 320px;color:#765f2e}.pdf-recognition-summary button{border:1px solid #c9b27c;border-radius:5px;padding:3px 8px;background:#fff;color:#625022;cursor:pointer}.editor-grid{min-height:0;display:grid;grid-template-columns:350px 9px minmax(300px,.82fr) 9px minmax(420px,1.18fr);gap:0;overflow:hidden;background:#c7c7cc}.panel{min-width:0;min-height:0;background:var(--surface);display:flex;flex-direction:column}.panel,.panel:last-child{border-right:0}.panel-resizer{position:relative;z-index:8;width:9px;min-width:9px;display:grid;place-items:center;background:#d6d6da;cursor:col-resize;touch-action:none;user-select:none}.panel-resizer:before{content:"";position:absolute;inset:0 3px;background:#b4b4b9}.panel-resizer span{position:relative;width:3px;height:38px;border-radius:2px;background:#85858b;opacity:0;transition:opacity .12s ease}.panel-resizer:focus-visible span,.panel-resizer:hover span,.resizing-panels .panel-resizer span{opacity:1}.panel-resizer:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.resizing-panels,.resizing-panels *{cursor:col-resize!important;user-select:none!important}.panel-header{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border-bottom:1px solid var(--line);background:#f7f7f8e8;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.panel-header.compact{min-height:54px}.panel-header h2{margin:0;font-size:14px;line-height:1.2}.panel-header p{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:4px 0 0;color:var(--muted);font-size:10px}.icon-button{width:30px;height:30px;border:1px solid #c7c7cc;border-radius:7px;background:linear-gradient(#fff,#f1f1f3);box-shadow:0 1px 2px #00000010;cursor:pointer;font-size:18px}.icon-button:hover{border-color:var(--brand);color:var(--brand)}.audio-player{display:grid;gap:8px;padding:10px;border-bottom:1px solid var(--line);background:#ededf0}.audio-player audio{width:100%;height:48px;display:block}.audio-empty{height:48px;display:grid;place-items:center;color:var(--muted);background:#ffffffb5;border:1px solid #d2d2d7;border-radius:7px;font-size:11px}.audio-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;min-height:24px}.audio-progress input{width:100%;margin:0;accent-color:var(--brand);cursor:pointer}.audio-progress output{min-width:75px;color:#5f6368;text-align:right;font-size:10px;font-variant-numeric:tabular-nums}.playback-rate{display:flex;align-items:center;justify-content:center;gap:0}.playback-rate span{margin-right:8px;color:var(--muted);font-size:10px}.playback-rate button{min-width:56px;height:30px;border:1px solid #c7c7cc;border-right-width:0;background:#fff;color:#52525a;cursor:pointer;touch-action:manipulation;font-size:11px;font-variant-numeric:tabular-nums}.playback-rate button:first-of-type{border-radius:6px 0 0 6px}.playback-rate button:last-child{border-right-width:1px;border-radius:0 6px 6px 0}.playback-rate button.selected{position:relative;z-index:1;color:#fff;border-color:var(--brand);background:var(--brand)}.playback-rate button:disabled{cursor:default;opacity:.45}.section-list{min-height:0;overflow:auto;padding:8px;background:#f1f1f3}.section-item{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);gap:5px 8px;min-height:0;margin-bottom:7px;padding:7px 6px;border:1px solid #d8d8dc;border-left:3px solid #b0b0b5;border-radius:8px;background:#fff;box-shadow:0 1px 3px #0000000d}.section-item.uncertain{border-left-color:#ff9f0a;background:#fffdf8}.section-icon{width:52px;height:44px;display:grid;place-items:center;overflow:visible}.section-icon img{max-width:50px;max-height:42px;width:auto;height:auto;object-fit:contain}.section-icon span{color:var(--blue);font-family:Comic Sans MS,Kaiti SC,cursive;font-size:17px;font-weight:800}.section-fields{min-width:0}.section-identity-label{display:block;margin-bottom:4px;font-size:12px;line-height:1.35;overflow-wrap:anywhere}.section-line{display:grid;grid-template-columns:minmax(0,1fr) 56px auto;align-items:center;gap:4px}.section-line input,.section-line select{height:29px;min-width:0;border:1px solid #c7c7cc;border-radius:6px;background:#fff;padding:0 7px;box-shadow:inset 0 1px 2px #00000008;font-size:11px}.section-line .bar-input{text-align:center;padding:0 18px 0 6px}.bar-unit,.vocal-toggle{color:var(--muted);font-size:10px}.vocal-toggle{display:flex;align-items:center;gap:4px;margin-top:6px}.vocal-toggle input{accent-color:var(--brand)}.candidate-button{border:0;cursor:pointer}.candidate-button,.candidate-empty{margin-top:6px;padding:3px 6px;border-radius:3px;color:#884b14;background:var(--amber-soft);font-size:10px}.candidate-empty{display:inline-block}.candidate-menu{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.candidate-menu button{border:1px solid #e0b788;border-radius:3px;background:#fff;padding:3px 5px;cursor:pointer;font-size:9px}.row-actions{display:flex;flex-direction:column;align-items:stretch;gap:3px}.row-actions button{width:22px;height:22px;border:0;border-radius:5px;background:#ededf0;color:#6e6e73;cursor:pointer}.row-actions button:hover{color:var(--brand);background:var(--brand-soft)}.row-actions button:last-child:hover{color:var(--danger);background:#faecec}.row-actions button:disabled{opacity:.3;cursor:default}.workbench-ui-icon{display:inline-block;width:18px;height:18px;flex:0 0 18px;vertical-align:middle;pointer-events:none}.workbench-tooltip{position:fixed;z-index:10000;max-width:min(280px,calc(100vw - 16px));padding:6px 9px;border-radius:7px;background:#25262b;color:#fff;font:12px/1.4 system-ui,sans-serif;overflow-wrap:anywhere;pointer-events:none;box-shadow:0 2px 8px #0002}@media print{.workbench-tooltip{display:none!important}}@keyframes workbench-menu-enter{0%{opacity:.65}to{opacity:1}}@keyframes workbench-tooltip-enter{0%{opacity:.6}to{opacity:1}}@media screen and (prefers-reduced-motion:no-preference){.score-floating-menu{animation:workbench-menu-enter .1s ease-out}.workbench-tooltip{animation:workbench-tooltip-enter 80ms ease-out}.score-floating-menu button:has(.workbench-ui-icon),.workbench .structure-panel button:has(.workbench-ui-icon),.workbench .topbar button:has(.workbench-ui-icon),.workbench-settings button:has(.workbench-ui-icon){transition:background-color 80ms ease-out,border-color 80ms ease-out,color 80ms ease-out}}@media screen{.score-floating-menu button:has(.workbench-ui-icon):active:not(:disabled),.workbench .structure-panel button:has(.workbench-ui-icon):active:not(:disabled),.workbench .topbar button:has(.workbench-ui-icon):active:not(:disabled),.workbench-settings button:has(.workbench-ui-icon):active:not(:disabled){background-color:#e7eaf0}}@media screen and (hover:hover){.workbench .structure-panel button:has(.workbench-ui-icon):hover:not(:disabled),.workbench .topbar button:has(.workbench-ui-icon):hover:not(:disabled),.workbench-settings button:has(.workbench-ui-icon):hover:not(:disabled){border-color:#b4bdca}}.workbench-action-label{display:inline-flex;align-items:center;justify-content:center;gap:6px;vertical-align:middle}.topbar .workbench-settings-trigger{width:34px;min-width:34px;padding:0;justify-content:center;align-items:center}.row-actions{gap:4px}.row-actions button{display:grid;place-items:center;width:28px;height:28px}.row-actions button:has([data-ui-icon=trash]){color:#b42318}.score-floating-menu-header button,.topbar .icon-button,.workbench-settings header>button{display:inline-flex;align-items:center;justify-content:center}.export-trigger{display:inline-flex;align-items:center;gap:6px}.project-library-disclosure{display:flex;align-items:center;justify-content:space-between}.section-boundary-button{grid-column:1/-1;justify-self:start;border:1px solid #d2d2d7;border-radius:5px;background:white;color:#51515a;padding:4px 8px;font-size:12px;cursor:pointer}.section-boundary-button:disabled{opacity:.4;cursor:default}.section-visual-cue-row{position:absolute;inset:0 1% 0 11%;pointer-events:auto;z-index:12}.score-row-overlay.icon-only:has(.section-visual-cue-row.menu-open){z-index:180}.section-visual-cue{position:absolute;cursor:grab;touch-action:none;overflow:visible}.section-visual-cue .arrangement-sprite{display:block;width:100%;height:100%}.section-visual-cue .arrangement-sprite>img{pointer-events:none}.section-visual-cue.selected{outline:1px solid #448aff}.section-cue-add{position:absolute;right:0;top:0;z-index:3;font-size:10px;border:1px solid #ccc;border-radius:4px;background:#fff;cursor:pointer}.section-cue-menu{position:absolute;top:90%;left:0;z-index:200;width:min(460px,80vw);max-height:360px;overflow:auto;padding:10px;border:1px solid #c7b8df;background:white;border-radius:8px;box-shadow:0 5px 20px #0003;display:grid;gap:8px;font-size:12px;color:#222}.section-cue-menu header,.section-cue-menu label,.section-cue-menu>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.section-cue-menu header{justify-content:space-between}.section-cue-menu select{max-width:190px}.section-cue-menu button,.section-cue-menu select{padding:4px;font-size:12px}.section-cue-menu output{min-width:36px}.section-cue-menu input[type=range]{width:150px}@media print{.section-cue-add,.section-cue-menu{display:none!important}.section-visual-cue.selected{outline:none!important}}.section-item.copy-source{border-color:#0a84ff;background:#f3f8ff;box-shadow:0 0 0 2px #0a84ff24}.section-copy-banner{display:grid;gap:5px;padding:9px 10px;border-bottom:1px solid #8abbea;background:#eef6ff;color:#075ea8;font-size:10px;line-height:1.4}.section-copy-banner strong{color:#064f89;font-size:11px}.section-copy-banner>div{display:flex;gap:5px}.section-copy-banner button,.section-copy-target-actions button{min-height:28px;border:1px solid #8abbea;border-radius:5px;padding:4px 7px;background:#fff;color:#075ea8;cursor:pointer;font-size:9px}.section-copy-target-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding-top:7px;border-top:1px dashed #a8c9e9}.section-copy-banner button:hover,.section-copy-target-actions button:hover{border-color:var(--brand);background:var(--brand-soft)}.section-copy-backdrop{position:fixed;z-index:230;inset:0;display:grid;place-items:center;padding:20px;background:#00000055}.section-copy-dialog{width:min(470px,100%);display:grid;gap:11px;border:1px solid #bfc0c5;border-radius:10px;padding:18px;background:#fff;box-shadow:0 22px 64px #00000045}.section-copy-dialog h2{margin:0;font-size:17px}.section-copy-dialog p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}.section-copy-dialog dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}.section-copy-dialog dl>div{display:grid;gap:2px;padding:7px;border-radius:6px;background:#f5f5f7}.section-copy-dialog dt{color:var(--muted);font-size:9px}.section-copy-dialog dd{margin:0;color:var(--ink);font-size:14px;font-weight:750}.section-copy-dialog>label{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:8px;color:var(--muted);font-size:11px}.section-copy-dialog input,.section-copy-dialog select{width:100%;height:34px;border:1px solid #c7c7cc;border-radius:6px;padding:0 8px;background:#fff;color:var(--ink);font:inherit}.section-copy-dialog .section-copy-audio-warning{padding:7px 8px;border:1px solid #efc382;border-radius:5px;background:#fffaf0;color:#8a4b00}.section-copy-dialog-actions{display:flex;justify-content:flex-end;gap:7px}.section-copy-dialog-actions button{min-height:34px;border:1px solid #c7c7cc;border-radius:6px;padding:0 12px;background:#fff;color:var(--ink);cursor:pointer}.section-copy-dialog-actions button.primary{border-color:var(--brand);background:var(--brand);color:#fff}.section-copy-dialog-actions button:disabled{opacity:.4;cursor:default}.export-confirmation-backdrop{position:fixed;z-index:240;inset:0;display:grid;place-items:center;padding:20px;background:#00000055}.export-confirmation-dialog{width:min(420px,100%);display:grid;gap:12px;border:1px solid #bfc0c5;border-radius:10px;padding:18px;background:#fff;box-shadow:0 22px 64px #00000045}.export-confirmation-dialog h2,.export-confirmation-dialog p{margin:0}.export-confirmation-dialog h2{font-size:17px}.export-confirmation-dialog p{color:var(--muted);font-size:11px;line-height:1.55}.export-confirmation-dialog>label{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px;color:var(--muted);font-size:11px}.export-confirmation-dialog input,.export-confirmation-dialog select{width:100%;height:34px;border:1px solid #c7c7cc;border-radius:6px;padding:0 8px;background:#fff;color:var(--ink);font:inherit}.export-confirmation-actions{display:flex;justify-content:flex-end;gap:7px}.export-confirmation-actions button{min-height:34px;border:1px solid #c7c7cc;border-radius:6px;padding:0 12px;background:#fff;color:var(--ink);cursor:pointer}.export-confirmation-actions button.primary{border-color:var(--brand);background:var(--brand);color:#fff}.calibration-note{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border-top:1px solid var(--line);color:var(--muted);background:#f5f5f7;font-size:10px}.calibration-note b{color:var(--brand-strong)}.reference-canvas{min-height:0;flex:1;overflow:auto;padding:8px;background:#fff}.reference-canvas embed{width:100%;height:100%;min-height:680px;background:#fff;border:0}.reference-empty{height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);background:#fff}.reference-pdf-view{width:100%;background:#fff}.reference-panel,.score-panel{background:#fff}.score-scroll .score-page{box-shadow:none}.reference-pdf-page{position:relative;width:100%;aspect-ratio:210/297;margin-bottom:8px;background:#fff}.reference-pdf-page canvas{display:block;width:100%;height:auto}[data-media-drop]{position:relative}.media-drop-active:after{content:"松开导入";position:absolute;inset:0;z-index:150;display:grid;place-items:center;border:2px dashed #1677ff;background:#eef6fff2;color:#1677ff;font-size:14px;pointer-events:none}.reference-empty>span{font-size:36px;color:#9aa7a1}.reference-empty b{margin-top:8px;color:#4d5a55}.reference-empty p{max-width:260px;margin:7px 20px;font-size:11px}.score-panel-header{display:grid;grid-template-columns:minmax(70px,1fr) auto minmax(70px,1fr);align-items:center}.score-panel-title{grid-column:2;justify-self:center}.structure-panel>.panel-header{display:grid;grid-template-columns:32px minmax(0,1fr) 32px}.structure-panel>.panel-header>div{grid-column:2;min-width:0;text-align:center}.structure-panel>.panel-header>.add{grid-column:3;justify-self:end}.reference-panel>.panel-header{justify-content:center;text-align:center}.reference-panel>.panel-header>div{min-width:0;max-width:100%}.score-panel-header>.score-editor-center{grid-column:1/-1;grid-row:2;justify-self:center}.score-panel-header>.score-editor-center:empty{display:none}.score-panel-wordmark{display:block;width:76px;height:34px;object-fit:contain}.score-editor-center{justify-self:center}.score-tools{display:flex;align-items:center;justify-self:end;gap:9px}.score-tools select{height:28px;border:1px solid #c7c7cc;border-radius:6px;background:#fff;padding:0 7px;font-size:10px}.header-material-editor{display:flex;align-items:center;gap:4px}.header-material-editor>button{height:28px;padding:0 8px;border:1px solid #c7c7cc;background:#fff;font-size:10px;cursor:pointer}.header-material-editor>button:first-child{border-radius:6px 0 0 6px}.header-material-editor>button:nth-child(2){margin-left:-5px;border-radius:0 6px 6px 0}.header-material-editor>button.selected{position:relative;z-index:1;color:var(--brand-strong);border-color:var(--brand);background:var(--brand-soft)}.header-material-editor label{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:9px;white-space:nowrap}.header-material-editor output{min-width:30px;color:var(--ink);font-variant-numeric:tabular-nums}.header-material-editor input{width:72px;accent-color:var(--brand)}.icon-library{min-height:50px;max-height:92px;display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:8px;overflow-x:hidden;overflow-y:auto;padding:8px;border-bottom:1px solid var(--line);background:#f1f1f3}.icon-library>span{height:36px;display:grid;place-items:center;margin:0;color:var(--muted);font-size:10px;white-space:nowrap}.icon-library button{flex:0 0 auto;width:46px;height:36px;display:grid;place-items:center;border:1px solid #c7c7cc;border-radius:7px;background:linear-gradient(#fff,#f5f5f7);box-shadow:0 1px 2px #0000000d;cursor:grab;overflow:visible}.icon-library button.selected{border-color:var(--brand);outline:3px solid #0a84ff29;background:var(--brand-soft)}.icon-library img{width:32px;height:24px;object-fit:contain;pointer-events:none}.icon-library button span{width:100%;color:var(--blue);font-family:Comic Sans MS,Kaiti SC,cursive;font-size:11px;font-weight:800;line-height:1;text-align:center;white-space:nowrap}.score-chord-toolbar{position:relative;min-height:36px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:5px 8px;border-bottom:1px solid var(--line);background:#f7f7f8}.score-chord-toolbar button{flex:0 0 auto;min-height:25px;padding:0 8px;border:1px solid #c7c7cc;border-radius:5px;background:#fff;color:var(--ink);cursor:pointer;font-size:9px;white-space:nowrap}.score-chord-toolbar button.selected{color:#fff;border-color:var(--brand);background:var(--brand)}.score-chord-toolbar>span{margin-left:auto;color:var(--muted);font-size:8px;white-space:nowrap}.melody-dual-layer-song-panel{position:absolute;z-index:90;top:calc(100% + 4px);left:160px;width:min(380px,calc(100vw - 32px));padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;border:1px solid #bfc4cc;border-radius:7px;background:#fff;box-shadow:0 8px 26px rgb(0 0 0/18%)}.melody-dual-layer-song-panel>div,.melody-dual-layer-song-panel>small,.melody-dual-layer-song-panel>strong{grid-column:1/-1}.melody-dual-layer-song-panel label{display:grid;gap:3px;font-size:9px}.melody-dual-layer-song-panel .melody-dual-layer-mini-preview{min-height:76px}.melody-dual-layer-song-panel>div:last-of-type{display:flex;justify-content:flex-end;gap:6px}.score-chord-entry-group{min-width:min(100%,285px);flex:1 1 340px;display:flex;align-items:center;gap:6px}.score-template-unification{display:grid;gap:5px;padding:9px 10px;border-bottom:1px solid var(--line);background:#fffaf0;color:#7a4b00;font-size:9px;line-height:1.4}.score-template-unification strong{color:var(--ink);font-size:10px}.score-template-unification small{color:var(--muted)}.score-template-unification>div{display:flex;gap:6px}.score-template-unification button{min-height:26px;padding:0 8px;border:1px solid #c7c7cc;border-radius:5px;background:#fff;color:var(--ink);cursor:pointer;font-size:9px}.score-template-unification button:first-child{border-color:var(--brand);background:var(--brand);color:#fff}.score-chord-library{max-height:250px;display:flex;flex-direction:column;gap:9px;overflow:auto;padding:7px 8px 9px;border-bottom:1px solid var(--line);background:#f1f1f3}.score-chord-library-group{display:grid;gap:4px}.score-chord-library-group>strong{color:var(--muted);font-size:8px;font-weight:700}.score-chord-library-group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:4px}.score-chord-library button{min-width:0;height:38px;display:grid;grid-template-rows:24px auto;place-items:center;padding:2px;border:1px solid #d1d1d6;border-radius:5px;background:#fff;color:var(--muted);cursor:grab}.score-chord-library button:hover{border-color:var(--brand);background:var(--brand-soft)}.score-chord-library img{display:block;width:100%;height:23px;object-fit:contain;pointer-events:none}.score-chord-library span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px}.score-key-change-library{display:grid;gap:6px;padding:7px 8px 9px;border-bottom:1px solid var(--line);background:#f1f1f3}.score-key-change-library>strong{color:var(--muted);font-size:8px}.score-key-change-library>div{display:grid;grid-template-columns:repeat(6,minmax(52px,1fr));gap:5px}.score-key-change-library button{min-width:0;height:46px;display:grid;grid-template-rows:30px auto;place-items:center;padding:2px 3px;border:1px solid #d1d1d6;border-radius:5px;background:#fff;color:var(--muted);cursor:pointer}.score-key-change-library button.selected{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}.score-key-change-library img{display:block;max-width:100%;height:29px;object-fit:contain;pointer-events:none}.score-key-change-library span{font-size:7px;white-space:nowrap}.score-beat-extension-library{display:grid;gap:6px;padding:7px 8px 9px;border-bottom:1px solid var(--line);background:#f1f1f3}.score-beat-extension-library>strong{color:var(--muted);font-size:8px}.score-beat-extension-library>div{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:5px}.score-beat-extension-library button{min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;gap:7px;padding:4px 7px;border:1px solid #d1d1d6;border-radius:5px;background:#fff;color:var(--ink);cursor:pointer}.score-beat-extension-library button.selected{border-color:#c67d00;background:#fff6df;box-shadow:inset 0 0 0 1px #c67d00}.score-beat-extension-library button:disabled{cursor:not-allowed;opacity:.45}.score-beat-extension-library img{width:42px;height:auto;object-fit:contain;pointer-events:none}.score-beat-extension-library span{font-size:8px;line-height:1.25}.arrangement-material-library{max-height:270px;display:grid;gap:6px;overflow:auto;padding:7px 8px 9px;border-bottom:1px solid var(--line);background:#f1f1f3}.arrangement-material-library>strong{color:var(--muted);font-size:8px}.arrangement-material-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:5px}.arrangement-material-library-grid>button{min-width:0;height:72px;display:grid;grid-template-rows:48px auto;place-items:center;gap:2px;padding:3px;border:1px solid #d1d1d6;border-radius:5px;background:#fff;color:var(--muted);cursor:grab;overflow:hidden}.arrangement-material-library button:hover{border-color:#7b4cc2;background:#f5efff}.arrangement-material-library button:active{cursor:grabbing}.arrangement-material-library .arrangement-sprite{width:min(100%,144px);max-height:48px}.arrangement-material-library-grid>button>span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.arrangement-material-library-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.arrangement-material-search{width:100%;min-width:0;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:white;font:inherit;font-size:12px}.arrangement-sort-palette>header{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-bottom:8px}.arrangement-sort-palette>header>div:last-child{display:flex;gap:5px}.arrangement-sort-palette>header button{padding:5px 9px;border:1px solid var(--line);border-radius:8px;background:white}.arrangement-sort-palette>header>button svg,.arrangement-sort-palette>header>div>button svg{width:16px;height:16px}.arrangement-sort-palette .menu-palette-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:5px}.arrangement-sort-palette [data-palette-item]{min-width:0}.arrangement-sort-palette .menu-palette-grid button{width:100%;min-width:0;height:72px;display:grid;grid-template-rows:48px auto;place-items:center;gap:2px;padding:3px;border:1px solid #d1d1d6;border-radius:5px;background:white;cursor:grab;overflow:hidden}.arrangement-sort-palette .menu-palette-grid button>span:last-child{font-size:11px}.workbench .arrangement-material-library .arrangement-sort-palette .menu-palette-grid button{width:100%;height:56px;padding:3px;grid-template-rows:1fr}.arrangement-sort-palette .palette-drag-handle{touch-action:none;user-select:none}.arrangement-sort-palette .palette-drag-handle *{pointer-events:none}.arrangement-sort-palette .palette-placeholder{opacity:.25;outline:1px dashed #9c85bd;border-radius:5px}.arrangement-sort-palette .palette-ghost{position:fixed;z-index:1500;pointer-events:none;width:144px;padding:6px;display:grid;justify-items:center;background:white;border:1px solid #b9a5ce;border-radius:8px;box-shadow:0 3px 12px #0002;font-size:11px}.arrangement-material-library .quick-category-options{display:flex;flex-wrap:wrap;gap:5px}.arrangement-material-library .quick-category-options button{height:auto;padding:5px 9px;font-size:11px;cursor:pointer}.arrangement-material-library .quick-category-options button[aria-pressed=true]{background:#e9e0f4;color:#624389;border-color:#b9a5ce}.score-scroll{min-height:0;flex:1;overflow:auto;padding:0;background:#fff}.score-pages{min-width:0;width:100%;max-width:none;margin:0;display:flex;flex-direction:column;gap:16px}.score-page{container-type:inline-size;position:relative;width:100%;aspect-ratio:1668/2014;overflow:hidden;background:#fff;border:0;box-shadow:none}.score-page.a4{aspect-ratio:210/297}.template-image{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;user-select:none;pointer-events:none}.header-field{position:absolute;z-index:1;display:grid;place-items:center;overflow:hidden;text-align:center;color:#17201d;font-family:Kaiti SC,STKaiti,serif;font-weight:700}.meter-value{left:1.2%;top:.4%;width:5.8%;height:8.2%}.key-value{left:6.2%;top:.4%;width:12.8%;height:4.1%;overflow:visible}.bpm-value{left:6.2%;top:4.35%;width:12.8%;height:3.95%;justify-items:start}.bpm-value.calibrated{width:auto;max-width:none;overflow:visible}.bpm-digit-calibrated{display:block;width:auto;height:3.871%;overflow:visible}.bpm-digit-calibrated img{display:block;width:auto;max-width:none;height:100%;object-fit:contain}.handwritten-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.key-glyph,.meter-glyph{position:absolute;left:50%;top:50%;width:auto;max-width:none;height:var(--key-render-height,98%);max-height:none;object-fit:contain;transform:translate(-50%,-50%) translateY(var(--key-optical-shift,0))}.key-optical-sharp-c{--key-render-height:126%;--key-free-height:5.166%;--key-optical-shift:-11.11%}.key-optical-sharp-f{--key-render-height:135.692%;--key-free-height:5.563%;--key-optical-shift:-13.89%}.key-optical-flat-e{--key-render-height:135.567%;--key-free-height:5.558%;--key-optical-shift:-13.86%}.key-optical-flat-a{--key-render-height:125.222%;--key-free-height:5.134%;--key-optical-shift:-10.87%}.key-optical-flat-b{--key-render-height:126%;--key-free-height:5.166%;--key-optical-shift:-11.11%}.handwritten-fallback{font-family:Kaiti SC,STKaiti,serif;font-size:clamp(12px,1.25vw,20px)}.handwritten-digits{display:flex;align-items:center;justify-content:flex-start;width:auto;max-width:98%;height:98%;max-height:98%;gap:1px;overflow:hidden}.bpm-value.calibrated .handwritten-digits{max-width:none;overflow:visible}.handwritten-digits img{flex:0 0 auto;width:auto;max-width:none;height:100%;object-fit:contain}.header-field.title-value{left:calc(409 / 1668 * 100%);top:calc(31 / 2014 * 100%);width:calc(852 / 1668 * 100%);height:calc(149 / 2014 * 100%);display:flex;align-items:center;justify-content:center;text-align:center;padding:0 8px;margin:0;font-size:clamp(12px,1.35vw,22px);white-space:nowrap;text-overflow:ellipsis}.song-theme-material,.song-title-material{overflow:visible;padding:0;transform:translate(-50%,-50%)}.editable-material{appearance:none;border:0;background:transparent;cursor:move;touch-action:none}.editable-material.selected{outline:2px solid var(--brand);outline-offset:3px;border-radius:3px;background:#0a84ff0d}.song-title-material{left:47%;top:4.45%;width:16.8%;height:auto;aspect-ratio:2/1}.song-theme-material{left:70%;top:4.45%;width:6.9%;height:auto;aspect-ratio:1}.song-theme-material img,.song-title-material img{display:block;width:auto;max-width:none;height:100%;object-fit:contain;pointer-events:none}.song-theme-material img,.song-title-material img{width:100%;height:auto}.page-number{position:absolute;right:2.1%;bottom:.35%;z-index:1;color:#88928e;font-size:8px}.score-row-overlays{position:absolute;z-index:2;inset:0}.section-prompt-score{position:absolute;inset:0;z-index:5;pointer-events:none}.section-prompt-score .score-row-overlays{pointer-events:none}.section-prompt-score .score-slot{display:none}.score-row-overlay.icon-only:has(.section-prompt-score .menu-open){z-index:180}.prompt-convert-legacy{position:absolute;z-index:20;left:12%;top:0;pointer-events:auto;font-size:11px}@media print{.prompt-convert-legacy{display:none!important}}.score-row-overlay{position:absolute;left:0;right:0;min-height:0}.score-chord-row{position:absolute;z-index:2;top:0;bottom:0;display:grid;pointer-events:none}.melody-tie-row-overlay{position:absolute;z-index:14;inset:0;overflow:visible;pointer-events:none}.melody-note-tie{position:absolute;display:block;filter:drop-shadow(0 0 .45px currentColor);pointer-events:none}.melody-note-tie.guitar{color:#55aaf0}.melody-note-tie.keyboard{color:#f3464a}.melody-note-tie img{position:absolute;top:0;display:block;width:calc(50% + .25px);height:100%;max-width:none;max-height:none;object-fit:fill}.melody-note-tie img.forward{left:0}.melody-note-tie img.reverse{right:0}.score-chord-row.editing{z-index:4;pointer-events:auto}.score-chord-row.editing.menu-open{z-index:100}.score-chord-cell{position:relative;min-width:0;min-height:0}.score-chord-cell.key-change-targeting{cursor:copy;background:#ff3b3008}.score-chord-cell.key-change-targeting:hover{outline:1px solid #ff3b3088!important;background:#ff3b3011!important}.score-chord-cell.arrangement-edit-cell{cursor:crosshair}.score-chord-cell.arrangement-edit-cell:hover{outline:1px dashed #7b4cc288!important;outline-offset:-1px;background:#7b4cc208!important}.score-key-change-target{position:absolute;z-index:35;left:-5px;top:2px;width:11px;height:11px;display:grid;place-items:center;border:1px dashed #ff3b30aa;border-radius:50%;background:#fff;color:#d70015;font-size:8px;line-height:1;pointer-events:none}.score-beat-extension-target{position:absolute;z-index:35;left:-7px;top:2px;padding:1px 3px;border:1px dashed #c67d00;border-radius:4px;background:#fff9e9;color:#9e3d00;font:inherit;font-size:6px;font-weight:800;line-height:1.2;white-space:nowrap;cursor:pointer}.score-beat-extension-target.convert{left:50%;top:50%;transform:translate(-50%,-50%);font-size:7px}.score-key-change-marker{appearance:none;position:absolute;z-index:34;width:78%;height:31%;display:grid;place-items:center;padding:0;border:0;background:transparent;transform-origin:center;overflow:visible;pointer-events:none}.score-key-change-marker img{display:block;max-width:none;max-height:none;width:auto;height:2.8cqw;object-fit:contain;pointer-events:none}.score-key-change-legacy-label{display:inline-grid;place-items:center;min-width:34px;min-height:14px;padding:1px 4px;border:1px solid #2a160d;border-radius:7px;background:#efc582;color:#d70015;font-size:7px;font-weight:800;white-space:nowrap}.score-chord-row.editing .score-key-change-marker{pointer-events:auto;cursor:pointer}.score-key-change-marker.selected{outline:1.5px solid #0a84ff;outline-offset:2px;border-radius:3px}.arrangement-sprite{position:relative;display:block;width:100%;overflow:hidden;pointer-events:none}.arrangement-sprite>img{position:absolute;max-width:none;max-height:none;object-fit:fill;mix-blend-mode:multiply;pointer-events:none;user-select:none}.arrangement-drag-image{position:fixed;left:-10000px;top:-10000px;z-index:-1;pointer-events:none}.score-arrangement-marker{appearance:none;position:absolute;z-index:38;display:block;max-width:none;max-height:none;padding:0;border:0;background:transparent;transform-origin:center;overflow:visible;pointer-events:none}.score-chord-row.arrangement-editing .score-arrangement-marker{pointer-events:auto;cursor:grab}.score-chord-row.arrangement-editing .score-arrangement-marker:active{cursor:grabbing}.score-arrangement-marker.selected{outline:1.5px solid #7b4cc2;outline-offset:2px;border-radius:3px;background:#7b4cc20a}.score-chord-cell[data-direct-editing=true] .score-arrangement-marker{pointer-events:auto;cursor:grab}.score-chord-cell[data-direct-editing=true] .score-arrangement-marker:active{cursor:grabbing}.score-input-error{display:block;padding:8px 10px;border:1px solid #b52b32;border-radius:8px;color:#9b1723;background:#fff0f1;font-size:12px}.notice-bar.notice-error{background:#fff0f1;color:#9b1723;border:1px solid #b52b32;font-weight:600}.score-page-tools{position:sticky;bottom:12px;margin:12px 12px 12px auto;width:fit-content;max-width:calc(100% - 24px);display:flex;gap:0;align-items:center;padding:3px;background:#fff;border:1px solid #e4dfea;border-radius:14px;z-index:45;box-shadow:0 2px 8px #2920330a}.score-page-tools>span{padding:0 12px;color:#736b7d;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.score-page-tools>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 12px;border:0;border-radius:10px;background:#f2eef7;color:#665080;font:inherit;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;box-shadow:none}.score-page-tools>button>span[aria-hidden]{font-size:20px;line-height:1;font-weight:400}.score-page-tools>button:hover:not(:disabled){background:#e9e1f2;color:#503968}.score-page-tools>button:active:not(:disabled){background:#dfd4eb}.score-page-tools>button:focus-visible{outline:2px solid #80649d;outline-offset:2px}.score-page-tools>button:disabled{background:#f5f4f6;color:#8b8591;cursor:not-allowed}.score-header-controls{position:absolute;inset:0;pointer-events:none;z-index:42}.score-header-controls .header-hit{position:absolute;pointer-events:auto;background:transparent;border:0;padding:0;min-width:0}.score-header-controls .header-hit.selected,.score-header-controls .header-hit:hover{outline:1px dashed #8d74c7;outline-offset:-2px}.score-header-controls .title-hit{left:24.5%;top:.5%;width:51.5%;height:7.9%}.score-header-controls .meter-hit{left:1.2%;top:.4%;width:5%;height:8.2%}.score-header-controls .keyName-hit{left:6.2%;top:.4%;width:12.8%;height:4%}.score-header-controls .bpm-hit{left:6.2%;top:4.4%;width:12.8%;height:4%}.score-header-popover{position:absolute;pointer-events:auto;top:9%;left:4%;width:min(360px,90%);padding:12px;display:flex;flex-wrap:wrap;gap:8px;background:white;border:1px solid #ddd;border-radius:12px;box-shadow:0 5px 20px #0002}.score-header-popover label{display:grid;gap:6px;width:100%}@media print{.score-header-controls,.score-page-tools{display:none!important}}.score-arrangement-menu{position:absolute;z-index:140;left:50%;top:calc(100% + 2px);width:min(280px,82vw);display:grid;gap:6px;padding:8px;border:1px solid #c7b8df;border-radius:8px;background:#fffffff8;box-shadow:0 8px 24px #0000002e;transform:translateX(-50%);pointer-events:auto;color:var(--ink);font-size:8px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.score-arrangement-menu.above{top:auto;bottom:calc(100% + 2px)}.score-arrangement-menu.edge-left{left:0;transform:none}.score-arrangement-menu.edge-right{right:0;left:auto;transform:none}.score-arrangement-menu>strong{color:var(--muted)}.score-arrangement-menu>label{display:grid;grid-template-columns:30px 36px minmax(0,1fr);align-items:center;gap:5px}.score-arrangement-menu output{text-align:right;font-variant-numeric:tabular-nums}.score-arrangement-menu input{width:100%;min-width:0;margin:0;accent-color:#7b4cc2}.score-arrangement-menu button{min-height:25px;border:1px solid #d2d2d7;border-radius:4px;background:#fff;cursor:pointer}.score-arrangement-menu button.danger{border-color:#ffb4ac;color:#b42318}.score-key-change-menu{position:absolute;z-index:130;left:50%;top:calc(100% + 2px);width:min(300px,82vw);display:grid;gap:6px;padding:7px;border:1px solid #c7c7cc;border-radius:7px;background:#fffffff8;box-shadow:0 8px 24px #0000002e;transform:translateX(-50%);pointer-events:auto;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.score-key-change-menu.above{top:auto;bottom:calc(100% + 2px)}.score-key-change-menu.edge-left{left:0;transform:none}.score-key-change-menu.edge-right{right:0;left:auto;transform:none}.score-key-change-menu>strong{color:var(--muted);font-size:8px}.score-key-change-controls{display:grid;gap:10px;font-size:12px}.score-floating-menu .score-key-change-controls .score-key-change-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.score-floating-menu .score-key-change-controls .score-key-change-options button{height:58px;grid-template-rows:28px auto}.score-floating-menu .score-key-change-controls .score-key-change-options span{font-size:11px}.score-floating-menu .score-key-change-controls .score-key-change-geometry{font-size:12px}.score-key-change-controls>button.danger{justify-self:end;padding:6px 10px;color:#b42318}.score-key-change-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.score-key-change-options button{min-width:0;height:39px;display:grid;grid-template-rows:25px auto;place-items:center;padding:1px;border:1px solid #d2d2d7;border-radius:4px;background:#fff;color:var(--muted);cursor:pointer}.score-key-change-options button.selected{border-color:var(--brand);background:var(--brand-soft)}.score-key-change-options img{max-width:100%;height:24px;object-fit:contain}.score-key-change-options span{font-size:6px;white-space:nowrap}.score-key-change-geometry{display:grid;gap:4px;padding:5px;border:1px solid #d2d2d7;border-radius:5px;background:#f5f5f7}.score-key-change-geometry label{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:4px;color:var(--muted);font-size:7px}.score-key-change-geometry input{width:100%;accent-color:var(--brand)}.score-key-change-geometry output{color:var(--ink);font-variant-numeric:tabular-nums}.score-key-change-menu>button.danger{justify-self:end;min-height:24px;padding:3px 8px;border:1px solid #ffb3ad;border-radius:4px;background:#fff;color:#b42318;cursor:pointer;font-size:7px}.score-template-match-warning{position:absolute;z-index:25;top:3px;left:3px;padding:2px 4px;border:1px solid #ff9f0a;border-radius:3px;background:#fffaf0e8;color:#8a4b00;font-size:7px;line-height:1;pointer-events:none}.score-chord-cell.menu-open{z-index:60}.score-chord-cell.unavailable{pointer-events:none}.score-chord-manual-fallback{position:absolute;z-index:30;inset:3px;display:grid;gap:3px;align-content:center;justify-items:center;padding:4px;border:1px solid #ff9f0a;border-radius:5px;background:#fffaf0e8;color:#8a4b00;font-size:8px;line-height:1.2;text-align:center;pointer-events:auto}.score-chord-manual-fallback button{min-height:22px;padding:3px 6px;border:1px solid #ff9f0a;border-radius:4px;background:#fff;color:#8a4b00;cursor:pointer;font-size:8px}.score-chord-row.editing .score-chord-cell:not(.unavailable):hover{outline:1px solid #0a84ff88;outline-offset:-1px;background:#0a84ff0b}.score-chord-cell .chord-measure-beat-grid{display:none}.score-melody-beat-guides{position:absolute;z-index:10;inset:0;pointer-events:none}.score-chord-cell.melody-edit-cell:hover>.score-melody-beat-guides{background-color:#0a84ff0b;box-shadow:inset 0 0 0 1px #0a84ff55}.score-chord-empty{position:absolute;right:2px;bottom:1px;color:#0a84ff88;font-size:5px;line-height:1}.score-chord-menu{position:absolute;z-index:100;left:50%;top:calc(100% + 2px);width:min(320px,82vw);padding:6px;border:1px solid #c7c7cc;border-radius:7px;background:#fffffff5;box-shadow:0 8px 24px #0000002e;transform:translateX(-50%);pointer-events:auto;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.score-chord-menu.above{top:auto;bottom:calc(100% + 2px)}.score-chord-menu.edge-left{left:0;transform:none}.score-chord-menu.edge-right{right:0;left:auto;transform:none}.score-chord-menu>strong{display:block;margin:0 2px 5px;color:var(--muted);font-size:8px}.melody-edit-section{margin:6px 0;padding-top:6px;border-top:1px solid #e5e7eb}.melody-edit-section h4{margin:0 0 5px;color:#64748b;font-size:11px;font-weight:500}.score-floating-menu.with-measure-zoom .score-melody-menu .score-melody-menu-actions{max-height:none;overflow:visible}.score-floating-menu.with-measure-zoom .score-melody-pitch-menu>.score-melody-menu-row{grid-column:1/-1}.score-floating-menu.with-measure-zoom .score-melody-pitch-menu [aria-label="选择八度"]{grid-template-columns:22px repeat(5,minmax(0,1fr))}.score-floating-menu.with-measure-zoom .score-melody-menu button{border-radius:7px}.score-floating-menu .menu-palette{margin:5px 0}.score-floating-menu .menu-palette>header{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:26px;margin-bottom:4px}.score-floating-menu .menu-palette>header>span{font-size:11px;color:#475569;overflow:visible}.score-floating-menu .menu-palette>header>div{display:flex;gap:4px}.score-floating-menu .menu-palette>header.palette-quick-row{display:flex;justify-content:flex-start;gap:3px;align-items:stretch;min-height:24px}.score-floating-menu .menu-palette>header.palette-quick-row>.palette-quick-label{flex:0 0 auto;align-self:center;white-space:nowrap}.score-floating-menu .menu-palette>header.palette-quick-row>.palette-quick-item{display:block;min-width:0;flex:1 1 0}.score-floating-menu .menu-palette>header.palette-quick-row .melody-rhythm-slot>button{width:100%;height:100%;min-height:24px;padding:1px 4px;font-size:11px}.score-floating-menu .menu-palette>header.palette-quick-row>button{width:24px;flex:0 0 24px;height:auto;min-height:24px;padding:2px}.score-floating-menu .menu-palette>header .palette-clear-parts{margin-left:auto;color:#ad3535}.score-floating-menu .menu-palette>header .palette-clear-parts:disabled{color:#9ca3af}.score-floating-menu .menu-palette>header button{display:inline-flex;align-items:center;justify-content:center;width:auto;height:26px;padding:3px 6px;font-size:11px;border-radius:7px}.score-floating-menu .menu-palette-grid{display:grid;grid-template-columns:repeat(var(--palette-columns),minmax(0,1fr));gap:4px;overflow:visible}.score-floating-menu .menu-palette-grid.fixed{margin-bottom:4px}.score-floating-menu .menu-palette-grid>div{min-width:0}.score-floating-menu .menu-palette-grid button{width:100%;border-radius:7px}.score-chord-menu .menu-palette-grid button{height:32px}.score-chord-menu .menu-palette-grid button span{font-size:9px}.score-floating-menu .menu-palette-grid .palette-drag-handle{display:flex;justify-content:center;align-items:center;height:32px;font-size:11px;touch-action:none;cursor:grab;user-select:none}.score-floating-menu .menu-palette .melody-rhythm-slot{position:relative;display:grid;width:100%;height:100%}.score-floating-menu .menu-palette .melody-rhythm-slot>button{min-height:26px;text-align:left}.score-floating-menu .menu-palette .melody-rhythm-slot small{margin-left:3px;color:#64748b;white-space:nowrap}.score-floating-menu .menu-palette .palette-placeholder{opacity:.3;outline:1px dashed #e3933e;border-radius:7px}.score-floating-menu .palette-ghost{position:fixed;z-index:1500;pointer-events:none;background:#fff5e5;color:#70440c;border:1px solid #e3a456;border-radius:7px;padding:6px 10px;font-size:12px;box-shadow:0 3px 12px #0002}.score-floating-menu .menu-palette p[role=alert]{color:#a33;font-size:11px;margin:4px 0}.score-floating-menu .menu-palette .palette-pin-choice{display:flex;align-items:center;gap:4px;padding:3px 0;font-size:11px;color:#64748b}.score-floating-menu .menu-palette .palette-pin-choice input{width:14px;height:14px;margin:0}.score-floating-menu .palette-pinned-count{display:block;margin:3px 0 6px;color:#64748b}.score-chord-menu>div{max-height:120px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;overflow:auto}.score-chord-menu .score-chord-menu-actions{max-height:none;display:flex;flex-wrap:wrap;gap:4px;margin-bottom:4px;overflow:visible}.score-chord-menu .score-chord-menu-actions>button{width:fit-content;flex:0 0 auto;min-height:24px;height:auto;display:flex;align-items:center;padding:2px 4px;border:1px solid #d2d2d7;box-shadow:none;background:#fff;font-size:12px;color:#334155;border-radius:5px;text-align:left}.score-chord-menu .score-chord-menu-actions>button:hover,.section-split-disclosure>summary:hover{background:#f0f2f5}.score-chord-menu .score-chord-menu-actions>button:focus-visible{outline:2px solid #007aff;outline-offset:-2px}.score-chord-menu .score-chord-menu-actions.restore-actions>button{color:#075ea8}.score-chord-menu .score-chord-menu-actions>button:has([data-ui-icon=trash]){color:#b42318}.score-chord-menu .score-chord-menu-actions.section-structure-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.score-chord-menu .chord-delete-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));justify-items:stretch}.section-structure-actions .section-split-disclosure,.section-structure-actions .section-split-disclosure::details-content{display:contents}.section-structure-actions .section-split-disclosure>.icon-library{grid-column:1/-1}.score-chord-menu .workbench-action-label{display:inline-flex;align-items:center;gap:5px;overflow:visible;white-space:normal;font-size:inherit;line-height:1.35;text-align:left}.score-chord-menu .section-split-disclosure{grid-column:1/-1;min-width:0}.section-split-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:4px;width:fit-content;max-width:100%;min-height:24px;padding:2px 4px;border:1px solid #d2d2d7;border-radius:5px;background:#fff;color:#334155;font-size:12px;list-style:none;cursor:pointer}.section-split-disclosure>summary::-webkit-details-marker{display:none}.section-split-disclosure[open]>summary>.workbench-ui-icon{transform:rotate(180deg)}.section-split-disclosure>summary:focus-visible{outline:2px solid #007aff;outline-offset:1px}.score-chord-menu .section-split-disclosure>.icon-library{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:8px 0;margin:0;border:0}.score-chord-menu .section-split-disclosure:not([open])>.icon-library{display:none}.score-chord-menu .section-split-disclosure>.icon-library button{display:flex;align-items:center;justify-content:center;min-height:34px;padding:4px}.score-chord-menu .section-split-disclosure>.icon-library img{width:100%;height:24px;object-fit:contain}.free-layout-chord-beat-picker,.score-chord-beat-picker{display:grid;grid-template-columns:1fr repeat(4,minmax(0,1fr));align-items:center;gap:3px;margin:0 0 5px;padding:4px;border:1px solid #d2d2d7;border-radius:5px;background:#f5f5f7}.free-layout-chord-beat-picker span,.score-chord-beat-picker span{color:var(--muted);font-size:7px}.free-layout-chord-beat-picker button,.score-chord-beat-picker button{height:24px;color:#075ea8;font-size:7px}.free-layout-chord-beat-picker button.selected,.score-chord-beat-picker button.selected{border-color:var(--brand);background:var(--brand-soft);font-weight:700}.score-chord-menu .score-chord-scale-control{max-height:none;display:grid;grid-template-columns:28px minmax(0,1fr) 28px;align-items:center;gap:5px;margin:0 0 5px;padding:5px;overflow:visible;border:1px solid #d2d2d7;border-radius:5px;background:#f5f5f7}.score-chord-menu .score-chord-scale-control>button{width:28px;height:28px;display:grid;place-items:center;padding:0;color:#075ea8;font-size:14px;font-weight:700}.score-chord-menu .score-chord-scale-control label{min-width:0;display:grid;gap:3px;color:var(--muted);font-size:7px}.score-chord-menu .score-chord-scale-control label span{max-width:none;display:flex;justify-content:space-between;overflow:visible;font-size:7px}.score-chord-menu .score-chord-scale-control output{color:var(--text);font-variant-numeric:tabular-nums}.score-chord-menu .score-chord-scale-control input{width:100%;margin:0;accent-color:var(--brand);cursor:pointer}.score-chord-menu .score-chord-scale-warning{grid-column:1/-1;margin:0;color:#a04100;font-size:7px;line-height:1.3;text-align:center}.score-chord-menu button{min-width:0;height:28px;display:grid;grid-template-rows:19px auto;place-items:center;padding:1px;border:1px solid #d2d2d7;border-radius:4px;background:#fff;color:var(--muted);cursor:pointer}.score-melody-menu{position:absolute;z-index:120;left:50%;top:calc(100% + 2px);width:min(330px,80vw);max-height:min(520px,72vh);overflow:auto;padding:8px;border:1px solid #b8c6d5;border-radius:8px;background:#fffffff8;box-shadow:0 10px 30px #0003;transform:translateX(-50%);pointer-events:auto;color:var(--ink);font-size:9px;line-height:1.3;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.score-melody-menu.above{top:auto;bottom:calc(100% + 2px)}.score-melody-menu.edge-left{left:0;transform:none}.score-melody-menu.edge-right{right:0;left:auto;transform:none}.score-melody-menu button{min-width:0;border:1px solid #c7c7cc;border-radius:4px;padding:4px 6px;background:#fff;color:var(--ink);cursor:pointer;font:inherit}.score-melody-menu button.selected,.score-melody-menu button:hover:not(:disabled){border-color:#0a84ff;background:#eaf4ff}.score-melody-menu button:disabled{opacity:.38;cursor:not-allowed}.score-melody-menu-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.score-melody-menu-header strong{font-size:10px}.score-melody-menu-header button{width:23px;height:23px;padding:0;font-size:16px;line-height:1}.score-context-command{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;margin:6px 0;padding:6px;border:1px solid #b8c6d5;border-radius:6px;background:#f5f9ff}.score-context-command input{min-width:0;border:1px solid #b8c6d5;border-radius:4px;padding:5px 6px;font:inherit;color:var(--ink);background:#fff}.score-chord-menu>.score-context-command{max-height:none;grid-template-columns:minmax(0,1fr) auto;overflow:visible}.score-chord-menu>.score-context-command input{width:100%;font-size:10px;line-height:1.35}.score-chord-menu>.score-context-command button{width:auto;height:28px;display:block;padding:4px 8px;white-space:nowrap;font-size:8px}.score-melody-menu-row{display:grid;grid-template-columns:34px repeat(4,minmax(0,1fr));align-items:center;gap:4px;margin-bottom:6px}.score-melody-menu-row>span{color:var(--muted)}.score-melody-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:6px 0;padding-top:6px;border-top:1px solid var(--line)}.score-melody-template-list>span{grid-column:1/-1;color:var(--muted)}.score-melody-template-list button{display:flex;align-items:center;justify-content:space-between;gap:5px;text-align:left}.score-melody-template-list small{color:var(--muted);white-space:nowrap}.score-melody-template-list.sustain-sources{grid-template-columns:1fr}.score-melody-pitch-menu{margin:5px 0 7px;padding:6px;border:1px solid #ffd28a;border-radius:6px;background:#fffaf0}.score-melody-pitch-menu>strong{display:block;margin-bottom:5px}.score-melody-degree-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:3px;margin-bottom:6px}.score-melody-degree-grid button{padding-inline:1px}.score-melody-geometry-controls{display:grid;gap:5px;margin:7px 0;padding:6px;border:1px solid var(--line);border-radius:6px;background:#f7f7f8}.score-melody-geometry-controls label{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:5px;color:var(--muted)}.score-melody-geometry-controls input{width:100%;min-width:0;margin:0;accent-color:#0a84ff}.score-melody-geometry-controls output{color:var(--ink);font-variant-numeric:tabular-nums}.score-melody-menu-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px;padding-top:6px;border-top:1px solid var(--line)}.score-melody-menu-actions button{flex:1 1 90px}.score-melody-menu-actions button.danger{border-color:#ffb4ac;color:#b42318}.score-melody-readonly{margin:4px 0;padding:7px;border:1px solid #ff9f0a;border-radius:5px;background:#fffaf0;color:#8a4b00}.score-chord-menu button:hover{border-color:var(--brand);background:var(--brand-soft)}.score-chord-menu img{display:block;width:100%;height:18px;object-fit:contain}.score-chord-menu span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:5px}.score-chord-menu>.chord-text-editor{display:block;max-height:none;overflow:visible}.score-chord-menu .chord-text-targets button{height:20px}.score-chord-menu .chord-text-targets button[aria-pressed=false]:hover{border-color:#aab9cb}.score-chord-menu .chord-text-symbol{font-size:14px;overflow:visible;max-width:none}.score-chord-menu .chord-text-symbol span{font-size:inherit;overflow:visible;max-width:none}.score-chord-menu .chord-text-symbol .chord-text-bass{font-size:.85em}.score-chord-menu .chord-text-beat{font-size:10px}.score-chord-menu .chord-text-editor .score-context-command input{width:100%;font-size:13px;line-height:1.35}.score-chord-menu .chord-text-editor .score-context-command button{display:block;height:auto;padding:4px 7px;font-size:12px;white-space:nowrap}@media (max-width:700px),(pointer:coarse){.score-chord-menu .score-chord-scale-control{grid-template-columns:44px minmax(0,1fr) 44px}.score-chord-menu .score-chord-scale-control>button{width:44px;height:44px}.score-chord-menu .score-chord-scale-control input{min-height:44px}}.score-slot{position:absolute;z-index:3;left:3.78%;top:0;width:7.56%;height:auto;display:block;padding:0;border:0;border-radius:5px;background:transparent;transform:translate(-50%,-50%);cursor:grab;overflow:visible}.score-slot.fixed-marker{cursor:default}.score-slot:active{cursor:grabbing}.score-slot:disabled{cursor:default}.score-slot.ready:hover{outline:2px solid #0a84ff80;background:#e8f2ff9c}.score-slot img{position:static;display:block;width:100%;height:auto;min-width:0;min-height:0;object-fit:contain;pointer-events:none}.score-slot span{color:var(--blue);font-family:Comic Sans MS,Kaiti SC,cursive;font-size:clamp(9px,1.1vw,17px);font-weight:800;white-space:nowrap}.score-section-menu{position:absolute;z-index:10;left:10%;top:5%;width:164px;padding:7px;border:1px solid #c7c7cc;border-radius:7px;background:#fffffff2;box-shadow:0 8px 24px #0000002e;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.score-section-menu.above{top:auto;bottom:5%}.score-section-menu strong{display:block;margin:0 2px 5px;color:var(--muted);font-size:10px;font-weight:700}.score-section-menu-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.score-section-menu-grid button{min-width:0;height:29px;display:grid;place-items:center;padding:2px;border:1px solid #d2d2d7;border-radius:5px;background:#fff;cursor:grab;overflow:visible}.score-section-menu-grid button:hover{border-color:var(--brand);background:var(--brand-soft)}.score-section-menu-grid button:active{cursor:grabbing}.score-section-menu-grid img{display:block;max-width:100%;max-height:22px;object-fit:contain;pointer-events:none}.score-section-menu-grid span{color:var(--blue);font-family:Comic Sans MS,Kaiti SC,cursive;font-size:10px;font-weight:800;line-height:1;white-space:nowrap}.vocal-row-note{position:absolute;left:11%;top:4%;color:#8c9792;font-size:clamp(5px,.52vw,8px)}@media (min-width:901px){.workbench{min-height:0;height:100dvh;overflow:hidden}.editor-grid{height:100%;min-height:0}.reference-panel,.score-panel,.structure-panel{min-height:0;overflow:hidden}.reference-canvas,.score-scroll,.section-list{min-height:0}}@media (max-width:1180px){.privacy-state{display:none}.source-strip{grid-template-columns:1fr 1fr minmax(140px,180px) auto auto}}@media (min-width:901px) and (max-width:1180px){.editor-grid{grid-template-columns:clamp(260px,28vw,310px) 9px clamp(190px,22vw,250px) 9px minmax(360px,1fr)}.reference-panel{display:flex}.score-panel{grid-column:auto}.reference-canvas{padding:8px}.score-scroll{overflow-x:hidden;padding-inline:0}.score-pages{min-width:0;width:100%}}@media (max-width:900px){.workbench{display:block}.topbar{position:sticky;top:0;z-index:20;padding:0 10px}.brand-wordmark,.button.secondary,.top-summary{display:none}.source-strip{grid-template-columns:1fr 1fr;padding:8px}.song-name-field{grid-column:1/-1}.metadata-fields{grid-column:1/2}.button.analyze{grid-column:2/3;align-self:end}.editor-grid{display:flex;flex-direction:column;min-height:calc(100vh - 190px);overflow:visible}.panel-resizer,.reference-panel{display:none}.structure-panel{position:static;max-height:48vh;border-bottom:1px solid var(--line)}.score-panel{min-width:0;min-height:70vh}.score-pages{min-width:0;width:100%!important}.score-scroll{padding-inline:0}}@media print{body{background:#fff}.arrangement-material-library,.draft-target-cell>span,.draft-target-hit,.export-confirmation-backdrop,.icon-library,.inline-chord-text-editor,.notice-bar,.page-number,.panel-resizer,.pdf-recognition-summary,.reference-panel,.score-arrangement-menu,.score-beat-extension-library,.score-beat-extension-target,.score-chord-empty,.score-chord-library,.score-chord-manual-fallback,.score-chord-menu,.score-chord-toolbar,.score-key-change-library,.score-key-change-menu,.score-key-change-target,.score-melody-beat-guides,.score-melody-menu,.score-panel>.panel-header,.score-section-menu,.score-template-match-warning,.section-copy-backdrop,.song-structure-alert,.source-strip,.structure-panel,.topbar,.vocal-row-note{display:none!important}.editor-grid,.score-pages,.score-panel,.score-scroll,.workbench{display:block;width:100%;max-width:none;margin:0;padding:0;overflow:visible;background:#fff}.score-page{box-shadow:none;page-break-after:always;print-color-adjust:exact;-webkit-print-color-adjust:exact}.chord-measure-hold.selected,.chord-measure-piece.selected,.editable-material.selected,.melody-combo-element.interactive-pitch.pitch-selected,.melody-song-combo.selected,.score-arrangement-marker.selected,.score-beat-marker.editing,.score-chord-row.editing .score-chord-cell:not(.unavailable):hover,.score-key-change-marker.selected,.score-slot.ready:hover{outline:none!important;background:transparent!important}.score-beat-marker.editing{padding:0!important;border:0!important}.score-page:last-child{page-break-after:auto}body[data-export-size=original] .score-page{page:tianjin-original;width:210mm;height:253.5mm}body[data-export-size=a4] .score-page{page:tianjin-a4;width:210mm;height:297mm}@page tianjin-original{size:210mm 253.5mm;margin:0}@page tianjin-a4{size:A4 portrait;margin:0}}.free-layout-workbench{min-height:100vh;color:var(--ink);background:var(--canvas)}.free-layout-topbar{min-height:56px;display:flex;align-items:center;gap:16px;padding:8px 16px;border-bottom:1px solid #c8c8cc;background:#f6f6f8eb;box-shadow:0 1px #ffffffa8}.free-layout-brand{display:flex;align-items:center;gap:9px;white-space:nowrap}.free-layout-brand img{width:34px;height:34px;object-fit:cover;border:1px solid #fffc;border-radius:7px}.free-layout-brand strong{font-size:14px}.free-layout-hint{color:var(--muted);font-size:11px}.free-layout-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.free-layout-actions a,.free-layout-actions button{min-height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;color:var(--ink);text-decoration:none;white-space:nowrap;background:#fff;border:1px solid #c7c7cc;border-radius:6px;font-size:11px;cursor:pointer}.free-layout-actions button:disabled{opacity:.4;cursor:default}.free-layout-visibility{position:relative}.free-layout-visibility-menu{position:absolute;z-index:20;top:calc(100% + 5px);right:0;width:142px;display:grid;gap:2px;padding:5px;border:1px solid #c7c7cc;border-radius:7px;background:#ffffffed;box-shadow:0 8px 22px #00000024;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.free-layout-visibility-menu label{display:flex;align-items:center;gap:6px;min-height:28px;padding:0 5px;border-radius:4px;color:var(--ink);font-size:10px;cursor:pointer;white-space:nowrap}.free-layout-visibility-menu label:hover{background:var(--brand-soft)}.free-layout-visibility-menu input{accent-color:var(--brand)}.free-layout-scale{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;white-space:nowrap}.free-layout-scale input{width:78px;accent-color:var(--brand)}.free-layout-body{min-height:calc(100vh - 57px);display:grid;grid-template-columns:320px minmax(0,1fr)}.free-layout-library{min-width:0;max-height:calc(100vh - 57px);overflow:auto;padding:14px 12px 24px;background:#f1f1f3;border-right:1px solid var(--line)}.free-layout-library-title{display:flex;align-items:baseline;justify-content:space-between;padding:0 4px 12px;border-bottom:1px solid var(--line)}.free-layout-library-title strong{font-size:16px}.free-layout-library-title span{color:var(--muted);font-size:10px}.free-layout-group{padding:13px 0 2px}.free-layout-group h2{margin:0 4px 7px;color:var(--muted);font-size:11px;font-weight:700}.free-layout-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.free-layout-asset{min-width:0;height:56px;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:6px;padding:5px;color:var(--ink);text-align:left;background:#fff;border:1px solid #d2d2d7;border-radius:7px;cursor:grab;box-shadow:0 1px 2px #0000000b}.free-layout-asset:hover{border-color:var(--brand);background:var(--brand-soft)}.free-layout-asset:active{cursor:grabbing}.free-layout-asset>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.free-layout-thumb{position:relative;width:38px;height:42px;overflow:hidden}.free-layout-thumb img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.free-layout-thumb.brand img{border-radius:4px}.free-layout-stage{min-width:0;display:flex;flex-direction:column}.free-layout-stage-title{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;border-bottom:1px solid var(--line);background:#f7f7f8e8}.free-layout-stage-title h1{margin:0;font-size:14px}.free-layout-stage-title p{margin:3px 0 0}.free-layout-stage-title p,.free-layout-stage-title>span{color:var(--muted);font-size:10px}.free-layout-scroll{min-height:0;flex:1;overflow:auto;padding:24px;background:#d5d6da}.free-layout-canvas{position:relative;width:min(760px,100%);margin:0 auto;aspect-ratio:1668/2014;background:#fff;box-shadow:0 10px 28px #00000020,0 1px 3px #0000001a;user-select:none}.free-layout-template{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.free-layout-chord-grid{position:absolute;z-index:2;inset:12.2% 0 1.6%;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,1fr);pointer-events:none}.free-layout-chord-grid.editing{z-index:4;pointer-events:auto}.free-layout-chord-cell{position:relative;min-width:0;min-height:0}.free-layout-chord-grid.editing .free-layout-chord-cell:hover{outline:1px solid #0a84ff88;outline-offset:-1px;background:#0a84ff0b}.free-layout-chord-cell>span{position:absolute;right:3px;bottom:2px;color:#9a9aa0;font-size:7px}.free-layout-chord-cell .chord-measure-beat-grid{display:none}.free-layout-chord-menu{position:absolute;z-index:20;left:50%;top:calc(100% + 2px);width:240px;padding:6px;border:1px solid #c7c7cc;border-radius:7px;background:#fffffff5;box-shadow:0 8px 24px #0000002e;transform:translateX(-50%);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.free-layout-chord-menu.above{top:auto;bottom:calc(100% + 2px)}.free-layout-chord-menu.edge-left{left:0;transform:none}.free-layout-chord-menu.edge-right{right:0;left:auto;transform:none}.free-layout-chord-menu>strong{display:block;margin:0 2px 5px;color:var(--muted);font-size:8px}.free-layout-chord-menu>div{max-height:128px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;overflow:auto}.free-layout-chord-menu .free-layout-chord-menu-actions{max-height:none;display:flex;gap:3px;margin-bottom:5px;overflow:visible}.free-layout-chord-menu .free-layout-chord-menu-actions button{width:auto;height:23px;display:block;flex:1;color:#b42318;font-size:6px}.free-layout-chord-menu button{min-width:0;height:30px;display:grid;grid-template-rows:20px auto;place-items:center;padding:1px;border:1px solid #d2d2d7;border-radius:4px;background:#fff;color:var(--muted);cursor:pointer}.free-layout-chord-menu button:hover{border-color:var(--brand);background:var(--brand-soft)}.free-layout-chord-menu img{display:block;width:100%;height:19px;object-fit:contain}.free-layout-chord-menu span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:5px}.free-layout-placed{position:absolute;z-index:2;display:grid;place-items:center;padding:0;background:transparent;border:0;border-radius:4px;transform:translate(-50%,-50%);cursor:move;touch-action:none}.free-layout-placed.fixed-position-asset{cursor:default}.free-layout-placed[data-fixed-marker-role]{touch-action:none}.free-layout-placed.section{width:7.56%;height:auto}.free-layout-placed.meter{width:auto;height:8.036%}.text-chord-draft-panel{border-top:1px solid #d0d3d8;border-bottom:1px solid #d0d3d8;background:#f7f8fa}.text-chord-draft-toggle{width:100%;min-height:38px;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:7px 12px;border:0;border-radius:0;background:#f7f8fa;color:#1d1d1f;text-align:left}.text-chord-draft-toggle strong{font-size:12px;color:#51565d}.text-chord-draft-body{display:grid;gap:9px;max-height:min(52vh,520px);overflow:auto;padding:10px 12px 12px;border-top:1px solid #dfe2e6}.text-chord-draft-body pre{max-height:150px;overflow:auto;margin:0;padding:8px;border:1px solid #d6d9de;border-radius:4px;background:white;color:#24272b;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}.draft-source{margin:0;color:#4d5259;font-size:12px}.draft-section-list{display:grid;gap:7px}.draft-section-list article{display:grid;gap:6px;padding:8px;border-left:3px solid #b7bdc5;background:white}.draft-section-list article.active{border-left-color:#1677ff}.draft-section-list article>div:first-child{display:flex;justify-content:space-between;gap:12px}.draft-section-list ol{max-height:126px;overflow:auto;margin:0;padding-left:24px;color:#4b5057;font-size:11px;line-height:1.5}.draft-section-target{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.draft-section-target span{margin-right:auto;font-size:12px}.draft-actions button,.draft-conflict button,.draft-section-target button,.draft-target-confirm button{min-height:30px;padding:4px 9px;border:1px solid #b9bec6;border-radius:5px;background:white}.draft-target-hint{margin:0;padding:7px 9px;border-left:3px solid #1677ff;background:#eef5ff;font-size:12px}.draft-conflict,.draft-target-confirm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px;border:1px solid #e0a930;background:#fff8e5}.draft-conflict span,.draft-target-confirm span{flex:1 1 240px;font-size:12px}.draft-conflict strong{width:100%}.draft-conflict div{display:flex;gap:6px}.draft-errors,.draft-warnings{display:grid;gap:3px;padding:7px 9px;font-size:12px}.draft-errors{border-left:3px solid #c9342f;background:#fff0ef;color:#8a201d}.draft-warnings{border-left:3px solid #d68b00;background:#fff8e7;color:#6d4a00}.draft-actions{display:flex;gap:7px;flex-wrap:wrap}.inline-chord-text-editor{position:relative;flex:0 1 430px;min-width:210px;display:flex;align-items:center;gap:5px}.inline-chord-text-editor>input{min-width:0;width:100%;height:27px;padding:3px 8px;border:1px solid #aeb4bc;border-radius:5px;background:#fff;color:var(--ink);font:10px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace}.score-chord-toolbar .inline-chord-text-editor>button{flex:0 0 auto}.score-chord-toolbar .inline-chord-text-editor>button.primary{border-color:#1677ff;background:#1677ff;color:#fff}.score-chord-toolbar .inline-chord-text-editor>.inline-chord-rule-count{padding-inline:6px;color:#59616c;white-space:nowrap}.inline-chord-text-result{position:absolute;z-index:120;top:calc(100% + 7px);right:0;width:min(620px,82vw);max-height:min(54vh,430px);display:grid;gap:7px;overflow:auto;padding:10px;border:1px solid #b9bec6;border-radius:6px;background:#fff;box-shadow:0 10px 28px #0002}.inline-chord-text-result>small{color:var(--muted);font-size:10px;line-height:1.45}.inline-chord-text-result pre{max-height:240px;overflow:auto;margin:0;padding:8px;border:1px solid #d6d9de;border-radius:4px;background:#f8f9fa;font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}.inline-chord-text-preview-title{display:flex;justify-content:space-between;color:#4d5259;font-size:11px}.inline-chord-clarification,.inline-chord-conversation,.inline-chord-rule-proposal,.inline-chord-saved-rules{display:grid;gap:7px;padding:8px;border:1px solid #d9dde3;border-radius:5px;background:#fafbfc}.inline-chord-conversation-turn{display:grid;gap:3px;padding-bottom:6px;border-bottom:1px dashed #d7dbe0;font-size:11px;line-height:1.45}.inline-chord-conversation-turn:last-child{padding-bottom:0;border-bottom:0}.inline-chord-conversation-turn>button{justify-self:start}.inline-chord-answer-row{display:flex;gap:5px;align-items:center}.inline-chord-answer-row>input{flex:1 1 auto;min-width:0;height:30px;padding:4px 7px;border:1px solid #aeb4bc;border-radius:4px}.inline-chord-rule-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.inline-chord-rule-fields label{display:grid;gap:3px;color:#555d67;font-size:10px}.inline-chord-rule-fields label:has(textarea){grid-column:1/-1}.inline-chord-rule-fields input,.inline-chord-rule-fields select,.inline-chord-rule-fields textarea{width:100%;min-width:0;padding:5px 6px;border:1px solid #b8bec7;border-radius:4px;background:#fff;color:var(--ink);font:inherit;font-size:11px;line-height:1.35}.inline-chord-saved-rules article{display:grid;gap:5px;padding:7px;border:1px solid #dfe2e6;border-radius:4px;background:#fff;font-size:11px}.inline-chord-saved-rules article>div{display:flex;align-items:center;gap:6px}.inline-chord-saved-rules article>div:first-child{justify-content:space-between}.inline-song-command-preview{display:grid;gap:7px}.inline-song-command-result{width:100%;min-width:0}.command-preview-details>summary{cursor:pointer;color:#716186;font-size:12px;padding:5px 0}.command-preview-details[open]>summary{margin-bottom:5px}.command-preview-actions{display:flex;justify-content:flex-end;gap:8px}.inline-song-command-meta{display:flex;flex-wrap:wrap;gap:6px;color:#555d67;font-size:10px}.inline-song-command-meta span{padding:2px 6px;border-radius:999px;background:#edf3ff}.inline-song-command-query,.inline-song-command-targets{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;padding:7px;border:1px solid #d9dde3;border-radius:5px;background:#fafbfc;font-size:11px;line-height:1.45}.inline-song-command-query b,.inline-song-command-targets b{color:#4d5661}.inline-song-command-query,.inline-song-command-targets{grid-template-columns:minmax(0,1fr)}.inline-song-command-changes p{margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.command-section-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 12px}.command-section-badge{display:inline-flex;align-items:center;gap:5px}.command-section-badge img{display:block;width:auto;height:26px;max-width:70px;object-fit:contain}.command-section-badge small{color:var(--muted);font-size:11px}.inline-song-command-changes{display:grid;gap:7px}.inline-song-command-changes article{display:grid;gap:5px;padding:8px;border:1px solid #d6dce5;border-radius:5px;background:#fff}.inline-song-command-changes header{display:flex;justify-content:space-between;gap:10px;color:#3d4650;font-size:11px}.inline-song-command-changes article>div{display:grid;grid-template-columns:48px minmax(0,1fr);gap:7px;align-items:start;font-size:10px}.inline-song-command-changes code{display:block;overflow-wrap:anywhere;white-space:pre-wrap;color:#20252b;font:10px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace}.inline-song-command-changes ul{margin:0;padding-left:16px}.score-chord-cell.song-command-target{outline:3px solid #1677ff;outline-offset:-3px;background:#1677ff12}.score-chord-cell.draft-target-cell{background:#f5f7fa99}.score-chord-cell.unavailable.draft-target-cell{pointer-events:auto}.score-chord-cell.draft-target-cell.target-start{cursor:pointer;outline:1px dashed #1677ff;outline-offset:-3px}.score-chord-cell.melody-target-cell{cursor:copy;outline:1px dashed #0a84ff;outline-offset:-2px;background:#0a84ff0a}.score-chord-cell.melody-target-cell:hover{background:#0a84ff1a;outline-width:2px}.score-melody-import-dialog{position:fixed;z-index:1000;left:50%;top:50%;width:min(92vw,520px);max-height:82vh;display:grid;gap:9px;overflow:auto;padding:16px;border:1px solid #c7c7cc;border-radius:8px;background:#fff;box-shadow:0 18px 60px #0004;transform:translate(-50%,-50%)}.score-melody-import-dialog>strong{font-size:16px}.score-melody-import-dialog>small,.score-melody-import-dialog>span{line-height:1.45}.score-melody-import-dialog .warning{color:#9a6700}.score-melody-import-dialog fieldset{display:grid;gap:7px;margin:0;padding:10px;border:1px solid var(--line)}.score-melody-import-dialog label{display:flex;align-items:center;gap:7px}.score-melody-import-actions{display:flex;flex-wrap:wrap;gap:7px}.score-melody-import-actions .danger{color:#b42318}.score-chord-cell.draft-target-cell.target-start span{position:absolute;inset:0;display:grid;place-items:center;color:#1264c3;font-size:clamp(7px,.75vw,11px)}.draft-target-hit{z-index:40;inset:0;width:100%;height:100%;cursor:pointer}.draft-target-hit,.score-beat-marker{position:absolute;padding:0;border:0;background:transparent}.score-beat-marker{z-index:8;display:block;min-width:0;touch-action:none;transform-origin:center}.score-beat-marker img{display:block;width:42px;height:auto;pointer-events:none}.score-beat-marker.editing{padding:2px;border:1px solid #c67d00;border-radius:4px;background:#fff9e9cc}.score-beat-marker.editing.incomplete{outline:2px solid #d24726;outline-offset:2px}.score-beat-marker.editing.complete{border-color:#6a7b68;background:#f3f5efcc}.beat-marker-status{display:grid;gap:4px;padding:6px;border:1px solid #d8b565;background:#fff9e9;font-size:11px}.score-chord-menu>.beat-marker-status{max-height:none;grid-template-columns:minmax(0,1fr);overflow:visible}.score-beat-marker-geometry{display:grid;gap:4px}.score-beat-marker-geometry label{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:5px}.score-beat-marker-geometry label>span{overflow:visible;color:var(--muted);font-size:9px;text-overflow:clip}.score-beat-marker-geometry input{min-width:0;width:100%;margin:0}.score-beat-marker-geometry output{text-align:right;font-size:9px;font-variant-numeric:tabular-nums}.draft-session-active .header-material-editor,.draft-session-active .icon-library,.draft-session-active .score-chord-toolbar,.draft-session-active .score-slot,.draft-session-active .score-tools select,.draft-session-active .source-strip button,.draft-session-active .source-strip input,.draft-session-active .source-strip select,.draft-session-active .structure-panel button,.draft-session-active .structure-panel input,.draft-session-active .structure-panel select{pointer-events:none;opacity:.62}@media (max-width:760px){.text-chord-draft-panel.open{position:fixed;z-index:100;left:0;right:0;bottom:0;max-height:78vh;border-top:1px solid #aeb4bc;box-shadow:0 -12px 30px #0003}.text-chord-draft-body{max-height:calc(78vh - 42px)}.inline-chord-text-editor{min-width:160px}}.free-layout-placed.key{width:auto;height:var(--key-free-height,4.018%)}.free-layout-placed.bpm{display:block;width:auto;height:3.871%;overflow:visible}.free-layout-placed.chord{width:auto;height:4.2%}.free-layout-placed.title{width:16.8%;height:auto;aspect-ratio:2/1}.free-layout-placed.theme{width:6.9%;height:auto;aspect-ratio:1}.free-layout-placed.brand{width:auto;height:10%}.free-layout-placed img{display:block;width:auto;max-width:none;height:100%;object-fit:contain;pointer-events:none}.free-layout-placed.section img,.free-layout-placed.theme img,.free-layout-placed.title img{width:100%;height:auto}.free-layout-placed.key img{transform:translateY(var(--key-optical-shift,0))}.free-layout-placed.selected{outline:2px solid var(--brand);outline-offset:3px;background:#0a84ff16}.free-layout-mode-button{color:#fff!important;background:var(--brand)!important;border-color:var(--brand-strong)!important}.chord-measure-view{position:relative;width:100%;height:100%;overflow:visible;background:transparent}.chord-measure-view.interactive{min-height:0;height:100%;background:#fff;border:1px solid #74747a;touch-action:none}.score-chord-cell .chord-measure-view.interactive{background:transparent;border:0}.chord-measure-view.manual-layout-editing{touch-action:none;user-select:none}.chord-measure-beat-grid{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),#77777d calc(25% - 1px),#77777d 25%)}.chord-measure-beat-grid:after,.chord-measure-beat-grid:before{content:"";position:absolute;top:0;bottom:0;width:1px;background:#77777d}.chord-measure-beat-grid:before{left:0}.chord-measure-beat-grid:after{right:0}.chord-measure-hold,.chord-measure-piece{position:absolute;z-index:3;display:grid;place-items:center;padding:0;border:0;background:transparent;cursor:default;touch-action:none}.chord-measure-hold{z-index:8}.chord-eighth-rest-pair{z-index:3}.chord-text-rhythm-template{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0}.chord-text-rhythm-template button{padding:6px 9px;border:1px solid var(--line,#ddd);border-radius:8px;background:var(--surface,#fff);font-size:12px}.chord-text-rhythm-template button[aria-pressed=true]{background:#eee8f5;border-color:#a88abf}.chord-text-rhythm-template small{color:#777;font-size:11px}.chord-measure-view.interactive .chord-measure-hold,.chord-measure-view.interactive .chord-measure-piece{cursor:move}.chord-measure-piece img{object-fit:fill}.chord-measure-hold img,.chord-measure-piece img{display:block;width:100%;height:100%;pointer-events:none}.chord-measure-hold img{object-fit:contain}.chord-measure-hold.selected,.chord-measure-piece.selected{outline:2px solid var(--brand);outline-offset:0;border-radius:3px;background:#0a84ff12}.score-chord-row.editing .score-chord-cell:not(.unavailable):not(.melody-edit-cell):not(.arrangement-edit-cell):not(.key-change-targeting):not(.song-command-target):not(:has(.chord-measure-piece.selected,.chord-measure-hold.selected)):hover{outline:1px solid #5488c7;outline-offset:-1px;border-radius:4px;background:transparent;box-shadow:none}.score-chord-cell .chord-measure-hold.selected,.score-chord-cell .chord-measure-piece.selected{outline:1px solid #5488c7;outline-offset:0;border-radius:4px;background:transparent;box-shadow:none}.score-chord-cell .chord-measure-piece.selected{outline:none}.score-chord-cell .chord-measure-piece.selected:after{content:"";position:absolute;inset:-3px;pointer-events:none;--corner-ink:#3279cf;background:linear-gradient(var(--corner-ink),var(--corner-ink)) 0 0 /min(6px,25%) 1.5px,linear-gradient(var(--corner-ink),var(--corner-ink)) 0 0 /1.5px min(6px,25%),linear-gradient(var(--corner-ink),var(--corner-ink)) 100% 0 /min(6px,25%) 1.5px,linear-gradient(var(--corner-ink),var(--corner-ink)) 100% 0 /1.5px min(6px,25%),linear-gradient(var(--corner-ink),var(--corner-ink)) 0 100% /min(6px,25%) 1.5px,linear-gradient(var(--corner-ink),var(--corner-ink)) 0 100% /1.5px min(6px,25%),linear-gradient(var(--corner-ink),var(--corner-ink)) 100% 100% /min(6px,25%) 1.5px,linear-gradient(var(--corner-ink),var(--corner-ink)) 100% 100% /1.5px min(6px,25%);background-repeat:no-repeat}.score-chord-cell .chord-measure-piece.selected:focus-visible{outline:1px dashed #3279cf;outline-offset:4px}@media print{.score-chord-cell .chord-measure-piece.selected:after{display:none!important}}.score-chord-row.editing .score-chord-cell:not(.unavailable):has(.chord-measure-piece.selected,.chord-measure-hold.selected):hover{outline:none;background:transparent}.chord-measure-piece.overflow{filter:drop-shadow(0 0 2px #ff3b30)}.chord-measure-hold{height:8%}.chord-measure-resize-anchor{position:absolute;z-index:20;display:block;pointer-events:none}.chord-measure-resize-handle{position:absolute;right:-7px;bottom:-7px;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:var(--brand);box-shadow:0 1px 4px #0004;cursor:nwse-resize;touch-action:none;pointer-events:auto}.chord-builder{min-height:100vh;color:var(--ink);background:var(--canvas)}.chord-builder-topbar{min-height:58px;display:flex;align-items:center;gap:16px;padding:8px 14px;border-bottom:1px solid #c8c8cc;background:#f6f6f8eb;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.chord-builder-topbar>div{display:flex;align-items:center;gap:9px;min-width:0}.chord-builder-topbar img{width:36px;height:36px;object-fit:cover;border-radius:7px}.chord-builder-topbar span span,.chord-builder-topbar>div>span{display:grid;gap:2px}.chord-builder-topbar strong{font-size:14px}.chord-builder-topbar small{color:var(--muted);font-size:9px}.chord-builder-topbar nav{display:flex;gap:6px;margin-left:auto}.chord-builder-topbar nav a{min-height:30px;display:inline-flex;align-items:center;padding:0 9px;color:var(--ink);text-decoration:none;white-space:nowrap;border:1px solid #c7c7cc;border-radius:6px;background:#fff;font-size:10px}.chord-builder-sync{margin-left:auto;color:var(--muted);font-size:10px;white-space:nowrap}.chord-builder-sync.saved{color:#237a3b}.chord-builder-sync.local{color:#9a6700}.chord-builder-topbar .chord-builder-sync+nav{margin-left:0}.chord-builder-body{min-height:calc(100vh - 59px);display:grid;grid-template-columns:260px minmax(420px,1fr) 280px}.chord-builder-inspector,.chord-builder-sidebar{min-width:0;max-height:calc(100vh - 59px);overflow:auto;background:#f1f1f3}.chord-builder-sidebar{border-right:1px solid var(--line)}.chord-builder-inspector{border-left:1px solid var(--line)}.chord-builder-panel-head{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-bottom:1px solid var(--line);background:#f7f7f8}.chord-builder-panel-head strong{font-size:12px}.chord-builder-panel-head button{min-height:27px;padding:0 8px;border:1px solid #c7c7cc;border-radius:5px;background:#fff;color:var(--ink);cursor:pointer;font-size:9px}.chord-builder-template-list{padding:9px;border-bottom:1px solid var(--line)}.chord-builder-template-list>button{width:100%;display:grid;gap:3px;margin-bottom:5px;padding:8px 9px;text-align:left;border:1px solid #d1d1d6;border-radius:6px;background:#fff;color:var(--ink);cursor:pointer}.chord-builder-template-list>button.selected{border-color:var(--brand);outline:2px solid #0a84ff29;background:var(--brand-soft)}.chord-builder-template-list span{font-size:10px;font-weight:700}.chord-builder-template-list small{color:var(--muted);font-size:8px}.chord-builder-materials{padding:10px}.chord-builder-materials section{padding-bottom:12px}.chord-builder-materials h2{margin:0 0 6px;color:var(--muted);font-size:10px}.chord-builder-materials section>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.chord-builder-materials button{min-width:0;height:42px;display:grid;grid-template-rows:25px auto;place-items:center;padding:3px;border:1px solid #d1d1d6;border-radius:5px;background:#fff;color:var(--muted);cursor:grab}.chord-builder-materials button:hover{border-color:var(--brand);background:var(--brand-soft)}.chord-builder-materials img{display:block;width:100%;height:24px;object-fit:contain;pointer-events:none}.chord-builder-materials span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px}.chord-builder-stage{min-width:0;min-height:0;display:flex;flex-direction:column}.chord-builder-stage-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border-bottom:1px solid var(--line);background:#f7f7f8e8}.chord-builder-stage-head>div{display:grid;gap:3px;min-width:0}.chord-builder-stage-head input{width:min(360px,100%);height:27px;padding:0 7px;border:1px solid #c7c7cc;border-radius:5px;background:#fff;color:var(--ink);font-size:12px;font-weight:700}.chord-builder-stage-head p{margin:0;color:var(--muted);font-size:9px}.chord-builder-stage-head .chord-builder-stage-actions{display:flex;grid-auto-flow:row;align-items:center;gap:7px}.chord-builder-stage-actions button,.chord-stress-dialog button{min-height:28px;padding:0 9px;border:1px solid #c7c7cc;border-radius:5px;background:#fff;color:var(--ink);cursor:pointer;font-size:9px}.chord-stress-header form{display:contents}.chord-builder-stage-actions button:disabled,.chord-stress-dialog button:disabled{opacity:.45;cursor:default}.chord-builder-ok,.chord-builder-warning{flex:0 0 auto;padding:4px 7px;border-radius:5px;font-size:9px}.chord-builder-ok{color:#237a3b;background:#eaf7ed}.chord-builder-warning{color:#b42318;background:#fff0ee}.chord-builder-scroll{min-height:0;flex:1;overflow:auto;padding:18px clamp(10px,3vw,34px) 48px}.chord-builder-editor-section,.chord-builder-page-section{width:min(760px,100%);margin:0 auto 24px}.chord-builder-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:9px;margin-bottom:7px}.chord-builder-section-title strong{font-size:12px}.chord-builder-section-title span{color:var(--muted);font-size:9px}.chord-builder-editor{width:min(100%,420px);aspect-ratio:.96/1;margin-inline:auto}.chord-builder-beat-labels{display:grid;grid-template-columns:repeat(4,1fr);margin-top:6px;color:var(--muted);text-align:center;font-size:9px}.chord-builder-empty{min-height:280px;display:grid;place-items:center;border:1px dashed #b8b8bf;background:#fff;color:var(--muted);font-size:11px}.chord-builder-page-preview{position:relative;width:100%;aspect-ratio:1668/2014;overflow:hidden;background:#fff;border:1px solid #c3c3c7;box-shadow:0 8px 24px #00000018}.chord-builder-page-preview>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.chord-builder-page-grid{position:absolute;inset:0}.chord-builder-page-grid>div{position:absolute;min-width:0;min-height:0;padding:0;border:0;background:transparent;cursor:pointer}.chord-builder-page-grid>div.selected{outline:0;background:transparent}.chord-builder-page-grid .chord-measure-view.interactive{border:0;background:transparent}.chord-builder-page-grid .chord-measure-beat-grid{display:none}.chord-builder-warning-list{width:min(760px,100%);display:grid;gap:4px;margin:0 auto;padding:10px;border:1px solid #ffb4aa;border-radius:7px;background:#fff5f3;color:#b42318;font-size:9px}.chord-builder-warning-list strong{font-size:10px}.chord-builder-inspector-empty{padding:18px 13px;color:var(--muted);font-size:10px;line-height:1.55}.chord-builder-dynamic-readout{display:grid;gap:4px;padding:8px;border:1px solid #d1d1d6;border-radius:6px;background:#f7f7f8}.chord-builder-dynamic-readout small{color:var(--muted);font-size:8px;line-height:1.4}.chord-builder-mode-settings{display:grid;gap:9px;padding:13px;border-bottom:1px solid var(--line);background:#fff}.chord-builder-mode-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.chord-builder-mode-heading>span{min-width:0;display:grid;gap:2px}.chord-builder-mode-heading strong{font-size:11px}.chord-builder-mode-heading small{overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.chord-builder-mode-heading em{padding:3px 6px;border-radius:5px;font-size:8px;font-style:normal;white-space:nowrap}.chord-builder-mode-heading em.saved{color:#237a3b;background:#eaf7ed}.chord-builder-mode-heading em.pending{color:#9a6700;background:#fff4ce}.chord-builder-mode-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:2px;border:1px solid #c7c7cc;border-radius:6px;background:#e9e9ed}.chord-builder-mode-segments button{min-height:29px;border:0;border-radius:4px;background:transparent;color:var(--muted);cursor:pointer;font-size:9px}.chord-builder-mode-segments button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 3px #0002;font-weight:700}.chord-builder-mode-settings>p{margin:0;color:var(--muted);font-size:8px;line-height:1.45;overflow-wrap:anywhere}.chord-builder-mode-settings code{color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:8px}.chord-builder-mode-settings .chord-builder-mode-conflict{color:#b42318}.chord-builder-mode-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.chord-builder-mode-actions button,.chord-builder-mode-confirmation button{min-height:29px;padding:0 7px;border:1px solid #c7c7cc;border-radius:5px;background:#fff;color:var(--ink);cursor:pointer;font-size:8px}.chord-builder-mode-actions button:disabled{opacity:.42;cursor:default}.chord-builder-mode-confirmation{display:grid;gap:8px;padding:10px;border:1px solid #ff9f0a;border-radius:6px;background:#fffaf0}.chord-builder-mode-confirmation>strong{font-size:10px}.chord-builder-mode-confirmation dl{display:grid;gap:4px;margin:0}.chord-builder-mode-confirmation dl>div{display:grid;grid-template-columns:66px minmax(0,1fr);gap:6px;font-size:8px}.chord-builder-mode-confirmation dt{color:var(--muted)}.chord-builder-mode-confirmation dd{min-width:0;margin:0;overflow-wrap:anywhere}.chord-builder-mode-confirmation>p{margin:0;color:#7a4b00;font-size:8px;line-height:1.5}.chord-builder-mode-confirmation>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.chord-builder-controls,.chord-builder-template-settings{display:grid;gap:9px;padding:13px;border-bottom:1px solid var(--line)}.chord-builder-controls>strong,.chord-builder-template-settings>strong{font-size:11px}.chord-builder-controls>span{color:var(--muted);font-size:9px;font-weight:700}.chord-builder-controls hr{width:100%;margin:2px 0;border:0;border-top:1px solid var(--line)}.chord-builder-range{display:grid;grid-template-columns:52px minmax(0,1fr) 38px;align-items:center;gap:6px;color:var(--muted);font-size:9px}.chord-builder-range input{width:100%;accent-color:var(--brand)}.chord-builder-range output{color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}.chord-builder-reset-button{min-height:28px;padding:0 8px;border:1px solid #c7c7cc;border-radius:5px;background:#fff;color:var(--ink);cursor:pointer;font-size:9px}.chord-builder-template-settings small{color:var(--muted);font-size:8px;line-height:1.45}.chord-stress-backdrop{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:18px;background:#0008;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.chord-stress-dialog{width:min(1180px,100%);height:min(820px,calc(100vh - 36px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #a9a9af;border-radius:8px;background:#f5f5f7;box-shadow:0 24px 70px #0006}.chord-stress-header{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid var(--line);background:#fbfbfceb}.chord-stress-header>div:first-child{min-width:0;display:grid;gap:3px}.chord-stress-header strong{font-size:13px}.chord-stress-header span{color:var(--muted);font-size:9px}.chord-stress-header>div:last-child{display:flex;gap:6px}.chord-stress-header button.icon{width:30px;padding:0;font-size:17px}.chord-stress-progress{padding:9px 12px 7px;border-bottom:1px solid var(--line);background:#fff}.chord-stress-progress>div{height:5px;overflow:hidden;border-radius:3px;background:#e5e5ea}.chord-stress-progress>div>span{display:block;height:100%;background:var(--brand);transition:width .15s ease}.chord-stress-progress p{display:flex;gap:12px;margin:5px 0 0;color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums}.chord-stress-progress p strong{color:var(--ink);font-size:9px}.chord-stress-counts{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--line);background:#fafafa}.chord-stress-counts>span{min-width:0;display:grid;gap:2px;padding:7px 8px;border-right:1px solid var(--line);color:var(--muted);font-size:8px}.chord-stress-counts>span:last-child{border-right:0}.chord-stress-counts strong{color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums}.chord-stress-counts [data-status=review] strong,.chord-stress-results [data-status=review]{color:#9a6700}.chord-stress-counts [data-status=failed] strong,.chord-stress-results [data-status=failed]{color:#b42318}.chord-stress-counts [data-status=adjusted] strong,.chord-stress-counts [data-status=compact] strong,.chord-stress-counts [data-status=normal] strong{color:#237a3b}.chord-stress-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:8px 12px;border-bottom:1px solid var(--line);background:#fff}.chord-stress-filters label{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;color:var(--muted);font-size:8px}.chord-stress-filters select{min-width:0;height:28px;border:1px solid #c7c7cc;border-radius:5px;background:#fff;color:var(--ink);font-size:9px}.chord-stress-body{min-height:0;flex:1;display:grid;grid-template-columns:330px minmax(0,1fr)}.chord-stress-results{min-height:0;overflow:auto;border-right:1px solid var(--line);background:#f2f2f4}.chord-stress-result-head{position:sticky;z-index:1;top:0;display:flex;justify-content:space-between;gap:8px;padding:9px 10px;border-bottom:1px solid var(--line);background:#f7f7f8f2}.chord-stress-result-head strong{font-size:10px}.chord-stress-result-head span{color:var(--muted);font-size:8px}.chord-stress-results article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;margin:6px;padding:5px;border:1px solid #d1d1d6;border-radius:6px;background:#fff}.chord-stress-results article.selected{border-color:var(--brand);outline:2px solid #0a84ff24;background:var(--brand-soft)}.chord-stress-results article>button:first-child{min-width:0;height:auto;display:grid;justify-items:start;gap:3px;padding:2px 4px;text-align:left;border:0;background:transparent}.chord-stress-results article>button:first-child span{font-size:8px;font-weight:700}.chord-stress-results article>button:first-child strong{max-width:100%;overflow:hidden;color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:9px}.chord-stress-results article>button:first-child small{max-width:100%;overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:8px}.chord-stress-results button.load{padding-inline:6px}.chord-stress-inspection{min-width:0;min-height:0;overflow:auto;padding:14px;background:#fff}.chord-stress-preview-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:10px}.chord-stress-preview-head>div:first-child{min-width:0;display:grid;gap:3px}.chord-stress-preview-head strong{overflow-wrap:anywhere;font-size:11px}.chord-stress-preview-head span{color:var(--muted);font-size:8px}.chord-stress-preview-head>div:last-child{display:flex;align-items:center;gap:6px;white-space:nowrap}.chord-stress-preview{width:min(430px,92%);aspect-ratio:.96/1;margin:0 auto 14px;background:#fff}.chord-stress-preview .chord-measure-beat-grid{display:block}.chord-stress-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-block:1px solid var(--line)}.chord-stress-metrics span{min-width:0;display:grid;gap:2px;padding:8px 7px;border-right:1px solid var(--line)}.chord-stress-metrics span:last-child{border-right:0}.chord-stress-metrics small{color:var(--muted);font-size:7px}.chord-stress-metrics strong{font-size:10px;font-variant-numeric:tabular-nums}.chord-stress-detail{display:grid;gap:5px;padding-top:11px;color:var(--muted);font-size:9px;line-height:1.45}.chord-stress-detail>strong{color:var(--ink);font-size:10px}.chord-stress-detail p{margin:0}.chord-stress-detail ul{display:grid;gap:3px;margin:0;padding-left:17px;color:#b42318}.chord-stress-empty{min-height:150px;display:grid;place-items:center;padding:20px;color:var(--muted);text-align:center;font-size:10px}@media (width <= 900px){.free-layout-topbar{flex-wrap:wrap;gap:8px;padding:8px 10px}.free-layout-hint{order:3;width:100%}.free-layout-actions{gap:5px}.free-layout-body{min-height:calc(100vh - 92px);display:flex;flex-direction:column}.free-layout-library{max-height:36vh;border-right:0;border-bottom:1px solid var(--line)}.free-layout-assets{grid-template-columns:repeat(3,minmax(0,1fr))}.free-layout-asset{grid-template-columns:34px minmax(0,1fr);height:50px}.free-layout-thumb{width:32px;height:36px}.free-layout-scroll{padding:12px 8px 32px}.free-layout-canvas{width:100%}.chord-stress-backdrop{padding:8px}.chord-stress-dialog{height:calc(100vh - 16px)}.chord-stress-counts{grid-template-columns:repeat(4,minmax(0,1fr))}.chord-stress-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.chord-stress-body{grid-template-columns:280px minmax(360px,1fr);overflow:auto}.chord-builder-topbar{flex-wrap:wrap}.chord-builder-sync{order:3;width:100%;margin:0}.chord-builder-body{display:flex;flex-direction:column}.chord-builder-inspector,.chord-builder-sidebar{max-height:none;border:0;border-bottom:1px solid var(--line)}.chord-builder-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.chord-builder-template-list>button{margin:0}.chord-builder-materials section>div{grid-template-columns:repeat(6,minmax(0,1fr))}.chord-builder-stage{min-height:70vh}.chord-builder-scroll{padding-inline:8px}.chord-builder-inspector{order:2}}@media (width <= 600px){.chord-stress-header{align-items:flex-start;flex-direction:column}.chord-stress-header>div:last-child{width:100%}.chord-stress-header>div:last-child button:not(.icon){flex:1}.chord-stress-progress p{flex-wrap:wrap;gap:4px 10px}.chord-stress-counts{grid-template-columns:repeat(2,minmax(0,1fr));max-height:105px;overflow:auto}.chord-stress-filters{grid-template-columns:1fr;max-height:155px;overflow:auto}.chord-stress-body{display:flex;flex-direction:column;overflow:hidden}.chord-stress-results{flex:0 0 31%;border-right:0;border-bottom:1px solid var(--line)}.chord-stress-inspection{flex:1;padding:10px}.chord-stress-preview{width:min(300px,88%)}.chord-stress-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.chord-stress-preview-head{align-items:flex-start;flex-direction:column}}.melody-paste-backdrop{z-index:1200;display:grid;place-items:center;background:#0006}.melody-paste-confirm{width:min(480px,90vw);padding:24px;border-radius:12px;color:#18202a;box-shadow:0 8px 36px #0004}.melody-paste-confirm button{padding:8px 12px;margin:8px 8px 0 0}@media print{.melody-paste-backdrop{display:none!important}}.melody-clipboard-toolbar{--dock-bg:#f5f6f8;--dock-fg:#27313e;--dock-line:#dce0e6;--dock-hover:#e5e9ef;position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;margin:8px 0;padding:8px;width:100%;max-width:100%;box-sizing:border-box;color:var(--dock-fg);font-family:-apple-system,BlinkMacSystemFont,sans-serif}.melody-dock-context{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 12px;font-size:11px;text-align:center}.melody-dock-context small{flex-basis:100%;font-size:11px}.melody-dock-parts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.melody-dock-parts label{display:flex;align-items:center;gap:4px}.melody-dock-parts input{margin:0;accent-color:#2563b8}.melody-dock-parts [data-part=keyboard] input{accent-color:#bc3647}.melody-dock-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;padding:6px;max-width:100%;box-sizing:border-box;border:1px solid var(--dock-line);border-radius:18px;background:var(--dock-bg);box-shadow:0 3px 10px #0000000d}.melody-dock-group{display:flex;gap:2px;padding:0 4px}.melody-dock-actions .octave-icon{display:grid;grid-template-rows:9px 17px 9px;justify-items:center;font-size:17px;line-height:17px}.octave-icon>span{display:flex;flex-direction:column;justify-content:center;font-size:12px;line-height:5px;min-height:9px}.octave-icon>span>i{font-style:normal}.section-split-options{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0;max-height:180px;overflow:auto}.section-split-options button{min-width:48px;min-height:32px;border:1px solid #d8dbe2;border-radius:8px;background:white}.section-split-options button[aria-pressed=true]{background:#e7f0ff;border-color:#4386ed}.section-split-options img{width:40px;height:28px;object-fit:contain}.melody-dock-actions button:has(.octave-icon){flex-direction:column;min-height:62px;font-size:11px}.melody-dock-actions button:has([data-ui-icon=copy]){min-width:58px}.melody-octave-scope{display:grid;gap:6px;text-align:center}.melody-octave-scope>div{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}.melody-octave-scope button{padding:5px 9px;border:1px solid var(--line);border-radius:8px;background:var(--panel,#fff)}.melody-octave-scope button[aria-pressed=true]{background:#e5efff;color:#2458b7;border-color:#87adf8}.melody-confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.workbench-action-dialog{border:1px solid var(--line);border-radius:18px;padding:20px;width:min(420px,calc(100vw - 32px));max-height:80vh;overflow:auto;background:var(--panel,#fff);color:var(--ink);box-shadow:0 12px 40px #0002}.workbench-action-dialog::backdrop{background:#0003}.workbench-action-dialog p{font-size:13px;line-height:1.7}.workbench-action-dialog button{border:1px solid var(--line);border-radius:9px;padding:7px 12px}.melody-paste-confirm fieldset{display:grid;gap:8px;border:1px solid var(--line);border-radius:12px;padding:10px}.melody-paste-confirm fieldset label{display:flex;align-items:center;gap:6px}.melody-dock-group+.melody-dock-group{border-left:1px solid var(--dock-line)}.melody-clipboard-toolbar .melody-dock-group button{display:flex;align-items:center;justify-content:center;width:48px;min-height:48px;padding:4px 2px;border:0;border-radius:12px;color:var(--dock-fg);background:transparent;cursor:pointer}.melody-dock-group button .workbench-action-label{display:flex;flex-direction:column;gap:4px;font-size:11px;line-height:1.2;white-space:nowrap}.melody-dock-group button .workbench-ui-icon{width:21px;height:21px}.melody-dock-group button[data-target-part=keyboard] .workbench-ui-icon{color:#bc3647}.melody-dock-group button[data-target-part=guitar] .workbench-ui-icon{color:#2563b8}.melody-clipboard-toolbar .melody-dock-group button:hover:not(:disabled){background:var(--dock-hover)}.melody-clipboard-toolbar .melody-dock-group button:focus-visible{outline:2px solid #2563b8;outline-offset:-2px}.melody-clipboard-toolbar .melody-dock-group button:disabled{opacity:.4;cursor:default}@media (prefers-color-scheme:dark){.melody-clipboard-toolbar{--dock-bg:#292c32;--dock-fg:#f1f3f5;--dock-line:#4b5059;--dock-hover:#404650}.melody-dock-context{color:#27313e}.melody-dock-group button[data-target-part=keyboard] .workbench-ui-icon{color:#ff8592}.melody-dock-group button[data-target-part=guitar] .workbench-ui-icon{color:#80b5ff}}@media (prefers-reduced-motion:no-preference){.melody-dock-group button{transition:background-color 80ms ease}}@media (prefers-reduced-motion:reduce){.melody-dock-group button{transition:none;animation:none}}.melody-clipboard-menu button,.melody-clipboard-toolbar button{padding:6px 9px}.melody-clipboard-menu{display:block}.melody-context-title{margin:0 0 10px;text-align:center;font-size:12px;font-weight:600}.melody-context-section+.melody-context-section{border-top:1px solid #e9eaee;margin-top:9px;padding-top:9px}.melody-context-section h4{margin:0 0 6px;color:#68717e;font-size:11px;font-weight:500}.melody-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.melody-context-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.melody-context-grid.octaves{grid-template-columns:repeat(5,minmax(0,1fr))}.melody-context-grid.beats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:5px}.melody-context-wide{width:100%;grid-column:1/-1;margin-top:5px}.melody-context-grid.beats button[aria-pressed=true]{background:#e5efff;border-color:#91b5e7}.melody-clipboard-menu button{min-width:0;border:1px solid #e2e5eb;border-radius:7px;background:#f8f9fb;color:#303b4b;padding:6px 5px;font-size:11px;line-height:1.4}.melody-clipboard-menu button:hover:not(:disabled){background:#edf3ff;border-color:#b5cdf2}.melody-clipboard-menu button:disabled{color:#a6acb5;background:#f5f5f6;border-color:#eceef1;cursor:default}.melody-clipboard-menu button:focus-visible{outline:2px solid #3985e8;outline-offset:1px}.melody-clipboard-menu .workbench-action-label{justify-content:center;gap:4px;white-space:nowrap}.melody-clipboard-menu .workbench-ui-icon{width:13px;height:13px}.melody-color-dot{width:6px;height:6px;display:inline-block;border-radius:50%;margin-right:4px;background:#4b85df}.melody-color-dot.keyboard{background:#db6579}.melody-color-dot.bass{background:#27834c}.melody-combo-measure-view[data-track-color=blue] img{filter:url(/melody-materials/track-colors.svg#blue)}.melody-combo-measure-view[data-track-color=red] img{filter:url(/melody-materials/track-colors.svg#red)}.melody-combo-measure-view[data-track-color=green] img{filter:url(/melody-materials/track-colors.svg#green)}.melody-combo-measure-view[data-track-color=black] img{filter:url(/melody-materials/track-colors.svg?v=2#black)}.melody-track-controls{display:grid;gap:6px;width:100%}.melody-track-picker{display:flex;flex-wrap:wrap;gap:4px}.melody-track-picker button{padding:5px 8px;font-size:11px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.melody-track-picker button[aria-pressed=true]{background:var(--brand-soft);border-color:var(--brand)}.melody-track-settings{font-size:11px}.melody-track-settings label{display:inline-flex;align-items:center;gap:4px;margin:5px 6px 5px 0}.melody-track-settings input{width:80px}.melody-track-settings small{display:block;color:var(--muted)}.melody-clipboard-menu button:disabled .melody-color-dot{opacity:.3}.chord-context-split>summary{list-style:none;border:1px solid #e2e5eb;border-radius:7px;background:#f8f9fb;padding:6px 5px;font-size:11px;cursor:pointer}.chord-context-split>summary::-webkit-details-marker{display:none}.chord-context-split[open]{grid-column:1/-1}.chord-context-split .icon-library{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}.chord-context-split .icon-library img{width:28px;height:24px;object-fit:contain}.chord-context-actions .danger{color:#ba3b42}.score-chord-cell[data-melody-copy-selected=true]{outline:2px solid #1875da;outline-offset:-2px;background-color:#1875da18}@media print{.melody-clipboard-menu,.melody-clipboard-toolbar{display:none!important}.score-chord-cell[data-melody-copy-selected=true]{outline:none;background-color:transparent}}.melody-context-menu{position:fixed;z-index:1200;width:330px;max-width:calc(100vw - 16px);overflow:auto;overscroll-behavior:contain;background:#fff;color:#222;border:1px solid #dce0e6;border-radius:14px;padding:12px;box-shadow:0 8px 28px #0002;font-size:12px}.melody-context-menu>button{display:block;width:100%;text-align:left;padding:6px}.melody-context-menu fieldset{grid-column:1/-1;min-width:0;display:grid;gap:6px}.melody-context-menu input{width:65px}.melody-paste-backdrop{position:fixed;inset:0;z-index:1400;background:#0004;display:flex;align-items:center;justify-content:center;padding:8px}.melody-paste-confirm{background:white;color:#222;padding:16px;border-radius:8px;width:520px;max-width:100%;max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain;font-size:14px}.melody-paste-confirm button{margin:4px;padding:6px 10px}.score-melody-menu[hidden]{display:none!important}@media print{.melody-context-menu,.melody-paste-backdrop{display:none!important}}.with-measure-zoom .score-floating-menu-header strong{margin-right:auto}.with-measure-zoom .score-context-command{margin:3px 0;padding:3px}.with-measure-zoom .score-context-command input{padding:3px 4px}.with-measure-zoom .score-melody-menu-row{grid-template-columns:26px repeat(4,minmax(0,1fr))}.with-measure-zoom .score-melody-menu-row[aria-label="当前旋律乐器"]{grid-template-columns:26px 1fr 1fr}.with-measure-zoom .score-melody-pitch-menu{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:3px 0;padding:3px}.with-measure-zoom .score-melody-pitch-menu>strong{display:none}.with-measure-zoom .score-melody-degree-grid{grid-column:1/-1;margin:0}.with-measure-zoom .score-melody-pitch-menu .score-melody-menu-row{grid-template-columns:22px repeat(3,minmax(0,1fr));margin:0}.with-measure-zoom .score-melody-pitch-menu .melody-tie-actions{grid-column:1/-1;grid-template-columns:26px 1fr 1fr}.with-measure-zoom .score-melody-menu-actions{max-height:64px;overflow:auto;overscroll-behavior:contain;margin-top:3px;padding-top:3px}.with-measure-zoom .score-melody-menu details[open]{max-height:110px;overflow:auto;overscroll-behavior:contain}.with-measure-zoom .score-floating-menu-header{padding:2px 6px}.with-measure-zoom .score-floating-menu-header button{height:22px;flex-basis:24px}.with-measure-zoom .melody-measure-zoom p{margin:2px 6px;font-size:10px;line-height:12px}.with-measure-zoom .score-melody-menu-row{margin:1px 0}.with-measure-zoom .score-context-command{margin:2px 0;padding:2px}.with-measure-zoom .score-melody-template-list{margin:2px 0;gap:3px}.score-floating-menu.with-measure-zoom .score-melody-menu{padding:4px 6px;font-size:11px}.score-floating-menu.with-measure-zoom .score-melody-menu button{border-radius:5px;padding:2px 4px;line-height:1.35}.score-floating-menu.with-measure-zoom .score-melody-menu button:focus-visible{outline:2px solid #007aff;outline-offset:1px}.score-floating-menu.with-measure-zoom .score-melody-menu>.score-context-command{border:0;background:transparent;padding:0;gap:4px;align-items:stretch}.score-floating-menu.with-measure-zoom .score-context-command input{min-height:26px;border-radius:5px}.score-floating-menu.with-measure-zoom .score-melody-pitch-menu{border:0;background:transparent;padding:0;gap:4px}.score-floating-menu.with-measure-zoom .score-melody-menu-row{gap:4px;margin:4px 0}.score-floating-menu.with-measure-zoom .score-melody-menu-row[aria-label="当前旋律乐器"]>button:first-of-type.selected{color:#075ea8;background:#eaf4ff;border-color:#0a84ff}.score-floating-menu.with-measure-zoom .score-melody-menu-row[aria-label="当前旋律乐器"]>button:last-of-type.selected{color:#b42318;background:#fff0ed;border-color:#dc675a}.score-floating-menu.with-measure-zoom .score-melody-menu-actions{gap:4px;max-height:104px;margin-top:4px;padding-top:4px}.score-floating-menu.with-measure-zoom .score-melody-menu-actions button{flex:0 1 auto;width:fit-content;text-align:left}.score-floating-menu.with-measure-zoom .score-melody-menu-actions .workbench-action-label{gap:4px;justify-content:flex-start}.score-floating-menu .workbench-ui-icon{width:16px;height:16px;flex-basis:16px;stroke-width:1.7}.score-floating-menu .score-floating-menu-header>button{border-color:transparent;background:transparent;box-shadow:none;color:#666;border-radius:6px}.score-floating-menu .score-floating-menu-header>button:hover:not(:disabled){background:#f0f1f3;color:#333}.score-floating-menu .score-floating-menu-header>button:focus-visible{outline:2px solid var(--brand);outline-offset:1px;background:#f0f1f3}.score-floating-menu button.danger{color:#a55252;border-color:#e5cece}.score-floating-menu button.danger:hover:not(:disabled){color:#922f2f;border-color:#d6a4a4;background:#fff2f2}.workbench-settings{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #d8dce4;border-radius:16px;background:#fff;color:#242936;box-shadow:0 20px 70px #15213a33}.workbench-settings::backdrop{background:#18233b66}.topbar .workbench-settings-trigger{display:inline-flex;flex-shrink:0}.workbench-settings[open]{display:flex;flex-direction:column;overflow:hidden}.workbench-settings>header{flex-shrink:0}.workbench-settings .workbench-settings-body{min-height:0;overflow:hidden}.workbench-settings .workbench-settings-body>section{overflow:auto;overscroll-behavior:contain}.workbench-settings>footer{flex-shrink:0;padding:8px 24px;font-size:13px;color:#5b6372;border-top:1px solid #e4e7ee;max-height:72px;overflow:auto}.workbench-settings>header{display:flex;justify-content:space-between;align-items:start;padding:20px 24px;border-bottom:1px solid #e4e7ee;gap:16px}.workbench-settings h2{margin:0;font-size:21px}.workbench-settings h3{margin:14px 0 8px;font-size:17px}.workbench-settings p{font-size:14px;line-height:1.7;color:#5b6372;margin:8px 0 14px}.workbench-settings-body{display:grid;grid-template-columns:160px minmax(0,1fr);min-height:380px}.workbench-settings nav{display:flex;flex-direction:column;gap:8px;padding:18px 12px;background:#f6f7fa}.workbench-settings button{border:1px solid #d8dce4;border-radius:7px;padding:7px 12px;background:white;color:#293448;cursor:pointer;font-size:14px}.workbench-settings button:disabled{opacity:.45;cursor:not-allowed}.workbench-settings nav button{text-align:left}.workbench-settings nav button[aria-pressed=true]{color:#2457cb;background:#eaf0ff;border-color:#9db8f4}.workbench-settings-body>section{min-width:0;padding:12px 24px 24px}.workbench-settings fieldset{min-width:0;border:1px solid #e1e5ed;border-radius:8px;padding:14px}.workbench-settings fieldset>label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.workbench-settings input[type=range]{width:55%}.workbench-settings a{display:block;color:#2457cb;margin:12px 0;text-decoration:underline}.workbench-settings .melody-rhythm-toolbar details>div>div{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:7px 0}.workbench-settings .melody-rhythm-toolbar details>div>div>span{flex:1 1 180px}.workbench-settings .inline-chord-saved-rules{max-height:340px;overflow:auto}@media (max-width:600px){.workbench-settings-body{grid-template-columns:minmax(0,1fr)}.workbench-settings .workbench-settings-body{grid-template-rows:auto minmax(0,1fr)}.workbench-settings nav{flex-direction:row;flex-wrap:wrap}.workbench-settings-body>section{padding:12px}}@media print{.workbench-settings{display:none!important}}@media screen{.structure-panel>.panel-header{position:relative;justify-content:center}.structure-panel>.panel-header>div{width:100%;text-align:center;padding-inline:26px}.structure-panel>.panel-header p{max-width:none;margin-inline:auto;text-align:center}.structure-panel>.panel-header>button{position:absolute;right:12px}.structure-panel .section-item .row-actions{grid-column:1/-1;flex-direction:row;justify-content:center;gap:3px;align-items:center}.structure-panel .section-item .row-actions>button{flex:0 0 auto;width:24px;height:28px}.structure-panel .section-item .row-actions>.section-boundary-button{width:auto;min-width:0;padding:3px 4px;font-size:10px;margin:0;white-space:nowrap}.structure-panel .section-line{grid-template-columns:minmax(0,1fr) 48px auto}.structure-panel .bar-select{position:relative;width:48px;display:block}.structure-panel .bar-select .bar-input{color:transparent}.structure-panel .bar-select option{color:#111}.structure-panel .bar-select-value{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-inline:12px;color:#111;font-size:11px;font-variant-numeric:tabular-nums;pointer-events:none}.structure-panel .section-line .bar-input{width:48px;padding:0 12px;text-align:center;text-align-last:center;font-variant-numeric:tabular-nums;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 3px center}.structure-panel .panel-header .add{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--line);border-radius:7px;background:white;box-shadow:none;color:#6e6e73}.structure-panel .panel-header .add:hover{background:var(--brand-soft);color:var(--brand)}.quick-toolbar{display:flex;flex-wrap:nowrap;gap:5px;align-items:center;position:relative}.score-chord-cell[data-direct-editing=true]{pointer-events:auto}.quick-toolbar .score-command-entry{position:relative;flex:0 1 50%;min-width:190px}.quick-toolbar .inline-chord-text-editor{width:100%;min-width:0;flex-wrap:nowrap}.quick-toolbar .inline-chord-text-editor>input{padding-left:25px}.command-entry-icon{position:absolute;left:7px;top:50%;transform:translateY(-50%);z-index:1;color:#65768a;pointer-events:none;font-size:14px}.quick-more,.quick-toolbar>button{flex:0 0 auto;white-space:nowrap}.quick-more-menu{position:absolute;right:0;top:100%;z-index:160;display:grid;gap:4px;padding:6px;background:white;border:1px solid #ccd2dc;border-radius:7px;box-shadow:0 4px 16px #0002}.quick-toolbar button[aria-pressed=true]{background:#eaf3ff;border-color:#70a4dd}.quick-measure-action{display:flex;align-items:center;gap:6px;padding:6px 10px;background:white;font-size:12px}.quick-measure-action label{display:flex;align-items:center;gap:4px}.quick-measure-action input{width:52px;height:27px;border:1px solid var(--line);border-radius:6px;text-align:center}.score-chord-cell .chord-measure-view.interactive .chord-measure-hold,.score-chord-cell .chord-measure-view.interactive .chord-measure-piece{pointer-events:auto;cursor:pointer;touch-action:manipulation}.resizable-chord-menu .score-floating-menu-body{flex:1 1 auto}.resizable-chord-menu .score-chord-menu>div{max-height:none;overflow:visible}.resizable-chord-menu .score-chord-menu .score-chord-menu-actions{gap:4px}.resizable-chord-menu .score-chord-menu .section-split-actions{grid-template-columns:1fr}.chord-menu-resize{flex:0 0 18px;display:grid;place-items:center;background:#f6f7f9;border-top:1px solid #e0e4e9;cursor:ns-resize;touch-action:none}.chord-menu-resize span{width:36px;height:4px;border-radius:3px;background:#a4afbc}.chord-menu-resize:focus-visible{outline:2px solid #1677ff;outline-offset:-2px}}@media screen{.score-floating-menu .score-floating-menu-header{position:relative;justify-content:flex-end;min-height:30px;padding:4px 8px}.score-floating-menu .score-floating-menu-header>strong{position:absolute;left:64px;right:64px;margin:0;text-align:center;pointer-events:none}.score-floating-menu-header-controls{display:flex;align-items:center;gap:4px}.score-floating-menu-header-controls>button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:5px;background:transparent}.score-floating-menu-header-controls>button:hover{background:#f0f1f3}.score-floating-menu .score-floating-menu-body>.score-chord-menu{padding:4px 8px}.score-chord-menu .score-chord-menu-actions>button,.score-chord-menu .section-structure-actions>details>summary{width:100%;min-width:0;box-sizing:border-box;justify-content:center;text-align:center}.score-chord-menu .chord-delete-actions .workbench-action-label{justify-content:center;gap:2px;font-size:11px}.score-chord-menu .chord-delete-actions [data-ui-icon]{width:12px;height:12px;flex:0 0 12px}.structure-panel .section-item .row-actions{justify-content:space-between;width:100%}.quick-toolbar>button{padding-inline:3px;font-size:10px}.quick-tool-strip{display:flex;align-items:stretch;gap:4px;flex:0 0 auto;padding:0}.quick-tool-strip>.quick-more>button,.quick-tool-strip>button{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-height:26px;padding:3px 5px;border:1px solid #d6dbe2;border-radius:6px;background:#fff;white-space:nowrap;font-size:10px}.reference-pdf-name{color:#1769bc;text-decoration:none}.reference-pdf-name:hover{color:#104c8b}.pdf-candidate-preview{flex-basis:100%;min-width:0}.pdf-candidate-preview summary{cursor:pointer;color:#1769bc}.pdf-candidate-scroll{max-height:320px;overflow:auto;margin-top:8px}.pdf-candidate-preview table{width:100%;border-collapse:collapse;text-align:left;background:white}.pdf-candidate-preview td,.pdf-candidate-preview th{padding:6px 8px;border:1px solid #e1e5eb;vertical-align:top}.score-chord-menu .menu-palette-grid button:has(.chord-root-menu-material){display:flex;align-items:center;justify-content:center}.chord-root-menu-material{display:inline-flex;align-items:flex-end;justify-content:center;height:24px}.menu-palette .chord-root-menu-material>img{width:auto;height:24px;max-width:22px;object-fit:contain}.menu-palette .chord-root-menu-material>.chord-root-menu-minor{width:auto;height:10px;max-width:12px;margin:0 0 1px 1px}.quick-tool-strip .workbench-ui-icon{width:13px;height:13px;flex:none}.quick-tool-strip button[aria-pressed=true]{background:#dceaff;color:#175da7}.quick-tool-strip>.quick-more>button:hover,.quick-tool-strip>button:hover{background:#e5eaf0}.palette-quick-row .melody-rhythm-slot>button{white-space:nowrap}.menu-palette button[aria-pressed=true]{background:#eaf3ff;border-color:#70a4dd}.score-chord-cell[data-chord-menu-selected=true]{outline:3px solid #1677ff;outline-offset:-3px;background:#1677ff12}.score-measure-number{position:absolute;right:3px;bottom:2px;z-index:65;font:8px/1 sans-serif;font-variant-numeric:tabular-nums;color:#64748b;background:#ffffffd9;border-radius:2px;padding:1px;pointer-events:none;user-select:none}.automatic-recovery-history{font-size:11px}.automatic-recovery-history>summary{cursor:pointer;padding:6px 0}}@media print{.score-measure-number{display:none!important}}.score-marquee-box,.score-marquee-hit{position:fixed;pointer-events:none;z-index:1200;border:1px solid #498af4;border-radius:4px;background:#498af418}.score-marquee-hit{border:0;border-radius:3px;box-sizing:border-box;background-color:#498af414;background-image:linear-gradient(#498af4,#498af4),linear-gradient(#498af4,#498af4),linear-gradient(#498af4,#498af4),linear-gradient(#498af4,#498af4),linear-gradient(#498af4,#498af4),linear-gradient(#498af4,#498af4),linear-gradient(#498af4,#498af4),linear-gradient(#498af4,#498af4);background-size:min(7px,30%) 1.5px,1.5px min(7px,30%);background-position:0 0,0 0,100% 0,100% 0,0 100%,0 100%,100% 100%,100% 100%;background-repeat:no-repeat}.score-marquee-root[data-marquee-enabled=true] [data-score-measure-index]{user-select:none;-webkit-user-select:none}.score-marquee-root .melody-context-menu,.score-marquee-root .score-floating-menu,.score-marquee-root input,.score-marquee-root textarea{user-select:text;-webkit-user-select:text}.score-marquee-copy{position:fixed;z-index:1201;display:flex;gap:4px;padding:6px;background:#fff;border:1px solid #d7dbe2;border-radius:10px;box-shadow:0 4px 18px #0002}.score-marquee-copy button,.score-selection-paste button{border:1px solid #d7dbe2;border-radius:6px;background:white;padding:5px 8px;font-size:12px}.score-selection-paste{display:grid;gap:5px;margin-bottom:6px}.score-selection-paste>div{display:flex;gap:4px}.score-selection-paste button[aria-pressed=true]{background:#e7f0ff;border-color:#498af4}:is(.project-library-popover,.export-submenu,.score-key-change-library,.score-beat-extension-library,.arrangement-material-library,.quick-measure-action){border:1px solid #d7dbe2;border-radius:10px;background:#fff;box-shadow:0 4px 18px #00000012}:is(.score-key-change-library,.score-beat-extension-library,.arrangement-material-library,.quick-measure-action){margin:6px 8px;padding:8px}:is(.project-library-popover,.export-submenu,.score-key-change-library,.score-beat-extension-library,.arrangement-material-library,.quick-measure-action) button{border-radius:6px}@media print{.score-marquee-box,.score-marquee-copy,.score-marquee-hit{display:none!important}}.reference-recognize-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:28px;padding:4px 9px;border:1px solid #cbdaf0;border-radius:8px;background:#f4f8ff;color:#2369bc;font-size:12px}.reference-recognize-button:hover:not(:disabled){background:#e7f0ff}.reference-recognize-button:disabled{opacity:.5}.score-section-copy-menu{flex-direction:column;max-width:290px;max-height:calc(100vh - 16px);overflow:auto}.score-section-copy-menu>button{text-align:left}.score-section-copy-menu .score-section-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.score-section-copy-menu .score-section-menu-grid img{max-width:40px;max-height:30px}.score-marquee-root[data-paste-available=true] [data-paste-empty-after-section]{pointer-events:auto}.score-marquee-root[data-marquee-enabled=true] .score-page{user-select:none;-webkit-user-select:none}.score-marquee-root[data-marquee-enabled=true] [data-paste-empty-after-section]{pointer-events:auto}.score-selection-actions{display:grid;grid-template-columns:repeat(3,1fr);max-width:calc(100vw - 16px)}.score-selection-delete{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;border-top:1px solid #e7e9ee;padding-top:5px}.score-selection-actions button{display:flex;align-items:center;justify-content:center;white-space:nowrap}.score-selection-actions button.danger{color:#bb3c36}.score-selection-actions button:disabled{opacity:.35;cursor:default}.score-marquee-copy.score-selection-actions{grid-template-columns:repeat(3,minmax(0,1fr));color:#302e38}.score-marquee-copy,.score-marquee-copy *{user-select:none;-webkit-user-select:none}.score-marquee-copy.score-selection-actions button{min-width:0;padding:5px 4px;font:12px/1.4 -apple-system,BlinkMacSystemFont,PingFang SC,sans-serif}.score-selection-actions .score-selection-delete{grid-template-columns:repeat(3,minmax(0,1fr))}.score-selection-actions{width:292px;box-sizing:border-box;max-height:calc(100vh - 16px);overflow:auto}.score-selection-group-title{grid-column:1/-1;font-size:11px;color:#667085;font-weight:500;padding:3px}@media print{.score-page[data-editor-spare-page=true]{display:none!important}}.score-selection-error{grid-column:1/-1;flex-basis:100%;margin:2px 0 0;padding:6px;border-radius:5px;background:#fff3ee;color:#923c29;font-size:12px;line-height:1.45;white-space:normal}.score-section-copy-menu:has(.score-selection-error){flex-wrap:wrap;max-width:300px}.score-header-note{left:79%;width:19.1%;height:4.05%;z-index:12;font-family:sans-serif;font-weight:400;overflow:hidden}.score-header-note.upper{top:.25%}.score-header-note.lower{top:5.05%}.score-note-open{position:relative;width:100%;height:100%;display:grid;place-items:center;padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:text}.score-note-open:disabled{opacity:1;cursor:default}.score-note-open:hover:not(:disabled){background:#4a8bf00b;box-shadow:inset 0 0 0 1px #4a8bf077;border-radius:3px}.score-note-lines{display:block;width:100%;line-height:1.25}.score-note-line{display:block;white-space:pre}.score-note-placeholder{position:absolute;color:#8b929b;opacity:0;font-size:.8em}.score-note-open:focus-visible .score-note-placeholder,.score-note-open:hover .score-note-placeholder{opacity:1}.score-header-note textarea{position:absolute;inset:0;width:100%;height:100%;resize:none;box-sizing:border-box;padding:0;border:1px solid #4a8bf0;border-radius:3px;background:white;color:inherit;font:inherit;font-weight:400;line-height:1.25;text-align:center;outline:none;user-select:text;-webkit-user-select:text}.score-header-note textarea[aria-invalid=true]{border-color:#be423c}.score-note-error{position:absolute;bottom:0;background:#fff1ee;color:#a33029;font-size:.65em;pointer-events:none}@media print{.annotation-controls,.annotation-placement,.score-header-note textarea,.score-note-error,.score-note-placeholder{display:none!important}.score-free-note{outline:none!important}}.score-annotation-form{display:grid;gap:12px;padding:12px;font-size:13px}.score-annotation-form label{display:grid;gap:6px}.score-annotation-form input,.score-annotation-form textarea{width:100%;box-sizing:border-box;padding:8px;border:1px solid #d8d2e3;border-radius:8px;background:white;color:#25212d}.score-annotation-form textarea{resize:vertical;min-height:90px}