@font-face { font-family: Nunito; src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Nunito; src: url('/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --bg: #f7f8fc; --surface: #fff; --ink: #1d2440; --muted: #4a5270; --line: #e3e7f1;
  --primary: #2f7de1; --primary-soft: #e6f0fd; --go: #2f8a57;
  --radius: 22px; --radius-s: 14px; --radius-l: 30px;
  --shadow: 0 1px 2px rgba(29,36,64,.04), 0 6px 18px rgba(29,36,64,.06);
  --shadow-lift: 0 2px 4px rgba(29,36,64,.05), 0 12px 28px rgba(29,36,64,.1);
  font-family: Nunito, system-ui, sans-serif; color: var(--ink); background: var(--bg);
  font-synthesis: none;
}
.tone-blue { --tone-bg: #eaf3fe; --tone: #4a90e8; --tone-ink: #1f5fb0; }
.tone-mint { --tone-bg: #e8f6ef; --tone: #4fb383; --tone-ink: #1f7a4c; }
.tone-coral { --tone-bg: #fdeeea; --tone: #ef7f6b; --tone-ink: #b24a38; }
.tone-violet { --tone-bg: #f1ecfd; --tone: #9a7ae6; --tone-ink: #6547b8; }
.tone-yellow { --tone-bg: #fff6df; --tone: #f2b53a; --tone-ink: #8a6210; }
.tone-pink { --tone-bg: #fdecf1; --tone: #ea7a9c; --tone-ink: #ad3d62; }
* { box-sizing: border-box; letter-spacing: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 900; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
button,input,select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-touch-callout: none; }
button:disabled, fieldset:disabled { cursor: default; }
button:disabled { opacity: .48; }
button,a,input { touch-action: manipulation; }
input[type='range'] { accent-color: var(--primary); width: 100%; min-height: 44px; margin: 0; cursor: pointer; }
input[type='number'],input[type='text'],.track-title input { border: 2px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 14px; min-height: 56px; max-width: 100%; }
input[type='number'] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { appearance: none; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
legend { padding: 0 0 12px; font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
fieldset:disabled { opacity: .65; }
img { max-width: 100%; user-select: none; -webkit-user-drag: none; object-fit: contain; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
[data-page-title]:focus { outline: none; }
.page { max-width: 1280px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) max(clamp(16px, 3vw, 36px), env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(clamp(16px, 3vw, 36px), env(safe-area-inset-left)); }
.app-header { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; min-height: 96px; margin-bottom: 24px; }
.brand { min-width: 0; }
.brand-name { display: inline-flex; align-items: center; gap: 14px; font-weight: 1000; font-size: 60px; line-height: 1; color: #10225c; }
.brand-icon { border-radius: 22%; box-shadow: var(--shadow); width: 70px; height: 70px; flex-shrink: 0; }
.brand-wordmark { width: 220px; height: 70px; object-fit: contain; }
.brand-sub { font-size: 19px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.family-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: #fff6df; border: 1px solid #f3d99a; color: #0b3558; font-size: 14px; font-weight: 800; }
.family-link img { width: 20px; height: 20px; }
.family-link:hover { background: #ffefc4; }
.main-nav { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 2px solid var(--line); }
.main-nav a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; min-height: 48px; border-radius: 18px; font-size: 17px; font-weight: 800; color: var(--muted); }
.main-nav a svg { width: 20px; height: 20px; }
.main-nav a.active { background: var(--primary-soft); color: #1f5fb0; }
.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.offline-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 16px; border-radius: 999px; background: #e8f6ef; font-size: 15px; font-weight: 700; color: #1f7a4c; white-space: nowrap; }
.offline-status:empty { display: none; }
.offline-status:not(:empty) + .header-tools { margin-left: 0; }
.offline-status svg { width: 18px; height: 18px; }
.icon-btn { width: 60px; height: 60px; min-width: 60px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--surface); display: inline-flex; justify-content: center; align-items: center; box-shadow: var(--shadow); color: var(--ink); padding: 0; transition: background .12s, box-shadow .12s; }
.icon-btn svg { width: 28px; height: 28px; }
.icon-btn:hover:not(:disabled) { background: var(--primary-soft); color: #1f5fb0; border-color: #bfd8f8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 2px solid transparent; border-radius: 18px; padding: 12px 26px; font-size: 19px; font-weight: 800; white-space: normal; text-align: center; transition: background .12s, transform .12s; }
.btn svg { width: 22px; height: 22px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.install-btn { background: var(--primary-soft); color: #1d5fb8; }
.support-trigger { min-height: 48px; padding: 0 16px; font-size: 16px; background: #fff5ec; border-color: #f1d3bc; color: #7a4a26; }
.settings-support { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-support .btn { font-size: 16px; }
.support-options { display: flex; flex-direction: column; gap: 10px; }
.support-options .btn { justify-content: flex-start; }
.support-options strong { margin-left: auto; }
.go { background: var(--go); color: white; }
.go:hover:not(:disabled) { background: #24734a; }
.outline { background: var(--surface); border-color: var(--line); color: var(--muted); }
.outline:hover:not(:disabled) { border-color: #9ebde9; color: #1f5fb0; }
.text-btn { border: 0; background: transparent; padding: 12px; font-weight: 800; color: #1f5fb0; min-height: 48px; }
.button-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.segmented button { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 18px; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--muted); }
.segmented button[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: white; }
.segmented button:hover:not([aria-pressed='true']) { border-color: var(--primary); color: #1f5fb0; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.library-heading h1 { font-size: 32px; margin-top: 4px; }
.library-heading .segmented button { flex: 0 0 auto; white-space: nowrap; }
.library-heading { flex-wrap: wrap; }
.builder-toggle { font-size: 16px; min-height: 48px; padding: 8px 16px; }
.builder-toggle[aria-pressed='true'] { border-color: var(--primary); color: #1f5fb0; background: var(--primary-soft); }
.builder-tile { text-align: left; }
.builder-tile[aria-pressed='true'] { border-color: var(--primary); box-shadow: var(--shadow); }
.builder-tile .round-arrow { visibility: hidden; }
.builder-check { position: absolute; right: 20px; bottom: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--tone-ink); background: var(--surface); }
.builder-tile[aria-pressed='true'] .builder-check { background: var(--primary); color: white; }
.builder-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-bottom: 2px solid var(--line); }
.builder-toolbar > span { color: var(--muted); font-size: 16px; }
.series-library { margin-top: 28px; }
.series-library > h3 { font-size: 24px; margin-bottom: 12px; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.series-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--tone-bg); box-shadow: var(--shadow); }
.series-card h4 { font-size: 22px; }
.series-card h4 a:hover { text-decoration: underline; }
.series-card > p { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.series-kicker { font-size: 14px; font-weight: 800; color: var(--tone-ink); }
.series-art { width: 100%; height: 80px; }
.series-art .category-art { height: 80px; margin: 0; }
.series-art img { height: 76px; }
.series-art .neutral-symbol { height: 62px; width: 62px; }
.series-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.series-actions .btn { min-height: 48px; padding: 8px 14px; font-size: 15px; }
.plan-title { display: flex; flex-direction: column; gap: 6px; font-size: 15px; max-width: 460px; }
.plan-title input { width: 100%; }
.plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.plan-status { color: var(--muted); font-size: 15px; min-height: 24px; margin: 12px 0; overflow-wrap: anywhere; }
.plan-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-item { display: grid; grid-template-columns: 32px 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; }
.plan-number { display: grid; place-items: center; width: 32px; height: 32px; background: var(--go); color: white; border-radius: 50%; font-weight: 900; }
.plan-art .category-art { margin: 0; height: 80px; gap: 6px; }
.plan-art img, .plan-art .neutral-symbol { max-height: 70px; }
.plan-art .category-art .mini-rhythm { gap: 4px; }
.plan-art .mini-rhythm i, .plan-art .mini-rhythm b { width: 5px; }
.plan-art { min-width: 0; }
.plan-art .category-art > * { min-width: 0; flex-shrink: 1; }
.plan-art .category-art > svg { width: 32px; height: 32px; }
.plan-art .count-art > span { width: 12px; font-size: 16px; }
.plan-art .dynamics-art > span { margin: 0 2px; }
.plan-art .tempo-trail { display: none; }
.plan-item-body { min-width: 0; }
.plan-item-body h2 { font-size: 20px; }
.plan-item-body p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.plan-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.plan-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.plan-fields select { min-height: 44px; max-width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; background: var(--surface); }
.plan-item-tools { display: flex; gap: 6px; }
.plan-item-tools .icon-btn { width: 44px; height: 44px; min-width: 44px; box-shadow: none; background: var(--bg); }
.plan-item-tools svg { width: 20px; height: 20px; }
.plan-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 20px; min-height: 300px; text-align: center; }
.plan-session-progress { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 20px; border-bottom: 1px solid var(--line); padding: 8px 0 16px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.plan-session-progress strong { font-weight: 800; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.plan-summary { list-style: none; padding: 0; margin: 0; text-align: left; }
.plan-summary li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.plan-summary svg { color: var(--go); }
.plan-finish > p { max-width: 100%; overflow-wrap: anywhere; }
.rhythm-hint { width: min(760px, 100%); border-top: 2px solid var(--line); padding: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.rhythm-hint h3 { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; color: var(--muted); }
.rhythm-hint h3 svg { width: 22px; height: 22px; }
.hint-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 10px; }
.hint-row strong { font-size: 16px; }
.rhythm-hint .pattern-display { gap: 6px; }
.rhythm-hint .pattern-display > span { width: 28px; height: 28px; }
.rhythm-hint .pattern-display i { width: 12px; height: 12px; }
.changed-step { outline: 2px dashed #8a6210; background: #fff6df; }
.hint-row meter { width: 100%; height: 30px; }
.tempo-hint-track { display: flex; justify-content: space-between; min-width: 64px; max-width: 100%; }
.tempo-hint-track i, .timing-hint i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--tone); }
.timing-hint { display: grid; width: 100%; align-items: center; min-height: 36px; }
.timing-hint > span { display: grid; place-items: center; height: 28px; }
.timing-hint svg { width: 18px; height: 18px; }
.sequence-guide > span { width: 60px; height: 60px; padding: 6px; }
.sequence-guide img { height: 46px; }
@media (max-width: 700px) {
  .plan-item { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .plan-art { display: none; }
  .plan-item-tools { grid-column: 2; flex-wrap: wrap; }
}
.eyebrow { font-size: 11px; color: var(--muted); font-weight: 900; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 18px; }
.category-tile { display: flex; flex-direction: column; padding: 20px 20px 16px; min-height: 264px; background: var(--tone-bg); border-radius: var(--radius); border: 2px solid transparent; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
a.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--tone) 45%, transparent); }
a.category-tile:active { transform: translateY(0); }
.tile-title { min-height: 61px; }
.tile-title h3 { font-size: 24px; }
.tile-title p { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 5px; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; min-height: 40px; margin-top: auto; font-size: 12px; font-weight: 800; color: var(--tone-ink); }
.tile-foot > span:first-child { background: rgba(255,255,255,.7); border-radius: 20px; padding: 5px 11px; }
.round-arrow { display: grid; place-items: center; border-radius: 50%; width: 40px; height: 40px; color: var(--tone-ink); background: var(--surface); box-shadow: var(--shadow); }
.round-arrow svg { width: 20px; height: 20px; }
.soon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); margin-right: 17px; }
.upcoming .tile-foot > span:first-child { color: var(--muted); }
.upcoming .category-art { opacity: .8; }
.category-art { display: flex; align-items: center; justify-content: center; height: 126px; width: 100%; gap: 12px; color: var(--tone); margin: 9px 0 8px; }
.category-art img { max-height: 120px; max-width: 46%; }
.category-art .neutral-symbol { width: 80px; height: 80px; max-width: 46%; color: #486477; stroke-width: 1.6; }
.category-art > .mini-rhythm { width: 112px; max-width: 46%; gap: 6px; }
.mini-rhythm { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.mini-rhythm i { width: 12px; height: 12px; background: var(--tone); border-radius: 50%; flex-shrink: 0; }
.mini-rhythm b { width: 12px; height: 4px; background: var(--tone); border-radius: 3px; opacity: .5; }
.tempo-art img { width: 100px; height: 110px; }
.tempo-art .tempo-trail { display: flex; gap: 5px; }
.tempo-trail i { width: 5px; height: 5px; border-radius: 50%; background: var(--tone); }
.dynamics-art > svg:first-child { width: 48px; height: 48px; }
.dynamics-art > svg:last-child { width: 84px; height: 84px; }
.dynamics-art > span { width: 1px; height: 54px; background: color-mix(in srgb, var(--tone) 35%, transparent); margin: 0 20px; }
.count-art { gap: 8px; }
.count-art > span { width: 24px; height: 48px; font-size: 30px; font-weight: 900; color: var(--tone-ink); display: grid; place-items: center; }
.count-art img { width: 80px; }
.compare-art { flex-direction: column; gap: 10px; }
.compare-art > svg { width: 20px; height: 20px; opacity: .7; }
.compare-art .mini-rhythm { gap: 16px; }
.sequence-art { gap: 8px; }
.sequence-art img { width: 48px; height: 65px; }
.sequence-art svg { width: 40px; height: 40px; }
.picture-art img { width: 66px; height: 78px; }
.metronome-art img { width: 92px; height: 126px; }
.metronome-art .mini-rhythm { width: auto; }
.movement-art img { width: 86px; height: 100px; }
.movement-art svg { width: 34px; height: 34px; }
.studio-entry { display: flex; align-items: center; gap: 24px; padding: 30px 4px; margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio-entry-art { display: flex; align-items: center; gap: 12px; width: 152px; flex-shrink: 0; }
.studio-entry-art svg { width: 50px; height: 50px; color: #9a7ae6; }
.studio-entry-art img { width: 86px; height: 100px; }
.studio-entry-text { flex: 1; }
.studio-entry h3 { font-size: 27px; margin-top: 4px; }
.studio-entry p { color: var(--muted); font-size: 17px; margin-top: 5px; }
.local-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 7px; }
.local-note svg { width: 17px; height: 17px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 30px 0 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.footer > a:first-child img { width: 115px; height: 38px; }
.footer nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; }
.footer a:hover { color: #1f5fb0; }
.screen-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.screen-heading > div:first-of-type { min-width: 0; }
.screen-heading h1 { font-size: 30px; overflow-wrap: anywhere; }
.screen-heading p { font-size: 16px; color: var(--muted); margin-top: 4px; }
.heading-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 24px; }
.setup-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: center; padding: 30px 0; }
.setup-preview { background: var(--tone-bg); border-radius: var(--radius-l); padding: 34px; aspect-ratio: 1; max-height: 460px; display: flex; align-items: center; }
.setup-preview .category-art { height: 260px; }
.setup-preview .category-art img { max-height: 240px; height: 240px; }
.setup-preview .neutral-symbol { width: 180px; height: 180px; }
.setup-preview .mini-rhythm i { width: 20px; height: 20px; }
.setup-options { display: flex; flex-direction: column; gap: 30px; }
.setup-options .segmented { align-self: flex-start; }
.setup-options .segmented button { min-width: 70px; }
.start-btn { align-self: flex-start; min-width: 230px; min-height: 64px; }
.in-exercise { max-width: 1440px; }
.exercise { min-height: calc(100dvh - 56px); display: flex; flex-direction: column; }
.exercise .screen-heading { margin-bottom: 16px; }
.exercise .screen-heading h1 { font-size: 24px; }
.session-progress { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 24px; }
.progress-track { height: 7px; background: var(--line); border-radius: 8px; flex: 1; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: 8px; background: #4fb383; }
.exercise-heading { text-align: center; }
.exercise-heading h2 { font-size: 32px; }
.listening-state { height: 30px; margin-top: 8px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 17px; color: var(--muted); }
.listening-state svg { width: 20px; height: 20px; }
.exercise-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; flex: 1; padding: 28px 0 16px; }
.pattern-display { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.pattern-display > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.pattern-display i { width: 16px; height: 16px; background: var(--tone); border-radius: 50%; }
.pattern-display .rest { color: var(--muted); }
.pattern-display .current { background: var(--tone-bg); outline: 2px solid var(--tone); }
.drum-pad { border: 4px solid var(--tone-bg); background: var(--surface); border-radius: 50%; width: 320px; aspect-ratio: 1; max-width: 85%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: var(--shadow); padding: 32px; touch-action: none; }
.drum-pad img { width: 238px; height: 202px; }
.drum-pad .neutral-symbol { width: 170px; height: 170px; max-width: 100%; color: #486477; stroke-width: 1.5; }
.drum-pad span { font-size: 24px; font-weight: 900; color: var(--tone-ink); }
.drum-pad:disabled { opacity: .8; }
.drum-pad:not(:disabled):active { background: var(--tone-bg); transform: scale(.97); }
.tap-progress { min-height: 24px; color: var(--muted); font-size: 15px; }
.exercise-controls { min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 8px 0 16px; }
.feedback { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 20px; font-weight: 900; text-align: center; }
.feedback.positive { color: #1f7a4c; background: #e8f6ef; }
.feedback.gentle { color: #8a6210; background: #fff6df; }
.listening-object { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.listening-object img { width: 188px; height: 160px; }
.listening-object .neutral-symbol { width: 140px; height: 140px; color: #486477; stroke-width: 1.5; }
.listening-object .pulse-frame-0 { transform: scale(1.04); }
.listening-object .pulse-frame-1 { transform: scale(.97); }
.sound-waves { display: flex; align-items: center; gap: 5px; height: 24px; }
.sound-waves i { width: 5px; height: 12px; background: var(--tone); border-radius: 8px; opacity: .35; }
.sound-waves i:nth-child(2),.sound-waves i:nth-child(4) { height: 18px; }
.sound-waves i:nth-child(3) { height: 24px; }
.is-listening .sound-waves i { opacity: 1; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; width: min(760px,100%); }
.answer { min-height: 160px; border: 3px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--surface); }
.answer strong { font-size: 24px; }
.answer:disabled { opacity: .55; }
.answer.auditioning { opacity: 1; border-color: var(--tone); background: var(--tone-bg); }
.comparison-playback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(760px, 100%); }
.comparison-listen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 144px; padding: 16px 12px; border: 3px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comparison-listen strong { font-size: 22px; }
.comparison-number { display: grid; place-items: center; width: 44px; height: 44px; background: var(--tone-bg); border-radius: 50%; color: var(--tone-ink); font-size: 26px; font-weight: 900; }
.comparison-status { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; min-height: 24px; }
.comparison-status svg { width: 18px; height: 18px; }
.comparison-listen.auditioning { border-color: var(--tone-ink); background: var(--tone-bg); color: var(--tone-ink); }
.comparison-listen.auditioning .comparison-number { color: var(--surface); background: var(--tone-ink); }
.comparison-listen:hover:not(:disabled) { border-color: var(--tone-ink); }
.answer:hover:not(:disabled) { border-color: var(--tone); background: var(--tone-bg); }
.answer svg { width: 56px; height: 56px; color: var(--tone-ink); }
.different-symbol { font-size: 64px; font-weight: 900; line-height: 1; color: var(--tone-ink); }
.number-answers { grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); }
.number-answers .answer { min-height: 134px; padding: 12px; }
.number-answers strong { font-size: 38px; }
.quantity-dots { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 76px; }
.quantity-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.rhythm-number { width: 60px; height: 60px; border-radius: 50%; background: var(--tone-bg); color: var(--tone-ink); font-size: 38px; font-weight: 900; display: grid; place-items: center; }
.finish { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.finish-art { width: 170px; height: 170px; }
.finish h1 { font-size: 42px; }
.finish p { color: var(--muted); }
.finish-results { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 16px; margin: 12px 0; }
.finish-results span { display: flex; align-items: center; gap: 7px; color: #1f7a4c; }
.finish-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 580px; }
.finish-actions .text-btn { flex-basis: 100%; }
.metronome-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 54px; align-items: center; min-height: calc(100dvh - 160px); }
.metronome-stage { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.metronome-stage h2 { font-size: 28px; }
.beat-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
.beat-dots > span { width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 50%; font-size: 20px; font-weight: 900; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.beat-dots > span.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.beat-dots > span:first-child.active { background: var(--go); border-color: var(--go); box-shadow: 0 0 0 5px #e8f6ef; }
.metro-drum { border: 4px solid #e3e7f1; border-radius: 50%; background: white; width: 300px; height: 300px; display: grid; place-items: center; padding: 35px; box-shadow: var(--shadow); }
.metro-drum.beat-active { border-color: var(--primary); background: var(--primary-soft); transform: scale(1.035); }
.metro-drum:active { background: var(--primary-soft); }
.metro-drum .neutral-symbol { width: 100%; height: 100%; color: #486477; stroke-width: 1.5; }
.metro-drum .instrument-symbol { width: 70%; height: 70%; color: var(--primary); stroke-width: 1.6; }
.bar-indicator { color: var(--muted); font-size: 15px; }
.metro-settings { display: flex; flex-direction: column; gap: 28px; border-left: 1px solid var(--line); padding-left: 38px; }
.tempo-stepper { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tempo-stepper label { display: flex; flex-direction: column; align-items: center; }
.tempo-stepper input { font-size: 52px; font-weight: 900; text-align: center; width: 144px; background: transparent; border-color: transparent; }
.tempo-stepper label > span { font-size: 14px; color: var(--muted); }
.tap-tempo { align-self: center; font-size: 16px; }
.dialog { width: min(720px, calc(100% - 32px)); border: 0; padding: 0; border-radius: var(--radius-l); box-shadow: var(--shadow-lift); color: var(--ink); background: var(--surface); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
.dialog::backdrop { background: rgba(29,36,64,.28); }
.dialog:not([open]) { display: none; }
.dialog-fallback-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(29,36,64,.28); z-index: 1000; }
.dialog-fallback[open] { display: block; position: fixed; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); z-index: 1001; }
.dialog-inner { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.dialog .section-head { margin-bottom: 0; }
.dialog .section-head h2 { font-size: 28px; }
.dialog .section-head .icon-btn { background: var(--bg); box-shadow: none; }
.sheet-row { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--line); }
.sheet-row h3 { font-size: 20px; }
.sheet-note { color: var(--muted); font-size: 15px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 20px; font-weight: 900; min-height: 48px; }
.toggle-row input { appearance: none; flex-shrink: 0; width: 56px; height: 32px; border: 2px solid #78829c; border-radius: 999px; background: var(--surface); position: relative; cursor: pointer; margin: 8px 0; }
.toggle-row input::before { content: ''; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 50%; background: #78829c; }
.toggle-row input:checked { background: var(--primary); border-color: var(--primary); }
.toggle-row input:checked::before { left: 27px; background: white; }
.instrument-label { font-size: 20px; font-weight: 900; }
.instrument-control { display: flex; align-items: center; gap: 12px; min-width: 0; }
.instrument-control select { flex: 1; min-width: 0; }
.instrument-control .icon-btn { flex-shrink: 0; }
.sheet-row select { border: 2px solid var(--line); border-radius: 14px; background: var(--surface); min-height: 56px; padding: 10px 14px; width: 100%; }
.instrument-symbol { width: 55%; height: 65%; color: var(--tone-ink); }
.picture-sequence { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 100%; }
.picture-sequence > span, .sequence-cycle > span { width: 88px; height: 100px; display: grid; place-items: center; border: 2px solid transparent; border-radius: 14px; padding: 10px; }
.complete-sequence { flex-direction: column; gap: 8px; }
.sequence-cycle { display: flex; justify-content: center; gap: 10px; }
.sequence-cycle > span { width: 72px; height: 64px; }
.picture-sequence img { width: 100%; height: 78px; }
.picture-sequence svg { width: 38px; height: 38px; color: var(--tone-ink); }
.picture-sequence .current { border-color: var(--tone); background: var(--tone-bg); }
.picture-sequence .missing-symbol { border-color: var(--line); border-style: dashed; }
.sequence-hits { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sequence-hits i { width: 18px; height: 18px; border-radius: 50%; background: var(--tone); }
.sequence-answers { display: flex; flex-wrap: wrap; justify-content: center; width: min(750px, 100%); }
.sequence-answers .answer { flex: 1 1 160px; max-width: 240px; }
.sequence-answers .answer img { width: 96px; height: 85px; }
@media (max-width: 620px) {
  .picture-sequence { gap: 6px; }
  .picture-sequence > span, .sequence-cycle > span { width: 60px; height: 74px; padding: 6px; }
  .sequence-cycle { gap: 6px; }
  .sequence-cycle > span { height: 54px; }
  .picture-sequence img { height: 60px; }
  .sequence-answers .answer { flex-basis: 85px; min-width: 0; }
  .sequence-answers .answer img { width: 64px; height: 65px; }
  .sequence-answers .answer strong { font-size: 17px; overflow-wrap: anywhere; }
}
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row output { font-size: 16px; min-width: 44px; }
.install-icon { width: 88px; height: 88px; border-radius: 22px; align-self: center; }
.notice { color: #76500d; background: #fff6df; padding: 14px 18px; border-radius: 14px; font-size: 16px; }
.skip-link { position: fixed; left: 16px; top: -120px; background: white; padding: 16px; border-radius: 10px; z-index: 20; }
.skip-link:focus { top: 12px; }
.update-dialog { width: min(520px, calc(100% - 32px)); }
.update-dialog::backdrop { background: rgba(29,36,64,.45); }
.update-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 32px 28px 24px; }
.update-icon { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.update-icon svg { width: 48px; height: 48px; }
.update-inner h2 { font-size: 30px; }
.update-inner p { color: var(--muted); font-size: 19px; }
.update-ok { width: 100%; min-height: 76px; font-size: 24px; margin-top: 6px; }
.update-ok svg { width: 28px; height: 28px; }
.update-later { width: 100%; }
.home-about { margin-top: 24px; padding: 32px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.home-about h2 { font-size: 24px; }
.home-about p { max-width: 75ch; color: var(--muted); font-size: 18px; line-height: 1.4; font-weight: 600; }
.about-topics { display: flex; flex-direction: column; gap: 12px; max-width: 75ch; }
.about-topics h3 { font-size: 18px; }
.about-topics p { margin-top: 6px; }
.family-section { margin-top: 24px; padding: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.family-head { display: flex; align-items: center; gap: 20px; }
.family-head img { width: 176px; height: 52px; }
.family-head > a { flex: none; }
.family-head h2 { font-size: 22px; margin-bottom: 4px; }
.family-head p { font-size: 18px; color: var(--muted); }
.family-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.family-list a { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 80px; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius); }
.family-list a:hover { border-color: var(--primary); }
.family-list img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; }
.family-list a > span { flex: 1; min-width: 0; }
.family-list strong { display: block; font-size: 18px; }
.family-list span span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.family-section > .btn { align-self: flex-start; }
.topic-links { max-width: 75ch; color: var(--muted); font-size: 18px; line-height: 1.4; }
.topic-links a { color: #1f5fb0; text-decoration: underline; text-underline-offset: 3px; }
.seo-page { font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.seo-page .page { max-width: 1040px; padding: 0 16px 32px; }
.seo-page a { color: #1f5fb0; text-decoration: underline; text-underline-offset: 3px; }
.seo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.seo-page .seo-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.seo-brand img:first-child { width: 40px; height: 40px; border-radius: 22%; box-shadow: var(--shadow); }
.seo-brand img:last-child { height: 36px; width: 108px; }
.seo-page .seo-open { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 800; text-align: center; text-decoration: none; }
.seo-crumbs { font-size: 14px; color: #555e7c; margin-top: 8px; }
.seo-topic { padding: 0; }
.seo-topic h1 { font-size: 42px; line-height: 1.15; margin: 8px 0 12px; max-width: 900px; }
.seo-topic .topic-lead { font-size: 19px; margin: 19px 0; max-width: 760px; }
.seo-topic section, .seo-other { margin-top: 36px; }
.seo-topic h2, .seo-other h2 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.seo-topic p { margin: 17px 0; max-width: 760px; font-weight: 400; }
.topic-exercises { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px; }
.seo-page .topic-exercises a { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); font-weight: 800; color: var(--ink); text-decoration: none; min-height: 48px; display: flex; align-items: center; }
.seo-page .topic-exercises a:hover { color: #1f5fb0; border-color: var(--primary); }
.seo-other ul { padding-left: 20px; margin: 0; font-weight: 400; }
.seo-other li { margin: 4px 0; }
.seo-footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: #555e7c; font-size: 14px; font-weight: 400; display: flex; align-items: center; gap: 12px; }
.seo-footer > a { flex: none; }
.seo-footer img { display: block; width: 120px; height: 36px; }
.seo-footer p { margin-top: 8px; }
@media (max-width: 700px) { .seo-topic h1 { font-size: 28px; } }
@media (max-width: 600px) {
  .home-about { padding: 20px; }
  .family-head, .seo-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .family-section > .btn { align-self: stretch; justify-content: center; text-align: center; }
  .comparison-playback { gap: 12px; }
  .comparison-listen { min-height: 128px; padding: 12px 6px; }
  .comparison-listen strong { font-size: 20px; }
  .comparison-status { font-size: 14px; }
}
.privacy-badge { display: flex; align-items: center; gap: 6px; color: #1f7a4c; font-size: 14px; }
.privacy-badge svg { width: 20px; height: 20px; }
.studio-empty { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 30px 0 44px; text-align: center; }
.studio-empty h2 { font-size: 30px; }
.studio-empty p { font-size: 15px; color: var(--muted); }
.empty-music-art { display: flex; align-items: center; gap: 20px; height: 142px; margin-bottom: 12px; }
.empty-music-art img { width: 130px; height: 138px; }
.empty-music-art svg { width: 52px; height: 52px; color: #9a7ae6; }
.upload-button { position: relative; overflow: hidden; cursor: pointer; }
.upload-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.upload-button:focus-within { outline: 3px solid var(--primary); outline-offset: 4px; }
.project-library { border-top: 1px solid var(--line); padding-top: 28px; }
.project-library h2 { font-size: 23px; margin-bottom: 16px; }
.project-list { display: flex; flex-direction: column; }
.project-row { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.project-row > svg { color: #9a7ae6; }
.project-open { border: 0; background: transparent; text-align: left; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; min-height: 56px; justify-content: center; }
.project-open strong { font-size: 20px; overflow-wrap: anywhere; }
.project-open span { font-size: 14px; color: var(--muted); }
.studio-track-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.studio-track-heading .button-row { flex-wrap: wrap; }
.track-title { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 160px; max-width: 460px; }
.track-title > span { font-size: 12px; color: var(--muted); }
.track-title input { font-size: 22px; font-weight: 900; width: 100%; }
.studio-track-heading .btn { font-size: 15px; padding: 10px 16px; }
.studio-wave { border-radius: 20px; border: 1px solid var(--line); background: white; padding: 20px 24px 12px; }
.waveform canvas { display: block; width: 100%; height: 100px; cursor: pointer; }
.waveform input { display: block; }
.wave-controls { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.save-status { margin-left: auto; display: flex; align-items: center; gap: 5px; color: #1f7a4c; font-size: 12px; }
.studio-timing { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.studio-timing legend { font-size: 17px; }
.bpm-row,.offset-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bpm-row label,.offset-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.bpm-row input { width: 80px; font-size: 23px; font-weight: 900; padding: 8px; text-align: center; }
.bpm-row .btn,.offset-row .btn { font-size: 15px; padding: 8px 14px; }
.offset-row input { width: 94px; padding: 8px; }
.small-btn { min-width: 44px; min-height: 48px; background: white; border: 1px solid var(--line); border-radius: 12px; font-size: 18px; font-weight: 800; }
.field-note { display: block; color: var(--muted); font-size: 12px; }
.tap-counter { min-width: 20px; font-size: 12px; }
.studio-timing .segmented button { padding: 10px 12px; }
.timeline-section { padding: 26px 0; }
.timeline-section h2 { font-size: 22px; }
.page-controls { display: flex; align-items: center; gap: 10px; }
.page-controls .icon-btn { width: 44px; height: 44px; min-width: 44px; }
.page-controls > span { font-size: 14px; min-width: 95px; text-align: center; }
.action-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.action-tool { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: white; min-height: 54px; }
.action-tool[aria-pressed='true'] { border-color: var(--primary); background: var(--primary-soft); }
.action-tool > span { font-size: 24px; }
.action-tool strong { font-size: 13px; font-weight: 800; }
.action-tool > svg { width: 23px; height: 23px; }
.tool-symbol { display: grid; place-items: center; width: 28px; height: 28px; }
.tool-symbol img, .tool-symbol svg { width: 28px; height: 28px; }
.beat-grid { display: grid; gap: 10px; }
.beat-cell { background: white; border: 2px solid var(--line); border-radius: 14px; min-height: 108px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; }
.beat-cell:hover { border-color: #b0c9ed; }
.beat-cell.bar-start { border-left: 4px solid #9a7ae6; }
.beat-cell.current { border-color: var(--primary); background: var(--primary-soft); }
.beat-cell-label { font-size: 13px; align-self: flex-start; color: var(--muted); }
.beat-cell-symbol { font-size: 42px; font-weight: 600; color: #78829c; }
.beat-cell-symbol img, .beat-cell-symbol svg { width: 42px; height: 42px; object-fit: contain; }
.beat-cell-time { font-size: 11px; align-self: flex-end; color: var(--muted); }
.studio-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.muted { color: var(--muted); font-size: 14px; }
.busy { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px; }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page:has(.movement-player) { max-width: none; padding: 20px 28px; }
.page:has(.movement-player) .app-header, .page:has(.movement-player) .main-nav { display: none; }
.movement-player { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.player-bar { display: flex; align-items: center; gap: 18px; }
.player-bar h1 { flex: 1; text-align: center; font-size: 22px; overflow-wrap: anywhere; }
.player-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10%; padding: 24px 0; min-height: 330px; }
.current-action { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.current-action .eyebrow { font-size: 14px; }
.current-action .action-symbol { font-size: 170px; line-height: 1.25; }
.action-symbol { display: grid; place-items: center; width: 1.35em; height: 1.25em; }
.action-symbol img, .action-symbol svg { width: 1.2em; height: 1em; object-fit: contain; }
.current-action h2 { font-size: 42px; }
.current-action h2 { min-height: 2.4em; display: grid; place-items: center; max-width: 300px; }
.next-action { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 180px; text-align: center; }
.next-action > span:nth-child(2) { font-size: 72px; }
.next-action > span:nth-child(2) { display: grid; place-items: center; width: 1.3em; height: 1.25em; }
.next-action img, .next-action svg { width: 1.2em; height: 1em; object-fit: contain; }
.next-action > strong { font-size: 20px; }
.countdown { font-size: 160px; font-weight: 1000; color: #1f5fb0; font-variant-numeric: tabular-nums; }
.player-controls { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 10px; }
.player-finished { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.player-finished img { width: 180px; height: 180px; }
.player-finished .neutral-symbol { width: 150px; height: 150px; color: var(--go); }
.player-finished h2 { font-size: 42px; }
.licenses-page .license-section { display: flex; flex-direction: column; gap: 14px; max-width: 800px; padding: 18px 0; }
.license-section h2 { font-size: 23px; margin-top: 12px; }
.license-section p { color: var(--muted); font-size: 17px; }
.license-section a { text-decoration: underline; color: #1f5fb0; }
[data-appearance='neutral'] .category-tile, [data-appearance='neutral'] .setup-preview { background: #eef1f6; }
[data-appearance='neutral'] .category-tile { --tone: #647aa0; --tone-ink: #3e567a; }
[data-appearance='neutral'] .category-tile { border-color: var(--line); border-radius: 8px; }
[data-appearance='neutral'] h1, [data-appearance='neutral'] h2, [data-appearance='neutral'] h3 { font-weight: 800; }
[data-appearance='neutral'] .exercise { --tone: #486477; --tone-ink: #354e60; --tone-bg: #eef2f5; }
[data-appearance='neutral'] .finish-art { color: var(--go); stroke-width: 1.5; }
[data-appearance='neutral'] .drum-pad:active, [data-appearance='neutral'] .metro-drum.beat-active, [data-appearance='neutral'] .listening-object .illustration { transform: none; }
[data-appearance='neutral'] .eyebrow { font-weight: 800; }
[data-size='large'] .answer { min-height: 185px; border-width: 4px; }
[data-size='large'] .answer strong { font-size: 28px; }
[data-size='large'] .btn { min-height: 64px; }
[data-size='large'] .icon-btn { width: 60px; height: 60px; min-width: 60px; }
[data-size='large'] .drum-pad { width: 360px; }
@media (min-width: 1700px) {
  .page { max-width: 1500px; }
  .category-tile { min-height: 300px; }
  .category-art { height: 156px; }
  .category-art img { max-height: 145px; }
  .in-exercise { max-width: 1700px; }
  .current-action .action-symbol { font-size: 230px; }
  .current-action h2 { font-size: 56px; }
  .next-action > span:nth-child(2) { font-size: 100px; }
}
@media (max-width: 1100px) {
  .offline-status { display: none; }
  .offline-status:not(:empty) + .header-tools { margin-left: auto; }
  .main-nav a { padding: 0 12px; }
  .category-tile { padding: 20px 18px 16px; }
  .tile-title h3 { font-size: 22px; }
  .studio-timing { grid-template-columns: 1fr 1fr; }
  .studio-timing fieldset:last-child { grid-column: 1 / -1; max-width: 260px; }
}
@media (max-width: 850px) {
  .support-trigger.is-compact span, .install-btn span { display: none; }
  .support-trigger.is-compact, .install-btn { padding: 0 12px; min-width: 56px; min-height: 56px; }
  .library-heading { align-items: flex-start; }
  .library-heading .segmented button { padding: 10px 12px; }
  .setup-layout { gap: 28px; grid-template-columns: .65fr 1fr; }
  .setup-preview { padding: 10px; }
  .setup-preview .category-art { height: 180px; }
  .setup-preview .category-art img { height: 150px; }
  .metronome-layout { gap: 30px; grid-template-columns: 1.15fr 1fr; }
  .metro-settings { padding-left: 24px; }
  .metro-drum { width: 240px; height: 240px; padding: 26px; }
  .studio-track-heading { flex-wrap: wrap; }
  .beat-cell { flex-direction: column; gap: 0; padding: 8px; }
  .beat-cell-time { align-self: center; }
}
@media (max-width: 620px) {
  .page { padding: max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
  .app-header { gap: 16px 12px; min-height: 0; }
  .brand-name { font-size: 42px; gap: 10px; }
  .brand-icon { width: 52px; height: 52px; }
  .brand-wordmark { width: 170px; height: 52px; }
  .brand-sub { font-size: 17px; }
  .header-tools { gap: 10px; }
  .main-nav a { flex: 1; min-width: 0; }
  .library-heading { flex-direction: column; gap: 16px; margin-bottom: 18px; }
  .library-heading h1 { font-size: 28px; }
  .library-heading .segmented { width: 100%; }
  .library-heading .segmented button { font-size: 14px; padding: 9px 10px; }
  .category-grid { gap: 12px; }
  .category-tile { min-height: 256px; padding: 17px 13px 12px; border-radius: 20px; }
  .tile-title { min-height: 78px; }
  .tile-title h3 { font-size: 20px; }
  .tile-title p { font-size: 12px; line-height: 1.35; margin-top: 5px; }
  .category-art { height: 103px; gap: 6px; margin: 6px 0; }
  .category-art img { max-height: 92px; }
  .category-art .neutral-symbol { width: 58px; height: 58px; }
  .category-art > .mini-rhythm { width: 55px; gap: 5px; }
  .mini-rhythm i { width: 9px; height: 9px; }
  .mini-rhythm b { width: 9px; height: 3px; }
  .tempo-art img { width: 66px; height: 85px; max-width: 47%; }
  .tempo-art .tempo-trail { display: none; }
  .dynamics-art > svg:first-child { width: 32px; height: 32px; }
  .dynamics-art > svg:last-child { width: 52px; height: 52px; }
  .dynamics-art > span { height: 36px; margin: 0 8px; }
  .count-art > span { font-size: 29px; width: 23px; }
  .count-art img { width: 60px; margin-left: 0; }
  .compare-art .mini-rhythm { width: auto; gap: 14px; }
  .sequence-art { gap: 4px; }
  .sequence-art img { width: 29px; height: 48px; }
  .sequence-art svg { width: 24px; height: 24px; }
  .picture-art img { width: 39px; height: 65px; }
  .metronome-art img { width: 70px; height: 102px; }
  .movement-art img { width: 52px; height: 77px; }
  .movement-art svg { width: 24px; height: 24px; }
  .tile-foot { font-size: 10px; gap: 3px; min-height: 34px; }
  .tile-foot > span:first-child { padding: 5px 7px; }
  .round-arrow { width: 30px; height: 30px; flex-shrink: 0; }
  .round-arrow svg { width: 17px; height: 17px; }
  .soon-dot { margin-right: 11px; }
  .studio-entry { flex-wrap: wrap; gap: 16px; padding: 24px 0; margin-top: 24px; }
  .studio-entry-art { width: 86px; gap: 0; }
  .studio-entry-art svg { width: 30px; height: 30px; }
  .studio-entry-art img { width: 59px; height: 80px; }
  .studio-entry h3 { font-size: 24px; }
  .studio-entry p { font-size: 15px; }
  .studio-entry .btn { width: 100%; }
  .local-note { font-size: 11px; }
  .footer { justify-content: center; gap: 10px; padding-top: 20px; text-align: center; }
  .footer nav { flex-basis: 100%; justify-content: center; gap: 18px; }
  .screen-heading { gap: 10px; margin-bottom: 24px; }
  .screen-heading h1 { font-size: 24px; }
  .screen-heading p { font-size: 13px; }
  .heading-tools { gap: 5px; }
  .screen-heading .icon-btn { width: 44px; height: 44px; min-width: 44px; }
  .setup-layout { grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .setup-preview { aspect-ratio: auto; height: 150px; }
  .setup-preview .category-art { height: 140px; }
  .setup-preview .category-art img { height: 135px; }
  .setup-preview .category-art > .mini-rhythm { width: 150px; gap: 14px; }
  .setup-options { gap: 26px; }
  .start-btn { width: 100%; }
  .setup-options .segmented { width: 100%; }
  .exercise { min-height: calc(100dvh - 38px); }
  .exercise .screen-heading h1 { font-size: 20px; }
  .exercise .screen-heading p { font-size: 12px; }
  .session-progress { margin-bottom: 20px; }
  .exercise-heading h2 { font-size: 26px; }
  .listening-state { font-size: 15px; }
  .exercise-stage { padding: 20px 0 12px; gap: 16px; }
  .pattern-display { gap: 6px; }
  .pattern-display > span { width: 24px; height: 28px; }
  .pattern-display i { width: 13px; height: 13px; }
  .drum-pad { width: 250px; padding: 24px; }
  .drum-pad img { width: 180px; height: 152px; }
  .drum-pad span { font-size: 21px; }
  .answers { gap: 12px; }
  .answer { min-height: 140px; padding: 16px 10px; border-radius: 18px; }
  .answer strong { font-size: 20px; }
  .answer svg { width: 42px; height: 42px; }
  .number-answers { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
  .number-answers .answer { min-height: 108px; padding: 10px 6px; }
  .number-answers strong { font-size: 32px; }
  .listening-object img { width: 150px; height: 124px; }
  .exercise-controls { min-height: 105px; gap: 12px; }
  .exercise-controls .btn { font-size: 16px; padding: 12px 18px; }
  .finish h1 { font-size: 34px; }
  .finish-results { flex-direction: column; gap: 12px; }
  .finish-actions .btn { width: 100%; }
  .metronome-layout { grid-template-columns: 1fr; gap: 32px; min-height: auto; }
  .metronome-stage { gap: 20px; }
  .metronome-stage h2 { font-size: 23px; }
  .metro-settings { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .metro-settings .segmented { width: 100%; }
  .studio-empty { min-height: 360px; padding: 12px 0 32px; }
  .studio-empty h2 { font-size: 25px; }
  .empty-music-art { gap: 10px; height: 120px; }
  .empty-music-art img { width: 105px; height: 110px; }
  .empty-music-art svg { width: 34px; height: 34px; }
  .studio-track-heading { gap: 14px; }
  .track-title { max-width: none; width: 100%; flex-basis: 100%; }
  .studio-track-heading .button-row { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .studio-track-heading .btn { min-height: 48px; font-size: 13px; padding: 8px 10px; }
  .studio-wave { padding: 14px 12px 10px; }
  .waveform canvas { height: 84px; }
  .wave-controls { gap: 8px; flex-wrap: wrap; font-size: 13px; }
  .wave-controls .icon-btn { width: 44px; height: 44px; min-width: 44px; }
  .save-status { font-size: 10px; margin-left: 0; flex-basis: 100%; justify-content: flex-end; }
  .studio-timing { grid-template-columns: 1fr; padding: 24px 0; gap: 22px; }
  .studio-timing fieldset:last-child { max-width: none; }
  .timeline-section { padding: 22px 0; }
  .timeline-section .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .timeline-section h2 { font-size: 22px; }
  .page-controls { align-self: stretch; justify-content: space-between; }
  .action-tools { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .action-tool { padding: 8px 4px; min-height: 75px; flex-direction: column; gap: 3px; }
  .action-tool strong { font-size: 10px; }
  .action-tool > span { font-size: 25px; }
  .beat-grid { gap: 7px; }
  .beat-cell { min-height: 108px; border-radius: 12px; padding: 7px 4px; }
  .beat-cell-label { font-size: 10px; padding-left: 3px; }
  .beat-cell-symbol { font-size: 32px; }
  .beat-cell-time { font-size: 9px; }
  .studio-bottom { flex-wrap: wrap; }
  .studio-bottom .btn { flex: 1; }
  .page:has(.movement-player) { padding: max(14px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom)); }
  .movement-player { min-height: calc(100dvh - 36px); }
  .player-bar { gap: 8px; }
  .player-bar h1 { font-size: 16px; }
  .player-bar .btn { padding: 10px; font-size: 13px; min-height: 44px; }
  .player-bar .btn svg { width: 18px; height: 18px; }
  .player-bar .icon-btn { width: 44px; height: 44px; min-width: 44px; }
  .player-center { gap: 7%; min-height: 300px; }
  .current-action .action-symbol { font-size: 110px; }
  .current-action h2 { font-size: 26px; max-width: 180px; }
  .next-action { max-width: 105px; }
  .next-action > span:nth-child(2) { font-size: 45px; }
  .next-action > strong { font-size: 14px; }
  .current-action .eyebrow,.next-action .eyebrow { font-size: 11px; }
  .player-controls { gap: 18px; }
  .countdown { font-size: 120px; }
  .dialog-inner { padding: 20px; }
  .privacy-badge { font-size: 0; }
  .privacy-badge svg { width: 24px; height: 24px; }
  [data-size='large'] .screen-heading { flex-wrap: wrap; }
  [data-size='large'] .heading-tools { flex-basis: 100%; justify-content: flex-end; }
  [data-size='large'] .answer { min-height: 145px; }
  [data-size='large'] .answer strong { font-size: 23px; }
}
@media (max-width: 360px) {
  .category-grid { gap: 10px; }
  .category-tile { padding: 15px 10px 12px; }
  .tile-title h3 { font-size: 18px; }
  .tile-foot > span:first-child { padding: 5px; font-size: 9px; }
  .round-arrow { width: 26px; height: 26px; }
  .screen-heading { flex-wrap: wrap; }
  .heading-tools { flex-basis: 100%; justify-content: flex-end; }
  .bpm-row { gap: 5px; }
}
@media (min-width: 2200px) { .page { max-width: 1900px; } }
@media (orientation: landscape) and (max-height: 650px) {
  .exercise-stage { padding: 12px 0; }
  .drum-pad { width: 200px; padding: 16px; }
  .drum-pad img { width: 140px; height: 120px; }
  .exercise-heading h2 { font-size: 24px; }
  .exercise-controls { min-height: 80px; }
  .player-center { min-height: 220px; padding: 12px 0; }
  .current-action .action-symbol { font-size: 90px; }
  .current-action h2 { font-size: 28px; }
  .player-controls { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; }
  a.category-tile:hover,.btn:active,.drum-pad:active,.metro-drum.beat-active,.listening-object img { transform: none !important; }
}

/* Shared rhythm notation, new activities and Studio tools. */
.exercise-guide { width: min(760px, 100%); margin: 8px auto 14px; padding: 0 12px; text-align: center; font-size: 17px; font-weight: 700; color: var(--muted); }
.practice-options { margin-top: 6px; padding: 16px 18px; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface, #fff); text-align: left; }
.practice-head, .section-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.practice-head h2 { font-size: 20px; }
.section-tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; background: var(--primary-soft); color: #1f5fb0; font-size: 13px; font-weight: 900; }
.practice-options p { margin: 12px 0 0; }
.practice-options label { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px 0; }
.practice-options input[type='number'] { width: 90px; }
.setup-guide { font-size: 19px; color: var(--muted); max-width: 52ch; }
.group-notice { max-width: 760px; padding: 12px 16px; margin: 12px auto; border-radius: 14px; background: var(--tone-bg, #eaf2ff); font-size: 16px; text-align: center; }
.rhythm-symbol { position: relative; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--tone-ink, #235ca8); }
.rhythm-symbol i { display: block; width: 17px; height: 17px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.rhythm-symbol svg { width: 26px; height: 26px; }
.rhythm-symbol .accent-mark { position: absolute; top: -20px; font-size: 26px; line-height: 1; }
.pattern-display.time-grid { display: grid; width: min(420px, 100%); gap: 8px 0; }
.pattern-display.time-grid > span { width: 100%; height: 40px; }
.pattern-display.time-grid .rhythm-symbol { min-height: 24px; }
.new-category-art { gap: 8px; }
.new-category-art .illustration, .new-category-art .movement-illustration { width: 38%; max-height: 110px; object-fit: contain; }
.instrument-illustration { object-fit: contain; }
.movement-illustration { display: block; width: 100%; height: 100%; object-fit: contain; }
.action-symbol .movement-illustration { max-height: min(40vh, 340px); }
.next-action .movement-illustration { height: 80px; }
.tool-symbol .movement-illustration { height: 50px; }
.beat-cell-symbol .movement-illustration { height: 65px; }
.creative-page { text-align: center; }
.creative-prompt { font-size: clamp(24px, 3.5vw, 34px); margin: 20px auto; max-width: 800px; }
.composer-settings, .range-fields { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: end; margin: 16px auto; }
.composer-settings label, .range-fields label { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; }
.composer-settings input, .range-fields input { width: 100px; }
.composer-settings select { max-width: 220px; }
.rhythm-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0; }
.rhythm-tools .answer { min-width: 100px; min-height: 85px; padding: 12px; }
.rhythm-tools [aria-pressed='true'] { border-color: var(--blue, #2f7de1); background: #eaf2ff; }
.rhythm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(680px, 100%); margin: 24px auto; }
.rhythm-slot { border: 2px solid var(--line); background: #fff; border-radius: 16px; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 10px; color: var(--text); }
.rhythm-slot.current { border-color: var(--tone, #2f7de1); background: var(--tone-bg, #eaf2ff); box-shadow: inset 0 0 0 2px var(--tone, #2f7de1); }
.rhythm-slot.bar-start { border-left-width: 5px; }
.rhythm-slot small { color: var(--muted); font-size: 14px; }
.compose-loop { max-width: 300px; margin: 16px auto; }
.creative-page .button-row { margin: 18px auto; }
.creative-page .field-note { max-width: 680px; margin: 12px auto; }
.creative-page .instrument-answers .answer { width: min(200px, 100%); }
.instrument-answers .illustration { width: 110px; height: 110px; }
.creative-drum { margin: 20px auto; width: min(240px, 75vw); height: 240px; }
.guide-status { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 30px; }
.freeze-stage { height: min(42vh, 340px); margin: 16px auto 48px; }
.freeze-stage .movement-illustration { height: 100%; }
.creative-home { display: inline-flex; align-items: center; gap: 8px; margin: 28px auto 0; }
.studio-presets { margin: 24px 0; }
.preset-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; margin-top: 14px; }
.preset-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; padding: 18px; background: #fff; border: 2px solid var(--line); border-radius: 18px; min-height: 100px; }
.preset-card:hover { border-color: var(--blue, #2f7de1); }
.preset-card span { font-size: 15px; color: var(--muted); }
.studio-range-tools { padding: 18px; margin: 20px 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.studio-range-tools .range-fields { justify-content: flex-start; }
.studio-range-tools .button-row { flex-wrap: wrap; }
.studio-loop-toggle { margin: 14px 0; }
.library-heading { flex-wrap: wrap; }
@media (max-width: 540px) {
  .rhythm-grid { gap: 6px; }
  .rhythm-slot { min-height: 75px; padding: 6px; }
  .rhythm-symbol { gap: 5px; }
  .rhythm-symbol i { width: 13px; height: 13px; }
  .rhythm-tools .answer { min-width: 85px; flex: 1; font-size: 14px; }
  .creative-page .answers { flex-wrap: wrap; }
  .creative-drum { height: 185px; width: 185px; }
  .instrument-answers .illustration { width: 80px; height: 80px; }
  .exercise-guide { padding: 0 4px; font-size: 16px; }
  .practice-options { padding: 12px; }
  .studio-range-tools { padding: 12px; }
  .range-fields { gap: 10px; }
  .range-fields input { width: 85px; }
  .freeze-stage { margin-bottom: 58px; }
}
.composer-settings select, .studio-range-tools select { border: 2px solid var(--line); border-radius: 12px; background: var(--surface); min-height: 56px; padding: 10px 14px; max-width: 100%; }
[data-appearance='neutral'] .movement-illustration { filter: saturate(.35); }
.action-tool .tool-symbol { width: 44px; height: 54px; }
.action-tool .tool-symbol .movement-illustration { width: 44px; height: 54px; }
.own-rhythm-page, .accent-page { text-align: center; }
.own-rhythm-preview, .own-rhythm-options, .accent-editor { width: min(760px, 100%); margin: 24px auto; }
.own-rhythm-preview { padding: 28px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.own-rhythm-preview .pattern-display { margin: 0 auto; }
.own-rhythm-preview p { margin: 16px 0 0; color: var(--muted); }
.own-rhythm-options .toggle-row { margin: 18px 0; text-align: left; }
.own-rhythm-page .button-row, .accent-page .button-row { margin: 20px auto; }
.own-rhythm-page .field-note { max-width: 760px; margin: 18px auto; }
.rhythm-share-link { width: min(760px, 100%); min-height: 56px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); font: inherit; }
.compose-practice { margin-top: 8px; }
.accent-editor { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.accent-editor h3 { margin: 0 0 10px; }
.accent-editor p { color: var(--muted); }
.accent-grid { max-width: 520px; }
.accent-grid [aria-pressed='true'] { background: var(--tone-bg); border-color: var(--tone); box-shadow: inset 0 0 0 2px var(--tone); }
@media (max-width: 540px) {
  .own-rhythm-preview, .accent-editor { padding: 16px 12px; }
  .own-rhythm-options .toggle-row { font-size: 16px; }
  .accent-page .button-row, .own-rhythm-page .button-row { flex-wrap: wrap; }
}
.next-action > span .movement-illustration { width: 80px; }
.practice-options input[aria-label='Długość wzoru'] { width: 120px; }
.range-fields label.studio-loop-toggle { flex-direction: row; align-items: center; max-width: 100%; gap: 12px; }
.range-fields .studio-loop-toggle input { width: 56px; min-width: 56px; }

/* Porównanie dwóch rytmów: numer, kolor i napis zawsze wskazują ten sam rytm (1 niebieski, 2 koralowy). */
.cmp-1 { --c: #4a90e8; --c-ink: #1f5fb0; --c-bg: #eaf3fe; }
.cmp-2 { --c: #ef7f6b; --c-ink: #a8432f; --c-bg: #fdeeea; }
[data-appearance='neutral'] .cmp-1 { --c: #486477; --c-ink: #354e60; --c-bg: #eef2f5; }
[data-appearance='neutral'] .cmp-2 { --c: #7a6240; --c-ink: #5c4a2d; --c-bg: #f4efe6; }
.comparison-listen, .answer.tempo-answer { border-color: var(--c); }
.comparison-number, .rhythm-number { background: var(--c); color: #fff; }
.comparison-listen strong, .tempo-answer strong { color: var(--c-ink); }
.comparison-listen.auditioning { background: var(--c-bg); border-color: var(--c-ink); color: var(--c-ink); box-shadow: 0 0 0 5px var(--c-bg); transform: scale(1.02); }
.comparison-listen.auditioning .comparison-number { background: var(--c-ink); color: #fff; }
.comparison-listen:hover:not(:disabled), .answer.tempo-answer:hover:not(:disabled) { border-color: var(--c-ink); background: var(--c-bg); }
.answer.tempo-answer.auditioning { border-color: var(--c-ink); background: var(--c-bg); }
.comparison-status .sound-waves { height: 20px; gap: 3px; }
.comparison-status .sound-waves i { width: 4px; background: var(--c-ink); opacity: 1; }
.now-playing { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px; border-radius: 999px; font-size: 22px; font-weight: 900; color: var(--c-ink, var(--muted)); background: var(--c-bg, transparent); }
.now-playing svg { width: 26px; height: 26px; }
.listening-state:has(.now-playing) { height: auto; min-height: 44px; }
.stage-card { width: min(980px, 100%); background: var(--tone-bg); border-radius: var(--radius-l); padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sequence-exercise .complete-sequence { gap: 14px 22px; flex-direction: row; flex-wrap: wrap; }
.sequence-exercise .sequence-cycle { gap: 8px; }
.sequence-exercise .picture-sequence > span, .sequence-exercise .sequence-cycle > span { background: var(--surface); }
.sequence-exercise .sequence-cycle > span { width: 92px; height: 92px; flex-direction: column; gap: 4px; align-content: center; }
.sequence-exercise .sequence-cycle > span .rhythm-symbol { transform: scale(1.35); }
.sequence-exercise .sequence-cycle > span small { font-size: 13px; font-weight: 800; color: var(--tone-ink); line-height: 1.1; text-align: center; }
.sequence-exercise .picture-sequence .missing-symbol { background: transparent; border-color: var(--tone-ink); }
.sequence-exercise .sequence-answers { gap: 16px; }
.sequence-exercise .sequence-answers .answer { min-height: 170px; }
.sequence-exercise .sequence-answers .answer .rhythm-symbol { transform: scale(1.8); margin: 14px 0; }
@keyframes wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.15); } }
@media (prefers-reduced-motion: no-preference) {
  .comparison-listen.auditioning .sound-waves i { animation: wave .7s ease-in-out infinite; }
  .comparison-listen.auditioning .sound-waves i:nth-child(2n) { animation-delay: .15s; }
  .comparison-listen.auditioning .sound-waves i:nth-child(3n) { animation-delay: .3s; }
}
@media (max-width: 620px) {
  .stage-card { padding: 18px 10px; }
  .sequence-exercise .complete-sequence { gap: 10px 14px; }
  .sequence-exercise .sequence-cycle { gap: 5px; }
  .sequence-exercise .sequence-cycle > span { width: 56px; height: 72px; padding: 4px; }
  .sequence-exercise .sequence-cycle > span small { font-size: 10px; }
  .sequence-exercise .sequence-cycle > span .rhythm-symbol { transform: scale(1); }
  .sequence-exercise .sequence-answers .answer .rhythm-symbol { transform: scale(1.3); margin: 8px 0; }
  .now-playing { font-size: 19px; padding: 4px 14px; }
}
.stage-card:empty { display: none; }
/* Ekran wyboru poziomu jak w Myśli i Liczbie: tło w kolorze kategorii zamiast nagłówka serwisu. */
.setup > .screen-heading { background: var(--tone-bg); border-radius: var(--radius-l); padding: 16px 20px; margin-bottom: 8px; }
.setup > .screen-heading .icon-btn { background: var(--surface); }
/* Wstęp strony głównej jak w Liczbie i Myśli: pastelowa karta z krótkim opisem. */
.home-intro { background: #fff6df; border-radius: var(--radius-l); padding: 28px 32px; margin: 4px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.home-intro h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; font-weight: 900; max-width: 22ch; }
.home-intro p { max-width: 62ch; color: var(--muted); font-size: 18px; }
[data-appearance='neutral'] .home-intro { background: #eef1f6; border-radius: 8px; }
@media (max-width: 600px) { .home-intro { padding: 20px; } .home-intro h1 { font-size: 26px; } }
.question-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.speak-btn svg { color: var(--primary); }
.home-about { border-radius: var(--radius-l); box-shadow: var(--shadow); }
/* Bęben i kółka wzoru reagują na każde uderzenie: podczas odsłuchu i przy własnym graniu. */
@keyframes drum-hit-a { 0% { transform: scale(1); } 30% { transform: scale(1.07) rotate(-2deg); } 100% { transform: scale(1); } }
@keyframes drum-hit-b { 0% { transform: scale(1); } 30% { transform: scale(1.07) rotate(2deg); } 100% { transform: scale(1); } }
.drum-pad.beat-0, .drum-pad.tapped-0 { animation: drum-hit-a .28s ease-out; border-color: var(--tone); background: var(--tone-bg); }
.drum-pad.beat-1, .drum-pad.tapped-1 { animation: drum-hit-b .28s ease-out; border-color: var(--tone); background: var(--tone-bg); }
.pattern-display .current { outline-width: 3px; transform: scale(1.18); transition: transform .12s; }
.pattern-display .current i { background: var(--tone-ink); }

/* Odtwarzacz ruchu: większa postać i spokojniejszy podpis. */
.current-action .action-symbol { font-size: min(46vh, 300px); line-height: 1; }
.current-action h2 { font-size: clamp(28px, 4.5vw, 42px); min-height: 0; max-width: 420px; }
.player-center { gap: 6%; }
@media (max-width: 620px) { .current-action .action-symbol { font-size: min(34vh, 190px); } .current-action h2 { font-size: 26px; } }

.next-action small { color: var(--muted); font-weight: 800; }
.ahead-strip { display: flex; justify-content: center; gap: 8px; padding: 6px 0 2px; }
.ahead-tile { display: grid; place-items: center; flex: 0 1 84px; min-width: 0; aspect-ratio: 1; border: 3px solid var(--line); border-radius: 16px; background: var(--surface); }
.ahead-tile .movement-illustration { width: 82%; height: 82%; }
.ahead-tile.rest { opacity: .5; }
.ahead-tile.current { border-color: var(--tone-ink, #235ca8); background: var(--tone-bg, #eaf2fb); transform: scale(1.1); opacity: 1; }

/* Strona główna: odkryte, wyraźnie opisane sekcje. */
.home-section { margin-top: 36px; }
.home-section:first-child { margin-top: 0; }
.section-title-row { margin-bottom: 4px; }
.section-title-row h2 { font-size: 28px; }
.section-text { color: var(--muted); font-size: 17px; margin-bottom: 18px; max-width: 70ch; }
.section-advanced { padding: 24px; border-radius: var(--radius-l); background: #eef0f7; border: 2px dashed #b9c0d8; }
.section-advanced .section-tag { background: #dfe3f2; color: #46507a; }
.section-teacher { padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); }
.section-teacher > .series-library, .section-teacher > .studio-entry { margin-top: 28px; }
.section-teacher > .studio-entry { border-bottom: 0; padding-bottom: 4px; }
.teacher-builder { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius); background: var(--bg); }
.teacher-builder h3 { font-size: 20px; }
.teacher-builder p { color: var(--muted); font-size: 16px; margin-top: 4px; max-width: 56ch; }
.tier-label.tier-start { background: #dff3e6; color: #1d6b43; }
.tier-label.tier-advanced { background: #dfe3f2; color: #46507a; }
.builder-toolbar { position: sticky; bottom: 0; z-index: 5; margin-top: 24px; padding: 14px 16px; background: var(--bg); border-top: 2px solid var(--line); }
[data-appearance='neutral'] .section-advanced { background: #e9ecf1; border-radius: 8px; }
[data-appearance='neutral'] .section-teacher { border-radius: 8px; }
[data-appearance='neutral'] .teacher-builder { border-radius: 8px; }
@media (max-width: 600px) { .section-advanced, .section-teacher { padding: 16px; } .section-title-row h2 { font-size: 24px; } }

/* Kto teraz działa: słuchasz, grasz albo jedno i drugie. */
.listening-state { height: auto; min-height: 38px; }
.turn-chip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 20px; border-radius: 999px; border: 3px solid; font-size: 21px; font-weight: 900; }
.turn-chip svg { width: 26px; height: 26px; }
.turn-chip.turn-listen { background: #e3eefc; border-color: #4a90e8; color: #1f5fb0; }
.turn-chip.turn-play { background: #def3e6; border-color: #3f9b66; color: #1d6b43; }
.turn-chip.turn-both { background: #fff1cf; border-color: #e0a83a; color: #7a5710; }
.stage-card { transition: box-shadow .2s; }
.stage-card.turn-listen { box-shadow: inset 0 0 0 5px #4a90e8; }
.stage-card.turn-play { box-shadow: inset 0 0 0 5px #3f9b66; }
.stage-card.turn-both { box-shadow: inset 0 0 0 5px #e0a83a; }
.drum-pad.resting { opacity: .45; filter: grayscale(.7); border-style: dashed; }
@media (max-width: 600px) { .turn-chip { font-size: 18px; padding: 4px 14px; gap: 8px; } .turn-chip svg { width: 22px; height: 22px; } }

/* Tryby pracy: swobodnie, z podpowiedzią, samodzielnie. */
.support-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.support-option { text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font-size: 15px; line-height: 1.3; color: var(--muted); }
.support-option strong { font-size: 18px; color: var(--ink); }
.support-top { display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; }
.support-top svg { width: 24px; height: 24px; color: var(--primary); }
.support-option[aria-pressed='true'] { border-color: var(--primary); background: var(--primary-soft); }
.level-note { color: var(--muted); font-size: 16px; margin-top: 10px; }
.build-model { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.build-model small { font-weight: 800; color: var(--muted); }
.tap-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.tap-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 2px solid; font-size: 16px; font-weight: 800; }
.tap-chip svg { width: 18px; height: 18px; }
.tap-chip.ok { background: #def3e6; border-color: #3f9b66; color: #1d6b43; }
.tap-chip.miss { background: #f1f2f8; border-color: #b9c0d8; color: #46507a; }
@keyframes target-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.assist-guided .tl-tile.current, .assist-guided .tl-dot.current { animation: target-pulse .5s ease-out; }

/* Ścieżka „Zacznij od zera” i swobodne uderzanie. */
.section-path { padding: 24px; border-radius: var(--radius-l); background: #e8f6ef; border: 2px solid #b5dfc8; }
.section-path .section-tag { background: #cdeadb; color: #1d6b43; }
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.path-step { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 3px solid transparent; box-shadow: var(--shadow); }
.path-step.next { border-color: var(--go); }
.path-step strong { font-size: 20px; }
.path-text { font-size: 15px; color: var(--muted); font-weight: 600; }
.path-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8f6ef; color: #1d6b43; font-size: 18px; font-weight: 900; }
.path-step.done .path-number { background: var(--go); color: #fff; }
.path-number svg { width: 20px; height: 20px; }
.path-action { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 900; color: #1d6b43; }
.path-action svg { width: 18px; height: 18px; }
.path-done-note { color: var(--muted); max-width: 52ch; }
[data-appearance='neutral'] .section-path { background: #e9efec; border-color: #c3d1ca; border-radius: 8px; }
.free-count { font-size: 22px; color: var(--tone-ink, var(--muted)); }
.free-count strong { font-size: 44px; }
.free-instruments { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.free-instrument { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 92px; padding: 8px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 800; }
.free-instrument img, .free-instrument .illustration { width: 44px; height: 44px; object-fit: contain; }
.free-instrument svg { width: 40px; height: 40px; }
.free-instrument[aria-pressed='true'] { border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 600px) { .section-path { padding: 16px; } }
