:root{font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#242d2a;background:#f5f4ef;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto;font-weight:400;font-size:15px;--ink: #242d2a;--muted: #737d77;--line: #e6e7df;--paper: #fffefa;--green: #245c47;--green-soft: #edf4ee;--coral: #c5654f;--serif: "Manrope", ui-sans-serif, system-ui, sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,select{font:inherit}button{color:inherit}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #d48767;outline-offset:3px}.app-shell{width:min(100% - 3rem,1100px);margin:0 auto;padding:0 0 2.2rem}.site-header{height:74px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e8e1}.brand{display:inline-flex;align-items:center;gap:.55rem;color:var(--ink);text-decoration:none;font-family:var(--serif);font-size:.95rem;font-weight:800;letter-spacing:-.04em}.brand-mark{display:grid;width:28px;height:28px;place-items:center;border-radius:9px;background:#e5eee7;color:var(--green);font-size:1.15rem}.header-actions{display:flex;align-items:center;gap:1rem}.header-note{color:#8a928b;font-size:.76rem}.language-select{min-height:44px;padding:0 2rem 0 .65rem;border:1px solid #dfe3dd;border-radius:9px;background:var(--paper);color:var(--ink);font-size:.76rem;font-weight:650}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}.lesson-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;padding:3.2rem 0 1.8rem}.eyebrow{margin:0 0 .65rem;color:#738078;font-size:.68rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}.lesson-heading .eyebrow span{padding:0 .35rem;color:#bd775e}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--serif)}h1{margin:0 0 .55rem;font-size:clamp(2.1rem,4.7vw,3.2rem);line-height:1.1;letter-spacing:-.065em}.intro{margin:0;color:var(--muted);font-size:.98rem;line-height:1.6}.lesson-progress{display:flex;align-items:center;gap:.65rem;flex:0 0 auto;padding-bottom:.15rem;color:var(--muted);font-size:.73rem;line-height:1.45}.lesson-progress strong{color:var(--ink);font-size:.76rem}.progress-ring{display:grid;width:42px;height:42px;place-items:center;border:1px solid #b7c9b9;border-radius:50%;color:var(--green);font-family:var(--serif);font-size:1rem;font-weight:800}.panel{border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 5px 18px #222d2708}.key-panel{display:grid;grid-template-columns:minmax(205px,1fr) minmax(205px,1fr);gap:1.45rem 2rem;padding:1.5rem 1.7rem 1.4rem}.field-label{display:block;margin:0 0 .62rem;color:#727d76;font-size:.69rem;font-weight:700;letter-spacing:.065em;text-transform:uppercase}.select-wrap{position:relative}.select-wrap select{width:100%;min-height:46px;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0 2.6rem 0 .9rem;border:1px solid #dfe3dd;border-radius:9px;background:#fff;color:var(--ink);font-size:.87rem;font-weight:650;cursor:pointer}.select-wrap>span{position:absolute;top:50%;right:1rem;transform:translateY(-55%);color:#66746b;pointer-events:none}.signature-display{display:flex;flex-wrap:wrap;align-items:baseline;gap:.65rem;margin-bottom:.63rem}.signature-display strong{font-family:var(--serif);font-size:1.1rem;letter-spacing:-.03em}.signature-count{color:#8a928b;font-size:.76rem}.accidental-list{display:flex;flex-wrap:wrap;gap:.34rem;min-height:25px}.accidental-chip,.natural-chip{display:inline-flex;min-width:27px;min-height:25px;align-items:center;justify-content:center;padding:.2rem .42rem;border-radius:6px;background:#f2f2eb;color:#505d54;font-size:.78rem;font-weight:700}.natural-chip{color:#6d776f;font-size:.69rem;font-weight:500}.scale-context{grid-column:1 / -1;padding-top:1rem;border-top:1px solid #edeee8}.scale-notes{display:flex;gap:.4rem}.scale-note{display:flex;min-width:0;flex:1 1 0;flex-direction:column;align-items:center;gap:.28rem;padding:.62rem .2rem .55rem;border:1px solid #edf0ea;border-radius:8px;background:#fbfcf9;color:#39453e;font-size:.82rem;font-weight:700}.scale-note small{color:#a0a9a0;font-size:.59rem;font-weight:500}.scale-note.is-tonic{border-color:#b7cdbd;background:#edf4ee;color:#245c47}.scale-hint{margin:.55rem 0 0;color:#858e87;font-size:.72rem}.key-relationships{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding-top:1rem;border-top:1px solid #edeee8}.key-relationships>div{display:flex;align-items:center;gap:.7rem}.relationship-mark{display:grid;width:31px;height:31px;flex:0 0 31px;place-items:center;border-radius:50%;background:#f3efe6;color:#987b50;font-size:.95rem}.key-relationships p{display:grid;gap:.1rem;margin:0}.key-relationships small{color:#858f87;font-size:.64rem}.key-relationships strong{font-size:.78rem;font-weight:700}.key-relationships em{color:#9aa198;font-size:.62rem;font-style:normal}.chord-section{padding-top:2.2rem}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:.85rem}.section-heading .eyebrow{margin-bottom:.4rem}h2{margin:0;font-size:1.42rem;letter-spacing:-.05em}.section-heading>p{margin:0 0 .12rem;color:#818a83;font-size:.74rem}.chord-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.55rem}.chord-card{display:flex;min-width:0;min-height:154px;flex-direction:column;align-items:flex-start;padding:.8rem .72rem .72rem;border:1px solid #e5e8e1;border-radius:11px;background:#fffefa;text-align:left;cursor:pointer;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}.chord-card:hover{transform:translateY(-2px);border-color:#b9cbbd;box-shadow:0 5px 12px #24392b0f}.chord-card.is-active{border-color:#699278;box-shadow:inset 0 0 0 1px #699278;background:#f7fbf6}.chord-card.is-complete .chord-degree:after{content:" ✓";color:#538266;font-family:sans-serif;font-size:.68rem}.chord-degree{color:#a4aaa2;font-family:var(--serif);font-size:.8rem;font-weight:700}.chord-symbol{margin-top:.55rem;font-family:var(--serif);font-size:1.15rem;font-weight:800;letter-spacing:-.05em}.chord-quality{margin-top:.03rem;color:#879088;font-size:.66rem;text-transform:capitalize}.chord-notes{margin-top:auto;padding-top:.68rem;color:#526057;font-size:.65rem;font-weight:600;white-space:nowrap}.chord-function{margin-top:.28rem;color:#89928b;font-size:.56rem;line-height:1.3;overflow-wrap:anywhere}.learning-row{display:grid;grid-template-columns:.9fr 1.1fr;gap:.9rem;padding-top:1rem}.chord-detail,.practice-panel{padding:1.3rem 1.4rem 1.25rem}.detail-topline{display:flex;align-items:center;justify-content:space-between;gap:1rem}.detail-kicker{color:#8b948c;font-size:.66rem;font-weight:700;letter-spacing:.075em;text-transform:uppercase}.listen-button{display:inline-flex;min-height:44px;align-items:center;gap:.45rem;padding:.45rem .8rem;border:1px solid #dce5dc;border-radius:999px;background:#fbfdf9;color:#3b644d;font-size:.74rem;font-weight:700;cursor:pointer}.listen-button span{font-size:.6rem}.detail-title-row{display:flex;align-items:center;gap:.8rem;margin-top:1rem}.detail-degree{display:grid;width:47px;height:47px;flex:0 0 47px;place-items:center;border-radius:12px;background:#eff5ef;color:#2f684d;font-family:var(--serif);font-size:1.1rem;font-weight:800}.detail-title-row h3{margin:0 0 .18rem;font-size:1.25rem;letter-spacing:-.045em}.detail-title-row h3 span{color:#838d85;font-family:DM Sans,sans-serif;font-size:.73rem;font-weight:500;letter-spacing:0;text-transform:capitalize}.detail-title-row p{margin:0;color:#7d887f;font-size:.76rem}.function-tag{display:inline-flex;align-items:center;gap:.38rem;margin-top:.95rem;padding:.38rem .57rem;border-radius:6px;background:#f7f1e7;color:#86683e;font-size:.68rem;font-weight:700}.function-tag span{font-size:.65rem}.detail-explanation{min-height:39px;margin:.75rem 0 .4rem;color:#59655d;font-size:.8rem;line-height:1.52}.degree-memory{margin:0 0 .9rem;color:#88928a;font-size:.72rem}.primary-button,.check-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:.75rem;padding:.65rem .95rem;border:0;border-radius:8px;background:var(--green);color:#fff;font-size:.76rem;font-weight:700;cursor:pointer}.primary-button:hover,.check-button:hover:not(:disabled){background:#1d4d3b}.primary-button span{font-size:1rem}.practice-panel{display:flex;flex-direction:column;border-color:#e5e5dc;background:#fbfaf6}.practice-panel.is-practicing{border-color:#cdd9ce}.practice-header{display:flex;align-items:center;gap:.7rem}.practice-icon{display:grid;width:35px;height:35px;flex:0 0 35px;place-items:center;border-radius:10px;background:#f0ede3;color:#89774e;font-size:.95rem}.practice-header .eyebrow{margin-bottom:.2rem;font-size:.6rem}.practice-header h3{margin:0;font-size:1rem;letter-spacing:-.035em}.practice-prompt{margin:.7rem 0 .4rem;color:#7a857c;font-size:.75rem;line-height:1.4}.audio-fallback{margin:.35rem 0 .5rem;padding:.62rem .72rem;border:1px solid #e8d4b8;border-radius:8px;background:#fff7e9;color:#755a34;font-size:.72rem;line-height:1.45}.piano-wrap{margin-top:.15rem}.piano{position:relative;height:141px;overflow:hidden;border:1px solid #c9cec8;border-radius:7px;background:#fdfcf8;box-shadow:0 3px 4px #29302b0d}.white-key-row{display:flex;width:100%;height:100%}.piano-key{display:flex;align-items:flex-end;justify-content:center;padding:0 0 .6rem;border:0;cursor:pointer;touch-action:manipulation}.piano-key--white{position:relative;z-index:1;width:calc(100% / 7);height:100%;border-right:1px solid #d9ddd7;background:linear-gradient(90deg,#fff,#fff 88%,#f2f2ec);color:#7a847b;font-size:.68rem}.piano-key--white:last-child{border-right:0}.piano-key--white:hover{background:#f6f7f0}.black-key-position{position:absolute;z-index:2;top:0;width:calc(100% / 12);height:62%;transform:translate(-50%)}.black-key-position.is-at-start{transform:none}.piano-key--black{width:100%;min-width:26px;height:100%;padding:0 .1rem .42rem;border:1px solid #1d2521;border-radius:0 0 4px 4px;background:linear-gradient(90deg,#202924,#39423c 75%,#18201b);color:#e8ece8;font-size:.45rem;line-height:1.1;box-shadow:0 3px 3px #141e1838}.piano-key--black span{max-width:100%;overflow-wrap:anywhere}.piano-key.is-selected{background:#cfdfd1;box-shadow:inset 0 0 0 2px #4e8060;color:#244b34}.piano-key--black.is-selected{border-color:#375d42;background:linear-gradient(90deg,#477653,#699677);color:#fff}.piano-key:disabled{cursor:default}.piano-key:disabled:not(.is-selected){opacity:.7}.keyboard-legend{min-height:20px;padding-top:.35rem;color:#879188;font-size:.63rem;text-align:center}.feedback-message{display:flex;align-items:flex-start;gap:.5rem;margin:.45rem 0 .3rem;padding:.58rem .68rem;border-radius:7px;font-size:.7rem;line-height:1.45}.feedback-message span{flex:0 0 auto;font-size:.85rem;font-weight:800}.feedback-message--success{background:#eaf3eb;color:#315d3d}.feedback-message--hint{background:#f8efe6;color:#775c3c}.practice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;margin-top:auto;padding-top:.25rem}.check-button{min-width:119px;min-height:44px;font-size:.72rem}.check-button:disabled{background:#a4b5a7;cursor:default}.text-button{min-height:41px;padding:.5rem .3rem;border:0;background:transparent;color:#647269;font-size:.7rem;font-weight:650;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.practice-nudge{color:#8d968f;font-size:.7rem}.function-summary{display:grid;grid-template-columns:minmax(220px,.75fr) 1.25fr;gap:1rem 2rem;align-items:center;margin-top:2rem;padding:1.35rem 1.45rem;border:1px solid #e6e6dc;border-radius:14px;background:#f0f0e9}.function-summary .eyebrow{margin-bottom:.4rem}.function-summary h2{margin-bottom:.42rem;font-size:1.2rem}.function-summary>div:first-child>p:last-child{max-width:310px;margin:0;color:#7e887f;font-size:.72rem;line-height:1.5}.family-list{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}.family-item{display:flex;align-items:center;gap:.55rem;min-width:0;padding:.65rem .7rem;border:1px solid rgb(210 215 204 / 70%);border-radius:9px;background:#fffffabf}.family-item>span{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:50%;font-family:var(--serif);font-size:.79rem;font-weight:800}.family-tonic>span{background:#e6efe6;color:#437151}.family-subdominant>span{background:#f3eadc;color:#957449}.family-dominant>span{background:#f5e6e2;color:#a65c4d}.family-item p{display:grid;gap:.19rem;min-width:0;margin:0}.family-item strong{font-size:.7rem}.family-item small{color:#818980;font-size:.66rem;white-space:nowrap}.family-item i{padding:0 .16rem;color:#aa9071;font-style:normal}.family-item b{padding:0 .1rem;color:#b5a895;font-weight:400}.family-footnote{grid-column:1 / -1;margin:-.1rem 0 0;color:#7b867d;font-size:.68rem;line-height:1.5}.family-footnote strong{color:#56695b}.knowledge-check-entry{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;margin-top:1.2rem;padding:1.25rem 1.45rem}.knowledge-check-entry .eyebrow,.knowledge-check-entry h2{margin-bottom:.35rem}.knowledge-check-entry p:last-child{margin:0;color:#7b867d;font-size:.76rem;line-height:1.5}.knowledge-check{margin-top:1.2rem;padding:1.35rem 1.45rem 1.25rem}.knowledge-check-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.knowledge-check-heading .eyebrow,.knowledge-check-heading h2{margin-bottom:.35rem}.knowledge-intro{margin:0;color:#7b867d;font-size:.76rem;line-height:1.5}.knowledge-check-heading>.text-button{flex:0 0 auto}.knowledge-progress{height:5px;overflow:hidden;margin:1.1rem 0 1.2rem;border-radius:9px;background:#edf0ea}.knowledge-progress>span{display:block;height:100%;border-radius:inherit;background:#568368;transition:width .18s ease}.knowledge-question{margin-bottom:.8rem}.knowledge-question .field-label{margin-bottom:.35rem}.knowledge-question h3{margin:0;font-size:1.12rem;line-height:1.35;letter-spacing:-.025em}.knowledge-listen{margin-top:.65rem}.knowledge-select-hint{margin:.4rem 0 0;color:#89928b;font-size:.72rem}.knowledge-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.knowledge-options.is-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.knowledge-option{display:flex;min-width:0;min-height:58px;align-items:center;justify-content:space-between;gap:.5rem;padding:.65rem .75rem;border:1px solid #e3e7df;border-radius:9px;background:#fffefa;color:var(--ink);text-align:left;cursor:pointer;touch-action:manipulation}.knowledge-option:hover{border-color:#b6c8b9;background:#fbfdf9}.knowledge-option:disabled{cursor:default}.knowledge-option.is-selected{border-color:#71917b;box-shadow:inset 0 0 0 1px #71917b;background:#edf4ee}.knowledge-option-copy{display:grid;min-width:0;gap:.2rem}.knowledge-option-copy strong{font-size:.78rem;line-height:1.35;overflow-wrap:anywhere}.knowledge-option-copy small{color:#7c887f;font-size:.67rem;line-height:1.35}.knowledge-option-mark{display:grid;width:22px;height:22px;flex:0 0 22px;place-items:center;border:1px solid #dfe5dc;border-radius:50%;color:#35684b;font-size:.72rem;font-weight:800}.knowledge-option.is-selected .knowledge-option-mark{border-color:#9db9a2;background:#fff}.knowledge-feedback{display:grid;gap:.25rem;margin-top:.8rem;padding:.75rem .85rem;border-radius:8px;font-size:.75rem;line-height:1.5}.knowledge-feedback.is-correct{background:#eaf3eb;color:#315d3d}.knowledge-feedback.is-incorrect{background:#f8efe6;color:#775c3c}.knowledge-feedback strong{font-size:.8rem}.knowledge-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;margin-top:.9rem}.knowledge-actions .primary-button,.knowledge-actions .check-button{margin-left:auto}.knowledge-select-count{color:#818a83;font-size:.72rem}.knowledge-result{display:flex;align-items:center;gap:1rem;margin:1.35rem 0 1rem;padding:1.2rem;border-radius:11px;background:#f1f3ed}.knowledge-result-score{color:#245c47;font-family:var(--serif);font-size:2.2rem;font-weight:800;line-height:1}.knowledge-result-score small{color:#829087;font-family:inherit;font-size:1rem}.knowledge-result p{margin:0;color:#5c695f;font-size:.82rem}.lesson-footer{display:flex;align-items:center;gap:1rem;margin-top:1.6rem;padding-top:1rem;border-top:1px solid #e8e8e1;color:#9aa198;font-size:.65rem}.lesson-footer>span:first-child{color:#7c8980;font-size:.6rem;font-weight:700;letter-spacing:.1em}.lesson-footer button{min-height:44px;margin-left:auto;padding:.35rem .5rem;border:0;background:transparent;color:#748077;font-size:.68rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}@media(max-width:820px){.app-shell{width:min(100% - 2rem,680px)}.chord-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.chord-card{min-height:132px}.chord-card:nth-child(n+5){min-height:124px}.learning-row{grid-template-columns:1fr}.function-summary{grid-template-columns:1fr;gap:1rem}.knowledge-options.is-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.function-summary>div:first-child>p:last-child{max-width:42rem}}@media(max-width:520px){.app-shell{width:min(100% - 1.25rem,460px)}.site-header{height:62px}.header-actions{gap:.4rem}.header-note{display:none}.lesson-heading{align-items:flex-start;padding:2rem 0 1.2rem}.lesson-heading .intro{max-width:33ch;font-size:.88rem}.lesson-progress{gap:.45rem;margin-top:1.65rem;font-size:.63rem}.progress-ring{width:36px;height:36px}h1{font-size:clamp(2rem,9.2vw,2.8rem)}.key-panel{grid-template-columns:1fr;gap:1rem;padding:1.15rem 1rem 1rem}.scale-context{grid-column:auto;padding-top:.9rem}.scale-notes{gap:.22rem}.scale-note{padding:.52rem .05rem;font-size:.75rem}.key-relationships{grid-column:auto;gap:.8rem}.key-relationships>div{gap:.48rem}.key-relationships strong{font-size:.72rem}.relationship-mark{width:27px;height:27px;flex-basis:27px}.chord-section{padding-top:1.7rem}.section-heading{align-items:flex-start;flex-direction:column;gap:.4rem}.chord-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem}.chord-card,.chord-card:nth-child(n+5){min-height:119px;padding:.58rem .5rem .55rem}.chord-symbol{margin-top:.42rem;font-size:1rem}.chord-notes{font-size:.59rem}.chord-function{font-size:.52rem}.learning-row{padding-top:.7rem}.chord-detail,.practice-panel{padding:1rem}.piano{height:134px}.black-key-position{width:8.5%}.piano-key--black{font-size:.42rem}.function-summary{margin-top:1.45rem;padding:1rem}.family-list{grid-template-columns:1fr;gap:.45rem}.knowledge-check-entry{align-items:flex-start;flex-direction:column;padding:1rem}.knowledge-check{padding:1rem}.knowledge-check-heading{gap:.4rem}.knowledge-options{grid-template-columns:1fr}.knowledge-options.is-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-option{min-height:54px;padding:.55rem .6rem}.knowledge-option-copy strong{font-size:.72rem}.knowledge-actions{gap:.45rem}.knowledge-select-count{width:100%}.knowledge-actions .primary-button,.knowledge-actions .check-button{margin-left:0}.family-item{padding:.5rem .65rem}.family-item p{grid-template-columns:1fr auto;align-items:center;width:100%}.family-footnote{margin-top:0}.lesson-footer{gap:.6rem}.lesson-footer>span:nth-child(2){font-size:.6rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
