/* Shared tokens: light and dark retain the same layout. */
:root{color-scheme:light;--bg:#f1f0f7;--surface:#ffffffb8;--surface-solid:#faf9ff;--surface-soft:#ece9f6;--ink:#24202f;--muted:#817593;--line:#e5e0ef;--accent:#8661d2;--accent-soft:#e8dcff;--pink:#f9d6f2;--hero:linear-gradient(110deg,#faeafb 0%,#eee8ff 60%,#f5d6fa 100%);--primary:#211b2d;--primary-ink:#fff;--shadow:0 10px 36px #7c69a00b,0 1px 2px #ffffff88;--dock:#ffffffdd;--good:#7360a0;--radius:24px}
:root[data-theme=dark]{color-scheme:dark;--bg:#17121e;--surface:#2a2332b8;--surface-solid:#292230;--surface-soft:#32293d;--ink:#f6f0fc;--muted:#b6a5c7;--line:#ffffff12;--accent:#d9b5ff;--accent-soft:#4c365f;--pink:#eaa9e9;--hero:linear-gradient(110deg,#3a2a46 0%,#292032 60%,#4a2d53 100%);--primary:linear-gradient(105deg,#e4c5ff,#f2c6f8);--primary-ink:#24172e;--shadow:0 12px 38px #07030d26,inset 0 1px 0 #ffffff04;--dock:#292130ed;--good:#d0b6ee}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased;transition:background .25s,color .25s}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:active:not(:disabled){transform:translateY(1px)}button{transition:background .16s,box-shadow .16s,transform .16s}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.3;letter-spacing:-.04em;font-weight:650}h2{font-size:17px;line-height:1.45;font-weight:600}h3{font-size:16px;font-weight:600}p+p{margin-top:10px}small,.minor{font-size:13px;color:var(--muted)}strong{font-weight:600}.icon{height:22px;width:22px;flex:none;vertical-align:middle}.icon-button{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--surface);box-shadow:var(--shadow)}.icon-button:hover{background:var(--surface-soft)}.skip-link{position:fixed;top:-100px;left:12px;z-index:50;background:var(--surface-solid);padding:12px;border-radius:12px}.skip-link:focus{top:12px}
.preview-bar{max-width:1320px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px;color:var(--muted)}.preview-title{display:flex;align-items:center;gap:8px}.preview-title .icon{width:17px;height:17px}.preview-tools{display:flex;align-items:center;gap:8px}.preview-tools button,.preview-tools a{padding:5px 11px;border-radius:20px;border:1px solid var(--line);background:transparent;font-size:12px;color:var(--muted);white-space:nowrap}.preview-tools .selected{color:var(--ink);background:var(--surface)}
.shell{max-width:1240px;margin:12px auto 48px;display:grid;grid-template-columns:100px minmax(0,1fr);gap:24px;padding:0 24px;min-height:calc(100dvh - 115px)}.sidebar{display:flex;flex-direction:column;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:24px 10px;position:sticky;top:20px;height:calc(100dvh - 100px);max-height:860px}.sidebar-brand{height:46px;width:46px;display:grid;place-items:center;background:var(--accent-soft);border-radius:16px;margin-bottom:30px;color:var(--accent)}.side-nav{width:100%;display:flex;flex-direction:column;gap:12px}.nav-item{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);min-height:70px;border-radius:22px}.nav-item>span:first-child{height:36px;min-width:54px;border-radius:22px;display:grid;place-items:center}.nav-item.active{color:var(--accent)}.nav-item.active>span:first-child{background:var(--accent-soft)}.side-nav .nav-item.active{background:var(--accent-soft)}.side-nav .nav-item.active>span:first-child{background:transparent}.sidebar .theme-button{margin-top:auto;padding:10px;min-width:44px}.sidebar .theme-button .theme-label{display:none}
.study-main{max-width:880px;width:100%;padding:12px 0 24px;margin:auto}.page-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.brand{font-size:14px;font-weight:500;display:flex;align-items:center;gap:8px}.brand .icon{width:19px;color:var(--accent)}.theme-button{border:1px solid var(--line);border-radius:25px;min-height:40px;display:flex;align-items:center;gap:9px;padding:5px 13px 5px 5px;background:var(--surface);font-size:12px}.theme-button .theme-icon{width:30px;height:30px;display:grid;place-items:center;background:var(--surface-solid);border-radius:50%;box-shadow:var(--shadow);color:#f4b958}:root[data-theme=dark] .theme-icon{color:#e5c3ff;background:var(--surface-soft)}.theme-icon .icon{width:19px;height:19px}.page-heading{margin-bottom:24px}.page-heading p{margin-top:6px;color:var(--muted);font-size:15px}.dashboard-grid{display:grid;grid-template-columns:1.06fr 1fr;gap:24px;align-items:start}.stack{display:flex;flex-direction:column;gap:20px}.panel{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}.panel-pad{padding:22px}.hero{position:relative;overflow:hidden;padding:26px;min-height:215px;background:var(--hero);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.hero-content{position:relative;z-index:1;max-width:86%}.eyebrow{font-size:12px;letter-spacing:.02em;margin-bottom:8px}.hero h2{font-size:26px;letter-spacing:-.04em;line-height:1.35;margin-bottom:6px}.hero p{color:var(--muted);font-size:14px}.hero .btn{margin-top:18px}.sculpture{position:absolute;inset:0;overflow:hidden;pointer-events:none}.sculpture i{display:block;position:absolute;height:180px;width:180px;right:-48px;top:-84px;border-radius:50%;background:linear-gradient(125deg,#cfb5fb,#b699f1);box-shadow:inset 0 1px 0 #ffffff66}.sculpture i:nth-child(2){width:200px;height:200px;right:-28px;top:-28px;background:linear-gradient(130deg,#f6d4f4,#e7a6ef);transform:rotate(20deg)}.sculpture i:nth-child(3){width:150px;height:150px;right:-70px;top:82px;background:linear-gradient(145deg,#baa0f0,#d6b0f7)}.sculpture i:nth-child(4){width:144px;height:144px;right:-32px;top:150px;background:linear-gradient(125deg,#ffdcf0,#edb0e3)}:root[data-theme=dark] .hero{border-color:#ffffff24}.sculpture.full{opacity:.9}.sculpture.subtle{opacity:.5}.btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 22px;border-radius:30px;border:1px solid transparent;font-size:14px;font-weight:550;line-height:1.35;white-space:normal}.btn.primary{background:var(--primary);color:var(--primary-ink);box-shadow:0 4px 14px #2d163811}.btn.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}.btn.ghost{background:transparent;color:var(--muted)}.btn:hover:not(:disabled){box-shadow:0 5px 20px #765b9b1c}.btn .icon{width:19px;height:19px}.btn.wide{width:100%}.btn.small{min-height:40px;padding:8px 15px;font-size:13px}.btn.selected{background:var(--accent-soft);border-color:var(--accent);color:var(--ink)}.button-pair{display:flex;align-items:center;gap:10px}.button-pair .btn{flex:1}.segment{background:var(--surface-soft);border:1px solid var(--line);padding:4px;display:flex;gap:3px;border-radius:30px}.segment button{flex:1;min-height:40px;border:0;border-radius:25px;background:transparent;color:var(--muted);font-size:13px;padding:7px 12px}.segment button.active{background:var(--primary);color:var(--primary-ink);box-shadow:0 2px 5px #1d102714}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-title:not(:first-child){margin-top:22px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;color:var(--muted);font-size:12px;padding:7px 0;min-height:36px}.text-button .icon{width:15px;height:15px}.list{padding:0 14px}.list-row{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;padding:15px 2px;border:0;background:transparent;text-align:left}.list-row+.list-row{border-top:1px solid var(--line)}.row-icon{width:42px;height:42px;flex:none;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:18px;font-weight:550}.list-row:nth-child(even) .row-icon{background:var(--pink);color:#9f5897}:root[data-theme=dark] .list-row:nth-child(even) .row-icon{background:#56344f;color:#efa9e9}.row-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.row-copy strong{font-size:14px}.row-copy>span{font-size:12px;color:var(--muted);line-height:1.5}.row-chevron{height:16px;width:16px;color:var(--muted)}.list-row.current{background:var(--accent-soft);border-radius:16px;padding:12px;margin:3px -7px;width:calc(100% + 14px);border-top-color:transparent}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:18px;padding:4px 10px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:500;white-space:nowrap}.badge.quiet{background:var(--surface-soft);color:var(--muted)}.saved{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:12px;margin-top:20px}.saved .icon{width:18px;height:18px}.saved.save-failed{color:var(--ink)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:0;text-align:center}.stats>div+div{border-left:1px solid var(--line)}.stats span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.stats strong{display:block;font-size:30px;font-weight:500;line-height:1.3}.stat-skip{text-align:center;margin-top:14px}.stat-line{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted);padding-top:16px;margin-top:18px;border-top:1px solid var(--line)}.summary-hero .summary-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.summary-count{font-size:40px;line-height:1;text-align:center;display:flex;flex-direction:column;gap:6px}.summary-count small{font-size:12px}.summary-hero .stats{background:var(--surface);border-radius:18px;padding:18px 10px;margin-top:24px}.suggestion{padding:16px;display:flex;align-items:center;gap:12px;background:var(--accent-soft);border-radius:18px;color:var(--ink);font-size:13px}.suggestion .icon{color:var(--accent)}.stage-path{display:flex;gap:8px;align-items:center;margin:8px 0 24px}.stage{padding:0;border:0;background:transparent;display:flex;flex-direction:column;gap:6px;align-items:center;flex:1;font-size:12px;color:var(--muted);position:relative}.stage>span{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}.stage:not(:last-child):after{content:"";width:16px;height:1px;background:var(--line);position:absolute;right:-12px;top:21px}.stage.active{color:var(--accent)}.stage.active>span{background:var(--accent-soft)}.stage .icon{width:21px;height:21px}.course-hero{margin-bottom:24px}.practice-hero{min-height:230px}.practice-hero h2{max-width:230px}.practice-hero .badge{margin-top:10px;background:var(--surface);color:var(--muted)}.sound-disc{position:absolute;right:24px;top:54px;width:72px;height:72px;border-radius:50%;background:linear-gradient(120deg,#fff5ff,#dabdf9);color:#8865ba;display:grid;place-items:center;box-shadow:14px 7px 0 #b895ef,24px 11px 0 #dfcaf8,inset 2px 1px 0 #fff}.sound-disc .icon{width:33px;height:33px}.practice-hero .hero-content{max-width:75%}.work-hero{min-height:290px}.work-hero .hero-content{max-width:none}.work-hero h2{margin-top:13px}.work-hero .contour{max-width:86%;margin:16px 0}.contour{color:#ba8be5}.contour svg{width:100%;height:110px;display:block;overflow:visible}.contour text{fill:var(--muted);stroke:none;font-size:12px}:root[data-theme=dark] .contour{color:#d49de8}.work-hero .saved{justify-content:flex-start;margin:0 0 16px}.work-filter{margin-bottom:24px}.empty-panel{text-align:center;padding:34px 20px}.empty-panel .row-icon{margin:0 auto 16px;width:56px;height:56px}.empty-panel p{max-width:310px;margin:10px auto 18px;font-size:14px;color:var(--muted)}.round-record{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);width:100%;text-align:left}.round-record+.round-record{margin-top:10px}.round-record small{margin-left:auto}.record-detail{display:flex;flex-direction:column;gap:8px;margin-top:12px}.record-item{padding:13px;border-radius:14px;background:var(--surface-soft);font-size:13px;display:flex;justify-content:space-between;gap:16px}.record-item button{background:none;border:0;color:var(--accent);font-size:12px;min-height:32px}.bottom-nav{display:none}
/* Focused classroom */
.focus-shell{display:block;max-width:600px;margin:18px auto 48px;padding:0 24px}.focus-main{padding:10px 0 28px}.focus-header{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:24px}.focus-header>strong{font-size:15px;text-align:center;flex:1}.focus-header .btn{padding:8px 14px;min-height:40px;font-size:12px}.progress{display:flex;gap:7px;margin-bottom:9px}.progress i{height:6px;flex:1;background:var(--surface-soft);border-radius:10px}.progress i.past{background:var(--accent)}.progress-label{text-align:center;color:var(--muted);font-size:12px;margin-bottom:30px}.lesson-title{margin-bottom:20px}.lesson-title h1{font-size:28px}.lesson-title p{font-size:14px;color:var(--muted);margin-top:9px}.narration{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:20px;text-align:left;width:100%;color:var(--ink)}.narration .row-icon{width:42px;height:42px}.narration span:nth-child(2){font-size:14px}.scrub{display:block;height:4px;flex:1;background:var(--surface-soft);border-radius:4px;position:relative;overflow:hidden}.scrub:before{content:"";width:8px;height:8px;background:var(--accent);display:block;border-radius:50%;position:relative;top:-2px}.playing .scrub:before{animation:scrub 4s linear infinite;width:30%}.explore-panel{position:relative;overflow:hidden;padding:24px;margin-bottom:24px;background:var(--hero)}.explore-panel>*:not(.sculpture){position:relative;z-index:1}.explore-panel h2{margin-bottom:16px}.pitch-space{height:150px;position:relative;background:repeating-linear-gradient(to top,transparent 0,transparent 36px,var(--line) 36px,var(--line) 37px);margin:14px 0 24px}.pitch-marker{position:absolute;display:flex;align-items:center;gap:10px;left:40%;transition:bottom .2s;font-size:12px}.pitch-marker i{width:18px;height:18px;background:#bb99f1;border:2px solid #f8efff;border-radius:50%;box-shadow:0 0 0 5px #b993e41a}.pitch-marker.target i{background:#ecabe7}.pitch-controls{display:flex;justify-content:space-around;gap:15px;margin:20px 0}.pitch-control{padding:0;background:transparent;border:0;display:flex;align-items:center;flex-direction:column;gap:9px;font-size:13px}.pitch-control>span{height:62px;width:62px;display:grid;place-items:center;border-radius:50%;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}.pitch-control:first-child>span{background:var(--accent-soft)}.pitch-control:last-child>span{background:var(--pink);color:#744767}.pitch-control .icon{height:28px;width:28px}.center-note{text-align:center;font-size:12px;color:var(--muted);margin-top:18px}.sticky-actions{display:flex;flex-direction:column;gap:8px;padding-top:8px}.listening{padding:32px 22px 22px;text-align:center;margin:22px 0 20px}.sound-pair{display:flex;justify-content:space-around;gap:20px;margin:10px 0 24px}.sound-item{display:flex;flex-direction:column;gap:13px;align-items:center;font-size:13px;flex:1}.listen-orb{width:78px;height:78px;border-radius:50%;border:1px solid var(--line);background:var(--accent-soft);color:var(--ink);display:grid;place-items:center}.listen-orb .icon{width:29px;height:29px}.sound-item.sounding .listen-orb{box-shadow:0 0 0 8px #af8ee82b}.listen-status{min-height:20px;margin-top:9px;color:var(--muted);font-size:12px}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.answer-grid .btn{height:68px;border-radius:18px;font-size:19px;background:var(--surface);border-color:var(--line);font-weight:500}.answer-grid .btn.selected{border-color:var(--accent);background:var(--accent-soft)}.answer-grid .uncertain{grid-column:1/-1;height:56px;font-size:16px}.feedback{padding:22px;margin:20px 0;background:var(--hero);border:1px solid var(--line);border-radius:24px}.feedback h2{font-size:19px;margin-bottom:8px}.feedback p{font-size:14px;color:var(--muted)}.feedback .contour{margin:8px 0}.sound-check{padding:32px;text-align:center;margin:24px 0}.sound-check>.row-icon{width:86px;height:86px;margin:0 auto 24px}.sound-check>.row-icon .icon{width:36px;height:36px}.finish-art{height:240px;position:relative;margin:10px 0 12px;overflow:hidden}.finish-art .sculpture{width:230px;height:230px;left:50%;transform:translateX(-50%);border-radius:50%;background:linear-gradient(140deg,#cbb0f7,#f7caed)}.finish-art .sculpture i{top:-40px;right:-55px;width:190px;height:190px}.finish-art .sculpture i:nth-child(2){top:100px;right:70px}.finish-art .sculpture i:nth-child(3){top:100px;right:-100px}.finish-art .sculpture i:nth-child(4){top:-100px;right:100px}.finish-art .sound-disc{width:55px;height:55px;top:150px;right:calc(50% - 100px);box-shadow:0 3px 12px #65438b1b}.finish-art .sound-disc .icon{width:26px;height:26px}.finish-heading{text-align:center;margin-bottom:24px}.finish-heading p{color:var(--muted);margin-top:8px}.finish-bottom{margin-top:24px;text-align:center}.finish-bottom p{font-size:14px;color:var(--muted);margin-bottom:18px}.finish-bottom .btn{margin-bottom:10px}.finish-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:20px}.finish-top .saved{margin:0}.intro-orbs{display:flex;gap:12px;justify-content:center;margin:30px 0}.intro-orbs i{width:25px;height:25px;border-radius:50%;background:var(--accent-soft)}
/* Creation workspace */
.editor-main{min-width:0;padding:18px 0;position:relative}.editor-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.editor-heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.editor-heading h1{font-size:32px}.editor-header p{margin-top:6px;color:var(--muted);font-size:14px}.editor-save{display:flex;align-items:center;gap:16px;flex-shrink:0}.editor-save .saved{margin:0;font-size:12px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:18px}.editor-transport{display:flex;align-items:center;gap:14px;padding:17px;margin-bottom:16px;flex-wrap:wrap}.editor-transport .icon-button{height:46px;width:46px}.editor-transport .play-main{background:var(--primary);color:var(--primary-ink)}.tempo-label{border:1px solid var(--line);border-radius:22px;display:flex;align-items:center;gap:5px;padding:4px 10px;font-size:12px}.tempo-label input{width:48px;border:0;background:transparent;color:var(--ink);padding:3px;font-size:13px}.transport-meter{color:var(--muted);font-size:13px}.editor-transport .segment{margin-left:auto;min-width:190px}.timeline-panel{overflow:hidden;padding:18px 0}.timeline-scroll{overflow-x:auto;padding:0 16px 8px;scrollbar-width:thin}.timeline{min-width:660px}.bar-head{display:grid;grid-template-columns:80px 1fr 1fr;text-align:center;font-size:13px;margin-bottom:18px}.beat-head,.track{display:grid;grid-template-columns:80px repeat(16,minmax(28px,1fr));gap:5px;align-items:center}.beat-head{color:var(--muted);font-size:11px;text-align:center;margin-bottom:10px}.beat-head .bar-start{border-left:1px solid var(--line)}.track{padding:8px 0}.track+.track{border-top:1px solid var(--line)}.track-title{display:flex;align-items:center;gap:6px;font-size:12px}.track-title .icon{width:20px;height:20px}.step-cell{height:34px;border:1px solid var(--line);border-radius:7px;background:var(--surface-soft);display:block;position:relative;padding:0}.step-cell.event{background:linear-gradient(130deg,#cda9ff,#b396eb);border-color:#c4a1ef}.step-cell.bass.event{background:linear-gradient(130deg,#f9b7e9,#eca4dc);border-color:#f2b0e3}.step-cell.bass.selected{outline:2px solid var(--ink);outline-offset:2px}.step-cell.playhead{box-shadow:0 0 0 2px var(--ink)}.bar-start{margin-left:4px}.edit-tools{display:flex;align-items:center;gap:8px;padding:16px;flex-wrap:wrap;margin-top:16px}.edit-tools .btn{font-size:12px;min-height:42px;padding:8px 14px}.edit-tools>.minor{margin-left:auto}.editor-task{padding:22px;align-self:start}.editor-task h2{font-size:21px;margin-bottom:12px}.editor-task>p{font-size:14px;margin-bottom:22px}.solo-list{background:var(--surface-soft);border-radius:18px;padding:0 12px;margin-bottom:22px}.solo-list .list-row{min-height:64px}.solo-list .row-icon{background:var(--surface);height:36px;width:36px}.preference{border-top:1px solid var(--line);padding-top:18px;margin-bottom:22px}.preference p{font-size:13px;margin-bottom:10px}.preference .segment button{font-size:11px;padding:7px 4px}.reason{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px;margin-top:12px;resize:vertical;font-size:12px;color:var(--ink)}.editor-feedback{margin-top:14px;font-size:13px;color:var(--muted)}
/* Sheets and transient feedback */
dialog{background:var(--surface-solid);color:var(--ink);border:1px solid var(--line);border-radius:26px;width:min(440px,calc(100% - 32px));max-height:86dvh;padding:26px;box-shadow:0 30px 100px #0c061c30}dialog::backdrop{background:#160c2b65;backdrop-filter:blur(6px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.dialog-top h2{font-size:21px}.dialog-body p{font-size:14px;color:var(--muted)}.dialog-body .segment{margin:20px 0}.theme-times{display:flex;gap:14px;margin:18px 0}.theme-times label{flex:1;display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}.theme-times input{width:100%;border:1px solid var(--line);border-radius:14px;padding:11px;background:var(--surface);color:var(--ink)}.dialog-actions{margin-top:22px;display:flex;gap:10px}.dialog-actions .btn{flex:1}.volume-note{margin-top:16px;font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:104px;left:50%;transform:translate(-50%,12px);padding:13px 22px;max-width:min(90vw,480px);border:1px solid var(--line);border-radius:20px;background:var(--surface-solid);color:var(--ink);box-shadow:0 8px 30px #0c071523;font-size:13px;opacity:0;pointer-events:none;z-index:100;transition:opacity .18s,transform .18s}#toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes scrub{from{transform:translateX(-100%)}to{transform:translateX(400%)}}
@media(min-width:760px){body[data-layout=phone] .shell:not(.editor-shell){display:block;max-width:470px;padding:24px 22px 110px;background:var(--surface);border:1px solid var(--line);border-radius:32px;box-shadow:var(--shadow)}body[data-layout=phone] .shell:not(.editor-shell) .sidebar{display:none}body[data-layout=phone] .dashboard-grid{display:block}body[data-layout=phone] .stack+.stack{margin-top:24px}body[data-layout=phone] .study-main{padding:0}body[data-layout=phone] .bottom-nav{display:flex;width:calc(100% - 32px);max-width:438px;position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--dock);border:1px solid var(--line);border-radius:28px;padding:6px 4px;backdrop-filter:blur(20px);z-index:10;box-shadow:0 8px 32px #3523480d}body[data-layout=phone] .bottom-nav .nav-item{flex:1;min-height:60px}body[data-layout=phone] .focus-shell{max-width:470px;padding:26px 22px;background:var(--surface);border:1px solid var(--line);border-radius:32px}}
@media(max-width:1099px){.shell{grid-template-columns:82px minmax(0,1fr);gap:18px;padding:0 20px}.dashboard-grid{display:block}.stack+.stack{margin-top:24px}.study-main{max-width:630px}.editor-layout{grid-template-columns:minmax(0,1fr)}.editor-task{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}.editor-task>h2,.editor-task>p{grid-column:1/-1}.editor-task>.preference{border-top:0;padding-top:0}.editor-task>.btn{grid-column:1/-1}.editor-save .saved{display:none}.editor-header{align-items:flex-start}.editor-heading h1{font-size:27px}}
@media(max-width:700px){.preview-bar{padding:10px 18px}.preview-title>span{font-size:11px}.preview-tools{gap:5px}.preview-tools button,.preview-tools a{font-size:11px;padding:4px 8px}.layout-toggle{display:none}.shell{display:block;margin:0;padding:14px 22px 110px;min-height:calc(100dvh - 48px)}.sidebar{display:none}.study-main{padding:0;max-width:440px}.page-top{margin-bottom:18px}.page-heading{margin-bottom:20px}h1{font-size:25px}.dashboard-grid{display:block}.hero{padding:22px;min-height:196px}.hero h2{font-size:25px}.hero .btn{min-height:42px;font-size:13px;padding:10px 19px}.stack{gap:18px}.stack+.stack{margin-top:22px}.list-row{min-height:74px}.row-copy strong{font-size:14px}.row-copy>span{font-size:12px}.badge{font-size:10px;padding:3px 8px}.bottom-nav{display:flex;width:calc(100% - 28px);max-width:450px;position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--dock);border:1px solid var(--line);border-radius:27px;padding:6px 4px;backdrop-filter:blur(20px);z-index:10;box-shadow:0 8px 32px #3523480d}.bottom-nav .nav-item{flex:1;min-height:58px;gap:3px;font-size:11px}.bottom-nav .nav-item .icon{height:21px;width:21px}.focus-shell{margin:0;padding:16px 22px 28px;max-width:484px;min-height:calc(100dvh - 48px)}.focus-main{padding:0}.focus-header{margin-bottom:22px}.lesson-title h1{font-size:25px}.lesson-title p{font-size:13px}.explore-panel{padding:20px}.listening{padding:24px 18px 20px}.listen-orb{height:75px;width:75px}.finish-art{height:225px}.finish-art .sculpture{height:210px;width:210px}.finish-art .sound-disc{top:140px}.finish-top{font-size:11px}.finish-top .saved{font-size:11px}.editor-shell{padding:16px 16px 105px}.editor-header{gap:10px;margin-bottom:20px;flex-wrap:wrap}.editor-save{width:100%;justify-content:space-between}.editor-save .saved{display:flex}.editor-save .btn{min-height:40px;font-size:12px;padding:8px 15px}.editor-heading h1{font-size:26px}.editor-header p{font-size:12px}.editor-task{display:block;padding:20px}.editor-task .preference{border-top:1px solid var(--line);padding-top:18px}.editor-transport{padding:14px;gap:8px}.editor-transport .segment{min-width:165px}.tempo-label{padding:4px 6px}.editor-transport .icon-button{height:40px;width:40px}.timeline-panel{margin:0 -2px}.edit-tools .minor{width:100%;margin:4px 0 0}.sound-disc{width:62px;height:62px;right:25px}.practice-hero h2{font-size:24px}.practice-hero{min-height:226px}.preview-tools a{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
