.harmony-page{--muted:#496480;background:#f6f9fc;font-size:15px}.harmony-page [hidden]{display:none!important}.harmony-page button,.harmony-page select,.harmony-page input{font:inherit}.harmony-page button:focus-visible,.harmony-page a:focus-visible,.harmony-page input:focus-visible,.harmony-page select:focus-visible,.harmony-page summary:focus-visible{outline:3px solid #bd521e;outline-offset:3px}.harmony-page button:disabled{opacity:.5;cursor:not-allowed}.harmony-page .site-header{position:static}.harmony-page .site-header nav{gap:24px}.harmony-page nav [aria-current]{color:var(--blue);text-decoration:underline;text-underline-offset:8px}.harmony-shell{max-width:1320px;padding:0 36px;margin:auto}.harmony-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:36px 0 28px}.harmony-heading h1{font-size:36px;line-height:1.2;margin:0 0 12px;letter-spacing:-.025em}.harmony-heading p{color:var(--muted);margin:0;font-size:16px}.harmony-heading>span{font-size:13px;color:var(--muted);white-space:nowrap}.harmony-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:32px;align-items:start}.library-rail{min-width:0}.library-rail label{display:grid;gap:7px;margin-bottom:14px;font-weight:600;font-size:14px}.harmony-page select,.harmony-page input[type=search],.harmony-page input[type=text],.harmony-page input[type=number]{color:var(--ink);background:#fff;border:1px solid #b4c8df;border-radius:7px;padding:9px 10px;min-height:43px;min-width:0;width:100%}.filter-pills{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}.filter-pills button{padding:7px 10px;border:1px solid transparent;background:#e9f1fc;color:var(--deep);border-radius:6px;font-size:13px;min-height:36px}.filter-pills [aria-pressed=true]{background:var(--deep);color:#fff}.library-results{max-height:610px;overflow-y:auto;padding:2px 4px 4px 0;scrollbar-width:thin}.library-item{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);padding:13px 12px;background:transparent;color:var(--ink);border-radius:0}.library-item strong{display:block;font-size:15px}.library-item span{display:block;font-size:13px;color:var(--muted);margin-top:4px}.library-item[aria-current=true]{background:#e6effe}.library-item[aria-current=true] strong{color:#174faf}.library-item:hover{background:#edf3fa}.result-count,.empty-copy{font-size:13px;color:var(--muted);margin:12px 0}.saved-area{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}.saved-area summary{cursor:pointer;font-weight:650}.saved-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}.saved-row button{border:0;background:none;color:var(--deep);text-align:left;font-size:13px;min-height:35px}.saved-row button:first-child{flex:1}.harmony-workbench{min-width:0;background:#fff;border-radius:14px;padding:26px 28px 30px;box-shadow:0 6px 26px rgba(35,70,115,.055)}.work-title{display:flex;justify-content:space-between;align-items:start;gap:18px;margin-bottom:20px}.work-title h2{font-size:26px;line-height:1.3;margin:0 0 8px;letter-spacing:-.02em}.work-title p{margin:0;color:var(--muted);font-size:14px}.work-title .chord-large{font-size:46px;line-height:1.1}.secondary-button,.text-button{border:1px solid #b4c8df;background:#fff;color:var(--deep);padding:9px 12px;border-radius:7px;min-height:42px;white-space:nowrap;font-weight:600}.text-button{border:0;background:#edf3fa}.harmony-page .primary{font-size:15px;min-height:44px;padding:11px 20px}.transport-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid var(--line)}.transport-row .volume-control{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:13px;color:var(--muted)}.volume-control input{width:78px;accent-color:var(--blue)}.settings-row{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}.settings-row label:nth-child(1){width:76px}.settings-row label:nth-child(2){width:96px}.settings-row label:nth-child(3){width:142px}.settings-row label:nth-child(4){width:156px}.settings-row select,.settings-row input[type=number]{min-height:40px;padding:7px 9px;font-size:14px}.settings-row .solo-controls{margin:0;gap:6px}.solo-controls .text-button{min-height:40px;padding:7px 10px;font-size:13px}.settings-row label{display:grid;gap:6px;font-size:13px;color:var(--muted)}.toggle-check{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted)}.toggle-check input{width:17px;height:17px;accent-color:var(--blue)}.note-tokens{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}.note-tokens span{padding:5px 11px;background:var(--ice);color:var(--deep);border-radius:5px;font-weight:600}.note-tokens .bass-note{background:#ffeadb;color:#813b12}.piano-scroll{overflow-x:auto;max-width:100%;padding-bottom:10px}.piano{position:relative;display:flex;height:138px;min-width:560px;border-bottom:2px solid #a2b9d4}.piano button{border-radius:0;cursor:pointer}.piano .white{position:relative;flex:1;background:#fbfdff;border:1px solid #bdcde0;border-top:0;color:#496480;display:flex;align-items:end;justify-content:center;padding:0 0 10px;font-size:11px}.piano .black{position:absolute;top:0;height:61%;background:#173957;border:1px solid #173957;color:#fff;font-size:10px;display:flex;align-items:end;justify-content:center;padding-bottom:6px;z-index:1}.piano .white.active,.piano .black.active{background:#1d58bd;color:#fff}.piano .white.bass,.piano .black.bass{background:#a9491d;color:#fff}.piano-caption{font-size:13px;color:var(--muted);margin:8px 0 20px}.listen-note{background:#edf4fc;padding:17px 20px;border-radius:8px;margin:20px 0}.listen-note h3{font-size:14px;margin:0 0 7px}.listen-note p{font-size:15px;margin:0;line-height:1.8;max-width:68ch}.details-block{padding:14px 0;border-bottom:1px solid var(--line)}.details-block summary{cursor:pointer;font-weight:650;min-height:35px}.details-block p{line-height:1.8;color:var(--muted);margin:10px 0;font-size:14px}.action-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.action-row a{display:inline-flex;align-items:center;font-size:14px}.chord-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:23px 0 14px}.chord-cell{min-width:0;position:relative;background:#f2f6fc;border:1px solid transparent;border-radius:8px;padding:13px 10px 11px;text-align:left;min-height:104px;color:var(--ink)}.chord-cell>span{display:block;font-size:12px;color:var(--muted)}.chord-cell strong{display:block;font-size:24px;font-weight:650;margin:7px 0 5px;overflow-wrap:anywhere}.chord-cell small{font-size:12px;color:var(--muted)}.chord-cell[aria-pressed=true],.chord-cell.is-selected{border-color:#1857c8;background:#e8f0ff}.chord-cell.playing:after{content:'';position:absolute;bottom:0;left:8px;right:8px;height:3px;background:#bd521e;border-radius:2px}.chord-cell .lock-label{float:right;color:#8e421c}.voice-table{width:100%;border-collapse:collapse;font-size:13px}.voice-table th,.voice-table td{text-align:left;padding:8px;border-bottom:1px solid var(--line)}.voice-table th{font-weight:600;color:var(--muted)}.voice-table td{color:var(--deep)}.suggestion-tools select{min-height:40px;padding:7px 9px;font-size:14px}.suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.suggestion{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:3px;min-width:0;min-height:68px;background:#f2f6fc;border:1px solid #d5e1ef;border-radius:6px;padding:9px 10px;text-align:left;color:var(--ink)}.suggestion strong{font-size:17px;line-height:1.3;display:block;overflow-wrap:anywhere}.suggestion span{display:block;font-size:12px;line-height:1.4;color:#1857a8;margin:0}.suggestion .suggestion-reason{font-size:12px;line-height:1.5;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}.suggestion small{display:block;color:var(--muted);font-size:12px;line-height:1.4}.suggestion:hover strong{text-decoration:underline;text-underline-offset:4px}.draft-note{font-size:13px;color:var(--muted);margin:14px 0 0}.global-status{font-size:14px;color:var(--deep);padding:16px 0;min-height:50px;margin:0;overflow-wrap:anywhere}.share-result{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.share-result input{flex:1;min-width:180px;font-size:13px!important}.share-result p{width:100%;font-size:13px;margin:0;color:var(--muted)}.harmony-footer{display:flex;flex-wrap:wrap;gap:16px 26px;max-width:1320px;padding:26px 36px 40px;margin:auto;color:var(--muted);font-size:13px;border-top:1px solid var(--line)}.harmony-footer a{text-decoration:underline;text-underline-offset:4px}.harmony-entry{padding:30px 0 38px;border-top:1px solid var(--line)}.harmony-entry h2{font-size:28px;margin:0 0 10px}.harmony-entry>p{color:var(--muted)}.harmony-entry-links{display:flex;gap:32px;flex-wrap:wrap;margin-top:20px}.harmony-entry-links a{font-size:18px;color:var(--deep);font-weight:650;text-decoration:underline;text-underline-offset:6px}.harmony-entry-links span{font-size:13px;color:var(--muted);font-weight:400;margin-left:10px}
@media(max-width:1050px){.harmony-shell{padding:0 24px}.harmony-layout{grid-template-columns:210px minmax(0,1fr);gap:22px}.harmony-workbench{padding:22px}.harmony-page .site-header nav{gap:14px;font-size:13px}.work-title h2{font-size:23px}.chord-cell strong{font-size:21px}}
@media(max-width:760px){.harmony-page .site-header{padding:18px 20px;display:block}.harmony-page .site-header nav{margin-top:18px;display:flex;flex-wrap:wrap;gap:13px 21px}.harmony-page .brand{font-size:19px}.harmony-heading{padding:26px 0 22px;display:block}.harmony-heading h1{font-size:29px}.harmony-heading p{font-size:15px}.harmony-heading>span{display:block;margin-top:12px;font-size:12px}.harmony-shell{padding:0 16px}.harmony-layout{display:flex;flex-direction:column;gap:23px}.library-rail{width:100%}.library-results{max-height:210px;display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.library-item{padding:12px 10px}.library-item strong{font-size:14px}.library-item span{font-size:12px}.filter-pills{margin:10px 0}.saved-area{margin-top:12px;padding-top:12px}.harmony-workbench{width:100%;padding:22px 16px}.work-title .chord-large{font-size:40px}.work-title h2{font-size:24px}.work-title p{font-size:13px}.work-title .secondary-button{font-size:13px}.settings-row{gap:8px}.settings-row label:nth-child(1){width:64px}.settings-row label:nth-child(2){width:82px}.settings-row label:nth-child(3){width:auto;flex:1 0 110px}.settings-row label:nth-child(4){width:auto;flex:1 0 130px}.settings-row select,.settings-row input[type=number],.solo-controls .text-button{min-height:44px}.transport-row{gap:8px}.transport-row .volume-control{margin-left:0;width:100%;margin-top:5px}.volume-control input{flex:1;max-width:160px}.chord-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.chord-cell strong{font-size:25px}.chord-cell{min-height:99px}.listen-note{padding:15px}.listen-note p{font-size:14px}.suggestion-tools select{min-height:44px}.suggestions{grid-template-columns:repeat(2,minmax(0,1fr))}.secondary-button,.text-button{font-size:13px;padding:9px 11px}.action-row{gap:8px}.voice-table{font-size:12px}.voice-table th,.voice-table td{padding:7px 4px}.harmony-footer{padding:25px 16px}.harmony-entry-links{display:grid;gap:20px}.harmony-entry-links a{font-size:17px}.piano{height:122px}.piano-caption{font-size:12px}}

.library-browser>summary{display:none}.library-browser>summary span{font-size:12px;font-weight:400;color:var(--muted);margin-left:auto}
@media(max-width:760px){.library-browser>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #b4c8df;background:#fff;border-radius:7px;cursor:pointer;font-weight:600}.library-browser>summary:after{content:"＋";font-size:17px;color:var(--deep)}.library-browser[open]>summary:after{content:"−"}.library-browser[open]>summary{margin-bottom:16px}.harmony-layout{gap:18px}.saved-area{margin-top:8px;padding-top:8px}}

.transport-status{flex-basis:100%;margin:2px 0 0;font-size:13px;line-height:1.6;color:var(--deep);overflow-wrap:anywhere}.listen-note .lesson-context{margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #c5d7eb;font-weight:600}

.variant-picker{margin:18px 0 22px}.variant-picker>span{font-size:14px;font-weight:650}.variant-picker .action-row{margin-top:10px}.variant-picker [aria-pressed=true]{background:#e8f0ff;border-color:#1857c8}.variant-picker p{font-size:13px;line-height:1.65;color:var(--muted);margin:9px 0 14px}.pedal-control{margin:10px 0 14px}.notation-section{margin:18px 0}.notation-panel{border-top:1px solid var(--line);padding:6px 0}.notation-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;list-style:none}.notation-panel>summary::-webkit-details-marker{display:none}.notation-panel h3{font-size:18px;margin:0}.notation-toggle{font-size:13px;color:var(--deep)}.notation-panel[open]{padding-bottom:16px}.notation-scroll{width:100%;overflow-x:auto;border:1px solid #d5e1ef;border-radius:8px;background:#fff;overscroll-behavior-x:contain}.notation-scroll:focus-visible{outline:3px solid #bd521e;outline-offset:3px}.notation-scroll svg{display:block;max-width:none;flex:none}.roll-chord{font-size:12px;fill:#193e68;font-weight:600}.roll-event.sounding .key-duration{stroke:#102e50;stroke-width:1.5}.roll-event:hover .key-duration{stroke:#102e50;stroke-width:1.5}
@media(max-width:760px){.variant-picker .secondary-button{white-space:normal;text-align:left}.pedal-control{align-items:flex-start}.pedal-control input{flex-shrink:0}}

.roll-content{position:relative}.roll-content .piano-roll{position:absolute;inset:0 auto auto 0;min-width:0}.roll-keyboard{position:sticky;left:0;z-index:2;pointer-events:none}

.suggestion-tools{margin-top:10px}.suggestion-tools label{display:grid;gap:6px;width:232px;max-width:100%;font-size:13px;color:var(--muted)}.suggestion-tools p{margin:8px 0;font-size:12px}.suggestion:disabled{opacity:.65}

@media(min-width:761px) and (max-width:1050px){.suggestions{grid-template-columns:repeat(2,minmax(0,1fr))}}

.inversion-controls{border:0;padding:0;margin:20px 0}.inversion-controls legend{font-size:14px;margin-bottom:10px;color:var(--muted)}.inversion-controls button{min-height:44px}.inversion-controls button[aria-pressed="true"]{background:var(--blue);color:#fff;border-color:var(--blue)}

/* Keep listening, notes and the instrument together before advanced controls. */
.harmony-page .harmony-heading{padding:28px 0 20px}
.harmony-page .harmony-workbench{padding-top:22px}
.harmony-page .transport-row{padding-bottom:12px;gap:8px 10px}
.harmony-page .listen-note{margin:14px 0;padding:12px 16px;border-left:2px solid #9abde8;border-radius:0;background:#f3f7fc}
.harmony-page .listen-note h3{font-size:13px;margin:0 0 4px}
.harmony-page .listen-note p{font-size:14px;line-height:1.65;margin:0}
.harmony-page .note-tokens{margin:12px 0}
.harmony-page .piano-caption{font-size:12px;line-height:1.6;margin:6px 0 18px}
.harmony-page .inversion-controls{margin:14px 0}
.harmony-page .inversion-controls .action-row{margin:0}
.harmony-page .piano button:active{filter:brightness(.9)}
.harmony-page .piano button.sounding{box-shadow:inset 0 -5px #ffffffb3;filter:brightness(1.18)}
@media(max-width:700px){
 .harmony-page .harmony-heading{padding:18px 0 14px}
 .harmony-page .harmony-heading h1{font-size:30px;margin-bottom:8px}
 .harmony-page .harmony-heading>span{margin-top:6px;font-size:11px}
 .harmony-page .harmony-heading p{font-size:14px}
 .harmony-page .work-title{margin-bottom:16px}
 .harmony-page .transport-row .volume-control{width:auto;flex:1 1 140px;margin:0;min-height:40px}
 .harmony-page .transport-row .toggle-check{min-height:40px}
 .harmony-page .transport-row .transport-status{margin:0}
 .harmony-page .listen-note{padding:10px 12px;margin:12px 0}
}

/* Dictionary controls and musical detail. */
.dictionary-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:14px 0}
.dictionary-controls label,.recognition-tools>label{display:grid;gap:6px;font-size:14px;color:var(--muted);flex:1 1 150px;min-width:0}
.dictionary-controls label{max-width:190px}
.dictionary-controls button,.more-suggestions{min-height:44px}
.dictionary-controls select{min-height:44px}
.harmony-page .work-title .chord-large{overflow-wrap:anywhere}.work-title>div{min-width:0}
.segment-summary{display:flex;flex-wrap:wrap;gap:8px 20px;border-bottom:1px solid var(--line);padding:10px 0;font-size:14px;color:var(--deep)}
.library-item small{display:block;font-size:12px;margin-top:5px;color:var(--muted)}
.recognition-results{margin:12px 0}.recognition-results .library-item{min-height:48px}
.harmony-page .suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.harmony-page .suggestion{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 0;gap:5px}
.harmony-page .suggestion:hover{background:#f6f9fc}.harmony-page .suggestion strong{font-size:18px}.harmony-page .suggestion span{font-size:14px;line-height:1.55}
.harmony-page .suggestion .suggestion-change{color:#834019}.harmony-page .suggestion .suggestion-fit{color:#496480}
.more-suggestions{margin-top:12px}.comparison-controls{margin:14px 0}.harmony-page .listen-note{border-left:1px solid #9abde8}
@media(max-width:760px){.harmony-page .suggestions{grid-template-columns:1fr}.dictionary-controls{align-items:stretch}.work-title{flex-wrap:wrap}.segment-summary{display:block}.segment-summary span{display:block;margin:5px 0}.voice-table td,.voice-table th{overflow-wrap:anywhere}.harmony-page .settings-row label:first-child{width:85px}.library-item small{font-size:12px}}

/* Shared control rhythm and on-demand chord editing. */
.harmony-page .settings-row select,.harmony-page .settings-row input[type=number]{box-sizing:border-box;height:44px;min-height:44px;line-height:normal;padding:8px 10px}
.harmony-page .settings-row .solo-controls button{min-height:44px}

.replacement-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:80dvh;margin:auto;padding:24px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:12px;overflow:auto;overscroll-behavior:contain}
.replacement-dialog::backdrop{background:rgba(16,40,74,.32)}
.replacement-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.replacement-heading h2{font-size:20px;line-height:1.45;margin:0}
.replacement-heading button{flex-shrink:0;min-height:44px}
.replacement-dialog .suggestion-tools p{font-size:14px;line-height:1.6}
.replacement-dialog .suggestions{grid-template-columns:1fr}
.replacement-dialog .suggestion{padding:14px 8px}
@media(max-width:760px){.replacement-dialog{padding:18px 16px}.replacement-heading{align-items:start}.replacement-heading h2{font-size:18px}}

/* Keep the chord name and replacement on one row. */
.harmony-page .chord-cell{min-height:0;padding:11px 10px}
.harmony-page .chord-cell strong{font-size:22px;line-height:1.3;margin:0;min-width:0}
.chord-cell small{display:block;margin-top:6px}
.cell-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.harmony-page .cell-replace{flex-shrink:0;min-height:30px;padding:4px 7px;border:1px solid #b4c8df;border-radius:5px;background:#fff;color:var(--deep);font-size:12px;line-height:1.4}
.cell-replace:hover{background:#e8f0ff;border-color:#1857c8}
@media(max-width:760px){.harmony-page .chord-cell strong{font-size:20px}.cell-replace{min-height:32px}.cell-heading{gap:6px}}
@media(max-width:380px){.harmony-page .chord-cell{padding:10px 8px}.harmony-page .chord-cell strong{font-size:16px}.cell-heading{gap:4px}.harmony-page .cell-replace{padding:4px 5px;font-size:11px}}
