/* BeatVivo Drums - design system (mobile-first, light + dark).
   Brand palette (brief, 23/11/2026): Midnight Navy #101827, Electric Blue #286BFF, Neon Cyan #48D7E8,
   Cloud White #F4F7FB, Slate Gray #8B98AA. Electric blue = actions; cyan = accent and musical signals only.
   Semantic tokens below; components only use tokens. Both themes follow the system preference (Auto), unless the
   visitor picks Light or Dark (theme.js sets html[data-theme] before the first paint, localStorage bv_theme). */
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --navy: #101827;
  --electric: #286BFF;
  --cyan: #48D7E8;
  --cloud: #F4F7FB;
  --slate: #8B98AA;
  /* semantic (light theme) */
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #EAF0F8;          /* subtle fills, tracks, hover */
  --surface-elevated: #FFFFFF;
  --text: #101827;
  --muted: #4F5B6E;              /* secondary text: 7:1 on white */
  --border: #D8E0EC;
  --primary: #286BFF;            /* fills (white text on it: 4.8:1) */
  --primary-text: #1F56D6;       /* links and blue text on light surfaces */
  --primary-ink: #FFFFFF;
  --accent: #48D7E8;
  --accent-ink: #062A33;
  --logo-main: #E0A100;          /* logo yellow (the owner's choice, 24/11/2026); a logotype, exempt from text contrast */
  --success: #12805A;
  --warning: #9A5B00;
  --danger: #C2283F;
  --danger-ink: #FFFFFF;        /* text on --danger fills (5.7:1) */
  --focus: #286BFF;
  --hero-a: #101827;
  --hero-b: #16234A;
  --shadow: 0 1px 2px rgba(16, 24, 39, .06), 0 6px 20px rgba(16, 24, 39, .06);
  --shadow-lg: 0 18px 50px rgba(16, 24, 39, .14);
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --maxw: 1120px;
  --tabbar-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* F15 motion scale (Material 3 durations: short2, short4, medium2, long2). Never more than one second. */
  --dur-xs: 100ms;               /* press */
  --dur-s: 200ms;                /* hover, toggle, beat pulse */
  --dur-m: 300ms;                /* card, toast, ripple */
  --dur-l: 500ms;                /* progress fill, celebration */
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.05, .7, .1, 1);      /* entries (emphasized decelerate) */
  --ease-in: cubic-bezier(.3, 0, .8, .15);       /* exits (emphasized accelerate) */
  --ease-spring: linear(0, .4 8%, .85 18%, 1.06 30%, .98 45%, 1.01 60%, 1); /* light bounce, no library */
  /* F15 fluid type (Utopia method: from a 360 px to a 1240 px wide screen) */
  --fs--1: clamp(.8125rem, .7869rem + .1136vw, .875rem);    /* 13 -> 14 px: hints, captions */
  --fs-0: clamp(1rem, .9744rem + .1136vw, 1.0625rem);       /* 16 -> 17 px: body */
  --fs-1: clamp(1.125rem, 1.0739rem + .2273vw, 1.25rem);    /* 18 -> 20 px: h3, card titles */
  --fs-2: clamp(1.375rem, 1.2727rem + .4545vw, 1.625rem);   /* 22 -> 26 px: h2 */
  --fs-3: clamp(1.875rem, 1.6193rem + 1.1364vw, 2.5rem);    /* 30 -> 40 px: h1 */
  --fs-4: clamp(2.625rem, 2.0625rem + 2.5vw, 4rem);         /* 42 -> 64 px: score, hero numbers */
  /* F15 spacing (4 px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101827;
    --surface: #161F31;
    --surface-2: #1D2840;
    --surface-elevated: #1B2539;
    --text: #F4F7FB;
    --muted: #A3AEBF;            /* 7:1 on navy */
    --border: #29344D;
    --primary: #286BFF;
    --primary-text: #7FA6FF;     /* 6.9:1 on navy */
    --primary-ink: #FFFFFF;
    --accent: #48D7E8;
    --accent-ink: #062A33;
    --logo-main: #FFC21A;
    --success: #3DD68C;
    --warning: #F5B544;
    --danger: #FF6B7F;
    --danger-ink: #101827;      /* navy on coral: 6.5:1 (white was 2.7:1) */
    --focus: #48D7E8;
    --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  }
}
/* the same dark tokens when Dark is picked (keep both blocks identical) */
:root[data-theme="dark"] {
  --bg: #101827;
  --surface: #161F31;
  --surface-2: #1D2840;
  --surface-elevated: #1B2539;
  --text: #F4F7FB;
  --muted: #A3AEBF;            /* 7:1 on navy */
  --border: #29344D;
  --primary: #286BFF;
  --primary-text: #7FA6FF;     /* 6.9:1 on navy */
  --primary-ink: #FFFFFF;
  --accent: #48D7E8;
  --accent-ink: #062A33;
  --logo-main: #FFC21A;
  --success: #3DD68C;
  --warning: #F5B544;
  --danger: #FF6B7F;
  --danger-ink: #101827;      /* navy on coral: 6.5:1 (white was 2.7:1) */
  --focus: #48D7E8;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-0); line-height: 1.55;
  font-feature-settings: "cv11", "ss01"; /* Inter: single-storey a, open digits */
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
.icon { display: inline-block; flex: none; vertical-align: -0.2em; }
a { color: var(--primary-text); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.022em; }
h1 { font-size: var(--fs-3); }
h2 { font-size: var(--fs-2); letter-spacing: -.016em; }
h3 { font-size: var(--fs-1); font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .9rem; margin: 0; }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand .logo-mark { width: 36px; height: 36px; }
.brand-accent { color: var(--logo-main); }
.logo-mark .lm { stroke: var(--logo-main); }
.brand-name { font-weight: 780; font-size: 1.12rem; letter-spacing: -.03em; }
.brand-sub { font-weight: 500; color: var(--muted); font-size: 1.12rem; letter-spacing: -.02em; }
.nav { display: none; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .94rem; position: relative; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 2px; border-radius: 2px; background: var(--primary); }
.header-cta { margin-left: auto; display: flex; gap: 8px; }
@media (min-width: 860px) { .nav { display: flex; } .header-cta { margin-left: 8px; } }
/* a visitor's header (owner's request of 30/11/2026): the page links as a group, the account actions ("Log in" and
   "Get started", the same two buttons as the public tool pages' header) apart at the far right, after a gap and a thin
   divider. A phone hides the links and keeps BOTH account actions (owner, 30/11/2026: "ajoute connexion sur
   téléphone"), 44 px high: under 440 px "Drums" next to the logo makes room for them (as on the public tool pages),
   and under 375 px the logo, the gaps and the buttons tighten so "BeatVivo" and both buttons fit down to 320 px. */
.header-account { align-items: center; }
.header-account a { white-space: nowrap; }
@media (max-width: 440px) {
  .header-visitor .brand-sub { display: none; }
  .header-visitor .header-account .btn { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 374.98px) {
  .site-header .header-visitor { gap: 8px; }
  .header-visitor .brand { gap: 7px; }
  .header-visitor .brand .logo-mark { width: 30px; height: 30px; }
  .header-visitor .header-account { gap: 6px; }
  .header-visitor .header-account .btn { padding-left: 9px; padding-right: 9px; font-size: .84rem; }
}
@media (max-width: 359.98px) {
  .site-header .header-visitor { gap: 6px; }
  .header-visitor .brand { gap: 5px; }
  .header-visitor .brand .logo-mark { flex: none; width: 26px; height: 26px; }
  .header-visitor .brand-name { font-size: 1rem; }
  .header-visitor .header-account { gap: 5px; }
  .header-visitor .header-account .btn { padding-left: 7px; padding-right: 7px; font-size: .8rem; }
}
@media (min-width: 860px) {
  .nav + .header-account { position: relative; margin-left: 20px; padding-left: 21px; }
  .nav + .header-account::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 24px; margin-top: -12px; background: var(--border); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 650; letter-spacing: -.005em; cursor: pointer; text-decoration: none; background: var(--surface-2); color: var(--text); transition: transform var(--dur-xs) var(--ease-standard), background-color var(--dur-s), box-shadow var(--dur-s), border-color var(--dur-s); touch-action: manipulation; }
.btn:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--text) 8%); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 32%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-accent { background: var(--primary); color: var(--primary-ink); }  /* upgrade/paid CTAs use the action colour */
.btn-accent:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.btn-danger { background: var(--danger); color: var(--danger-ink); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 88%, var(--text)); }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.04rem; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--primary-text); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.tile { display: flex; gap: 14px; align-items: flex-start; }
.tile-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary-text); }
.tile h3 { margin: 2px 0 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; }
.badge-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.badge-accent { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-text); }
.badge-primary { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-text); }
.notice { border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: .92rem; }
.notice-warn { background: color-mix(in srgb, var(--warning) 9%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.notice-danger { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 38%, transparent); }

/* forms */
.form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .94rem; }
.field { display: grid; gap: 6px; }
/* every text field looks the same, whatever its type (a missing type, url, search, tel...) */
input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden])), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent); }
textarea { min-height: 120px; resize: vertical; }
input[type=range] { accent-color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.form-error { color: var(--danger); font-weight: 600; min-height: 1.2em; margin: 0; }
.form-error:focus { outline: none; }
.form-error a { color: inherit; font-weight: 700; }
/* password field with a show/hide eye (44 px target inside the field) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 54px; }
.pw-toggle { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; touch-action: manipulation; }
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; color: var(--text); }
.pw-toggle svg { width: 22px; height: 22px; }
.pw-toggle svg[hidden] { display: none; } /* `img, svg { display: block }` above would defeat the hidden attribute */
.pw-toggle[aria-pressed="true"] { color: var(--primary-text); }
.form-success { color: var(--success); font-weight: 600; margin: 0; display: flex; align-items: center; gap: 6px; }
/* launch checklist, point 17: the display above showed "Message received" before any message was sent */
.form-success[hidden] { display: none; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.hint { color: var(--muted); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .92rem; transition: border-color .15s, background-color .15s; }
.chip span:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.chip input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 8px; }

/* hero / landing (always navy: brand identity) */
.hero { position: relative; overflow: hidden; color: #F4F7FB; padding: 48px 0 56px;
  background: radial-gradient(70% 90% at 85% 10%, rgba(40, 107, 255, .32), transparent 60%),
              radial-gradient(50% 60% at 100% 100%, rgba(72, 215, 232, .14), transparent 70%),
              linear-gradient(180deg, var(--hero-a), var(--hero-b)); }
.hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.05rem, 3.7vw, 3.05rem); letter-spacing: -.03em; line-height: 1.08; }
.hero p { color: #C5CEDC; font-size: 1.1rem; max-width: 46ch; }
.hero .btn-ghost { color: #fff; border-color: rgba(244, 247, 251, .3); }
.hero .row .btn-lg { padding: 12px 20px; font-size: 1rem; }
.hero .btn-ghost:hover { background: rgba(244, 247, 251, .08); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(244, 247, 251, .07); border: 1px solid rgba(244, 247, 251, .14); color: #DCE3EE; font-size: .85rem; font-weight: 600; }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(72, 215, 232, .18); }
.hero-note { color: #A3AEBF !important; font-size: .92rem !important; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.12fr; gap: 44px; } .hero { padding: 64px 0 72px; } }
.hero-demo .pa-player { box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(148, 163, 184, .14); }
/* hero with a full-bleed drummer video (landing) */
.hero-video { display: flex; align-items: flex-end; min-height: min(80svh, 760px); padding: 96px 0 48px; background: var(--navy); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity .8s ease; }
.hero-media video.on { opacity: 1; }
/* navy veil: strong behind the text (left, bottom), lighter where the drums are */
.hero-shade { background: linear-gradient(90deg, rgba(16, 24, 39, .92) 0%, rgba(16, 24, 39, .72) 42%, rgba(16, 24, 39, .25) 100%),
                         linear-gradient(0deg, rgba(16, 24, 39, .95) 0%, rgba(16, 24, 39, 0) 45%); }
.hero-inner { position: relative; width: 100%; }
.hero-copy { max-width: 660px; }
.hero-video h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-video p { color: #DCE3EE; }
.hero-tools { position: absolute; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; }
.hero-pause { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(244, 247, 251, .35); background: rgba(16, 24, 39, .55);
  color: #fff; font-size: .8rem; cursor: pointer; display: grid; place-items: center; }
.hero-pause:hover { background: rgba(16, 24, 39, .8); }
.hero-pause:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 720px) {
  /* shorter hero: the main button and the YouTube field stay above the consent sheet on a 390 x 844 phone */
  .hero-video { min-height: 0; padding: 48px 0 36px; }
  .hero-video h1 { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  .hero-video .hero-copy > p:not(.hero-hint):not(.hero-note) { font-size: 1rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(16, 24, 39, .97) 0%, rgba(16, 24, 39, .8) 55%, rgba(16, 24, 39, .35) 100%); }
}
/* "see it" band: the live play-along demo, big, right under the video */
.see-section { color: #F4F7FB; background: linear-gradient(180deg, var(--navy), var(--hero-b)); }
.see-section h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.see-section .see-text { color: #C5CEDC; font-size: 1.05rem; max-width: 52ch; }
.see-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .see-grid { grid-template-columns: .9fr 1.25fr; gap: 44px; } }
.showcase-card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* the landing's feature cards (owner's request of 30/11/2026): each card that has a feature is one link, the whole
   card, with "Try it" / "Open" at its foot; it lifts under the mouse, the focus ring follows its corners */
.showcase-link { display: flex; flex-direction: column; align-items: flex-start; color: inherit; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-s) var(--ease-standard), box-shadow var(--dur-s) var(--ease-standard), border-color var(--dur-s) var(--ease-standard); }
.showcase-link p { margin-bottom: 14px; }
.showcase-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: .92rem; font-weight: 700; color: var(--primary-text); }
.showcase-cta .icon { transition: transform var(--dur-s) var(--ease-standard); }
.showcase-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
.showcase-link:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.showcase-link:is(:hover, :focus-visible) .showcase-cta .icon { transform: translateX(3px); }
@media (hover: hover) { .showcase-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.showcase-link:active { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .showcase-link, .showcase-cta .icon { transition: none; }
  .showcase-link:is(:hover, :active), .showcase-link:is(:hover, :focus-visible) .showcase-cta .icon { transform: none; }
}

.section { padding-top: 56px; padding-bottom: 56px; } /* longhands: on a `.container.section` the side gutter stays (the shorthand zeroed it on phones) */
.section-head { max-width: 640px; margin-bottom: 24px; }
.section-head p { color: var(--muted); margin: 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary-text); margin-bottom: 12px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 50px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 750; font-size: .95rem; }
details.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 700; color: var(--primary-text); }
details.faq[open] summary::after { content: "–"; }
.price { font-size: 2.6rem; font-weight: 780; letter-spacing: -.03em; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
/* offer of 28/11/2026: the plan that follows the trial, the terms next to the button, the transcription preview note */
#trial-price { font-size: 2rem; }
.plan-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan-choice legend { font-weight: 650; margin-bottom: 6px; padding: 0; }
.plan-option { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.plan-option:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.plan-option input { width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.plan-option-text { display: flex; flex-direction: column; gap: 2px; }
.plan-option-text .muted { font-size: .9rem; }
.checkout-terms { margin: 0; padding: 10px 12px; border-left: 3px solid var(--primary); background: var(--surface-2); border-radius: var(--radius-sm); font-size: .95rem; }
.import-offer { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0; }
.subscribe-now { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.subscribe-now h3 { margin: 0; font-size: 1.05rem; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 28px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--success) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312805A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* app layout */
.app-main { padding: 24px 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 32px); }
@media (min-width: 860px) { .app-main { padding-bottom: 56px; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 { margin-bottom: 4px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 650; min-width: 0; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a[aria-current="page"] { color: var(--primary-text); }
.tabbar a[aria-current="page"] svg { filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--primary) 45%, transparent)); }
@media (min-width: 860px) { .tabbar { display: none; } }

/* dashboard */
.focus-card { position: relative; overflow: hidden; border-radius: 18px; padding: 24px; color: #F4F7FB; border: 1px solid #22304D;
  background: radial-gradient(80% 120% at 100% 0%, rgba(40, 107, 255, .38), transparent 60%), linear-gradient(160deg, #13203D, #101827 70%); box-shadow: var(--shadow-lg); }
.focus-card h2 { color: #fff; font-size: clamp(1.45rem, 3vw, 2rem); margin: 6px 0 8px; max-width: 24ch; }
.focus-card .meta { color: #A3AEBF; margin-bottom: 18px; }
.focus-card .eyebrow { color: var(--cyan); font-weight: 650; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; }
.focus-card .notice { background: rgba(244, 247, 251, .06); border-color: rgba(244, 247, 251, .14); color: #DCE3EE; }
.beat-steps { display: flex; gap: 6px; margin-top: 22px; }
.beat-steps i { flex: 1; height: 8px; border-radius: 4px; background: rgba(244, 247, 251, .12); }
.beat-steps i.on { background: var(--electric); }
.beat-steps i.now { background: var(--cyan); box-shadow: 0 0 12px rgba(72, 215, 232, .6); }
.beat-steps-label { margin: 8px 0 0; font-size: .85rem; color: #A3AEBF; }
/* F18: "Your practice today" (inside .focus-card, always navy: fixed light-on-dark colours, both schemes) */
.plan-card { display: grid; gap: 16px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.focus-card .plan-title { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.02em; max-width: none; }
.plan-total { color: var(--cyan); font-weight: 650; font-variant-numeric: tabular-nums; }
.plan-streak { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: rgba(244, 247, 251, .08); border: 1px solid rgba(244, 247, 251, .14); color: #F4F7FB; font-weight: 650; font-size: .88rem; font-variant-numeric: tabular-nums; }
.plan-streak .icon { color: #F5B544; }
.plan-length { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(244, 247, 251, .06); border: 1px solid rgba(244, 247, 251, .12); justify-self: start; }
.plan-opt { min-height: 44px; min-width: 64px; padding: 6px 14px; border: 0; border-radius: 10px; background: transparent; color: #DCE3EE; font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s, color .2s; touch-action: manipulation; }
.plan-opt:hover { background: rgba(244, 247, 251, .08); }
.plan-opt[aria-pressed="true"] { background: var(--electric); color: #fff; }
.plan-opt:focus-visible, .plan-link:focus-visible, .plan-how summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-link { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; text-decoration: none; color: #F4F7FB; background: rgba(244, 247, 251, .05); border: 1px solid rgba(244, 247, 251, .12); transition: border-color .2s, background-color .2s, transform .1s; }
.plan-link:hover { border-color: rgba(72, 215, 232, .55); background: rgba(244, 247, 251, .08); }
.plan-link:active { transform: scale(.99); }
.plan-state { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-variant-numeric: tabular-nums; color: #A3AEBF; border: 2px solid rgba(244, 247, 251, .22); }
.plan-item.is-next .plan-state { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(72, 215, 232, .12); }
.plan-item.is-next .plan-link { border-color: rgba(72, 215, 232, .45); }
.plan-item.is-done .plan-state { background: #3DD68C; border-color: #3DD68C; color: #101827; }
.plan-item.is-done .plan-name { color: #DCE3EE; }
.plan-body { display: grid; gap: 2px; min-width: 0; }
.plan-kind { color: var(--cyan); font-size: .8rem; font-weight: 650; overflow-wrap: anywhere; }
.plan-name { color: #fff; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.plan-why { color: #A3AEBF; font-size: .85rem; line-height: 1.35; }
.plan-min { color: #DCE3EE; font-weight: 650; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-week { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: #A3AEBF; font-size: .88rem; }
.plan-week .progress { margin: 0; height: 6px; background: rgba(244, 247, 251, .12); }
.plan-week .progress > span { background: var(--cyan); }
.plan-week-value { color: #F4F7FB; font-weight: 650; font-variant-numeric: tabular-nums; }
.plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.focus-card .plan-actions .btn-ghost { color: #F4F7FB; border-color: rgba(244, 247, 251, .3); background: transparent; }
.plan-done { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: #3DD68C; font-weight: 700; }
.plan-note { margin: 0; color: #A3AEBF; font-size: .85rem; }
.plan-how { color: #A3AEBF; font-size: .85rem; }
.plan-how summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: #DCE3EE; font-weight: 600; }
.plan-how p { margin: 0 0 4px; }
@media (max-width: 420px) {
  .focus-card.plan-card { padding: 18px 16px; }
  .plan-link { grid-template-columns: 32px 1fr auto; gap: 10px; padding: 10px 12px; }
  .plan-state { width: 32px; height: 32px; }
  .plan-week { grid-template-columns: 1fr auto; }
  .plan-week .progress { grid-column: 1 / -1; grid-row: 2; }
  .plan-actions .btn-lg { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .plan-link, .plan-opt { transition: none; } .plan-link:active { transform: none; } }

/* Dashboard /app (30/11/2026, the owner's approval of the 29/11 mock-up): a greeting, one obvious action (the next
   lesson, navy card with its video still), the practice of the day on a plain card, three figures, the transcriber. */
.home { gap: 20px; }
.home-hello { display: flex; align-items: center; gap: 16px; }
.home-avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cyan) 30%, var(--surface)), var(--surface-2)); }
.home-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hello h1 { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); letter-spacing: -.03em; }
.home-bubble { display: inline-block; margin: 6px 0 0; padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }

.home-next { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 28px; align-items: center; padding: 16px; border-radius: 22px; color: #F4F7FB; border: 1px solid #26324B;
  background: radial-gradient(80% 120% at 100% 0%, rgba(40, 107, 255, .32), transparent 60%), linear-gradient(160deg, #16234A, #101827 60%); box-shadow: var(--shadow-lg); }
.home-next.is-done { grid-template-columns: 1fr; padding: 24px; }
.home-next-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0B1120; }
.home-next-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-m) var(--ease-out); }
.home-next-thumb:hover img { transform: scale(1.02); }
.home-next-ph { display: grid; place-items: center; height: 100%; color: var(--cyan); }
.home-next-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--electric); color: #fff; box-shadow: 0 10px 30px rgba(40, 107, 255, .5); }
.home-next-body { display: grid; gap: 8px; padding: 8px 18px 8px 0; min-width: 0; }
.home-next-kicker { margin: 0; color: #A3AEBF; font-weight: 650; font-size: .94rem; }
.home-next-premium { display: inline-flex; align-items: center; gap: 4px; color: #F5B544; }
.home-next h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.home-next-goal { margin: 0; color: #D3DAE6; max-width: 56ch; }
.home-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.home-next-link { min-height: 44px; display: inline-flex; align-items: center; color: #8DB0FF; font-weight: 650; }
.home-next-link:hover { color: #B9CEFF; }
.home-next :is(.btn, .home-next-link):focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.home-mid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }

/* "Your practice today" on a plain card: the same plan, colours from the theme tokens (light and dark) */
.plan-light .plan-title { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; color: var(--text); }
.plan-light .plan-total { color: var(--muted); }
.plan-light .plan-length { background: var(--surface-2); border-color: var(--border); }
.plan-light .plan-opt { color: var(--text); }
.plan-light .plan-opt:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.plan-light .plan-opt[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.plan-light .plan-link { color: var(--text); background: transparent; border-color: var(--border); }
.plan-light .plan-link:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); background: color-mix(in srgb, var(--primary) 4%, transparent); }
.plan-light .plan-state { color: var(--muted); border-color: var(--border); }
.plan-light .plan-item.is-next .plan-link { border-color: color-mix(in srgb, var(--cyan) 70%, var(--border)); background: color-mix(in srgb, var(--cyan) 7%, transparent); }
.plan-light .plan-item.is-next .plan-state { color: var(--text); border-color: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent); }
.plan-light .plan-item.is-done .plan-state { background: var(--success); border-color: var(--success); color: var(--surface); }
.plan-light .plan-item.is-done .plan-name { color: var(--muted); }
.plan-light .plan-kind { color: var(--primary-text); }
.plan-light .plan-name { color: var(--text); }
.plan-light :is(.plan-why, .plan-min, .plan-note, .plan-how) { color: var(--muted); }
.plan-light .plan-how summary { color: var(--text); }
.plan-light .plan-done { color: var(--success); }
.plan-light :is(.plan-opt, .plan-link, .plan-how summary):focus-visible { outline-color: var(--focus); }

.home-stats { padding: 0; overflow: hidden; display: grid; align-content: start; }
.home-stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 0; }
.home-stats-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.home-stats-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 650; }
.home-stat { padding: 14px 20px; display: grid; gap: 8px; align-content: start; }
.home-stat + .home-stat { border-top: 1px solid var(--border); }
.home-stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-stat-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 650; font-size: .94rem; }
.home-stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.home-stat-value small { font-size: 1rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.home-stat .progress { margin-top: 0; }
.home-stat :is(.hint, .home-streak-status) { margin: 0; }
.home-streak-status { font-weight: 650; font-size: .94rem; }
.home-week-dots { max-width: 300px; gap: 4px; }
.home-week-dots .sw-dot { width: 26px; height: 26px; }

.home-tool { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 260px); gap: 18px; align-items: center; }
.home-tool h2 { margin: 0 0 2px; font-size: 1.25rem; }
.home-tool p { margin: 0; }
.home-tool-sheet { display: block; height: 76px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.home-tool-sheet img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }

@media (max-width: 959px) { .home-mid { grid-template-columns: 1fr; } }
@media (max-width: 859px) {
  .home-next { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .home-next-body { padding: 0 6px 6px; }
  .home-tool { grid-template-columns: auto minmax(0, 1fr); }
  .home-tool .btn { grid-column: 1 / -1; }
  .home-tool-sheet { display: none; }
}
@media (max-width: 599px) {
  .home { gap: 16px; }
  .home-hello { gap: 12px; }
  .home-avatar { width: 56px; height: 56px; }
  .home-next-play { width: 56px; height: 56px; }
  .home-next-actions .btn, .plan-light .plan-actions .btn { flex: 1 1 100%; }
  .home-stats-head { padding: 10px 16px 0; }
  .home-stat { padding: 12px 16px; }
  .home-stat-value { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .home-next-thumb img { transition: none; } .home-next-thumb:hover img { transform: none; } }

.stat { display: grid; gap: 4px; align-content: start; }
.stat-value { font-size: 1.75rem; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.stat-value .icon { color: var(--warning); }
.stat-label { color: var(--muted); font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width var(--dur-l) var(--ease-out); }
@starting-style { .progress > span { width: 0 !important; } } /* F15: the bar fills when it appears (beats the inline width) */

/* learn */
.module-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
/* F24: the three paths at a glance on the Learn page */
.path-switch { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .path-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path-chip { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.path-chip:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.path-chip.current { border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.path-chip-head { display: flex; align-items: center; gap: 8px; }
.path-chip-head strong { font-weight: 650; flex: 1; min-width: 0; }
.path-num { width: 26px; height: 26px; flex: none; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: .8125rem; background: color-mix(in srgb, var(--cyan) 22%, transparent); color: var(--text); }
.path-chip.current .path-num { background: var(--primary); color: var(--primary-ink); }
.path-lock { color: var(--muted); display: inline-flex; }
.path-chip .progress { display: block; margin-top: 4px; }
.path-section { scroll-margin-top: 84px; }
.module-head h3 { margin: 0; }
.lesson-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } /* never wider than its card (360 px) */
.lesson-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .15s, background-color .15s; }
.lesson-item:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.lesson-dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); font-size: .88rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-item.done .lesson-dot { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.lesson-item.locked .lesson-dot { color: var(--muted); }
.lesson-item.next { border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.lesson-item.next .lesson-dot { background: var(--primary); color: var(--primary-ink); }
.lesson-item .grow { flex: 1; min-width: 0; }
.lesson-item .grow strong { font-weight: 650; }
.lesson-state { font-size: .8rem; font-weight: 650; color: var(--primary-text); white-space: nowrap; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.history li:last-child { border-bottom: 0; }

/* lesson */
/* F03 (25/11/2026): title -> one discreet review line -> video -> exercise -> folded steps (R7 audit P0-4) */
.lesson-head h1 { margin: 8px 0 6px; }
.lesson-objective { margin: 0; }
.review-note { margin-top: 6px; color: var(--muted); }
.review-note summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; list-style: none; }
.review-note summary::-webkit-details-marker { display: none; }
.review-note summary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); flex: none; }
.review-note summary::after { content: "+"; font-weight: 700; color: var(--primary-text); }
.review-note[open] summary::after { content: "–"; }
.review-note .demo-banner { margin: 0 0 4px; max-width: 62ch; }
details.lesson-steps > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
details.lesson-steps > summary::-webkit-details-marker { display: none; }
details.lesson-steps > summary h2 { margin: 0; }
details.lesson-steps > summary::after { content: "+"; font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--primary-text); }
details.lesson-steps[open] > summary::after { content: "–"; }
details.lesson-steps[open] > summary { margin-bottom: 12px; }
ol.lesson-steps-list { padding-left: 1.3em; display: grid; gap: 10px; }
ol.lesson-steps-list li::marker { color: var(--primary-text); font-weight: 700; }
/* lesson illustrations (lesson-illustrations.js): each step, then its animated scene; side by side from 720 px. The
   scene keeps its own light plate (drawn colours) in the dark theme too. */
ol.lesson-steps-list[data-illustrated] { gap: var(--sp-5); }
.step-row { display: grid; gap: var(--sp-3); }
.step-text { margin: 0; }
.step-scene, .lesson-poster { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #F4F7FB; border: 1px solid var(--border); }
.step-scene { border-radius: var(--radius-sm); }
.step-scene svg, .lesson-poster svg { display: block; width: 100%; height: auto; }
@media (min-width: 720px) { .step-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; gap: var(--sp-5); } }
/* zoom button under a step scene; a click on the scene does the same (full screen, lesson-illustrations.js) */
.step-scene-box { display: flex; flex-direction: column; min-width: 0; }
.step-scene.is-drawn { cursor: zoom-in; }
.step-zoom { display: flex; align-items: center; gap: 6px; margin: 6px 0 0 auto; min-height: 36px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--primary-text); font: inherit; font-size: .875rem; font-weight: 650; cursor: pointer; }
.step-zoom:hover { border-color: var(--primary); }
.step-zoom:focus-visible { outline: 3px solid #286BFF; outline-offset: 2px; }
.step-zoom[hidden] { display: none; }
/* phone: the scene uses the whole width of the card (no list indent, no card padding): about 356 px instead of 295 */
@media (max-width: 719.98px) {
  ol.lesson-steps-list[data-illustrated] .step-scene-box { margin-left: calc(-1.3em - 19px); margin-right: -19px; }
  ol.lesson-steps-list[data-illustrated] .step-scene { border-radius: 0; border-left: 0; border-right: 0; }
  ol.lesson-steps-list[data-illustrated] .step-zoom { margin-right: 19px; }
}
/* full-screen scene: the light plate on navy; turned sideways on a phone held upright (the long side for the picture) */
.scene-zoom { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #101827; color: #FFFFFF; overflow: hidden; }
.scene-zoom::backdrop { background: rgba(10, 15, 28, .85); }
.scene-zoom-stage { position: absolute; inset: 0; }
.scene-zoom-stage svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; max-width: none; width: min(calc(100vw - 24px), calc((100dvh - 96px) * 16 / 9)); height: auto; border-radius: 10px; }
.scene-zoom-close { position: absolute; top: 12px; right: 12px; z-index: 1; min-height: 44px; }
@media (orientation: portrait) and (max-width: 719.98px) {
  .scene-zoom-stage svg { top: calc(50% - 32px); width: min(calc(100dvh - 96px), calc((100vw - 16px) * 16 / 9)); transform: translate(-50%, -50%) rotate(90deg); }
  .scene-zoom-close { top: auto; bottom: 12px; right: 50%; transform: translateX(50%); }
}
.lesson-poster { display: block; flex: none; width: 80px; aspect-ratio: 4 / 3; border-radius: 8px; }
.lesson-poster .bv-over { display: none; }
.lesson-item.locked .lesson-poster { opacity: .6; }
@media (max-width: 599.98px) { .lesson-poster { display: none; } } /* no room next to the title on a phone */
/* .btn and .form-success set a display, which would defeat the hidden attribute */
.lesson-finish [hidden] { display: none; }
.lesson-finish .hint { margin: 10px 0 0; }
.lesson-finish .form-success { margin-bottom: 12px; }
.lesson-done-inline { margin-top: 12px; flex-wrap: wrap; }
.lesson-done-inline a { font-weight: 650; }
/* floating Start bar, above the tab bar, while the exercise is below the screen (lesson.js) */
.lesson-startbar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
  background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-lg);
  animation: startbar-in .2s ease-out; }
.lesson-startbar[hidden] { display: none; }
.lesson-startbar.over-video { visibility: hidden; } /* never over the lesson video's controls (lesson.js) */
.lesson-startbar-title { flex: 1; min-width: 0; font-weight: 650; font-size: .9rem; line-height: 1.25; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; } /* 2 lines: never "Tap the quarter ..." */
.lesson-startbar .btn { flex: none; min-height: 44px; border-radius: 999px; }
@media (min-width: 860px) { .lesson-startbar { bottom: 20px; } }
/* the cookie banner sits at the same place: the bar goes 8 px above it until it is answered (--consent-space, boot.js) */
.consent-open .lesson-startbar { bottom: calc(var(--consent-space, 0px) + 8px); }
@keyframes startbar-in { from { opacity: 0; transform: translateY(10px); } }
.exercise { margin-top: 20px; }

/* drum grid */
.drum-grid { display: grid; gap: 4px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.drum-row { display: grid; grid-template-columns: 64px repeat(var(--steps), minmax(22px, 1fr)); gap: 3px; align-items: center; min-width: calc(64px + var(--steps) * 25px); }
.drum-label { font-size: .78rem; font-weight: 650; color: var(--muted); }
.drum-cell { height: 30px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.drum-cell.beat-start { border-left: 2px solid var(--slate); }
.drum-cell.on { background: var(--primary); border-color: var(--primary); }
.drum-cell.on.accent { background: var(--accent); border-color: var(--accent); }
/* ghost note: a small pale note inside the cell (bracketed notes of a drum chart), hidden once a result colours it */
.drum-cell.on.ghost { background: color-mix(in srgb, var(--primary) 16%, var(--surface-2)); }
.drum-cell.on.ghost::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--primary); }
.drum-cell.ghost[class*="res-"]::before, .drum-cell.ghost[class*="live-"]::before { display: none; }
.drum-cell.lane-target.on { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 80%, #fff); }
.drum-cell.now { outline: 2px solid var(--accent); outline-offset: 1px; }
/* note-by-note result on the grid (colour + symbol, never colour alone) */
:root { --st-ok: #12805A; --st-early: #A85A00; --st-late: #7C4DDB; --st-miss: #C2283F; --st-on: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --st-ok: #2FBF8A; --st-early: #F0A33A; --st-late: #A98BFA; --st-miss: #F26B7F; --st-on: #101827; } }
:root[data-theme="dark"] { --st-ok: #2FBF8A; --st-early: #F0A33A; --st-late: #A98BFA; --st-miss: #F26B7F; --st-on: #101827; }
/* --st-on: the mark (check, arrows) written ON a status colour (launch checklist 13, 01/12/2026): white on the dark
   colours of the light theme (4.9-5.3:1), night blue on the light colours of the dark theme (6.5-8.3:1); the light
   theme's "early" orange darkened from #C26A00 (3.9:1 with white) to the #A85A00 of the notation (5.1:1). */
.drum-cell[class*="res-"]::after, .drum-cell[class*="live-"]::after { position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: var(--st-on, #fff); line-height: 1; }
.drum-cell.on.res-ok, .drum-cell.on.live-ok { background: var(--st-ok); border-color: var(--st-ok); }
.drum-cell.on.res-early, .drum-cell.on.live-early { background: var(--st-early); border-color: var(--st-early); }
.drum-cell.on.res-late, .drum-cell.on.live-late { background: var(--st-late); border-color: var(--st-late); }
.drum-cell.on.res-miss { background: transparent; border: 2px dashed var(--st-miss); }
.drum-cell.res-ok::after, .drum-cell.live-ok::after { content: "✓"; }
.drum-cell.res-early::after, .drum-cell.live-early::after { content: "←"; }
.drum-cell.res-late::after, .drum-cell.live-late::after { content: "→"; }
.drum-cell.res-miss::after { content: "×"; color: var(--st-miss); }
.drum-cell.res-extra { box-shadow: inset 0 0 0 2px var(--st-miss); }
.drum-cell.res-extra:not([class*="res-ok"]):not([class*="res-early"]):not([class*="res-late"]):not([class*="res-miss"])::after { content: "+"; color: var(--st-miss); }
.drum-cell[class*="live-"] { animation: live-flash .45s ease-out; }
@keyframes live-flash { from { transform: scale(1.18); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drum-cell[class*="live-"] { animation: none; } }
/* session report + loop-by-loop strips (exercise result) */
.session-report { margin: 14px 0 6px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.session-report h4 { margin: 0 0 8px; font-size: 1rem; }
.report-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px 14px; }
.report-stats > div { display: flex; flex-direction: column; gap: 2px; }
.report-lanes { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.report-lanes li, p.report-lanes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.report-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 650; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); }
.report-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--slate)); }
.st-ok { --c: var(--st-ok); } .st-early { --c: var(--st-early); } .st-late { --c: var(--st-late); } .st-miss { --c: var(--st-miss); }
.st-extra { --c: transparent; }
.report-chip.st-extra::before { border: 2px solid var(--st-miss); width: 6px; height: 6px; }
.report-chip.st-miss::before { background: transparent; border: 2px dashed var(--st-miss); width: 6px; height: 6px; }
.loop-strips { margin: 8px 0 10px; }
.loop-strips summary { cursor: pointer; font-weight: 650; padding: 6px 0; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.loop-strip { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px; margin: 6px 0; }
.loop-label { font-size: .78rem; color: var(--muted); font-weight: 650; }
.loop-track { position: relative; height: calc(22px * var(--lanes, 1)); border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.loop-beat { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.loop-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c); }
.loop-dot.st-miss { background: transparent; border: 2px dashed var(--st-miss); }
.loop-dot.st-extra { background: transparent; border: 2px solid var(--st-miss); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
/* F16 "Replay my take": the cursor that runs along the strip of the loop being heard (blue on light, cyan on navy) */
.loop-strips { --replay-c: var(--primary); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .loop-strips { --replay-c: var(--accent); } }
:root[data-theme="dark"] .loop-strips { --replay-c: var(--accent); }
.loop-track.replay-on { border-color: var(--replay-c); }
.replay-cursor { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; pointer-events: none;
  background: var(--replay-c); box-shadow: 0 0 0 1px var(--surface), 0 0 10px color-mix(in srgb, var(--replay-c) 70%, transparent); z-index: 1; }
.replay-hint { margin-top: 6px; }
@media (pointer: coarse) { .result .row > .btn-sm { min-height: 44px; } } /* the buttons under a result, on a touch screen */
.count-row .drum-cell { background: transparent; border: 0; text-align: center; font-size: .75rem; color: var(--muted); height: 18px; line-height: 18px; }

/* pads */
.pads { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.pad { min-height: 124px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 750; font-size: 1.05rem; letter-spacing: .02em; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: background-color .06s, transform .06s; }
.pad:not(:disabled) { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.pad kbd { font: inherit; font-size: .78rem; font-weight: 650; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 0 7px; }
.pad.hit { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(.985); }
.pad:disabled { opacity: .55; }
/* F09 "Step by step": the notes the drum waits for (blue ring, 4.8:1 on white, + cyan halo), the pads to hit, a wrong key */
.drum-cell.wait-next { outline: 3px solid var(--primary); outline-offset: 1px; z-index: 1;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 45%, transparent); animation: wait-pulse 1.2s ease-in-out infinite; }
.drum-cell.wait-next.wait-wrong { outline-color: var(--st-miss); animation: wait-shake .32s ease-in-out; }
@keyframes wait-pulse { 50% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent); } }
@keyframes wait-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.pad.wait-target { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.pad.wait-wrong { border-color: var(--st-miss); box-shadow: inset 0 0 0 3px var(--st-miss); }
@media (prefers-reduced-motion: reduce) { .drum-cell.wait-next, .drum-cell.wait-next.wait-wrong { animation: none; } }
.pad { text-align: center; padding: 8px; }
/* 4 pads (J K F D): one row on a wide screen, 2 x 2 on a phone (hands on top, feet below) */
.pads[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .pads[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pads[data-count="4"] .pad { min-height: 104px; } }

/* metronome */
.metronome { text-align: center; }
.bpm-display { font-size: clamp(3.4rem, 14vw, 5.2rem); font-weight: 780; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bpm-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 16px 0; }
.bpm-controls input[type=range] { width: 100%; }
.round-btn { width: 52px; height: 52px; border-radius: 14px; font-size: 1.4rem; padding: 0; }
.beats { display: flex; justify-content: center; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.beat-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); border: 2px solid var(--border); transition: transform .05s; }
.beat-dot.accent { border-color: var(--accent); }
.beat-dot.active { background: var(--primary); border-color: var(--primary); transform: scale(1.2); }
.beat-dot.accent.active { background: var(--accent); border-color: var(--accent); }
.big-toggle { min-width: 160px; }
.timer { font-size: 1.6rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.settings-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: left; }
/* silent bars: the beat dots keep moving, hollow, so the player can check where the click comes back */
.beats.muted .beat-dot.active { background: transparent; border-color: var(--primary); border-style: dashed; }
.beats.muted .beat-dot.accent.active { border-color: var(--accent); }
.metro-advanced { margin-top: 18px; text-align: left; border: 1px solid var(--border); border-radius: 14px; padding: 4px 14px; }
.metro-advanced[open] { padding-bottom: 14px; }
.metro-advanced summary { cursor: pointer; font-weight: 650; padding: 10px 0; }
.metro-adv-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.metro-tool { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 4px; margin: 0; min-width: 0; }
.metro-tool legend { font-weight: 650; padding: 0 4px; }
.metro-tool input[type=range] { width: 100%; }
.metro-tool input:disabled { opacity: .45; }
.metro-inline { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.metro-inline label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.metro-inline input { width: 84px; }
/* at the kit (F21): count-in, option row, kit mode (readable from the drum stool, about 1 m away) */
.beats.count-in .beat-dot.active { background: var(--accent); border-color: var(--accent); }
.metro-options { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 12px; text-align: left; }
.metro-options .check { min-height: 44px; align-items: center; }
.metro-options .check input { margin-top: 0; }
.metro-opt-hint { text-align: left; margin: 0 0 4px; }
.kit-enter[aria-pressed="true"] { border-color: var(--primary); }
.kit-bar { display: none; }
body.kit-mode { overflow: hidden; }
body.kit-mode .metronome {
  position: fixed; inset: 0; z-index: 85; margin: 0; max-width: none; border: 0; border-radius: 0; box-shadow: none;
  background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: stretch; gap: clamp(8px, 2.4vh, 22px);
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
body.kit-mode .metronome > * { width: 100%; max-width: 880px; margin-left: auto; margin-right: auto; }
body.kit-mode .kit-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
body.kit-mode .kit-keys { font-size: 1.25rem; color: var(--muted); }
body.kit-mode .kit-exit { font-size: 1.25rem; min-height: 52px; margin-left: auto; }
body.kit-mode .bpm-display { margin-top: auto; font-size: clamp(96px, 34vmin, 240px); }
body.kit-mode .bpm-display .small { font-size: 1.5rem; letter-spacing: 0; }
body.kit-mode .bpm-controls { margin: 0 auto; gap: 18px; }
body.kit-mode .metronome .btn.round-btn { width: 72px; height: 72px; font-size: 2.2rem; }
body.kit-mode .beats { gap: clamp(10px, 2.4vmin, 20px); margin: 4px auto; }
body.kit-mode .beat-dot { width: clamp(36px, 9vmin, 68px); height: clamp(36px, 9vmin, 68px); border-radius: 16px; border-width: 3px; }
body.kit-mode .metronome .btn { font-size: 1.25rem; min-height: 56px; }
body.kit-mode .big-toggle { min-width: min(320px, 100%); min-height: 76px; font-size: 1.6rem; }
body.kit-mode .metro-status { margin: 0 auto auto; min-height: 1.4em; font-size: clamp(1.25rem, 4.6vmin, 2.2rem); }
body.kit-mode .metronome .settings-grid, body.kit-mode .metro-options, body.kit-mode .metro-opt-hint,
body.kit-mode #metro-backbeat-hint, body.kit-mode #metro-compound-hint, body.kit-mode .metro-advanced,
body.kit-mode .metro-foot, body.kit-mode .metro-ios-hint, body.kit-mode .kit-enter { display: none; }
@media (hover: none) { body.kit-mode .kit-keys { visibility: hidden; } }
/* imported video, played in sync above the kit */
.import-video { margin: 0; }
.import-video video { display: block; width: 100%; max-height: 42vh; background: #000; border-radius: 14px; object-fit: contain; }
.import-video figcaption { margin-top: 6px; }
/* YouTube Sync: the official player beside (never under) our controls; never smaller than 200 x 200 px (YouTube RMF) */
.yt-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .yt-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); } }
.yt-video { margin: 0; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-width: 200px; min-height: 200px; background: #000; border-radius: 14px; overflow: hidden; }
.yt-frame iframe, .yt-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-video figcaption { margin-top: 6px; }
.yt-setup { display: grid; gap: 14px; }
.yt-step + .yt-step { border-top: 1px solid var(--border); padding-top: 12px; }
.yt-step-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; }
.yt-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; flex: none; }
.yt-tap { min-width: 96px; touch-action: manipulation; }
.yt-bpm { display: inline-flex; align-items: center; gap: 6px; }
.yt-bpm input { width: 92px; min-height: 38px; }
/* YouTube sprint 1 (F28): how-it-works steps, bar counter + count-in BELOW the player, practice tools */
.yt-page [hidden] { display: none !important; } /* .btn and .stack set a display that would defeat [hidden] */
.yt-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .yt-how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yt-how li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.yt-how .yt-num { margin-top: 1px; }
.yt-left { display: grid; gap: 10px; min-width: 0; }
.yt-counter { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 68px; border-radius: var(--radius); border: 1px solid rgba(139, 152, 170, .28); background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: var(--cloud); transition: box-shadow .15s, border-color .15s; }
.yt-counter.counting { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(72, 215, 232, .25); }
.yt-counter-main { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.yt-counter-text { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.yt-counter-bpm { color: #A3AEBF; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yt-beats { display: flex; gap: 8px; }
.yt-beats i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(244, 247, 251, .4); transition: transform .08s, background-color .08s; }
.yt-beats i.one { border-color: var(--cyan); }
.yt-beats i.on { background: var(--electric); border-color: var(--electric); transform: scale(1.25); }
.yt-beats i.one.on { background: var(--cyan); border-color: var(--cyan); }
.yt-count { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--cyan); color: var(--accent-ink); font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.yt-tap { gap: 10px; }
.yt-tap-dots { display: inline-flex; gap: 4px; }
.yt-tap-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.yt-tap-dots i.on { background: #FFFFFF; }
.yt-adjust { margin-top: 8px; }
.yt-adjust summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 650; color: var(--primary-text); }
.yt-row-tight { gap: 8px; }
.yt-row-tight + .yt-row-tight { margin-top: 8px; }
.yt-tools { display: grid; gap: 14px; }
.yt-tools-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.yt-tools-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.yt-tool { min-width: 0; }
.yt-tool + .yt-tool { border-top: 1px solid var(--border); padding-top: 14px; }
@media (min-width: 900px) {
  .yt-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .yt-tool + .yt-tool { border-top: 0; padding-top: 0; border-left: 1px solid var(--border); padding-left: 18px; }
}
.yt-tool-title { margin: 0 0 8px; font-size: .95rem; }
.yt-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.yt-rate { min-width: 56px; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; touch-action: manipulation; }
.yt-rate:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.yt-rate[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.yt-rate:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.yt-ab-bars input { width: 76px; min-height: 44px; }
.yt-bar-field { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.yt-ab-btn b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; }
#yt-loop[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .yt-beats i, .yt-counter { transition: none; } }
/* YouTube sprint 2 (F31): tap pad, tap quality, silent beat flash, marked 1s and tempo map, "My videos" */
.yt-tap-pad { display: flex; width: 100%; min-height: 72px; justify-content: center; font-size: 1.15rem; font-weight: 800; border-radius: var(--radius); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.yt-tap-pad:active { transform: scale(.985); }
.yt-tap-pad .yt-tap-dots { gap: 6px; }
.yt-tap-pad .yt-tap-dots i { width: 10px; height: 10px; }
.yt-quality { font-variant-numeric: tabular-nums; white-space: normal; }
.yt-quality.yt-irregular { background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); }
.yt-flash { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(244, 247, 251, .35); background: transparent; transition: background-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out; }
.yt-flash.on { background: var(--electric); border-color: var(--electric); box-shadow: 0 0 0 6px rgba(40, 107, 255, .28); transform: scale(1.06); transition: none; }
.yt-flash.on.one { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 8px rgba(72, 215, 232, .32); }
.yt-flash-opt, .yt-map-opt { min-height: 44px; align-items: center; }
.yt-flash-opt { font-size: var(--fs--1); color: var(--muted); }
.yt-flash-opt input, .yt-map-opt input { margin-top: 0; }
.yt-ones { display: grid; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.yt-ones .btn { justify-self: start; }
.yt-map-list { margin: 0; padding-left: 1.4em; display: grid; gap: 2px; max-height: 11em; overflow: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.yt-label-box { margin-top: 0; }
.yt-mine > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.yt-mine { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.yt-mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.yt-mine-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.yt-mine-open { flex: 1; min-width: 0; min-height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 12px; text-align: left; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; touch-action: manipulation; }
.yt-mine-open:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.yt-mine-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.yt-mine-open[aria-current="true"] { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.yt-mine-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-mine-meta { overflow-wrap: anywhere; }
.yt-mine-name { font-weight: 700; }
.yt-mine-del { flex: none; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .yt-flash, .yt-flash.on { transition: none; transform: none; } .yt-tap-pad:active { transform: none; } }

/* drum notation (VexFlow): printed-music look on white paper in both themes, cursor + current bar */
.notation-box { position: relative; max-height: 62vh; overflow: auto; background: #fff; color: #101827; border-radius: 12px; border: 1px solid var(--border); }
.notation-box svg { display: block; cursor: pointer; }
.notation-cursor { position: absolute; width: 2px; background: #286BFF; border-radius: 1px; pointer-events: none; }
.notation-exports { gap: 8px; }
.notation-tools { margin-top: 12px; gap: 10px; align-items: center; }
.notation-tools [aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
/* score editor (corrections, one bar at a time) */
.score-editor { margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.edit-grid { display: grid; grid-template-columns: 82px repeat(var(--steps, 16), minmax(0, 1fr)); gap: 4px; align-items: center; overflow-x: auto; }
.edit-count { text-align: center; font-size: .75rem; color: var(--muted); }
.edit-label { font-size: .8rem; font-weight: 650; }
.edit-cell { height: 34px; min-width: 18px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; padding: 0; }
.edit-cell.beat-start { border-left: 2px solid var(--slate); }
.edit-cell.on { background: var(--primary); border-color: var(--primary); }
.edit-cell.changed { box-shadow: inset 0 0 0 2px var(--logo-main); }
.edit-cell.changed::after { content: "•"; color: var(--logo-main); font-weight: 900; }
.edit-cell.on.changed::after { color: #fff; }
.edit-cell:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (max-width: 560px) { .edit-grid { grid-template-columns: 64px repeat(var(--steps, 16), minmax(16px, 1fr)); } }
/* PDF / print sheet of the notation: only the sheet is printed */
.print-sheet { display: none; }
@media print {
  body.printing-score > *:not(main), body.printing-score .tabbar, body.printing-score .consent { display: none !important; }
  body.printing-score main > *:not(.container), body.printing-score .container > *:not(#import-result) { display: none !important; }
  body.printing-score #import-result > *:not(.print-sheet) { display: none !important; }
  body.printing-score #import-result { display: block !important; }
  body.printing-score .print-sheet { display: block !important; color: #000; background: #fff; }
  .print-head h1 { font-size: 18pt; margin: 0 0 4pt; color: #000; }
  .print-head p { font-size: 10pt; margin: 0 0 12pt; color: #333; }
  .print-sheet .notation-line { break-inside: avoid; page-break-inside: avoid; }
  .print-sheet svg { width: 100% !important; height: auto !important; display: block; }
  @page { margin: 14mm; }
}
.notation-bar { position: absolute; background: rgba(40, 107, 255, .08); border-radius: 6px; pointer-events: none; }
.notation-overlay { position: absolute; inset: 0 auto auto 0; pointer-events: none; }
.notation-loop { position: absolute; background: rgba(72, 215, 232, .16); border: 2px solid rgba(17, 145, 165, .55); border-radius: 8px; }
.notation-mark { position: absolute; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 7px; border-radius: 5px; background: #101827; color: #48D7E8; font-size: .75rem; font-weight: 700; line-height: 1.4; box-shadow: 0 1px 2px rgba(16, 24, 39, .25); }
.notation-box.picking svg { cursor: crosshair; }
.notation-box.picking { outline: 2px dashed var(--cyan, #48D7E8); outline-offset: 2px; }
/* F25: a lesson exercise as a grid or on a drum staff. The staff is printed music on white paper in both themes, so its
   result colours are the light ones (each at least 4.5:1 on white); the switch follows the theme. */
.drum-grid[hidden], .exercise-notation[hidden] { display: none; }
.notation-switch { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.notation-switch-btn { min-height: 44px; min-width: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: var(--fs--1); font-weight: 650; cursor: pointer; transition: background-color var(--dur-s) var(--ease-standard), color var(--dur-s) var(--ease-standard); }
.notation-switch-btn:hover { color: var(--text); }
.notation-switch-btn[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 3px rgba(16, 24, 39, .18); }
.exercise-notation { --st-ok: #12805A; --st-early: #A85A00; --st-late: #6D3FCF; --st-miss: #C2283F; --nt-ink: #4F5B6E; }
.nt-paper { position: relative; overflow-x: auto; overflow-y: hidden; background: #fff; color: #101827; border: 1px solid var(--border); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.nt-svg svg { display: block; max-width: none; } /* drawn at its size: the paper scrolls, the marks stay on the notes */
.nt-loading { margin: 0; padding: 28px 16px; color: var(--nt-ink); }
.nt-paper .notice { margin: 12px; }
.nt-overlay { position: absolute; inset: 0 auto auto 0; pointer-events: none; }
.nt-cursor { background: var(--electric); box-shadow: 0 0 0 3px rgba(40, 107, 255, .16); }
.nt-head.st-ok text, .nt-head.live-ok text { fill: var(--st-ok); }
.nt-head.st-early text, .nt-head.live-early text { fill: var(--st-early); }
.nt-head.st-late text, .nt-head.live-late text { fill: var(--st-late); }
.nt-head.st-miss text { fill: var(--st-miss); }
.nt-head.wait-next text { fill: var(--electric); }
.nt-head.wait-next { animation: nt-wait 1s ease-in-out infinite; }
.nt-head.wait-wrong text { fill: var(--st-miss); }
@keyframes nt-wait { 50% { opacity: .45; } }
.nt-sym { position: absolute; transform: translateX(-50%); min-width: 16px; text-align: center; font-size: .95rem; font-weight: 800; line-height: 1; }
.nt-sym.st-early { color: var(--st-early); }
.nt-sym.st-late { color: var(--st-late); }
.nt-sym.st-miss { color: var(--st-miss); }
.nt-sym.nt-extra { width: 18px; height: 18px; min-width: 0; border: 2px solid var(--st-miss); border-radius: 50%; color: var(--st-miss); font-size: .8rem; line-height: 14px; }
.nt-sticks span { position: absolute; transform: translateX(-50%); font-size: .8rem; font-weight: 700; line-height: 1; color: var(--nt-ink); }
/* P1-11: written dynamics under the staff (p, f in bold italics, hairpins) and under the grid */
.nt-dyn-mark { position: absolute; transform: translateX(-50%); font: italic 800 1.05rem/1 Georgia, "Times New Roman", serif; color: var(--nt-ink); }
.nt-hairpin { position: absolute; overflow: visible; max-width: none; }
.nt-hairpin path { fill: none; stroke: var(--nt-ink); stroke-width: 1.4; stroke-linecap: round; }
.dyn-row .drum-cell { background: transparent; border: 0; text-align: center; font: italic 800 .85rem/18px Georgia, "Times New Roman", serif; color: var(--text); height: 18px; position: relative; }
.dyn-row .drum-cell.dyn-ramp::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 1px; height: calc(3px + var(--k, 0) * 13px); border-radius: 2px; background: color-mix(in srgb, var(--primary) 55%, transparent); }
.dyn-row .drum-cell.dyn-ramp:not(:empty)::after { display: none; }
.nt-hint { margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .nt-head.wait-next { animation: none; } .notation-switch-btn { transition: none; } }
/* import practice tools (F36): click, count-in, loop of bars, markers */
.import-tools .btn-sm { min-height: 44px; }
.import-tools .btn-ghost[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.import-volume input[type="range"] { flex: 1; min-width: 120px; min-height: 44px; accent-color: var(--primary); }
.import-volume output { min-width: 3.5em; font-variant-numeric: tabular-nums; }
.import-mark-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.import-mark-name input { width: 150px; min-height: 44px; }
.import-marks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.import-marks li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 4px 4px 10px; border: 1px solid var(--border); border-radius: 10px; }
.import-marks li strong { overflow-wrap: anywhere; }
.import-marks li .small { margin-right: auto; }
.import-mark-del { min-width: 44px; font-size: 1.2rem; line-height: 1; }

/* microphone practice (beta) */
.mic-honest { border-left: 4px solid var(--accent); }
.mic-step[aria-disabled=true] { opacity: .55; }
.mic-step h2 { display: flex; align-items: center; gap: 10px; }
.mic-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--primary); color: var(--primary-ink); font-size: .95rem; flex: none; }
.mic-live { margin-top: 14px; }
.mic-meter { position: relative; height: 12px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.mic-meter span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .06s linear; }
.mic-meter i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); opacity: .6; }
.mic-meter-legend { margin: 6px 0 0; }
.mic-flash { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; vertical-align: -1px; background: var(--surface-2); border: 1px solid var(--border); }
.mic-flash.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); }
.warn { color: var(--danger); font-weight: 600; }
.mic-beat { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primary-text); }
.mic-result { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.mic-score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mic-chart { margin: 10px 0; }
.mic-chart svg { width: 100%; height: 160px; background: var(--surface-2); border-radius: 12px; }
.mic-chart .band { fill: var(--success); opacity: .14; }
.mic-chart .axis { stroke: var(--muted); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mic-chart line.good, .mic-chart line.ok { stroke-width: 3; vector-effect: non-scaling-stroke; }
.mic-chart .good { stroke: var(--success); fill: var(--success); }
.mic-chart .ok { stroke: var(--warning); fill: var(--warning); }
.mic-chart .miss { stroke: var(--danger); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
/* corrector (P03): setup side by side, exercise picker (radio cards), tips */
.mic-setup { display: grid; gap: 16px; }
@media (min-width: 760px) { .mic-setup { grid-template-columns: 1fr 1fr; } }
.mic-setup .mic-step { margin: 0; }
.mic-picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.mic-group-title { font-size: .95rem; margin: 14px 0 8px; color: var(--muted); }
.mic-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.mic-option { position: relative; display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none; transition: border-color .12s, background-color .12s; }
.mic-option:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.mic-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mic-option-mark { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--slate); display: grid; place-items: center; color: var(--muted); }
.mic-option.is-locked .mic-option-mark { border: 0; }
.mic-option-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mic-option-body strong { font-weight: 650; }
.mic-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.mic-option.is-selected, .mic-option:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); box-shadow: inset 0 0 0 1px var(--primary); }
.mic-option.is-selected .mic-option-mark, .mic-option:has(input:checked) .mic-option-mark { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 4px, transparent 5px); }
.mic-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.mic-option:has(input:disabled) { cursor: default; }
.mic-option.is-locked { background: var(--surface-2); }
.mic-option.is-locked:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mic-page.is-running .mic-picker { opacity: .6; }
.mic-grid { margin: 12px 0 4px; }
.mic-settings { margin-top: 14px; }
.mic-actions { margin-top: 14px; align-items: center; }
.mic-actions .btn { min-height: 44px; }
.mic-page .mic-beat { min-height: 1.5em; margin: 8px 0 0; font-size: 1.05rem; }
/* MIC-04: the visual beat, big enough to be seen from the kit; beat 1 in cyan; no animation (state change only) */
.mic-beats { display: flex; gap: 14px; margin: 14px 0 0; }
.mic-beats[hidden] { display: none; }
.mic-click-hint { margin: 8px 0 0; }
.mic-page [hidden] { display: none !important; } /* .field and .notice set a display that would defeat [hidden] */
.mic-settings .field { align-content: start; } /* a hint under one field must not stretch the others */
.mic-beats span { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); }
.mic-beats span.on { background: var(--primary); border-color: var(--primary); }
.mic-beats span.is-one.on { background: var(--accent); border-color: var(--accent); }
.mic-saved { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.mic-saved.is-saved { color: var(--success); }
.mic-tips { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--accent); }
.mic-tips h3 { margin: 0 0 6px; font-size: 1rem; }
.mic-tips ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.mic-result-actions { margin: 8px 0 4px; }
.mic-result-actions .btn { min-height: 44px; }
/* P04: the learner's kit (kick / snare / hi-hat learned on the device) */
.mic-kit h2 { display: flex; align-items: center; gap: 10px; }
.mic-num-kit { background: var(--accent); color: var(--accent-ink); }
.mic-kit-drums { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 12px 0 6px; }
.mic-kit-drum { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "dot name" "dot state" "dot count"; column-gap: 10px; row-gap: 2px;
  align-items: center; text-align: left; min-height: 72px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color var(--dur-s) var(--ease-standard), box-shadow var(--dur-s) var(--ease-standard); }
.mic-kit-drum:hover:not(:disabled) { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.mic-kit-drum:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mic-kit-drum:disabled { cursor: default; opacity: .6; }
.mic-kit-drum.is-listening { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); opacity: 1; }
.mic-kit-drum.is-done { border-color: color-mix(in srgb, var(--success) 55%, var(--border)); }
.mic-kit-dot { grid-area: dot; width: 30px; height: 30px; border-radius: 50%; border: 3px solid currentColor; }
.mic-kit-bd { color: var(--primary); } .mic-kit-sn { color: var(--accent); } .mic-kit-hh { color: var(--logo-main); }
.mic-kit-drum.is-done .mic-kit-dot { background: currentColor; }
.mic-kit-name { grid-area: name; font-weight: 650; }
.mic-kit-state { grid-area: state; color: var(--muted); }
.mic-kit-drum.is-done .mic-kit-state { color: var(--success); font-weight: 600; }
.mic-kit-count { grid-area: count; display: flex; gap: 4px; }
.mic-kit-count i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }
.mic-kit-count i.on { background: var(--accent); border-color: var(--accent); }
.mic-kit-drum.is-done .mic-kit-count i { background: var(--success); border-color: var(--success); }
.mic-kit-honest { margin: 6px 0 8px; }
.mic-drum { margin: 4px 0 0; font-weight: 600; }
.mic-drums-heard { margin: 8px 0 0; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .mic-kit-drum { transition: none; } }
.metro-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--primary-text); }

/* results */
.result { border-left: 4px solid var(--primary); }
.result.pass { border-left-color: var(--success); }
.result.fail { border-left-color: var(--warning); }
.score-big { font-size: 2.8rem; font-weight: 780; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* footer */
/* at the foot of the page (owner's request of 30/11/2026): on a short page (log in) the footer sits at the bottom of
   the screen, on a long one after the content. The body is a column and <main> takes the free height; the fixed
   elements (tab bar, banners, toasts) are out of the column. Printing keeps the plain flow. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }
body > :is(.site-header, .site-footer) { flex-shrink: 0; }
main .auth-wrap { margin-bottom: 0; } /* in the column, its 32 px no longer merge with the footer's 32 px: the gap stays 32 px */
@media print { body { display: block; min-height: 0; } }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 calc(var(--tabbar-h) + 28px); margin-top: 32px; font-size: .9rem; color: var(--muted); }
@media (min-width: 860px) { .site-footer { padding-bottom: 28px; } }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-brand .logo-mark { width: 20px; height: 20px; }
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-switch a[aria-current="true"] { font-weight: 750; color: var(--text); }
.public-footer { padding-bottom: 28px; }
.footer-row { justify-content: space-between; }
/* Theme Auto / Light / Dark (theme.js): a segmented control of three radio buttons, like the Grid / Sheet music switch */
.theme-switch { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.theme-switch-label { float: left; padding: 0; margin: 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.theme-switch-label-strong { color: var(--text); font-size: .94rem; }
.theme-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.theme-opt { position: relative; display: inline-flex; font-weight: 600; }
.theme-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.theme-opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; color: var(--muted);
  font-size: .86rem; pointer-events: none; transition: background-color var(--dur-s) var(--ease-standard), color var(--dur-s) var(--ease-standard); }
.theme-opt span svg { flex: none; }
.theme-opt:hover span { color: var(--text); }
.theme-opt input:checked + span { background: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 3px rgba(16, 24, 39, .18); }
.theme-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 859px), (pointer: coarse) { .theme-opt span { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .theme-opt span { transition: none; } }

/* consent, toasts, banners */
/* one short line + two equal buttons (44 px targets): at most 120 px high on a 390 px phone, never over the landing's main button */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; max-width: 680px; margin: 0 auto; background: var(--surface-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px 12px; display: grid; gap: 8px; box-shadow: var(--shadow-lg); }
.consent[hidden] { display: none; }
.has-tabbar .consent { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
@media (min-width: 860px) { .has-tabbar .consent { bottom: 12px; } } /* no tab bar there */
/* while it floats (boot.js): the end of the page can be scrolled above it, and a focused field is kept above it */
html.consent-open { scroll-padding-bottom: calc(var(--consent-space, 0px) + 12px); }
html.consent-open body::after { content: ""; display: block; height: var(--consent-space, 0px); }
/* nothing may float over the YouTube player (YouTube RMF): once it is shown, the banner sits in the page flow */
.yt-on .consent { position: static; width: auto; max-width: 680px; margin: 16px auto calc(var(--tabbar-h, 0px) + 16px);
  border-width: 1px; border-radius: var(--radius); } /* a plain card, whatever the screen (the phone sheet and corner card float) */
.toast-wrap { position: fixed; top: 74px; left: 0; right: 0; z-index: 90; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; background: var(--navy); color: var(--cloud); border: 1px solid #29344D; padding: 10px 16px; border-radius: 12px; font-weight: 600; max-width: 520px; box-shadow: var(--shadow-lg); animation: toast-in .18s ease-out; }
.toast.error { background: var(--danger); border-color: transparent; color: var(--danger-ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
.net-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 95; text-align: center; padding: 6px 12px; font-weight: 700; font-size: .9rem; background: var(--warning); color: #fff; }
.net-banner[hidden] { display: none; }
.install-card[hidden] { display: none; }

.legal { max-width: 760px; }
.legal h2 { margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }
.auth-wrap { max-width: 440px; margin: 32px auto; }
.onboarding-wrap { max-width: 720px; margin: 0 auto; }
/* onboarding: two short screens with a "1 of 2" indicator, button visible without scrolling at 390x844 (F08) */
.ob-page { padding-top: 32px; padding-bottom: 32px; }
.onboarding-wrap h1 { margin-bottom: .2em; }
.ob-sub { margin: 0 0 16px; }
.ob-form { gap: 16px; }
.ob-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-count { margin: 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.ob-bars { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex: 0 0 96px; }
.ob-bars li { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); transition: background-color .25s; }
.ob-bars li.on { background: var(--primary); }
.ob-step { display: grid; gap: 16px; animation: ob-in .22s ease-out; }
.ob-step[hidden] { display: none; }
.ob-title { font-size: 1.2rem; margin: 0; }
.ob-title:focus { outline: none; }
.ob-step legend { margin-bottom: 6px; }
.ob-step .hint { margin: 6px 0 0; }
.ob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ob-grid .chip { display: flex; }
.ob-grid .chip span { flex: 1; justify-content: center; text-align: center; line-height: 1.25; }
.ob-lefty { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.ob-lefty input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--primary); }
.ob-lefty-text { display: grid; gap: 2px; }
.ob-step .ob-lefty .hint { margin: 0; }
.ob-lefty:has(input:checked) { border-color: var(--primary); }
.ob-lefty:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.ob-actions { display: flex; gap: 10px; }
.ob-actions .ob-submit { flex: 1; justify-content: center; }
.ob-back[hidden] { display: none; }
.ob-later { margin: 0; }
@keyframes ob-in { from { opacity: 0; transform: translateX(10px); } }
@media (max-width: 720px) {
  .ob-page { padding-top: 14px; padding-bottom: 20px; }
  .onboarding-wrap h1 { font-size: 1.55rem; }
  .ob-form { padding: 16px; gap: 14px; }
  .ob-step { gap: 14px; }
}
@media (max-width: 720px) and (max-height: 780px) { /* short phones: the step 2 hint repeats "change it later" */
  .ob-sub { display: none; }
  .onboarding-wrap h1 { font-size: 1.4rem; margin-bottom: 10px; }
}
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
/* F15: reduced motion = fades only. No movement, no loop, no scale; colour and opacity changes still fade. */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-xs: 0ms; --dur-s: 0ms; --dur-m: 120ms; --dur-l: 150ms; --ease-spring: linear; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important;
    transition-property: opacity, color, background-color, border-color, outline-color, box-shadow !important; }
}

/* legacy hero illustration (kept for compatibility; the landing now shows the live play-along) */
.hero-visual { display: none; }

/* ------------------------------------------------------------------ play-along player (navy "stage", always dark)
   Limb colours are part of the product (MG violet, MD sky, PG green, PD amber) and never change with the theme. */
.pa-player { --pa-bg: #0C1322; --pa-line: rgba(139, 152, 170, .22); --pa-text: #E6ECF5; --pa-muted: #A3AEBF;
  --limb-lh: #a78bfa; --limb-rh: #38bdf8; --limb-lf: #34d399; --limb-rf: #fbbf24;
  background: radial-gradient(110% 120% at 0% 0%, #172645 0%, #101827 55%, #0A0F1C 100%); color: var(--pa-text);
  border-radius: 20px; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(139, 152, 170, .16); }
.pa-player > * + * { margin-top: 10px; }
.pa-stage { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; background: #0A0F1C; }
.pa-canvas { display: block; width: 100%; }
.pa-stage:fullscreen { border-radius: 0; display: flex; align-items: center; }
.pa-preview { padding: 8px; }
.pa-preview .pa-stage { cursor: default; }
.pa-timeline { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; } /* a long file or video: the bar scrolls, not the page */
.pa-sec { position: relative; overflow: hidden; min-width: 0; min-height: 36px; padding: 4px 6px; border-radius: 10px; border: 1px solid var(--pa-line);
  background: rgba(244, 247, 251, .03); color: var(--pa-muted); font: inherit; font-size: .76rem; font-weight: 650; cursor: pointer; }
.pa-sec-name { position: relative; z-index: 1; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-sec-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: rgba(40, 107, 255, .32); }
.pa-sec.current { color: #fff; border-color: rgba(72, 215, 232, .55); }
.pa-sec[aria-pressed="true"] { color: #fff; background: #286BFF; border-color: #286BFF; }
.pa-sec[aria-pressed="true"]::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #48D7E8; z-index: 2; }
.pa-sec[aria-pressed="true"] .pa-sec-fill { background: rgba(255, 255, 255, .22); }
.pa-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pa-transport, .pa-right, .pa-tempo { display: flex; align-items: center; gap: 10px; }
.pa-right { margin-left: auto; }
.pa-play { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #286BFF; box-shadow: 0 0 0 6px rgba(40, 107, 255, .18), 0 10px 26px rgba(40, 107, 255, .45); transition: transform .12s, box-shadow .2s; }
.pa-play:hover { transform: scale(1.04); }
.is-playing .pa-play { box-shadow: 0 0 0 6px rgba(72, 215, 232, .2), 0 10px 26px rgba(40, 107, 255, .45); }
.pa-play svg { width: 26px; height: 26px; fill: #fff; }
.pa-icon { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--pa-line); background: rgba(244, 247, 251, .04); color: var(--pa-text);
  cursor: pointer; display: grid; place-items: center; font: inherit; font-weight: 700; font-size: 1.1rem; }
.pa-icon svg { width: 20px; height: 20px; fill: currentColor; }
.pa-icon.pa-small { width: 34px; height: 34px; border-radius: 10px; }
.pa-icon:hover, .pa-chip:hover { border-color: rgba(72, 215, 232, .55); }
.pa-tempo { flex: 1 1 280px; }
.pa-label { font-size: .85rem; font-weight: 650; color: var(--pa-muted); }
.pa-tempo input[type=range] { flex: 1; min-width: 90px; accent-color: #286BFF; }
.pa-tempo-val { min-width: 112px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .92rem; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-sep { display: none; }
.pa-chip { min-height: 38px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--pa-line); background: transparent; color: var(--pa-muted);
  font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pa-chip[aria-pressed="true"] { background: rgba(40, 107, 255, .18); color: #fff; border-color: rgba(40, 107, 255, .65); }
.pa-chip[aria-pressed="false"]::before { content: ""; width: 12px; height: 2px; background: currentColor; transform: rotate(-35deg); margin-right: -2px; }
.pa-limb { --limb: #fff; }
.pa-limb[aria-pressed="false"]::before { display: none; }
.pa-limb[aria-pressed="true"] { background: color-mix(in srgb, var(--limb) 16%, transparent); border-color: color-mix(in srgb, var(--limb) 60%, transparent); }
.pa-limb[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
.pa-dot { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 4px; border-radius: 7px; background: var(--limb);
  color: #0B1020; font-size: .75rem; font-weight: 800; text-decoration: none; }
.pa-layer[aria-pressed="true"] { background: #48D7E8; color: #062A33; border-color: #48D7E8; }
.pa-video-btn { background: rgba(244, 247, 251, .06); color: #fff; border: 1px solid rgba(72, 215, 232, .5); }
.pa-video-btn:hover { background: rgba(72, 215, 232, .12); }
.pa-video-btn span { color: #FF5A6E; }
.pa-status { min-height: 1.2em; margin: 0; font-size: .86rem; color: #48D7E8; }
/* F12 "Speed up": +N BPM every N passes of the loop, up to the target tempo (a fixed rule, shown under the chips) */
.pa-accel:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(72, 215, 232, .35); background: rgba(72, 215, 232, .07); }
.pa-accel label { display: inline-flex; align-items: center; gap: 8px; }
.pa-accel select { width: auto; min-height: 44px; padding: 6px 10px; border-radius: 10px; border-color: var(--pa-line);
  background: rgba(244, 247, 251, .06); color: var(--pa-text); font-size: .9rem; font-weight: 650; }
.pa-accel option { background: #101827; color: #E6ECF5; }
.pa-accel-until { font-size: .9rem; font-weight: 700; color: #48D7E8; font-variant-numeric: tabular-nums; }
.pa-accel-note { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--pa-muted); }
.pa-chip.pa-accel-chip[aria-pressed="true"] { background: rgba(72, 215, 232, .16); border-color: rgba(72, 215, 232, .7); }
/* F12: after an exercise, the next try starts by itself at the suggested tempo (3 s countdown, one click cancels) */
.autochain-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 9%, var(--surface)); font-weight: 600; }
.autochain-count { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--primary); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.autochain-next .btn { margin-left: auto; }
.autochain-slot > .notice { margin-top: 12px; }
.notice-goal { background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-color: color-mix(in srgb, var(--success) 45%, transparent); font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .autochain-count { animation: autochain-pulse 1s ease-in-out infinite; }
  @keyframes autochain-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 22%, transparent); } }
}
.pa-hint { margin: 0; font-size: .82rem; color: var(--pa-muted); }
.pa-player :focus-visible { outline: 3px solid #48D7E8; outline-offset: 2px; }
/* "Hide play-along" / "Show play-along" (pa-toggle.js): shown by default on every page load; discreet while the
   player is shown, the navy of the player while it is hidden */
.pa-section { margin-top: 16px; }
.pa-inline { margin-top: 8px; }
.pa-toggle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stack > .pa-toggle-row + * { margin-top: 8px; }
.pa-toggle svg { flex: none; }
.pa-toggle[aria-expanded="true"] { background: transparent; border-color: var(--border); }
.pa-toggle[aria-expanded="true"]:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.pa-toggle[aria-expanded="false"] { background: var(--navy); color: #fff; border-color: #29344D; }
.pa-toggle[aria-expanded="false"]:hover { background: #172645; }
.pa-section[hidden], .pa-toggle-row[hidden], .pa-inline[hidden], .pa-player[hidden] { display: none !important; }
@media (max-width: 560px) {
  .pa-player { padding: 8px; border-radius: 16px; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
  .pa-right { margin-left: 0; }
  .pa-tempo-val { min-width: 0; }
  /* the tempo row fits a phone (the BPM value went 22 px past the player inside a lesson card at 390 px) */
  .pa-tempo { gap: 6px; min-width: 0; }
  .pa-tempo input[type=range] { min-width: 48px; }
}

/* video studio dialog */
.pa-dialog { width: min(560px, calc(100vw - 24px)); border: 1px solid var(--border); border-radius: 18px; padding: 22px; background: var(--surface-elevated); color: var(--text);
  box-shadow: var(--shadow-lg); }
.pa-dialog::backdrop { background: rgba(10, 15, 28, .7); backdrop-filter: blur(4px); }
.pa-dialog h2 { margin-top: 0; }
.pa-dialog select, .pa-dialog input[type=text] { width: 100%; }
.pa-formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pa-format { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer;
  text-align: center; font-size: .8rem; font-weight: 650; transition: border-color .15s, background-color .15s; }
.pa-format input { position: absolute; opacity: 0; pointer-events: none; }
.pa-format:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); box-shadow: 0 0 0 1px var(--primary); }
.pa-format:has(input:focus-visible) { outline: 3px solid var(--focus); }
.pa-format-shape { display: block; border-radius: 6px; background: linear-gradient(160deg, #286BFF, #48D7E8); }
.pa-format-shape.portrait { width: 27px; height: 48px; }
.pa-format-shape.square { width: 40px; height: 40px; }
.pa-format-shape.landscape { width: 54px; height: 30px; margin: 9px 0; }
.pa-rec { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-2); font-weight: 650; }
.pa-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF5A6E; animation: pa-blink 1s infinite; }
@keyframes pa-blink { 50% { opacity: .2; } }
.pa-result-video { width: 100%; max-height: 50vh; border-radius: 12px; background: #000; }
.pa-rec[hidden], .pa-dialog [hidden] { display: none !important; }

/* play-along library */
.play-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 28px 24px; color: #E6ECF5; border: 1px solid #22304D;
  background: radial-gradient(80% 120% at 100% 0%, rgba(40, 107, 255, .4), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(72, 215, 232, .14), transparent 60%), #101827; }
.play-hero h1 { color: #fff; margin: 10px 0 8px; }
.play-hero p { color: #C5CEDC; max-width: 60ch; }
.play-badge { background: rgba(244, 247, 251, .08); color: #DCE3EE; border: 1px solid rgba(244, 247, 251, .14); }
.limb-legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.limb-legend li { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; }
.limb-legend b { display: inline-grid; place-items: center; min-width: 32px; height: 24px; border-radius: 7px; background: var(--limb); color: #0B1020;
  font-size: .75rem; font-weight: 800; }
.song-group + .song-group { margin-top: 32px; }
.song-group-head h2 { margin: 0; }
.song-group-head p { margin: 4px 0 14px; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.song-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.song-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-lg); }
.song-card.locked .song-art { filter: saturate(.4) brightness(.8); }
.song-art { position: relative; height: 108px; --hue: 222;
  background: radial-gradient(110% 140% at 0% 0%, hsl(var(--hue) 75% 42% / .85), transparent 62%), linear-gradient(135deg, #101827, #16234A); }
.song-art svg { position: absolute; left: 16px; bottom: 14px; width: 120px; height: 60px; }
.song-art .bar-LH { fill: #a78bfa; } .song-art .bar-RH { fill: #38bdf8; } .song-art .bar-LF { fill: #34d399; } .song-art .bar-RF { fill: #fbbf24; }
.song-bpm { position: absolute; right: 16px; bottom: 12px; color: #fff; font-size: 1.9rem; font-weight: 780; letter-spacing: -.03em; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.song-bpm small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: 0; color: #C5CEDC; }
.song-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.song-body h3 { font-size: 1.12rem; margin: 0; }
.song-body p { margin: 0; }
.song-style { font-size: .82rem; font-weight: 600; color: var(--muted); }
.song-composer { font-size: .82rem; font-weight: 600; color: var(--primary-text); margin: 0; }
.song-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 12px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.song-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.song-limbs { margin-left: auto; display: flex; gap: 4px; }
.limb-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.l-LH { background: #a78bfa; } .l-RH { background: #38bdf8; } .l-LF { background: #34d399; } .l-RF { background: #fbbf24; }

/* dashboard stats: one compact row on phones */
@media (max-width: 719px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stats-row .card { padding: 12px; }
  .stats-row .stat-value { font-size: 1rem; white-space: nowrap; letter-spacing: -.02em; }
  .stats-row .stat-label { font-size: .75rem; line-height: 1.25; }
  .stats-row .stat-label .icon { display: none; }
  .stats-row .hint { display: none; }
}
/* sticking row under the lesson grid, and keeping the play-along stage clear of the sticky header */
.stick-row .drum-cell { background: transparent; border: 0; text-align: center; font-size: .75rem; font-weight: 700; color: var(--primary-text); height: 18px; line-height: 18px; }
.pa-stage { scroll-margin-top: 72px; }
#import-result, #import-notation-card { scroll-margin-top: 80px; } /* below the sticky header */
/* practice journal (progress page) */
.journal-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .journal-numbers { grid-template-columns: 1fr 1fr; } }
.journal-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.journal-item { position: relative; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.journal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-right: 92px; }
.journal-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.journal-bpm { font-weight: 650; color: var(--text); }
.journal-diff { margin-left: 8px; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.journal-bpm.reached .journal-diff { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.journal-bpm.below .journal-diff { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.journal-note { margin: 6px 0 0; white-space: pre-wrap; }
.journal-del { position: absolute; top: 8px; right: 8px; }
/* lesson video (made from the lesson by scripts/make_lesson_videos.py) */
.lesson-video { margin: 0; }
.lesson-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--navy);
  box-shadow: var(--shadow); }
.lesson-video figcaption { margin-top: 6px; }
/* a phone in landscape: the video never takes more than 42 % of the screen (F03) */
@media (max-width: 860px) { .lesson-video video { max-height: 42svh; } }

/* ------------------------------------------------------------------ F05 (25/11/2026): mobile targets, fields, text size
   R7 audit: sliders 16 px high, footer links 22 px, three native-looking fields, tab labels at 11.2 px, section names
   truncated, "Analyse" clickable without a file, 127 px of fixed bars on a phone. Sources: WCAG 2.2 SC 2.5.8 (24 px
   minimum), Google web.dev / Lighthouse (48 px recommended), Apple HIG (44 pt). */
/* the text-field rule of the forms section covers every field type; no interface text is under .75rem (12 px, R7 P2-16) */
.select-auto { width: auto; min-height: 38px; }
/* song sections: never truncated; the bar scrolls sideways when the names need more room (R7 P2-17) */
@media (max-width: 720px) {
  .pa-timeline { scroll-snap-type: x proximity; padding-bottom: 2px; }
  .pa-sec { font-size: .75rem; padding: 4px 10px; min-width: max-content; flex-shrink: 0; scroll-snap-align: start; }
}
/* file picker of the import page: a styled button + drop zone; the real input stays focusable for the keyboard */
.dropzone { position: relative; display: grid; justify-items: center; gap: 8px; padding: 22px 16px; text-align: center;
  border: 2px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: var(--radius); background: var(--surface-2);
  transition: border-color .15s, background-color .15s; }
.dropzone.is-over { border-color: var(--primary); border-style: solid; background: color-mix(in srgb, var(--primary) 10%, var(--surface-2)); }
.dropzone.has-file { border-style: solid; border-color: color-mix(in srgb, var(--success) 55%, var(--border)); }
.dropzone-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary-text); }
.dropzone.has-file .dropzone-icon { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }
.dropzone-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dropzone-input { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dropzone-input:focus-visible ~ .btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.dropzone .hint { margin: 0; }

/* ---- Page illustrations (partials/page_art.html): our own inline SVG drawings; the lavender wave follows the theme */
.page-art { --art-wave: #B2A2FF; --art-wave-2: #DCD3FF; max-width: none; overflow: visible; }
.page-art .pa-w1 { stop-color: var(--art-wave); stop-opacity: .95; }
.page-art .pa-w2 { stop-color: var(--art-wave-2); stop-opacity: .62; }
.page-art .pa-w3 { stop-color: var(--art-wave-2); stop-opacity: 0; }
.page-art .pa-wave-front { fill: var(--art-wave-2); fill-opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-art { --art-wave: #5D4BDB; --art-wave-2: #2E2C7C; } }
:root[data-theme="dark"] .page-art { --art-wave: #5D4BDB; --art-wave-2: #2E2C7C; }
/* the entry pages (owner, 30/11/2026: "mets les illustrations partout"): Practice, Progress, Learn, Grooves and Profile
   put their scene right of the title, Play in its dark hero. A fixed box (the width is set, the height comes from the
   viewBox): nothing moves when it is drawn. Smaller on a tablet, small next to the title on a phone. */
.art-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 20px; }
.art-head-text { min-width: 0; }
.head-art { display: block; flex: none; width: 260px; height: auto; margin: -10px 0 -4px; pointer-events: none; }
.art-head-solo { align-items: center; } /* a title alone (Progress): a smaller scene, centred on it */
.art-head-solo .head-art { width: 220px; margin: -14px 0 -10px; }
.profile-head #logout { margin-top: 4px; }
.pl-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0 16px; }
.pl-title { min-width: 0; }
.head-art.pl-art { width: 250px; margin: -24px -8px -6px 0; }
.play-hero .page-art { --art-wave: #5D4BDB; --art-wave-2: #2E2C7C; } /* the hero is always navy */
@media (max-width: 859.98px) { .head-art, .art-head-solo .head-art { width: 210px; } .head-art.pl-art { width: 160px; } } /* "Play-along" keeps one line at 760 px */
@media (max-width: 599.98px) {
  .art-head { grid-template-areas: "title art" "sub sub"; align-items: center; column-gap: 8px; }
  .art-head-text { display: contents; }
  .art-head-text > h1 { grid-area: title; }
  .art-head-text > :not(h1) { grid-area: sub; }
  .head-art, .art-head-solo .head-art { grid-area: art; width: 96px; margin: -6px -4px -6px 0; }
  .head-art.pl-art { width: 104px; margin: -10px -6px -2px 0; }
  .profile-head #logout { justify-self: start; }
}
/* "Studio de pratique" (252 px) keeps one line next to the scene from 390 px; narrower, the French title goes alone */
@media (max-width: 389.98px) { :lang(fr) .practice-head .head-art { display: none; } }

/* ---- Import page before the analysis (owner's mock-up of 30/11/2026, "stylé et minimaliste, pas de blabla"): a header
   (back link, title, one line, three feature chips) with our snare drum on the right, sinking behind the card; one
   card: the dashed drop zone, the rights line and ONE gradient button (the click is the confirmation), the "stays on
   your device" bar, the YouTube "coming soon" bar. The card's .imp-* parts are shared with the admin's "New
   transcription" page (same card, its own header). */
.import-wrap { --imp-bar: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
  --imp-card-shadow: 0 1px 2px rgba(16, 24, 39, .04), 0 22px 50px -14px rgba(40, 64, 170, .2);
  --imp-go: linear-gradient(90deg, #2563FF 0%, #3D5AFF 52%, #6A4BFF 100%);
  --imp-go-hover: linear-gradient(90deg, #1D55EC 0%, #334EF0 52%, #5C3DEF 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .import-wrap { --imp-card-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55); --imp-off: .74; } }
:root[data-theme="dark"] .import-wrap { --imp-card-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55); --imp-off: .74; }
.imp-head [hidden], .import-pick [hidden] { display: none !important; } /* .import-offer and .btn set a display */
.imp-head { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start;
  grid-template-areas: "back art" "title art" "sub art" "feats art" "quota art"; }
.imp-head > :not(.imp-art) { position: relative; z-index: 1; }
.imp-head > .back-link { grid-area: back; justify-self: start; font-size: 1rem; font-weight: 650; }
.imp-title { grid-area: title; margin: 12px 0 6px; font-size: clamp(2rem, 1.45rem + 1.9vw, 2.875rem); font-weight: 800; letter-spacing: -.032em; line-height: 1.05; }
.imp-sub { grid-area: sub; margin: 0 0 20px; color: var(--muted); font-size: clamp(1.02rem, .98rem + .2vw, 1.15rem); line-height: 1.45; }
.imp-feats { grid-area: feats; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin: 0; padding: 0; list-style: none; }
.imp-feats li { position: relative; display: flex; align-items: center; gap: 12px; font-size: .97rem; font-weight: 550; }
.imp-feats li + li { margin-left: 20px; padding-left: 21px; }
.imp-feats li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 24px; margin-top: -12px; background: var(--border); }
.imp-feat-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; color: var(--primary-text);
  background: color-mix(in srgb, var(--primary) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent); }
.imp-quota { grid-area: quota; margin: 14px 0 0; gap: 0 8px; color: var(--muted); }
.imp-quota .btn { min-height: 28px; padding: 2px 4px; border: 0; background: none; box-shadow: none; color: var(--primary-text);
  font-size: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.imp-art { grid-area: art; align-self: end; justify-self: start; width: calc(100% + 110px + var(--gutter)); height: auto;
  margin: 0 0 -44px -110px; position: relative; z-index: 0; pointer-events: none; }
.import-pick { position: relative; z-index: 1; padding: 14px 14px 18px; border-radius: 22px; box-shadow: var(--imp-card-shadow);
  border-color: color-mix(in srgb, var(--primary) 12%, var(--border)); background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.imp-drop { gap: 4px; padding: 22px 16px 18px; border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 60%, transparent); cursor: pointer; }
.imp-drop.is-over { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.imp-drop.has-file { border-color: color-mix(in srgb, var(--success) 60%, var(--border)); }
.imp-drop-icon svg { width: 56px; height: 56px; margin-bottom: 6px; }
.imp-drop-title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.imp-or { margin: 0; color: var(--muted); font-size: .95rem; }
.imp-drop.has-file .imp-or { display: none; } /* "file.wav · 2 MB", then "Change File" */
.imp-choose { margin: 6px 0 10px; min-height: 50px; padding: 10px 30px; border: 1.5px solid var(--primary); border-radius: 14px;
  background: var(--surface); color: var(--primary-text); font-size: 1.08rem; font-weight: 700; }
.imp-choose:hover { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.imp-formats, .imp-size { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.imp-size .imp-more { margin-left: 6px; vertical-align: middle; }
.imp-more { position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0;
  border-radius: 50%; background: none; color: var(--muted); font: inherit; font-size: .8125rem; font-weight: 750; cursor: pointer; }
.imp-more::before { content: ""; position: absolute; z-index: -1; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); }
.imp-more:hover, .imp-more[aria-expanded="true"] { color: var(--primary-text); }
.imp-more:hover::before, .imp-more[aria-expanded="true"]::before { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.imp-drop #import-scope { max-width: 62ch; margin: 6px auto 0; font-size: .875rem; cursor: auto; }
.import-pick .import-handoff { max-width: 780px; margin: 12px auto 0; text-align: center; }
.imp-confirm { display: flex; justify-content: center; align-items: flex-start; gap: 10px; max-width: 64rem; margin: 18px auto 12px; padding: 0 8px;
  font-size: 1.02rem; line-height: 1.45; text-wrap: balance; }
.imp-confirm .icon { color: var(--muted); }
.imp-analyse { display: flex; width: min(100%, 780px); min-height: 58px; margin: 0 auto; gap: 12px; border: 0; border-radius: 14px;
  background: var(--imp-go); color: #fff; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 12px 28px -10px rgba(70, 80, 255, .6); }
.imp-analyse:hover { background: var(--imp-go); } /* .btn:hover would paint it grey */
.imp-analyse:not(:disabled):hover { background: var(--imp-go-hover); }
.imp-analyse:disabled { opacity: var(--imp-off, .62); box-shadow: none; transform: none; }
.imp-analyse:focus-visible { outline-offset: 3px; }
.imp-form .progress { width: min(100%, 780px); margin: 14px auto 0; }
.imp-status { margin: 8px 0 0; text-align: center; }
.imp-status:empty { margin: 0; }
.imp-trust { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 20px 0; padding: 12px 8px; list-style: none; border-radius: 14px; background: var(--imp-bar); }
.imp-trust li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 2px 16px; }
.imp-trust li + li { border-left: 1px solid var(--border); }
.imp-trust strong { display: block; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.imp-trust strong + span { display: block; color: var(--muted); font-size: .875rem; }
.imp-trust-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--surface);
  color: var(--primary-text); box-shadow: 0 1px 3px rgba(16, 24, 39, .1); }
.imp-yt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 20px 0; padding: 11px 22px; border-radius: 14px; background: var(--imp-bar); }
.imp-yt-logo { flex: none; }
.imp-yt-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: 0 1px 3px rgba(16, 24, 39, .1); color: var(--text); font-weight: 700; text-decoration: none; }
a.imp-yt-pill:hover { border-color: var(--primary); }
.imp-yt-sep { width: 1px; height: 26px; margin: 0 22px; background: var(--border); }
.imp-yt-text { flex: 1 1 260px; margin: 0; }
.imp-after .guest-banner { padding: 8px 14px; background: var(--imp-bar); border-color: var(--border); }
.imp-after .guest-banner-text > span { display: none; } /* one line on this page: the title and the two links */
/* a low screen (1280 x 720): the button stays in view without scrolling */
@media (min-width: 600px) and (max-height: 760px) {
  .imp-title { margin: 8px 0 4px; }
  .imp-sub { margin-bottom: 14px; }
  .imp-quota { margin-top: 10px; }
  .imp-drop { padding: 16px 16px 12px; }
  .imp-drop-icon svg { width: 46px; height: 46px; margin-bottom: 2px; }
  .imp-choose { margin: 4px 0 8px; }
  .imp-confirm { margin: 14px auto 10px; }
}
@media (max-width: 1099.98px) {
  .imp-head { grid-template-columns: minmax(0, 1fr) 270px; grid-template-areas: "back art" "title art" "sub art" "feats feats" "quota quota"; }
  .imp-art { width: calc(100% + 40px + var(--gutter)); margin: 0 0 6px -40px;
    -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
}
@media (max-width: 599.98px) {
  .imp-head { grid-template-columns: minmax(0, 1fr) 118px; column-gap: 6px; grid-template-areas: "back art" "title art" "sub sub" "feats feats" "quota quota"; }
  .imp-art { align-self: center; width: 100%; margin: 0; }
  .imp-title { margin-top: 6px; }
  .imp-sub { margin-bottom: 16px; }
  .imp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .imp-feats li { flex-direction: column; gap: 6px; padding: 0 6px; text-align: center; font-size: .8125rem; line-height: 1.3; }
  .imp-feats li + li { margin-left: 0; padding-left: 6px; }
  .imp-feats li + li::before { top: 6px; height: calc(100% - 12px); margin-top: 0; }
  .imp-feat-icon { width: 40px; height: 40px; }
  .import-pick { padding: 10px 10px 14px; border-radius: 18px; }
  .imp-drop { padding: 18px 12px 14px; }
  .imp-choose { width: 100%; max-width: 320px; }
  .imp-confirm { justify-content: flex-start; margin: 14px 0 12px; padding: 0 4px; font-size: .95rem; text-wrap: pretty; }
  .imp-trust { grid-template-columns: 1fr; margin: 14px 0 0; padding: 2px 14px; }
  .imp-trust li { justify-content: flex-start; padding: 10px 0; }
  .imp-trust li + li { border-left: 0; border-top: 1px solid var(--border); }
  .imp-yt { margin: 10px 0 0; padding: 12px 14px; }
  .imp-yt-sep { display: none; }
  .imp-yt-text { flex-basis: 100%; font-size: .95rem; }
}
@media (max-width: 720px), (pointer: coarse) {
  .imp-more { width: 44px; height: 44px; }
  .imp-quota .btn { min-height: 44px; }
}
/* the sticky header slides away while scrolling down on a phone (boot.js adds .hidden), and comes back on the way up */
.site-header { transition: transform .22s ease; }
.site-header.hidden { transform: translateY(-100%); }
@media (min-width: 860px) { .site-header.hidden { transform: none; } }
/* 44 px targets on phones and on every touch screen (R7 P1-6) */
@media (max-width: 720px), (pointer: coarse) {
  .btn-sm, .pa-chip, .pa-sec, .select-auto, .yt-bpm input, .link-btn, .back-link, .brand, .chip span, .pa-video-btn { min-height: 44px; }
  .pa-icon, .pa-icon.pa-small { width: 44px; height: 44px; flex: none; }
  .btn, .pa-chip { min-width: 44px; }
  .skip-link { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-pause { width: 44px; height: 44px; }
  .footer-links a, .footer-links .link-btn, .lang-switch a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 10px 0; } /* min-width: "Tarifs" is 39 px wide */
  .footer-links { gap: 0 18px; margin-bottom: 4px; }
  .lang-switch { gap: 0 14px; }
  input[type=range] { height: 44px; margin: 0; }
  .check input, input[type=checkbox], input[type=radio] { width: 24px; height: 24px; margin-top: 0; }
  .check { align-items: center; }
  summary { min-height: 44px; padding: 10px 0; }
  details.faq { padding: 4px 0; }
  details.faq summary { align-items: center; }
  .edit-cell { height: 44px; }
}

/* Public tool pages (import, YouTube) seen by a visitor: minimal header + a discreet, never-blocking invitation */
.header-cta-guest { margin-left: auto; }
.header-cta-guest a { white-space: nowrap; }
@media (max-width: 440px) { .guest-tools .brand-sub { display: none; } .header-cta-guest a { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 370px) { .guest-tools .brand-name { display: none; } }
.guest-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border)); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.guest-banner-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary-text); }
.guest-banner-text { margin: 0; flex: 1 1 260px; font-size: .92rem; line-height: 1.45; }
.guest-banner-text strong { display: block; }
.guest-banner-actions { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.guest-banner-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; font-size: .9rem; }
@media (max-width: 600px) { .guest-banner-actions { width: 100%; justify-content: space-between; } }

/* ---- P01 (25/11/2026): landing refocused on the transcriber and the corrector; compact consent banner ---- */
/* hero: one main action, import a song (owner's order of 29/11/2026: the YouTube link field is gone); the hero sizes
   themselves are with the other .hero-video rules */
.hero-actions { display: grid; gap: 10px; }
.hero-actions .btn-lg { width: 100%; max-width: 440px; justify-content: center; }
.hero-video .hero-hint { color: #C5CEDC; font-size: .88rem; margin: 0; max-width: 56ch; }
/* QA D (27/11/2026): the main button must sit above the fold and the consent sheet on laptops and phones */
@media (min-width: 721px) and (max-height: 900px) {
  .hero-video { padding: 72px 0 24px; min-height: 0; }
  .hero-video h1 { font-size: clamp(1.9rem, min(4.6vw, 6.4vh), 3.4rem); }
  .hero-video .hero-copy { gap: 10px; }
  .hero-actions { gap: 8px; }
  .hero-video .hero-copy > p:not(.hero-hint):not(.hero-note) { font-size: 1rem; line-height: 1.45; }
}
@media (max-width: 720px) {
  .hero-video { padding: 24px 0 24px; }
  .hero-video h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .hero-video .hero-copy { gap: 10px; }
  .hero-actions { gap: 8px; }
}
/* bands 2 and 3: text beside a real product component (result grid, notation picture) */
.p01-band-alt { background: var(--surface); }
.p01-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .p01-grid { grid-template-columns: 1fr 1fr; gap: 48px; } .p01-rev > .stack { order: 2; } }
.p01-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-text); font-weight: 700; font-size: .9rem; }
.p01-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.p01-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.025em; max-width: 22ch; }
.p01-text { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.p01-measures { display: flex; gap: 8px; align-items: flex-start; border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; max-width: 56ch; }
.p01-measures .icon { color: var(--primary-text); margin-top: 3px; }
/* example of a note-by-note result: the exercise grid itself, with a staggered reveal (none with reduced motion) */
.result-sample { margin: 0; padding: 16px; min-width: 0; }
.result-sample-title { margin: 0 0 10px; font-weight: 650; }
.result-sample .drum-grid { overflow: hidden; }
.result-sample .drum-row { grid-template-columns: 82px repeat(var(--steps), minmax(24px, 1fr)); min-width: 0; }
.result-sample .drum-cell { height: 36px; }
.result-sample .count-row .drum-cell { height: 20px; line-height: 20px; }
.result-sample .drum-cell.on { animation: p01-pop .5s cubic-bezier(.2, .8, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 110ms + .2s); }
@keyframes p01-pop { from { transform: scale(.55); opacity: 0; } to { transform: none; opacity: 1; } }
.result-legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; font-weight: 600; }
.result-legend li { display: inline-flex; align-items: center; gap: 6px; }
.result-legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--st-on, #fff); font-size: .8rem; }
.result-legend b.miss { background: transparent; border: 2px dashed var(--st-miss); color: var(--st-miss); }
/* the notation picture sits on "paper" in both themes */
.notation-figure { margin: 0; padding: 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.notation-figure img { width: 100%; height: auto; border-radius: 8px; }
.notation-figure figcaption { margin-top: 10px; font-size: .85rem; line-height: 1.4; color: #4F5B6E; }
/* song library teaser (docs/LIBRARY.md): "coming soon" announcement + "Request your song" form */
.soon-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-text); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
/* "YouTube link: coming soon" (owner's order of 29/11/2026, YOUTUBE_GROOVE_ENABLED off): the tool's place, not a link.
   Dashed border, flat, no hover; the text keeps its normal colour (no opacity: contrast stays AA). */
:is(.card, .pl-tool, .gv-action, .try-tool).is-soon { border-style: dashed; box-shadow: none; cursor: default; transform: none; }
:is(.card, .gv-action, .try-tool).is-soon:hover { border-color: var(--border); box-shadow: none; }
:is(.pl-tool, .gv-action).is-soon:active { transform: none; }
.pl-tool.is-soon { background: transparent; }
.pl-tool.is-soon:hover { background: transparent; border-color: rgba(244, 247, 251, .18); }
.song-request { min-width: 0; }
.song-request [hidden] { display: none !important; } /* .field and .form-success set a display that would defeat [hidden] */
.song-request h3 { margin-bottom: 4px; }
.request-or { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.request-or::before, .request-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.request-names { display: grid; gap: 14px; }
@media (min-width: 560px) { .request-names { grid-template-columns: 1fr 1fr; } }
/* lessons, lower down, inside the play-along band */
.lessons-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(244, 247, 251, .16); }
.lessons-block h3 { color: #fff; display: flex; align-items: center; gap: 8px; }
.lessons-block .btn-ghost { color: #fff; border-color: rgba(244, 247, 251, .3); }
.lessons-block .btn-ghost:hover { background: rgba(244, 247, 251, .08); }
.equipment-card { margin-top: 16px; }
.equipment-card ul.ticks { margin-bottom: 0; }
/* app home: the tools first */
.home-tools-title { font-size: 1.05rem; margin: 0 0 10px; color: var(--muted); font-weight: 650; }
/* consent banner (sizes with the .consent rule above): the text, then the two buttons side by side */
.consent p { margin: 0; font-size: .8rem; line-height: 1.3; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .btn { flex: 1 1 auto; min-height: 44px; padding: 6px 10px; white-space: nowrap; font-size: .88rem; }
@media (min-width: 720px) {
  .consent { grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
  .consent-actions .btn { flex: none; }
}
/* phone: a flat sheet docked to the bottom edge (or right on the tab bar), about 95 px: the landing's YouTube field and
   the lesson's Start bar stay in view above it (playtest round 1) */
@media (max-width: 719px) {
  .consent { left: 0; right: 0; bottom: 0; max-width: none; gap: 6px; border-width: 1px 0 0; border-radius: 16px 16px 0 0;
    padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .has-tabbar .consent { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: 8px;
    box-shadow: 0 -8px 24px rgba(16, 24, 39, .12); }
  .consent p { font-size: .78rem; }
}
/* wide screen: a card in the bottom-right corner, beside the hero's fields (560 px column) instead of over them */
@media (min-width: 960px) {
  .consent { left: auto; right: 16px; bottom: 16px; width: 340px; max-width: none; margin: 0; grid-template-columns: 1fr; gap: 10px; }
  .consent-actions .btn { flex: 1 1 auto; }
}
@media (min-width: 1100px) { .consent { width: 380px; } }
/* forgiving streak card (F10): a passed exercise or 5 min count for the day, one rest day per 7 days.
   Day states differ by shape (filled + check, dashed ring, small dot, outlined ring), never by colour alone. */
.streak-card { display: grid; gap: 16px; }
.streak-head { display: flex; align-items: center; gap: 12px; }
.streak-flame { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); }
.streak-flame.is-done { background: color-mix(in srgb, var(--warning) 22%, var(--surface)); animation: streak-breathe .6s cubic-bezier(.34, 1.56, .64, 1) .2s 1 both; }
@keyframes streak-breathe { 50% { transform: scale(1.18) rotate(-6deg); } }
.streak-title { font-size: 1.1rem; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.streak-today { margin: 2px 0 0; color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.streak-today .icon { color: var(--success); }
.streak-body { display: grid; gap: 16px; }
.streak-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 360px; }
.streak-week li { display: grid; justify-items: center; gap: 4px; }
.sw-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border); color: var(--primary-ink); }
.sw-done .sw-dot { background: var(--primary); border-color: var(--primary); }
.sw-rest .sw-dot { border-style: dashed; border-color: var(--muted); }
.sw-missed .sw-dot { border-color: transparent; background: radial-gradient(circle, var(--muted) 0 3px, transparent 4px); }
.sw-before .sw-dot { border-color: transparent; }
.sw-today .sw-dot { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.sw-day { font-size: .75rem; font-weight: 600; color: var(--muted); }
.sw-today .sw-day { color: var(--text); font-weight: 750; }
.streak-milestone { display: grid; gap: 4px; align-content: center; }
.streak-milestone p { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.streak-reached { color: var(--success); display: flex; align-items: center; gap: 6px; }
.streak-extra { display: grid; gap: 8px; }
.streak-sub { font-size: .95rem; margin: 0; }
.streak-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.streak-badges .badge { font-size: .85rem; padding: 5px 12px; font-variant-numeric: tabular-nums; }
.streak-best { margin: 0; font-variant-numeric: tabular-nums; }
.streak-rule { margin: 0; }
@media (min-width: 720px) { .streak-body { grid-template-columns: minmax(0, 360px) minmax(0, 420px); gap: 16px 40px; align-items: center; } }

/* F13: second level "mastered" (2 passes in a row at target + 20 BPM). Cyan = the musical signal colour; navy-teal
   ink on cyan is 9:1 in both schemes. */
.badge-mastered { background: var(--accent); color: var(--accent-ink); }
.notice-mastered { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); font-weight: 600; }
.ex-levels { margin: 4px 0 0; }
.ex-record { color: var(--text); font-variant-numeric: tabular-nums; }
.lesson-mastered { flex: none; }
.stat-mastered { vertical-align: middle; font-size: .8rem; }
.levels-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.levels-list .level-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.level-record { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
/* F15: micro-interactions (R8 §4-5). Each one answers an action and is short; reduced motion keeps only the fades. */
.tabular, .num { font-variant-numeric: tabular-nums; }
.pad { position: relative; }
.pad:active { transform: scale(.97); transition-duration: var(--dur-xs); }
/* ring spreading from a pad at each hit: cyan = heard (no judgement); report colours when the tap is judged on the
   spot (targeted loop, step by step). Always next to the grid's ✓ ← → and the report text, never alone. */
.ripple { position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--accent); pointer-events: none; animation: bv-ripple var(--dur-m) var(--ease-out) forwards; }
.ripple.ok { border-color: var(--st-ok); }
.ripple.early { border-color: var(--st-early); }
.ripple.late { border-color: var(--st-late); }
.ripple.miss { border-color: var(--st-miss); border-style: dashed; }
@keyframes bv-ripple { from { opacity: .95; } to { transform: scale(1.18); opacity: 0; } }
/* metronome dot: a short pulse when the click is heard (timed on the audio clock in metronome-page.js) */
.beat-dot.pulse { animation: bv-beat var(--dur-s) var(--ease-out); }
@keyframes bv-beat { from { transform: scale(1.45); } }
/* toasts: #toast is a manual popover (top layer, no z-index), it fades in from 8 px above */
.toast-stack { display: grid; justify-items: center; gap: var(--sp-2); }
#toast[popover] { position: fixed; inset: calc(74px + env(safe-area-inset-top, 0px)) 0 auto 0; margin: 0 auto; width: 100%; max-width: none; height: auto; padding: 0 var(--sp-3); border: 0; background: transparent; color: inherit; overflow: visible; pointer-events: none; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--dur-m) var(--ease-standard), transform var(--dur-m) var(--ease-out), overlay var(--dur-m) allow-discrete, display var(--dur-m) allow-discrete; }
#toast:popover-open { display: grid; opacity: 1; transform: none; }
@starting-style { #toast:popover-open { opacity: 0; transform: translateY(-8px); } }
/* page changes: 180 ms cross-fade between our pages (progressive: Chrome/Edge 126+, Safari 18.2+; others just load) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
@media (prefers-reduced-motion: reduce) {
  .pad:active, .pad.hit, .btn:active { transform: none; }
  .ripple { animation: none !important; opacity: .6; }
  #toast[popover] { transform: none; transition-property: opacity, display, overlay !important; }
}
/* the settings card of the profile: one row per switch, the hint under it */
.feedback-settings { display: grid; gap: var(--sp-3); }
.feedback-settings .hint { margin: 2px 0 0 37px; } /* under the label text: box 20 px + its 7 px margins + 10 px gap */
@media (max-width: 720px), (pointer: coarse) { .feedback-settings .hint { margin-left: 41px; } } /* 24 px box */
.feedback-settings #theme-hint { margin-left: 0; } /* under the theme switch, not under a check box */

/* F22 celebrations (R8 section 7): short, measured, no confetti. Level 1 = check drawn + score counted + cyan wave on
   the result card; levels 2-3 = the navy #cheer dialog (snare of the app icon, 3 cyan rings). Always dark like the
   play-along stage; cyan is the musical signal colour (10:1 on navy). Reduced motion: the global rule above removes
   every animation (rings static), the dialog only fades. "Continue" is clickable from the first frame. */
.cheer-score { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-1); }
.cheer-mark { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.cheer-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cheer-mark path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: bv-check var(--dur-m) var(--ease-out) both; }
.cheer-mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none;
  animation: bv-wave 600ms var(--ease-out) 120ms both; }
@keyframes bv-check { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bv-wave { from { opacity: .95; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
.cheer-num { font-variant-numeric: tabular-nums; }

.cheer { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border: 1px solid rgba(72, 215, 232, .22); border-radius: 20px; text-align: center; color: #F4F7FB;
  background: radial-gradient(120% 90% at 50% 0%, #16234A 0%, #101827 62%, #0A0F1C 100%); box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  opacity: 0; transform: scale(.94);
  transition: opacity var(--dur-m) var(--ease-standard), transform var(--dur-l) var(--ease-spring), overlay var(--dur-m) allow-discrete, display var(--dur-m) allow-discrete; }
.cheer[open] { opacity: 1; transform: none; }
@starting-style { .cheer[open] { opacity: 0; transform: scale(.94); } }
.cheer::backdrop { background: rgba(10, 15, 28, .72); backdrop-filter: blur(4px); }
.cheer :focus-visible { outline: 3px solid #48D7E8; outline-offset: 3px; }
.cheer-art { position: relative; width: 120px; height: 120px; margin: 0 auto var(--sp-4); display: grid; place-items: center; }
.cheer-art img { position: relative; width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(72, 215, 232, .25), 0 10px 30px rgba(0, 0, 0, .45); }
.cheer .ring { position: absolute; inset: 14px; border-radius: 50%; border: 2px solid #48D7E8; opacity: .35; pointer-events: none;
  animation: bv-ring 900ms var(--ease-out) both; }
.cheer .ring:nth-child(2) { inset: 4px; opacity: .22; animation-delay: 120ms; }
.cheer .ring:nth-child(3) { inset: -6px; opacity: .12; animation-delay: 240ms; }
@keyframes bv-ring { from { transform: scale(.7); opacity: .95; } to { transform: scale(1.9); opacity: 0; } }
.cheer-eyebrow { margin: 0 0 var(--sp-1); color: #48D7E8; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cheer-title { margin: 0; color: #F4F7FB; font-size: var(--fs-2); line-height: 1.2; }
.cheer-stats { display: flex; justify-content: center; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-3); }
.cheer-stat { flex: 1 1 0; min-width: 0; padding: var(--sp-3) var(--sp-2); border-radius: 14px; background: rgba(244, 247, 251, .05); border: 1px solid rgba(139, 152, 170, .22); }
.cheer-stat dt { color: #A3AEBF; font-size: .8125rem; font-weight: 600; }
.cheer-stat dd { margin: var(--sp-1) 0 0; color: #48D7E8; font-size: var(--fs-4); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cheer-unit { font-size: .45em; margin-left: 2px; letter-spacing: 0; color: #A3AEBF; }
.cheer-desc { margin: 0; color: #A3AEBF; font-size: var(--fs--1); }
.cheer-milestones { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.cheer-milestones li { padding: var(--sp-2) var(--sp-3); border-radius: 12px; border: 1px solid rgba(72, 215, 232, .4); background: rgba(72, 215, 232, .08); color: #F4F7FB; }
.cheer-actions { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.cheer-actions .btn { width: 100%; }
.cheer .btn-ghost { color: #F4F7FB; border-color: rgba(244, 247, 251, .3); background: transparent; }
.cheer .btn-ghost:hover { background: rgba(244, 247, 251, .08); }
.cheer [data-cheer-save][aria-disabled="true"] { opacity: .6; pointer-events: none; }
.cheer-hint { margin: var(--sp-2) 0 0; color: #A3AEBF; font-size: var(--fs--1); }
@media (prefers-reduced-motion: reduce) {
  .cheer { transform: none; transition-property: opacity, display, overlay !important; }
  @starting-style { .cheer[open] { transform: none; } }
}

/* F26 "Spoken count" chip of an exercise: a speaker icon, on = filled blue like every chip; the hint sits beside it */
.voice-chips { margin-top: 10px; align-items: center; }
.voice-chips .hint { flex: 1 1 220px; margin: 0; }
.voice-chip span { gap: 8px; }
.voice-chip span::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z' fill='black'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z' fill='black'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 720px) { .voice-chip span { min-height: 44px; } }

/* F33 High contrast (25/11/2026): the system setting (prefers-contrast: more, Baseline) or the profile switch
   (localStorage bv_contrast, applied before the first paint by contrast.js as html[data-contrast]).
   Secondary text takes the text colour, lines are 2 px and darker, focus rings 4 px. The CSS block below works even
   without JavaScript; html[data-contrast="normal"] (switch turned off in the profile) wins over the system. */
@media (prefers-contrast: more) {
  :root:not([data-contrast="normal"]) { --muted: var(--text); --border: #4F5B6E; --focus-w: 4px; }
  :root:not([data-contrast="normal"]) .card { border-width: 2px; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-contrast="normal"]):not([data-theme="light"]) { --border: #A3AEBF; }
}
@media (prefers-contrast: more) { :root[data-theme="dark"]:not([data-contrast="normal"]) { --border: #A3AEBF; } }
:root[data-contrast="more"] { --muted: var(--text); --border: #4F5B6E; --focus-w: 4px; }
@media (prefers-color-scheme: dark) { :root[data-contrast="more"]:not([data-theme="light"]) { --border: #A3AEBF; } }
:root[data-contrast="more"][data-theme="dark"] { --border: #A3AEBF; }
:root[data-contrast="more"] :focus-visible,
:root[data-contrast="more"] .pw-toggle:focus-visible,
:root[data-contrast="more"] .hero-pause:focus-visible,
:root[data-contrast="more"] .plan-opt:focus-visible,
:root[data-contrast="more"] .plan-link:focus-visible { outline-width: 4px; outline-offset: 2px; }
:root[data-contrast="more"] .chip input:focus-visible + span { outline-width: 4px; }
:root[data-contrast="more"] input:focus-visible, :root[data-contrast="more"] select:focus-visible,
:root[data-contrast="more"] textarea:focus-visible { outline: 4px solid var(--focus); outline-offset: 1px; box-shadow: none; }
:root[data-contrast="more"] :is(.card, .notice, .btn-ghost, .chip span, .pad, select, textarea, .lesson-item,
  input:not([type=checkbox], [type=radio], [type=range], [type=file]),
  .notation-switch, .drum-cell, .loop-track, .metro-advanced, .metro-tool, .beat-dot, .pa-sec, .pa-icon, .pa-chip) { border-width: 2px; }
:root[data-contrast="more"] .btn:not(.btn-primary, .btn-accent, .btn-danger, .btn-ghost) { border: 2px solid var(--border); }
:root[data-contrast="more"] :is(.btn-primary, .btn-accent, .btn-danger) { border: 2px solid var(--text); }
:root[data-contrast="more"] .badge { border: 1px solid var(--border); }
:root[data-contrast="more"] .pad kbd { border-width: 2px; color: var(--text); }
:root[data-contrast="more"] :is(.site-header, details.faq, .history li) { border-bottom-width: 2px; }
:root[data-contrast="more"] .tabbar { border-top-width: 2px; }
:root[data-contrast="more"] .tabbar a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
:root[data-contrast="more"] .btn[disabled], :root[data-contrast="more"] .btn[aria-disabled="true"] { opacity: .7; }
:root[data-contrast="more"] .pa-player { --pa-line: rgba(230, 236, 245, .7); --pa-muted: #E6ECF5; }
:root[data-contrast="more"] .pa-chip[aria-pressed="true"] { border-color: #7FA6FF; }
:root[data-contrast="more"] .card, :root[data-contrast="more"] .btn-primary { box-shadow: none; }

/* F33: the kit view of a play-along is a play / pause button (Tab, Space, Enter): its ring keeps the stage corners */
.pa-stage:focus-visible { outline: var(--focus-w, 3px) solid var(--cyan); outline-offset: 3px; border-radius: 14px; }
/* F33 "Spoken feedback" switch of the profile: a short preview button beside it */
.speech-test { margin: 6px 0 0 30px; }

/* F27 Grooves page: the two libraries of "Play" as tabs, filter chips (style, level, meter, access), groove cards
   with a mini grid of the cycle (one dot per note, coloured by limb), and the groove page's two actions. */
.play-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.play-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 110px; padding: 8px 18px; border-radius: 10px;
  font-weight: 650; color: var(--muted); text-decoration: none; transition: background-color var(--dur-s), color var(--dur-s); }
.play-tabs a:hover { color: var(--text); }
.play-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.gv-head h1 { margin: 0 0 6px; }
.gv-head p { margin: 0; max-width: 70ch; }
.gv-filters { display: grid; gap: 10px; padding: 14px 16px; }
.gv-filter-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; }
.gv-filter-label { padding-top: 10px; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gv-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-s), border-color var(--dur-s), color var(--dur-s); }
.gv-chip:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.gv-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.gv-count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gv-count { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.gv-reset { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.gv-reset[hidden], .gv-card[hidden], .gv-empty[hidden] { display: none; }
.gv-art { position: relative; height: 108px; overflow: hidden;
  background: radial-gradient(110% 140% at 0% 0%, rgba(40, 107, 255, .55), transparent 62%), linear-gradient(135deg, #101827, #16234A); }
.gv-grid-svg { position: absolute; left: 14px; top: 14px; width: calc(100% - 110px); height: calc(100% - 28px); }
.gv-grid-svg .gv-beat { fill: rgba(230, 236, 245, .04); }
.gv-grid-svg .gv-beat.odd { fill: rgba(230, 236, 245, .1); }
.gv-grid-svg circle { fill: #48D7E8; }
.gv-grid-svg .dot-LH { fill: #a78bfa; } .gv-grid-svg .dot-RH { fill: #38bdf8; }
.gv-grid-svg .dot-LF { fill: #34d399; } .gv-grid-svg .dot-RF { fill: #fbbf24; }
.gv-grid-svg .ghost { opacity: .55; }
.gv-art-locked { background: linear-gradient(135deg, #1B2539, #22304D); }
.gv-lock-art { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #A3AEBF; }
.gv-meter { position: absolute; right: 16px; top: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(72, 215, 232, .16);
  color: #48D7E8; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gv-text { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gv-empty { text-align: center; }
.gv-empty p { margin: 0 0 10px; }
.gv-premium-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.gv-actions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gv-action { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px; border-radius: var(--radius); text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform var(--dur-xs) var(--ease-standard), border-color var(--dur-s), box-shadow var(--dur-s); }
.gv-action:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: var(--shadow-lg); }
.gv-action:active { transform: scale(.99); }
.gv-action > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.gv-action-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-text); }
.gv-tap { scroll-margin-top: 80px; }
@media (max-width: 560px) {
  .gv-filter-row { grid-template-columns: 1fr; gap: 4px; }
  .gv-filter-label { padding-top: 0; }
  .gv-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
  .gv-chips::-webkit-scrollbar { display: none; }
  .gv-chip { flex: none; }
  .play-tabs { width: 100%; }
  .play-tabs a { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .gv-action, .gv-chip, .play-tabs a { transition: none; } .gv-action:active { transform: none; } }
:root[data-contrast="more"] :is(.gv-chip, .gv-action, .play-tabs) { border-width: 2px; }

/* F32: offline. An attempt waiting for a connection (no score), the "keep the video offline" row, the offline lessons */
.result.result-queued { border-left-color: var(--cyan); }
.lesson-offline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.lesson-offline .btn { min-height: 44px; }
.lesson-offline-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lesson-offline-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(72, 215, 232, .18); }
.offline-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.offline-lessons a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; text-decoration: none; }
.offline-lessons a:hover { border-color: var(--primary); }
.offline-lessons a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.offline-lessons small { margin-left: auto; padding-left: 12px; font-weight: 400; color: var(--muted); }
/* F35 progress page: stat tiles 2 x 2 on phones, empty states with their action, the curves (score and tempo per
   attempt, one measure per chart), minutes per week and the day heatmap. One hue (electric blue), tokens only, so both
   colour schemes follow; text stays in text colours, never in the series colour. */
@media (max-width: 719px) {
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-tiles .card { padding: 14px; }
  .stat-tiles .stat-value { font-size: 1.35rem; flex-wrap: wrap; gap: 4px 8px; }
  .stat-tiles .stat-label { font-size: .8rem; line-height: 1.25; }
}
.empty-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-action p { margin: 0; }
.empty-action .btn { min-height: 44px; }
.empty-next { color: var(--muted); }
.chart-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.chart-pick { flex: 1 1 240px; margin: 0; }
.chart-pick select { min-height: 44px; }
.chart-open { min-height: 44px; }
.charts-pair { display: grid; gap: 12px 20px; margin-top: 14px; }
@media (min-width: 860px) { .charts-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart-fig { margin: 0; min-width: 0; }
.chart-fig figcaption { font-size: .88rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.chart-box { width: 100%; min-width: 0; overflow: hidden; }
svg.chart { display: block; max-width: 100%; height: auto; overflow: visible; font-family: var(--font); }
svg.chart .ch-grid line { stroke: var(--border); stroke-width: 1; }
svg.chart .ch-base { stroke: var(--border); stroke-width: 1; }
svg.chart .ch-tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
svg.chart .ch-tick-strong { fill: var(--text); font-weight: 650; }
svg.chart .ch-value { fill: var(--text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
svg.chart .ch-target { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
svg.chart .ch-target-label { fill: var(--muted); font-size: 12px; font-weight: 600; }
svg.chart .ch-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.chart .pt { stroke: var(--surface); stroke-width: 2; }
svg.chart .pt-passed { fill: var(--primary); }
svg.chart .pt-failed { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
svg.chart .wk-hit { fill: transparent; }
svg.chart .wk-bar { fill: color-mix(in srgb, var(--primary) 45%, var(--surface)); }
svg.chart .wk-current .wk-bar { fill: var(--primary); }
svg.chart .wk:hover .wk-bar { fill: color-mix(in srgb, var(--primary) 75%, var(--surface)); }
svg.chart .wk-current:hover .wk-bar { fill: var(--primary); }
@media (prefers-reduced-motion: no-preference) {
  svg.chart .ch-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ch-draw var(--dur-l) var(--ease-out) forwards; }
  svg.chart .ch-points { animation: ch-fade var(--dur-m) var(--ease-standard) both; }
}
@keyframes ch-draw { to { stroke-dashoffset: 0; } }
@keyframes ch-fade { from { opacity: 0; } }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--primary); }
.lg-passed { background: var(--primary); }
.lg-failed { background: var(--surface); }
.lg-dash { width: 18px; border-top: 2px dashed var(--muted); }
.chart-one { margin: 8px 0 0; }
.chart-table { margin-top: 10px; }
.chart-table > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--primary-text); }
.table-wrap { overflow-x: auto; }
.chart-figures { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.chart-figures th, .chart-figures td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.chart-figures th { color: var(--muted); font-weight: 650; }
.chart-figures td.ok { color: var(--success); font-weight: 650; }
svg.heatmap .hm-cell { stroke: color-mix(in srgb, var(--text) 8%, transparent); stroke-width: 1; }
.hm-l0 { fill: var(--surface-2); background: var(--surface-2); }
.hm-l1 { fill: color-mix(in srgb, var(--primary) 28%, var(--surface)); background: color-mix(in srgb, var(--primary) 28%, var(--surface)); }
.hm-l2 { fill: color-mix(in srgb, var(--primary) 52%, var(--surface)); background: color-mix(in srgb, var(--primary) 52%, var(--surface)); }
.hm-l3 { fill: color-mix(in srgb, var(--primary) 76%, var(--surface)); background: color-mix(in srgb, var(--primary) 76%, var(--surface)); }
.hm-l4 { fill: var(--primary); background: var(--primary); }
svg.heatmap .hm-future { fill: transparent; stroke: var(--border); stroke-dasharray: 2 2; }
svg.heatmap .hm-today { stroke: var(--text); stroke-width: 2; }
.hm-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.hm-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.hm-legend span:first-child { margin-right: 4px; }
.hm-legend span:last-child { margin-left: 4px; }
:root[data-contrast="more"] svg.chart .ch-grid line, :root[data-contrast="more"] svg.heatmap .hm-cell { stroke: var(--muted); }
@media (forced-colors: active) {
  svg.chart .ch-line, svg.chart .pt-failed { stroke: CanvasText; }
  svg.chart .pt-passed, svg.chart .wk-bar, .hm-l4 { fill: CanvasText; }
}

/* F37: compact song library (Play tab), "Continue" and the locked page.
   Two columns of cards on a phone; the hero, the two tools and the filters fit in about one screen. */
.pl-hero { display: grid; gap: 18px 28px; padding: 22px 24px; }
.pl-hero h1 { margin: 8px 0 6px; }
.pl-hero .pl-sub { margin: 0; }
.pl-hero .limb-legend { margin-top: 10px; }
.pl-tools { display: grid; gap: 10px; align-content: end; }
.pl-tool { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 14px; text-decoration: none;
  color: #F4F7FB; background: rgba(244, 247, 251, .06); border: 1px solid rgba(244, 247, 251, .18);
  transition: background-color var(--dur-s), border-color var(--dur-s), transform var(--dur-xs) var(--ease-standard); }
.pl-tool:hover { background: rgba(244, 247, 251, .12); border-color: rgba(72, 215, 232, .6); }
.pl-tool:active { transform: scale(.99); }
.pl-tool > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pl-tool b { font-weight: 700; }
.pl-tool small { color: #C5CEDC; font-size: .8rem; }
.pl-tool-main { background: var(--electric); border-color: var(--electric); color: #FFFFFF; }
.pl-tool-main:hover { background: #1F5CE6; border-color: #1F5CE6; }
.pl-tool-main small { color: #FFFFFF; }
.pl-tool-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .14); }
@media (min-width: 760px) { .pl-hero { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); align-items: end; } }

.pl-continue { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow); }
.pl-continue-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy); color: var(--cyan); }
.pl-continue-body { flex: 1; min-width: 0; }
.pl-continue-kicker { margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pl-continue-song { margin: 2px 0 0; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-continue-style { color: var(--muted); font-weight: 600; font-size: .9rem; }
.pl-continue-meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 0 10px; font-size: .84rem; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums; }
.pl-continue-meta > * + *::before { content: "·"; margin-right: 10px; }
.pl-continue-cta { flex: none; }

.pl-filters { display: grid; gap: 8px; }
.pl-filter-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: center; }
.pl-filter-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip-link { gap: 6px; color: var(--primary-text); border-style: dashed; }
.pl-count-row { min-height: 44px; }
.pl-group[hidden], .pl-card[hidden], .pl-see-all[hidden] { display: none; }
.pl-see-all { margin-top: 12px; gap: 6px; color: var(--primary-text); }
.pl-card { position: relative; }
.pl-flag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.5; }
.pl-flag .icon { width: 12px; height: 12px; }
.pl-flag-lock { background: #F4F7FB; color: #101827; }      /* 17:1 */
.pl-flag-free { background: #48D7E8; color: #062A33; }      /* 9:1 */
.pl-style { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-mood { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 719px) {
  .pl-page > * + * { margin-top: 14px; }
  .pl-hero { padding: 16px; gap: 14px; }
  .pl-hero .play-badge { display: none; } /* the Songs / Grooves tabs just above say it */
  .pl-hero h1 { margin-top: 0; }
  .pl-hero .pl-sub { font-size: .92rem; line-height: 1.45; }
  .pl-hero .limb-legend { gap: 6px 12px; }
  .pl-hero .limb-legend li { font-size: .8rem; }
  .pl-tools { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pl-tool { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; }
  .pl-tool small { display: none; }
  .pl-tool-icon { width: 30px; height: 30px; border-radius: 8px; }
  .pl-continue { padding: 12px 14px; gap: 10px; }
  .pl-continue-icon { display: none; }
  .pl-continue-meta { font-size: .78rem; gap: 0 6px; }
  .pl-continue-meta .pl-continue-min { display: none; }
  .pl-continue-meta > * + *::before { margin-right: 6px; }
  .pl-continue-cta { padding: 10px 14px; }
  .pl-filter-row { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .pl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 2px 16px 2px 0; }
  .pl-chips::-webkit-scrollbar { display: none; }
  .pl-chips .gv-chip { flex: none; padding: 8px 12px; }
  .pl-group + .pl-group { margin-top: 18px; }
  .pl-group .song-group-head p { display: none; }
  .pl-group .song-group-head { margin-bottom: 10px; }
  .pl-group .song-group-head h2 { font-size: 1.15rem; }
  .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pl-card { border-radius: 14px; }
  .pl-card .song-art { height: 52px; }
  .pl-card .song-art svg { display: none; }
  .pl-flag { left: 8px; top: 26px; }
  .pl-card .song-bpm { right: 10px; bottom: 8px; font-size: 1.35rem; }
  .pl-card .song-bpm small { font-size: .75rem; }
  .pl-card .song-body { padding: 10px 10px 12px; gap: 4px; }
  .pl-card .pl-style { font-size: .75rem; }
  .pl-card h3 { font-size: .98rem; line-height: 1.2; }
  .pl-card .song-composer, .pl-card .pl-mood, .pl-card .pl-dur { display: none; }
  .pl-card .song-meta { padding-top: 6px; gap: 6px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .pl-tool { transition: none; } .pl-tool:active { transform: none; } }
:root[data-contrast="more"] :is(.pl-tool, .pl-continue) { border-width: 2px; }

.locked-includes { padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.locked-includes h2 { font-size: 1.1rem; margin: 0 0 12px; }
.locked-includes ul.ticks { margin-bottom: 12px; }
.locked-price { margin: 0; font-weight: 700; }
.locked-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.locked-free-note { margin: 0; }
@media (max-width: 560px) { .locked-actions .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------------ F30 placement test "3 minutes to place yourself"
   Tokens only (both colour schemes follow). The tap screen inside is the lessons' one (exercise.js). */
.ob-placement { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); color: var(--text); text-decoration: none; transition: border-color var(--dur-s), background-color var(--dur-s); }
.ob-placement:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.ob-placement-text { display: grid; gap: 2px; flex: 1; }
.ob-placement strong { color: var(--primary-text); }
.ob-step .ob-placement .hint { margin: 0; }
.ob-placement-arrow { flex: none; font-size: 1.25rem; color: var(--primary-text); transition: transform var(--dur-s) var(--ease-standard); }
.ob-placement:hover .ob-placement-arrow { transform: translateX(3px); }
.plt-page { padding-top: 8px; padding-bottom: 32px; }
.plt-page [hidden] { display: none !important; }  /* .btn, .check... set a display that would defeat [hidden] */
.plt-title { display: flex; align-items: center; gap: 10px; }
.plt-title .plt-title-icon { flex: none; color: var(--accent); }
.plt-h2 { font-size: var(--fs-1); margin: 0 0 10px; }
.plt-h2:focus { outline: none; }
.plt-intro-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .plt-intro-grid { grid-template-columns: 1fr 1.15fr; gap: 28px; } }
.plt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plt-list-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.plt-list-item > span:last-child { display: grid; gap: 2px; }
.plt-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--accent); font-weight: 750; font-variant-numeric: tabular-nums; }
.plt-rule-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.plt-rule-list li::marker { color: var(--accent); }
.plt-intro-actions { margin-top: 20px; }
.plt-progress { display: grid; gap: 8px; }
.plt-count { margin: 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.plt-dots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plt-dot { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.plt-dot-n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 750; font-size: .85rem; }
.plt-dot-text { display: grid; min-width: 0; }
.plt-dot-title { font-weight: 650; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plt-dot-state { color: var(--muted); }
.plt-dot[data-state="current"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.plt-dot[data-state="current"] .plt-dot-n { background: var(--primary); color: var(--primary-ink); }
.plt-dot[data-state="passed"] { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
.plt-dot[data-state="passed"] .plt-dot-n { background: var(--success); color: #fff; }
.plt-dot[data-state="passed"] .plt-dot-state { color: var(--success); font-weight: 650; }
.plt-dot[data-state="failed"] .plt-dot-n, .plt-dot[data-state="skipped"] .plt-dot-n { background: color-mix(in srgb, var(--warning) 18%, var(--surface)); color: var(--warning); }
@media (max-width: 560px) { .plt-dot-title { display: none; } .plt-dot { justify-content: center; } }
.plt-tempo { font-variant-numeric: tabular-nums; }
.plt-step-actions { margin-top: 16px; justify-content: flex-end; }
.plt-score { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.plt-score > span:last-child { display: grid; gap: 6px; justify-items: start; }
.plt-score-big { font-size: var(--fs-4); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.plt-score-label { font-weight: 650; }
.plt-score .badge-primary { background: color-mix(in srgb, var(--accent) 22%, transparent); color: #fff; }
.plt-verdict { margin: 16px 0 12px; font-size: var(--fs-1); font-weight: 650; }
.plt-result-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.plt-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.plt-result-name { flex: 1; min-width: 0; }
.plt-result-mark { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: var(--warning); }
.plt-result-item.is-passed .plt-result-mark { background: var(--success); color: #fff; }
.plt-result-actions { margin-top: 16px; }
@media (max-width: 560px) { .plt-result-actions .btn, .plt-intro-actions .btn { flex: 1 1 100%; } .plt-score { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .ob-placement-arrow { transition: none; } }

/* ------------------------------------------------------------------ F38: Rudiments tab of the Grooves page
   The card art is the always-dark navy stage of the groove cards: the sticking of one bar, R in the right-hand sky
   blue, L in the left-hand violet (the limb colours of the play-along), accents underlined in cyan. */
.rd-family { display: grid; gap: 12px; }
.rd-family-title { margin: 8px 0 0; font-size: 1.15rem; display: flex; align-items: baseline; gap: 8px; }
.rd-art { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 108px; padding: 30px 14px 12px;
  background: radial-gradient(110% 140% at 0% 0%, rgba(40, 107, 255, .55), transparent 62%), linear-gradient(135deg, #101827, #16234A); color: #E6ECF5; }
.rd-art-locked { background: linear-gradient(135deg, #1B2539, #22304D); }
.rd-pas { position: absolute; left: 14px; top: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(72, 215, 232, .16);
  color: #48D7E8; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-tempo { position: absolute; right: 14px; top: 10px; color: #C5CEDC; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-sticking { display: grid; grid-template-columns: repeat(var(--steps, 16), minmax(0, 1fr)); gap: 2px; align-items: end; }
.rd-cell { display: grid; place-items: center; height: 26px; border-radius: 5px; font-size: .78rem; font-weight: 800; line-height: 1;
  background: rgba(230, 236, 245, .05); color: transparent; }
.rd-cell.rd-beat { box-shadow: inset 2px 0 0 rgba(230, 236, 245, .22); }
.rd-cell.rd-r { background: rgba(56, 189, 248, .2); color: #7DD3FC; }
.rd-cell.rd-l { background: rgba(167, 139, 250, .22); color: #C4B5FD; }
.rd-cell.rd-acc { height: 32px; box-shadow: inset 0 -3px 0 #48D7E8; }
.rd-cell.rd-acc.rd-beat { box-shadow: inset 2px 0 0 rgba(230, 236, 245, .22), inset 0 -3px 0 #48D7E8; }
.rd-card.locked .rd-art { filter: saturate(.5) brightness(.85); }
@media (max-width: 380px) { .rd-sticking { gap: 1px; } .rd-cell { font-size: .75rem; height: 22px; } .rd-cell.rd-acc { height: 28px; } }
:root[data-contrast="more"] .rd-cell.rd-r { color: #E0F2FE; } :root[data-contrast="more"] .rd-cell.rd-l { color: #EDE9FE; }

/* F34: fills drawn by the server and "Listen and play it back". The echo stage stands where the grid will be (the
   grid is not in the page while the learner listens): a sound wave that moves while the app plays, the beats of the
   bars lit one by one (the pulse, never the rhythm). The drawn fill's name sits above the exercise. Fills tab cards. */
.exercise-mount .btn[hidden] { display: none; } /* .btn sets a display that would defeat [hidden] (echo: Step by step) */
.fill-draw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 12px; }
.fill-draw-label { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fill-draw-tag { font-size: .82rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.fill-draw-label strong { font-size: 1.02rem; }
.echo-stage { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 18px 18px 16px;
  border-radius: var(--radius); color: #E6ECF5; border: 1px solid #29344D;
  background: radial-gradient(120% 160% at 0% 0%, rgba(40, 107, 255, .45), transparent 60%), linear-gradient(135deg, #101827, #16234A); }
.echo-title { margin: 0 0 4px; font-weight: 750; font-size: 1.08rem; color: #fff; }
.echo-stage .hint { margin: 0; color: #C5CEDC; }
.echo-wave { display: flex; align-items: center; gap: 4px; height: 44px; width: 44px; justify-content: center; border-radius: 12px;
  background: rgba(72, 215, 232, .14); }
.echo-wave i { display: block; width: 4px; height: 10px; border-radius: 2px; background: #48D7E8; transform-origin: center; }
.echo-wave i:nth-child(2), .echo-wave i:nth-child(4) { height: 18px; }
.echo-wave i:nth-child(3) { height: 26px; }
.echo-stage.listening .echo-wave i { animation: echo-wave .9s var(--ease-standard, ease-in-out) infinite alternate; }
.echo-stage.listening .echo-wave i:nth-child(2) { animation-delay: -.3s; }
.echo-stage.listening .echo-wave i:nth-child(3) { animation-delay: -.6s; }
.echo-stage.listening .echo-wave i:nth-child(4) { animation-delay: -.15s; }
.echo-stage.listening .echo-wave i:nth-child(5) { animation-delay: -.45s; }
@keyframes echo-wave { from { transform: scaleY(.45); } to { transform: scaleY(1.25); } }
.echo-beats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--beats, 8), 1fr); gap: 6px; }
.echo-beat { height: 10px; border-radius: 999px; background: rgba(230, 236, 245, .16); transition: background-color var(--dur-xs, .1s), transform var(--dur-xs, .1s); }
.echo-beat.bar-start { background: rgba(230, 236, 245, .28); }
.echo-beat.on { background: #48D7E8; transform: scaleY(1.4); }
.fl-actions { margin-top: auto; padding-top: 6px; }
.fl-card.playing { border-color: var(--cyan); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cyan) 45%, transparent), var(--shadow-lg); }
.fl-card:hover { transform: none; }
.gv-grid-svg .fl-landing { fill: rgba(72, 215, 232, .14); }
@media (max-width: 560px) {
  .echo-stage { grid-template-columns: 1fr; }
  .play-tabs a { padding-inline: 6px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .echo-stage.listening .echo-wave i { animation: none; }
  .echo-beat { transition: none; }
  .echo-beat.on { transform: none; }
}
:root[data-contrast="more"] .echo-stage { border-width: 2px; border-color: #48D7E8; }
/* F30: the placement link sits under the buttons so step 1 keeps its button above the fold on a phone; hidden on step 2 */
.ob-form > .ob-placement { margin-top: 16px; }
.ob-form[data-step="2"] > .ob-placement { display: none; }

/* ------------------------------------------------------------------ F40 "Try it in 90 seconds" (/try), no account
   Tokens only (both colour schemes follow). The tap screen inside is the lessons' one (exercise.js, option public). */
.try-page { padding-top: 24px; padding-bottom: 40px; }
.try-page [hidden] { display: none !important; }  /* .btn, .row... set a display that would defeat [hidden] */
.try-head { display: grid; gap: 10px; }
.try-title { margin: 0; max-width: 22ch; letter-spacing: -.02em; }
.try-sub { margin: 0; max-width: 62ch; }
.try-h2 { font-size: var(--fs-1); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.try-h2:focus { outline: none; }
.try-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.try-steps li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-weight: 650; font-size: .9rem; }
.try-step-n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 750; font-size: .85rem; font-variant-numeric: tabular-nums; }
.try-steps li[data-state="current"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.try-steps li[data-state="current"] .try-step-n { background: var(--primary); color: var(--primary-ink); }
.try-steps li[data-state="done"] .try-step-n { background: var(--success); color: #fff; }
.try-gear { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.try-gear-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.try-gear-opt { position: relative; display: flex; }
.try-gear-opt input { position: absolute; opacity: 0; pointer-events: none; }
.try-gear-card { flex: 1; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 96px; padding: 14px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); text-align: center; font-weight: 650; line-height: 1.25; cursor: pointer; transition: border-color var(--dur-s), background-color var(--dur-s), transform var(--dur-s) var(--ease-standard); }
.try-gear-card svg { color: var(--primary-text); }
.try-gear-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.try-gear-opt input:checked + .try-gear-card { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); box-shadow: 0 0 0 1px var(--primary); }
.try-gear-opt input:checked + .try-gear-card svg { color: var(--accent); }
.try-gear-opt input:focus-visible + .try-gear-card { outline: 3px solid var(--focus); outline-offset: 2px; }
.try-setup-actions { margin-top: 16px; }
.try-privacy { margin: 12px 0 0; }
.try-run-head { justify-content: space-between; align-items: flex-start; }
.try-run-head .try-h2 { margin: 0; }
.try-tempo { font-variant-numeric: tabular-nums; }
.try-tip { margin: 12px 0 4px; padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); }
.try-instructions { margin: 8px 0 4px; }
.try-change { margin-top: 14px; min-height: 44px; }
.try-next { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.try-next.is-new { animation: try-rise var(--dur-m, 320ms) var(--ease-standard) both; }
.try-next[data-passed="true"] .try-h2 svg { color: var(--success); }
.try-next-actions { margin-top: 4px; }
.try-login { margin: 12px 0 0; }
.try-free { margin-top: 16px; }
.try-free-title { margin: 0 0 8px; font-weight: 650; }
.try-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.try-tool { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.try-tool svg { flex: none; color: var(--primary-text); }
.try-tool:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.try-kept { margin: 12px 0 0; }
.try-carry a { font-weight: 650; }
.landing-try { display: grid; gap: 6px; justify-items: start; margin: 4px 0 6px; }
.landing-try-hint { margin: 0; }
@keyframes try-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .try-gear-grid { grid-template-columns: 1fr; }
  .try-gear-card { grid-auto-flow: column; justify-content: start; justify-items: start; min-height: 56px; text-align: left; }
  .try-steps li { justify-content: center; font-size: .82rem; padding: 8px 6px; }
  .try-tools { grid-template-columns: 1fr; }
  .try-setup-actions .btn, .try-next-actions .btn, .landing-try .btn { flex: 1 1 100%; width: 100%; }
  .landing-try { justify-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .try-next.is-new { animation: none; } .try-gear-card { transition: none; } }
:root[data-contrast="more"] :is(.try-gear-card, .try-tool, .try-steps li) { border-width: 2px; }

/* Privacy page: one cookie choice per category (data-consent-form, boot.js) */
.consent-form { display: grid; gap: 12px; max-width: 640px; margin: 12px 0 20px; }

/* ---- Pricing (offer of 29/11/2026): three cards on a dark stage, whatever the theme. Brand colours only: navy stage,
   electric blue for the actions, cyan for the recommended plan and the ticks. The amounts use a blue-to-cyan text
   gradient (7FA6FF -> 48D7E8: 6:1 or more on the card); plain text where colours are forced. */
.price-stage { position: relative; color: #F4F7FB; padding: 56px 0 52px; background-color: var(--navy);
  background-image: linear-gradient(90deg, rgba(16, 24, 39, .97) 0%, rgba(16, 24, 39, .86) 45%, rgba(16, 24, 39, .6) 100%),
                    linear-gradient(0deg, #101827 0%, rgba(16, 24, 39, 0) 42%),
                    radial-gradient(60% 70% at 92% 0%, rgba(40, 107, 255, .28), transparent 62%),
                    url("/static/media/hero/drums-44135.jpg");
  background-size: auto, auto, auto, cover; background-position: center, center, center, right top; background-repeat: no-repeat; }
@media (max-width: 599px) {
  .price-stage { padding: 36px 0 36px;
    background-image: linear-gradient(180deg, rgba(16, 24, 39, .78) 0%, rgba(16, 24, 39, .95) 260px, #101827 420px),
                      url("/static/media/hero/drums-44135-540.jpg");
    background-size: auto, 100% auto; background-position: center, center top; }
}
.price-head { max-width: 760px; }
.price-eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: .82rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.price-head h1 { color: #fff; margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.price-sub { margin: 14px 0 0; color: #C5CEDC; font-size: 1.1rem; max-width: 62ch; }
.price-grid { display: grid; gap: 22px; margin-top: 40px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.price-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px 24px 22px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(29, 40, 64, .8), rgba(22, 31, 49, .9)); border: 1px solid rgba(163, 174, 191, .2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: box-shadow var(--dur-m) var(--ease-standard), transform var(--dur-m) var(--ease-standard); }
.price-card-best { border-color: rgba(72, 215, 232, .6);
  background: linear-gradient(180deg, rgba(40, 107, 255, .22), rgba(22, 31, 49, .92) 58%);
  box-shadow: 0 0 0 1px rgba(72, 215, 232, .3), 0 0 56px rgba(40, 107, 255, .32), 0 24px 60px rgba(0, 0, 0, .4); }
.price-card.is-picked { outline: 2px solid var(--cyan); outline-offset: 3px; }
.price-badge { position: absolute; top: -14px; right: 20px; display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 6px 12px; border-radius: 999px; background: var(--cyan); color: #062A33; font-size: .78rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(72, 215, 232, .3); }
.price-badge svg { fill: currentColor; }
.price-name { margin: 0 0 14px; color: #fff; font-size: 1.45rem; letter-spacing: -.01em; }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.price-big { color: #fff; font-size: clamp(2.7rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.price-glow { background: linear-gradient(100deg, #7FA6FF 0%, #48D7E8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-per { color: #C5CEDC; font-size: 1.05rem; font-weight: 600; }
.price-then { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; color: #E4EAF3; font-weight: 650; }
.price-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(72, 215, 232, .55); color: #BDF2F9; font-size: .84rem; font-weight: 600; }
.price-rule { width: 100%; margin: 22px 0 18px; border: 0; border-top: 1px solid rgba(163, 174, 191, .22); }
.price-list { flex: 1; display: grid; align-content: start; gap: 13px; margin: 0 0 4px; padding: 0; list-style: none; color: #DCE3EE; }
.price-list li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; line-height: 1.42; }
.price-tick { margin-top: 2px; color: var(--cyan); }
.price-card-free .price-tick { color: #A3AEBF; }
.price-top { display: flex; flex-direction: column; }
/* 01/12/2026 (owner's OK, launch checklist point 20): each plan's button right under its price, so the three
   buttons are in the first screen; on a wide screen the cards share their rows (subgrid), so the buttons line up */
.price-foot { display: grid; gap: 10px; margin-top: 20px; text-align: center; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .price-grid { row-gap: 0; }
    .price-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .price-foot { align-self: start; }
  }
}
.price-note { margin: 0; color: #A3AEBF; font-size: .9rem; }
.price-card .btn-primary { box-shadow: 0 10px 28px rgba(40, 107, 255, .35); }
.price-card-best .btn-primary { box-shadow: 0 10px 34px rgba(40, 107, 255, .5), 0 0 0 1px rgba(72, 215, 232, .35); }
.price-ghost { color: #fff; border-color: rgba(244, 247, 251, .35); background: transparent; }
.price-ghost:hover { background: rgba(244, 247, 251, .08); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .price-card:hover { transform: translateY(-3px); }
}
.price-values { display: grid; gap: 18px; margin: 44px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) {
  .price-values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .price-values li + li { border-left: 1px solid rgba(163, 174, 191, .22); padding-left: 28px; }
  .price-values li { padding-right: 20px; }
}
.price-values li { display: flex; align-items: center; gap: 14px; color: #C5CEDC; line-height: 1.4; }
.price-values strong { display: block; color: #fff; font-size: 1.06rem; }
.price-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(72, 215, 232, .55); color: var(--cyan); background: rgba(72, 215, 232, .06); }
.price-after { padding-top: 36px; }
.price-checkout { max-width: 720px; margin: 0 auto; scroll-margin-top: 84px; }
.price-checkout:focus:not(:focus-visible) { outline: none; }
@media (forced-colors: active) {
  .price-glow { background: none; color: CanvasText; }
  .price-card, .price-card-best { border: 1px solid CanvasText; }
}
/* import page: the Premium exports of a free account (entitlement.js) */
.btn.is-locked { opacity: .55; }
.import-exports-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.price-after > .legal { max-width: 720px; }
.price-after > .legal h2:first-child { margin-top: 0; }
.price-save { align-self: flex-start; margin: 10px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(72, 215, 232, .14); color: #BDF2F9; font-size: .88rem; font-weight: 700; }

/* ------------------------------------------------------------------ transcription studio (30/11/2026, the owner's
   picture "Transcription — <song>", adapted to our colours). Before the analysis: the file card. After it: the title
   bar, the video (or an audio card) and the animated kit on the left, the sheet music / grid / tools / analysis tabs,
   the handle and the note lanes on the right, the practice bar, one transport. Desktop (>= 1024 px): the whole studio
   fits the screen, no page scroll. Phone (< 720 px): the video small and sticky, the kit first, a switch to the sheet
   music, the practice bar under it, the transport fixed at the bottom. The kit, the lanes and the practice bar are the
   play-along's own (playalong.js, split layout), always navy.
   30/11/2026 (owner's choices): titles at 20 px, notes of 33 px in the lanes (36 px rows), the practice tools always in
   view in one bar above the transport (option B), a handle between the sheet music and the lanes. */
.import-wrap { max-width: 1100px; }
.studio-on .import-wrap { max-width: 1680px; }
.studio-on .import-head-learner, .studio-on #import-pick, .studio-on #import-entitlement, .studio-on .import-after { display: none; }
.studio { display: flex; flex-direction: column; gap: 10px; }
.studio[hidden] { display: none !important; } /* before the analysis and after "New transcription" */
.studio [hidden] { display: none !important; } /* flex, grid and .btn set a display that would defeat [hidden] */
.studio-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.studio-back { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); }
.studio-back:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.studio-title { margin: 0; min-width: 0; display: flex; align-items: baseline; gap: 8px; font-size: 1.25rem; letter-spacing: -.02em; }
.studio-title > span:first-child { font-weight: 800; }
.studio-title > span:last-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.studio-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.studio-chip-done { background: color-mix(in srgb, var(--success) 13%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--success) 45%, transparent); }
.studio-chip-done .icon { color: var(--success); }
.studio-chip-preview { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.studio-meta { margin: 0; display: inline-flex; flex-wrap: wrap; font-size: .95rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.studio-meta span:empty { display: none; }
.studio-meta span + span::before { content: "|"; margin: 0 10px; color: var(--muted); font-weight: 400; }
.studio-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.export-menu { position: relative; }
.export-caret { transition: transform var(--dur-s) var(--ease-standard); }
#import-export[aria-expanded="true"] .export-caret { transform: rotate(180deg); }
.export-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: max-content; min-width: 240px; max-width: min(340px, calc(100vw - 32px));
  display: grid; gap: 2px; padding: 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-elevated); box-shadow: var(--shadow-lg); }
.export-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.export-item:hover { background: var(--surface-2); }
.export-item:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.export-item.is-locked { color: var(--muted); }
.export-item.is-locked::after { content: ""; width: 14px; height: 14px; margin-left: auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.export-list .import-exports-note { margin: 4px 8px 4px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text); }
.studio-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.studio-summary { margin: 0; font-weight: 600; font-size: .92rem; }
.studio-summary:focus { outline: none; }
.studio-summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* the owner's tagline (30/11/2026), in place of "Automatic result: check it by ear.": a soft pill in the brand's blue
   and cyan, a headphones badge, the second sentence stressed. Beside the summary when both fit, on its own line
   otherwise (the studio's height on a computer is unchanged: the body takes what is left). Contrast (AA): the first
   sentence in --muted, the second in --primary-text, both over 4.5:1 on the pill in either theme. */
.studio-tagline { margin: 0; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 12px 3px 3px;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), color-mix(in srgb, var(--accent) 9%, var(--surface)));
  color: var(--muted); font-size: .84rem; line-height: 1.35; text-wrap: pretty; }
.studio-tagline-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary);
  color: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.studio-tagline-text { min-width: 0; }
.studio-tagline-punch { color: var(--primary-text); font-weight: 700; letter-spacing: -.005em; }
.studio-note { margin: 0; color: var(--text); }
.studio #import-offer-note { margin: 0; padding: 5px 12px; }

.studio-body { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "switch" "tools" "kit" "sheet" "lanes"; }
.studio-right { display: contents; } /* below 1024 px the sheet and the lanes are placed by the grid itself */
.studio-split { display: none; }
.studio-media { grid-area: media; min-width: 0; }
.studio-switch { grid-area: switch; display: none; }
.studio-kit { grid-area: kit; }
.studio-sheet { grid-area: sheet; }
.studio-lanes { grid-area: lanes; }
.studio-media .import-video video { max-height: 34vh; border-radius: 14px; cursor: pointer; }
.studio-audio { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; color: #F4F7FB;
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); box-shadow: inset 0 0 0 1px rgba(139, 152, 170, .18); }
.studio-audio p { margin: 0; display: grid; min-width: 0; }
.studio-audio strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-audio-pos { color: #A3AEBF; font-size: .9rem; font-variant-numeric: tabular-nums; }
.studio-audio-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(72, 215, 232, .14); color: #48D7E8; }
.studio-kit, .studio-sheet { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.studio-panel-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.studio-panel-title .icon { color: var(--primary-text); }
.studio-kit-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.studio-kit-stage { position: relative; flex: 1 1 auto; min-width: 0; min-height: 240px; border-radius: 12px; overflow: hidden; background: #0A0F1C; }
.studio-kit-stage > .pa-stage, .studio-lanes > .pa-stage { position: absolute; inset: 0; border-radius: inherit; }
.studio-kit-stage .pa-canvas, .studio-lanes .pa-canvas { width: 100%; height: 100%; }
.studio-anim-off { flex: 1 1 auto; display: grid; place-items: center; min-height: 140px; margin: 0; padding: 16px; text-align: center; color: var(--muted);
  border: 1px dashed var(--border); border-radius: 12px; }
.studio-legend { flex: 0 0 auto; display: grid; gap: 6px; font-size: .82rem; }
.studio-legend ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; }
.studio-legend-limbs li { display: flex; align-items: center; gap: 6px; }
.studio-legend-limbs b { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 4px; border-radius: 6px; background: var(--limb);
  color: #0B1020; font-size: .75rem; font-weight: 800; }
.studio-legend ul.studio-legend-parts { display: flex; flex-wrap: wrap; gap: 2px 14px; padding-top: 6px; border-top: 1px solid var(--border); }
.studio-legend-parts li { display: flex; gap: 6px; }
.studio-legend-parts li.is-suggested span:first-child { color: var(--muted); font-style: italic; }
.studio-legend-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.studio-kit-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .94rem; }
.studio-switch-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 8px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
.switch-track { position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--muted); transition: background-color var(--dur-s) var(--ease-standard); }
.switch-track span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: transform var(--dur-s) var(--ease-standard); }
.studio-switch-btn[aria-checked="true"] .switch-track { background: var(--primary); }
.studio-switch-btn[aria-checked="true"] .switch-track span { transform: translateX(16px); }
.studio-speed { display: inline-flex; align-items: center; gap: 4px; padding: 3px 3px 3px 10px; border-radius: 12px; border: 1px solid var(--border); font-weight: 650; }
.studio-speed output { min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.studio-icon-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.studio-icon-btn:hover, .studio-meter:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.studio-icon-btn[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.studio-tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.studio-tabs { display: flex; gap: 4px; max-width: 100%; padding: 3px; border-radius: 12px; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; }
.studio-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font: inherit; font-size: .92rem; font-weight: 650; white-space: nowrap; cursor: pointer; }
.studio-tabs [role="tab"]:hover { color: var(--text); }
.studio-tabs [role="tab"][aria-selected="true"] { background: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 3px rgba(16, 24, 39, .18); }
.studio-tabs [role="tab"]:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.studio-tools.notation-tools { margin: 0 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.studio-tools select { width: auto; min-height: 40px; padding: 6px 10px; }
.studio-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.studio-panel-scroll { overflow: auto; }
.studio-panel .score-editor { margin-top: 0; }
.studio-notation { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.studio .notation-box { flex: 1 1 auto; min-height: 220px; max-height: none; scrollbar-gutter: stable; }
.studio-line { margin: 0; }
.studio-pick-note { color: var(--primary-text); font-weight: 650; }
.studio-lanes { position: relative; height: calc(var(--lanes, 3) * 36px + 32px); min-height: 110px; max-height: 380px; border-radius: 14px; overflow: hidden;
  background: #0A0F1C; border: 1px solid var(--border); }
/* the practice bar (option B of 30/11/2026): the player's own tools in one row, always in view, above the transport:
   the parts of the song (click one: it loops), the mix (drums, band, melody, click, count-in; on the transcription page
   the click and the count-in), the loop, the speed-up, left-handed, the limbs (their letters; the name on hover; the
   kit's legend says the colours) and step by step. The speed-up's settings and the player's messages make a second
   row. Navy in both themes, like the kit and the lanes. */
.studio-practice { grid-area: tools; min-width: 0; }
.studio .studio-practice.pa-player { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px;
  --pa-line: rgba(139, 152, 170, .3); box-shadow: inset 0 0 0 1px rgba(139, 152, 170, .18); }
.studio-practice.pa-player > * { margin: 0; }
/* the parts take the free width, each one written in full ("Bars 9-16"); when they do not fit, the strip scrolls
   sideways (arrows, the wheel, a finger) and the playing part comes into view; the limbs stay at the right end */
.studio-practice > .pa-timeline-wrap { flex: 1 1 0; min-width: 180px; display: flex; align-items: center; gap: 4px; padding-right: 8px;
  border-right: 1px solid var(--pa-line); }
.pa-timeline-wrap > .pa-timeline { position: relative; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pa-timeline-wrap > .pa-timeline::-webkit-scrollbar { display: none; }
.studio-practice .pa-sec { min-height: 36px; min-width: max-content; padding: 4px 12px; }
.pa-tl-arrow { display: none; }
.pa-timeline-wrap.is-overflow > .pa-tl-arrow { display: inline-grid; place-items: center; flex: none; min-width: 30px; padding: 0 6px; font-size: 1.2rem; line-height: 1; color: var(--pa-text); }
.pa-timeline-wrap > .pa-tl-arrow[disabled] { opacity: .35; cursor: default; }
.studio-practice > .pa-limbs { margin-left: auto; }
.studio-practice > .pa-chips { flex: 0 1 auto; gap: 6px; }
.studio-practice > .pa-limbs { padding-left: 8px; border-left: 1px solid var(--pa-line); }
.studio-practice .pa-chip { min-height: 36px; padding: 4px 10px; border-radius: 10px; white-space: nowrap; }
.studio-practice .pa-sep { display: block; width: 1px; align-self: stretch; margin: 3px 2px; background: var(--pa-line); }
/* the letters only: MG, MD, PG, PD (the name on hover, and for screen readers) */
.studio-practice .pa-limb { position: relative; gap: 0; padding: 4px 5px; }
.studio-practice .pa-limb-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.studio-practice .pa-limb .pa-dot { min-width: 28px; height: 24px; font-size: .8rem; }
.studio-practice > .pa-hint { display: none; } /* the parts' tooltip */
.studio-practice > .pa-status, .studio-practice > .pa-accel { flex: 1 0 100%; order: 9; }
.studio-practice > .pa-status:empty { display: none; }
.studio-practice > .pa-accel:not([hidden]) { padding: 8px 10px; }
/* the handle between the sheet music and the lanes (owner's choice of 30/11/2026, drawing 3; studio.js studioSplit):
   a line across the column, the arrows to drag in the middle, "Bigger animation" / "Bigger sheet music" on each side */
.studio-split-btn, .studio-split-grip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-elevated); color: var(--muted); font: inherit; font-size: .82rem;
  font-weight: 650; white-space: nowrap; box-shadow: 0 2px 8px rgba(16, 24, 39, .14); }
.studio-split-btn { cursor: pointer; }
.studio-split-btn:hover { color: var(--text); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.studio-split-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.studio-split-btn[aria-disabled="true"]:hover { color: var(--muted); border-color: var(--border); }
.studio-split-grip { padding: 0 10px; color: var(--primary-text); cursor: row-resize; }
.studio-split-btn:focus-visible, .studio-split-grip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* transport: play, bar back / forward, time, position, tempo, meter, loop */
.studio-transport { display: grid; align-items: center; gap: 8px 10px; padding: 8px 12px; border-radius: 16px; background: var(--surface-elevated);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  grid-template-columns: auto auto auto auto minmax(80px, 1fr) auto auto auto; grid-template-areas: "play prev next time seek bpm meter loop"; }
.studio-play { grid-area: play; width: 48px; height: 48px; box-shadow: 0 0 0 4px rgba(40, 107, 255, .16), 0 6px 18px rgba(40, 107, 255, .35); }
.studio-play svg { width: 22px; height: 22px; }
.studio-transport.is-playing .studio-play { box-shadow: 0 0 0 4px rgba(72, 215, 232, .24), 0 6px 18px rgba(40, 107, 255, .35); }
.studio-prev { grid-area: prev; }
.studio-next { grid-area: next; }
.studio-time { grid-area: time; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.studio-seek { grid-area: seek; width: 100%; min-height: 32px; margin: 0; accent-color: var(--primary); }
.studio-bpm { grid-area: bpm; display: inline-flex; align-items: center; gap: 6px; }
.studio-bpm output { min-width: 74px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.studio-meter { grid-area: meter; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 700; cursor: pointer; }
.studio-loop { grid-area: loop; }
.studio:fullscreen { height: 100vh !important; padding: 12px 16px; overflow: auto; background: var(--bg); }
@media (min-width: 1024px) {
  .studio-on .app-main { padding-top: 12px; }
  .studio-on :is(#import-result, #play-studio) { height: calc(100dvh - 63px - 24px); min-height: 560px; }
  .studio-body { flex: 1 1 auto; min-height: 0; grid-template-columns: clamp(300px, 30%, 540px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "media right" "kit right" "tools tools"; }
  /* the right column: the sheet music takes what the lanes leave; the lanes' height is the page's default
     (--lanes-default) or the one the learner chose with the handle (--lanes-size, set by studio.js) */
  .studio-right { grid-area: right; min-width: 0; min-height: 0; display: flex; flex-direction: column;
    --lanes-default: min(calc(var(--lanes, 3) * 36px + 32px), 380px); }
  .studio-right > .studio-sheet { flex: 1 1 0; }
  .studio-right > .studio-lanes { flex: 0 0 var(--lanes-size, var(--lanes-default)); height: auto; min-height: 0; max-height: none; }
  .studio-split { flex: 0 0 32px; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: row-resize; touch-action: none; -webkit-user-select: none; user-select: none; }
  .studio-split::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
    background: var(--border); transition: background-color var(--dur-s) var(--ease-standard), box-shadow var(--dur-s) var(--ease-standard); }
  .studio-split:hover::before, .studio-split.is-dragging::before, .studio-split:focus-within::before { background: #48D7E8; box-shadow: 0 0 0 2px rgba(72, 215, 232, .25); }
  .studio-split:hover .studio-split-grip, .studio-split.is-dragging .studio-split-grip { border-color: #48D7E8; }
  /* folded: the lanes take the whole column, or the sheet music does; the "Animation" switch off: no handle */
  .studio-right[data-split="lanes"] > .studio-sheet, .studio-right[data-split="sheet"] > .studio-lanes { display: none; }
  .studio-right[data-split="lanes"] > .studio-lanes { flex: 1 1 0; }
  .studio-right:has(> .studio-lanes[hidden]) > .studio-split { display: none; }
  .studio-kit-stage { min-height: 0; }
  .studio .notation-box { min-height: 0; }
  .studio-media .import-video video { max-height: 24vh; }
}
@media (min-width: 720px) and (max-width: 1023.98px) {
  .studio-kit-stage { height: 360px; flex: 1 1 auto; }
  .studio .notation-box { height: 56vh; flex: none; }
}
@media (max-width: 1023.98px) {
  /* the transport stays at hand at the bottom of the screen (above the tab bar) */
  .studio-transport { position: fixed; z-index: 45; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-lg); }
  .has-tabbar .studio-transport { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 6px); }
  .studio-on .app-main { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 150px); }
}
@media (min-width: 860px) and (max-width: 1023.98px) { .has-tabbar .studio-transport { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 719.98px) {
  .studio { gap: 8px; }
  .studio-bar { gap: 4px 8px; }
  .studio-title { flex: 1 1 calc(100% - 52px); font-size: 1.02rem; }
  .studio-chip { padding: 2px 9px; font-size: .78rem; }
  .studio-meta { font-size: .88rem; }
  .studio-meta span + span::before { margin: 0 6px; }
  .studio-actions { margin-left: 0; width: 100%; flex-wrap: nowrap; }
  .studio-actions > .btn { flex: 1 1 auto; white-space: nowrap; padding: 4px 10px; font-size: .86rem; }
  .studio-actions > .export-menu { flex: none; }
  .studio-actions .export-menu > .btn { padding: 4px 12px; font-size: .86rem; }
  /* phone fix (30/11/2026): the kit AND its lanes above the fixed transport without scrolling (390 x 844, 360 x 740).
     The summary lines go under the lanes, the kit's title (the switch already says "Drums") and the parts list (the
     lanes name them) are not shown, and the kit's height is what the screen leaves:
     100svh - (title bar, file card, switch, legend, Animation / speed row, lanes, transport, tab bar) */
  .studio-body { order: 1; gap: 6px; }
  .studio-on .app-main { padding-top: 8px; }
  .studio-on :is(#import-result, #play-studio) { margin-top: 0; }
  /* only the shown side has a row (an empty row would still take two gaps) */
  .studio-body[data-view="kit"] { grid-template-areas: "media" "switch" "tools" "kit" "lanes"; }
  .studio-body[data-view="sheet"] { grid-template-areas: "media" "switch" "tools" "sheet"; }
  /* the practice bar: one row that slides sideways (a grid: the speed-up's settings and the messages, when shown, make a
     second row that stays in view) */
  .studio .studio-practice.pa-player { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; gap: 6px;
    padding: 4px 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .studio-practice.pa-player > * { grid-row: 1; }
  .studio-practice > .pa-timeline-wrap { width: 270px; min-width: 0; }
  .pa-timeline-wrap.is-overflow > .pa-tl-arrow { min-width: 44px; }
  .studio-practice > .pa-chips, .studio-practice > .pa-limbs { flex-wrap: nowrap; }
  .studio-practice.pa-player > .pa-status, .studio-practice.pa-player > .pa-accel { grid-row: 2; grid-column: 1 / span 4; position: sticky; left: 0;
    width: calc(100vw - 48px); white-space: normal; }
  .studio-practice .pa-chip, .studio-practice .pa-sec { min-height: 44px; } /* a finger's target */
  /* the bar is the limbs' legend on a phone (it slides): the full names in it, no legend under the kit */
  .studio-practice .pa-limb { gap: 6px; padding: 4px 10px 4px 6px; }
  .studio-practice .pa-limb-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .studio-legend { display: none; }
  .studio-sub, .studio-note { order: 2; }
  .studio-kit .studio-panel-title, .studio-legend ul.studio-legend-parts { display: none; }
  .studio-legend { font-size: .78rem; }
  .studio-legend ul { gap: 2px 10px; }
  .studio-lanes { height: calc(var(--lanes, 3) * 24px + 24px); min-height: 72px; }
  /* the transcription page: the file's name (the title) and the two buttons on one line, "New transcription" as
     an icon (its name stays for screen readers), the status and BPM | meter | length on the next; the audio card
     only repeats the name and the time (the title and the transport say them) */
  .import-page .studio-title > span:not(:last-child) { display: none; }
  .import-page .studio-title { flex: 1 1 0; }
  .import-page .studio-actions { order: 1; width: auto; margin-left: auto; gap: 6px; }
  .import-page .studio-bar > .studio-chip, .import-page .studio-bar > .studio-meta { order: 2; }
  .import-page #import-new { flex: none; width: 44px; padding: 0; justify-content: center; }
  .import-page #import-new .studio-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .import-page .studio-audio { display: none; }
  .studio-summary { font-size: .85rem; }
  /* on a phone the line wraps: the badge by the first line, the stressed sentence on its own lines, like a tagline */
  .studio-tagline { align-items: flex-start; padding: 6px 12px 6px 6px; }
  .studio-tagline-punch { display: block; margin-top: 2px; }
  .studio #import-offer-note { padding: 8px 10px; font-size: .85rem; }
  .studio-audio { padding: 8px 10px; border-radius: 12px; }
  .studio-audio-icon { width: 34px; height: 34px; border-radius: 10px; }
  .studio-switch { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
  .studio-switch button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 9px;
    background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
  .studio-switch button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
  .studio-switch button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
  .studio-body.has-video .studio-media { position: sticky; top: 0; z-index: 20; padding: 4px 0 6px; background: var(--bg); }
  .studio-media .import-video video { max-height: 16vh; }
  .studio-body[data-view="kit"] .studio-sheet { display: none; }
  .studio-body[data-view="sheet"] .studio-kit, .studio-body[data-view="sheet"] .studio-lanes { display: none; }
  .studio-kit { padding: 6px; gap: 6px; }
  .studio-kit-main { gap: 6px; }
  .studio-kit-stage { flex: none; min-height: 0; height: clamp(110px, calc(100svh - 566px - var(--lanes, 3) * 24px), 320px); }
  .studio-body.has-video .studio-kit-stage { height: clamp(100px, calc(100svh - 584px - 16vh - var(--lanes, 3) * 24px), 320px); }
  .studio-kit-foot { gap: 6px; flex-wrap: nowrap; font-size: .86rem; }
  .studio-kit-foot .studio-switch-btn { padding: 4px 10px 4px 6px; gap: 6px; }
  .studio-speed { padding: 1px 1px 1px 8px; gap: 2px; }
  .studio-speed output { min-width: 2.9em; }
  .studio-sheet { padding: 8px; }
  .studio-tools.notation-tools { margin-left: 0; }
  .studio .notation-box { height: 58vh; flex: none; }
  .studio-transport { left: 6px; right: 6px; grid-template-columns: 48px 44px 44px minmax(0, 1fr) auto 44px;
    grid-template-areas: "time time time seek seek seek" "play prev next . bpm loop"; gap: 2px 4px; padding: 4px 8px 8px; }
  .studio-time { font-size: .85rem; }
  .studio-seek { min-height: 44px; }
  .studio-tabs [role="tab"] { min-height: 44px; }
  .studio-transport .studio-meter { display: none; }
  .studio-icon-btn { min-width: 44px; height: 44px; }
  .studio-bpm { gap: 4px; }
  .studio-bpm output { min-width: 56px; font-size: .82rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-track span, .export-caret { transition: none; } }
@media (max-width: 380px) {
  /* narrow phones (360 px): the transport's second row and the Animation / speed row still fit on one line */
  .studio-transport { grid-template-columns: 44px 44px 44px minmax(0, 1fr) auto 44px; gap: 2px 3px; padding: 4px 6px 8px; }
  .studio-transport .studio-play { width: 44px; height: 44px; }
  .studio-bpm { gap: 2px; }
  .studio-bpm output { min-width: 50px; font-size: .78rem; }
  .studio-kit-foot { font-size: .8rem; }
  .studio-kit-foot .studio-switch-btn { padding: 4px 6px 4px 4px; gap: 4px; }
  .studio-kit-foot .switch-track { width: 34px; height: 20px; }
  .studio-kit-foot .switch-track span { width: 14px; height: 14px; }
  .studio-kit-foot .studio-switch-btn[aria-checked="true"] .switch-track span { transform: translateX(14px); }
  .studio-speed { padding-left: 6px; }
  .studio-speed output { min-width: 2.5em; white-space: nowrap; }
}
@media (max-width: 719.98px) and (max-height: 760px) {
  /* short phones (360 x 740): the limb colours are also on the kit's tags and the lanes' dots */
  .studio-legend { display: none; }
  .studio-kit-stage { height: clamp(120px, calc(100svh - 548px - var(--lanes, 3) * 24px), 320px); }
  .studio-kit { padding: 4px; }
  .studio-body.has-video .studio-kit-stage { height: clamp(100px, calc(100svh - 566px - 16vh - var(--lanes, 3) * 24px), 320px); }
}

/* songs, grooves and rudiments in the studio layout (owner's decision of 29/11/2026; play-studio.js and
   partials/play_studio.html): the transcription studio's rules, with the song card in the video's place. Desktop: the
   whole studio on one screen ("Score my taps" and the notes come below it). Phone: the kit first, then the lanes, the
   sheet on demand, the song card under them. */
.studio-wrap { max-width: 1680px; }
.studio-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.studio-card .meta { font-size: .86rem; }
.studio-card-text { margin: 0; font-size: .92rem; }
.studio-chip-kind { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); }
.studio-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.studio-meter-static { display: inline-grid; place-items: center; cursor: default; }
.studio-meter-static:hover { border-color: var(--border); }
.studio-actions .pa-video-btn { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.studio-actions .pa-video-btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.studio-actions .pa-video-btn span { color: #E5484D; }
.play-studio #pa-player.pa-player { box-shadow: none; }
.studio-notation-box svg { max-width: none; } /* drawn at its size: a dense bar on a phone scrolls sideways */
@media (min-width: 1024px) {
  /* two lines (the whole text in its tooltip): the kit keeps its room above the practice bar */
  .studio-card-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* a short groove leaves the sheet half empty: the lanes take at least a third of the column */
  .play-studio .studio-right { --lanes-default: clamp(calc(var(--lanes, 3) * 36px + 32px), 36%, 380px); }
}
/* a compact studio on a computer (owner's request of 30/11/2026: "more room for the animation and the sheet music"):
   a slimmer site header, title bar, summary line, tabs, handle, practice bar and transport; every pixel saved goes to
   the sheet music, the lanes and the kit. The owner's sizes (same night): header 35 px, practice bar 30 px, transport
   40 px. Mouse-sized controls, never under 24 px (WCAG 2.2, 2.5.8), text never under 12 px; a phone keeps 44 px. */
@media (min-width: 1024px) {
  .studio-on .site-header .container { min-height: 34px; }
  .studio-on .site-header .brand { min-height: 24px; }
  .studio-on .site-header .brand .logo-mark { width: 22px; height: 22px; }
  .studio-on .site-header :is(.brand-name, .brand-sub) { font-size: .92rem; }
  .studio-on .site-header .nav a { padding: 3px 9px; font-size: .84rem; }
  .studio-on .site-header .nav a[aria-current="page"]::after { bottom: -5px; }
  .studio-on .site-header .header-cta .btn { min-height: 26px; padding: 1px 12px; font-size: .82rem; }
  .studio-on .app-main { padding-top: 8px; }
  .studio-on :is(#import-result, #play-studio) { height: calc(100dvh - 35px - 16px); min-height: 520px; }
  .studio-on :is(#import-result, #play-studio) { scroll-margin-top: 43px; } /* under the 35 px header: the transport stays in view */
  .studio { gap: 8px; }
  .studio-bar { gap: 6px 12px; }
  .studio-back { width: 36px; height: 36px; border-radius: 10px; }
  .studio-actions .btn { min-height: 36px; padding: 4px 12px; font-size: .9rem; }
  .studio-actions .studio-icon-btn { min-width: 36px; height: 36px; }
  .studio-sub { gap: 0 10px; }
  .studio-summary { font-size: .84rem; }
  .studio-tagline { padding: 2px 12px 2px 2px; font-size: .8rem; line-height: 1.3; }
  .studio-tagline-icon { width: 20px; height: 20px; }
  .studio-body { gap: 10px; }
  .studio-kit, .studio-sheet { padding: 8px; gap: 6px; }
  .studio-panel-title { font-size: .92rem; }
  .studio-tabs { padding: 2px; }
  .studio-tabs [role="tab"] { min-height: 32px; padding: 0 10px; font-size: .86rem; }
  .studio-tools select { min-height: 32px; padding: 3px 8px; }
  .studio-tools .btn { min-height: 32px; padding: 3px 10px; }
  .studio-tools .studio-icon-btn { min-width: 32px; height: 32px; }
  .studio-split { flex-basis: 26px; }
  .studio-split-btn, .studio-split-grip { height: 24px; font-size: .78rem; }
  .studio .studio-practice.pa-player { padding: 3px 6px; gap: 4px; }
  .studio-practice .pa-chip, .studio-practice .pa-sec { min-height: 24px; }
  .studio-practice .pa-chip { padding: 1px 8px; gap: 6px; border-radius: 8px; font-size: .78rem; }
  .studio-practice .pa-sec { padding: 1px 10px; border-radius: 8px; }
  .studio-practice .pa-sep { margin: 2px 2px; }
  .studio-practice .pa-limb { padding: 1px 3px; }
  .studio-practice .pa-limb .pa-dot { min-width: 24px; height: 18px; font-size: .75rem; }
  .pa-timeline-wrap.is-overflow > .pa-tl-arrow { min-width: 24px; font-size: 1rem; }
  .studio-transport { padding: 3px 8px; gap: 4px 8px; border-radius: 12px; }
  .studio-transport .studio-play { width: 32px; height: 32px; box-shadow: 0 0 0 3px rgba(40, 107, 255, .16), 0 4px 12px rgba(40, 107, 255, .3); }
  .studio-transport .studio-play svg { width: 16px; height: 16px; }
  .studio-transport .studio-icon-btn { min-width: 28px; height: 28px; border-radius: 8px; font-size: 1rem; }
  .studio-transport .studio-meter { min-height: 28px; padding: 0 10px; border-radius: 8px; }
  .studio-transport :is(.studio-time, .studio-bpm output) { font-size: .9rem; }
  .studio-transport .studio-bpm output { min-width: 64px; }
  .studio-seek { min-height: 24px; }
  .studio-kit-foot { font-size: .9rem; }
  .studio-kit-foot .studio-switch-btn { min-height: 36px; padding: 3px 10px 3px 6px; }
  .studio-speed .studio-icon-btn { min-width: 32px; height: 32px; }
  .studio-legend { gap: 4px; font-size: .8rem; }
}
/* short laptop screens (1280 x 720, 1366 x 768: found on 30/11/2026, the kit was squeezed to 33 px): the song card on
   one line, no kit title nor parts list (the lanes name the parts), rows of 30 px in the lanes */
@media (min-width: 1024px) and (max-height: 800px) {
  .studio-card-text { -webkit-line-clamp: 1; }
  .studio-kit .studio-panel-title, .studio-legend ul.studio-legend-parts { display: none; }
  .studio-right { --lanes-default: min(calc(var(--lanes, 3) * 30px + 28px), 300px); }
  .play-studio .studio-right { --lanes-default: clamp(calc(var(--lanes, 3) * 30px + 28px), 36%, 300px); }
}
@media (max-width: 719.98px) {
  .play-studio .studio-body[data-view="kit"] { grid-template-areas: "switch" "tools" "kit" "lanes" "media"; }
  .play-studio .studio-body[data-view="sheet"] { grid-template-areas: "switch" "tools" "sheet" "media"; }
  /* sized for the studio scrolled to the top of the screen (play-studio.js brings it there when playing starts) */
  .play-studio .studio-kit-stage { height: clamp(120px, calc(100svh - 430px - var(--lanes, 3) * 24px), 320px); }
}
@media (max-width: 719.98px) and (max-height: 760px) {
  .play-studio .studio-kit-stage { height: clamp(110px, calc(100svh - 410px - var(--lanes, 3) * 24px), 320px); }
}
/* ------------------------------------------------------------------ lessons in the studio layout (owner's decision of
   29/11/2026; lesson.html + exercise.js). Each scored exercise, from 900 px: on the left the exercise (instructions,
   tempo and goal, Start, the pads, the result); on the right the sheet (grid / staff) on top and the animated kit with
   its lanes below (it stays in view while the result grows); the play-along's own bar (play, tempo, mix, loop,
   left-handed, step by step) under both. The lesson's header, video and steps keep their reading width (860 px).
   Phone (< 720 px): the kit first with a "Drums / Sheet music" switch, then the tempo, Start, the pads and the result
   (in the flow, right under the moving part: the thumb reaches them while the drum plays; see docs/DECISIONS.md), the
   options and the play-along's bar last. */
.lesson-page { max-width: 1320px; }
.lesson-page > :not(.ex-studio, .lesson-startbar) { max-width: 860px; margin-left: auto; margin-right: auto; }
.lesson-page > .back-link { display: flex; width: fit-content; margin-left: max(0px, calc((100% - 860px) / 2)); }
.ex-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ex-side .notation-switch { margin-bottom: 8px; }
.ex-sheet { min-width: 0; }
.ex-view-switch { display: none; }
.ex-side > .pa-inline { margin-top: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; padding: 8px;
  border-radius: 16px; background: radial-gradient(110% 120% at 0% 0%, #172645 0%, #101827 55%, #0A0F1C 100%);
  box-shadow: inset 0 0 0 1px rgba(139, 152, 170, .16); color: #E6ECF5; }
.ex-side > .pa-inline > p { grid-column: 1 / -1; margin: 8px; color: #A3AEBF; }
.ex-pa-kit, .ex-pa-lanes { position: relative; min-width: 0; height: 216px; border-radius: 12px; overflow: hidden; background: #0A0F1C; }
.ex-pa-kit > .pa-stage, .ex-pa-lanes > .pa-stage { position: absolute; inset: 0; border-radius: inherit; }
.ex-pa-kit .pa-canvas, .ex-pa-lanes .pa-canvas { width: 100%; height: 100%; }
.ex-studio > .pa-section { margin-top: 16px; }
.ex-pa-bar { --pa-bg: #0C1322; --pa-line: rgba(139, 152, 170, .22); --pa-text: #E6ECF5; --pa-muted: #A3AEBF;
  margin-top: 8px; display: grid; gap: 10px 20px; padding: 12px; border-radius: 18px; color: var(--pa-text);
  background: radial-gradient(110% 120% at 0% 0%, #172645 0%, #101827 55%, #0A0F1C 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(139, 152, 170, .16); }
.ex-pa-bar[hidden] { display: none; }
.ex-pa-bar :focus-visible { outline: 3px solid #48D7E8; outline-offset: 2px; }
.ex-pa-controls:empty { display: none; }
.ex-pa-tools.pa-player { margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.ex-pa-bar > * { min-width: 0; }
@media (min-width: 900px) {
  .ex-studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "main side" "bar bar";
    gap: 0 28px; align-items: start; }
  .ex-studio > .ex-main { grid-area: main; min-width: 0; }
  .ex-studio:has(.exercise-mount > p.muted:only-child) { min-height: 860px; } /* room kept while it loads (CLS) */
  .ex-studio > .ex-side { grid-area: side; position: sticky; top: 76px; }
  /* the sticky right column may slide down as far as the end of the whole block: the play-along's bar passes over it
     (opaque, above), so the kit never covers the bar's buttons (seen at 1024 and 1440 px, 30/11/2026) */
  .ex-studio > .pa-section { grid-area: bar; position: relative; z-index: 1; background: var(--surface); margin-top: 8px; padding-top: 8px; }
  .ex-pa-bar { grid-template-columns: minmax(300px, auto) minmax(0, 1fr); align-items: start; }
  .ex-studio .pads { margin-top: 10px; }
  /* four pads in the exercise column: CHARLESTON (6.8 em) must fit its pad. The column is 384 px wide at 1024 and
     491 px at 1280, so four pads stand in one row only from 1280 px (font 13.8 px), in two rows below */
  .ex-studio .pads[data-count="4"] .pad { padding: 8px 6px; letter-spacing: 0; font-size: .86rem; }
}
@media (min-width: 900px) and (max-width: 1279.98px) {
  .ex-studio .pads[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-studio .pads[data-count="4"] .pad { min-height: 84px; font-size: 1rem; }
}
@media (min-width: 720px) and (max-width: 899.98px) {
  /* tablet: the sheet and the kit above the exercise, both shown */
  .ex-studio { display: flex; flex-direction: column; }
  .ex-studio > .ex-side { order: 1; margin-top: 12px; }
  .ex-studio > .ex-main { display: contents; }
  .ex-studio .exercise-mount { order: 2; }
  .ex-studio > .pa-section { order: 3; }
}
@media (max-width: 719.98px) {
  .ex-studio { display: flex; flex-direction: column; }
  .ex-studio > .ex-main, .ex-studio .exercise-mount, .ex-studio .fill-draw-body { display: contents; }
  .ex-studio > .ex-side { order: 1; margin-top: 12px; gap: 8px; }
  .ex-studio .ex-tempo, .ex-studio .ex-actions, .ex-studio .ex-status, .ex-studio .pads, .ex-studio .ex-hint, .ex-studio .ex-result { order: 2; }
  .ex-studio .ex-opt { order: 3; }
  .ex-studio > .pa-section { order: 4; }
  /* launch checklist 12 (layout shift, 01/12/2026): a scored exercise grows from ~250 px to ~1,650 px when
     exercise.js draws it; its room is kept while it loads, so the lesson below does not jump (CLS 0.128 -> see the
     report). Released as soon as the placeholder is replaced (or replaced by an error message). */
  .ex-studio:has(.exercise-mount > p.muted:only-child) { min-height: 1550px; }
  .ex-studio .ex-hint { margin-top: 6px; }
  .ex-studio[data-view="kit"] .ex-sheet { display: none; }
  .ex-studio[data-view="sheet"] > .ex-side > .pa-inline { display: none; }
  .ex-view-switch:not([hidden]) { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
  .ex-view-switch button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0;
    border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
  .ex-view-switch button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
  .ex-view-switch button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
  .ex-side > .pa-inline { grid-template-columns: minmax(0, 1fr); padding: 6px; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
  .ex-pa-kit { height: clamp(120px, 18svh, 200px); }
  .ex-pa-lanes { height: calc(var(--lanes, 2) * 24px + 26px); }
  /* the drum's buttons and the pads in two short rows under the kit: Start and every pad within the thumb's reach */
  .ex-studio .ex-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ex-studio .ex-actions > [data-start] { grid-column: 1 / -1; order: -1; }
  .ex-studio .ex-actions > .btn { width: 100%; padding-left: 8px; padding-right: 8px; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ex-studio .ex-actions > [hidden] { display: none; }
  .ex-studio .pads:not([data-count="4"]) { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  /* a label never breaks inside a word ("CHARLESTO/N", 30/11/2026): CHARLESTON is 6.72 em wide; a pad is at least
     96 px (minmax below), 86 px inside with 4 px side padding, so the 12 px floor (80.6 px) always fits */
  .ex-studio .pad { min-height: 92px; padding: 8px 4px; font-size: clamp(.75rem, 2.95vw, .92rem); letter-spacing: 0; overflow-wrap: normal; }
  .ex-pa-bar { grid-template-columns: minmax(0, 1fr); padding: 8px; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
  .ex-studio .pads[data-count="4"] .pad { min-height: 76px; }
}
@media (max-width: 719.98px) and (max-height: 760px) {
  /* short phones (360 x 740): the kit beside its lanes, so that Start and four pads stay above the tab bar */
  .ex-side > .pa-inline { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .ex-pa-lanes { height: calc(var(--lanes, 2) * 24px + 26px); min-height: 110px; }
  .ex-pa-kit { height: auto; }
}
/* print / PDF: the studio steps aside, only the sheet is printed */
@media print {
  body.printing-score #import-result { height: auto !important; min-height: 0 !important; overflow: visible !important; }
}

/* ------------------------------------------------------------------ landing, mockup B (owner's choice of 29/11/2026):
   the drop zone on the left, a live demo transcription on the right (sheet music on top, the animated kit and its lanes
   below), always navy (brand identity); the five lines of a staff run behind it. Phone: the drop zone first, then the
   demo with the kit first. */
.hero-b { padding: 48px 0 56px; background: #101827; }
.hero-b::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 78% 45%, rgba(40, 107, 255, .28), transparent 70%),
              radial-gradient(ellipse 30% 40% at 70% 72%, rgba(72, 215, 232, .10), transparent 70%); }
.hero-staff { position: absolute; left: 0; right: 0; top: 46%; height: 88px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 22px); }
.hero-b-grid { position: relative; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-b h1 { max-width: 16ch; margin: 0; color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -.035em; line-height: 1.06; }
.hero-b .hero-b-sub { margin: 14px 0 0; color: #D3DAE6; font-size: clamp(1rem, .96rem + .25vw, 1.15rem); max-width: 42ch; }
.hero-drop-card { margin-top: 22px; padding: 14px; border-radius: 20px; background: rgba(22, 31, 49, .92); border: 1px solid #29344D;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35); display: grid; gap: 12px; color: #F4F7FB; }
.hero-dropzone { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; padding: 16px; text-align: left; justify-items: start;
  border-radius: 14px; border: 2px dashed rgba(127, 166, 255, .55); background: rgba(40, 107, 255, .08); color: #F4F7FB; }
.hero-dropzone .dropzone-icon { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(40, 107, 255, .2); color: #BFD3FF; }
.hero-dropzone.is-over { border-color: #48D7E8; background: rgba(72, 215, 232, .12); }
.hero-b .hero-drop-title { margin: 0; max-width: none; color: #F4F7FB; font-weight: 750; font-size: 1.08rem; }
.hero-b .hero-drop-formats { margin: 0; max-width: none; color: #A3AEBF; font-size: .88rem; }
.hero-dropzone .btn { grid-column: 1 / -1; width: 100%; margin-top: 10px; }
.hero-rights { color: #DCE3EE; font-size: .92rem; }
.hero-rights input { accent-color: var(--electric); }
.hero-b .hero-drop-msg { margin: 0; max-width: none; padding: 8px 12px; border-radius: 10px; background: rgba(72, 215, 232, .12); color: #E6ECF5; font-weight: 600; font-size: .92rem; }
.hero-b .hero-drop-msg[hidden] { display: none; }
.hero-b .hero-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #A3AEBF; font-size: .85rem; max-width: none; }
.hero-b .hero-privacy .icon { margin-top: 2px; }
.hero-b .hero-soon { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed #3A4766;
  color: #C5CEDC; font-size: .92rem; font-weight: 600; max-width: none; }
.hero-b .hero-try { margin: 0; font-size: .98rem; max-width: none; }
.hero-b .hero-try a { color: #A9C1FF; font-weight: 700; text-underline-offset: 3px; }
.hero-b .hero-try a:hover { color: #fff; }
.hero-b .hero-demo { min-width: 0; }
.hero-demo-frame { position: relative; display: grid; gap: 10px; padding: 12px; border-radius: 22px; color: #F4F7FB; background: #131D30; border: 1px solid #26324B;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5); grid-template-areas: "bar" "sheet" "play" "limbs"; }
.demo-bar { grid-area: bar; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 4px; }
.demo-name { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 700; }
.demo-name i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(61, 214, 140, .16); color: #3DD68C; }
.demo-chip { padding: 4px 10px; border-radius: 999px; background: #1D2840; color: #DCE3EE; font-size: .82rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.demo-chip-now { background: rgba(72, 215, 232, .14); color: #48D7E8; }
.hero-demo-sheet { grid-area: sheet; }
.demo-notation { height: 214px; max-height: none; overflow: hidden; border-color: #26324B; }
.demo-notation:not(.is-ready) { background: #fff repeating-linear-gradient(180deg, transparent 0 46px, #D8E0EC 46px 47px, transparent 47px 54px) 0 18px / 100% 54px no-repeat; }
.demo-notation svg { cursor: default; }
.demo-play { grid-area: play; display: grid; gap: 10px; grid-template-columns: minmax(150px, 36%) minmax(0, 1fr); }
.demo-kit, .demo-lanes { position: relative; min-width: 0; height: 172px; border-radius: 14px; overflow: hidden; background: #0A0F1C; }
.demo-kit > .pa-stage, .demo-lanes > .pa-stage { position: absolute; inset: 0; cursor: default; }
.demo-kit .pa-canvas, .demo-lanes .pa-canvas { width: 100%; height: 100%; }
.demo-limbs { grid-area: limbs; list-style: none; margin: 0; padding: 0 2px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: #C5CEDC; }
.demo-limbs b { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 4px; margin-right: 4px; border-radius: 6px; background: var(--limb);
  color: #0B1020; font-size: .75rem; font-weight: 800; }
.hero-b .hero-demo-note { margin: 10px 4px 0; color: #A3AEBF; font-size: .85rem; max-width: none; }
@media (min-width: 960px) {
  .hero-b { padding: 56px 0 72px; }
  .hero-b > .container { max-width: 1240px; }
  .hero-b-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; }
}
@media (max-width: 719.98px) {
  .hero-b { padding: 28px 0 40px; }
  .hero-b h1 { font-size: clamp(1.75rem, 7.4vw, 2.2rem); }
  .hero-drop-card { margin-top: 18px; padding: 12px; }
  .hero-dropzone { grid-template-columns: 1fr; padding: 12px; }
  .hero-dropzone .dropzone-icon { display: none; }
  .hero-dropzone .btn { order: -1; min-height: 56px; margin: 0 0 6px; }
  /* phone: the kit first, like the transcription studio */
  .hero-demo-frame { padding: 10px; grid-template-areas: "bar" "play" "limbs" "sheet"; }
  .demo-play { grid-template-columns: minmax(0, 1fr); }
  .demo-kit { height: min(64vw, 260px); }
  .demo-lanes { height: 132px; }
  .demo-notation { height: 190px; }
}
/* the songs a visitor can play now */
.songs-band .section-head { max-width: 760px; }
.song-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.song-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform var(--dur-xs) var(--ease-standard), border-color var(--dur-s), box-shadow var(--dur-s); }
.song-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: var(--shadow-lg); }
.song-card:active { transform: scale(.99); }
.song-art { height: 92px; }
.song-art .gv-grid-svg { width: calc(100% - 28px); }
.song-bpm { position: absolute; right: 10px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(16, 24, 39, .7); color: #E6ECF5;
  font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.song-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; line-height: 1.35; }
.song-title { font-size: 1.02rem; }
.song-meta { color: var(--muted); font-size: .88rem; }
.song-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.songs-cta { margin-top: 18px; }
@media (max-width: 719.98px) {
  /* phone: one row that scrolls sideways (13 songs, not 13 screens) */
  .song-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .song-cards > li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .song-card { transition: none; } .song-card:active { transform: none; } }
/* the lessons band: three lesson video posters */
.lesson-thumbs { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lesson-thumb { display: grid; gap: 6px; color: #F4F7FB; text-decoration: none; }
.lesson-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid rgba(139, 152, 170, .28); }
.lesson-thumb-meta { color: #A3AEBF; font-size: .82rem; font-weight: 650; }
.lesson-thumb:hover strong { text-decoration: underline; text-underline-offset: 3px; }
/* the last call to action on the drummer video */
.final-band { min-height: min(56svh, 520px); }
.final-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); letter-spacing: -.03em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
#see .lessons-block { margin-top: 0; padding-top: 0; border-top: 0; }
#see .lessons-block h2 { margin-top: 12px; }

/* P1-3 (30/11/2026): the optional reading course. Each step's example is drawn on white staff paper (both themes, like
   the exercises' sheet music); the question that offers the course; the quiz (real buttons, 44 px on a phone, the
   verdict in words and a sign as well as a colour). */
.step-example { margin: 12px 0 0; }
.step-example-paper { padding: 2px 6px; min-height: 64px; }
.step-example figcaption { margin-top: 6px; }
.nt-example-svg svg { display: block; max-width: none; }
.reading-ask { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.reading-ask-title { margin: 0 0 10px; }
.reading-ask-actions { gap: 10px; }
.reading-ask-actions .btn { min-height: 44px; }
.reading-offer h2 { font-size: 1.2rem; }
.reading-offer:focus { outline: none; }
.reading-offer:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.reading-folded { margin-top: 8px; }
.reading-folded > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--primary-text); }
.quiz-count { margin: 0; }
.quiz-prompt { font-size: 1.12rem; line-height: 1.35; margin: 4px 0 12px; }
.quiz-prompt:focus { outline: none; }
.quiz-example { padding: 2px 6px; margin: 0 0 12px; min-height: 64px; }
.quiz-listen { min-height: 44px; }
.quiz-options { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 720px) { .quiz-options:not(.quiz-options-drawn) { grid-template-columns: 1fr 1fr; } }
.quiz-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; text-align: left; font: inherit; line-height: 1.35; color: var(--text); background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.quiz-option:hover:not(:disabled) { border-color: var(--primary); }
.quiz-option:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.quiz-option:disabled { cursor: default; opacity: 1; color: var(--text); }
.quiz-letter { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-weight: 700; }
.quiz-text { flex: 1; }
.quiz-option-paper { flex: 1; display: block; min-height: 72px; padding: 0 4px; }
.quiz-mark { flex: none; min-width: 1.2em; font-weight: 800; font-size: 1.25rem; text-align: center; }
.quiz-option.is-right { border-color: var(--success); }
.quiz-option.is-right .quiz-mark { color: var(--success); }
.quiz-option.is-wrong { border-color: var(--danger); }
.quiz-option.is-wrong .quiz-mark { color: var(--danger); }
.quiz-feedback:empty { display: none; }
.quiz-feedback { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); border-left: 4px solid var(--border); background: var(--surface-2); }
.quiz-feedback.is-right { border-left-color: var(--success); }
.quiz-feedback.is-wrong { border-left-color: var(--danger); }
.quiz-feedback p { margin: 0 0 10px; }
.quiz-score:focus { outline: none; }

/* P1-6 (01/12/2026): flams and drags. On the grid, the grace note(s) are small dots on the left of the main note, in
   the colour of the hand that plays them (the play-along's limb colours: right hand blue, left hand violet; swapped for
   a left-handed drummer); after an attempt the dots take the result colour. The sticking row writes them in small
   letters before the main one ("lR", "llR"; FR "gD", "ggD"). */
.drum-cell .orn-mark { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); display: flex; gap: 1px; z-index: 1; pointer-events: auto; }
.drum-cell .orn-mark i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--orn, #a78bfa); box-shadow: 0 0 0 1.5px #fff; }
.drum-cell .orn-mark[data-hand="R"], .drum-grid.lefty .drum-cell .orn-mark[data-hand="L"] { --orn: #38bdf8; }
.drum-cell .orn-mark[data-hand="L"], .drum-grid.lefty .drum-cell .orn-mark[data-hand="R"] { --orn: #a78bfa; }
.drum-cell .orn-mark.orn-st-ok { --orn: var(--st-ok); }
.drum-cell .orn-mark.orn-st-flat, .drum-cell .orn-mark.orn-st-open { --orn: var(--st-early); }
.drum-cell .orn-mark.orn-st-no_grace, .drum-cell .orn-mark.orn-st-one_grace, .drum-cell .orn-mark.orn-st-wrong_hand, .drum-cell .orn-mark.orn-st-miss { --orn: var(--st-miss); }
.stick-grace { font-size: .78em; font-weight: 600; opacity: .8; margin-right: 1px; }
.rd-cell .rd-grace { font-size: .78em; font-weight: 600; opacity: .85; margin-right: 1px; }
.orn-report { margin: 14px 0 6px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--st-ok); }
.orn-report.is-weak { border-left-color: var(--st-early); }
.orn-report h4 { margin: 0 0 6px; font-size: 1rem; }
.orn-report p { margin: 4px 0; }
.orn-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0; }
.report-chip.orn-st-ok { --c: var(--st-ok); }
.report-chip.orn-st-flat, .report-chip.orn-st-open { --c: var(--st-early); }
.report-chip.orn-st-one_grace, .report-chip.orn-st-no_grace, .report-chip.orn-st-wrong_hand, .report-chip.orn-st-miss { --c: var(--st-miss); }
