:root{--ink:#172f37;--muted:#6c7e83;--bg:#f3f6f5;--line:#dce5e3;--teal:#206763;--orange:#ecb77c;--rh:#eab580;--lh:#8bcac7;--font:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--font)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #58a39c;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:'Manrope',var(--font);letter-spacing:-.045em}h1{font-size:30px;line-height:1.25;font-weight:750}h2{font-size:30px;line-height:1.25;font-weight:750}h3{font-size:16px;letter-spacing:-.02em}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}[hidden]{display:none!important}.muted{color:var(--muted)}.tiny{font-size:12px;color:var(--muted);line-height:1.6}.section-label{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#5c7e7d}.topbar{min-height:88px;background:#fff;display:flex;align-items:center;padding:20px 3%;gap:24px;border-bottom:1px solid var(--line)}.brand{font:700 28px Georgia,serif;text-decoration:none;letter-spacing:-1px;white-space:nowrap}.brand span{color:var(--teal)}.product{border-left:1px solid var(--line);padding-left:24px;font-size:12px;font-weight:750;letter-spacing:2px;display:flex;gap:12px;align-items:center}.prototype{font-size:9px;letter-spacing:1px;background:#edf3f0;color:#648179;padding:4px 7px;border-radius:4px}.view-tabs{display:flex;align-items:center;gap:8px;margin:auto}.view-tabs button{background:transparent;color:var(--muted);padding:10px 14px;font-size:14px;border-radius:8px;white-space:nowrap}.view-tabs button.active{color:var(--ink);background:#edf3f1;font-weight:650}.outline{background:transparent;border:1px solid #cddad7;border-radius:9px;padding:10px 15px;min-height:42px;color:var(--ink);font-size:13px;font-weight:600}.outline:hover{background:#e8efec}.midi-button{display:flex;align-items:center;gap:9px;white-space:nowrap}.primary{background:var(--teal);color:#fff;border-radius:9px;padding:13px 22px;font-weight:650;font-size:14px;min-height:44px}.primary:hover{background:#18524f}.text-button{background:none;color:var(--teal);font-weight:650;padding:4px 0;font-size:12px}.text-button:hover{text-decoration:underline}.full{width:100%}#notice{position:fixed;z-index:100;bottom:25px;left:50%;transform:translateX(-50%);background:#183e42;color:white;box-shadow:0 10px 40px #0e292d33;border-radius:12px;padding:16px 24px;max-width:min(90vw,660px);font-size:14px}.app-view{min-height:calc(100vh - 145px)}#practice-view{display:grid;grid-template-columns:264px minmax(0,1fr);max-width:1800px;margin:0 auto}.library{border-right:1px solid var(--line);padding:34px 22px;background:#f8faf9}.library h1{margin-top:13px;font-size:25px}.intro{font-size:13px;margin-top:14px}.search{margin-top:28px;display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:8px;padding:10px 11px;color:#8b9b9b}.search svg{width:16px;height:16px}.search input{width:100%;border:0;min-width:0;color:var(--ink);font-size:12px;background:transparent}.search input:focus{outline:0}.search:focus-within{outline:2px solid #58a39c}.categories{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0 22px}.categories button{font-size:11px;color:#68817e;background:transparent;border:1px solid #d9e3df;border-radius:20px;padding:5px 9px;min-height:30px}.categories button.selected{background:var(--teal);color:white;border-color:var(--teal)}.library-caption{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#80918d;letter-spacing:.8px;font-weight:600;margin-bottom:10px}.exercise-list{display:grid;gap:7px;max-height:520px;overflow:auto;padding:2px}.exercise-item{text-align:left;padding:14px 12px;display:flex;gap:10px;align-items:center;background:transparent;border:1px solid transparent;border-radius:10px;color:var(--ink);width:100%;min-height:66px}.exercise-item.selected{background:#e4eeea;border-color:#bdd3c8}.exercise-item:hover{background:#edf3f0}.exercise-item .exercise-icon{width:28px;flex-shrink:0;text-align:center;font-size:21px;color:#7faaa1}.exercise-item .exercise-text{display:block;min-width:0}.exercise-item strong{display:block;font-size:12px;font-weight:650;line-height:1.5}.exercise-item small{display:block;font-size:10px;color:#7e9189;margin-top:3px}.exercise-item .arrow{margin-left:auto;color:#4a7f6c;font-size:15px}.library-footer{border-top:1px solid var(--line);margin-top:24px;padding-top:21px;display:flex;gap:12px;align-items:center;color:#7c918a}.finger-icon{letter-spacing:3px;font-size:13px;color:#799b90}.library-footer p{font-size:11px;line-height:1.7}.practice-content{padding:34px 32px;min-width:0}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.workspace-heading h2{margin:7px 0;font-size:32px}.workspace-heading p{font-size:13px}.workspace-heading>.outline{font-size:12px;flex-shrink:0}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:22px}.playing-area{min-width:0}.studio-panel{background:#18343c;border:1px solid #23454d;border-radius:16px;padding:20px;color:#e9f0ed;box-shadow:0 12px 28px #123c3910}.studio-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid #ffffff12}.mode-tabs{display:flex;background:#102b32;padding:4px;border-radius:8px;gap:3px}.mode-tabs button{background:transparent;color:#9aafb3;font-size:12px;padding:8px 14px;border-radius:6px;min-height:34px}.mode-tabs button.selected{background:#3b575d;color:white;box-shadow:0 2px 5px #0002}.live-source{color:#7faaa5;font-size:9px;letter-spacing:1.3px;font-weight:650}.controls-row{display:flex;align-items:end;gap:16px;padding:18px 0 22px}.controls-row label{font-size:10px;color:#9db4b7;display:grid;gap:7px}.controls-row select{background:#21424b;color:#e8f0ef;border:1px solid #456069;border-radius:6px;font-size:12px;padding:8px 24px 8px 10px;min-height:36px}.controls-row .sound-toggle{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:11px;padding-bottom:8px;white-space:nowrap}.sound-toggle input{accent-color:#a1d5c6;width:15px;height:15px}.sequence-header{display:flex;justify-content:space-between;gap:8px;font-size:9px;letter-spacing:1px;color:#9ab4b4;font-weight:600;align-items:center}.sequence-header small{margin-left:8px;font-size:9px;letter-spacing:0;color:#6f9297}.sequence-header>span:last-child{display:flex;align-items:center;gap:5px}.legend-dot{height:6px;width:6px;border-radius:50%;display:inline-block;margin-left:7px}.rh{background:var(--rh)}.lh{background:var(--lh)}.sequence{display:flex;overflow:auto;gap:7px;padding:13px 0 17px;scrollbar-color:#54757a transparent;scrollbar-width:thin}.step{position:relative;min-width:59px;max-width:85px;flex:1;background:#23434b;border:1px solid #38575f;border-radius:7px;padding:10px 5px;text-align:center;display:flex;flex-direction:column;gap:7px;color:#8da7ac}.step.current{background:#3f5555;border-color:#ecb77c;box-shadow:inset 0 0 0 1px #ecb77c33}.step.correct{border-color:#76b79a}.step.missed{border-color:#ba7b75}.step-number{font-size:8px;letter-spacing:1px}.step .rh-text,.step .lh-text{font-size:11px;font-weight:600;white-space:normal;line-height:1.35}.rh-text{color:var(--rh)}.lh-text{color:var(--lh)}.current-cue{text-align:center;padding:21px 4px 24px;min-height:142px}.current-cue>span{font-size:9px;letter-spacing:2px;color:#8aa6ac}.current-cue #cue-notes{font-family:Manrope,var(--font);font-size:28px;font-weight:650;margin:6px 0;letter-spacing:-1px;display:flex;justify-content:center;align-items:center;gap:15px;flex-wrap:wrap}.cue-hand{display:flex;align-items:center;gap:8px}.cue-hand small{font-size:9px;letter-spacing:1px;color:#8ba6aa;background:#29474e;border:1px solid #486269;border-radius:4px;padding:3px 5px}.current-cue p{font-size:11px;color:#91afaf;min-height:17px}.current-cue p.success{color:#b3dfc2}.current-cue p.error{color:#f0b6a9}.keyboard-wrap{overflow-x:auto;border-radius:6px;padding:0 0 5px;scrollbar-width:thin;scrollbar-color:#75928e transparent}.keyboard{display:flex;position:relative;height:160px;min-width:580px;user-select:none;touch-action:pan-x}.piano-key{border-radius:0 0 5px 5px;padding:0;border:1px solid #c6d1cd;position:relative;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;color:#7e908e;font-size:9px;touch-action:none}.piano-key.white{height:155px;background:linear-gradient(#e7eeeb,#fff 85%);flex:1;box-shadow:inset 0 -5px #d9e3df;z-index:1;padding-bottom:11px}.piano-key.black{position:absolute;top:0;width:2.8%;height:96px;background:linear-gradient(#172a2f,#263f45);border:1px solid #10262c;z-index:2;box-shadow:inset 0 -5px #102329,0 3px 4px #142a2a66;color:#76969b;padding-bottom:12px;border-radius:0 0 4px 4px}.piano-key.expected-r{background:#f0c58f!important;color:#674c32!important;box-shadow:inset 0 -5px #d9a972}.piano-key.expected-l{background:#9bcfca!important;color:#215653!important;box-shadow:inset 0 -5px #6da6a4}.piano-key.expected-both{background:linear-gradient(90deg,#9bcfca 50%,#f0c58f 50%)!important;color:#244a48}.piano-key.pressed{background:#c4e6b9!important;box-shadow:inset 0 -2px #98bd8b;transform:translateY(2px)}.piano-key .finger{font-weight:750;font-size:13px;position:absolute;bottom:32px}.piano-key.black .finger{bottom:28px}.keyboard-caption{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#85a2a5;margin:12px 0 0}.transport{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #ffffff12;margin-top:22px;padding-top:20px}.transport-actions{display:flex;gap:9px;align-items:center}.transport .primary{background:#e6bb87;color:#243a3d;font-size:12px;min-width:147px;padding:12px 17px}.transport .primary:hover{background:#f0cea2}.transport .primary span{font-size:11px;margin-right:7px}.studio-button{background:transparent;color:#b8cccc;font-size:12px;padding:12px}.transport>span{font-size:10px;color:#8ba7aa}.coach-card{margin-top:18px;display:flex;align-items:center;gap:16px;padding:19px 21px;background:#eaf0e9;border:1px solid #dce7db;border-radius:11px}.coach-symbol{font-size:27px;color:#6c8b5c}.coach-card .section-label{font-size:9px;color:#718269}.coach-card p{font-size:12px;color:#4c665b;margin-top:5px;line-height:1.7}.mode-note{margin-top:15px;color:#79908a;font-size:10px;line-height:1.7;display:grid;gap:4px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:21px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.session-panel{display:flex;flex-direction:column;gap:16px}.metronome{padding:21px 19px}.switch{display:inline-flex;position:relative;cursor:pointer}.switch input{position:absolute;opacity:0;width:100%;height:100%;z-index:2;margin:0;cursor:pointer}.switch>span:not(.sr-only){display:block;width:32px;height:19px;background:#bacbc4;border-radius:20px;padding:3px}.switch>span:before{content:'';display:block;width:13px;height:13px;background:white;border-radius:50%}.switch input:checked+span{background:#347767}.switch input:checked+span:before{transform:translateX(13px)}.switch input:focus-visible+span{outline:3px solid #67a79c;outline-offset:3px}.tempo-number{display:flex;align-items:center;justify-content:space-between;margin:20px 0 10px}.tempo-number>button{width:29px;height:29px;border:1px solid var(--line);border-radius:50%;color:#718b83;background:transparent;font-size:16px;display:grid;place-items:center;padding:0}.tempo-number label{display:flex;align-items:baseline;gap:5px}.tempo-number input{font-family:Manrope,var(--font);font-size:48px;font-weight:500;letter-spacing:-3px;width:84px;text-align:center;border:0;color:var(--ink);background:transparent;padding:0;appearance:textfield;-moz-appearance:textfield}.tempo-number input::-webkit-inner-spin-button{display:none}.tempo-number label span{font-size:9px;color:#8b9f96;letter-spacing:1px}input[type=range]{width:100%;accent-color:#2e7565;height:4px;cursor:pointer}.tempo-labels{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#8aa094;margin-top:8px}.tempo-labels button{font-size:10px}.beat-dots{display:flex;justify-content:center;gap:12px;margin:24px 0 15px}.beat-dots i{height:9px;width:9px;background:#e0e9e4;border-radius:50%;transition:background .05s}.beat-dots i:first-child{background:#b9cdbb}.beat-dots i.active{background:#2b806c;box-shadow:0 0 0 4px #e3f0e9}.metro-bottom{display:flex;justify-content:space-between;gap:5px;font-size:9px;color:#7f968a;align-items:center}.metro-bottom button{font-size:10px}.volume-label{display:flex;gap:14px;align-items:center;font-size:10px;color:#7d9389;border-top:1px solid #edf1ed;padding-top:15px;margin-top:17px}.volume-label input{max-width:130px}.small-tag{font-size:8px;letter-spacing:1px;color:#728d7d;background:#edf3ed;padding:3px 6px;border-radius:3px}.session-time{font-family:Manrope,var(--font);font-size:41px;letter-spacing:-2px;margin:14px 0 16px;line-height:1.25}.session-time span{color:#a4b6ad}.goal-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#889c91}.goal-label select{border:0;background:transparent;font-size:10px;color:#65816e;max-width:90px}.session-card progress{height:5px;display:block;appearance:none;width:100%;margin:11px 0 23px;border:0;border-radius:4px;overflow:hidden}.session-card progress::-webkit-progress-bar{background:#eaf0eb}.session-card progress::-webkit-progress-value{background:#75957d}.session-card progress::-moz-progress-bar{background:#75957d}.session-metrics{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:12px}.session-metrics>div+div{border-left:1px solid var(--line);padding-left:15px}.session-metrics strong{font-size:20px;font-weight:500;display:block;white-space:nowrap}.session-metrics span{font-size:9px;color:#81938c;display:block;margin-top:4px}.session-card .tiny{font-size:10px;min-height:30px}.session-card .full{margin-top:17px;font-size:11px;padding:9px;min-height:37px}.today-card{display:flex;align-items:center;gap:12px;padding:5px 7px}.today-icon{font-size:30px;color:#8ca396}.today-card strong{font-size:12px;display:block;font-weight:650}.today-card span{display:block;font-size:10px;color:#899f91;margin-top:3px}.today-card button{margin-left:auto;font-size:18px}.app-footer{max-width:1800px;margin:auto;display:flex;justify-content:space-between;gap:14px;padding:16px 32px;border-top:1px solid var(--line);font-size:9px;letter-spacing:.5px;color:#8fa29b}.app-footer b{margin-left:9px;font-weight:500}.secondary-view{max-width:1150px;margin:auto;padding:42px 30px 70px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:30px}.page-heading h1{margin:10px 0 13px}.page-heading p{font-size:14px}.builder-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:28px}.builder-form{padding:28px}.builder-form label{display:grid;gap:9px;font-size:13px;font-weight:600;margin-bottom:20px}.builder-form input,.builder-form select,.builder-form textarea{border:1px solid #cfded6;border-radius:8px;padding:12px;background:#fbfcfa;color:var(--ink);width:100%;font-size:15px}.builder-form textarea{font-family:ui-monospace,monospace;line-height:1.8;resize:vertical}.builder-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.builder-form .rh-text{color:#976232}.builder-form .lh-text{color:#367b77}.hand-label{font-size:11px;letter-spacing:1.5px}.builder-buttons{display:flex;justify-content:space-between;gap:15px}.builder-grid aside{display:flex;flex-direction:column;gap:22px}.recipe h2{font-size:25px;margin:10px 0 22px}.recipe dt{margin-top:20px}.recipe code{font-size:14px;color:#356b5b;background:#edf4ec;padding:5px 8px;border-radius:5px}.recipe dd{margin:10px 0 0;color:#788e83;font-size:13px}.recipe>p{font-size:12px;margin-top:24px}.builder-recipes button{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;background:transparent;padding:17px 0;border-bottom:1px solid var(--line);color:#527361;font-size:13px}.builder-recipes button:last-child{border-bottom:0}.form-error{font-size:13px;color:#a34234;margin-bottom:18px}.history-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:26px}.history-summary .card{display:grid;gap:13px}.history-summary span{font-size:13px;color:#7f9588}.history-summary strong{font-size:32px;font-weight:600}.history-table h2{font-size:20px}.history-table .card-heading{margin-bottom:22px}.log-row{display:grid;grid-template-columns:1.7fr 1fr .6fr .6fr;gap:15px;padding:18px 0;border-top:1px solid var(--line);font-size:13px}.log-row strong{font-weight:600;display:block}.log-row small{display:block;color:#83988a;margin-top:3px}.empty-state{text-align:center;padding:50px 15px;color:#7d9587;font-size:14px}.empty-state strong{display:block;font-family:Manrope,var(--font);font-size:23px;color:var(--ink);margin-bottom:9px}dialog{border:1px solid var(--line);border-radius:20px;background:#fcfdf9;color:var(--ink);padding:46px;width:min(460px,92vw);text-align:center}dialog::backdrop{background:#102f3a88;backdrop-filter:blur(4px)}dialog h2{font-size:35px;margin:18px 0}dialog p{color:#6c8576;font-size:15px;line-height:1.8;margin-bottom:25px}.dialog-close{position:absolute;right:14px;top:10px;background:none;color:#83978c;font-size:25px;min-width:36px;min-height:36px}.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}
@media(min-width:1550px){.practice-content{padding:42px}.studio-panel{padding:28px}.keyboard{height:190px}.piano-key.white{height:185px}.piano-key.black{height:118px}.current-cue{padding:26px 0 30px}.workspace-grid{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:1200px){.topbar{gap:18px;padding:17px 22px}.product{padding-left:16px;font-size:10px;letter-spacing:1px}.prototype{display:none}.view-tabs{gap:0}.view-tabs button{padding:9px 10px;font-size:12px}#practice-view{grid-template-columns:224px minmax(0,1fr)}.library{padding:29px 15px}.library h1{font-size:23px}.practice-content{padding:29px 22px}.workspace-grid{grid-template-columns:minmax(0,1fr)}.session-panel{display:grid;grid-template-columns:1fr 1fr;align-items:start}.today-card{grid-column:1/-1}.metronome,.session-card{height:100%}.workspace-heading h2{font-size:29px}.studio-panel{padding:22px}.exercise-list{max-height:600px}}
@media(max-width:760px){.topbar{flex-wrap:wrap;gap:12px;padding:16px 18px}.brand{font-size:24px}.product{border:0;padding:0;margin-right:auto}.midi-button{font-size:11px;padding:8px;min-height:38px}.midi-button svg{width:16px}.view-tabs{order:4;flex-basis:100%;justify-content:center;border-top:1px solid var(--line);padding-top:10px;margin-top:3px;gap:15px}#practice-view{display:block}.library{border-right:0;border-bottom:1px solid var(--line);padding:18px}.library>.section-label,.library>h1,.library>.intro,.library-footer{display:none}.search{margin-top:0;padding:9px}.categories{margin:13px 0 10px;flex-wrap:nowrap;overflow:auto;padding-bottom:4px}.categories button{white-space:nowrap;min-height:34px}.library-caption{margin-bottom:8px}.exercise-list{display:flex;overflow:auto;gap:9px;max-height:none}.exercise-item{flex:0 0 186px;min-height:66px;padding:10px;background:white;border-color:var(--line)}.exercise-item .exercise-icon{width:20px}.exercise-item .arrow{display:none}.practice-content{padding:23px 16px}.workspace-heading{gap:10px;align-items:start;margin-bottom:18px}.workspace-heading h2{font-size:26px}.workspace-heading .section-label{font-size:9px}.workspace-heading>.outline{font-size:10px;max-width:105px;padding:8px 10px;min-height:36px}.workspace-heading p{font-size:12px}.studio-panel{padding:15px;border-radius:13px}.studio-top{gap:8px;padding-bottom:15px;flex-wrap:wrap}.live-source{font-size:8px}.mode-tabs button{padding:8px 12px}.controls-row{gap:10px;flex-wrap:wrap;padding:16px 0}.controls-row select{padding:8px;font-size:11px}.controls-row .sound-toggle{font-size:10px;margin-left:0;padding-bottom:9px}.sequence-header{font-size:8px}.sequence-header small{display:none}.sequence{padding:11px 0}.step{min-width:54px}.current-cue{padding:16px 0 20px;min-height:128px}.current-cue #cue-notes{font-size:23px;gap:10px}.keyboard{min-width:590px;height:142px}.piano-key.white{height:138px}.piano-key.black{height:85px}.keyboard-caption{font-size:8px;flex-direction:column;gap:4px}.transport{margin-top:16px;padding-top:16px}.transport .primary{font-size:11px;min-width:130px;padding:11px 13px}.studio-button{font-size:11px;padding:8px}.transport>span{font-size:9px}.coach-card{padding:15px;gap:12px}.session-panel{gap:13px}.card{padding:16px}.card h3{font-size:14px}.tempo-number input{font-size:40px;width:68px}.tempo-number>button{width:24px;height:24px}.tempo-number{margin:20px 0 13px}.tempo-labels{gap:3px;flex-wrap:wrap}.metro-bottom{flex-wrap:wrap;gap:6px}.session-time{font-size:33px}.goal-label{flex-wrap:wrap;gap:4px}.session-metrics{gap:8px}.session-metrics>div+div{padding-left:8px}.session-metrics strong{font-size:16px}.session-metrics span{font-size:8px}.session-card .full{font-size:10px}.app-footer{padding:16px;flex-direction:column;gap:5px;font-size:8px}.secondary-view{padding:28px 17px}.page-heading{display:block}.page-heading h1{font-size:28px}.page-heading>.outline{margin-top:18px}.builder-grid{grid-template-columns:1fr}.builder-form{padding:20px}.builder-buttons{flex-wrap:wrap}.history-summary{gap:10px}.history-summary .card{padding:13px}.history-summary span{font-size:11px}.history-summary strong{font-size:23px}.log-row{grid-template-columns:1.4fr 1fr;gap:12px}.history-table .card-heading{flex-wrap:wrap}.recipe dd{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Dedicated practice pages */
.topbar{flex-wrap:wrap;gap:16px}.product{margin-right:auto}.view-tabs{order:4;width:100%;border-top:1px solid var(--line);padding-top:12px;margin:0;justify-content:center;flex-wrap:wrap}.view-tabs a{font-size:14px;text-decoration:none;border-radius:8px;padding:10px 17px;color:var(--muted);white-space:nowrap}.view-tabs a.active{background:#e4eeea;color:var(--teal);font-weight:700}.categories:empty{display:none}.fingering-card{margin-top:18px;padding:20px}.hand-diagrams{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}.hand-visual{text-align:center;background:#f7f9f8;border-radius:12px;padding:14px 6px}.hand-visual-title{font-size:10px;letter-spacing:1.6px;font-weight:700}.hand-visual svg{display:block;width:100%;height:140px;margin:12px auto 3px;max-width:210px;stroke:none;fill:none}.hand-outline{fill:#e5ebe8;stroke:#afc1b8;stroke-width:2;stroke-linejoin:round}.finger-dot{fill:#f9fbfa;stroke:#b5c4be;stroke-width:1.5}.finger-dot.lit.left{fill:#8bcac7;stroke:#397974;stroke-width:2}.finger-dot.lit.right{fill:#eab580;stroke:#a66829;stroke-width:2}.finger-number{font-family:var(--font);font-size:12px;fill:#253f3b;font-weight:700;stroke:none}.hand-visual p{font-size:11px;min-height:32px;color:#506a65}.fingering-card>.tiny{margin-top:14px}.sheet-panel{color:var(--ink);background:#fdfcf7;border-radius:12px;padding:18px;margin:20px 0}.sheet-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}.sheet-heading p,.sheet-heading label,.score-help{font-size:11px;color:#627971}.sheet-heading h3{margin-bottom:4px}.sheet-score{overflow-x:auto;margin-top:12px;max-width:100%}.sheet-score svg{display:block;max-width:none;height:350px;stroke:none;fill:#24433c}.score-highlight{fill:transparent}.active .score-highlight{fill:#e1eee3}.score-notehead{fill:#24433c;stroke:#24433c;stroke-width:1.4}.score-notehead.open{fill:#fdfcf7}.note-stem,.ledger{stroke:#24433c;stroke-width:1.3}.score-step-label{font:10px var(--font);fill:#748b80}.score-fingers{font:bold 12px var(--font);fill:#477365}.score-note-label{font:10px var(--font);fill:#607b6f}.hide-note-labels .score-note-label{display:none}.saved-custom{margin:24px 0;padding:24px}.saved-custom h2{font-size:20px}.custom-preset{margin:10px 10px 0 0}.saved-custom .muted{font-size:14px;margin-top:16px}@media(max-width:600px){.view-tabs{justify-content:flex-start;gap:4px}.view-tabs a{font-size:12px;padding:9px 10px}.hand-diagrams{gap:8px}.fingering-card{padding:15px}.sheet-panel{padding:12px}.sheet-heading{flex-direction:column}.hand-visual svg{height:118px}}
.active .score-highlight{fill:#bddac5;fill-opacity:.38}
.scale-explorer{margin:0 0 22px;padding:20px}.scale-explorer-top{display:flex;gap:20px;justify-content:space-between;align-items:center}.scale-explorer-top label{font-size:12px;color:var(--muted);max-width:65%}.scale-explorer select{display:block;width:100%;max-width:490px;margin-top:5px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:9px;color:var(--ink)}.pair-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.pair-buttons .selected{background:var(--teal);color:white}.finger-editor{border-top:1px solid var(--line);margin-top:16px;padding-top:12px;font-size:13px}.finger-editor summary{cursor:pointer;font-weight:600}.finger-editor p{margin-top:9px}.finger-editor .builder-row{margin-top:12px}.finger-editor label{display:grid;gap:5px;font-size:12px}.finger-editor input{width:100%;min-width:0;padding:9px;border:1px solid var(--line);border-radius:7px}.finger-editor .builder-buttons{margin-top:12px}@media(max-width:600px){.scale-explorer-top{display:block}.scale-explorer-top label{display:block;max-width:100%;margin-top:12px}.scale-explorer{padding:15px}}
#scale-create-dialog{max-width:650px;width:calc(100% - 28px);max-height:90vh;overflow:auto}#scale-create-form{display:grid;gap:15px}#scale-create-form h2{font-size:25px}#scale-create-form>p{font-size:13px}#scale-create-form label{display:grid;gap:5px;font-size:13px}#scale-create-form input,#scale-create-form select{padding:10px;border:1px solid var(--line);border-radius:7px;width:100%;min-width:0}#scale-create-form .builder-row{margin:0}
.challenge-panel{padding:26px;background:linear-gradient(120deg,#e1efdf,#eef3e9);border:1px solid #c9dcc9;border-radius:18px;margin-bottom:22px}.challenge-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.challenge-heading .section-label{color:#43714c}#challenge-body{display:flex;gap:20px;align-items:center;margin:25px 0}.quest-badge{font-size:44px;background:#315b48;color:#ffe4a0;border-radius:20px;padding:6px 22px}#challenge-instruction{font-size:25px;max-width:750px}#challenge-hint{font-size:14px;color:#56735e;margin-top:10px}.challenge-settings{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.challenge-settings label{font-size:12px;display:grid;gap:5px}.challenge-settings select{padding:10px;border:1px solid #c2d2c4;border-radius:8px;background:white;color:var(--ink)}#challenge-status{margin-top:18px}.challenge-active #scale-explorer,.challenge-active .studio-top,.challenge-active #loop-select,.challenge-active .session-panel,.challenge-active .mode-note{display:none}.challenge-active .controls-row label:has(#loop-select){display:none}.challenge-active .workspace-grid{grid-template-columns:minmax(0,1fr)}.challenge-active .workspace-heading{margin-bottom:18px}.review-stars{font-size:46px;color:#b7801a;letter-spacing:5px;margin:22px 0}#challenge-review{max-width:570px;width:calc(100% - 28px)}#challenge-review p{margin:14px 0}#review-advice{font-size:17px;color:var(--teal)}#self-rating select{padding:8px;margin-left:10px}@media(max-width:600px){.challenge-panel{padding:17px}.challenge-heading{align-items:start}.challenge-heading .outline{font-size:11px;padding:8px}.quest-badge{display:none}#challenge-instruction{font-size:21px}.review-stars{font-size:36px}}
#challenge-tempo{width:92px;padding:10px;border:1px solid #c2d2c4;border-radius:8px;background:white;color:var(--ink)}
.journey-panel{margin-top:22px;padding:18px;background:#ffffffb8;border:1px solid #c9dcc9;border-radius:12px}.journey-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.journey-panel h3{font-size:20px;margin-top:5px}.journey-panel>p{font-size:13px;color:#587260;margin:8px 0}.journey-panel progress{width:100%;height:7px;accent-color:#32644a}.journey-keys{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0}.journey-keys .outline{min-width:43px;padding:7px 10px}.journey-keys .selected{background:#315b48;color:white}.journey-panel summary{font-size:13px;font-weight:600;cursor:pointer}.journey-panel details>.tiny{margin:10px 0}#journey-chapters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}#journey-chapters button{text-align:left;font-size:12px}@media(max-width:600px){#journey-chapters{grid-template-columns:1fr}.journey-panel{padding:12px}.journey-keys{gap:5px}}
.inline-review{background:#e7efe4;border:1px solid #b8cdb4;border-radius:12px;padding:14px;margin-top:12px}.inline-review>.section-label,.inline-review>h2,.inline-review>.tiny{display:none}.inline-review .review-stars{font-size:25px;letter-spacing:3px;margin:0}.inline-review #review-result{font-size:12px;margin:3px 0}.inline-review #review-advice{font-size:13px;margin:4px 0}.inline-review .builder-buttons{gap:8px;margin-top:8px;flex-wrap:wrap}.inline-review .builder-buttons button{padding:8px 12px;font-size:12px;min-height:34px}
body.practice-focus{height:100dvh;overflow:hidden}.practice-focus .topbar,.practice-focus .app-footer,.practice-focus .library,.practice-focus .workspace-heading,.practice-focus #journey-panel,.practice-focus .coach-card,.practice-focus .mode-note,.practice-focus #challenge-status,.practice-focus .quest-badge,.practice-focus #challenge-self,.practice-focus #toggle-challenge,.practice-focus #challenge-hint,.practice-focus .sequence-header,.practice-focus #sequence,.practice-focus .keyboard-caption,.practice-focus .studio-top,.practice-focus .session-panel{display:none!important}.practice-focus #practice-view{display:block;height:100dvh;min-height:0;max-width:none}.practice-focus .practice-content{padding:10px 18px;height:100%;display:flex;flex-direction:column;gap:8px}.practice-focus .challenge-panel{margin:0;padding:10px 14px;flex:none}.practice-focus .challenge-heading{justify-content:space-between}.practice-focus #challenge-body{margin:6px 0;gap:0}.practice-focus #challenge-instruction{font-size:19px;max-width:none}.practice-focus #challenge-body .section-label{display:none}.practice-focus .challenge-settings{gap:8px}.practice-focus .challenge-settings label{font-size:10px;gap:2px}.practice-focus .challenge-settings select,.practice-focus #challenge-tempo{font-size:12px;padding:6px}.practice-focus .challenge-settings button{padding:7px 12px;min-height:34px;font-size:12px}.practice-focus .workspace-grid{flex:1;min-height:0;display:block}.practice-focus .playing-area{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 240px;grid-template-rows:minmax(0,1fr) auto;gap:10px}.practice-focus .studio-panel{padding:12px;min-height:0;display:flex;flex-direction:column;margin:0}.practice-focus .controls-row{margin:0;padding:0 0 8px;gap:12px}.practice-focus .controls-row label{font-size:10px}.practice-focus .controls-row select{padding:5px;font-size:12px}.practice-focus .current-cue{padding:8px;margin:0;min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center}.practice-focus #cue-notes{font-size:30px}.practice-focus #feedback{margin-top:5px;font-size:12px}.practice-focus .keyboard-wrap{flex:none;margin:0}.practice-focus #keyboard{height:clamp(100px,24vh,210px);min-width:0!important;width:100%}.practice-focus .transport{margin-top:8px;padding-top:8px;gap:8px}.practice-focus .transport button{padding:7px 12px;min-height:34px;font-size:12px}.practice-focus .fingering-card{margin:0;padding:12px;min-height:0;overflow:hidden}.practice-focus .fingering-card h3{font-size:14px}.practice-focus .hand-diagrams{grid-template-columns:1fr;gap:6px;margin-top:8px}.practice-focus .hand-visual{padding:6px}.practice-focus .hand-visual svg{height:clamp(55px,13vh,115px);margin:3px auto}.practice-focus .hand-visual p{min-height:0;font-size:10px}.practice-focus #finger-help{font-size:10px;line-height:1.25;margin-top:6px}.practice-focus .inline-review{grid-column:1/-1;margin:0;max-width:none!important;width:100%!important}.practice-focus .inline-review .review-stars{float:left;margin-right:15px}.practice-focus #challenge-review p{margin:3px 0}.practice-focus .inline-review .builder-buttons{margin-top:5px}
@media(max-width:700px){.practice-focus .practice-content{padding:6px;gap:6px}.practice-focus .playing-area{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:5px}.practice-focus .fingering-card{padding:6px}.practice-focus .fingering-card .card-heading,.practice-focus #finger-help{display:none}.practice-focus .hand-diagrams{grid-template-columns:1fr 1fr;margin:0}.practice-focus .hand-visual{display:flex;align-items:center;gap:3px}.practice-focus .hand-visual svg{height:55px;width:65px;margin:0}.practice-focus .hand-visual-title{font-size:8px}.practice-focus .hand-visual p{font-size:9px}.practice-focus .challenge-heading>.section-label{font-size:8px;letter-spacing:.6px}.practice-focus #challenge-instruction{font-size:15px}.practice-focus .challenge-settings{gap:5px}.practice-focus #challenge-demo{display:none}.practice-focus #challenge-launch{display:none}.practice-focus .challenge-panel{padding:7px}.practice-focus .studio-panel{padding:8px}.practice-focus #keyboard{height:clamp(85px,18vh,150px)}.practice-focus .piano-key.black>span:last-child{display:none}.practice-focus .piano-key.white>span:last-child{font-size:8px}.practice-focus .inline-review{padding:7px}.practice-focus #review-advice{display:none}.practice-focus .inline-review .builder-buttons button{font-size:11px;padding:6px;min-height:32px}.practice-focus #challenge-review-close{display:none}}
.input-choice{max-width:950px;margin:65px auto;padding:25px}.input-choice h1{font-size:36px;margin:12px 0}.input-choice>p{color:var(--muted)}.input-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:35px}.input-choice-grid a{display:block;text-decoration:none;border:1px solid #c4d7ce;border-radius:20px;padding:30px;background:white}.input-choice-grid a:hover{background:#e8f0e7;border-color:#39715b}.input-choice-grid h2{font-size:23px;margin:20px 0 12px}.input-choice-grid p{font-size:15px;color:var(--muted);margin-bottom:25px}.device-icon{font-size:40px;color:var(--teal)}.input-choice-grid strong{color:var(--teal)}.choosing-input main,.choosing-input .app-footer{display:none}body[data-input-mode=touch] #keyboard{min-width:0!important;width:100%}body[data-input-mode=midi] .piano-key{pointer-events:none}body[data-input-mode=midi] #latch-keys{display:none}.practice-focus .challenge-heading{justify-content:flex-start;gap:8px}.practice-focus .challenge-heading button{font-size:10px;min-height:28px;padding:5px 8px}.practice-focus .challenge-heading>.section-label{margin-left:auto}.practice-focus #touch-window-label{font-size:10px;margin:4px 0;color:#c1d8d1}.practice-focus[data-input-mode=touch] #keyboard{height:clamp(125px,26vh,230px)}.practice-focus[data-input-mode=midi] #keyboard{height:clamp(80px,18vh,160px)}
@media(max-width:700px){.input-choice{margin:20px auto;padding:20px}.input-choice h1{font-size:28px}.input-choice-grid{grid-template-columns:1fr;gap:14px;margin-top:24px}.input-choice-grid a{padding:20px}.input-choice-grid h2{font-size:20px;margin:10px 0}.device-icon{font-size:26px}.input-choice-grid p{margin-bottom:14px}.practice-focus .challenge-heading>.section-label{display:none}}
.focus-metronome{display:none}.practice-focus .focus-metronome{display:flex;align-items:center;justify-content:space-between;margin-top:5px;gap:12px}.practice-focus #focus-beats{margin:0;gap:9px}.practice-focus #focus-beats i{height:7px;width:7px}.practice-focus #focus-click{font-size:10px;padding:3px 8px}.practice-focus .keyboard-wrap{overflow:hidden}
@media(max-height:720px){.practice-focus .challenge-panel{padding:5px 8px}.practice-focus #challenge-body{margin:4px 0}.practice-focus #challenge-instruction{font-size:14px}.practice-focus .challenge-settings select,.practice-focus #challenge-tempo{padding:4px}.practice-focus .current-cue{padding:3px}.practice-focus #cue-notes{font-size:23px}.practice-focus[data-input-mode=touch] #keyboard{height:105px}.practice-focus .hand-visual svg{height:37px}.practice-focus .hand-visual p{font-size:9px}.practice-focus .transport{padding-top:4px;margin-top:4px}.practice-focus #feedback{font-size:11px}.practice-focus .inline-review .review-stars{font-size:19px}.practice-focus .inline-review #review-result{font-size:10px}.practice-focus .inline-review .builder-buttons{gap:4px}}
.practice-focus .controls-row{flex-wrap:wrap}.practice-focus .controls-row .sound-toggle{margin-left:auto}.practice-focus .controls-row select{max-width:120px}
/* Key heights must follow the available piano space rather than fixed legacy heights. */
#keyboard .piano-key.white{height:100%;min-width:0}#keyboard .piano-key.black{height:62%}.practice-focus .keyboard-wrap{overflow-x:auto;overflow-y:hidden;flex-shrink:0}.practice-focus[data-input-mode=midi] .keyboard-wrap{overflow:hidden}.practice-focus[data-input-mode=midi] #keyboard{min-width:0!important;width:100%}.practice-focus[data-input-mode=midi] .piano-key.white{flex:1 1 0}
body[data-input-mode=touch] #keyboard{min-width:720px!important;width:max(100%,720px)!important}body[data-input-mode=touch] .keyboard-wrap{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}body[data-input-mode=touch] .piano-key.white{flex:1 0 48px}body[data-input-mode=touch] .piano-key.white>span:last-child{font-size:11px}.touch-navigation{display:flex;align-items:center;gap:5px;margin:6px 0;flex-wrap:wrap}.touch-navigation button{font-size:11px;padding:6px;min-height:32px}.touch-navigation input[type=range]{flex:1;min-width:65px;width:80px;accent-color:#8bcac7}.touch-navigation label{font-size:10px;color:#c1d8d1}.touch-navigation input[type=checkbox]{vertical-align:middle}.practice-focus #touch-window-label{font-size:9px}.practice-focus .touch-navigation{flex-shrink:0;margin:4px 0}
.practice-focus .current-cue{min-height:72px;flex:1 0 72px}.practice-focus #cue-notes{line-height:1.1}.practice-focus #feedback{line-height:1.2}.practice-focus #step-number{font-size:9px;line-height:1.2;margin:0 0 3px}.practice-focus .touch-navigation{min-height:30px}.practice-focus .controls-row{flex-shrink:0}
@media(max-height:720px) and (max-width:700px){.practice-focus .current-cue{min-height:60px;flex-basis:60px}.practice-focus #cue-notes{font-size:21px}.practice-focus #feedback{font-size:10px;margin-top:3px}.practice-focus .hand-visual svg{height:28px}.practice-focus .fingering-card{padding:4px}.practice-focus .hand-visual{padding:3px}.practice-focus .inline-review{padding:5px}.practice-focus #review-result{line-height:1.2}.practice-focus[data-input-mode=touch] #keyboard{height:95px}}

.universe-entry{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;padding:20px 24px;margin-bottom:20px;background:linear-gradient(110deg,#152239,#26334b);border:1px solid #6e624a;color:#f3ca7b;border-radius:14px;text-decoration:none}.universe-entry>span{font-size:9px;letter-spacing:1.5px}.universe-entry strong{font-size:20px}.universe-entry small{color:#c4d1e4;margin-left:auto}.practice-focus .universe-entry{display:none}
