:root {
  color-scheme: light;
  --ink: #16202e;
  --muted: #7d8794;
  --line: #e6e9eb;
  --paper: #f3f5f5;
  --card: #ffffff;
  --navy: #101827;
  --navy-soft: #1a2638;
  --lime: #a7f27a;
  --lime-dark: #77c947;
  --lavender: #e7e2ff;
  --blue: #dcecff;
  --coral: #ffe2d8;
  --shadow: 0 12px 40px rgba(26, 37, 51, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { font-family: "Segoe UI", "Segoe UI Variable", system-ui, sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #65a9e7; outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { background: var(--navy); color: #f6f8fb; min-height: 100vh; padding: 25px 16px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 11px; color: white; padding: 0 14px 36px; }
.brand-mark { width: 32px; height: 32px; background: var(--lime); border-radius: 11px; display: inline-flex; align-items: flex-start; justify-content: center; gap: 3px; padding: 7px 6px; overflow: hidden; }
.brand-mark span { background: var(--navy); width: 4px; height: 18px; border-radius: 0 0 3px 3px; }
.brand-mark span:nth-child(2) { height: 12px; margin-top: 6px; }
.brand-mark span:nth-child(3) { height: 15px; margin-top: 3px; }
.brand-name { font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.6px; font-size: 21px; }
.sidebar-label { color: #718096; font-size: 10px; letter-spacing: 1.7px; font-weight: 700; padding: 0 14px 12px; }
.nav-list { display: grid; gap: 5px; }
.nav-item { border: 0; background: transparent; color: #aab4c2; height: 45px; border-radius: 11px; padding: 0 13px; display: flex; align-items: center; gap: 13px; text-align: left; font-size: 13px; font-weight: 600; transition: .15s ease; }
.nav-item:hover { background: #1a2638; color: white; }
.nav-item.active { background: var(--lime); color: #17202b; }
.nav-icon { width: 18px; text-align: center; font-size: 17px; line-height: 1; font-weight: 500; }
.nav-count { margin-left: auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 99px; background: rgba(16,24,39,.11); font-size: 11px; }
.sidebar-bottom { margin-top: auto; }
.connection-mini { margin: 0 4px 18px; background: #182437; border: 1px solid #263449; border-radius: 13px; padding: 12px 10px; display: flex; gap: 9px; align-items: center; }
.connection-mini .status-dot { width: 7px; height: 7px; flex: 0 0 auto; }
.connection-mini strong, .connection-mini small { display: block; }
.connection-mini strong { font-size: 11px; color: #dce2ea; }
.connection-mini small { color: #8a98a9; font-size: 10px; margin-top: 3px; }
.icon-button { border: 0; background: transparent; color: #aab4c2; margin-left: auto; font-size: 16px; padding: 4px; }
.settings-link { width: 100%; margin-bottom: 14px; }
.sidebar-footer { border-top: 1px solid #263449; padding: 16px 11px 0; color: #718096; font-size: 8px; font-weight: 700; letter-spacing: 1px; display: flex; justify-content: space-between; }
.sidebar-footer span { color: var(--lime); font-size: 14px; }

.main-area { min-width: 0; }
.topbar { height: 74px; background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 58px); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(16px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #97a0aa; font-size: 12px; }
.breadcrumbs strong { color: #374253; font-weight: 600; }
.crumb-divider { color: #c5cbd1; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.top-status { display: flex; align-items: center; gap: 8px; color: #778391; font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #c2cbd3; display: inline-block; }
.status-dot.connected { background: #54be71; box-shadow: 0 0 0 4px rgba(84,190,113,.12); }
.button { border: 0; border-radius: 10px; padding: 12px 16px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--navy); color: white; }
.button-dark:hover { background: #25344a; }
.button-lime { background: var(--lime); color: #16202e; }
.button-lime:hover { background: #b9fa97; }
.button-light { background: #f1f3f5; color: #303b49; }
.button-outline { background: white; border: 1px solid var(--line); color: #344052; }
.button-small { padding: 9px 12px; font-size: 11px; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--lavender); color: #574a9c; font-size: 12px; font-weight: 800; }
.content-area { padding: 30px clamp(22px, 4vw, 58px) 56px; max-width: 1600px; margin: 0 auto; }

.eyebrow { color: #7d8794; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, "Segoe UI", sans-serif; }
h1 { font-size: clamp(25px, 2.6vw, 37px); line-height: 1.15; letter-spacing: -1.3px; margin: 8px 0 10px; font-weight: 750; }
h2 { font-size: 20px; letter-spacing: -.5px; margin: 0; }
h3 { font-size: 15px; letter-spacing: -.2px; margin: 0; }
.subtle { color: var(--muted); line-height: 1.65; }
.small-text { font-size: 11px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.page-heading p { margin: 0; max-width: 630px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 31px 0 14px; }
.section-head p { margin: 4px 0 0; }
.text-button { border: 0; background: transparent; color: #5a6b7f; font-weight: 700; font-size: 11px; padding: 8px 0; }
.text-button:hover { color: #151e2b; }
.muted-link { color: #718096; font-size: 11px; text-decoration: none; font-weight: 700; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(245px, .8fr); gap: 17px; }
.hero-card { min-height: 260px; padding: clamp(23px, 3vw, 37px); border-radius: 20px; background: #dff2e2; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-card:after { content: ""; position: absolute; width: 285px; height: 285px; border: 1px solid rgba(50,111,86,.12); border-radius: 50%; right: -37px; top: -67px; box-shadow: 0 0 0 27px rgba(255,255,255,.1), 0 0 0 55px rgba(255,255,255,.1); }
.hero-content { position: relative; z-index: 1; max-width: 570px; }
.hero-card .eyebrow { color: #4f7a61; }
.hero-card h1 { max-width: 510px; }
.hero-card p { color: #617767; max-width: 480px; margin: 0 0 21px; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.hero-art { position: absolute; right: 7%; bottom: 20px; width: 200px; height: 170px; opacity: .2; transform: rotate(-9deg); }
.hero-art .art-key { position: absolute; bottom: 0; width: 35px; height: 108px; background: #fff; border: 2px solid #47775e; border-radius: 0 0 7px 7px; }
.hero-art .art-key:nth-child(1) { left: 0; height: 95px; }
.hero-art .art-key:nth-child(2) { left: 35px; }
.hero-art .art-key:nth-child(3) { left: 70px; height: 95px; }
.hero-art .art-key:nth-child(4) { left: 105px; }
.hero-art .art-key:nth-child(5) { left: 140px; height: 95px; }
.hero-art:before, .hero-art:after { content: ""; position: absolute; z-index: 2; top: 0; width: 18px; height: 66px; background: #314e40; border-radius: 0 0 4px 4px; }
.hero-art:before { left: 25px; box-shadow: 70px 0 #314e40; }
.hero-art:after { left: 95px; }
.streak-card { border-radius: 20px; background: var(--navy); color: white; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; position: relative; overflow: hidden; }
.streak-card:after { content: ""; position: absolute; right: -70px; bottom: -120px; width: 230px; height: 230px; border-radius: 50%; border: 1px solid rgba(167,242,122,.24); box-shadow: 0 0 0 25px rgba(167,242,122,.04), 0 0 0 50px rgba(167,242,122,.04); }
.streak-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.streak-head .eyebrow { color: #95a2b3; }
.streak-icon { color: var(--lime); font-size: 20px; }
.streak-number { font-family: Manrope, sans-serif; font-size: 57px; letter-spacing: -3px; font-weight: 750; margin: 9px 0 0; position: relative; z-index: 1; }
.streak-card p { color: #aab5c4; font-size: 11px; margin: 0; position: relative; z-index: 1; }
.week-dots { display: flex; gap: 8px; position: relative; z-index: 1; }
.week-day { display: grid; justify-items: center; gap: 6px; color: #7f8b9b; font-size: 9px; }
.week-day i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #29354a; font-style: normal; color: #adb8c4; }
.week-day i.done { color: var(--navy); background: var(--lime); }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.stat-card { background: white; padding: 17px 19px; border-radius: 14px; border: 1px solid #edf0f0; display: flex; gap: 13px; align-items: center; }
.stat-icon { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; }
.stat-icon.mint { background: #e2f6df; color: #498746; }
.stat-icon.lilac { background: #eeeaff; color: #6959bd; }
.stat-icon.peach { background: #fff0e8; color: #c7784f; }
.stat-value { font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.stat-label { color: #84909c; font-size: 10px; margin-top: 2px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .8fr); gap: 16px; }
.card { background: var(--card); border: 1px solid #e9edee; border-radius: 16px; padding: 19px; box-shadow: 0 2px 8px rgba(25,38,50,.015); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.card-head p { margin: 4px 0 0; }
.lesson-next { display: grid; grid-template-columns: 74px 1fr auto; gap: 15px; align-items: center; padding: 14px; background: #f7f8f6; border-radius: 13px; }
.lesson-art { height: 70px; border-radius: 11px; background: #e4e1ff; display: grid; place-items: center; font-size: 25px; color: #685bb3; }
.lesson-info h3 { margin-bottom: 5px; }
.lesson-info p { color: #88929d; font-size: 10px; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 5px 8px; background: #eff2f2; color: #78828e; font-size: 9px; font-weight: 700; }
.pill.lime { background: #ebf9e4; color: #528945; }
.pill.blue { background: #eaf3ff; color: #547aa0; }
.mini-progress { height: 5px; border-radius: 5px; background: #e9eeee; margin-top: 11px; overflow: hidden; }
.mini-progress span { display: block; height: 100%; width: 0; background: var(--lime-dark); transition: width .2s ease; }
.song-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f2f2; cursor: pointer; }
.song-row:last-child { border-bottom: 0; padding-bottom: 0; }
.song-thumb { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; font-size: 18px; flex: 0 0 auto; }
.song-thumb.green { background: #e4f4df; color: #4c8b45; }
.song-thumb.purple { background: #ede9ff; color: #685bb3; }
.song-thumb.orange { background: #ffede4; color: #c5794f; }
.song-main { flex: 1; min-width: 0; }
.song-main strong, .song-main small { display: block; }
.song-main strong { font-size: 11px; }
.song-main small { color: #89939d; font-size: 9px; margin-top: 4px; }
.play-small { border: 0; border-radius: 50%; width: 29px; height: 29px; background: #f1f3f4; color: #5e6b78; font-size: 11px; }
.play-small:hover { background: var(--lime); color: #17202b; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.course-card { overflow: hidden; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-art { height: 116px; border-radius: 11px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin-bottom: 15px; }
.course-art:before, .course-art:after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .16; }
.course-art:before { width: 170px; height: 170px; right: -25px; top: -80px; }
.course-art:after { width: 120px; height: 120px; left: -20px; bottom: -75px; }
.course-art span { font-size: 34px; position: relative; z-index: 1; }
.course-art.mint { background: #e0f3dc; color: #4d8a47; }
.course-art.lilac { background: #e9e5ff; color: #675db1; }
.course-art.peach { background: #ffebe1; color: #c17751; }
.course-card h3 { margin-bottom: 6px; }
.course-card p { color: #87919d; font-size: 10px; min-height: 32px; line-height: 1.5; margin-bottom: 13px; }
.course-meta { display: flex; align-items: center; justify-content: space-between; color: #82909d; font-size: 9px; margin-bottom: 9px; }

.lesson-list { display: grid; gap: 9px; }
.lesson-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid #edf0f0; border-radius: 12px; background: white; }
.lesson-number { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #f0f2f2; color: #7d8994; font-weight: 700; font-size: 11px; }
.lesson-number.done { background: #e5f7db; color: #4a8840; }
.lesson-row h3 { font-size: 12px; margin-bottom: 4px; }
.lesson-row p { color: #8a949e; font-size: 10px; margin: 0; }
.lesson-row .button { min-width: 86px; }

.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.practice-main { display: grid; gap: 14px; }
.practice-status { display: flex; align-items: center; justify-content: space-between; }
.practice-status p { margin: 5px 0 0; }
.practice-controls { display: flex; gap: 7px; }
.practice-visual { min-height: 245px; background: #172235; color: white; border-radius: 16px; padding: 19px; position: relative; overflow: hidden; }
.practice-visual:before { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(167,242,122,.05), transparent 45%); pointer-events: none; }
.practice-visual-head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.practice-visual-head .eyebrow { color: #96a6b8; }
.target-note { font-family: Manrope, sans-serif; font-size: 46px; font-weight: 800; letter-spacing: -2px; margin: 8px 0 0; }
.target-note span { color: var(--lime); }
.target-help { color: #a7b3c2; font-size: 10px; margin-top: 4px; }
.live-note { min-width: 93px; text-align: right; color: #92a0b1; font-size: 9px; }
.live-note strong { font-family: Manrope, sans-serif; display: block; font-size: 23px; color: var(--lime); margin-top: 5px; }
.beat-bar { position: relative; height: 42px; display: flex; align-items: center; gap: 8px; margin: 8px 0 5px; }
.beat-bar span { height: 4px; flex: 1; border-radius: 4px; background: #35445a; }
.beat-bar span.beat-active { background: var(--lime); box-shadow: 0 0 15px rgba(167,242,122,.35); }
.keyboard-wrap { background: #111b2a; border-radius: 11px; padding: 7px 7px 8px; overflow: hidden; }
.keyboard { height: 123px; position: relative; display: flex; user-select: none; }
.key-white { flex: 1; background: linear-gradient(#fff,#e9ecee); border: 1px solid #bfc7cb; border-radius: 0 0 5px 5px; position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; color: #9ba4aa; font-size: 8px; min-width: 24px; }
.key-white + .key-white { margin-left: -1px; }
.key-white.key-down { background: #c7f6aa; }
.key-black { position: absolute; top: 0; height: 72px; width: 5.4%; background: linear-gradient(#333b48,#111720); border: 1px solid #05090f; border-radius: 0 0 4px 4px; z-index: 2; box-shadow: 0 3px 3px rgba(0,0,0,.25); }
.key-black.key-down { background: #6ca852; }
.keyboard-hint { display: flex; justify-content: space-between; color: #8996a5; font-size: 9px; padding: 8px 2px 0; }
.practice-side { display: grid; gap: 13px; }
.score-card { text-align: center; }
.score-ring { width: 94px; height: 94px; border-radius: 50%; margin: 10px auto 11px; display: grid; place-items: center; background: conic-gradient(var(--lime-dark) 0deg, #edf1ed 0deg); position: relative; }
.score-ring:before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: white; }
.score-ring strong { position: relative; z-index: 1; font-family: Manrope,sans-serif; font-size: 23px; }
.score-card p { color: #89939d; font-size: 10px; margin: 0; }
.exercise-steps { display: grid; gap: 10px; }
.exercise-step { display: flex; gap: 10px; align-items: center; font-size: 10px; color: #788492; }
.exercise-step i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f0f2f2; font-style: normal; font-size: 9px; }
.exercise-step.current { color: #283544; font-weight: 700; }
.exercise-step.current i { background: #e8f7df; color: #4b8d3e; }
.tempo-control { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.tempo-control input { min-width: 0; flex: 1; accent-color: #70bd4c; }
.tempo-value { font-variant-numeric: tabular-nums; font-weight: 800; min-width: 39px; text-align: right; }
.session-note { font-size: 10px; color: #7b8693; line-height: 1.5; margin: 12px 0 0; }

.song-layout { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.5fr); gap: 15px; align-items: start; }
.song-library { display: grid; gap: 9px; }
.library-item { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e9edee; background: white; border-radius: 12px; cursor: pointer; }
.library-item:hover, .library-item.selected { border-color: #9bdc78; box-shadow: 0 0 0 2px rgba(167,242,122,.15); }
.library-item .song-thumb { width: 39px; height: 39px; }
.library-copy { flex: 1; min-width: 0; }
.library-copy strong, .library-copy small { display: block; }
.library-copy strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-copy small { color: #87919d; font-size: 9px; margin-top: 4px; }
.song-detail { display: grid; gap: 12px; }
.song-visual { border-radius: 15px; background: #152033; color: white; padding: 17px; min-width: 0; }
.song-visual-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.song-visual-head h3 { font-size: 14px; }
.song-visual-head p { color: #93a1b1; margin: 4px 0 0; font-size: 9px; }
.canvas-wrap { width: 100%; height: 280px; border-radius: 9px; background: #101929; overflow: hidden; position: relative; }
#piano-roll { display: block; width: 100%; height: 100%; }
.song-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.song-toolbar .button { padding: 9px 12px; }
.track-list { display: flex; flex-wrap: wrap; gap: 7px; }
.track-chip { border: 1px solid #e8ebec; background: white; border-radius: 99px; padding: 6px 9px; color: #697583; font-size: 9px; }
.track-chip.active { border-color: #9bdc78; color: #47753b; background: #f4fbef; }
.song-meta-row { display: flex; gap: 7px; flex-wrap: wrap; }
.import-zone { padding: 15px; border: 1px dashed #cbd2d5; background: #fafbfb; border-radius: 12px; color: #7f8b96; font-size: 10px; }
.import-zone strong { color: #475362; }
.import-label { display: inline-flex; margin-top: 9px; cursor: pointer; color: #364352; font-weight: 700; }
.import-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.device-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); gap: 15px; }
.device-state { background: #172235; color: white; padding: 24px; border-radius: 16px; }
.device-state .eyebrow { color: #9ba8b8; }
.device-state h2 { margin: 11px 0 8px; }
.device-state p { color: #a9b4c2; max-width: 590px; line-height: 1.6; font-size: 11px; margin-bottom: 18px; }
.device-list { display: grid; gap: 8px; margin-top: 12px; }
.device-option { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; border: 1px solid #314056; border-radius: 10px; padding: 11px; background: #202d42; color: white; }
.device-option strong, .device-option small { display: block; }
.device-option strong { font-size: 11px; }
.device-option small { color: #9aa8ba; font-size: 9px; margin-top: 3px; }
.device-symbol { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #324359; color: var(--lime); }
.device-help { display: grid; gap: 13px; }
.help-step { display: flex; gap: 10px; align-items: flex-start; }
.help-step i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef8e9; color: #518747; font-size: 9px; font-style: normal; font-weight: 800; flex: 0 0 auto; }
.help-step strong { display: block; font-size: 10px; }
.help-step p { margin: 4px 0 0; font-size: 9px; line-height: 1.5; color: #87919c; }
.device-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.device-column { background: rgba(255,255,255,.06); border-radius: 11px; padding: 12px; min-height: 67px; }
.device-column strong { display: block; font-size: 9px; color: #9cabbc; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .8px; }
.device-column span { color: white; font-size: 11px; }
.permission-note { background: #fff9e8; border: 1px solid #f2e9c8; padding: 12px; border-radius: 11px; color: #887b50; font-size: 9px; line-height: 1.55; margin-top: 13px; }

.event-table { width: 100%; border-collapse: collapse; }
.event-table th { color: #929ba4; text-align: left; font-size: 9px; font-weight: 700; letter-spacing: .7px; padding: 9px 8px; border-bottom: 1px solid #edf0f1; }
.event-table td { font-size: 10px; padding: 10px 8px; border-bottom: 1px solid #f1f3f4; color: #5f6c79; }
.event-table td:first-child { color: #91a0ad; font-variant-numeric: tabular-nums; }
.event-type { color: #4a8a41 !important; font-weight: 700; }
.empty-event { text-align: center; color: #98a1aa; padding: 24px !important; }
.notice { border-radius: 11px; padding: 12px 14px; background: #eff5ff; border: 1px solid #dde9fa; color: #637b96; font-size: 10px; line-height: 1.55; }
.notice.warning { background: #fff8e7; border-color: #f0e6c8; color: #86794e; }
.notice.success { background: #eff9e9; border-color: #dcedd2; color: #597f4b; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); gap: 14px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid #f0f2f2; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { font-size: 11px; display: block; }
.setting-row small { font-size: 9px; color: #89939d; display: block; margin-top: 4px; }
.setting-row select { padding: 7px 9px; border: 1px solid #e0e5e6; border-radius: 8px; background: #fff; color: #556170; font-size: 10px; }
.switch { appearance: none; width: 34px; height: 19px; border-radius: 99px; background: #d6dcdf; position: relative; transition: .15s; }
.switch:checked { background: #79ca52; }
.switch:after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: white; top: 2px; left: 2px; box-shadow: 0 1px 3px #0002; transition: .15s; }
.switch:checked:after { transform: translateX(15px); }

.toast-region { position: fixed; right: 22px; bottom: 20px; z-index: 30; display: grid; gap: 8px; }
.toast { background: #172235; color: white; box-shadow: 0 12px 30px #10182730; padding: 12px 16px; border-radius: 11px; font-size: 11px; max-width: 360px; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,24,39,.48); display: grid; place-items: center; z-index: 20; padding: 20px; }
.modal { width: min(490px, 100%); background: white; border-radius: 17px; box-shadow: 0 25px 80px #10182735; padding: 23px; }
.modal h2 { font-size: 18px; margin-bottom: 9px; }
.modal p { color: #778492; line-height: 1.6; font-size: 11px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-close { float: right; border: 0; background: #f1f3f4; width: 27px; height: 27px; border-radius: 50%; color: #75808b; }

.empty-state { background: white; border: 1px solid #e8edee; border-radius: 16px; padding: 37px; text-align: center; color: #84909b; }
.empty-state-icon { width: 48px; height: 48px; display: grid; place-items: center; background: #eaf6e4; border-radius: 15px; color: #57904a; font-size: 22px; margin: 0 auto 14px; }
.empty-state h3 { color: #293647; margin-bottom: 8px; }
.empty-state p { max-width: 420px; margin: 0 auto 16px; font-size: 11px; line-height: 1.6; }
.skeleton { animation: pulse 1.2s infinite alternate; background: #e9eeee; border-radius: 8px; }
@keyframes pulse { to { opacity: .45; } }
.hidden { display: none !important; }

/* Difficulty paths and song practice controls */
.level-tabs, .song-level-filters, .practice-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.level-tabs { margin: 14px 0; }
.level-tab { min-width: 130px; border: 1px solid var(--line); border-radius: 12px; background: white; color: #687482; padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 700; }
.level-tab small { display: block; margin-top: 4px; color: #929ba4; font-size: 9px; font-weight: 500; }
.level-tab.active { border-color: #a7d98a; background: #f0fae9; color: #365b2d; box-shadow: 0 0 0 2px #a7f27a22; }
.practice-modes { margin-bottom: 12px; }
.practice-mode, .song-filter { border: 1px solid var(--line); border-radius: 999px; background: white; color: #677382; padding: 8px 13px; font-size: 11px; font-weight: 700; }
.practice-mode.active, .song-filter.active { background: var(--navy); border-color: var(--navy); color: white; }
.song-level-filters { margin: 0 0 10px; gap: 5px; }
.song-filter { padding: 6px 10px; font-size: 9px; }
.drum-pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.drum-pad { min-height: 88px; border: 1px solid #e7eaed; border-radius: 14px; background: white; color: #384555; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; box-shadow: 0 4px 12px #16202e08; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; touch-action: none; }
.drum-pad span { font-size: 20px; line-height: 1.1; }
.drum-pad strong { font-size: 10px; }
.drum-pad small { font-size: 8px; color: #89939d; }
.drum-pad.orange { background: #fff7ef; }
.drum-pad.purple { background: #f7f4ff; }
.drum-pad.blue { background: #f1f7ff; }
.drum-pad.selected, .drum-pad:active { border-color: #80c95b; box-shadow: 0 0 0 3px #a7f27a55; transform: translateY(-2px); }
.target-key { box-shadow: inset 0 -5px #a7f27a, 0 0 0 3px #9bd87566 !important; }
.key-black.target-key { background: #526345; }
.download-shell { width: min(100% - 32px, 560px); min-height: 100vh; margin: 0 auto; padding: 32px 0; display: flex; flex-direction: column; justify-content: center; }
.download-brand { color: var(--ink); padding: 0 0 22px; }
.download-brand .brand-mark span { background: var(--navy); }
.download-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 6vw, 42px); box-shadow: var(--shadow); }
.download-icon { width: 52px; height: 52px; display: grid; place-items: center; background: #eff9e9; border-radius: 16px; color: #477d38; font-size: 26px; margin-bottom: 19px; }
.download-card h1 { max-width: 410px; margin: 12px 0; }
.download-card > .subtle { font-size: 13px; }
.download-button { width: 100%; min-height: 46px; margin-top: 11px; text-decoration: none; }
.download-card .notice { margin: 18px 0 4px; font-size: 11px; }
.muted-link { display: block; margin: 12px 0; color: #697887; text-align: center; font-size: 11px; }
.download-footnote { margin: 17px 0 0; color: #929ba4; font-size: 10px; line-height: 1.6; }
.download-footer { padding-top: 16px; color: #96a0aa; text-align: center; font-size: 10px; }
.download-home-link { margin: 20px auto 0; text-align: center; }
.download-home-link a { color: #4f7f3f; font-weight: 700; font-size: 12px; text-decoration: none; }
.download-home-link a:hover { text-decoration: underline; }
.download-home-link p { margin: 5px 0 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: #4385c4; }
@media (max-width: 600px) {
  .level-tab { min-width: 0; flex: 1; }
  .drum-pads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-shell { width: min(100% - 22px, 560px); padding: 18px 0; }
}

@media (max-width: 1100px) {
  .sidebar { width: 210px; }
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .hero-art { right: -15px; opacity: .13; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell { display: block; padding-bottom: 64px; }
  .sidebar { position: fixed; top: auto; bottom: 0; z-index: 10; height: 62px; min-height: 0; width: 100%; padding: 5px 8px; border-top: 1px solid #263449; }
  .brand, .sidebar-label, .sidebar-bottom, .nav-item span:not(.nav-icon), .nav-count { display: none; }
  .nav-list { height: 100%; display: flex; justify-content: space-around; align-items: center; }
  .nav-item { display: flex; flex: 1; justify-content: center; width: auto; height: 47px; padding: 0; border-radius: 10px; }
  .nav-icon { font-size: 20px; }
  .topbar { height: 62px; padding: 0 18px; }
  .top-status { display: none; }
  .content-area { padding: 22px 18px 36px; }
  .hero-grid, .dashboard-grid, .practice-layout, .song-layout, .device-grid, .settings-grid { grid-template-columns: 1fr; }
  .streak-card { min-height: 190px; }
  .stats-row { grid-template-columns: 1fr 1fr 1fr; }
  .practice-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .topbar-actions { gap: 8px; }
  .topbar-actions .button { padding: 8px 9px; font-size: 9px; }
  .avatar { display: none; }
  .breadcrumbs { font-size: 10px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .hero-card { min-height: 275px; }
  .hero-art { right: -58px; opacity: .1; }
  .hero-actions .button { flex: 1; }
  .stats-row { gap: 7px; }
  .stat-card { padding: 11px 8px; display: block; }
  .stat-icon { margin-bottom: 7px; width: 29px; height: 29px; }
  .stat-value { font-size: 15px; }
  .stat-label { font-size: 8px; }
  .course-grid { grid-template-columns: 1fr; }
  .lesson-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .lesson-row .pill { display: none; }
  .lesson-row .button { min-width: 68px; padding: 8px; }
  .lesson-next { grid-template-columns: 52px 1fr; }
  .lesson-next .button { grid-column: 1 / -1; }
  .lesson-art { height: 52px; }
  .practice-side { grid-template-columns: 1fr; }
  .target-note { font-size: 39px; }
  .song-toolbar { gap: 5px; }
  .song-toolbar .button { padding: 8px 9px; font-size: 10px; }
  .device-columns { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
