.mode-tabs{display:flex;background:#e9ede5;border-radius:9px;padding:4px;gap:3px;flex-shrink:0}
.mode-tabs button{padding:8px 15px;min-height:38px;background:transparent;font-size:15px}
.mode-tabs button[aria-pressed=true]{background:white;box-shadow:0 1px 4px #283b321a;font-weight:650}
.topbar-actions{gap:10px}.topbar #new-score,.topbar #export-score{white-space:nowrap;min-height:44px;padding:9px 13px}
.editor-palette{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 18px;background:#f5f7f1;border-bottom:1px solid var(--line);flex-shrink:0}
.edit-history,.duration-tools,.edit-rhythm{display:flex;gap:4px}.edit-history{padding-right:12px;border-right:1px solid #d9e0d3}
.editor-palette button,.edit-effects button,.edit-bar-actions button,.edit-repeat>button{min-height:40px;border:1px solid #d8e0d1;background:white;font-size:15px;padding:7px 10px}
.edit-history button{font-size:24px;width:42px;padding:1px}.duration-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:44px;height:48px;padding:2px 8px;gap:0}.duration-symbol{font-family:Bravura,serif;font-size:26px;line-height:28px}.duration-tools small{font-size:13px}
.editor-palette button[aria-pressed=true],.edit-effects button[aria-pressed=true],.edit-repeat>button[aria-pressed=true]{background:#dcebd0;border-color:#8eaa7b;color:#244531}
.editor-inspector{background:#fafbf7;border:1px solid var(--line);border-radius:12px;padding:20px;overflow:auto;min-height:0;scrollbar-width:thin}
.editor-inspector h3{font-size:15px;margin-bottom:12px}.editor-inspector label,.score-dialog label{display:flex;flex-direction:column;gap:6px;font-size:15px;margin:10px 0}.editor-inspector input:not([type=checkbox]),.score-dialog input,.editor-inspector select,.score-dialog select{width:100%;border:1px solid #d4decf;border-radius:7px;padding:8px 10px;background:#fff;font-size:15px;color:var(--ink);min-width:0;min-height:40px}
.edit-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.edit-two label{min-width:0}.full-width{width:100%;margin-top:8px}.edit-effects{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:14px 0}.fret-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.fret-inputs label{margin:0;font-size:13px}.fret-inputs input{text-align:center;font-size:19px!important}.fret-inputs label.selected input{border-color:#5e8250;background:#eef5e6}.edit-repeat{display:flex;align-items:center;gap:10px}.edit-repeat label{flex:1;font-size:13px}.edit-repeat input{width:70px!important}.edit-bar-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.edit-bar-actions button:last-child{grid-column:1/-1;color:#93453b;background:#fff8f5}
#edit-dirty{font-size:13px;color:#667959}#edit-dirty.unsaved{color:#a5651e;background:#fff2d8;border-radius:5px;padding:4px 6px}
.edit-dock{border-top:1px solid #d5dfcc;background:#fafcf7;flex-shrink:0;padding:10px 16px 8px;max-height:290px;overflow:auto}.edit-position{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:15px}.edit-position>div{display:flex;align-items:center;gap:8px}.edit-position button{border:1px solid #d9e2d1;background:white;min-height:34px;padding:4px 12px}.edit-position strong{font-weight:600;white-space:nowrap}.edit-position #edit-meter{font-size:13px;color:#64745b}.edit-position #edit-meter.overfull{color:#a83e30}.edit-position #edit-split{font-size:13px;white-space:nowrap}.edit-shortcuts{font-size:13px;color:#65725d;margin-top:8px;line-height:1.6}.tab-grid{overflow:auto;outline-offset:0;max-height:202px;padding:3px 0 5px;scrollbar-width:thin}.tab-grid table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:15px;table-layout:fixed}.tab-grid th{height:26px;min-width:34px;font-weight:500;color:#6a7862;font-size:13px;background:#f0f4eb}.tab-grid .string-label{position:sticky;left:0;z-index:2;min-width:55px;width:55px;background:#f0f4eb;font-size:13px;white-space:nowrap;padding:0 6px}.tab-grid td{padding:0;position:relative;min-width:48px;text-align:center;height:25px}.tab-grid td::before{content:"";position:absolute;top:50%;left:0;right:0;border-top:1px solid #bfcbb5;pointer-events:none}.tab-cell{position:relative;z-index:1;min-width:40px;width:calc(100% - 8px);height:24px;min-height:24px;border-radius:3px;background:#fafcf7;font-size:17px;padding:0 5px;font-family:Consolas,monospace}.tab-cell[aria-selected=true]{background:#d8eac7;box-shadow:inset 0 0 0 2px #63884e;color:#24472c}.tab-grid td.current-beat{background:#eaf2e0}.tab-grid td.current-beat .tab-cell:not([aria-selected=true]){background:#eaf2e0}
.editing .score-viewport{min-height:0}.editing .score-toolbar{min-height:66px;padding-top:10px;padding-bottom:10px}.editing .score-panel{position:relative}.editing .score-footnote{display:none}.score-dialog{border:1px solid #d0dac7;border-radius:14px;color:var(--ink);width:420px;max-width:calc(100vw - 30px);padding:25px;background:#fafcf7;box-shadow:0 15px 80px #233e3540}.score-dialog::backdrop{background:#22392f66}.score-dialog h2{font-size:22px;margin-bottom:18px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.edit-dock{flex:0 1 254px;min-height:120px}.tab-grid th{height:22px}.tab-grid td,.tab-cell{height:23px;min-height:23px}.edit-dock .edit-shortcuts{line-height:1.4;margin-top:5px}.edit-position{margin-bottom:5px}.editing .score-view-settings{padding-top:7px;padding-bottom:7px}.editing .editor-palette{padding-top:7px;padding-bottom:7px}
.edit-cursor-label{font-size:13px;color:#53684a;margin-left:auto;white-space:nowrap}.editor-palette #edit-toggle-grid[aria-expanded=true]{background:#dcebd0;border-color:#8eaa7b}
.inspector-tabs{display:flex;gap:4px;background:#e9ede5;padding:4px;border-radius:8px;margin:0 0 14px}.inspector-tabs button{flex:1;min-height:36px;background:transparent;font-size:15px}.inspector-tabs button[aria-pressed=true]{background:white;font-weight:600;box-shadow:0 1px 4px #233e3514}.editor-inspector:not(.song-tab) [data-editor-section=song]{display:none}.editor-inspector.song-tab .setting-section:not([data-editor-section=song]){display:none}.editor-track-picker{padding-bottom:12px;border-bottom:1px solid var(--line)}
@media(max-width:1400px){.edit-cursor-label{display:none}}
@media(max-width:1150px){.topbar{padding:12px 20px;height:auto;min-height:72px}.topbar-actions{flex-wrap:wrap}.editor-inspector{padding:16px}.editor-palette{gap:8px;padding:8px 12px}.duration-tools button{min-width:38px;padding:2px 5px}.edit-rhythm button{padding:7px}}
@media(max-width:900px){.editing .score-panel{height:850px}.editor-inspector{overflow:visible}.editor-palette{gap:8px}.edit-dock{max-height:300px}.editing .score-viewport{min-height:260px}}
@media(max-width:600px){.topbar-actions{justify-content:flex-start}.mode-tabs{flex:1;justify-content:center}.topbar #new-score,.topbar #export-score{padding:8px 10px}.topbar .primary{flex:1}.edit-position{flex-wrap:wrap}.edit-position #edit-meter{order:3;width:100%}.editing .score-panel{height:850px}.editor-palette{padding:10px;gap:8px}.edit-history{padding-right:8px}.edit-rhythm{flex-wrap:wrap}.edit-shortcuts{font-size:13px}.edit-dock{padding:10px}.score-toolbar{flex-wrap:wrap}}
