/* Fit notation without nested scrollbars. Keep the page itself scrollable. */
select,select option,select optgroup{color:#183441!important;background:#fff8e8!important;color-scheme:light}
.note-lab .reading{color:#f5e7cb;max-width:none;padding:8px 16px}.note-lab .reading :is(td,th,li){color:#f5e7cb}.note-lab .reading header{gap:10px;margin:0 0 6px}.note-lab .reading header h2{font-size:23px}.note-lab .reading>p{margin:6px 0;font-size:14px}
.note-lab .reading-controls{gap:10px;margin:7px 0;align-items:center}.note-lab .reading-controls>label{min-width:95px;font-size:14px}.note-lab .reading-controls :is(button,select){min-height:38px;padding:6px 10px}.note-lab .reading-stage{height:clamp(120px,22dvh,185px);min-height:0;margin:8px 0;background:#ece1c7}.note-lab .reading-stage svg{height:100%!important;min-height:0;max-height:100%}.note-lab .reading-answers{gap:10px;margin-top:12px}.note-lab .reading-answers button{min-height:42px}
.note-lab .exercise-content .notation-card.large{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:5px;height:clamp(180px,35dvh,290px);padding:8px;overflow:visible!important}.note-lab .exercise-content .notation-card.large>:is([data-notation],[data-interval],[data-harmony],[data-symbol]){position:relative;height:100%!important;min-height:0;overflow:visible!important;display:flex;flex-direction:column}.note-lab .exercise-content .notation-card.large .notation-surface>svg{position:static!important;transform:none!important;flex:1 1 0;min-height:0;min-width:0;width:100%;height:100%;object-fit:contain}.note-lab .exercise-content .notation-card.large .notation-surface>svg.interval-keyboard{flex:0 0 32%;height:32%!important;margin:4px 0!important;max-height:85px}.note-lab .exercise-content .notation-card.large :is(.hear-button,.hear-pair){position:static;transform:none;justify-self:end;display:flex;gap:8px;flex-wrap:wrap;margin:0}
.note-lab .exercise-heading{padding:8px 14px}.note-lab .exercise-heading h2{font-size:24px;margin:3px 0}.note-lab .course-toolbar{padding:8px 12px;min-height:0}.note-lab .exercise-content{gap:14px;padding:10px 14px}.note-lab .question-kicker{margin:0 0 5px;font-size:18px}
.encyclopedia-app .ency-content.music-reference-root{overflow-y:auto!important;overflow-x:hidden!important}.encyclopedia-app .music-reference{display:flex;flex-direction:column;height:auto!important;overflow:visible!important;gap:10px}.encyclopedia-app .reference-stage{display:flex;flex-direction:column;height:auto;overflow:visible;gap:8px;padding:10px;flex:none}.encyclopedia-app .reference-title h2{font-size:23px}.encyclopedia-app .reference-title small{font-size:11px}.encyclopedia-app .reference-title :is(p,b,span){color:#f5e7cb}.encyclopedia-app .reference-staff{height:145px!important;min-height:0;overflow:visible!important;flex:none;padding:0}.encyclopedia-app .reference-staff svg{position:static!important;transform:none!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%;object-fit:contain}
.encyclopedia-app .reference-piano-frame{height:140px!important;min-height:140px;flex:none;max-width:1000px;width:100%;align-self:center;border-radius:8px;border-width:2px}.encyclopedia-app .reference-key.is-harmony-tone.white{background:linear-gradient(#fffdf5 60%,var(--note-color,#526579));box-shadow:none}.encyclopedia-app .reference-key.is-harmony-tone.black{background:linear-gradient(#18202b,var(--note-color,#526579));border:1px solid #121a24;box-shadow:1px 3px 4px #0006}.encyclopedia-app .reference-key .reference-note-marker{background:var(--note-color,#526579)!important;color:white!important;border:2px solid white!important;box-shadow:none!important;width:25px;height:25px;font-size:12px;bottom:20%}.encyclopedia-app .reference-key.white .reference-key-name{color:#142c3e;text-shadow:none}.encyclopedia-app .reference-key.black .reference-key-name{color:white}.encyclopedia-app .reference-library{flex:none;overflow:visible}.encyclopedia-app .reference-switches{gap:10px;flex-wrap:wrap}.encyclopedia-app .reference-switches label{color:#f5e7cb}.reading-reference label[hidden]{display:none!important}
.achievement-card{max-width:720px;margin:12px auto;padding:22px;border:1px solid #bc9d62;border-radius:20px;background:radial-gradient(ellipse at top,#294b5a,#102536 75%);text-align:center;color:#fff1d0}.achievement-card :is(h2,h3,p){color:#fff1d0;margin:6px 0}.achievement-emblem{font-size:48px}.achievement-stars{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;margin:15px auto;max-width:560px}.achievement-stars span{font-size:clamp(18px,3vw,30px);color:#72818a}.achievement-stars .earned{color:#ffd369;text-shadow:0 1px 6px #ffbd4344}.achievement-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.achievement-metrics>div{padding:10px;border:1px solid #506675;border-radius:12px}.achievement-metrics :is(b,small){display:block;color:#fff1d0}.achievement-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:14px 0}.achievement-actions :is(a,button){padding:10px 16px;border:1px solid #bd9c64;border-radius:9px;color:#172e3d;background:#f0dba9;text-decoration:none}
.achievement-grades{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.achievement-grades button{padding:12px 4px!important;background:#ece1c7!important;color:#183441!important}.achievement-grades button[aria-pressed=true]{outline:3px solid #d3ab55}.achievement-grades progress{width:100%;accent-color:#987127}.achievement-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:12px;margin:15px 0}.achievement-list > article{background:#ece1c7;color:#183441;padding:16px;border-radius:12px}.achievement-list > article > :is(h3,p){color:#183441}.achievement-list > article > a{display:inline-block;margin-top:8px;padding:8px 14px;background:#183441;color:#fff4d8;border-radius:8px}.achievement-dashboard{padding:16px;color:#f5e7cb}.achievement-dashboard h2{color:#ffe0a0}.achievement-dashboard>p{color:#f5e7cb}.achievement-dashboard progress{height:12px}
.rhythm-score{display:block!important;overflow:visible!important;background:#ece1c7;border:1px solid #967f51;border-radius:12px;padding:8px}.rhythm-score>svg{width:100%;height:auto!important;max-height:none!important;border:0!important;display:block}.rhythm-school .rhythm-tap{min-height:68px}.rhythm-hub-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
@media(min-width:850px) and (min-height:650px){.note-lab:has(.reading [data-stage]) .lab-brand h1{font-size:24px}.note-lab:has(.reading [data-stage]) .lab-header{padding:8px}.note-lab:has(.reading [data-stage]) .lab-mode-tabs>button{min-height:44px;padding:5px 10px}.note-lab:has(.reading [data-stage]) .reading header{margin:0}}
@media(max-width:650px){.achievement-grades{grid-template-columns:repeat(4,1fr)}.achievement-metrics{grid-template-columns:1fr}.achievement-card{padding:14px}.rhythm-hub-choices{grid-template-columns:1fr}.note-lab .reading-controls{gap:8px}.note-lab .reading-stage{height:140px}.encyclopedia-app .reference-title h2{font-size:19px}}

.feature-page:has(.achievement-dashboard){background:#0d2335;color:#fff1d0;max-width:1180px}.feature-page:has(.achievement-dashboard)>a{color:#f6d89a}.achievement-dashboard h1{color:#fff1d0}.feature-page .achievement-actions a{color:#172e3d}.achievement-list .achievement-card{background:radial-gradient(ellipse at top,#294b5a,#102536 75%);color:#fff1d0;padding:16px}.rhythm-hub-choices>article{padding:20px;border:1px solid #967f51;border-radius:14px;background:#19374a}.rhythm-hub-choices a{display:inline-block;padding:12px;border:1px solid #bca06a;border-radius:8px}.reading-stage+.reading-controls{justify-content:flex-start}.note-lab .reading-controls+ .reading-answers{margin-top:12px}

.encyclopedia-app .reference-key.white .reference-key-name{background:#fff8e8e8;border-radius:4px;padding:2px 4px}.encyclopedia-app .reference-key .reference-note-marker{width:auto!important;min-width:27px;max-width:95%;padding:0 4px;border-radius:7px;box-sizing:border-box}.note-lab .exercise-content .notation-card.large .music-symbol-surface svg{max-height:100%;width:100%;object-fit:contain}

.note-lab .reading-lessons summary{color:#183441}.achievement-list>article>.achievement-stars .earned{color:#8b6415;text-shadow:none}.learning-app .quiz-staff:not(:has(.placement-overlay)),.learning-app .review-note{overflow:visible!important}.learning-app .quiz-staff:has(.interval-keyboard){display:flex;flex-direction:column;height:230px!important;min-height:0}.learning-app .quiz-staff:has(.interval-keyboard)>svg:not(.interval-keyboard){flex:1 1 0;height:100%!important;min-height:0;min-width:0}.learning-app .quiz-staff>.interval-keyboard{flex:0 0 65px;height:65px!important;min-width:0}
/* 4.0.0: duration controls, readable labels and responsive dashboards */
.rhythm-root{width:min(1500px,100%)!important;max-width:none!important;margin:auto!important;padding:16px!important;box-sizing:border-box}.rhythm-school{max-width:none!important;width:100%!important;box-sizing:border-box;padding:20px!important}.rhythm-school h1{font-size:clamp(28px,4vw,44px)!important;margin:6px 0 12px}.rhythm-school .course-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center}.rhythm-school .course-toolbar span{flex:1 1 260px}.rhythm-school .rhythm-count:empty{display:none}.rhythm-actions{display:flex;flex-wrap:wrap;gap:10px}.rhythm-school [data-record],.reading [data-start]{background:#237743!important;color:white!important}.rhythm-school [data-pause],.reading [data-pause]{background:#f5ce58!important;color:#192d40!important}.rhythm-school [data-stop],.reading [data-stop]{background:#ad353d!important;color:white!important}.rhythm-school button:disabled{opacity:.48;cursor:not-allowed}.rhythm-tap{touch-action:none;user-select:none;margin:12px 0!important;min-height:65px}.rhythm-tap.is-held{background:#397e66!important;color:white!important}.duration-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:16px 0}.duration-results>span{background:#efe4c7;color:#173447;border-radius:12px;padding:14px;text-align:center}.duration-results b{display:block;font-size:24px}.card-dashboard{max-width:1250px;margin:auto;padding:24px;color:#f4e8c9}.card-dashboard table{width:100%;border-collapse:collapse}.card-dashboard td,.card-dashboard th{padding:10px;border-bottom:1px solid #71848a;text-align:left}.card-dashboard .grade-progress{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.card-dashboard .grade-progress button{display:grid;gap:8px;background:#efe4c7;color:#173447;padding:12px;border-radius:14px}.card-dashboard article{padding:12px;border-bottom:1px solid #71848a}.card-dashboard code{overflow-wrap:anywhere}.card-dashboard a{color:#8dd9ff}.card-dashboard .course-selectors{flex-wrap:wrap}.card-dashboard select{max-width:260px}.reference-note-marker{font-size:0!important;width:12px!important;height:12px!important;min-width:0!important;bottom:40px!important;border-radius:50%!important}.reference-key-name{z-index:3}.reference-key.is-selected .reference-key-name{display:block!important}.card-dashboard [aria-pressed=true]{outline:3px solid #e3b545}@media(max-width:600px){.card-dashboard{padding:10px}.card-dashboard th,.card-dashboard td{padding:5px;font-size:12px}}

.auth-header{display:flex;justify-content:flex-end;align-items:center;gap:14px;flex-wrap:wrap;background:#102b3e;color:#f7e6b6;padding:8px 24px;min-height:40px;box-sizing:border-box}.auth-header a{color:#f7e6b6;text-decoration:none}.auth-header button,.auth-header select{color:#183b4d;background:#f5e8c6;border:1px solid #bb9e5d;border-radius:8px;padding:7px;font:inherit}body{padding-top:0}.school-signed-in .auth-header{display:flex}
/* 4.0.0: account chrome, journal layout and phone-only piano controls. */
:root{--auth-header-height:56px;--school-view-height:calc(100dvh - var(--auth-header-height))}
body>.auth-header{position:fixed;inset:0 0 auto;z-index:1000;min-height:56px;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-wrap:wrap;box-shadow:0 2px 12px #0004;font:14px/1.3 system-ui,sans-serif}
.auth-header .auth-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.auth-header .auth-links a,.auth-header .auth-links button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid #a88c56;border-radius:9px;font:600 14px/1.3 system-ui;background:#173c50;color:#fff1cc;pointer-events:auto;white-space:nowrap}
.auth-header .auth-language{display:flex;align-items:center;gap:8px;margin:0}.auth-header .auth-language img{display:block;flex:none;width:28px;height:18px;object-fit:cover;border-radius:2px}.auth-header select{min-height:38px;max-width:190px;font:14px system-ui}.auth-status{font-size:12px;color:#ffe2a7}.auth-header :focus-visible{outline:3px solid #ffe099;outline-offset:2px}
html body #app{top:var(--auth-header-height);bottom:0;height:var(--school-view-height)}
html body .note-lab-host{top:var(--auth-header-height);height:var(--school-view-height)}
html body :is(.note-lab,.encyclopedia-app,.learning-app,.feature-page,.subscription-page){height:var(--school-view-height);min-height:0}
html body .app-shell .art-stage{max-height:var(--school-view-height)}
html body .school-signin{display:none!important;pointer-events:none!important}
html body .lms-shell-ui.is-utility-route .side-dock{display:none!important}
html body .achievements-page{width:100%;max-width:1400px;margin:0 auto;padding:24px clamp(16px,3vw,44px) 40px;overflow-y:auto;overflow-x:hidden;background:linear-gradient(145deg,#102b3b,#091b2c);color:#f6ecd7;font:16px/1.5 system-ui,sans-serif;box-sizing:border-box}
.achievements-page .card-dashboard{max-width:none;margin:0 0 26px;padding:0}.card-dashboard,.card-dashboard *{box-sizing:border-box}.card-dashboard h1{font:700 clamp(26px,3vw,38px)/1.2 Georgia,serif;color:#fff0cb;margin:0 0 12px}.card-dashboard>p{max-width:950px;color:#d5e3e7;margin:12px 0 18px}
.card-dashboard .grade-progress{grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:12px;margin:22px 0}.card-dashboard .grade-progress button{min-width:0;margin:0;padding:18px 12px;gap:10px;grid-template-rows:auto auto 10px auto;border:1px solid #b79e68;border-radius:14px;background:#f0e5cb;color:#183447;white-space:normal;line-height:1.4;text-align:center;box-shadow:0 4px 14px #0002}.card-dashboard .grade-progress button>*{min-width:0;max-width:100%;overflow-wrap:anywhere}.card-dashboard .grade-progress button b{font-size:18px}.card-dashboard .grade-progress button span{font-size:14px}.card-dashboard progress{display:block;width:100%;height:10px;min-width:0;max-width:100%;border:0;border-radius:8px;overflow:hidden;accent-color:#356f66}.card-dashboard progress::-webkit-progress-bar{background:#c8c2af;border-radius:8px}.card-dashboard progress::-webkit-progress-value{background:#356f66;border-radius:8px}.card-dashboard [aria-pressed=true]{outline:2px solid #e2b858;outline-offset:2px}
.card-dashboard .course-selectors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;margin:20px 0;padding:18px;border:1px solid #506775;border-radius:16px;background:#163447}.card-dashboard .course-selectors>label{display:grid;gap:7px;min-width:0;color:#fff0cb;font-size:14px;font-weight:600}.card-dashboard .course-selectors select{display:block;width:100%;max-width:100%;min-width:0;min-height:42px;padding:8px;border:1px solid #ac9365;border-radius:8px;font:14px/1.3 system-ui}.card-dashboard .progress-date{grid-column:1/-1;min-width:0;margin:0;padding:0;border:0}.card-dashboard .progress-date legend{font-weight:600;font-size:14px;padding:0;margin-bottom:7px;color:#fff0cb}.card-dashboard .english-date{display:grid;grid-template-columns:80px minmax(115px,180px) 96px auto;gap:8px;align-items:center;justify-content:start}.card-dashboard .english-date input{width:100%;min-width:0;height:42px;background:#fff8e8;color:#183441;border:1px solid #ac9365;border-radius:8px;padding:8px;font:14px system-ui}.card-dashboard .english-date small{grid-column:1/-1;color:#d5e3e7;min-height:20px;font-weight:400}.card-dashboard .english-date button{margin:0;height:42px;min-height:42px}
.card-dashboard .duration-results{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.card-dashboard .duration-results>span{min-width:0;padding:18px 12px;display:flex;flex-direction:column;justify-content:space-between;gap:8px;font-size:14px;line-height:1.4}.card-dashboard .duration-results b{font-size:clamp(22px,2.5vw,30px)}
.card-dashboard button:not([data-grade]),.card-dashboard>details a{background:#204759;color:#fff1d1;border:1px solid #8da6aa;border-radius:9px;font:600 14px/1.4 system-ui;min-height:40px;padding:9px 12px;margin:0;white-space:normal;overflow-wrap:anywhere}.card-dashboard table{margin:20px 0;table-layout:fixed;border-radius:12px;background:#102d3d}.card-dashboard th,.card-dashboard td{padding:14px 10px;font-size:14px;overflow-wrap:anywhere}.card-dashboard th{color:#ffe8b1;font-weight:600}.card-dashboard th:first-child{width:28%}.card-dashboard td{color:#e3edf1}.card-dashboard details{padding:16px;border:1px solid #506775;border-radius:12px;margin-top:16px}.card-dashboard summary{cursor:pointer;line-height:1.5;color:#ffe8b1}.achievements-page .achievement-dashboard{padding:16px 0}.achievements-page .achievement-grades progress{min-width:0;width:100%}.achievements-page .achievement-grades button{min-width:0;white-space:normal;overflow-wrap:anywhere}
html body .ency-scroll-track{top:calc(var(--auth-header-height) + 12px);bottom:max(12px,env(safe-area-inset-bottom));right:max(5px,env(safe-area-inset-right));width:44px;z-index:850}.ency-scroll-thumb{left:2px;width:38px}.has-page-scroll-handle #app :is(.lab-workspace,.achievements-page,.subscription-page){padding-right:56px!important}
@media(max-width:760px){.card-dashboard .duration-results{grid-template-columns:repeat(2,minmax(0,1fr))}.card-dashboard .course-selectors{grid-template-columns:1fr 1fr}.card-dashboard .course-selectors>label:nth-child(3){grid-column:1/-1}.achievements-page .achievement-grades{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}}
@media(max-width:600px){body>.auth-header{gap:6px;padding:5px 8px;min-height:48px}.auth-header .auth-links{gap:4px}.auth-header .auth-links a,.auth-header .auth-links button{padding:7px 8px;min-height:36px;font-size:12px}.auth-header .auth-language{gap:5px}.auth-header select{max-width:120px;min-height:36px;padding:5px;font-size:12px}.auth-header .auth-language img{width:24px;height:16px}.card-dashboard .course-selectors{grid-template-columns:1fr;padding:12px}.card-dashboard .course-selectors>label:nth-child(3){grid-column:auto}.card-dashboard .english-date{grid-template-columns:60px minmax(85px,1fr) 70px;gap:6px}.card-dashboard .english-date button{grid-column:1/-1}.card-dashboard table,.card-dashboard tbody,.card-dashboard tr,.card-dashboard td{display:block;width:100%}.card-dashboard thead{display:none}.card-dashboard tr{padding:10px;margin-bottom:10px;border:1px solid #506775;border-radius:12px}.card-dashboard td{display:flex;justify-content:space-between;gap:12px;border:0;padding:5px}.card-dashboard td[data-label]::before{content:attr(data-label);color:#d3dee2}.card-dashboard td:first-child button{width:100%}.card-dashboard .grade-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.card-dashboard .grade-progress button{padding:12px 8px}.card-dashboard .grade-progress button span{font-size:12px}}
@media(max-width:600px), (pointer:coarse) and (max-height:500px) and (max-width:1000px){
 .note-lab .piano-keyboard{width:2080px!important;min-width:2080px!important;min-height:0}.note-lab .piano-shell .piano-scroll{height:156px!important;min-height:0!important}.note-lab .piano-shell.has-staff .piano-scroll{height:110px!important}.note-lab .piano-key .piano-key-name{font-size:11px}.note-lab .piano-key.black .piano-key-name{font-size:10px!important}.note-lab .piano-actions button{font-size:12px;min-height:38px;padding:6px 9px}.note-lab .piano-octaves{gap:4px}.note-lab .piano-octaves>button:not(.all-octaves){min-width:78px;min-height:38px;padding:4px 6px}.note-lab .piano-heading h2{font-size:17px}.note-lab .piano-master-volume{font-size:12px}.note-lab .piano-label-switch{padding:7px}.note-lab .piano-label-switch strong{font-size:13px}.note-lab .piano-label-switch small{font-size:11px}
}
html body :is(.encyclopedia-host,.learning-host){top:var(--auth-header-height);height:var(--school-view-height)}
@media(max-width:600px) and (orientation:portrait){body:has(#app :is(.note-lab-host,.achievements-page,.subscription-page)) .orientation-guard{display:none!important}}
/* Preserve the artwork's proportions inside the space below the account bar. */
html body .app-shell .art-stage{width:min(100vw,calc(var(--school-view-height) * var(--art-ratio-num)))!important;height:min(var(--school-view-height),calc(100vw * var(--art-ratio-inv)))!important}
@media(min-width:721px) and (orientation:landscape){html body .app-shell .art-stage{width:min(calc(100vw - 440px),calc(var(--school-view-height) * var(--art-ratio-num)))!important;height:min(var(--school-view-height),calc((100vw - 440px) * var(--art-ratio-inv)))!important}}

/* Achievements page redesign 4.0.6 */
html body .achievements-page{background:linear-gradient(145deg,#0a2435,#0d3247 55%,#0b2131);color:#f7ecd2;max-width:1500px;padding:20px clamp(16px,3vw,44px) 48px}
.achievements-shell{display:grid;gap:28px}
.achievements-topbar{display:flex;justify-content:flex-start;align-items:center}
.achievement-nav-group{display:flex;gap:10px;align-items:center}
.achievement-nav-btn{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid #d9b96c;background:#102e41;color:#f5dfab;box-shadow:0 6px 16px #0004;text-decoration:none}
.achievement-nav-btn:hover,.achievement-nav-btn:focus-visible{outline:2px solid #fff0cc;outline-offset:2px;background:#173c55}
.achievement-nav-btn svg{width:21px;height:21px}
.achievements-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,.5fr) minmax(300px,.95fr);gap:18px;align-items:start}
.achievement-hero-copy{display:grid;gap:16px}
.achievement-eyebrow{margin:0;color:#f4ddb0;font:500 clamp(14px,1vw,17px)/1.3 Georgia,serif;letter-spacing:.14em;text-transform:uppercase}
.achievement-hero-copy h1{margin:0;color:#f5d790;font:700 clamp(42px,4vw,68px)/1.05 Georgia,serif;text-wrap:balance}
.achievement-hero-status{margin:0;max-width:760px;color:#eaf1ef;font:400 clamp(18px,1.5vw,28px)/1.45 system-ui,sans-serif}
.achievement-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.achievement-stats-grid article{min-height:128px;padding:22px;border:1px solid rgba(125,173,184,.5);border-radius:22px;background:rgba(24,71,91,.62);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.achievement-stats-grid strong{display:block;margin-bottom:12px;color:#f7cf7b;font:700 clamp(42px,3.5vw,58px)/1 Georgia,serif}
.achievement-stats-grid span{display:block;color:#f3f0e4;font:500 clamp(17px,1.2vw,22px)/1.35 system-ui,sans-serif}
.achievement-script-wrap{display:flex;align-items:center;justify-content:center;min-height:100%}
.achievement-script-belt{margin:0;text-align:center;color:var(--belt-script-color,#f6f3eb);font:500 clamp(32px,2.7vw,52px)/1.15 "Segoe Script","Brush Script MT",cursive;text-shadow:0 4px 10px rgba(0,0,0,.25)}
.achievement-belt-card{min-width:0}
.achievement-belt-inner{padding:24px;border:1px solid rgba(125,173,184,.48);border-radius:30px;background:rgba(24,71,91,.52)}
.achievement-belt-inner h2{margin:14px 0 8px;color:#fff7e6;font:700 clamp(22px,2vw,32px)/1.2 Georgia,serif;text-align:center}
.achievement-belt-inner>p{margin:0;color:#e7f0f3;text-align:center}
.musical-belt{position:relative;width:min(360px,94%);height:122px;margin:0 auto 10px;filter:drop-shadow(0 10px 10px rgba(0,0,0,.35))}
.musical-belt-band{position:absolute;left:12%;right:12%;top:38px;height:31px;border:2px solid #102138;border-radius:9px;background:var(--belt-color);box-shadow:inset 0 4px 5px rgba(255,255,255,.35),inset 0 -6px 6px rgba(0,0,0,.22)}
.musical-belt-tail{position:absolute;top:56px;width:36px;height:72px;border:2px solid #102138;border-radius:5px 5px 12px 12px;background:var(--belt-color);box-shadow:inset 0 3px 4px rgba(255,255,255,.2),inset 0 -4px 5px rgba(0,0,0,.18)}
.musical-belt-tail--left{left:42%;transform:rotate(17deg);transform-origin:top center}
.musical-belt-tail--right{left:54%;height:78px;transform:rotate(-13deg);transform-origin:top center}
.musical-belt-knot{position:absolute;left:50%;top:31px;transform:translateX(-50%);z-index:2;display:grid;place-items:center;width:68px;height:46px;border:2px solid #102138;border-radius:12px;background:var(--belt-color);box-shadow:inset 0 3px 5px rgba(255,255,255,.35);color:var(--belt-ink);font:900 30px/1 Georgia,serif}
.musical-belt-stripe{position:absolute;z-index:3;top:32px;width:13px;height:40px;border:1px solid #102138;border-radius:3px;background:var(--stripe-color);box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.musical-belt-stripe--1{left:calc(50% + 47px);transform:rotate(-4deg)}
.musical-belt-stripe--2{left:calc(50% + 65px);transform:rotate(-4deg)}
.musical-belt--mini{width:165px;height:66px;margin:6px auto}
.musical-belt--mini .musical-belt-band{top:21px;height:18px;border-radius:6px}
.musical-belt--mini .musical-belt-tail{top:30px;width:18px;height:36px;border-radius:3px 3px 7px 7px}
.musical-belt--mini .musical-belt-tail--left{left:43%}
.musical-belt--mini .musical-belt-tail--right{left:53%;height:38px}
.musical-belt--mini .musical-belt-knot{top:17px;width:31px;height:21px;border-radius:6px;font-size:0}
.musical-belt--mini .musical-belt-stripe{top:18px;width:8px;height:23px}
.musical-belt--mini .musical-belt-stripe--1{left:calc(50% + 23px)}
.musical-belt--mini .musical-belt-stripe--2{left:calc(50% + 33px)}
.achievement-belt-guide{margin-top:18px;padding:14px 16px;border:1px solid rgba(227,210,170,.24);border-radius:18px;background:rgba(10,36,52,.5)}
.achievement-belt-guide summary{cursor:pointer;color:#ffe2a0;font-weight:700}
.achievement-belt-guide>p{margin:12px 0 16px;color:#e7f0f3;font-size:14px;line-height:1.55;text-align:left}
.belt-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.belt-guide-item{padding:14px;border:1px solid rgba(128,165,177,.3);border-radius:18px;background:rgba(14,45,63,.7)}
.belt-guide-item small{display:block;margin-bottom:4px;color:#b6d6df;font-weight:700;letter-spacing:.03em}
.belt-guide-item strong{display:block;margin-bottom:8px;font-size:16px;line-height:1.35}
.belt-guide-item p{margin:0;color:#dde8eb;font-size:13px;line-height:1.45}
.journey-section{display:grid;gap:10px}
.journey-overline{margin:0;color:#fff1d0;font:500 clamp(28px,2vw,40px)/1.2 "Segoe Script","Brush Script MT",cursive}
.journey-section h2{margin:0;color:#f5d790;font:700 clamp(34px,2.9vw,52px)/1.12 Georgia,serif}
.journey-grade-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px}
.journey-grade-card{position:relative;padding:20px 16px 18px;border:1px solid #b89c63;border-radius:24px;background:#e8dfc9;color:#183441;text-align:center;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.12)}
.journey-grade-card.is-active{background:#dce5df;box-shadow:0 0 0 3px #d9b96c inset,0 12px 24px rgba(0,0,0,.16)}
.journey-grade-card h3{margin:14px 0 10px;color:#183441;font:700 clamp(19px,1.5vw,26px)/1.2 system-ui,sans-serif}
.journey-grade-card p{margin:10px 0 8px;color:#244152;font-size:13px;line-height:1.35}
.journey-grade-badge{display:grid;place-items:center;width:52px;height:52px;margin:0 auto;border-radius:50%;background:#1c536c;color:#fff1d0;font:700 25px/1 Georgia,serif}
.journey-meter{height:12px;border-radius:999px;background:#cec7b0;overflow:hidden}
.journey-meter span{display:block;height:100%;border-radius:999px;background:#b6af95}
.achievement-results-section{display:grid;gap:18px}
.achievement-results-head{display:flex;align-items:end;justify-content:space-between;gap:16px}
.achievement-results-overline{margin:0 0 6px;color:#d6e5e7;font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:12px}
.achievement-results-head h2{margin:0;color:#fff2ce;font:700 clamp(28px,2.3vw,42px)/1.15 Georgia,serif}
.achievement-results-note{margin:0;max-width:430px;color:#dce8eb;text-align:right}
.achievement-results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:16px}
.achievement-result-item,.achievement-empty{padding:24px 20px;border:1px solid rgba(184,156,99,.7);border-radius:24px;background:#e8dfc9;color:#183441;box-shadow:0 10px 24px rgba(0,0,0,.12)}
.achievement-result-item h3,.achievement-empty h3{margin:10px 0 12px;color:#183441;font:700 clamp(18px,1.4vw,26px)/1.3 system-ui,sans-serif;text-align:center}
.achievement-result-icon{display:grid;place-items:center;height:46px;font-size:40px}
.achievement-repeat{display:inline-block;margin-top:16px;padding:12px 18px;border-radius:12px;background:#20536b;color:#fff0cf;text-decoration:none;font-weight:700}
.achievement-repeat:hover,.achievement-repeat:focus-visible{outline:2px solid #183441;outline-offset:2px;background:#1b465a}
.achievement-card-stats,.achievement-card-date,.achievement-card-score,.achievement-empty p{margin:8px 0;color:#244152;text-align:center;line-height:1.45}
.achievement-stars{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;margin:15px auto;max-width:560px}
.achievement-stars span{font-size:clamp(15px,2.1vw,24px);color:#9dacb2}
.achievement-stars .earned{color:#af7a1f;text-shadow:none}
.achievement-stars--compact{max-width:100%;gap:2px;margin:12px auto}
.achievement-stars--compact span{font-size:clamp(11px,1.35vw,18px)}
@media(max-width:1280px){
  .achievements-hero{grid-template-columns:1fr 1fr}
  .achievement-script-wrap{grid-column:1/-1;order:3;min-height:auto}
  .achievement-belt-card{grid-column:2/3}
}
@media(max-width:980px){
  .achievement-stats-grid{grid-template-columns:1fr}
  .journey-grade-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .achievement-results-head{flex-direction:column;align-items:start}
  .achievement-results-note{text-align:left}
  .belt-guide-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .achievements-hero{grid-template-columns:1fr}
  .achievement-belt-card{grid-column:auto}
  .journey-grade-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  .journey-grade-grid{grid-template-columns:1fr}
  .achievement-nav-btn{width:42px;height:42px}
  .achievement-belt-inner{padding:18px}
}
