.cw-shell{--cw-accent:#176745;max-width:1440px;margin:auto;padding:16px;box-sizing:border-box;font-size:16px;color:#17231e}.cw-shell *{box-sizing:border-box}.cw-shell h1{font-size:26px;margin:0}.cw-shell h2{font-size:19px;margin:0 0 12px}.cw-shell h3{font-size:16px;margin:0 0 6px}.cw-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.cw-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}:where(.cw-shell) button,:where(.cw-shell) input,:where(.cw-shell) select{font:inherit;font-size:14px;min-height:40px;border:1px solid #cbd5ce;border-radius:7px;background:white;color:inherit;padding:8px 10px}.cw-shell button{cursor:pointer}.cw-shell button:hover{border-color:var(--cw-accent)}.cw-shell button:focus-visible,.cw-shell input:focus-visible,.cw-shell select:focus-visible,.cw-event:focus-visible{outline:3px solid #4c9cda;outline-offset:2px}.cw-shell button:disabled{opacity:.45;cursor:default}:where(.cw-shell) label{display:flex;align-items:center;gap:7px;font-size:14px}.cw-shell input[type=checkbox]{min-height:20px;width:20px;margin:0;accent-color:var(--cw-accent)}.cw-panel{border:1px solid #d8dfda;border-radius:12px;background:#fff;padding:16px;margin:12px 0;min-width:0}.cw-source-row{display:flex;gap:8px}.cw-source-row label{flex:1}.cw-source-row input{width:100%;min-width:0}.cw-source-row label{min-width:0}.cw-shell #cwStatus:empty{display:none}.cw-shell #cwStatus{padding:8px;background:#f2f5f3}.cw-rhythm h2{margin-bottom:8px}.cw-rhythm input{width:88px}.cw-timeline-scroll{overflow-x:auto;padding:10px 0 18px;overscroll-behavior-x:contain}.cw-timeline{display:flex;position:relative;align-items:stretch;min-height:145px}.cw-event{position:relative;flex-shrink:0;border:1px solid #bacbc0;border-left-width:3px;background:#f2f6f3;padding:12px 13px 12px 8px;overflow:hidden;display:flex;flex-direction:column;gap:7px;cursor:pointer}.cw-event strong{font-size:16px;overflow-wrap:anywhere}.cw-event span,.cw-event small{font-size:13px;line-height:1.3;overflow-wrap:anywhere}.cw-event.active{background:#e1f1e8;border-color:#176745;box-shadow:inset 0 0 0 1px #176745}.cw-event.is-playing{box-shadow:inset 0 -5px #d42a38}.cw-shell .cw-grip{min-height:24px;max-width:28px;padding:0;border:0;background:transparent;touch-action:none;cursor:grab}.cw-shell .cw-resize{position:absolute;right:0;top:0;bottom:0;width:12px;min-height:100%;border:0;border-radius:0;padding:0;background:transparent;touch-action:none;cursor:ew-resize}.cw-resize:after{content:'';position:absolute;top:40%;height:26px;right:3px;border-right:3px solid #608772}.cw-timeline #cwPlayhead{position:absolute;top:0;bottom:0;width:2px;background:#d42a38;pointer-events:none}.cw-event-edit input{width:100px}.cw-event-edit #cwChord{width:200px}.cw-workbench{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px}.cw-candidates{max-height:480px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin-top:12px;padding:3px}.cw-candidate{padding:12px;border:1px solid #d7e1da;border-radius:8px;min-width:0}.cw-candidate>small{display:block;color:#596b60;font-size:13px;margin:6px 0 10px}.cw-candidate>span{font-size:14px}.cw-candidate .cw-actions{gap:4px}.cw-candidate button{min-height:36px;padding:6px 8px}.cw-shell dl{display:grid;grid-template-columns:80px minmax(0,1fr);gap:6px;font-size:14px}.cw-shell dd{margin:0;overflow-wrap:anywhere}.cw-shell dt{color:#66756c}.cw-source{font-size:13px;color:#66756c}.cw-scale{padding-top:12px;border-top:1px solid #d7e1da}.cw-scale p{margin:5px 0}.cw-score-scroll{max-width:100%;overflow-x:auto}.cw-warning{background:#fff1cd;color:#78500a;padding:10px;border-radius:6px}.cw-keyboard{display:flex;overflow-x:auto;min-height:110px;padding:10px 0}.cw-shell .cw-key{flex:0 0 38px;height:94px;align-self:flex-start;font-size:12px;border-radius:0 0 4px 4px;padding:55px 1px 3px}.cw-shell .cw-key.is-black{background:#303a33;color:white;height:66px;padding-top:32px}.cw-shell .cw-chord-tone{background:#cae8d5;color:#153c25}.cw-shell .cw-raga-tone{background:#ece0f5;color:#633c7c}.cw-shell .cw-key.is-black.cw-chord-tone{background:#38805c}.cw-shell .cw-key.is-black.cw-raga-tone{background:#705081}.cw-shell .is-sounding{outline:3px solid #e74447;outline-offset:-3px}.cw-shell details{margin:12px 0}.cw-shell summary{cursor:pointer;font-size:16px}.cw-fretboard{overflow-x:auto;padding:12px 0}.cw-string{display:flex;min-width:700px;gap:2px;align-items:center;border-bottom:1px solid #777}.cw-string>span{width:20px}.cw-string button{flex:1;height:34px;min-height:34px;font-size:12px;padding:3px}.cw-note-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.cw-note-list .active{border:2px solid #176745;background:#e1f1e8}.cw-shell #cwNoteDuration{width:75px}.cw-player{position:sticky;bottom:0;background:#f8fbf9;border:1px solid #b6c9be;padding:12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;box-shadow:0 -4px 16px #173a2112;z-index:12;border-radius:10px}.cw-player #cwPlay{background:var(--saffron);color:var(--indigo)}.cw-player #cwMixerMount{width:100%}.cw-player #cwMixerMount:empty{display:none}.cw-shell [hidden]{display:none!important}
@media(max-width:760px){.cw-workbench{grid-template-columns:minmax(0,1fr);gap:0}.cw-shell{padding:8px}.cw-panel{padding:12px}.cw-actions{gap:6px}.cw-header{gap:10px}.cw-source-row{align-items:end}.cw-source-row label{display:block}.cw-source-row input{margin-top:5px}.cw-candidates{grid-template-columns:minmax(0,1fr);max-height:340px}.cw-event-edit label{flex-wrap:wrap}.cw-player{padding:8px}.cw-player button{font-size:13px}.cw-shell #cwSearch{max-width:100%;width:170px}.cw-shell .chord-raga-metadata{max-width:100%;overflow-wrap:anywhere}.cw-shell .cw-rhythm select{max-width:210px}.cw-shell .cw-rhythm label{max-width:100%}}

.cw-overview{display:grid;grid-template-columns:95px minmax(0,1fr);margin:15px 0}.cw-overview-labels{display:flex;flex-direction:column}.cw-overview-labels span{height:40px;display:flex;align-items:center;font-size:12px}.cw-shell #cwSplitAt{width:70px}
/* Chords-local layout; notation and instrument geometry are shared with Raga. */
.cw-shell{--cw-accent:#167d79;color:var(--ink,#25243d)}
.cw-event-edit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:12px;padding-top:12px;border-top:1px solid #e2e4ec}
.cw-event-edit>label,.cw-voicing-field{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}.cw-event-edit input,.cw-event-edit #cwChord{width:100%;min-width:0}.cw-stepper{display:grid;grid-template-columns:42px minmax(60px,1fr) 42px;align-items:center;text-align:center;gap:4px}.cw-stepper output{font-size:14px}.cw-voicing-field>span{font-size:14px}
.cw-candidates{display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;max-height:none;scroll-snap-type:x proximity;overscroll-behavior-x:contain;align-items:stretch;padding-bottom:12px}.cw-candidate{flex:0 0 260px;scroll-snap-align:start}
.cw-instrument-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding:10px 0}.cw-instrument-scroll .guitar-fretboard{min-width:0}
.cw-shell .piano-key.cw-piano-chord:after{content:'';position:absolute;width:12px;height:12px;border-radius:50%;background:#16847f;bottom:29px;left:calc(50% - 6px);border:1px solid #075d59}.cw-shell .guitar-note-marker.cw-chord-marker{background:#d9efed;color:#075d59;border-color:#16847f}.cw-track-title{font:700 15px system-ui;fill:#33334b}.cw-score-scroll{touch-action:pan-x pan-y}.cw-shell .composition-staff{max-width:none;flex-shrink:0}.cw-shell .composition-staff-wrap{margin-top:14px}
@media(max-width:760px){.cw-event-edit{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cw-candidate{flex-basis:min(260px,85vw)}.cw-workbench{display:block}.cw-event-edit>button{min-width:0;font-size:12px;padding:8px 4px}}
.cw-shell #cwRhythmMount label{display:grid;align-content:start}.cw-shell #cwRhythmMount .tempo-control{display:flex;min-width:0;align-items:center}.cw-shell #cwRhythmMount .tempo-control input[type=range]{flex:1;min-width:60px}.cw-shell #cwRhythmMount .tempo-control input[type=number]{width:78px}.cw-shell #cwRhythmMount select{max-width:100%;min-width:0}.cw-shell #cwRhythmMount .rhythm-panel-content{min-width:0}.cw-shell #cwRhythmMount .rhythm-setting-tabs{flex-wrap:wrap}.cw-shell #cwRhythmMount [aria-pressed=true]{background:#d9efed;border-color:#167d79}

/* Preserve the viewport while Chords-local controls update. */
#chordsMain{overflow-anchor:none}.cw-stepper{grid-template-columns:36px minmax(0,1fr) 36px}.cw-event-edit [aria-label="Переместить аккорд"]{grid-column:span 2}

/* The same Raga controls retain their original visual rules in Chords. */
.cw-player.transport{max-width:none;justify-content:flex-start}.cw-shell #cwRhythmMount .rhythm-setting-tabs button{border:0;background:transparent;min-height:34px;padding:3px;color:var(--muted)}.cw-shell #cwRhythmMount .rhythm-setting-tabs button.active{background:#fff;color:var(--indigo);box-shadow:0 2px 7px #17174324}
.cw-shell .raga-editor-switch button{background:transparent;border:0}.cw-shell .raga-editor-switch button.active{background:#b45b12;color:#fff}.cw-shell .guitar-display-controls{flex-wrap:wrap}.cw-shell .piano-monitor{max-width:100%}.cw-shell .guitar-fretboard-options{padding:12px 0;justify-content:flex-start}
.composition-content--chords .composition-meta,.composition-content--chords .composition-audio-card,.composition-content--chords #compositionSectionTabs,.composition-content--chords .composition-projectbar,.composition-content--chords .composition-editor-head{display:none!important}.composition-content--chords .composition-workspace,.composition-content--chords .composition-main{display:block;width:100%;border:0;box-shadow:none}.composition-content--chords .composition-toolbox{margin-top:10px;border-top:1px solid var(--line)}.composition-content--chords .composition-transport>button{display:none}.cw-shell .composition-content--chords{padding:0}.cw-shell .composition-content--chords .composition-panel{border:0;box-shadow:none}

/* Native Raga panel shells, scoped to Chords; no Raga rules are changed. */
.cw-shell .cw-native-panel{padding:0;margin:16px 0;min-width:0}
.cw-shell .cw-native-panel>summary,.cw-shell #cwRhythmMount .rhythm-panel>summary{box-sizing:border-box;width:calc(100% - 12px);min-height:48px;margin:6px;padding:8px 12px;border:1px solid #d8d8e2;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.cw-shell .cw-native-panel>summary::after,.cw-shell #cwRhythmMount .rhythm-panel>summary::after{content:'⌄';display:block;color:var(--teal);margin-left:auto}
.cw-shell .cw-native-panel[open]>summary::after,.cw-shell #cwRhythmMount .rhythm-panel[open]>summary::after{transform:rotate(180deg)}
.cw-shell .cw-panel-content{padding:0 14px 14px;min-width:0}
.cw-shell .cw-workbench-stacked{display:block}.cw-shell .cw-workbench-stacked .cw-candidate-panel{margin-bottom:0}
.cw-shell #cwViewerPanel>.cw-panel-content{padding:0}
.cw-shell #cwDisplayElementsPanel>.display-elements-content{padding:12px clamp(10px,2vw,24px)}
.cw-shell #cwDisplayLayers{padding:0}
.cw-shell #cwViewerPanel .cw-view-control{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:42px;margin:0;padding:8px;border-radius:9px;font-weight:800;font-size:clamp(.72rem,2.3vw,.95rem);color:#686879;cursor:pointer}
.cw-shell #cwViewerPanel .cw-view-control.active{background:var(--indigo);color:#fff;box-shadow:0 3px 9px #17174333}
.cw-shell #cwViewerPanel .cw-view-control input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cw-shell #cwViewerPanel .cw-view-control:focus-within{outline:3px solid #4c9cda;outline-offset:-3px}
.cw-shell #cwDisplays{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:#f3f3f7;padding:6px;border-bottom:1px solid var(--line)}
.cw-shell #cwMaterialTabs .sequence-tabs{margin:0;border-radius:0}
.cw-shell #cwMaterialTabs .sequence-tab{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:10px 15px;color:var(--muted)}
.cw-shell #cwMaterialTabs .sequence-tab.active{border-bottom-color:var(--saffron);color:var(--indigo)}
/* The legacy Chords viewer supplies a global four-column !important rule. */
.cw-shell #cwViewerPanel .raga-editor-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.cw-shell #cwScoreParts{padding:10px 14px;border-bottom:1px solid var(--line)}
.cw-shell #cwGeneralScore>.raga-viewer-head{display:flex;justify-content:flex-end}
.cw-shell #cwGeneralScore>.raga-viewer-head>.transport{margin:0 10px 0 auto;width:auto}
.cw-shell .composition-content--chords .composition-view-tabs{display:none}
.cw-shell #cwInstruments{padding:0 12px}
.cw-shell #cwScaleContent .cw-scale{border:0;padding-top:0}
.cw-shell #cwRhythmMount label{gap:0}
.cw-shell .raga-info-current h2{font-size:clamp(1.35rem,2.2vw,2rem)}
/* Panel controls use the existing Raga visual language; all selectors are Chords-local. */
.cw-shell #cwTransportDock{margin:0 0 16px;padding:7px;top:0;bottom:auto}
#cwTransportDock>.transport{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;margin:0}
#cwTransportDock .icon-button{height:44px;min-height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin:0;padding:3px 6px}
#cwTransportDock #cwPlay{background:var(--saffron);color:var(--indigo)}
#cwTransportDock #cwPlaybackStatus,#cwTransportDock #cwMixerMount{grid-column:1/-1}
#cwTransportDock #cwPlaybackStatus:empty,#cwTransportDock #cwMixerMount:empty{display:none}
#cwTransportDock #cwMixerMount:not(:empty){position:absolute;top:100%;left:0;right:0;max-height:65dvh;overflow:auto;background:white;border:1px solid var(--line);border-radius:12px}
.cw-shell #cwTanpuraPanel label{min-width:0}
.cw-shell #cwTanpuraPanel .tanpura-timing-controls>label{display:grid;gap:4px;font-size:.73rem}
.cw-shell #cwTanpuraPanel .drone-controls label{display:grid;grid-template-columns:auto auto;gap:3px 12px;min-width:190px;font-size:.78rem}
.cw-shell #cwTanpuraPanel .cw-tanpura-settings{display:grid;grid-template-columns:max-content minmax(90px,160px) minmax(130px,220px);justify-content:start;align-items:end;gap:12px;margin-bottom:12px}
.cw-shell #cwTanpuraPanel .cw-tanpura-settings>label{display:grid;gap:4px}
.cw-shell #cwTanpuraPanel .cw-tanpura-settings>.cw-tanpura-enabled{display:flex;align-items:center;align-self:center;gap:7px}
.cw-shell #cwTanpuraPanel .cw-tanpura-settings .app-select-picker{margin:0}
.cw-shell #cwTanpuraPanel h3{font-size:1.25rem;margin:2px 0}
.cw-shell #cwTanpuraPanel .drone-degree input{width:16px;height:16px;min-height:16px;accent-color:var(--saffron)}
.cw-shell #cwTanpuraPanel .tanpura-humanize input{width:17px;height:17px;min-height:17px;accent-color:var(--saffron)}
.cw-shell #cwTanpuraPanel input[type=range]{width:100%;padding:0;min-height:24px;border:0}
.cw-shell #cwTanpuraPanel .drone-degree,.cw-shell #cwTanpuraPanel .tanpura-humanize{display:flex}
.cw-shell #cwTanpuraPanel .tanpura-timing-controls>label.tanpura-humanize{display:flex;align-items:center;gap:7px}
.cw-shell #cwTanpuraPanel .tanpura-expanded{padding:12px 0}
.cw-shell #cwScaleContent .unique-controls{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,3fr);gap:12px}
.cw-shell #cwScaleContent .unique-controls label{display:grid;min-width:0;gap:6px}
.cw-shell #cwScaleContent select{min-width:0;width:100%}
.cw-shell #cwScaleContent .unique-family-heading{margin-top:12px}
.cw-shell .piano-layer-tabs button{border:0;min-height:36px;padding:5px 12px;border-radius:8px;background:transparent;color:var(--muted);font-size:.8rem;font-weight:800}
.cw-shell .piano-layer-tabs button.active{background:var(--teal);color:white}
.cw-shell .piano-key.cw-piano-tanpura{box-shadow:inset 0 -5px #f2c453}
.cw-shell .piano-key.cw-piano-layer-chord{box-shadow:inset 0 -5px var(--teal)}
@media(min-width:900px){#cwTransportDock>.transport{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:720px){.cw-shell #cwScaleContent .unique-controls{grid-template-columns:minmax(0,1fr)}.cw-shell .piano-layer-tabs button{padding-inline:5px}}
@media(max-width:620px){.cw-shell #cwTanpuraPanel .cw-tanpura-settings{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cw-shell #cwTanpuraPanel .cw-tanpura-enabled{grid-column:1/-1}.cw-shell #cwTanpuraPanel .drone-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cw-shell #cwTanpuraPanel .drone-controls label{min-width:0}}

/* Build 182: compact native controls, without changing the Raga surface. */
#chordsMain{padding-inline:clamp(14px,3vw,42px)}
.cw-shell{padding:0;width:100%;max-width:none;gap:14px}
.cw-shell .cw-header{display:block;margin:0}
.cw-shell .cw-header h1{margin-bottom:10px}
.cw-file-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-width:620px}
.cw-file-actions button{min-width:0;padding:9px 6px;font-size:14px}
.cw-shell .cw-panel,.cw-shell .cw-native-panel,.cw-shell details{margin-block:0}
.cw-shell .cw-panel{padding:12px}
.cw-shell .cw-native-panel{padding:0}
.cw-shell .cw-event-edit{grid-template-columns:minmax(100px,180px) minmax(60px,80px) minmax(160px,220px) minmax(100px,140px);gap:8px;align-items:end}
.cw-event-edit label,.cw-voicing-field{margin:0;gap:4px}
.cw-event-edit .app-select-picker{margin:0;width:100%}
.cw-event-edit .app-select-picker>summary{min-height:44px;margin:0}
.cw-event-edit .cw-voicing-field>label{flex-direction:row;flex-wrap:nowrap;align-items:center;font-size:14px}
.cw-event-edit [aria-label="Гитарная аппликатура"]{grid-column:span 2}
.cw-event-edit [aria-label="Переместить аккорд"]{grid-column:1/-1}
.cw-event-edit [aria-label="Переместить аккорд"] .cw-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:520px;gap:6px}
.cw-event-edit [aria-label="Переместить аккорд"] button{font-size:14px;padding:8px 4px;min-width:0}
.cw-shell .cw-assignment{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}
.cw-shell .cw-assignment h2,.cw-shell .cw-assignment>strong{font-size:16px;line-height:1.4;margin:0}
.cw-assignment>.app-select-picker{grid-column:1/-1;margin:0}
.cw-assignment>button{justify-self:end}
.cw-shell #cwRhythmMount label{gap:6px}
.cw-shell #cwRhythmMount .app-select-picker{margin:0}
.cw-shell #cwRhythmMount .tabla-drum-tuning .app-select-picker>summary{min-height:42px;margin:0}
.cw-shell #cwRhythmMount .tabla-mute{padding:0;font-size:.72rem}
.cw-shell #cwRhythmMount .tabla-octave-control button{padding:0}
.cw-shell #cwRhythmMount .rhythm-setting-tabs{flex-wrap:nowrap}
.cw-shell #cwRhythmMount .rhythm-setting-tabs button{min-width:0;min-height:34px;border:0;border-radius:8px;padding:1px 6px;font-size:.8rem;overflow-wrap:normal;word-break:normal;line-height:1.3}
#cwTransportDock>.transport{grid-template-columns:repeat(6,minmax(0,1fr))}
#cwTransportDock .cw-play-scope{grid-column:1/-1;grid-row:2;display:flex;gap:8px;align-items:center;margin:0;font-size:14px}
#cwTransportDock .cw-play-scope .app-select-picker{margin:0;max-width:270px;flex:1}
#cwTransportDock .cw-play-scope summary{min-height:34px;font-size:14px;padding-block:4px}
#cwTransportDock #cwMixer{font-size:clamp(10px,2.7vw,16px);padding-inline:2px}
.cw-shell .cw-candidate-panel>header h2{margin:0}
.cw-shell .cw-candidate-panel>header{margin-bottom:8px}
.cw-shell .cw-candidate-panel>header .app-select-picker{margin:0;min-width:88px}
.cw-shell .cw-candidate-filters{margin:8px 0}
.cw-shell .cw-candidate-filters summary{display:inline-flex;width:auto;min-height:38px;padding:6px 14px;border:1px solid var(--line);border-radius:9px}
.cw-shell .cw-candidate-filters .unique-raga-filter-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.cw-shell .cw-candidate-filters label{display:grid;gap:4px;min-width:0;font-size:14px}
.cw-shell .cw-candidate-filters .app-select-picker{margin:0;min-width:0}
.cw-shell .cw-candidate-filters input{width:100%;min-width:0}
.cw-shell #cwSearch{width:100%;max-width:100%;margin:8px 0}
.cw-shell #cwSequences{margin:8px 0 12px;padding:0 0 10px;gap:9px}
.cw-shell #cwSequences>.unique-family-row{flex:0 0 min(300px,82vw);text-align:left}
.cw-shell #cwCandidates{margin:8px 0 0;padding:0 0 12px}
.cw-shell #cwCandidates>.cw-candidate{flex:0 0 min(300px,82vw)}
.cw-shell #cwInstruments{padding:0}
/* Generic Chords buttons must not round or pad piano keys. */
.cw-shell .piano-key{padding:0;border-radius:0;min-height:0}
.cw-shell .piano-key.white{border:1px solid #a9a9b6;border-left:0}
.cw-shell .piano-key.white:first-child{border-left:1px solid #a9a9b6}
.cw-shell .piano-key.black{border:1px solid #08081e}
.cw-shell #cwGeneralScore .staff-zoom{display:flex;align-items:center;gap:3px;margin:0 8px 0 auto;padding:0}
.cw-shell #cwGeneralScore .staff-zoom button{width:34px;min-width:34px;padding:0}
.cw-shell #cwGeneralScore .staff-zoom #cwScoreZoomReset{width:54px;font-size:14px}
.cw-shell #cwGeneralScore .staff-zoom output{display:none}
@media(max-width:760px){.cw-shell .cw-event-edit{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.cw-shell .cw-event-edit>button{font-size:14px;padding:8px 4px}}
@media(max-width:620px){#chordsMain{padding-inline:10px}.cw-file-actions{width:100%}.cw-shell #cwRhythmMount .tabla-drum-tuning .app-select-picker>summary{min-height:40px}.cw-shell #cwRhythmMount .tabla-drum-tuning{grid-template-columns:minmax(75px,1fr) 42px auto!important}.cw-shell #cwRhythmMount .tabla-mute{width:42px}.cw-shell #cwRhythmMount .tabla-octave-control{grid-template-columns:28px 28px 28px}.cw-shell #cwRhythmMount .tabla-octave-control button{min-width:28px}.cw-shell .cw-candidate-filters .unique-raga-filter-panel{grid-template-columns:minmax(0,1fr)}.cw-shell .cw-panel-content{padding-inline:9px}.cw-shell #cwRhythmMount .raga-rhythm-settings{padding-inline:8px}}

/* Chords-local layer selection reuses Raga instrument controls and note colours. */
.cw-shell #cwiguitarLayerTabs{flex-wrap:nowrap}
.cw-shell .piano-key.is-motif-note:not(.sounding){box-shadow:inset 0 -5px #f2a52b}
.cw-shell .guitar-fretboard-head{flex-wrap:wrap}

/* Match the native Raga transport edge, without narrowing the cards. */
#chordsMain{--cw-page-inset:clamp(14px,3vw,42px);padding-top:0;padding-inline:var(--cw-page-inset)}
.cw-shell #cwTransportDock{margin-inline:calc(-1 * var(--cw-page-inset));width:calc(100% + 2 * var(--cw-page-inset));max-width:none;box-sizing:border-box;padding-inline:0;border-inline:0;border-radius:0}
#cwScoreParts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px}
#cwScoreParts label{display:flex;align-items:center;gap:7px;white-space:nowrap;margin:0;min-width:0}
#cwScoreParts input{flex:none}
@media(max-width:620px){#cwScoreParts{grid-template-columns:repeat(2,minmax(0,1fr))}#chordsMain{--cw-page-inset:10px}}

/* Same filled/open duration convention as the Raga preview. Chords-local:
   a layer tint must not make a quarter/eighth look like an open half note. */
#cwNotation .composition-staff .event .head:not(.open){fill:var(--indigo,#19173f)!important}
#cwNotation .composition-staff .event.display-vadi .head:not(.open),
#cwNotation .composition-staff .event.role-vadi .head:not(.open){fill:#d83232!important}
#cwNotation .composition-staff .event.display-samvadi .head:not(.open),
#cwNotation .composition-staff .event.role-samvadi .head:not(.open){fill:#299a58!important}
#cwNotation .composition-staff .event .head.open{fill:#fff!important}

/* Score zoom must not be undone by the shared full-container SVG minimum. */
#cwNotation .composition-staff{min-width:0;min-height:0}
