/* "Studio" — the app's own look inside the iPhone's design language.
   Identity: one colour, "tide" teal, the colour of the sung line; red appears only on the record
   button, like a studio's recording light. The signature is a stave with the voice drawn across it,
   on a dark "stage" panel that stays dark in light mode too. Everything else is quiet iOS: large
   titles, inset grouped lists, the system font.
   Liquid Glass two-layer rule: content on solid surfaces; only the bars, the sheets and the toasts
   float as glass. WebKit-safe: a fixed or floating element stays transparent and its glass is a
   pseudo-element inside it (WebKit bug 319479). */

/* ---------- tokens ---------- */
:root[data-style="glass"] {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Hebrew', 'Heebo', 'Segoe UI', Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Hebrew', 'Heebo', 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #000000; --bg-2: #0a0a0b; --surface: #1c1c1e; --surface-2: #2c2c2e; --surface-3: #3a3a3c;
  --line: #38383a; --sep: rgba(84,84,88,.55); --text: #ffffff; --muted: rgba(235,235,245,.62); --faint: rgba(235,235,245,.42);
  --accent: #3dd6cb; --accent-strong: #6ee6dd; --accent-ink: #00201e; --accent-soft: rgba(61,214,203,.15);
  --rec: #ff3b30;
  --coral: #ff9f0a; --ok: #30d158; --ok-soft: rgba(48,209,88,.15); --on-ok: #062b12; --warn: #ffd60a; --warn-soft: rgba(255,214,10,.15); --bad: #ff453a; --bad-soft: rgba(255,69,58,.15); --info: #64d2ff;
  --ok-text: #30d158; --bad-text: #ff7b73;
  --m1: #0a84ff; --m2: #1e8ea3; --m3: #ff9f0a; --m4: #ff375f; --m5: #bf5af2; --m6: #34c759;
  --m7: #30b0c7;
  --stage-1: #04181b; --stage-2: #0b2a2e; --stage-line: rgba(255,255,255,.11); --stage-ink: #ffffff; --stage-sub: rgba(255,255,255,.7); --stage-accent: #4fe3d6;
  --radius: 22px; --radius-sm: 14px; --shadow: none;
  /* fills in the text colour: static values (no color-mix), so iOS 15 draws them too */
  --fill-1: rgba(255,255,255,.08); --fill-2: rgba(255,255,255,.14); --fill-3: rgba(255,255,255,.3);
  --bg-a70: rgba(0,0,0,.7); --bg-a85: rgba(0,0,0,.85); --press: rgba(255,255,255,.08);
  --field-edge: inset 0 0 0 1px rgba(235,235,245,.38);
  --switch-on: #30d158; --switch-off: rgba(120,120,128,.36);
  --seg-on: #636366;
  --key-white: #e9e9ee; --key-line: #8e8e93; --key-black: #000000; --key-ink: #55555a;
  --orb-1: rgba(61,214,203,.5); --orb-2: rgba(61,214,203,.14); --orb-glow: rgba(61,214,203,.28);
  --mask-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 12.8 9.6 17.6 19.4 6.6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mask-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.4 6.4l11.2 11.2M17.6 6.4 6.4 17.6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --mask-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m14.6 5.4-6.6 6.6 6.6 6.6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mask-chev-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.4 9.4 6.6 6.6 6.6-6.6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-style="glass"][data-theme="light"] {
  --bg: #f2f2f7; --bg-2: #e9e9ef; --surface: #ffffff; --surface-2: #f2f2f7; --surface-3: #e5e5ea;
  /* --muted reaches 4.98:1 on #f2f2f7 and 5.3:1 on white (AA) */
  --line: #d1d1d6; --sep: rgba(60,60,67,.2); --text: #000000; --muted: rgba(60,60,67,.76); --faint: rgba(60,60,67,.5);
  /* calibrated for AA text contrast on white */
  --accent: #00787b; --accent-strong: #00676a; --accent-ink: #ffffff; --accent-soft: rgba(0,120,123,.1);
  --coral: #b25000; --ok: #1a7f37; --ok-soft: rgba(26,127,55,.1); --on-ok: #ffffff; --warn: #8a6100; --warn-soft: rgba(138,97,0,.1); --bad: #d70015; --bad-soft: rgba(215,0,21,.08); --info: #0071a4;
  --ok-text: #15702f; --bad-text: #b80012;
  --m1: #007aff; --m2: #0092a8; --m3: #c06a00; --m4: #ff2d55; --m5: #af52de; --m6: #248a3d;
  --m7: #0a8fa8;
  --shadow: 0 1px 1px rgba(0,0,0,.03), 0 4px 16px rgba(0,0,0,.04);
  --fill-1: rgba(0,0,0,.06); --fill-2: rgba(0,0,0,.1); --fill-3: rgba(0,0,0,.28);
  --bg-a70: rgba(242,242,247,.7); --bg-a85: rgba(242,242,247,.85); --press: rgba(0,0,0,.06);
  --field-edge: inset 0 0 0 1px rgba(60,60,67,.4);
  --switch-on: #248a3d; --switch-off: rgba(120,120,128,.28);
  --seg-on: #ffffff;
  --key-white: #ffffff; --key-line: #c7c7cc; --key-black: #1c1c1e; --key-ink: var(--muted);
  --orb-1: rgba(0,120,123,.38); --orb-2: rgba(0,120,123,.1); --orb-glow: rgba(0,120,123,.18);
}

/* ---------- type: Apple's text styles, one step below the default size so Hebrew reads calm ----------
   SF Hebrew sets visually larger than SF Pro, so the scale sits a point under iOS "Large":
   large title 31 · title2 20 · title3 18 · body 16 · subheadline 14 · footnote 13 · caption 12 · tab 10 */
/* The app's own text size (Settings → "גודל טקסט", js/textsize.js): --ts is the chosen step, 1 = 100%.
   --ts-big: sizes that are large already (big numbers, the hero title, the passcode digits) grow at half
   the rate. --ts-art: text drawn inside fixed artwork (charts, piano keys, the how-to drawings) grows only
   to 135%, or it would run out of its drawing; the data is also in its label. The tab bar's labels keep
   their size, as iOS keeps them under Larger Text (larger, "הסשן שלי" broke onto a second line past the bar).
   The large title grows at the --ts-big rate too (as Apple's large title does): a long word in it still fits
   at 320px. (The inline --ts set by js/textsize.js wins over the 1 here.) */
:root[data-style="glass"] { --ts: 1; --ts-big: calc(1 + (var(--ts) - 1) / 2); --ts-art: min(var(--ts), 1.35); }
:root[data-style="glass"] { --t-large: calc(31px * var(--ts-big)); --t-title2: calc(20px * var(--ts, 1)); --t-title3: calc(18px * var(--ts, 1)); --t-body: calc(16px * var(--ts, 1)); --t-sub: calc(14px * var(--ts, 1)); --t-foot: calc(13px * var(--ts, 1)); --t-cap: calc(12px * var(--ts, 1)); --t-tab: 10px; }
/* With a step other than 100% the root font (every rem) is the device's size times the step, held at 200%
   of the design size, and never below what the device's own text size asks for (a desktop browser's font
   size setting here; the iPhone's Larger Text below). */
:root[data-style="glass"][data-textsize] { font-size: min(calc(100% * var(--ts, 1)), max(100%, 32px)); }
/* On iPhone the scale follows the Larger Text setting (Dynamic Type): -apple-system-body is 17px at
   the default size, so each step is its size over 17 in rem. With the app's own step, --os-fs is that
   same size, measured by js/textsize.js (CSS cannot multiply the keyword), and the cap is 2 x 17px. */
@supports (font: -apple-system-body) {
  :root[data-style="glass"] { font: -apple-system-body; --t-large: calc(31rem / 17); --t-title2: calc(20rem / 17); --t-title3: calc(18rem / 17); --t-body: calc(16rem / 17); --t-sub: calc(14rem / 17); --t-foot: calc(13rem / 17); --t-cap: calc(12rem / 17); }
  :root[data-style="glass"][data-textsize] { font-size: min(calc(var(--os-fs, 17px) * var(--ts)), max(var(--os-fs, 17px), 34px)); --t-large: calc(31rem / 17 * var(--ts-big) / var(--ts)); }
}
/* taps are taps: no double-tap zoom anywhere (iOS also waits less before a tap counts) */
:root[data-style="glass"], :root[data-style="glass"] body { touch-action: manipulation; }
/* The page colour on the root element itself, not only on body: Safari in the browser (iOS 26) paints the
   strip under the clock and the area around its toolbar from the root's own background, and the root had
   none (white), so a white band showed above and below the grey page. */
:root[data-style="glass"] { background-color: var(--bg); }
:root[data-style="glass"] body { background: var(--bg); font-family: var(--font); font-size: var(--t-body); line-height: 1.4; letter-spacing: -.005em; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
:root[data-style="glass"] h1 { font-size: var(--t-large); font-weight: 700; letter-spacing: -.022em; line-height: 1.12; margin-bottom: 4px; }
:root[data-style="glass"] h2 { font-size: var(--t-title2); font-weight: 700; letter-spacing: -.015em; line-height: 1.22; }
:root[data-style="glass"] h3 { font-size: var(--t-body); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
:root[data-style="glass"] .small { font-size: var(--t-sub); line-height: 1.38; }
:root[data-style="glass"] .muted { color: var(--muted); }
/* --faint is for hairlines and strokes; text in the old faint style reads in --muted (AA) */
:root[data-style="glass"] .faint { color: var(--muted); }
:root[data-style="glass"] .card p, :root[data-style="glass"] .card .small.muted { max-width: 62ch; }
:root[data-style="glass"] .card p[dir="ltr"] a { overflow-wrap: anywhere; }
:root[data-style="glass"] a { color: var(--accent); }
:root[data-style="glass"] a.card, :root[data-style="glass"] a.module-card, :root[data-style="glass"] a.lesson-item { color: var(--text); text-decoration: none; }
:root[data-style="glass"] .btn, :root[data-style="glass"] .bottom-nav, :root[data-style="glass"] .app-header { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
:root[data-style="glass"] .t-title3 { font-size: var(--t-title3); font-weight: 600; line-height: 1.3; }
:root[data-style="glass"] .stat-value { font-size: var(--t-title2); font-weight: 600; font-variant-numeric: tabular-nums; }
:root[data-style="glass"] .start { text-align: start; }
/* the old 800 weights: semibold for labels, bold for big numbers */
:root[data-style="glass"] :is(.tip-card .label, .section .label, .coach-note .label, #checkin summary b, .breath-orb) { font-weight: 600; }
:root[data-style="glass"] :is(.lc-score, .countdown, .hm-cents, .dx-big, .big-number, .big-note) { font-weight: 700; }

/* ---------- focus: a visible ring on every control, never cut off, never under a bar ---------- */
:root[data-style="glass"] { scroll-padding-top: calc(var(--safe-t) + 64px); scroll-padding-bottom: calc(var(--tab-h, 62px) + max(12px, var(--safe-b) - 13px) + 28px); }
:root[data-style="glass"] :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root[data-style="glass"] .list-card :focus-visible, :root[data-style="glass"] .piano :focus-visible { outline-offset: -3px; }
:root[data-style="glass"] .modal:focus-visible { outline: none; }

/* ---------- Liquid Glass ----------
   Safari has no backdrop refraction, so the material is built from what WebKit renders well:
   a blur with strong saturation (colour bleeds through), a fill thick enough that labels stay
   readable over text, a specular rim (bright top edge, faint lower edge), a soft gloss from the top,
   and a floating shadow. Four densities (Settings): crystal, clear, tinted (default), solid. */
:root[data-style="glass"] {
  --lg-fill: rgba(28,28,30,.58); --lg-blur: 22px; --lg-sat: 180%;
  --lg-rim: inset 0 .5px 0 rgba(255,255,255,.32), inset 0 -.5px 0 rgba(255,255,255,.08), inset 0 0 0 .5px rgba(255,255,255,.12);
  --lg-gloss: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 48%);
  --lg-shadow: 0 8px 30px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.3);
  --lg-lens: rgba(255,255,255,.12);
  --sheet-fill: rgba(28,28,30,.9);
}
:root[data-style="glass"][data-theme="light"] {
  --lg-fill: rgba(255,255,255,.68);
  --lg-rim: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -.5px 0 rgba(255,255,255,.5), inset 0 0 0 .5px rgba(0,0,0,.06);
  --lg-gloss: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 52%);
  --lg-shadow: 0 8px 28px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.08);
  --lg-lens: rgba(0,0,0,.05);
  --sheet-fill: rgba(250,250,252,.92);
}
:root[data-style="glass"][data-glass="clear"] { --lg-fill: rgba(30,30,32,.16); --lg-blur: 8px; }
:root[data-style="glass"][data-glass="clear"][data-theme="light"] { --lg-fill: rgba(255,255,255,.2); }
/* crystal ("שקוף מאוד"), Apple's clear Liquid Glass: almost no frosting, so what is behind stays recognisable
   (a light blur and a lift of saturation, as the glass bends the light at its edges); the shape is drawn by
   its rim and specular highlight instead of by its fill; and what sits on it stays legible over anything with
   a soft shadow behind the symbols and labels (Apple's dimming for the clear variant). */
:root[data-style="glass"][data-glass="crystal"] {
  --lg-fill: rgba(20,20,22,.05); --lg-blur: 1.5px; --lg-sat: 165%;
  --lg-rim: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.12), inset 0 0 0 .75px rgba(255,255,255,.22), inset 0 0 14px rgba(255,255,255,.05);
  --lg-gloss: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 40%, rgba(255,255,255,0) 78%, rgba(255,255,255,.06));
  --lg-legible: 0 0 1px rgba(0,0,0,.55), 0 0 8px rgba(0,0,0,.45);
}
:root[data-style="glass"][data-glass="crystal"][data-theme="light"] {
  --lg-fill: rgba(255,255,255,.08);
  --lg-rim: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.4), inset 0 0 0 .75px rgba(0,0,0,.07), inset 0 0 14px rgba(255,255,255,.18);
  --lg-gloss: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0) 42%, rgba(255,255,255,0) 78%, rgba(255,255,255,.18));
  --lg-legible: 0 0 1px rgba(255,255,255,.9), 0 0 8px rgba(255,255,255,.75);
}
:root[data-style="glass"][data-glass="crystal"] .bottom-nav a, :root[data-style="glass"][data-glass="crystal"] .now-playing,
:root[data-style="glass"][data-glass="crystal"] .sync-chip, :root[data-style="glass"][data-glass="crystal"] .toast { text-shadow: var(--lg-legible); }
:root[data-style="glass"][data-glass="crystal"] .bottom-nav svg, :root[data-style="glass"][data-glass="crystal"] .back-btn svg,
:root[data-style="glass"][data-glass="crystal"] .help-btn svg, :root[data-style="glass"][data-glass="crystal"] .sheet-close svg { filter: drop-shadow(0 0 3px var(--bg)) drop-shadow(0 0 1px var(--bg)); }
/* the thickness of the glass at its edge (crystal): the middle of the bar stays clear, while a band along
   the rim bends and brightens what is behind it, as the curved edge of a thick piece of glass does; the
   light catches that curve unevenly (brightest top-left and bottom-right), and a fine line marks where
   the glass meets what is behind it. */
:root[data-style="glass"][data-glass="crystal"] .bottom-nav::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; box-sizing: border-box; padding: 6px;
  background: conic-gradient(from 225deg at 50% 50%, rgba(255,255,255,.30), rgba(255,255,255,.03) 20%, rgba(255,255,255,.06) 32%, rgba(255,255,255,.26) 50%, rgba(255,255,255,.03) 70%, rgba(255,255,255,.06) 82%, rgba(255,255,255,.30));
  backdrop-filter: blur(5px) saturate(210%) brightness(1.12); -webkit-backdrop-filter: blur(5px) saturate(210%) brightness(1.12);
  box-shadow: inset 0 1.25px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(255,255,255,.28), inset 1px 0 0 rgba(255,255,255,.22), inset -1px 0 0 rgba(255,255,255,.22);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* The tab bar is the one piece of crystal that is not see-through: page text, a slider or a coloured tile
   that scrolls under it ran straight through the tabs, and the tabs read as gone. Its glass takes the
   PAGE'S OWN TONE (so over the plain page it is as clear as before, with the same rim, gloss and bent edge),
   thick enough that the labels keep 4.5:1 over anything behind it even where the browser draws no backdrop
   blur, and the blur under it is strong enough that what passes behind cannot be read. The selected tab's
   pill follows: darker glass in dark, bright frosted glass in light, so its tinted label holds over any
   content too. The header buttons, the toasts and the "now playing" pill keep the clear crystal.
   Measured by tests/e2e/bars.e2e.mjs (bold text, sliders, an accent tile, white, the stage, the record red). */
:root[data-style="glass"][data-glass="crystal"] :is(.bottom-nav, .gp-bar) { --lg-fill: color-mix(in srgb, var(--bg) 56%, transparent); --lg-blur: 12px; --lg-lens: rgba(0,0,0,.3); }
:root[data-style="glass"][data-glass="crystal"][data-theme="light"] :is(.bottom-nav, .gp-bar) { --lg-lens: rgba(255,255,255,.8); }
:root[data-style="glass"][data-glass="crystal"] .bottom-nav::before { box-shadow: var(--lg-rim), 0 0 0 .5px rgba(255,255,255,.14), var(--lg-shadow); }
:root[data-style="glass"][data-glass="crystal"][data-theme="light"] .bottom-nav::after {
  background: conic-gradient(from 225deg at 50% 50%, rgba(255,255,255,.42), rgba(255,255,255,.04) 20%, rgba(255,255,255,.08) 32%, rgba(255,255,255,.32) 50%, rgba(255,255,255,.04) 70%, rgba(255,255,255,.08) 82%, rgba(255,255,255,.42));
  backdrop-filter: blur(5px) saturate(200%) brightness(1.04); -webkit-backdrop-filter: blur(5px) saturate(200%) brightness(1.04);
  box-shadow: inset 0 1.25px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.6), inset 0 0 0 .5px rgba(0,0,0,.06);
}
:root[data-style="glass"][data-glass="crystal"][data-theme="light"] .bottom-nav::before { box-shadow: var(--lg-rim), 0 0 0 .5px rgba(0,0,0,.1), var(--lg-shadow); }
@media (prefers-reduced-transparency: reduce) { :root[data-style="glass"][data-glass="crystal"] .bottom-nav::after { display: none; } }
:root[data-style="glass"][data-glass="solid"] { --lg-fill: #2c2c2e; --lg-blur: 0px; --sheet-fill: #1c1c1e; }
:root[data-style="glass"][data-glass="solid"][data-theme="light"] { --lg-fill: #ffffff; --sheet-fill: #ffffff; }
@media (prefers-contrast: more) { :root[data-style="glass"] { --lg-fill: var(--surface); --lg-blur: 0px; --sheet-fill: var(--surface); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root[data-style="glass"] { --lg-fill: var(--surface); --sheet-fill: var(--surface); } }

/* ---------- navigation bar (iOS 26): no bar at all, only glass buttons; a scroll-edge blur fades
   the content beneath, and the page's name appears in the middle once its large title has gone ---------- */
:root[data-style="glass"] .app-header {
  position: sticky; top: 0; z-index: 20; min-height: calc(52px + var(--safe-t));
  padding: calc(var(--safe-t) + 4px) max(var(--gutter), env(safe-area-inset-right, 0px)) 4px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none; isolation: isolate;
}
:root[data-style="glass"] .app-header::before, :root[data-style="glass"] .app-header::after {
  content: ''; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s;
}
/* The scroll edge, as on iOS 26: content that passes under the top dissolves, it is never cut in a line.
   On iOS 26 and later the home-screen app's status bar zone is an opaque strip that the system paints in
   the page's colour, and the app starts right below it; so at the app's top edge this fade is the page
   colour itself, solid (and solid through the status bar zone where the app does run under it), and
   only then eases out. Under it, a blur that also fades out downward. */
:root[data-style="glass"] .app-header::before {
  /* its own top edge starts above the screen: a blur's edge can draw a faint line */
  top: -48px;
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(48px + var(--safe-t) + 34px), transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 calc(48px + var(--safe-t) + 34px), transparent 100%);
}
:root[data-style="glass"] .app-header::after {
  /* nearly all of the fade happens behind the bar itself; just below it the page is almost untouched,
     so a large title that has not gone under the bar yet is not washed out */
  /* --hd-solid: how far down the page colour stays solid; --hd-k: how quickly it eases out after that.
     Without a title in the bar: solid for 8px, then a long fade (the figures of the comment above). With the
     page's name in the bar (.titled): solid to below the name's line, then a short fade. Page text used to
     pass right under the name at 40 to 60% strength: two texts, one on the other. */
  background: linear-gradient(to bottom,
    var(--bg) 0, var(--bg) calc(var(--safe-t) + var(--hd-solid)),
    color-mix(in srgb, var(--bg) 94%, transparent) calc(var(--safe-t) + var(--hd-solid) + 8px * var(--hd-k)),
    color-mix(in srgb, var(--bg) 82%, transparent) calc(var(--safe-t) + var(--hd-solid) + 18px * var(--hd-k)),
    color-mix(in srgb, var(--bg) 62%, transparent) calc(var(--safe-t) + var(--hd-solid) + 30px * var(--hd-k)),
    color-mix(in srgb, var(--bg) 38%, transparent) calc(var(--safe-t) + var(--hd-solid) + 42px * var(--hd-k)),
    color-mix(in srgb, var(--bg) 17%, transparent) calc(var(--safe-t) + var(--hd-solid) + 53px * var(--hd-k)),
    color-mix(in srgb, var(--bg) 5%, transparent) calc(var(--safe-t) + var(--hd-solid) + 62px * var(--hd-k)),
    transparent 100%);
}
:root[data-style="glass"] .app-header { --hd-solid: 8px; --hd-k: 1; }
:root[data-style="glass"] .app-header.titled { --hd-solid: 50px; --hd-k: .36; }
:root[data-style="glass"] .app-header.scrolled::before, :root[data-style="glass"] .app-header.scrolled::after { opacity: 1; }
:root[data-style="glass"] .brand { display: none; }
/* glass buttons: 44 pt circles (Apple's minimum touch target); the glass is the enclosure, so the
   symbol inside is bare (a chevron, a question mark, an x) */
:root[data-style="glass"] .back-btn, :root[data-style="glass"] .help-btn, :root[data-style="glass"] .sheet-close {
  position: relative; isolation: isolate; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text); background: transparent; cursor: pointer; text-decoration: none; flex: none;
}
:root[data-style="glass"] .back-btn.hidden { display: none; }
:root[data-style="glass"] .back-btn::before, :root[data-style="glass"] .help-btn::before, :root[data-style="glass"] .sheet-close::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--lg-gloss), var(--lg-fill);
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  box-shadow: var(--lg-rim), var(--lg-shadow);
}
/* in the bar the buttons' shadow stays short of the app's top edge (4 px above them): a shadow that reaches
   the edge is cut there in a line, under the system's status bar strip */
:root[data-style="glass"] .app-header { --lg-shadow: 0 8px 14px -6px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.3); }
:root[data-style="glass"][data-theme="light"] .app-header { --lg-shadow: 0 8px 14px -6px rgba(0,0,0,.16), 0 1px 2px rgba(0,0,0,.08); }
:root[data-style="glass"] .back-btn:active, :root[data-style="glass"] .help-btn:active, :root[data-style="glass"] .sheet-close:active { transform: scale(.92); }
:root[data-style="glass"] .back-btn svg { width: 22px; height: 22px; stroke-width: 2.1; transform: none; }
:root[data-style="glass"] .help-btn svg { width: 20px; height: 20px; stroke-width: 2.1; }
/* One line centred beside the 44px controls. Its height grows with the text; long titles use an ellipsis. */
:root[data-style="glass"] .head-title { display: block; line-height: 1.5; text-align: center; font-size: var(--t-body); font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
:root[data-style="glass"] .app-header.titled .head-title { opacity: 1; transform: none; }
/* too narrow a column to name the screen (js/app.js fitTitle): no name rather than a letter and an ellipsis */
:root[data-style="glass"] .app-header.titled.title-cramped .head-title { opacity: 0; }
/* (outside audit, finding 32) The name has a column of its own between the two groups of buttons: the
   sides are as wide as their buttons and share what is left equally, so the name stays in the middle while
   it fits and moves aside, then ends in an ellipsis, when it does not. It was laid over the bar 64px from
   each edge, and the side with the teacher's button and "?" (and the save chip, and the player's stop while
   the teacher reads) is wider than that: the button covered the end of the name. */
:root[data-style="glass"] .app-header { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); column-gap: 8px; align-items: center; }
:root[data-style="glass"] .app-header > .head-start { grid-column: 1; grid-row: 1; justify-self: start; }
:root[data-style="glass"] .app-header > .head-title { grid-column: 2; grid-row: 1; min-width: 0; }
:root[data-style="glass"] .app-header > .stats { grid-column: 3; grid-row: 1; justify-self: end; }
:root[data-style="glass"] .stats { margin-inline-start: auto; align-items: center; gap: 8px; }
/* points and the week: on screen on #/ and #/progress; here only for screen readers */
:root[data-style="glass"] .stat-chip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the save state only shows when something is waiting or failing: a glass capsule as tall as the
   round buttons; a failing sync shows a warning sign in red, not only a colour */
:root[data-style="glass"] .sync-chip.ok { display: none; }
:root[data-style="glass"] .sync-chip {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 22px; text-decoration: none; font-size: var(--t-foot); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); background: transparent;
}
:root[data-style="glass"] .sync-chip::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--lg-gloss), var(--lg-fill); backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); box-shadow: var(--lg-rim), var(--lg-shadow); }
:root[data-style="glass"] .sync-chip .sync-ic { display: grid; }
:root[data-style="glass"] .sync-chip svg { width: 20px; height: 20px; }
:root[data-style="glass"] .sync-chip.wait { color: var(--text); }
:root[data-style="glass"] .sync-chip.wait .sync-ic { color: var(--accent); }
:root[data-style="glass"] .sync-chip.bad { color: var(--bad); }

/* ---------- tab bar (iOS 26): a floating glass capsule inset 21 pt, with a glass lens that slides
   to the selected tab; the selected tab shows the filled symbol ---------- */
:root[data-style="glass"] .bottom-nav {
  height: 62px; padding: 4px; bottom: max(12px, calc(var(--safe-b) - 13px)); inset-inline: max(21px, env(safe-area-inset-left, 0px)); max-width: 480px; border-radius: 31px;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none; isolation: isolate;
}
:root[data-style="glass"] .bottom-nav::before {
  content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
  background: var(--lg-gloss), var(--lg-fill);
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  box-shadow: var(--lg-rim), var(--lg-shadow);
}
/* The lens is moved by js/ui/tabbar.js (a spring: it stretches with its speed and lands with a small
   overshoot). --lift (0..1): pressed or dragged, it rises above the bar as a clear magnifying bubble.
   --speed (0..1): how fast it travels (a moving lens catches the light). */
:root[data-style="glass"] .bottom-nav { touch-action: pan-y; }
:root[data-style="glass"] .bottom-nav a { -webkit-user-drag: none; }
:root[data-style="glass"] .tab-lens {
  position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; right: auto; width: calc((100% - 8px) / 5); border-radius: 27px; pointer-events: none;
  transform-origin: 50% 50%; will-change: transform;
}
:root[data-style="glass"] .tab-lens::before, :root[data-style="glass"] .tab-lens::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
/* at rest: the tinted glass pill under the selected tab */
:root[data-style="glass"] .tab-lens::before {
  background: var(--lg-lens); box-shadow: inset 0 .5px 0 rgba(255,255,255,.3), inset 0 0 0 .5px rgba(255,255,255,.08);
  opacity: calc(1 - var(--lift, 0));
}
:root[data-style="glass"][data-theme="light"] .tab-lens::before { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 .5px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.06); }
/* lifted (held, slid, or in fast flight): a glowing glass bubble, as on iOS 26: bright inside (the glow sits
   under the magnified tabs, never over them), a soft halo and a shadow; the thin rim is .lens-sheen */
:root[data-style="glass"] .tab-lens::after {
  z-index: 0;
  background: radial-gradient(120% 130% at 50% 35%, rgba(255,255,255,.2), rgba(255,255,255,.07) 70%);
  box-shadow: inset 0 0 10px rgba(255,255,255,.12), 0 0 16px 2px rgba(255,255,255,.1), 0 8px 22px rgba(0,0,0,.28);
  opacity: max(var(--lift, 0), calc(var(--speed, 0) * .6));
}
:root[data-style="glass"][data-theme="light"] .tab-lens::after {
  background: radial-gradient(120% 130% at 50% 35%, rgba(255,255,255,.96), rgba(255,255,255,.72) 65%, rgba(255,255,255,.55));
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.07), 0 0 18px 4px rgba(255,255,255,.85), 0 6px 18px rgba(0,0,0,.12);
}
:root[data-style="glass"] .tab-lens.up { z-index: 2; }
/* the magnified copy of the tabs, seen only through the lifted bubble */
:root[data-style="glass"] .lens-clip { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; visibility: hidden; }
/* the bubble's two zones: the clear middle (magnified) and the rim (magnified more, sideways most), cross-faded */
:root[data-style="glass"] .lens-core, :root[data-style="glass"] .lens-edge { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
:root[data-style="glass"] .lens-core { -webkit-mask-image: linear-gradient(to right, transparent 3%, #000 25%, #000 75%, transparent 97%); mask-image: linear-gradient(to right, transparent 3%, #000 25%, #000 75%, transparent 97%); }
:root[data-style="glass"] .lens-edge { -webkit-mask-image: linear-gradient(to right, #000 3%, transparent 25%, transparent 75%, #000 97%); mask-image: linear-gradient(to right, #000 3%, transparent 25%, transparent 75%, #000 97%);
  /* the thick rim splits the light while the drop moves: a warm fringe on one side of each symbol, a cool
     one on the other (--fringe 0..1 from its speed and braking; --dir: which way it travels) */
  filter: blur(.4px) drop-shadow(calc(var(--fringe, 0) * var(--dir, 1) * 2.2px) 0 0 rgba(255, 204, 64, calc(var(--fringe, 0) * .75))) drop-shadow(calc(var(--fringe, 0) * var(--dir, 1) * -2.2px) 0 0 rgba(96, 156, 255, calc(var(--fringe, 0) * .75))); }
/* the rim catches the light: a thin bright edge with a faint rainbow at the two sides (the light splitting
   in the thick glass, as on iOS 26: a hint, never a band of colour), only while the bubble is up */
:root[data-style="glass"] .lens-sheen {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(255,255,255,.95), rgba(255,255,255,.55) 50deg, rgba(255,196,230,.55) 80deg, rgba(180,214,255,.55) 98deg, rgba(206,255,236,.45) 112deg, rgba(255,255,255,.55) 135deg, rgba(255,255,255,.9) 180deg, rgba(255,255,255,.55) 225deg, rgba(255,232,186,.45) 248deg, rgba(180,214,255,.55) 262deg, rgba(255,196,230,.55) 280deg, rgba(255,255,255,.55) 310deg, rgba(255,255,255,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: blur(.35px);
  opacity: var(--lift, 0);
}
:root[data-style="glass"] .tab-lens.up .lens-clip { visibility: visible; }
:root[data-style="glass"] .lens-view { position: absolute; left: 0; top: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px; box-sizing: border-box; transform-origin: 0 0; }
:root[data-style="glass"] .lens-view > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text); font-size: var(--t-tab); font-weight: 500; letter-spacing: .01em; }
:root[data-style="glass"] .lens-view svg { width: 25px; height: 25px; stroke-width: 1.8; }
:root[data-style="glass"] .lens-view .ic-fill { display: none; }
:root[data-style="glass"] .lens-view > .active { color: var(--accent-strong); font-weight: 600; }
/* seen through the lifted bubble, everything takes the selection's tint (as on iOS) */
:root[data-style="glass"] .tab-lens.up .lens-view > span { color: var(--accent-strong); }
:root[data-style="glass"][data-theme="dark"] .tab-lens.up .lens-view > span { color: var(--accent); }
:root[data-style="glass"][data-theme="dark"] .lens-view > .active { color: var(--accent); }
:root[data-style="glass"] .lens-view > .active .ic-line { display: none; }
:root[data-style="glass"] .lens-view > .active .ic-fill { display: block; }
:root[data-style="glass"] .bottom-nav.no-lens .tab-lens { opacity: 0; }
/* a short fade below and beside the capsule (content still passes under the glass itself) */
:root[data-style="glass"] body:has(.bottom-nav)::after { content: ''; position: fixed; inset-inline: 0; bottom: 0; height: calc(44px + var(--safe-b)); z-index: 25; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg-a85) 75%); }
:root[data-style="glass"] .bottom-nav a { color: var(--text); opacity: .82; font-size: var(--t-tab); font-weight: 500; border-radius: 27px; gap: 2px; letter-spacing: .01em; background: transparent; transition: color .2s, opacity .2s; }
:root[data-style="glass"] .bottom-nav a svg { width: 25px; height: 25px; stroke-width: 1.8; }
:root[data-style="glass"] .bottom-nav a .ic-fill { display: none; }
:root[data-style="glass"] .bottom-nav a.active { color: var(--accent-strong); opacity: 1; font-weight: 600; background: transparent; }
:root[data-style="glass"][data-theme="dark"] .bottom-nav a.active { color: var(--accent); }
:root[data-style="glass"] .bottom-nav a.active .ic-line { display: none; }
:root[data-style="glass"] .bottom-nav a.active .ic-fill { display: block; }
/* ---------- Liquid Glass in motion (js/ui/tabbar.js drives the springs and sets the variables) ----------
   --m (0 open .. 1 drawn in, overshooting a little either way): scrolling down, the glass draws in to a
   capsule at the leading edge holding only the selected tab, as one liquid motion; the other tabs dissolve
   into the glass (they blur, shrink and fade with it) and come back out of it on the way up.
   --mini-dx: how far the selected tab travels to the capsule. */
:root[data-style="glass"] .bottom-nav::before, :root[data-style="glass"][data-glass="crystal"] .bottom-nav::after {
  inset-block: calc(var(--m, 0) * 5px); inset-inline-start: 0; inset-inline-end: calc(var(--m, 0) * (100% - 52px));
}
:root[data-style="glass"] .bottom-nav a:not(.active) {
  opacity: clamp(0, calc(.82 - var(--m, 0) * 1.5), .82); scale: clamp(.6, calc(1 - var(--m, 0) * .35), 1);
  filter: blur(clamp(0px, calc(var(--m, 0) * 7px), 7px));
}
:root[data-style="glass"] .bottom-nav a.active { translate: calc(clamp(0, var(--m, 0), 1.1) * var(--mini-dx, 0px)) 0; }
:root[data-style="glass"] .bottom-nav a.active .tab-label { opacity: clamp(0, calc(1 - var(--m, 0) * 2.2), 1); }
:root[data-style="glass"] .bottom-nav a.active svg { translate: 0 calc(clamp(0, var(--m, 0), 1.1) * 6px); }
:root[data-style="glass"] .bottom-nav .tab-lens { opacity: clamp(0, calc(1 - var(--m, 0) * 3), 1); }
/* (the bar takes every tap in every state: js/ui/tabbar.js chooses the tab by where the finger is) */
/* on its way to the capsule or back, the selected tab passes over the others: taps go to the tab under it */
/* a glint on the rim, riding with the lens (--lx) and brighter while it moves (--glint) */
:root[data-style="glass"] .bottom-nav::before {
  background: radial-gradient(64px 20px at var(--lx, 50%) 0, rgba(255,255,255, calc(var(--glint, .35) * .42)), rgba(255,255,255,0) 72%),
    radial-gradient(48px 14px at var(--lx, 50%) 100%, rgba(255,255,255, calc(var(--glint, .35) * .16)), rgba(255,255,255,0) 72%),
    var(--lg-gloss), var(--lg-fill);
}
/* the light a touch brings into the glass: it blooms from under the finger and spreads (--gx, --gy, --gr),
   then fades; above the glass, under the tabs */
:root[data-style="glass"] .bar-glow {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; overflow: hidden;
  opacity: var(--glow, 0);
  /* (no blend mode here: a blended layer inside the bar turns the whole bar into a group of its own, and the
     bar's backdrop blur then sees nothing behind it. With "plus-lighter" on this layer the dark theme's bar
     did not blur the page at all, at any glass level: whatever scrolled under it stayed sharp.) */
  background: radial-gradient(circle var(--gr, 10px) at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.5), rgba(255,255,255,.18) 45%, rgba(255,255,255,0) 100%);
}
:root[data-style="glass"][data-theme="light"] .bar-glow { background: radial-gradient(circle var(--gr, 10px) at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.95), rgba(255,255,255,.5) 45%, rgba(255,255,255,0) 100%); mix-blend-mode: normal; }
:root[data-style="glass"] .bottom-nav.mini .bar-glow { display: none; }
/* the newly selected symbol bounces (Apple's symbol effect) */
@keyframes symbolBounce { 0% { scale: 1; } 28% { scale: 1.24; } 52% { scale: .9; } 72% { scale: 1.06; } 88% { scale: .98; } 100% { scale: 1; } }
:root[data-style="glass"] .bottom-nav .ic-fill.bounce { animation: symbolBounce .62s cubic-bezier(.3,.7,.4,1); transform-origin: 50% 70%; }
@media (prefers-reduced-motion: reduce) { :root[data-style="glass"] .bottom-nav .ic-fill.bounce { animation: none; } }
/* while the on-screen keyboard is up, the floating bar steps aside */
:root[data-style="glass"] body.kb-open .bottom-nav, :root[data-style="glass"] body.kb-open::after { display: none; }
:root[data-style="glass"] body.kb-open .modal-back { align-items: flex-start; padding-top: calc(var(--safe-t) + 12px); }
/* onboarding is a full-screen flow: no tab bar, no back button */
:root[data-style="glass"] body.onboarding::after, :root[data-style="glass"] body.onboarding .back-btn { display: none; }
:root[data-style="glass"] body.onboarding .bottom-nav { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
:root[data-style="glass"] body.onboarding main#view { padding-bottom: calc(var(--safe-b) + 24px); }
:root[data-style="glass"] body.onboarding .welcome { min-height: calc(100vh - 52px - 48px); min-height: calc(100dvh - 52px - var(--safe-t) - var(--safe-b) - 48px); }
:root[data-style="glass"] .welcome-slide h1 { text-wrap: balance; }

/* ---------- page layout: Apple's margins (16 pt, 20 pt on the Max phones), sections ~32 pt apart ---------- */
:root[data-style="glass"] { --gutter: 16px; }
@media (min-width: 414px) { :root[data-style="glass"] { --gutter: 20px; } }
:root[data-style="glass"] main#view { padding: 4px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--tab-h, 62px) + var(--safe-b) + 48px) max(var(--gutter), env(safe-area-inset-left, 0px)); }
:root[data-style="glass"] .banners-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
:root[data-style="glass"] #banners:empty { display: none; }
:root[data-style="glass"] #banners { padding-top: 6px; }
:root[data-style="glass"] .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
:root[data-style="glass"] .page-head h1 { min-inline-size: 0; overflow-wrap: anywhere; }
:root[data-style="glass"] .page-head .muted { font-size: var(--t-sub); margin-top: 2px; }
:root[data-style="glass"] main#view > h1 { margin: 0 0 16px; }
:root[data-style="glass"] main#view > h1 + .page-lead, :root[data-style="glass"] .page-head + .page-lead { margin-top: -8px; }
:root[data-style="glass"] .section-title { font-size: var(--t-title3); margin: 32px 4px 10px; }
:root[data-style="glass"] .section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 4px 10px; }
:root[data-style="glass"] .section-head .section-title { margin: 0; }
/* the link beside a section title ("פירוט") answers to 44 pt: padding round it, given back by a negative margin */
:root[data-style="glass"] .section-head a { font-size: var(--t-body); text-decoration: none; padding: 11px 8px; margin: -11px -8px; }
:root[data-style="glass"] .page-lead { margin: 0 4px 16px; font-size: var(--t-sub); color: var(--muted); max-width: 56ch; }
:root[data-style="glass"] .level-badge { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: calc(11px * var(--ts-art)); font-weight: 600; }
:root[data-style="glass"] .level-badge .ring-label { font-size: calc(16px * var(--ts-art)); font-weight: 700; color: var(--text); }

/* ---------- surfaces ---------- */
:root[data-style="glass"] .card { background: var(--surface); border: 0; border-radius: 22px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
:root[data-style="glass"] .card.flat { background: var(--surface); box-shadow: var(--shadow); }
:root[data-style="glass"] .card.accent { background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--accent-soft); }
:root[data-style="glass"] .card h2 { font-size: var(--t-title3); }
:root[data-style="glass"] .card-title { font-size: var(--t-title3); margin: 0 0 8px; }
/* no cards inside cards: a card inside a card becomes a section of it, under a hairline */
:root[data-style="glass"] .card .card, :root[data-style="glass"] .card .card.flat { background: transparent; box-shadow: none; border-radius: 0; margin: 14px 0 0; padding: 14px 0 0; border-top: .5px solid var(--sep); }

/* inset grouped list: rows separated by hairlines, the separator starting after the icon */
:root[data-style="glass"] .list-card { padding: 0; overflow: hidden; }
:root[data-style="glass"] .list-card .module-card { display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 60px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-decoration: none; color: var(--text); position: relative; }
:root[data-style="glass"] .list-card .module-card + .module-card::before { content: ''; position: absolute; top: 0; inset-inline: 58px 0; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .list-card .module-card:active { background: var(--press); }
:root[data-style="glass"] .module-icon { width: 30px; height: 30px; border-radius: 8px; color: #fff; display: grid; place-items: center; flex: none; }
:root[data-style="glass"] .module-icon svg { width: 19px; height: 19px; stroke-width: 2; }
/* a tile on the bright accent (dark mode) needs dark ink, as the accent buttons do */
:root[data-style="glass"] .module-icon[style*="var(--accent)"] { color: var(--accent-ink); }
:root[data-style="glass"] .mod-text { flex: 1; min-width: 0; }
:root[data-style="glass"] .mod-text h3 { margin: 0; font-weight: 400; font-size: var(--t-body); }
:root[data-style="glass"] .mod-text .small { font-size: var(--t-foot); margin-top: 1px; }
:root[data-style="glass"] .mod-done { color: var(--ok); display: grid; } :root[data-style="glass"] .mod-done svg { width: 20px; height: 20px; stroke-width: 2.4; }
/* the list chevron: small and light, as in iOS (a graphic, so --faint) */
:root[data-style="glass"] svg.chev { width: 15px; height: 15px; color: var(--faint); stroke-width: 2.6; flex: none; }
:root[data-style="glass"] .list-card .metric-rows { background: transparent; border-radius: 0; margin: 0; }
:root[data-style="glass"] .list-foot { padding: 10px 16px; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .list-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; min-height: 48px; border-top: .5px solid var(--sep); text-decoration: none; color: var(--accent); }

/* metric rows: label at the start, value at the end, hairlines between; the two never touch and a
   long value wraps inside its own column */
:root[data-style="glass"] .metric-rows { gap: 0; margin: 12px 0; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
:root[data-style="glass"] .metric-rows > div { position: relative; border-radius: 0; background: transparent; padding: 12px 16px; gap: 16px; align-items: baseline; }
:root[data-style="glass"] .metric-rows > div + div::before { content: ''; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .metric-rows > div > span:first-child { color: var(--text); flex: none; max-width: 50%; }
:root[data-style="glass"] .metric-rows > div.ease-row { align-items: center; }
:root[data-style="glass"] .metric-rows > div.ease-row > span:first-child { flex: 999 1 auto; max-width: none; }
:root[data-style="glass"] .metric-rows > div > b { font-weight: 400; color: var(--muted); text-align: end; min-width: 0; text-wrap: balance; overflow-wrap: anywhere; }
:root[data-style="glass"] .measure-card > .row.between { flex-wrap: wrap; }
/* inside a card the rows are part of the card (no grey box in the card) */
:root[data-style="glass"] .card .metric-rows { background: transparent; border-radius: 0; margin: 8px -16px 0; }
:root[data-style="glass"] .card .metric-rows:first-child { margin-top: -8px; }
:root[data-style="glass"] .card .metric-rows > div:first-child::before { content: ''; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .card .metric-rows:first-child > div:first-child::before, :root[data-style="glass"] .list-card .metric-rows > div:first-child::before { display: none; }
:root[data-style="glass"] .card.list-card .metric-rows { margin: 0; }

/* lesson lists: rows, not boxes in boxes; the hairline starts at the text, as in the course list */
:root[data-style="glass"] .lesson-item { border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; background: var(--surface); box-shadow: var(--shadow); }
:root[data-style="glass"] .card .lesson-item, :root[data-style="glass"] .card .drill { background: transparent; box-shadow: none; border-radius: 0; margin: 0; padding-inline: 2px; border-bottom: .5px solid var(--sep); }
:root[data-style="glass"] .card .lesson-item:last-child, :root[data-style="glass"] .card .drill:last-child { border-bottom: 0; }
:root[data-style="glass"] .lesson-item .num { width: 30px; height: 30px; font-size: var(--t-sub); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
:root[data-style="glass"] .lesson-item.done .num { background: var(--ok); color: var(--on-ok); }
:root[data-style="glass"] .lesson-item .title { font-weight: 500; }
:root[data-style="glass"] .list-card.lessons { padding: 0 0 0 0; }
:root[data-style="glass"] .list-card.lessons .lesson-item { position: relative; padding: 12px 16px; min-height: 62px; border-bottom: 0; }
:root[data-style="glass"] .list-card.lessons .lesson-item + .lesson-item::before { content: ''; position: absolute; top: 0; inset-inline: 58px 0; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .lesson-item.locked { opacity: .55; }
/* a play or pause mark inside a row is media, never mirrored like a chevron */
/* (step rows built with icon('play'|'pause', 'chev'): the solid media glyph is not mirrored) */
:root[data-style="glass"] svg.chev.ic-solid { transform: none; width: 18px; height: 18px; color: var(--accent); }
:root[data-style="glass"] svg.row-play { width: 22px; height: 22px; color: var(--accent); flex: none; transform: none; }

/* ---------- the stage: the app's signature panel ---------- */
html:root[data-style="glass"] .card.accent.hero, :root[data-style="glass"] .hero-wave {
  position: relative; overflow: hidden; border-radius: 28px; padding: 20px; margin-bottom: 14px; color: var(--stage-ink);
  background: radial-gradient(120% 90% at 85% 0%, var(--stage-2), var(--stage-1) 70%); box-shadow: 0 10px 30px rgba(0,40,44,.18);
}
:root[data-style="glass"] .hero .hero-art { position: absolute; inset: 0 0 auto 0; width: 100%; height: 150px; pointer-events: none; }
:root[data-style="glass"] .hero .stave { stroke: var(--stage-line); stroke-width: 1; }
:root[data-style="glass"] .hero .contour { fill: none; stroke: var(--stage-accent); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(79,227,214,.55)); stroke-dasharray: 520; stroke-dashoffset: 520; animation: drawLine 1.6s cubic-bezier(.4,0,.2,1) .15s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
:root[data-style="glass"] .hero-body { position: relative; padding-top: 104px; }
:root[data-style="glass"] .hero-step { font-size: var(--t-foot); font-weight: 600; color: var(--stage-accent); margin-bottom: 4px; }
:root[data-style="glass"] .card.accent.hero h2, :root[data-style="glass"] .hero-wave h1 { color: var(--stage-ink); font-size: calc(26px * var(--ts-big)); letter-spacing: -.022em; margin: 0 0 6px; line-height: 1.1; }
:root[data-style="glass"] .hero-sub { color: var(--stage-sub); font-size: var(--t-sub); margin: 0 0 16px; max-width: 40ch; }
:root[data-style="glass"] .hero .journey-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 16px; padding: 0; }
:root[data-style="glass"] .hero .journey-list li { display: flex; align-items: center; gap: 6px; padding: 0; background: none; outline: 0; opacity: 1; font-size: var(--t-foot); line-height: 1.2; color: var(--stage-sub); }
:root[data-style="glass"] .hero .journey-list li b { font-weight: 500; }
:root[data-style="glass"] .hero .journey-n { width: calc(20px * var(--ts)); height: calc(20px * var(--ts)); flex: none; border-radius: 50%; display: grid; place-items: center; font-size: calc(11px * var(--ts)); font-weight: 700; background: rgba(255,255,255,.1); color: var(--stage-sub); }
:root[data-style="glass"] .hero .journey-n svg { width: 13px; height: 13px; stroke-width: 2.8; }
:root[data-style="glass"] .hero .journey-list li.now { color: var(--stage-ink); }
:root[data-style="glass"] .hero .journey-list li.now .journey-n { background: var(--stage-accent); color: #00201e; }
:root[data-style="glass"] .hero .journey-list li.done .journey-n { background: rgba(79,227,214,.22); color: var(--stage-accent); }
:root[data-style="glass"] .hero .journey-list li.done b { color: var(--stage-sub); }
:root[data-style="glass"] .hero .btn.primary, :root[data-style="glass"] .hero-wave .btn.primary { background: var(--stage-accent); color: #00201e; }
:root[data-style="glass"] .hero .btn:not(.primary), :root[data-style="glass"] .hero-wave .btn:not(.primary) { background: rgba(255,255,255,.12); color: var(--stage-ink); }
/* the session's stage: the moving voice lines along the bottom */
:root[data-style="glass"] .hero-wave { padding-bottom: 20px; }
:root[data-style="glass"] .hero-wave svg.wave { height: 70px; opacity: .9; }
:root[data-style="glass"] .hero-wave svg.wave path { stroke: var(--stage-accent); stroke-width: 2.4; }
:root[data-style="glass"] .hero-wave svg.wave path.w2 { stroke: rgba(255,255,255,.28); }
:root[data-style="glass"] .hero-wave .hero-sub { margin-bottom: 14px; }
:root[data-style="glass"] .hero-tip { display: grid; gap: 2px; background: rgba(255,255,255,.08); border-radius: 16px; padding: 10px 14px; margin-bottom: 52px; font-size: var(--t-sub); color: var(--stage-sub); max-width: 46ch; }
:root[data-style="glass"] .hero-tip b { color: var(--stage-ink); font-weight: 600; font-size: var(--t-foot); }

/* ---------- the week ---------- */
:root[data-style="glass"] .week-strip h3 { font-size: var(--t-body); }
:root[data-style="glass"] .week-count { font-size: var(--t-sub); color: var(--muted); }
:root[data-style="glass"] .week-count b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
:root[data-style="glass"] .week-count.met b { color: var(--ok-text); }
/* Seven columns that may shrink below their letter (minmax(0, 1fr), min-width 0): with plain 1fr and a
   square day (aspect-ratio), large text made the letter's line height each column's minimum width, so the
   row grew wider than the card and Saturday left the screen. The gap and the letter's line give way first,
   and the letter is held at 150% (21px) so it stays inside its 40px circle at any text size. */
:root[data-style="glass"] .week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(2px, 1.6vw, 6px); margin: 14px 0 10px; }
:root[data-style="glass"] .wd { aspect-ratio: 1; max-width: 40px; min-width: 0; min-height: 0; justify-self: center; width: 100%; border-radius: 50%; display: grid; place-items: center; font-size: min(var(--t-sub), 21px); line-height: 1; font-weight: 600; color: var(--muted); background: var(--surface-2); }
:root[data-style="glass"] .wd.on { background: var(--accent); color: var(--accent-ink); }
:root[data-style="glass"] .wd.today:not(.on):not(.own) { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
/* a day of practice the learner reported (not measured): a thick ring, not a filled day (and its label says
   so). A report is always made today, so the plain today ring above leaves it out: with it, a reported
   today looked just like an unpractised one. */
:root[data-style="glass"] .wd.own { background: transparent; box-shadow: inset 0 0 0 3px var(--accent); color: var(--text); }
.own-row { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: .5px solid var(--sep); justify-items: start; }
.own-choices { display: grid; gap: 6px; }
.own-choices[hidden] { display: none; }
:root[data-style="glass"] .week-rest { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: .5px solid var(--sep); }

/* ---------- buttons: capsules (iOS 26), one height per row ----------
   The radius is 25 pt, not "fully round": every one-line button (36, 44 or 50 pt tall) is still a capsule,
   while a label that needs two lines ("השירים שלי: תרגול לפי השירים שאתם שרים") makes a rounded rectangle,
   not a stretched stadium; such a label breaks into two even, centred lines (no word left alone below) */
:root[data-style="glass"] .btn { border-radius: 25px; font-weight: 600; min-height: 44px; font-size: var(--t-body); background: var(--fill-1); color: var(--accent-strong); border: 0; box-shadow: none; text-align: center; text-wrap: balance; }
:root[data-style="glass"][data-theme="dark"] .btn { color: var(--accent); }
:root[data-style="glass"] .btn svg { width: 20px; height: 20px; }
:root[data-style="glass"] .card .btn:not(.primary) { background: var(--fill-1); }
/* a secondary button straight on the page gets the card surface, or it vanishes on black */
:root[data-style="glass"] main#view > .btn:not(.primary):not(.ghost), :root[data-style="glass"] main#view > .btn-row > .btn:not(.primary):not(.ghost) { background: var(--surface); box-shadow: var(--shadow); }
:root[data-style="glass"] .btn:hover { border-color: transparent; filter: brightness(1.05); }
:root[data-style="glass"] .btn:active { transform: scale(.97); opacity: .85; }
:root[data-style="glass"] .btn.primary { background: var(--accent); color: var(--accent-ink); min-height: 50px; }
:root[data-style="glass"] .btn.btn[disabled], :root[data-style="glass"] .modal .btn.btn[disabled] { opacity: 1; background: var(--fill-1); color: var(--muted); box-shadow: none; }
:root[data-style="glass"] .btn-row > .btn:not(.sm) { min-height: 50px; }
/* small buttons look 36 pt and answer to 44 pt */
:root[data-style="glass"] .btn.sm { position: relative; min-height: 36px; padding: 5px 14px; font-size: var(--t-sub); }
:root[data-style="glass"] .btn.sm::after { content: ''; position: absolute; inset: -4px 0; }
:root[data-style="glass"] .btn.sm svg { width: 17px; height: 17px; }
:root[data-style="glass"] .btn.ghost { background: transparent; }
:root[data-style="glass"] .btn.danger { color: var(--bad-text); background: var(--bad-soft); }
:root[data-style="glass"] .btn.ghost.danger { background: transparent; }
/* a skip offered while an exercise is waiting: quiet, so the exercise's own start stays the one action */
:root[data-style="glass"] .btn-row .btn.primary.skip { background: var(--fill-1); color: var(--accent-strong); }
/* choice tiles keep one shape whether chosen or not; the choice is the accent fill */
:root[data-style="glass"] .choice-grid .btn { min-height: 52px; color: var(--text); background: var(--fill-1); border-radius: 16px; }
:root[data-style="glass"] .choice-grid .btn.primary { color: var(--accent-ink); background: var(--accent); border-radius: 16px; min-height: 52px; }
:root[data-style="glass"] .choice-grid:has(> :nth-child(3):last-child) > .btn { min-height: 72px; font-size: var(--t-sub); }
/* right and wrong answers: a ring, a tint and a mark, never colour alone */
:root[data-style="glass"] .choice-grid .btn.correct, :root[data-style="glass"] .quiz-opt.correct { background: var(--ok-soft); color: var(--ok-text); box-shadow: inset 0 0 0 2px var(--ok); }
:root[data-style="glass"] .choice-grid .btn.wrong, :root[data-style="glass"] .quiz-opt.wrong { background: var(--bad-soft); color: var(--bad-text); box-shadow: inset 0 0 0 2px var(--bad); }
:root[data-style="glass"] .choice-grid .btn.correct::before, :root[data-style="glass"] .choice-grid .btn.wrong::before,
:root[data-style="glass"] .quiz-opt.correct::after, :root[data-style="glass"] .quiz-opt.wrong::after { content: ''; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--mask-check) center / contain no-repeat; mask: var(--mask-check) center / contain no-repeat; }
:root[data-style="glass"] .choice-grid .btn.wrong::before, :root[data-style="glass"] .quiz-opt.wrong::after { -webkit-mask-image: var(--mask-x); mask-image: var(--mask-x); }
:root[data-style="glass"] .quiz-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 14px; min-height: 48px; background: var(--fill-1); color: var(--text); font: inherit; }
:root[data-style="glass"] .pill { font-weight: 600; font-size: var(--t-cap); padding: 3px 10px; white-space: nowrap; background: var(--fill-1); color: var(--muted); }
:root[data-style="glass"] .pill.accent { background: var(--accent-soft); color: var(--accent-strong); }
:root[data-style="glass"][data-theme="dark"] .pill.accent { color: var(--accent); }
:root[data-style="glass"] .pill.ok { background: var(--ok-soft); color: var(--ok-text); }
:root[data-style="glass"] .pill.bad { background: var(--bad-soft); color: var(--bad-text); }
:root[data-style="glass"] .pill.warn { background: var(--warn-soft); color: var(--warn); }
:root[data-style="glass"] button.pill, :root[data-style="glass"] a.pill { position: relative; }
:root[data-style="glass"] button.pill::after, :root[data-style="glass"] a.pill::after { content: ''; position: absolute; inset: -12px -2px; }
:root[data-style="glass"] .banner { border-radius: 14px; font-size: var(--t-sub); padding: 12px 14px; line-height: 1.35; }
:root[data-style="glass"] .banner.warn { background: var(--warn-soft); } :root[data-style="glass"] .banner.warn svg { color: var(--warn); }
:root[data-style="glass"] .coach-note { border-radius: 14px; border-inline-start: 0; background: var(--accent-soft); box-shadow: none; }
:root[data-style="glass"] .card .banner, :root[data-style="glass"] .card .coach-note, :root[data-style="glass"] .card .tip-box { border-radius: 12px; }

/* segmented control (iOS 26): a capsule track with a raised capsule thumb */
:root[data-style="glass"] .segmented { border-radius: 999px; padding: 3px; gap: 2px; background: var(--fill-2); }
:root[data-style="glass"] .segmented a, :root[data-style="glass"] .segmented button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border: 0; border-radius: 999px; font: inherit; font-weight: 500; padding: 6px 10px; font-size: var(--t-sub); color: var(--text); background: transparent; text-decoration: none; cursor: pointer; position: relative; }
:root[data-style="glass"] .segmented a::after, :root[data-style="glass"] .segmented button::after { content: ''; position: absolute; inset: -4px 0; }
:root[data-style="glass"] .segmented a svg { width: 17px; height: 17px; }
:root[data-style="glass"] .segmented .on, :root[data-style="glass"] .segmented [aria-pressed="true"], :root[data-style="glass"] .segmented [aria-checked="true"], :root[data-style="glass"] .segmented [aria-current="page"] { background: var(--seg-on); font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.06); }
:root[data-style="glass"] .segmented.seg-3 { grid-template-columns: repeat(3, 1fr); margin: 6px 0 12px; }
:root[data-style="glass"] .segmented.seg-4 { grid-template-columns: repeat(4, 1fr); }
/* four choices in a settings row: one even line at phone width (a smaller label, no wrapping) */
:root[data-style="glass"] :is(.module-card .segmented, #compose .segmented, #goals-days) { display: flex; flex-wrap: wrap; margin: 6px 0 12px; }
:root[data-style="glass"] :is(.module-card .segmented, #compose .segmented, #goals-days) button {
  flex: 1 0 auto; min-inline-size: 44px; max-inline-size: 100%;
  padding-inline: 4px;
}
:root[data-style="glass"] #set-glass button { font-size: var(--t-foot); letter-spacing: -.01em; }
:root[data-style="glass"] .segmented.seg-5 { grid-template-columns: repeat(5, 1fr); }
:root[data-style="glass"] .segmented.seg-6 { grid-template-columns: repeat(6, 1fr); }

/* the record button: calm until it records, then the studio's red light */
:root[data-style="glass"] .mic-btn { width: 112px; height: 112px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 8px var(--accent-soft); }
:root[data-style="glass"] .mic-btn.live { background: var(--rec); color: #fff; box-shadow: 0 0 0 8px rgba(255,59,48,.18); }

/* ---------- fields: grey fill with a visible edge (3:1), iOS pop-up buttons for selects ---------- */
:root[data-style="glass"] select, :root[data-style="glass"] input[type=text], :root[data-style="glass"] input[type=number], :root[data-style="glass"] input[type=password], :root[data-style="glass"] input[type=search], :root[data-style="glass"] input[type=email], :root[data-style="glass"] textarea, :root[data-style="glass"] .input {
  border-radius: 12px; border: 0; background-color: var(--surface-2); box-shadow: var(--field-edge); padding: 10px 12px; font-size: max(16px, var(--t-body)); /* never under 16px: smaller makes iOS zoom in on focus */ color: var(--text); min-height: 44px;
}
:root[data-style="glass"] .card :is(select, input[type=text], input[type=number], input[type=password], textarea, .input) { background-color: var(--surface-2); }
:root[data-style="glass"] ::placeholder { color: var(--muted); opacity: 1; }
:root[data-style="glass"] select {
  -webkit-appearance: none; appearance: none; padding-inline: 14px 36px; font: inherit; font-size: max(16px, var(--t-body)); color: var(--accent-strong); cursor: pointer;
  background-image: var(--select-chev); background-repeat: no-repeat; background-position: left 12px center; background-size: 16px;
  --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5-5 5 5M7 14l5 5 5-5'/%3E%3C/svg%3E");
}
:root[data-style="glass"][data-theme="dark"] select { color: var(--accent); }
:root[dir="ltr"][data-style="glass"] select { background-position: right 12px center; }
/* sliders like UISlider: a thin track and a round white thumb, in a 44 pt touch area */
:root[data-style="glass"] input[type=range] { -webkit-appearance: none; appearance: none; height: 44px; background: transparent; accent-color: var(--accent); }
:root[data-style="glass"] input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--fill-3); }
:root[data-style="glass"] input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16), 0 0 0 .5px rgba(0,0,0,.04); }
:root[data-style="glass"] input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--fill-3); }
:root[data-style="glass"] input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
:root[data-style="glass"] .field > span.row { display: flex; gap: 12px; }

/* iOS switches: a capsule with a capsule knob (iOS 26); system green, darker in light mode for 3:1 */
:root[data-style="glass"] .switch { border-bottom: .5px solid var(--sep); min-height: 52px; }
:root[data-style="glass"] .toggle { width: 60px; height: 28px; }
:root[data-style="glass"] .toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
:root[data-style="glass"] .toggle i { background: var(--switch-off); box-shadow: none; border: 0; transition: background .25s; }
:root[data-style="glass"] .toggle i::after { top: 2px; inset-inline-start: 2px; width: 36px; height: 24px; border-radius: 12px; transform: none; transition: inset-inline-start .25s cubic-bezier(.34,1.3,.5,1); box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); }
:root[data-style="glass"] .toggle input:checked + i { background: var(--switch-on); }
:root[data-style="glass"] .toggle input:checked + i::after { inset-inline-start: 22px; transform: none; }
:root[data-style="glass"] .toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { :root[data-style="glass"] .toggle i::after { transition: none; } }
:root[data-style="glass"] .check-item { background: var(--fill-1); border-radius: 14px; }
:root[data-style="glass"] .ring .ring-label { font-weight: 700; }
:root[data-style="glass"] .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: var(--t-foot); color: var(--muted); margin-top: 8px; }
:root[data-style="glass"] .legend i { width: 10px; height: 10px; border-radius: 50%; }
:root[data-style="glass"] .legend i.dash { background: none !important; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- disclosure rows: one trailing chevron, pointing in the reading direction, down when open ---------- */
:root[data-style="glass"] details > summary { list-style: none; position: relative; cursor: pointer; padding-inline-end: 26px; min-height: 32px; }
:root[data-style="glass"] details > summary::-webkit-details-marker { display: none; }
/* a summary shorter than 44 pt (a one-line "why" or "air and cycle") still answers to 44 pt: an invisible band
   above and below it, centred; a taller row (the guide's screens, the how-to) gets none, so it never reaches
   into its neighbour */
:root[data-style="glass"] details > summary::before { content: ''; position: absolute; inset-inline: 0; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px)); }
:root[data-style="glass"] details > summary::after {
  content: ''; position: absolute; inset-inline-end: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: currentColor; opacity: .55;
  -webkit-mask: var(--mask-chev) center / contain no-repeat; mask: var(--mask-chev) center / contain no-repeat; transition: transform .2s;
}
:root[data-style="glass"] details[open] > summary::after { transform: rotate(-90deg); }
:root[dir="ltr"][data-style="glass"] details > summary::after { transform: scaleX(-1); }
:root[dir="ltr"][data-style="glass"] details[open] > summary::after { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { :root[data-style="glass"] details > summary::after { transition: none; } }
:root[data-style="glass"] details.why summary { color: var(--accent-strong); font-weight: 600; }
:root[data-style="glass"][data-theme="dark"] details.why summary { color: var(--accent); }

/* ---------- sheets (help, dialogs): iOS 26 sheets — a glass panel from the bottom, inset from the
   screen edges with large concentric corners, a grabber, a round close button, and a footer that
   keeps the actions in reach however long the content is ---------- */
:root[data-style="glass"] .modal-back { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; padding: calc(var(--safe-t) + 12px) 8px calc(8px + var(--safe-b)); background: rgba(0,0,0,.22); animation: dimIn .25s ease backwards; }
/* light: iOS draws the strip under the clock itself, opaque, in the page colour, and does not change it while
   the app runs (status-bar-style "default"). A dim layer that started dark right under it drew a hard band
   at the top (seen on the learner's iPhone): the dim now starts clear at the top edge and deepens over the
   first 64 px, so the strip flows into it. Dark: the page is drawn under the clock (black-translucent), and
   the dim covers the strip too. */
:root[data-style="glass"]:not([data-theme="dark"]) .modal-back {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,.03) 12px, rgba(0,0,0,.1) 30px, rgba(0,0,0,.18) 50px, rgba(0,0,0,.22) 64px);
}
:root[data-style="glass"][data-theme="dark"] .modal-back { background: rgba(0,0,0,.5); }
:root[data-style="glass"] .modal-back.out { background: transparent; transition: background-color .2s; pointer-events: none; }
:root[data-style="glass"] .modal-back.out .modal { animation: sheetDown .22s cubic-bezier(.4,0,1,1) both; }
/* pulled down by the finger: it slides on from where it was let go (js/ui/dom.js modal) */
:root[data-style="glass"] .modal-back.out.dragged .modal { animation: none; }
/* the dim fades by its colour, never by opacity: an element with opacity cuts the sheet's blur off
   from the page behind (a backdrop root) */
@keyframes dimIn { from { background-color: transparent; } }
:root[data-style="glass"] .modal {
  position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; max-width: 520px; margin: 0;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 20px);
  padding: 0; border: 0; border-radius: 34px; background: transparent; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden;
  animation: sheetUp .42s cubic-bezier(.32,.72,0,1) backwards; transition: transform .2s;
}
:root[data-style="glass"] .modal::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--lg-gloss), var(--sheet-fill);
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--lg-rim);
}
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(105%); } }
@media (min-width: 640px) { :root[data-style="glass"] .modal-back { align-items: center; } }
:root[data-style="glass"] .sheet-grabber { position: absolute; top: 0; inset-inline: 64px; height: 22px; z-index: 2; cursor: grab; touch-action: none; }
:root[data-style="glass"] .sheet-grabber::before { content: ''; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--fill-3); }
:root[data-style="glass"] .sheet-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; }
:root[data-style="glass"] .sheet-close::before { box-shadow: var(--lg-rim), 0 2px 8px rgba(0,0,0,.1); }
:root[data-style="glass"] .sheet-close svg { width: 18px; height: 18px; stroke-width: 2.3; }
:root[data-style="glass"] .sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px 22px 18px; }
:root[data-style="glass"] .sheet-body .sheet-title { margin: 0 0 12px; padding-inline-end: 52px; min-height: 36px; display: flex; align-items: center; }
:root[data-style="glass"] .sheet-actions { flex: none; padding: 10px 16px 16px; }
:root[data-style="glass"] .sheet-actions .btn-row { margin: 0; flex-wrap: nowrap; align-items: stretch; }
:root[data-style="glass"] .sheet-actions .btn-row > .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 340px) { :root[data-style="glass"] .sheet-actions .btn-row > .btn { font-size: var(--t-sub); } }
:root[data-style="glass"] .modal .btn.ghost { background: var(--fill-1); color: var(--text); }
:root[data-style="glass"] .modal .help p { margin-bottom: 10px; }
:root[data-style="glass"] .modal .field > span { font-weight: 600; font-size: var(--t-sub); }
:root[data-style="glass"] .modal .card, :root[data-style="glass"] .modal .coach-note { border-radius: 16px; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { :root[data-style="glass"] .modal, :root[data-style="glass"] .modal-back { animation: none !important; } }

/* ---------- toasts: a glass capsule clear of the tab bar, with an icon for success and failure ---------- */
:root[data-style="glass"] .toast-wrap { bottom: calc(max(12px, var(--safe-b) - 13px) + var(--tab-h, 62px) + 14px); padding: 0 var(--gutter); }
:root[data-style="glass"] .toast {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 22px;
  font-size: var(--t-sub); font-weight: 600; line-height: 1.3; color: var(--text); background: transparent; box-shadow: var(--lg-shadow); animation: toastIn .35s cubic-bezier(.32,.72,0,1) backwards;
}
:root[data-style="glass"] .toast::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--lg-gloss), var(--lg-fill); backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); box-shadow: var(--lg-rim); }
:root[data-style="glass"] .toast.ok, :root[data-style="glass"] .toast.bad { border-inline-start: 0; }
:root[data-style="glass"] .toast svg { width: 20px; height: 20px; flex: none; }
:root[data-style="glass"] .toast.ok svg { color: var(--ok); }
:root[data-style="glass"] .toast.bad svg { color: var(--bad); }
:root[data-style="glass"] .toast.out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
:root[data-style="glass"] body.kb-open .toast-wrap { bottom: calc(var(--safe-b) + 16px); }
/* while the "now playing" pill is up (it sits in the same place, 46px tall), a toast stacks above it: it
   used to land on the pill and hide its stop button */
:root[data-style="glass"] body.np-on .toast-wrap { bottom: calc(max(12px, var(--safe-b) - 13px) + var(--tab-h, 62px) + 12px + 46px + 8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- first-visit tip: under the page title, in the coach-note look ---------- */
:root[data-style="glass"] .first-tip { background: var(--accent-soft); border-radius: 18px; padding: 14px 16px; margin: 0 0 16px; }
:root[data-style="glass"] .first-tip .label { display: flex; align-items: center; gap: 6px; color: var(--accent-strong); margin-bottom: 4px; }
:root[data-style="glass"][data-theme="dark"] .first-tip .label { color: var(--accent); }
:root[data-style="glass"] .first-tip .label svg { width: 18px; height: 18px; flex: none; }
:root[data-style="glass"] .first-tip .label b { font-weight: 600; color: var(--text); }
:root[data-style="glass"] .first-tip p { margin: 0 0 10px; }
:root[data-style="glass"] .first-tip .btn-row { justify-content: flex-start; }
:root[data-style="glass"] .first-tip .btn-row > .btn { flex: 0 0 auto; max-inline-size: 100%; }
:root[data-style="glass"] .first-tip .btn:not(.primary) { background: var(--surface); }

/* ---------- motion ---------- */
:root[data-style="glass"] .view-enter { animation-duration: .38s; animation-timing-function: cubic-bezier(.32,.72,0,1); }
@media (prefers-reduced-motion: reduce) { :root[data-style="glass"] .hero .contour { animation: none; stroke-dashoffset: 0; } }

/* ---------- course and module pages ---------- */
:root[data-style="glass"] .module-head { margin: 4px 4px 18px; }
:root[data-style="glass"] .module-head .module-icon.lg { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 12px; }
:root[data-style="glass"] .module-head .module-icon.lg svg { width: 30px; height: 30px; }
:root[data-style="glass"] .module-head h1 { font-size: calc(27px * var(--ts-big)); margin: 2px 0 6px; }
:root[data-style="glass"] .module-head p { margin: 0; font-size: var(--t-sub); max-width: 52ch; }

/* ---------- chip scrollers (tools, library topics): one scrolling row; the edges fade so the row
   visibly continues; the selected chip is the accent, like every other selection ---------- */
:root[data-style="glass"] .tab-scroller, :root[data-style="glass"] .topic-chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px calc(-1 * var(--gutter)) 12px; padding: 6px var(--gutter); scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(to left, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
:root[data-style="glass"] .tab-scroller::-webkit-scrollbar, :root[data-style="glass"] .topic-chips::-webkit-scrollbar { display: none; }
:root[data-style="glass"] .tab-chip, :root[data-style="glass"] .topic-chips .chip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  font: inherit; font-size: var(--t-sub); font-weight: 600; white-space: nowrap; cursor: pointer; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
:root[data-style="glass"] .tab-chip::after, :root[data-style="glass"] .topic-chips .chip::after { content: ''; position: absolute; inset: -4px -2px; }
:root[data-style="glass"] .tab-chip svg, :root[data-style="glass"] .topic-chips .chip svg { width: 18px; height: 18px; color: var(--accent); }
:root[data-style="glass"] .tab-chip.on, :root[data-style="glass"] .topic-chips .chip.on, :root[data-style="glass"] .tab-chip[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
:root[data-style="glass"] .tab-chip.on svg, :root[data-style="glass"] .topic-chips .chip.on svg { color: var(--accent-ink); }
:root[data-style="glass"] .topic-chips .chip .goal-dot { background: currentColor; opacity: .75; }

/* ---------- progress ---------- */
:root[data-style="glass"] .head-action { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); border-radius: 50%; flex: none; }
:root[data-style="glass"] .head-action svg { width: 24px; height: 24px; }
:root[data-style="glass"] .page-head .help-btn { margin-bottom: -6px; }
:root[data-style="glass"] .level-card .big-number { font-size: calc(40px * var(--ts-big)); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--text); }
:root[data-style="glass"] .level-bar { height: 6px; border-radius: 3px; background: var(--surface-3); margin: 14px 0 16px; overflow: hidden; }
:root[data-style="glass"] .level-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
:root[data-style="glass"] .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: .5px solid var(--sep); padding-top: 12px; }
:root[data-style="glass"] .stat-row div { display: grid; gap: 2px; text-align: center; }
:root[data-style="glass"] .stat-row div + div { border-inline-start: .5px solid var(--sep); }
:root[data-style="glass"] .stat-row b { font-size: calc(19px * var(--ts)); font-weight: 600; font-variant-numeric: tabular-nums; }
:root[data-style="glass"] .stat-row span { font-size: var(--t-cap); color: var(--muted); }
/* locked achievements: readable text, the lock says "not yet" */
:root[data-style="glass"] .grid-3 .locked b, :root[data-style="glass"] .grid-3 .locked svg { color: var(--muted); }
/* three stats stay on one row; an odd last tile spans the row */
@media (max-width: 420px) {
  .grid-3:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3:not(:has(> :nth-child(3):last-child)) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- drill and song lists ---------- */
:root[data-style="glass"] .drill { border: 0; box-shadow: var(--shadow); color: var(--text); }
:root[data-style="glass"] .drill .title { font-weight: 500; }
:root[data-style="glass"] .list-card.drill-list { display: block; padding: 0; }
:root[data-style="glass"] .list-card.drill-list .drill { background: transparent; box-shadow: none; border-radius: 0; padding: 12px 16px; margin: 0; border: 0; width: 100%; min-height: 56px; position: relative; }
:root[data-style="glass"] .list-card.drill-list .drill + .drill::before { content: ''; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .list-card.drill-list .drill:active { background: var(--press); }
:root[data-style="glass"] .list-card .song-card h3 { font-weight: 500; }

/* ---------- goals: one grouped list; a chosen goal shows a checkmark ---------- */
:root[data-style="glass"] .goal-grid { gap: 0; margin: 10px -16px 0; }
:root[data-style="glass"] .goal { position: relative; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 12px; padding: 12px 16px; min-height: 60px; border: 0; border-radius: 0; background: transparent; }
:root[data-style="glass"] .goal > :nth-child(2) { overflow-wrap: anywhere; }
:root[data-style="glass"] .goal + .goal::before { content: ''; position: absolute; top: 0; inset-inline: 58px 0; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .goal:active { background: var(--press); }
:root[data-style="glass"] .goal::after { content: ''; width: 20px; height: 20px; background: var(--accent); -webkit-mask: var(--mask-check) center / contain no-repeat; mask: var(--mask-check) center / contain no-repeat; opacity: 0; }
:root[data-style="glass"] .goal.on { background: transparent; border: 0; }
:root[data-style="glass"] .goal.on::after { opacity: 1; }
:root[data-style="glass"] .goal-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
:root[data-style="glass"] .goal-icon svg { width: 19px; height: 19px; }
:root[data-style="glass"] .goal.on .goal-icon { background: var(--accent); color: var(--accent-ink); }
:root[data-style="glass"] .goal b { font-weight: 500; }

/* ---------- the guide: one list of screens ---------- */
:root[data-style="glass"] .guide-screens details.guide-screen { margin: 0; border-radius: 0; background: none; padding: 0; position: relative; }
:root[data-style="glass"] .guide-screens details.guide-screen + details.guide-screen::before { content: ''; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .guide-screens summary { padding: 12px 42px 12px 16px; padding-inline: 16px 42px; }
:root[data-style="glass"] .guide-screens summary::after { inset-inline-end: 16px; }
:root[data-style="glass"] .guide-screens .gs-text { display: grid; gap: 2px; }
:root[data-style="glass"] .guide-screens .gs-text b { font-weight: 500; }
:root[data-style="glass"] .guide-screens .gs-body { padding: 0 16px 14px; }
:root[data-style="glass"] .guide-screens .gs-body .btn svg.chev { color: currentColor; }
:root[data-style="glass"] .guide-go { margin-top: 16px; }

/* ---------- exercises: one card; the parts inside it are sections, not boxes ---------- */
:root[data-style="glass"] .exercise .ex-title { font-size: var(--t-title3); font-weight: 700; text-align: start; }
:root[data-style="glass"] .exercise > p.muted, :root[data-style="glass"] .exercise > .small.muted, :root[data-style="glass"] .exercise .instr { text-align: start; }
:root[data-style="glass"] .big-number { font-size: calc(44px * var(--ts-big)); font-weight: 700; font-variant-numeric: tabular-nums; }
:root[data-style="glass"] .big-note { font-size: calc(36px * var(--ts-big)); font-weight: 700; }
:root[data-style="glass"] .welcome-text { font-size: var(--t-body); line-height: 1.55; }
:root[data-style="glass"] details.why summary, :root[data-style="glass"] .quiz-explain, :root[data-style="glass"] details.why ul { font-size: var(--t-sub); }
:root[data-style="glass"] .coach-note, :root[data-style="glass"] .status-line { font-size: var(--t-sub); }
:root[data-style="glass"] .status-line { font-weight: 600; color: var(--accent-strong); }
:root[data-style="glass"][data-theme="dark"] .status-line { color: var(--accent); }
:root[data-style="glass"] .status-line.ok { color: var(--ok-text); } :root[data-style="glass"] .status-line.bad { color: var(--bad-text); }
/* how-to: the one inset panel of the exercise card */
:root[data-style="glass"] details.howto { border-radius: 16px; background: var(--surface-2); margin: 8px 0 14px; }
:root[data-style="glass"] details.howto > summary { display: flex; align-items: center; min-height: 44px; padding: 10px 40px 10px 14px; padding-inline: 14px 40px; font-weight: 600; color: var(--accent-strong); }
:root[data-style="glass"][data-theme="dark"] details.howto > summary { color: var(--accent); }
:root[data-style="glass"] details.howto > summary::after { inset-inline-end: 14px; }
:root[data-style="glass"] .howto-title { display: inline-flex; align-items: center; gap: 8px; }
:root[data-style="glass"] .howto-title svg { width: 18px; height: 18px; }
:root[data-style="glass"] .howto-cap { font-size: var(--t-sub); font-weight: 500; }
/* the demo row and the start note are rows of the card, not boxes */
:root[data-style="glass"] .demo-row { background: transparent; padding: 0; border-radius: 0; }
:root[data-style="glass"] .start-note { border: 0; background: var(--surface); border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); }
:root[data-style="glass"] :is(.card, .exercise) .start-note { background: transparent; box-shadow: none; border-radius: 0; padding: 12px 0; border-block: .5px solid var(--sep); }
:root[data-style="glass"] :is(.card, .exercise) .start-note:is(.near, .ok, .found) { border-radius: 14px; padding-inline: 12px; border-color: transparent; }
:root[data-style="glass"] :is(.card, .exercise) .start-note.near { background: var(--accent-soft); }
:root[data-style="glass"] :is(.card, .exercise) .start-note:is(.ok, .found) { background: var(--ok-soft); }
:root[data-style="glass"] .start-note .sn-hint { font-size: var(--t-sub); }
:root[data-style="glass"] .start-note .sn-note { font-size: var(--t-title2); font-weight: 600; }
:root[data-style="glass"] .live-coach { border: 0; }
:root[data-style="glass"] .lc-gauge.hidden, :root[data-style="glass"] .lc-gauge.off { margin-bottom: 0; }
:root[data-style="glass"] .lc-summary { background: var(--surface-2); border-radius: 16px; }
:root[data-style="glass"] .card .lc-summary { background: transparent; border-radius: 0; padding: 14px 0 0; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .lc-summary .pill { white-space: nowrap; }
:root[data-style="glass"] .tip-box { background: var(--fill-1); }
:root[data-style="glass"] .follow { background: var(--fill-1); }
/* lesson sections: the kind is told by the coloured label icon, not a side bar */
:root[data-style="glass"] .section.tip, :root[data-style="glass"] .section.why, :root[data-style="glass"] .section.mistakes, :root[data-style="glass"] .section.warn { border-inline-start: 0; }
:root[data-style="glass"] .section.tip .label { color: var(--accent-strong); }
:root[data-style="glass"][data-theme="dark"] .section.tip .label { color: var(--accent); }
:root[data-style="glass"] .section.why .label { color: var(--info); }
:root[data-style="glass"] .section.mistakes .label { color: var(--coral); }
:root[data-style="glass"] .section.warn { background: var(--bad-soft); box-shadow: none; }
:root[data-style="glass"] .section.warn .label { color: var(--bad-text); }
/* the voice-type table: one inset grouped list (rows under hairlines, the matching row tinted), not a stack of
   boxes 4 pt apart; its column heads stand above the group, unfilled */
:root[data-style="glass"] .vt-table { gap: 0; }
:root[data-style="glass"] .vt-row { position: relative; background: var(--fill-1); border-radius: 0; padding: 9px 12px; }
:root[data-style="glass"] .vt-row.head { background: none; padding-block: 0 6px; }
:root[data-style="glass"] .vt-row.head + .vt-row { border-start-start-radius: 12px; border-start-end-radius: 12px; }
:root[data-style="glass"] .vt-row:not(:has(+ .vt-row)) { border-end-start-radius: 12px; border-end-end-radius: 12px; }
:root[data-style="glass"] .vt-row:not(.head) + .vt-row::before { content: ''; position: absolute; top: 0; inset-inline: 12px 0; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .vt-row.match { background: var(--accent-soft); box-shadow: none; }
:root[data-style="glass"] .vt-row.match::before, :root[data-style="glass"] .vt-row.match + .vt-row::before { display: none; }
/* the two players of a corrected take, one above the other so each keeps its scrubber */
:root[data-style="glass"] .cmp-players { grid-template-columns: 1fr !important; gap: 10px; }
:root[data-style="glass"] .aud-step + .aud-step { margin-top: 24px; }
:root[data-style="glass"] .metro-dot { background: var(--surface-3); filter: none; }
:root[data-style="glass"] .metro-dot.down { background: var(--accent); }
:root[data-style="glass"] .piano { border-radius: 10px; overflow: hidden; }
/* a note name is wider than a narrow white key: its key lies above the next white key (still under the black
   keys), so the name is not cut by its neighbour; on the first and last keys it starts inside the keyboard
   (centred, it ran past the rounded edge: "דו2", "דו6"); a narrow key keeps a gently rounded end, not a half
   circle */
:root[data-style="glass"] .piano .wk:not(:empty) { z-index: 1; }
:root[data-style="glass"] .piano .wk:first-child { justify-content: flex-start; padding-left: 3px; }
:root[data-style="glass"] .piano .wk:has(+ .bk) { justify-content: flex-end; padding-right: 3px; }
:root[data-style="glass"] .piano .wk { border-radius: 0 0 min(8px, 22%) min(8px, 22%) / 0 0 8px 8px; }

/* ---------- login: an iOS passcode screen in Liquid Glass ----------
   The app icon's teal light drifts behind frosted glass keys. Each key is a lens: a bright rim on top,
   a softer one below, an inner glow; it lights up at once under a finger and fades back on release. */
:root[data-style="glass"] .login {
  --pin-key: 78px; --pin-ink: #fff; --pin-sub: rgba(255,255,255,.72);
  --pin-glass: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.05));
  --pin-rim: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -1px 1px rgba(255,255,255,.14), inset 0 0 0 .5px rgba(255,255,255,.2), inset 0 0 14px rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.22);
  --pin-down: rgba(255,255,255,.5); --pin-dot: rgba(255,255,255,.6);
  position: relative; isolation: isolate; overflow: hidden; color: var(--pin-ink);
  background: radial-gradient(130% 80% at 80% -10%, #0e3d43, #03171b 60%, #010c0e);
}
/* iOS (26 and later) paints the status bar zone in the page colour above the app, in light and in dark:
   the screen starts in exactly that colour (solid through the status bar zone where the app runs under
   it) and only then turns to the teal light, or a hard line shows under the clock */
:root[data-style="glass"] .login::after { content: ''; position: absolute; inset: 0 0 auto; height: calc(var(--safe-t) + 190px); z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0, var(--bg) var(--safe-t), color-mix(in srgb, var(--bg) 90%, transparent) calc(var(--safe-t) + 24px), color-mix(in srgb, var(--bg) 66%, transparent) calc(var(--safe-t) + 62px), color-mix(in srgb, var(--bg) 36%, transparent) calc(var(--safe-t) + 104px), color-mix(in srgb, var(--bg) 12%, transparent) calc(var(--safe-t) + 150px), transparent 100%); }
:root[data-style="glass"][data-theme="light"] .login {
  --pin-ink: #0b2226; --pin-sub: rgba(11,34,38,.62);
  --pin-glass: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.42));
  --pin-rim: inset 0 1px 1px #fff, inset 0 -1px 1px rgba(255,255,255,.6), inset 0 0 0 .5px rgba(0,60,64,.12), inset 0 0 14px rgba(255,255,255,.5), 0 8px 22px rgba(0,60,64,.12);
  --pin-down: rgba(0,120,123,.28); --pin-dot: rgba(11,34,38,.45);
  background: radial-gradient(130% 80% at 80% -10%, #d3f3ef, #eef6f6 55%, #f6f8f9);
}
/* the light behind the glass: soft teal and mint shapes that drift slowly */
:root[data-style="glass"] .login-glow { position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(28% 22% at 30% 34%, rgba(61,214,203,.55), transparent 70%), radial-gradient(26% 20% at 72% 58%, rgba(126,240,200,.38), transparent 70%), radial-gradient(40% 26% at 50% 96%, rgba(0,140,140,.45), transparent 70%);
  filter: blur(30px); animation: loginDrift 22s ease-in-out infinite alternate; }
:root[data-style="glass"][data-theme="light"] .login-glow { opacity: .55; }
@keyframes loginDrift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg); } to { transform: translate3d(3%, 3%, 0) rotate(8deg); } }
:root[data-style="glass"] .login-card { position: relative; }
/* the opening screen's sign of life: five bars breathing like a voice meter */
.splash-bars { display: flex; justify-content: center; align-items: center; gap: 5px; height: 26px; margin-top: 26px; }
.splash-bars i { width: 4px; height: 100%; border-radius: 2px; background: var(--pin-sub, currentColor); transform: scaleY(.28); opacity: .55; animation: splashBar 1.15s ease-in-out infinite; }
.splash-bars i:nth-child(2) { animation-delay: .12s; } .splash-bars i:nth-child(3) { animation-delay: .24s; } .splash-bars i:nth-child(4) { animation-delay: .36s; } .splash-bars i:nth-child(5) { animation-delay: .48s; }
@keyframes splashBar { 0%, 100% { transform: scaleY(.28); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .splash-bars i { animation: none; transform: scaleY(.6); } }
:root[data-style="glass"] .login .logo { display: block; width: 76px; height: 76px; border-radius: 17px; margin: 0 auto 14px; box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 .5px rgba(255,255,255,.12); background: none; }
:root[data-style="glass"] .login h1 { font-size: var(--t-title2); font-weight: 600; margin: 0 0 4px; color: var(--pin-ink); letter-spacing: 0; }
:root[data-style="glass"] .login p.muted { color: var(--pin-sub); font-size: var(--t-sub); margin: 0; }
:root[data-style="glass"] .login .status-line { margin: 4px 0 14px; min-height: 20px; color: var(--pin-sub); font-size: var(--t-foot); }
:root[data-style="glass"] .login .status-line.bad { color: #ff8a80; }
:root[data-style="glass"][data-theme="light"] .login .status-line.bad { color: #c62828; }
/* the dots: glass rings that fill with a small pop */
:root[data-style="glass"] .pin-dots { gap: 18px; margin: 26px 0 10px; }
:root[data-style="glass"] .pin-dots i { width: 13px; height: 13px; border: 1.5px solid var(--pin-dot); background: transparent; transform: none; transition: background .12s, border-color .12s; }
:root[data-style="glass"] .pin-dots i.on { background: var(--pin-ink); border-color: var(--pin-ink); animation: dotPop .28s cubic-bezier(.3,1.8,.5,1); }
:root[data-style="glass"] .pin-dots.busy i { animation: dotWait 1s ease-in-out infinite; }
:root[data-style="glass"] .pin-dots.busy i:nth-child(2) { animation-delay: .12s; } :root[data-style="glass"] .pin-dots.busy i:nth-child(3) { animation-delay: .24s; } :root[data-style="glass"] .pin-dots.busy i:nth-child(4) { animation-delay: .36s; }
:root[data-style="glass"] .pin-dots.ok i { background: var(--stage-accent); border-color: var(--stage-accent); box-shadow: 0 0 12px rgba(79,227,214,.8); transition: background .15s, box-shadow .15s; }
:root[data-style="glass"][data-theme="light"] .pin-dots.ok i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(0,120,123,.45); }
:root[data-style="glass"] .pin-dots.shake { animation: pinShake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes dotPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes dotWait { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pinShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-11px); } 40%, 60% { transform: translateX(11px); } }
/* the keys */
:root[data-style="glass"] .pinpad { grid-template-columns: repeat(3, var(--pin-key)); gap: 16px 24px; }
:root[data-style="glass"] .pinpad .pin-key {
  width: var(--pin-key); height: var(--pin-key); border: 0; border-radius: 50%; position: relative; overflow: hidden; padding: 0;
  background: var(--pin-glass); box-shadow: var(--pin-rim); color: var(--pin-ink);
  backdrop-filter: blur(20px) saturate(1.7); -webkit-backdrop-filter: blur(20px) saturate(1.7);
  font-size: calc(34px * var(--ts-big)); font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .45s ease-out, transform .45s cubic-bezier(.3,1.5,.5,1);
}
/* the light that floods the key under a finger */
:root[data-style="glass"] .pinpad .pin-key::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 40%, var(--pin-down), transparent 75%), var(--pin-down); opacity: 0; transition: opacity .45s ease-out; pointer-events: none; }
:root[data-style="glass"] .pinpad .pin-key.down { transform: scale(.95); transition-duration: .08s; }
:root[data-style="glass"] .pinpad .pin-key.down::after { opacity: 1; transition-duration: 0s; }
:root[data-style="glass"] .pinpad .pin-key span { position: relative; z-index: 1; }
:root[data-style="glass"] .pinpad .pin-key:focus-visible { outline: 2px solid var(--pin-ink); outline-offset: 3px; }
:root[data-style="glass"] .pinpad .pin-del { border: 0; background: transparent; color: var(--pin-ink); font-size: var(--t-body); font-weight: 500; border-radius: 22px; cursor: pointer; transition: opacity .2s; -webkit-tap-highlight-color: transparent; }
:root[data-style="glass"] .pinpad .pin-del:disabled { opacity: 0; pointer-events: none; }
@media (max-height: 640px) { :root[data-style="glass"] .login { --pin-key: 68px; } :root[data-style="glass"] .pinpad { gap: 12px 22px; } :root[data-style="glass"] .pin-dots { margin-top: 18px; } }
@media (prefers-reduced-motion: reduce) { :root[data-style="glass"] .login-glow, :root[data-style="glass"] .pin-dots i.on, :root[data-style="glass"] .pin-dots.busy i, :root[data-style="glass"] .pin-dots.shake { animation: none; } }

/* ---------- integration: pieces the screen fixes asked for ---------- */
/* the current step of a step list (session, today, pre-show warm-up) and a skipped step */
:root[data-style="glass"] .lesson-item[aria-current="step"] { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--accent); }
:root[data-style="glass"] .list-card.lessons .lesson-item[aria-current="step"] { background: var(--accent-soft); box-shadow: none; }
:root[data-style="glass"] .lesson-item[aria-current="step"] .num { background: var(--accent); color: var(--accent-ink); }
:root[data-style="glass"] .lesson-item.skipped .num { background: var(--fill-1); color: var(--muted); }
/* the vocal dose card */
:root[data-style="glass"] .dose-card .label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
:root[data-style="glass"] .dose-card .label svg { width: 18px; height: 18px; color: var(--bad); flex: none; }
:root[data-style="glass"] .dose-gauge[data-zone="caution"] i { background: var(--warn); }
/* two-line choice buttons (session length, goals) */
:root[data-style="glass"] .choice-grid .btn.two-line { flex-direction: column; gap: 2px; line-height: 1.25; }
/* chips inside a card sit on the card's own surface: give them a fill */
:root[data-style="glass"] .card .tab-chip:not(.on):not([aria-selected="true"]) { background: var(--fill-1); box-shadow: none; }
/* the live coach's running number with its caption */
.lc-score-box { flex: none; text-align: center; }
.lc-score-box .small { font-size: var(--t-cap); margin-top: 2px; }
/* the tessitura file picker: the label is the button, focus shows on it */
#tg-file:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
label.btn { cursor: pointer; }
/* metronome slider: a 44pt touch height */
.metro-slider { min-height: 44px; }
/* room check steps: text colours that pass contrast */
:root[data-style="glass"] .rc-steps li.done { color: var(--ok-text, var(--ok)); }
:root[data-style="glass"] .rc-steps li.skip { color: var(--muted); }
/* demo row: one demo button and its round stop button */
.demo-one .demo-btn { min-width: 0; }
/* a select that is not full width keeps room for its chevron */
:root[data-style="glass"] select.input { padding-inline: 14px 36px; }
/* settings: a trailing select inside a list row reads as an iOS pop-up button */
:root[data-style="glass"] .list-card .module-card > select { background-color: transparent; box-shadow: none; padding-inline: 6px 28px; min-height: 36px; width: auto; flex: none; }
:root[data-style="glass"] label.module-card { cursor: pointer; }
/* ...and at a large text size (the system's or the app's own) it moves under its label, which then has the
   row's width: beside the select the label was left a column of a word or two */
:root[data-style="glass"] .list-card label.module-card:has(> select) { flex-wrap: wrap; row-gap: 6px; }
:root[data-style="glass"] .list-card label.module-card:has(> select) > .mod-text { flex: 1 1 6em; }
:root[data-style="glass"] .list-card label.module-card:has(> select) > select { margin-inline-start: auto; max-width: 100%; }
/* diction marks: icons at the text size */
.dx-badge svg { width: 1em; height: 1em; }
/* a marked word in the lyrics: the highlight hugs the word (it took the lyrics' tall line height, 2.9, and
   stood as a slab touching the next line); the line keeps its height, so the marks sit in the room above
   the word, and an invisible band keeps the word's tap area as tall as the line */
:root[data-style="glass"] .dx-word { line-height: 1.35; padding: 2px 3px; border-radius: 7px; }
:root[data-style="glass"] .dx-word::after { content: ''; position: absolute; inset: -11px 0; }
:root[data-style="glass"] .dx-shapes { top: -1.2em; }
/* small breadcrumb links above a lesson or drill (the lesson's chapter, the drill's topic): 44 pt tall to the
   finger, the padding given back by a negative margin so the page does not move */
:root[data-style="glass"] .crumb { color: var(--muted); text-decoration: none; padding-block: 12px; display: inline-block; }
:root[data-style="glass"] :is(.module-head .row > a.small, main#view > a.small.muted) { display: inline-block; min-height: 44px; padding-block: 12px; margin-block: -12px; }

/* ---------- the text size stepper (Settings → "גודל טקסט", js/views/settings.js) ----------
   A Liquid Glass capsule, minus · the size · plus, in the material of the glass buttons in the bar (gloss,
   fill, rim) over a quiet fill, so it holds on the solid card in light and in dark. Each button is a 44px
   lens: it lights up at once under the finger and springs back, as the passcode keys do. At the ends a
   button is marked unavailable and dims. With large text the row wraps and the stepper takes its own line. */
:root[data-style="glass"] .list-card .ts-row { flex-wrap: wrap; row-gap: 8px; }
:root[data-style="glass"] .list-card .ts-row:active { background: transparent; }
:root[data-style="glass"] .ts-row .mod-text { flex: 1 1 8em; min-width: 0; }
:root[data-style="glass"] .ts-stepper {
  --ts-down: rgba(255,255,255,.3);
  position: relative; isolation: isolate; flex: none; margin-inline-start: auto; display: inline-flex; align-items: center;
  padding: 3px; border-radius: 999px; color: var(--text);
}
:root[data-style="glass"][data-theme="light"] .ts-stepper { --ts-down: rgba(0,120,123,.2); }
:root[data-style="glass"] .ts-stepper::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--lg-gloss), var(--fill-1);
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  box-shadow: var(--lg-rim), inset 0 0 0 .5px var(--sep), 0 1px 3px rgba(0,0,0,.12);
}
:root[data-style="glass"] .ts-btn {
  position: relative; isolation: isolate; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent); background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .2s;
}
:root[data-style="glass"] .ts-btn::before {
  content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: inherit;
  background: var(--lg-gloss), var(--lg-fill); box-shadow: var(--lg-rim), 0 1px 2px rgba(0,0,0,.14);
}
:root[data-style="glass"] .ts-btn::after {
  content: ''; position: absolute; inset: 2px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s ease-out;
  background: radial-gradient(circle at 50% 40%, var(--ts-down), transparent 75%), var(--ts-down);
}
:root[data-style="glass"] .ts-btn svg { width: 22px; height: 22px; stroke-width: 2.4; }
:root[data-style="glass"] :is(.ts-btn.down, .ts-btn:not([aria-disabled="true"]):active) { transform: scale(.9); transition-duration: .08s; }
:root[data-style="glass"] .ts-btn.down::after { opacity: 1; transition-duration: 0s; }
:root[data-style="glass"] .ts-btn[aria-disabled="true"] { color: var(--muted); opacity: .45; cursor: default; }
:root[data-style="glass"] .ts-value { min-width: 4.2ch; padding: 0 6px; text-align: center; font-size: var(--t-body); font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; }
@media (prefers-reduced-motion: reduce) { :root[data-style="glass"] .ts-btn { transition: opacity .2s; } }

/* ---------- spacing families (the layout scan, tests/e2e/layout.e2e.mjs) ---------- */
/* room between a box and the box under it: the guide's tip box and its "למסך הזה", the sing-along's and the
   accompanist's note lane and "מתחילים", a held note's lane and its loudness bar sat flush, the one biting
   into the other (a caption under the lane keeps its own small gap) */
:root[data-style="glass"] :is(.help, canvas.lane) + :is(.btn, .btn-row, .level-meter) { margin-top: 12px; }
:root[data-style="glass"] .help > :last-child { margin-bottom: 0; }
/* buttons in a row keep 8 pt between them, across and down (Apple's rhythm): the rows were set 6 pt apart inline,
   so small buttons stood closer than their 44 pt hit areas */
:root[data-style="glass"] :is(.row.wrap, .row[style*="gap: 6px"], .row[style*="gap: 4px"]):has(> .btn) { gap: 8px !important; }
/* a link that stands on its own answers to 44 pt: a value in a list row makes the whole row its target (as an
   iOS row), a link alone in a list item gets an invisible band */
:root[data-style="glass"] .metric-rows > div > a::after { content: ''; position: absolute; inset: 0; }
:root[data-style="glass"] li > a:only-child { position: relative; }
:root[data-style="glass"] li > a:only-child::after { content: ''; position: absolute; inset: -14px -4px; }
/* two step buttons side by side (the piano's octave, the drone's semitone): a little less padding so "אוקטבה
   למעלה" stays on one line in half a card (it broke into a two-line capsule) */
:root[data-style="glass"] .row[dir="ltr"] > .btn:not(.sm) { padding-inline: 12px; gap: 6px; }
/* a checkbox row ("להתאים את הסשן לפי המחזור") is a 44 pt row, like every other row */
:root[data-style="glass"] label.row:has(> input:is([type=checkbox], [type=radio])) { min-height: 44px; }

/* the microphone's readiness: red while it opens and measures the room ("not yet"), green when it is time to sing */
:root[data-style="glass"] .status-line.wait, :root[data-style="glass"] .status-line.go { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; border-radius: 999px; min-height: 0; line-height: 1.3; }
:root[data-style="glass"] .status-line.wait { color: var(--bad-text); background: var(--bad-soft); }
:root[data-style="glass"] .status-line.go { color: var(--ok-text); background: var(--ok-soft); }
:root[data-style="glass"] .status-line.wait::before, :root[data-style="glass"] .status-line.go::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; }
:root[data-style="glass"] .status-line.wait::before { background: var(--bad); animation: micWait 1s ease-in-out infinite; }
:root[data-style="glass"] .status-line.go::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
@keyframes micWait { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { :root[data-style="glass"] .status-line.wait::before { animation: none; } }

/* now playing: a glass pill above the tab bar while the teacher reads or a note sounds, with a stop button */
:root[data-style="glass"] .now-playing {
  position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); bottom: calc(max(12px, var(--safe-b) - 13px) + var(--tab-h, 62px) + 12px);
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; color: var(--text); font-size: var(--t-sub); font-weight: 600;
  background: transparent; isolation: isolate; animation: npIn .28s cubic-bezier(.3,1.4,.5,1);
}
/* its glass is a layer inside it, as for every floating element here (WebKit bug 319479, see the top) */
:root[data-style="glass"] .now-playing::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--lg-gloss), var(--lg-fill); backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  box-shadow: var(--lg-rim), var(--lg-shadow);
}
:root[data-style="glass"] body:not(:has(.bottom-nav)) .now-playing, :root[data-style="glass"] body.onboarding .now-playing { bottom: calc(var(--safe-b) + 20px); }
:root[data-style="glass"] .now-playing[hidden] { display: none; }
:root[data-style="glass"] .np-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; color: var(--accent-strong); }
:root[data-style="glass"][data-theme="dark"] .np-bars { color: var(--accent); }
:root[data-style="glass"] .np-bars i { width: 3px; border-radius: 2px; background: currentColor; animation: npBar .9s ease-in-out infinite; }
:root[data-style="glass"] .np-bars i:nth-child(1) { height: 6px; animation-delay: -.2s; } :root[data-style="glass"] .np-bars i:nth-child(2) { height: 14px; animation-delay: -.5s; }
:root[data-style="glass"] .np-bars i:nth-child(3) { height: 10px; animation-delay: -.1s; } :root[data-style="glass"] .np-bars i:nth-child(4) { height: 12px; animation-delay: -.7s; }
:root[data-style="glass"] .np-stop { width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--fill-2); cursor: pointer; }
:root[data-style="glass"] .np-stop svg { width: 15px; height: 15px; }
@keyframes npBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
:root[data-style="glass"] .np-bars i { transform-origin: bottom; }
@keyframes npIn { from { opacity: 0; transform: translate(-50%, 8px) scale(.94); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { :root[data-style="glass"] .np-bars i, :root[data-style="glass"] .now-playing { animation: none; } }

/* the invisible tap label laid over a control that ticks the Taptic Engine (js/ui/haptics.js): it takes the
   tap and passes it on; it draws nothing and is not read */
.haptic-hit { position: absolute; inset: 0; z-index: 3; display: block; border-radius: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; background: transparent; }
.no-haptics .haptic-hit { display: none; }

/* Settings: the jump row under the title (one line that scrolls sideways), and room above a section the
   row jumps to, clear of the bar */
:root[data-style="glass"] .set-jump { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; margin: 0 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
:root[data-style="glass"] .set-jump::-webkit-scrollbar { display: none; }
:root[data-style="glass"] .set-jump .chip { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: var(--t-sub); font-weight: 500; color: var(--text); background: var(--fill-2); cursor: pointer; white-space: nowrap; }
:root[data-style="glass"] .set-jump .chip:active { background: var(--fill-3); }
:root[data-style="glass"] .section-title[id^="set-sec-"] { scroll-margin-top: calc(var(--safe-t) + 64px); outline: none; }
/* what's new */
:root[data-style="glass"] .whatsnew-entry + .whatsnew-entry { margin-top: 16px; padding-top: 14px; border-top: .5px solid var(--sep); }
:root[data-style="glass"] .whatsnew-entry h3 { margin: 0 0 6px; font-size: var(--t-body); font-weight: 600; }
:root[data-style="glass"] .whatsnew-entry ul { margin: 0; padding-inline-start: 1.2em; }
:root[data-style="glass"] .whatsnew-entry li { margin-bottom: 6px; line-height: 1.5; }

/* =====================================================================================================
   HOW-TO ANIMATIONS (js/ui/howto.js): the drawings in the "איך עושים את זה" card of every exercise.
   One drawing language: grey line art = the body · blue = air · teal = the voice · green = the target,
   reached · neutral ink = a sound the app plays. Everything is inline SVG moved by CSS only.
   Timing: a loop lasts --period and is cut in four quarters, one per step caption. The timed classes say
   when something happens: hw-w12 "shown during quarters 1-2", hw-f3 "shown from quarter 3 on",
   hw-d234 "the line draws through quarters 2-4", hw-r34 "the dot travels (--dx) in quarters 3-4",
   hw-c* "a cover slides away (--dx)", hw-g2 "the bar fills in quarter 2", hw-ab4 "from pose --a to pose --b
   in quarter 4 and back". Each element's own delay is --d, so that a still frame can be asked for:
   .still (Reduce Motion) and .seek hold every animation at the moment --at of the loop.
   ===================================================================================================== */
.howto-art { --hw-ink: var(--muted); --hw-skin: var(--surface-3); --hw-bg: var(--surface-2); --hw-air: var(--info); --hw-voice: var(--accent); --hw-ok: var(--ok); --hw-line: var(--fill-2); --hw-hole: rgba(0,0,0,.6); --hw-ease: cubic-bezier(.45,0,.55,1); }
:root[data-theme="light"] .howto-art { --hw-skin: #ffffff; --hw-hole: rgba(60,60,67,.66); }
.howto-art svg { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: hidden; }
/* every animated part: one loop of --period, its own delay --d (the named movements are further down) */
.howto-art [class*="hw-"] { animation-duration: var(--period); animation-timing-function: linear; animation-delay: var(--d, 0s); animation-iteration-count: infinite; animation-fill-mode: both; }

/* labels: plain <text>, placed by text-anchor; never smaller than 12 units (about 11.5px on an iPhone) */
.howto-art .hw-t { fill: var(--text); stroke: none; font-family: var(--font); font-size: calc(13.5px * var(--ts-art, 1)); font-weight: 600; text-anchor: middle; }
.howto-art .hw-t.s { font-size: calc(12px * var(--ts-art, 1)); font-weight: 500; fill: var(--muted); }
.howto-art .hw-t.b { font-size: calc(14.5px * var(--ts-art, 1)); }
.howto-art .hw-t.v { font-size: calc(19px * var(--ts-art, 1)); font-weight: 500; }
.howto-art .hw-t.l { font-size: calc(22px * var(--ts-art, 1)); font-weight: 700; fill: var(--accent-strong); }
:root[data-theme="dark"] .howto-art .hw-t.l { fill: var(--accent); }
.howto-art .hw-t.ok { fill: var(--ok-text); }
.howto-art .hw-t.st { text-anchor: start; } .howto-art .hw-t.en { text-anchor: end; }

/* the figure */
.howto-art .hw-ink { stroke: var(--hw-ink); stroke-width: calc(2px * var(--sw, 1) * var(--swk, 1)); }
.howto-art .hw-ink.hw-thin { stroke-width: calc(1.4px * var(--sw, 1) * var(--swk, 1)); }
.howto-art .hw-thin { stroke-width: 1.4px; }
.howto-art .hw-skin { fill: var(--hw-skin); }
.howto-art .hw-cut { fill: var(--hw-bg); }
.howto-art .hw-hole { fill: var(--hw-hole); }
/* every part that turns or grows does so around a point of its own box (transform-box: fill-box): WebKit
   misplaces an origin given in drawing units as soon as the page is zoomed */
.howto-art .hw-mouth { transform-box: fill-box; transform-origin: 0% 55%; }
.howto-art .hw-belly { transform-box: fill-box; transform-origin: left center; --a: scaleX(1); --b: scaleX(1.366); }
.howto-art .hw-lung { fill: var(--hw-air); fill-opacity: .16; stroke: var(--hw-air); stroke-width: 1.5px; transform-box: fill-box; transform-origin: 50% 0%; --a: scale(1); --b: scale(1.1); }
.howto-art .hw-dia { stroke: var(--hw-air); stroke-width: 2.6px; transform-box: fill-box; transform-origin: 50% 100%; --a: translateY(0) scaleY(1); --b: translateY(66%) scaleY(.35); }
.howto-art .hw-lips { transform-box: fill-box; transform-origin: center; --a: scaleY(.14); --b: scaleY(1); }
.howto-art .hw-lipfill { fill: rgba(255, 99, 110, .2); stroke-width: 1.6px; }
.howto-art .hw-lipmark { stroke: var(--hw-voice); stroke-width: 2.4px; }
.howto-art .hw-tongue { fill: var(--hw-voice); fill-opacity: .3; stroke: var(--hw-voice); stroke-width: 1.3px; }
.howto-art .hw-cushion { fill: var(--hw-air); fill-opacity: .3; }
.howto-art .hw-mask { fill: var(--hw-voice); fill-opacity: .22; }

/* air, voice, target, heard sound */
.howto-art .hw-air { stroke: var(--hw-air); }
.howto-art .hw-voice { stroke: var(--hw-voice); stroke-width: 3px; }
.howto-art .hw-voice.hw-thin { stroke-width: 1.6px; }
.howto-art .hw-okvoice { stroke: var(--hw-ok); stroke-width: 3px; }
.howto-art .hw-badvoice { stroke: var(--bad); stroke-width: 3px; }
.howto-art .hw-dashed { stroke-dasharray: 5 6; }
.howto-art .hw-dot { fill: var(--hw-voice); stroke: var(--hw-bg); stroke-width: 2px; }
.howto-art .hw-heard { fill: var(--hw-ink); }
.howto-art .hw-heard.hw-drone { fill: none; stroke: var(--hw-ink); stroke-width: 3px; }
.howto-art .hw-q { fill: var(--hw-bg); stroke: var(--hw-ink); stroke-width: 2px; stroke-dasharray: 3 3.5; }
.howto-art .hw-ref { stroke: var(--hw-ink); stroke-width: 1.4px; stroke-dasharray: 2 5; }
.howto-art .hw-grid { stroke: var(--hw-line); stroke-width: 1px; }
.howto-art .hw-guide { stroke: var(--hw-line); stroke-width: 5px; }
.howto-art .hw-guide.hw-thin { stroke-width: 1.4px; }
.howto-art .hw-lead { stroke: var(--hw-ink); stroke-width: 1px; stroke-dasharray: 2 3; }
.howto-art .hw-band { fill: var(--ok-soft); }
.howto-art .hw-okline, .howto-art .hw-plumb { stroke: var(--hw-ok); stroke-width: 1.6px; stroke-dasharray: 5 4; }
.howto-art .hw-okdot { fill: var(--hw-ok); stroke: var(--hw-bg); stroke-width: 1.5px; }
.howto-art .hw-target { stroke: var(--hw-ok); stroke-width: 2.4px; }
.howto-art .hw-hit { fill: var(--hw-ok); stroke: var(--hw-ok); stroke-width: 2.4px; }
.howto-art .hw-tick { stroke: var(--hw-ok); stroke-width: 2.6px; }
.howto-art .hw-tick.hw-onhit { stroke: var(--on-ok); }
.howto-art .hw-ringpulse { stroke: var(--hw-ink); stroke-width: 1.4px; transform-box: fill-box; transform-origin: center; animation: hw-ring 1.3s var(--d, 0s) ease-in-out infinite both; }
.howto-art .hw-arrow { stroke: var(--hw-air); stroke-width: 2.2px; }
.howto-art .hw-track { fill: var(--hw-line); }
.howto-art .hw-track.hw-nofill { fill: none; stroke: var(--hw-line); stroke-width: 5px; }
.howto-art .hw-fill, .howto-art .hw-fillc, .howto-art .hw-level { fill: var(--hw-voice); }
.howto-art .hw-airfill { fill: var(--hw-air); }
.howto-art .hw-cover { fill: var(--hw-bg); transform-box: fill-box; transform-origin: right center; }
.howto-art .hw-ring { stroke: var(--hw-line); stroke-width: 1.6px; stroke-dasharray: 3 5; }
.howto-art .hw-orb { fill: var(--accent-soft); stroke: var(--hw-voice); stroke-width: 2px; transform-box: fill-box; transform-origin: center; --a: scale(.56); --b: scale(1); }
.howto-art .hw-chip { fill: var(--hw-skin); stroke: var(--hw-line); stroke-width: 1px; }
.howto-art .hw-chipon { fill: var(--hw-voice); stroke: var(--hw-voice); }
.howto-art .hw-t.hw-chipont { fill: var(--accent-ink); font-weight: 600; }
.howto-art .hw-chipok { fill: none; stroke: var(--hw-ok); stroke-width: 2.2px; }
.howto-art .hw-veil { fill: var(--hw-line); }
.howto-art .hw-step { fill: var(--fill-3); }
.howto-art .hw-stepon { fill: var(--hw-voice); stroke: var(--hw-bg); stroke-width: 1.5px; transform-box: fill-box; transform-origin: center; opacity: 0; animation-name: hw-flash; }
.howto-art .hw-wkey { fill: var(--key-white); stroke: var(--key-line); stroke-width: 1px; }
.howto-art .hw-keyline { stroke: var(--key-line); stroke-width: 1px; }
.howto-art .hw-bkey { fill: var(--key-black); }
:root[data-theme="dark"] .howto-art .hw-bkey { fill: #48484a; }
.howto-art .hw-keymark { fill: var(--hw-voice); }
.howto-art .hw-env { fill: var(--accent-soft); stroke: var(--hw-voice); stroke-width: 1.5px; }
.howto-art .hw-envfull { fill: var(--hw-voice); fill-opacity: .42; stroke: none; }
.howto-art .hw-mapfill { fill: var(--hw-voice); }
.howto-art .hw-mapfill.m0 { fill-opacity: .28; } .howto-art .hw-mapfill.m1 { fill-opacity: .48; } .howto-art .hw-mapfill.m2 { fill-opacity: .72; }
.howto-art .hw-bar { fill: var(--hw-voice); }
.howto-art .hw-ebar { fill: var(--hw-voice); fill-opacity: .4; }
.howto-art .hw-ebar.hw-epeak { fill-opacity: 1; }
.howto-art .hw-ticks { stroke: var(--hw-ink); stroke-width: 4px; }
.howto-art .hw-timer { stroke: var(--hw-voice); stroke-width: 5px; stroke-linecap: butt; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
.howto-art .s1 { --c: var(--m1); } .howto-art .s2 { --c: var(--m4); } .howto-art .s3 { --c: var(--m3); } .howto-art .s4 { --c: var(--m2); }
.howto-art .hw-sysfill { fill: var(--c); fill-opacity: .5; stroke: var(--c); stroke-width: 1.4px; }
.howto-art .hw-sysline { stroke: var(--c); stroke-width: 3px; }
.howto-art .hw-sysdot { fill: var(--c); }

/* ---- motion: the named movements. Distances are shares of the drawing (never px: see howto.js) ---- */
.howto-art .hw-timer, .howto-art .hw-dvib { stroke-dasharray: 1; }
.howto-art :is([class*="hw-ab"], [class*="hw-gy"], .hw-lips, .hw-mouth) { animation-timing-function: var(--hw-ease); }
/* the breath: belly, lungs, diaphragm and the pacer circle move together */
.scene-breath :is(.hw-belly, .hw-lung, .hw-dia, .hw-orb) { animation-name: hw-ihx; animation-timing-function: var(--hw-ease); }
.scene-breathFlow :is(.hw-belly, .hw-lung, .hw-dia, .hw-orb), .scene-quietBreath :is(.hw-belly, .hw-lung, .hw-dia) { animation-name: hw-ix; animation-timing-function: var(--hw-ease); }
.scene-hiss :is(.hw-belly, .hw-lung, .hw-dia) { animation-name: hw-hiss; }
.scene-hiss .hw-lung { --a: scale(1.04); }
.scene-breath .hw-mouth { animation-name: hw-ab4; --a: scaleY(.05); --b: scaleY(1); }
.scene-breathFlow .hw-mouth { animation-name: hw-ab34; --a: scaleY(.05); --b: scaleY(1); }
.scene-quietBreath .hw-mouth { animation-name: hw-ab234; --a: scaleY(.05); --b: scaleY(1); }
.scene-hiss .hw-mouth { animation-name: hw-ab234; --a: scaleY(.05); --b: scaleY(1); }
@keyframes hw-ihx { 0%, 25%, 100% { transform: var(--a); } 50%, 75% { transform: var(--b); } }
@keyframes hw-ix { 0%, 25%, 100% { transform: var(--a); } 50% { transform: var(--b); } }
@keyframes hw-hiss { 0%, 3% { transform: var(--a); animation-timing-function: var(--hw-ease); } 23%, 27% { transform: var(--b); } 94%, 100% { transform: var(--a); } }
/* staccato: one short kick of the belly on every beat (--beat) */
.scene-staccato .hw-belly { animation: hw-kick var(--beat) var(--d, 0s) var(--hw-ease) infinite both; }
.scene-staccato .hw-dia { animation: hw-kickdia var(--beat) var(--d, 0s) var(--hw-ease) infinite both; }
.scene-staccato .hw-mouth { animation: hw-snap var(--beat) var(--d, 0s) linear infinite both; }
.scene-staccato .hw-burst, .scene-staccato .hw-kickarrow { animation: hw-burst var(--beat) var(--d, 0s) ease-out infinite both; }
.scene-staccato .hw-kickarrow { --to: -1%; }
.scene-staccato .hw-beat { fill: var(--hw-voice); animation-name: hw-flash; --pop: 1; }
.scene-staccato .hw-beatlbl { animation-name: hw-flashdim; }
@keyframes hw-kick { 0%, 60%, 100% { transform: scaleX(1.28); } 16% { transform: scaleX(.96); } }
@keyframes hw-kickdia { 0%, 60%, 100% { transform: translateY(40%) scaleY(.6); } 16% { transform: translateY(0) scaleY(1); } }
@keyframes hw-snap { 0%, 48%, 100% { transform: scaleY(.12); } 8%, 30% { transform: scaleY(1); } }
@keyframes hw-burst { 0%, 4% { opacity: 0; transform: translateX(0); } 14% { opacity: 1; } 55%, 100% { opacity: 0; transform: translateX(var(--to, 3%)); } }
/* something that lights for a moment, in its turn (--d) */
@keyframes hw-flash { 0% { opacity: 0; transform: scale(var(--pop, 1.18)); } 1.5%, 8% { opacity: 1; } 11%, 100% { opacity: 0; transform: scale(1); } }
@keyframes hw-flashdim { 0%, 11%, 100% { opacity: .4; } 1.5%, 8% { opacity: 1; } }
.howto-art .hw-vowel { animation-name: hw-vowel; }
@keyframes hw-vowel { 0%, 21%, 100% { opacity: .34; } 3%, 17.5% { opacity: 1; } }
/* small continuous movements */
.howto-art .hw-puff { stroke-width: 2.2px; opacity: 0; animation: hw-puff 1.2s var(--d, 0s) linear infinite both; }
@keyframes hw-puff { 0% { opacity: 0; transform: translateX(0); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--to)); } }
.howto-art .hw-back { opacity: 0; animation: hw-puff 1.5s var(--d, 0s) linear infinite both; --to: -3%; }
.howto-art .hw-stream { stroke-width: 1.8px; stroke-dasharray: 7 6; animation: hw-stream .9s var(--d, 0s) linear infinite both; }
@keyframes hw-stream { to { stroke-dashoffset: -13; } }
.howto-art .hw-arc, .howto-art .hw-pulse { animation: hw-pulse 1.1s var(--d, 0s) ease-in-out infinite both; }
@keyframes hw-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes hw-ring { 0%, 100% { transform: scale(1.1); opacity: .9; } 50% { transform: scale(var(--pk, 1.6)); opacity: .25; } }
.howto-art .hw-rip { stroke: var(--hw-voice); stroke-width: 1.6px; transform-box: fill-box; transform-origin: center; animation: hw-rip 2.4s var(--d, 0s) ease-out infinite both; }
@keyframes hw-rip { 0% { transform: scale(.5); opacity: 0; } 15% { opacity: .85; } 100% { transform: scale(3); opacity: 0; } }
.howto-art .hw-flut { animation: hw-flut .14s var(--d, 0s) ease-in-out infinite alternate both; --to: -.85%; }
.howto-art .hw-flut2 { --to: .85%; }
@keyframes hw-flut { to { transform: translateY(var(--to)); } }
.howto-art .hw-shake { stroke-width: 1.6px; animation: hw-pulse .22s var(--d, 0s) linear infinite both; }
.howto-art .hw-cushion { transform-box: fill-box; transform-origin: center; animation: hw-f2 var(--period) var(--d, 0s) linear infinite both; }
.howto-art .hw-mask { animation: hw-f2 var(--period) var(--d, 0s) linear infinite both; }
.scene-resonance.v-open .hw-mouth { animation-name: hw-ab34; --a: scaleY(.05); --b: scaleY(1); }
.scene-ng .hw-mouth { transform: scaleY(1); }
/* posture: from a slump to the plumb line */
.howto-art .hw-upper { transform-box: fill-box; transform-origin: 48% 90%; animation-name: hw-stand; animation-timing-function: var(--hw-ease); }
.howto-art .hw-headfwd { animation-name: hw-headback; animation-timing-function: var(--hw-ease); }
@keyframes hw-stand { 0%, 5% { transform: rotate(9deg); } 23%, 95% { transform: rotate(0deg); } 100% { transform: rotate(9deg); } }
@keyframes hw-headback { 0%, 52% { transform: translate(1.33%, .9%); } 68%, 95% { transform: translate(0, 0); } 100% { transform: translate(1.33%, .9%); } }
/* the four systems: each one is lit in its quarter */
/* (the names stay at full strength all the time: they are small text to be read, also before the teacher
   reads and under Reduce Motion. The system being shown is marked by its lit dot and organ, and by a heavier
   name; audit 1.80, finding 30: at 30% the names measured 2.1:1 in light and 2.6:1 in dark.) */
.howto-art .hw-sys { animation-name: hw-lit; }
.howto-art .hw-syst { animation-name: hw-name; }
@keyframes hw-name { 0% { font-weight: 600; } 2%, 23% { font-weight: 800; } 26%, 100% { font-weight: 600; } }
.howto-art :is(.hw-sys, .hw-syst).s2 { --d: calc(var(--period) * .25); } .howto-art :is(.hw-sys, .hw-syst).s3 { --d: calc(var(--period) * .5); } .howto-art :is(.hw-sys, .hw-syst).s4 { --d: calc(var(--period) * .75); }
@keyframes hw-lit { 0% { opacity: .3; } 2%, 23% { opacity: 1; } 26%, 100% { opacity: .3; } }
.howto-art .hw-maplbl { animation-name: hw-name-s; }
@keyframes hw-name-s { 0% { font-weight: 500; } 2%, 23% { font-weight: 700; } 26%, 100% { font-weight: 500; } }
.howto-art .hw-maplbl.q2 { --d: calc(var(--period) * .25); } .howto-art .hw-maplbl.q3 { --d: calc(var(--period) * .5); } .howto-art .hw-maplbl.q4 { --d: calc(var(--period) * .75); }
/* your own voice, lifted to another note (and staying there) */
.howto-art .hw-lift { animation-name: hw-lift; animation-timing-function: var(--hw-ease); }
@keyframes hw-lift { 0%, 24% { transform: translateY(0); opacity: 0; } 27% { transform: translateY(0); opacity: 1; } 46%, 96% { transform: translateY(var(--dy)); opacity: 1; } 99%, 100% { transform: translateY(var(--dy)); opacity: 0; } }
/* loudness: the level bar follows the shape */
.howto-art .hw-level { transform-box: fill-box; transform-origin: center; animation-name: hw-lv-messa; }
.v-crescendo .hw-level { animation-name: hw-lv-up; } .v-decrescendo .hw-level { animation-name: hw-lv-down; }
@keyframes hw-lv-messa { 0%, 3%, 94%, 100% { transform: scaleY(.14); } 48.5% { transform: scaleY(1); } }
@keyframes hw-lv-up { 0%, 3% { transform: scaleY(.14); } 94%, 100% { transform: scaleY(1); } }
@keyframes hw-lv-down { 0%, 3% { transform: scaleY(1); } 94%, 100% { transform: scaleY(.14); } }
/* the range: down to the lowest note, then up to the highest */
.howto-art .hw-rangedot { animation-name: hw-range; animation-timing-function: var(--hw-ease); }
@keyframes hw-range { 0% { transform: translateX(0); opacity: 0; } 4% { transform: translateX(0); opacity: 1; } 23%, 50% { transform: translateX(-34%); } 73%, 96% { transform: translateX(34%); opacity: 1; } 99%, 100% { transform: translateX(34%); opacity: 0; } }
/* vibrato: the straight half, then the wave (--mid: the share of the line that is wave) */
.howto-art .hw-dvib { animation-name: hw-dvib; }
@keyframes hw-dvib { 0%, 3% { stroke-dashoffset: 1; opacity: 0; } 4% { opacity: 1; } 50% { stroke-dashoffset: var(--mid); } 94%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
/* front mouths that open when the sound starts */
.howto-art .hw-open { animation-name: hw-ab234; } .howto-art .hw-open1 { animation-name: hw-ab1; } .howto-art .hw-open3 { animation-name: hw-ab34; }
/* the same figure as the map of the four systems that is touched (js/exercises/creative.js): the svg itself carries .howto-art */
svg.hw-map { fill: none; stroke-linecap: round; stroke-linejoin: round; }
:root[data-style="glass"] svg.hw-map.howto-art { --hw-skin: var(--surface-2); --hw-bg: var(--surface); }
svg.hw-map .hw-sysfill { fill-opacity: .3; stroke-width: .7px; } svg.hw-map .hw-sysline { stroke-width: 1.5px; }
/* the onset exercise's three drawings (js/exercises/tone.js): air above, tone below, the start line */
.onset-wave:has(.hw-onset) { width: 64px; height: 34px; }
.onset-kind .onset-wave .hw-onset path { stroke-width: 2.2px; }
.onset-kind .onset-wave .hw-onset path.hw-grid { stroke: var(--faint); stroke-width: 1px; stroke-dasharray: 2 3; }
.onset-kind .onset-wave .hw-onset path.hw-air { stroke: var(--info); }
.onset-kind .onset-wave .hw-onset path.hw-voice { stroke: var(--accent); } .onset-kind .onset-wave .hw-onset path.hw-okvoice { stroke: var(--ok); } .onset-kind .onset-wave .hw-onset path.hw-badvoice { stroke: var(--bad); }
/* a still frame: Reduce Motion (.still, and the media query for any card built before the setting changed),
   a frame asked for by a test (.seek), and a card whose exercise has started (.paused, in css/app.css) */
.howto-art.still *, .howto-art.seek * { animation-play-state: paused !important; animation-delay: calc(var(--d, 0s) - var(--at, 0s)) !important; }
@media (prefers-reduced-motion: reduce) { .howto-art * { animation-play-state: paused !important; animation-delay: calc(var(--d, 0s) - var(--at, 0s)) !important; } }
/* the timed classes (see the note above): quarters 1..4 of the loop */
@keyframes hw-w1 { 0%, 23% { opacity: 1; } 26%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hw-f1 { 0% { opacity: 0; } 3%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes hw-d1 { 0%, 3% { stroke-dashoffset: 1; opacity: 0; } 4% { opacity: 1; } 23%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hw-r1 { 0% { transform: translate(0, 0); opacity: 0; } 3% { transform: translate(0, 0); opacity: 1; } 23%, 96% { transform: translate(var(--dx, 0%), 0); opacity: 1; } 99%, 100% { transform: translate(var(--dx, 0%), 0); opacity: 0; } }
@keyframes hw-c1 { 0%, 3% { transform: scaleX(1); } 23%, 100% { transform: scaleX(0); } }
@keyframes hw-g1 { 0%, 3% { transform: scaleX(0); opacity: 1; } 23%, 96% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hw-ab1 { 0%, 3% { transform: var(--a); } 11%, 23% { transform: var(--b); } 27%, 100% { transform: var(--a); } }
@keyframes hw-w2 { 0%, 25% { opacity: 0; } 28%, 48% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes hw-f2 { 0%, 25% { opacity: 0; } 28%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes hw-d2 { 0%, 27% { stroke-dashoffset: 1; opacity: 0; } 28% { opacity: 1; } 48%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hw-r2 { 0%, 24% { transform: translate(0, 0); opacity: 0; } 27% { transform: translate(0, 0); opacity: 1; } 48%, 96% { transform: translate(var(--dx, 0%), 0); opacity: 1; } 99%, 100% { transform: translate(var(--dx, 0%), 0); opacity: 0; } }
@keyframes hw-c2 { 0%, 27% { transform: scaleX(1); } 48%, 100% { transform: scaleX(0); } }
@keyframes hw-g2 { 0%, 27% { transform: scaleX(0); opacity: 1; } 48%, 96% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hw-w3 { 0%, 50% { opacity: 0; } 53%, 73% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes hw-f3 { 0%, 50% { opacity: 0; } 53%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes hw-d3 { 0%, 52% { stroke-dashoffset: 1; opacity: 0; } 53% { opacity: 1; } 73%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hw-r3 { 0%, 49% { transform: translate(0, 0); opacity: 0; } 52% { transform: translate(0, 0); opacity: 1; } 73%, 96% { transform: translate(var(--dx, 0%), 0); opacity: 1; } 99%, 100% { transform: translate(var(--dx, 0%), 0); opacity: 0; } }
@keyframes hw-g3 { 0%, 52% { transform: scaleX(0); opacity: 1; } 73%, 96% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hw-w4 { 0%, 75% { opacity: 0; } 78%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hw-f4 { 0%, 75% { opacity: 0; } 78%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes hw-d4 { 0%, 77% { stroke-dashoffset: 1; opacity: 0; } 78% { opacity: 1; } 94%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hw-r4 { 0%, 74% { transform: translate(0, 0); opacity: 0; } 77% { transform: translate(0, 0); opacity: 1; } 94%, 96% { transform: translate(var(--dx, 0%), 0); opacity: 1; } 99%, 100% { transform: translate(var(--dx, 0%), 0); opacity: 0; } }
@keyframes hw-g4 { 0%, 77% { transform: scaleX(0); opacity: 1; } 94%, 96% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hw-ab4 { 0%, 77% { transform: var(--a); } 84%, 94% { transform: var(--b); } 98%, 100% { transform: var(--a); } }
@keyframes hw-w12 { 0%, 48% { opacity: 1; } 51%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hw-d12 { 0%, 3% { stroke-dashoffset: 1; opacity: 0; } 4% { opacity: 1; } 48%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hw-r12 { 0% { transform: translate(0, 0); opacity: 0; } 3% { transform: translate(0, 0); opacity: 1; } 48%, 96% { transform: translate(var(--dx, 0%), 0); opacity: 1; } 99%, 100% { transform: translate(var(--dx, 0%), 0); opacity: 0; } }
@keyframes hw-c12 { 0%, 3% { transform: scaleX(1); } 48%, 100% { transform: scaleX(0); } }
@keyframes hw-w23 { 0%, 25% { opacity: 0; } 28%, 73% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes hw-d23 { 0%, 27% { stroke-dashoffset: 1; opacity: 0; } 28% { opacity: 1; } 73%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hw-g23 { 0%, 27% { transform: scaleX(0); opacity: 1; } 73%, 96% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hw-w34 { 0%, 50% { opacity: 0; } 53%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hw-d34 { 0%, 52% { stroke-dashoffset: 1; opacity: 0; } 53% { opacity: 1; } 94%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hw-r34 { 0%, 49% { transform: translate(0, 0); opacity: 0; } 52% { transform: translate(0, 0); opacity: 1; } 94%, 96% { transform: translate(var(--dx, 0%), 0); opacity: 1; } 99%, 100% { transform: translate(var(--dx, 0%), 0); opacity: 0; } }
@keyframes hw-ab34 { 0%, 52% { transform: var(--a); } 69%, 94% { transform: var(--b); } 98%, 100% { transform: var(--a); } }
@keyframes hw-gy34 { 0%, 52% { transform: translateY(0); animation-timing-function: var(--hw-ease); } 73% { transform: translateY(var(--dy)); animation-timing-function: var(--hw-ease); } 94%, 100% { transform: translateY(0); } }
@keyframes hw-w123 { 0%, 73% { opacity: 1; } 76%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hw-c123 { 0%, 3% { transform: scaleX(1); } 73%, 100% { transform: scaleX(0); } }
@keyframes hw-d234 { 0%, 27% { stroke-dashoffset: 1; opacity: 0; } 28% { opacity: 1; } 94%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hw-r234 { 0%, 24% { transform: translate(0, 0); opacity: 0; } 27% { transform: translate(0, 0); opacity: 1; } 94%, 96% { transform: translate(var(--dx, 0%), 0); opacity: 1; } 99%, 100% { transform: translate(var(--dx, 0%), 0); opacity: 0; } }
@keyframes hw-c234 { 0%, 27% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
@keyframes hw-g234 { 0%, 27% { transform: scaleX(0); opacity: 1; } 94%, 96% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hw-ab234 { 0%, 27% { transform: var(--a); } 54%, 94% { transform: var(--b); } 98%, 100% { transform: var(--a); } }
@keyframes hw-gy234 { 0%, 27% { transform: translateY(0); animation-timing-function: var(--hw-ease); } 60.5% { transform: translateY(var(--dy)); animation-timing-function: var(--hw-ease); } 94%, 100% { transform: translateY(0); } }
@keyframes hw-d1234 { 0%, 3% { stroke-dashoffset: 1; opacity: 0; } 4% { opacity: 1; } 94%, 96% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hw-r1234 { 0% { transform: translate(0, 0); opacity: 0; } 3% { transform: translate(0, 0); opacity: 1; } 94%, 96% { transform: translate(var(--dx, 0%), 0); opacity: 1; } 99%, 100% { transform: translate(var(--dx, 0%), 0); opacity: 0; } }
@keyframes hw-c1234 { 0%, 3% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
.howto-art .hw-w1 { animation-name: hw-w1; } .howto-art .hw-w12 { animation-name: hw-w12; } .howto-art .hw-w123 { animation-name: hw-w123; } .howto-art .hw-w2 { animation-name: hw-w2; } .howto-art .hw-w23 { animation-name: hw-w23; } .howto-art .hw-w3 { animation-name: hw-w3; } .howto-art .hw-w34 { animation-name: hw-w34; } .howto-art .hw-w4 { animation-name: hw-w4; }
.howto-art .hw-f1 { animation-name: hw-f1; } .howto-art .hw-f2 { animation-name: hw-f2; } .howto-art .hw-f3 { animation-name: hw-f3; } .howto-art .hw-f4 { animation-name: hw-f4; }
.howto-art .hw-d1 { animation-name: hw-d1; } .howto-art .hw-d12 { animation-name: hw-d12; } .howto-art .hw-d1234 { animation-name: hw-d1234; } .howto-art .hw-d2 { animation-name: hw-d2; } .howto-art .hw-d23 { animation-name: hw-d23; } .howto-art .hw-d234 { animation-name: hw-d234; } .howto-art .hw-d3 { animation-name: hw-d3; } .howto-art .hw-d34 { animation-name: hw-d34; } .howto-art .hw-d4 { animation-name: hw-d4; }
.howto-art .hw-r1 { animation-name: hw-r1; } .howto-art .hw-r12 { animation-name: hw-r12; } .howto-art .hw-r1234 { animation-name: hw-r1234; } .howto-art .hw-r2 { animation-name: hw-r2; } .howto-art .hw-r234 { animation-name: hw-r234; } .howto-art .hw-r3 { animation-name: hw-r3; } .howto-art .hw-r34 { animation-name: hw-r34; } .howto-art .hw-r4 { animation-name: hw-r4; }
.howto-art .hw-c1 { animation-name: hw-c1; } .howto-art .hw-c12 { animation-name: hw-c12; } .howto-art .hw-c123 { animation-name: hw-c123; } .howto-art .hw-c1234 { animation-name: hw-c1234; } .howto-art .hw-c2 { animation-name: hw-c2; } .howto-art .hw-c234 { animation-name: hw-c234; }
.howto-art .hw-g1 { animation-name: hw-g1; } .howto-art .hw-g2 { animation-name: hw-g2; } .howto-art .hw-g23 { animation-name: hw-g23; } .howto-art .hw-g234 { animation-name: hw-g234; } .howto-art .hw-g3 { animation-name: hw-g3; } .howto-art .hw-g4 { animation-name: hw-g4; }
.howto-art .hw-ab1 { animation-name: hw-ab1; } .howto-art .hw-ab234 { animation-name: hw-ab234; } .howto-art .hw-ab34 { animation-name: hw-ab34; } .howto-art .hw-ab4 { animation-name: hw-ab4; }
.howto-art .hw-gy234 { animation-name: hw-gy234; } .howto-art .hw-gy34 { animation-name: hw-gy34; }
.howto-art :is(.hw-d1, .hw-d12, .hw-d1234, .hw-d2, .hw-d23, .hw-d234, .hw-d3, .hw-d34, .hw-d4) { stroke-dasharray: 1; }
.howto-art :is(.hw-g1, .hw-g2, .hw-g23, .hw-g234, .hw-g3, .hw-g4) { transform-box: fill-box; transform-origin: left center; }
/* ===== end of the how-to animations ===== */

/* Liquid Glass switches and sliders (js/ui/glasskit.js, vendor/liquidglass): the app's own input stays in
   the page, unseen, and the glass control beside it mirrors it. The library is left-to-right; in this
   right-to-left app the whole control is mirrored, so "on" sits where iOS puts it in Hebrew. */
:root.glasskit { --lg-accent: var(--accent); --lg-on: var(--switch-on); --lg-track-off: var(--switch-off); --lg-track: var(--fill-3); --lg-surface: var(--surface); --lg-focus: var(--accent); }
:root.glasskit .toggle.has-glass { width: auto; height: auto; display: inline-flex; align-items: center; }
:root.glasskit .toggle.has-glass > i { display: none; }
:root.glasskit .toggle.has-glass > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; inset: auto; }
:root.glasskit .toggle.has-glass > lg-switch { transform: scaleX(-1); }
/* the keyboard's focus stays on the app's hidden input (the glass control's own input is out of the tab
   order, js/ui/glasskit.js), so the library's ring, which answers only its own input, never shows: draw it on
   the glass thumb whenever the hidden input has the keyboard's focus (the plain switch's ring, on its <i>,
   is hidden with the <i> above) */
:root.glasskit .toggle.has-glass > input:focus-visible ~ lg-switch .lg-thumb,
:root.glasskit input[type=range].has-glass:focus-visible + lg-slider .lg-thumb { outline: 2px solid var(--lg-focus); outline-offset: 2px; }
/* the app's own slider stays for the keyboard and screen readers, out of sight; !important because some
   screens size their sliders with more specific rules (the stage screen's was 390px wide, off the page) */
:root.glasskit input[type=range].has-glass { position: absolute !important; inset: auto auto auto 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
:root.glasskit lg-slider { display: block; width: 100%; margin: 6px 0; transform: scaleX(-1); }
/* the hidden native input inside must run left to right: the page's right-to-left direction plus the
   mirror above would cancel out, and the thumb moved against the finger */
:root.glasskit lg-slider .lg-slider__input { direction: ltr; }

/* =====================================================================================================
   .glass: one reusable frosted material, as close as CSS gets to iOS 26's Liquid Glass and working in
   WebKit on the iPhone. For a few large floating surfaces only (tab bar, top bar, sheets, menus), never
   for every row of a list. The frost is plain backdrop-filter with its -webkit- twin; backdrop-filter
   with url(#svg) is never used (WebKit drops the declaration). .glass-moving marks a surface that animates.
   Light and dark follow the app's own theme (data-theme), and the system's where the app has not chosen.
   ===================================================================================================== */
.glass {
  --glass-bg: rgba(255,255,255,.12); --glass-solid: rgba(246,246,250,.94);
  position: relative; isolation: isolate;
  background: var(--glass-solid); /* where there is no backdrop-filter: nearly opaque */
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.06), 0 8px 32px rgba(0,0,0,.25);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glass { --glass-bg: rgba(28,28,30,.55); --glass-solid: rgba(28,28,30,.94); } }
:root[data-theme="dark"] .glass { --glass-bg: rgba(28,28,30,.55); --glass-solid: rgba(28,28,30,.94); }
:root[data-theme="light"] .glass { --glass-bg: rgba(255,255,255,.12); --glass-solid: rgba(246,246,250,.94); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg); -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.05); backdrop-filter: blur(16px) saturate(180%) brightness(1.05); }
}
/* light catching the glass: a faint diagonal sheen, never in the way of a tap */
.glass::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.25), transparent 40%); }
/* only a surface that moves is promoted to its own layer */
.glass.glass-moving { transform: translateZ(0); will-change: transform; }
/* "reduce transparency": the solid form, no frost */
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } .glass::before { display: none; } }
@media (prefers-contrast: more) { .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: currentColor; } }

/* =====================================================================================================
   Page transitions (js/router.js navigate): push and pop as on iOS, through view transitions.
   The app reads right to left, so a push comes in from the LEFT edge and a pop leaves to the left, as
   iOS does in Hebrew; --vt-in is the side a pushed page comes from. The bars keep their own names, so they
   stay where they are while the page moves under them.
   ===================================================================================================== */
:root { --vt-in: -100%; --vt-under: 30%; }
:root[dir="ltr"] { --vt-in: 100%; --vt-under: -30%; }
/* (named only while a transition runs: a view-transition-name makes the element a backdrop root, and the
   bar's own frosted glass then had nothing behind it to blur) */
:root[data-nav] .app-header { view-transition-name: app-header; }
:root[data-nav] .bottom-nav { view-transition-name: tab-bar; }
::view-transition-group(app-header), ::view-transition-group(tab-bar) { animation: none; z-index: 5; }
::view-transition-old(app-header), ::view-transition-old(tab-bar) { display: none; }
::view-transition-new(app-header), ::view-transition-new(tab-bar) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: cubic-bezier(.32,.72,0,1); animation-fill-mode: both; mix-blend-mode: normal; }
/* push: the new page slides over, with a soft shadow on its leading edge; the old one gives way a little and dims */
:root[data-nav="forward"]::view-transition-new(root) { animation-name: vtInOver; z-index: 2; box-shadow: 0 0 32px rgba(0,0,0,.22); }
:root[data-nav="forward"]::view-transition-old(root) { animation-name: vtOutUnder; z-index: 1; }
/* pop: the exact reverse; the page on top stays on top */
:root[data-nav="back"]::view-transition-old(root) { animation-name: vtOutOver; z-index: 2; box-shadow: 0 0 32px rgba(0,0,0,.22); }
:root[data-nav="back"]::view-transition-new(root) { animation-name: vtInUnder; z-index: 1; }
/* another tab: a quick cross-fade, no push */
:root[data-nav="tab"]::view-transition-old(root), :root[data-nav="tab"]::view-transition-new(root) { animation-duration: .2s; animation-timing-function: ease; }
@keyframes vtInOver { from { transform: translateX(var(--vt-in)); } to { transform: none; } }
@keyframes vtOutUnder { from { transform: none; filter: brightness(1); } to { transform: translateX(var(--vt-under)); filter: brightness(.9); } }
@keyframes vtOutOver { from { transform: none; } to { transform: translateX(var(--vt-in)); } }
@keyframes vtInUnder { from { transform: translateX(var(--vt-under)); filter: brightness(.9); } to { transform: none; filter: brightness(1); } }
/* reduced motion: no slide, a simple fade */
@media (prefers-reduced-motion: reduce) {
  :root[data-nav]::view-transition-old(root), :root[data-nav]::view-transition-new(root) { animation-name: none; animation-duration: .15s; box-shadow: none; }
  :root[data-nav]::view-transition-old(root) { animation: vtFadeOut .15s both; } :root[data-nav]::view-transition-new(root) { animation: vtFadeIn .15s both; }
}
@keyframes vtFadeOut { to { opacity: 0; } } @keyframes vtFadeIn { from { opacity: 0; } }

/* The .glass material on the app's own large surfaces: the tab bar, the round bar buttons and the sheets
   are painted from the --lg-* tokens, so the default density ("tinted") takes the .glass values here:
   the same tints, 16px blur with 180% saturation and a touch of brightness, the 1px rim, the top and bottom
   inner highlights, the 32px shadow and the diagonal sheen. The other densities in Settings (crystal, clear,
   solid) keep their own values. A sheet keeps its denser fill: it carries text. */
:root[data-style="glass"]:not([data-glass="crystal"]):not([data-glass="clear"]):not([data-glass="solid"]) {
  --lg-fill: rgba(28,28,30,.55); --lg-blur: 16px; --lg-sat: 180%;
  --lg-rim: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.18);
  --lg-gloss: linear-gradient(135deg, rgba(255,255,255,.25), transparent 40%);
  --lg-shadow: 0 8px 32px rgba(0,0,0,.25);
}
:root[data-style="glass"][data-theme="light"]:not([data-glass="crystal"]):not([data-glass="clear"]):not([data-glass="solid"]) { --lg-fill: rgba(255,255,255,.12); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-style="glass"]:not([data-glass="crystal"]):not([data-glass="clear"]):not([data-glass="solid"]) :is(.bottom-nav, .gp-bar)::before {
    -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.05); backdrop-filter: blur(16px) saturate(180%) brightness(1.05);
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root[data-style="glass"]:not([data-glass="solid"]) { --lg-fill: rgba(28,28,30,.94); --lg-blur: 0px; }
  :root[data-style="glass"][data-theme="light"]:not([data-glass="solid"]) { --lg-fill: rgba(246,246,250,.94); }
}

/* "listen to the teacher": the button shows that it is reading, and a second tap stops it */
.read-btn.reading { color: var(--accent); }
.read-btn.reading svg { animation: read-pulse 1.2s ease-in-out infinite; }
@keyframes read-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .read-btn.reading svg { animation: none; } }
.read-player[hidden], .read-head[hidden] { display: none !important; }
.hero-tip .tip-read { margin-top: 6px; align-self: flex-start; width: auto; min-height: 32px; padding-inline: 12px; }

/* the weekly report */
.weekly-rows { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.weekly-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.weekly-rows .num { font-variant-numeric: tabular-nums; }
/* the verdict is a sentence, not a short tag: unlike other pills it wraps, so with large text (the app's own
   size or the phone's) it stays inside the card instead of pushing the page sideways */
.weekly-rows .pill { margin-inline-start: auto; }
:root[data-style] .weekly-rows .pill { white-space: normal; max-width: 100%; overflow-wrap: break-word; }
.weekly-pair { gap: 10px; }
.weekly-take { flex: 1 1 140px; }

/* the daily reminder's hour, under its switch */
.remind-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 16px 12px; }
.remind-extra .remind-time { font: inherit; font-size: max(16px, 1em); /* never under 16px (the app text size at 85%): iOS zooms in on a smaller field */ padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line, rgba(0,0,0,.15)); background: transparent; color: inherit; }
.remind-extra #set-remind-hint { flex-basis: 100%; }

/* device check */
.dc-q { margin: 12px 0 6px; font-weight: 600; }
.dc-ask { gap: 8px; }
.dc-sum { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }

/* backup to Google Drive */
.drive-box { display: grid; gap: 10px; }
.drive-list ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.drive-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* the teacher's player: play / pause, stop, speed */
.read-player { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.read-btn.paused { color: var(--accent); }
.stats .read-player .read-stop { width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; }

/* the drawing beside a text the teacher reads: calm on a chosen frame, moving while it is heard */
.read-art { margin: 8px auto 10px; max-width: 360px; border-radius: 16px; }
.hero-tip .read-art { max-width: 200px; margin: 0 0 8px; opacity: .92; }
.modal .read-art { max-width: 320px; }
.help-read { display: flex; justify-content: center; margin: -2px 0 10px; }
/* the tip's drawing is small: its words would be too small to read */
.hero-tip .read-art text { display: none; }

/* a drill that waits for a lesson */
.drill.locked .title { color: var(--muted, inherit); }
.drill.locked svg { opacity: .7; }
.primer-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }

/* the one-minute explainer: one calm panel, a film strip of the app's own parts, and player controls */
.explainer { margin: 12px 0 14px; padding: 14px 14px 12px; border-radius: 20px; background: var(--surface-2); }
.explainer .ex-title { font-size: .82em; color: var(--muted); text-align: center; margin-bottom: 4px; }
.explainer-stage svg { width: 100%; height: auto; display: block; margin: 6px 0 2px; }
.ex-key { fill: var(--surface); stroke: var(--line); stroke-width: 1; transition: fill .2s; }
.ex-key.b { fill: var(--text, #222); }
.ex-key.on { fill: var(--accent); }
.ex-arc { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
.ex-arc.draw { animation: ex-draw .9s ease forwards; }
@keyframes ex-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ex-arc.draw { animation: none; stroke-dashoffset: 0; } }
.explainer-name { font-size: 1.25em; font-weight: 700; text-align: center; min-height: 1.4em; color: var(--accent); }
.explainer-cap { text-align: center; min-height: 3.1em; margin: 2px 4px 10px; font-size: .95em; line-height: 1.45; }
.ex-progress { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 0 6px 12px; }
.ex-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .6s ease; }
.ex-controls { display: flex; justify-content: center; align-items: center; gap: 16px; }
.ex-play, .ex-stop { display: inline-grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; padding: 0; position: relative; }
.ex-play { width: 56px; height: 56px; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px var(--accent); }
.ex-stop { width: 40px; height: 40px; background: var(--surface); color: var(--text, inherit); box-shadow: inset 0 0 0 1px var(--line); }
.ex-play svg { width: 24px; height: 24px; } .ex-stop svg { width: 16px; height: 16px; }
.ex-play:active, .ex-stop:active { transform: scale(.94); }
.primer-hint { margin-top: 2px; }


.drive-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.drive-logo { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }

/* The teacher's player, in the Liquid Glass manner of iOS 26 media controls: separate drops of glass.
   While it reads, the main control is a tinted glass pill (pause / go on); stop and speed come out of it
   as two small round drops, on a spring, and go back into it when the reading ends. */
.read-player { display: inline-flex; align-items: center; gap: 8px; }
.read-player.active:not(.icon-only) > .read-btn {
  border-radius: 999px; min-height: 38px; padding-inline: 14px 16px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--lg-fill, rgba(255,255,255,.6))) !important;
  -webkit-backdrop-filter: blur(var(--lg-blur, 20px)) saturate(var(--lg-sat, 180%)); backdrop-filter: blur(var(--lg-blur, 20px)) saturate(var(--lg-sat, 180%));
  box-shadow: var(--lg-rim, inset 0 1px 0 rgba(255,255,255,.6)), 0 6px 18px -10px color-mix(in srgb, var(--accent) 70%, transparent) !important;
}
.read-player > .read-stop, .read-player > .read-speed {
  width: 38px; height: 38px; min-height: 38px; min-width: 38px; padding: 0; border-radius: 50%;
  display: inline-grid; place-items: center; color: var(--text, inherit); font-size: .8rem; font-weight: 700;
  background: var(--lg-gloss, none), var(--lg-fill, rgba(255,255,255,.6)) !important;
  -webkit-backdrop-filter: blur(var(--lg-blur, 20px)) saturate(var(--lg-sat, 180%)); backdrop-filter: blur(var(--lg-blur, 20px)) saturate(var(--lg-sat, 180%));
  box-shadow: var(--lg-rim, inset 0 1px 0 rgba(255,255,255,.6)), 0 4px 14px -8px rgba(0,0,0,.35) !important;
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.read-player > .read-stop svg { width: 13px; height: 13px; }
.read-player.active > .read-stop:not([hidden]), .read-player.active > .read-speed:not([hidden]) { animation: drop-out .42s cubic-bezier(.34, 1.56, .64, 1) both; }
.read-player.active > .read-speed:not([hidden]) { animation-delay: .05s; }
@keyframes drop-out { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 18px)) scale(.4); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
[dir="rtl"] .read-player, :root[dir="rtl"] .read-player { --dir: 1; }
.read-player > .read-stop:active, .read-player > .read-speed:active, .read-player.active > .read-btn:active { transform: scale(.92); transition: transform .12s; }
.read-btn.reading svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .read-player.active > .read-stop, .read-player.active > .read-speed { animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { .read-player.active > .read-btn, .read-player > .read-stop, .read-player > .read-speed { -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* the player under a drawing stands on its own line, with air above the content that follows */
.read-head-block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 28px; }
.read-head-block .read-art { align-self: center; }
.read-head-block > .row { margin-bottom: 0 !important; width: 100%; }

/* ---------- tab bar, as Apple draws it (iOS 26 video): a light glass capsule with a soft white rim; the
   selected tab sits on a quiet grey pill and takes the accent; symbols are larger. Pressed or dragged,
   the pill becomes a CLEAR lens: no fill, a thin bright rim, the edge bending what is under it, a soft
   shadow below. (This block comes last and wins over the earlier, brighter bubble.) ---------- */
:root[data-style="glass"] .bottom-nav { height: auto; min-height: 62px; border-radius: 31px; }
/* Large text (outside audit, finding 10). The bar is as tall as its tabs need (62 at the usual size), and the
   page, the toasts and the "now playing" pill keep clear of its real height (--tab-h, measured by
   js/ui/tabbar.js). Its labels keep the tab bar's own size when the system or the browser scales text, as an
   iPhone's tab bar does (its words do not grow with Larger Text): at twice the size, "התקדמות" is wider than
   a fifth of a 320 px bar and "הסשן שלי" ran out of the glass on two lines. A two-word label may still
   break between its words, centred. */
:root[data-style="glass"] .bottom-nav { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root[data-style="glass"] .bottom-nav .tab-label, :root[data-style="glass"] .lens-view > span > .tab-label { text-align: center; line-height: 1.15; }
:root[data-style="glass"] .bottom-nav::before {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 .5px rgba(255,255,255,.35), 0 10px 30px -10px rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.06);
}
:root[data-style="glass"][data-theme="dark"] .bottom-nav::before { box-shadow: inset 0 .5px 0 rgba(255,255,255,.28), inset 0 0 0 .5px rgba(255,255,255,.14), 0 10px 30px -10px rgba(0,0,0,.6); }
:root[data-style="glass"] .bottom-nav a svg, :root[data-style="glass"] .lens-view svg { width: 28px; height: 28px; stroke-width: 1.7; }
:root[data-style="glass"] .bottom-nav a, :root[data-style="glass"] .lens-view > span { font-size: 11px; gap: 3px; }
:root[data-style="glass"] .tab-lens { border-radius: 29px; }
/* at rest: the quiet grey pill */
:root[data-style="glass"] .tab-lens::before { background: rgba(120,120,128,.16); box-shadow: none; }
:root[data-style="glass"][data-theme="dark"] .tab-lens::before { background: rgba(255,255,255,.12); box-shadow: none; }
:root[data-style="glass"][data-theme="light"] .tab-lens::before { background: rgba(0,0,0,.06); box-shadow: none; }
/* lifted: clear glass. Light catches the upper rim, the lower rim is a touch darker, and it casts a soft shadow */
:root[data-style="glass"] .tab-lens::after, :root[data-style="glass"][data-theme="light"] .tab-lens::after {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 55%, rgba(255,255,255,.06));
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.85), inset 0 -1px 1px rgba(0,0,0,.10), inset 0 0 0 .5px rgba(255,255,255,.55), 0 8px 18px -6px rgba(0,0,0,.25);
}
:root[data-style="glass"][data-theme="dark"] .tab-lens::after { box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -1px 1px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.25), 0 8px 18px -6px rgba(0,0,0,.55); }
/* the rim: a thin white line, no colour band */
:root[data-style="glass"] .lens-sheen { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.35) 45%, rgba(255,255,255,.6)); padding: 1px; filter: none; }
/* inside the lifted lens (frame by frame from the iOS 26 recording): the middle shows the tabs larger and
   sharp; a narrow band along the rim bends them further sideways and splits the light, purple-blue on one
   side and warm on the other */
:root[data-style="glass"] .lens-core { -webkit-mask-image: linear-gradient(to right, transparent 2%, #000 15%, #000 85%, transparent 98%); mask-image: linear-gradient(to right, transparent 2%, #000 15%, #000 85%, transparent 98%); }
:root[data-style="glass"] .lens-edge { display: block; -webkit-mask-image: linear-gradient(to right, #000 2%, transparent 15%, transparent 85%, #000 98%); mask-image: linear-gradient(to right, #000 2%, transparent 15%, transparent 85%, #000 98%);
  filter: drop-shadow(calc(var(--fringe, 0) * var(--dir, 1) * 1.8px) 0 0 rgba(255, 176, 72, calc(var(--fringe, 0) * .7))) drop-shadow(calc(var(--fringe, 0) * var(--dir, 1) * -1.8px) 0 0 rgba(118, 92, 255, calc(var(--fringe, 0) * .75))); }
/* crystal (the clearest glass): the pill keeps its deeper tint, and the symbols their full weight, so the
   selected tab stays legible over anything behind the bar */
:root[data-style="glass"][data-glass="crystal"] .tab-lens::before { background: var(--lg-lens); }
:root[data-style="glass"] .bottom-nav a svg, :root[data-style="glass"] .lens-view svg { stroke-width: 1.9; }
/* crystal, clearer (owner, 1.72): less fill and less blur, so the page shows through; the labels and
   symbols keep their contrast through a stronger halo of the page's own colour */
:root[data-style="glass"][data-glass="crystal"] :is(.bottom-nav, .gp-bar) { --lg-fill: color-mix(in srgb, var(--bg) 48%, transparent); --lg-blur: 10px; }
:root[data-style="glass"][data-glass="crystal"] .bottom-nav a { text-shadow: 0 0 1px var(--bg), 0 0 3px var(--bg), 0 0 8px var(--bg), 0 0 14px color-mix(in srgb, var(--bg) 70%, transparent); }
:root[data-style="glass"][data-glass="crystal"] .bottom-nav svg { filter: drop-shadow(0 0 3px var(--bg)) drop-shadow(0 0 1px var(--bg)) drop-shadow(0 0 1px var(--bg)); }

/* adaptive crystal glass (js/ui/tabbar.js adapt): the symbols (sym-) and the words (txt-) each turn dark
   over light content under a dark bar, or light over dark content under a light bar */
:root[data-style="glass"][data-glass="crystal"][data-theme="dark"] .bottom-nav.sym-light a svg { color: #15191b; filter: drop-shadow(0 0 .8px #fff) drop-shadow(0 0 1.6px #fff) drop-shadow(0 0 4px rgba(255,255,255,.85)); }
:root[data-style="glass"][data-glass="crystal"][data-theme="dark"] .bottom-nav.sym-light a.active svg { color: #0b5753; }
:root[data-style="glass"][data-glass="crystal"][data-theme="dark"] .bottom-nav.txt-light a .tab-label { color: #15191b; text-shadow: 0 0 1px #fff, 0 0 3px #fff, 0 0 8px rgba(255,255,255,.85); }
:root[data-style="glass"][data-glass="crystal"][data-theme="dark"] .bottom-nav.txt-light a.active .tab-label { color: #0b5753; }
:root[data-style="glass"][data-glass="crystal"][data-theme="dark"] .bottom-nav.sym-light .tab-lens::before { background: rgba(255,255,255,.55); }
:root[data-style="glass"][data-glass="crystal"][data-theme="light"] .bottom-nav.sym-dark a svg { color: #f2f5f6; filter: drop-shadow(0 0 .8px #000) drop-shadow(0 0 1.6px #000) drop-shadow(0 0 4px rgba(0,0,0,.8)); }
:root[data-style="glass"][data-glass="crystal"][data-theme="light"] .bottom-nav.sym-dark a.active svg { color: #4fe3d4; }
:root[data-style="glass"][data-glass="crystal"][data-theme="light"] .bottom-nav.txt-dark a .tab-label { color: #f2f5f6; text-shadow: 0 0 1px #000, 0 0 3px #000, 0 0 8px rgba(0,0,0,.8); }
:root[data-style="glass"][data-glass="crystal"][data-theme="light"] .bottom-nav.txt-dark a.active .tab-label { color: #4fe3d4; }
:root[data-style="glass"][data-glass="crystal"][data-theme="light"] .bottom-nav.sym-dark .tab-lens::before { background: rgba(0,0,0,.35); }
:root[data-style="glass"] .bottom-nav a { transition: color .25s ease, text-shadow .25s ease; }

/* while a drag passes over a tab: it may be chosen (the selection's colour), nothing lights up */
:root[data-style="glass"] .bottom-nav a.candidate { color: var(--accent-strong); opacity: 1; transition: color .12s; }
:root[data-style="glass"][data-theme="dark"] .bottom-nav a.candidate { color: var(--accent); }

/* ---------- sheets as regular Liquid Glass (owner's choice 2; Apple HIG: the regular variant blurs and
   brightens what is behind for legibility, for components with much text). The sheet floats inset with
   rounded corners all round (as before); its tint is lighter so the screen's colours come through
   blurred; the round close button, the listen button and the secondary buttons are glass drops. ---------- */
:root[data-style="glass"]:not([data-glass="solid"]) { --sheet-fill: rgba(30,30,32,.72); }
:root[data-style="glass"]:not([data-glass="solid"])[data-theme="light"] { --sheet-fill: rgba(255,255,255,.74); }
@media (prefers-color-scheme: light) { :root[data-style="glass"]:not([data-glass="solid"]):not([data-theme="dark"]) { --sheet-fill: rgba(255,255,255,.74); } }
:root[data-style="glass"] .modal::before { backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%); }
:root[data-style="glass"] .modal { box-shadow: 0 18px 44px -14px rgba(0,0,0,.38); }
/* glass drops inside the sheet */
:root[data-style="glass"] .modal .btn:not(.primary), :root[data-style="glass"] .modal .read-btn {
  background: rgba(255,255,255,.5) !important; -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 .5px rgba(0,0,0,.06), 0 4px 12px -6px rgba(0,0,0,.22) !important;
}
:root[data-style="glass"][data-theme="dark"] .modal .btn:not(.primary), :root[data-style="glass"][data-theme="dark"] .modal .read-btn {
  background: rgba(70,70,74,.42) !important;
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.35), inset 0 0 0 .5px rgba(255,255,255,.14), 0 4px 12px -6px rgba(0,0,0,.6) !important;
}
/* The tab bar's words keep 4.5:1 at every glass level. (Audit 1.80, finding 31: "שקוף" and "מעומעם" drew the
   11px words on a thin fill, 12 to 20% white in the light theme and 16 to 55% grey in dark, with no halo: over
   the dark stage in light, or a white card in dark, the selected word fell to about 2:1, and to 4.16:1 over
   the home screen's own cards.) They follow the rule that already held "שקוף מאוד": the bar's glass takes
   the page's own tone, a little denser at each level (48, 58, 68%), and the words and symbols carry a halo of
   the page colour. Over the plain page they look as before. tests/e2e/bars.e2e.mjs, part levels. */
:root[data-style="glass"][data-glass="clear"] :is(.bottom-nav, .gp-bar) { --lg-fill: color-mix(in srgb, var(--bg) 58%, transparent); --lg-blur: 12px; }
:root[data-style="glass"][data-glass="tinted"] :is(.bottom-nav, .gp-bar) { --lg-fill: color-mix(in srgb, var(--bg) 68%, transparent); }
:root[data-style="glass"]:is([data-glass="clear"], [data-glass="tinted"]) .bottom-nav a { text-shadow: 0 0 1px var(--bg), 0 0 3px var(--bg), 0 0 8px var(--bg), 0 0 14px color-mix(in srgb, var(--bg) 70%, transparent); }
/* the selected tab's word stands on a denser pill of its own, as on "שקוף מאוד" (dark glass in dark, bright
   frosted glass in light): the grey pill, 6 to 12%, left that word the weakest on the bar */
:root[data-style="glass"]:is([data-glass="clear"], [data-glass="tinted"]) :is(.bottom-nav, .gp-bar) { --lg-lens: rgba(0,0,0,.3); }
:root[data-style="glass"]:is([data-glass="clear"], [data-glass="tinted"])[data-theme="light"] :is(.bottom-nav, .gp-bar) { --lg-lens: rgba(255,255,255,.8); }
:root[data-style="glass"]:is([data-glass="clear"], [data-glass="tinted"]) .tab-lens::before { background: var(--lg-lens); }
:root[data-style="glass"]:is([data-glass="clear"], [data-glass="tinted"]) .bottom-nav svg { filter: drop-shadow(0 0 3px var(--bg)) drop-shadow(0 0 1px var(--bg)) drop-shadow(0 0 1px var(--bg)); }

/* The device asking for less transparency (or more contrast) wins over every glass level: the sheet, its
   buttons and the tab bar turn opaque. (Audit 1.80, finding 29: the reduce-transparency rule here was a plain
   :root[data-style] and lost to the more specific fills above, so the sheet stayed 74% white or 72% grey with
   a 26px blur; the crystal tab bar sets its own fill on the bar itself, so the root's opaque fill never
   reached it. tests/e2e/glassnav.e2e.mjs, part reduce.) */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root:root:root[data-style="glass"]:not([data-glass="solid"]) { --sheet-fill: var(--surface); }
  :root[data-style="glass"] .modal::before { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  :root:root:root[data-style="glass"] .modal .btn:not(.primary), :root:root:root[data-style="glass"] .modal .read-btn { background: var(--surface-2) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  :root:root:root[data-style="glass"] :is(.bottom-nav, .gp-bar) { --lg-fill: #2c2c2e; --lg-blur: 0px; }
  :root:root:root[data-style="glass"][data-theme="light"] :is(.bottom-nav, .gp-bar) { --lg-fill: #ffffff; }
  :root[data-style="glass"] :is(.bottom-nav, .gp-bar)::before { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  :root[data-style="glass"] .bottom-nav::after { display: none !important; }
}

/* On a wide screen the header's buttons stand at the edges of the content column (main#view: 760px with the
   gutter inside), not at the far edges of the window: the help is found next to what it explains. */
@media (min-width: 800px) {
  :root[data-style="glass"] .app-header {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100% - 760px) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px), calc((100% - 760px) / 2 + var(--gutter)));
  }
}

/* 1.75: layout findings (tests/e2e/layout.e2e.mjs): the guide's actions get room; the reminder time is a full tap target */
.gs-body .gs-actions { gap: 8px; margin-top: 12px; align-items: center; }
.remind-extra .remind-time { min-height: 44px; }

/* the band (compose: hum to song): one button per instrument, lit when it plays, with a live level line */
.band { margin-top: 16px; }
.band-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.band-track { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line, rgba(127,127,127,.25)); background: var(--surface-2, rgba(127,127,127,.08)); color: var(--muted, inherit); font: inherit; text-align: start; cursor: pointer; }
.band-track .band-name { font-weight: 600; }
.band-track.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--fg, inherit); }
.band-track:not(.on) .band-name { text-decoration: line-through; opacity: .7; }
.band-meter { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: right; transform: scaleX(0); transition: transform .08s linear; }
@media (prefers-reduced-motion: reduce) { .band-meter { transition: none; } }

/* the registers chapter: the personal chest/head estimate (js/exercises/registers.js) */
.reg-est { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 7%, transparent); text-align: start; }
.reg-est .reg-body { margin-top: 8px; }
.reg-bar { position: relative; display: flex; justify-content: space-between; min-height: 26px; align-items: center; padding: 0 8px; border-radius: 13px; background: linear-gradient(to left, color-mix(in srgb, var(--coral) 30%, transparent), color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--m6) 30%, transparent)); font-size: calc(12px * var(--ts)); color: var(--muted); }
.reg-dot { position: absolute; top: 3px; width: 20px; height: 20px; margin-inline-start: -10px; inset-inline-start: 50%; border-radius: 50%; background: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); opacity: .25; transition: inset-inline-start .15s ease-out; }
.reg-text { display: block; margin-top: 6px; }
.reg-est-none { margin: 8px 0; text-align: start; }
.reg-live-bad { color: var(--bad-text); font-weight: 600; }
.reg-breaks { text-align: start; margin: 8px 0 0; padding-inline-start: 18px; }
@media (prefers-reduced-motion: reduce) { .reg-dot { transition: none; } }

/* Settings → "הזכוכית בסרגלים": a live sample of the tab bar over a busy picture (js/views/settings.js,
   glassPreview). Its bar takes its fill, blur and pill from the very rules of the real tab bar (the
   :is(.bottom-nav, .gp-bar) rules above, and the opaque fill when the device asks for more contrast or less
   transparency), so it shows exactly what each level does. tests/e2e/glasspreview.e2e.mjs */
.glass-preview { position: relative; isolation: isolate; overflow: hidden; height: 96px; margin-top: 10px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 .5px var(--fill-3); }
.glass-preview .gp-scene { position: absolute; inset: 0; z-index: -3; padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; pointer-events: none;
  background:
    radial-gradient(60px 60px at 18% 78%, var(--m3), transparent 70%),
    radial-gradient(70px 50px at 52% 88%, var(--m1), transparent 70%),
    radial-gradient(60px 60px at 86% 74%, var(--m4), transparent 70%),
    repeating-linear-gradient(115deg, var(--m5) 0 10px, transparent 10px 22px, var(--m6) 22px 30px, transparent 30px 44px);
}
.glass-preview .gp-scene b { font-size: calc(20px * var(--ts-art, 1)); font-weight: 700; color: var(--text); line-height: 1.1; white-space: nowrap; }
.glass-preview .gp-scene i { display: block; height: 7px; border-radius: 4px; background: var(--text); opacity: .7; width: 70%; }
.glass-preview .gp-scene i:nth-of-type(2) { width: 88%; } .glass-preview .gp-scene i:nth-of-type(3) { width: 54%; }
:root[data-style="glass"] .gp-bar { position: absolute; inset-inline: 10px; bottom: 8px; height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: space-around; padding: 0 4px; color: var(--text); }
:root[data-style="glass"] .gp-bar::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--lg-gloss), var(--lg-fill);
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  box-shadow: var(--lg-rim), var(--lg-shadow);
}
/* the sample's tab labels keep the real bar's 11px, as the bar's own labels do under any text size */
:root[data-style="glass"] .gp-tab { font-size: 11px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; flex: 1; padding: 3px 4px; border-radius: 999px; line-height: 1.15; opacity: .82;
  text-shadow: 0 0 1px var(--bg), 0 0 3px var(--bg), 0 0 8px var(--bg); }
:root[data-style="glass"] .gp-tab svg { width: 22px; height: 22px; stroke-width: 1.9; filter: drop-shadow(0 0 2px var(--bg)) drop-shadow(0 0 1px var(--bg)); }
:root[data-style="glass"] .gp-tab.on { opacity: 1; font-weight: 600; color: var(--accent-strong); background: var(--lg-lens); }
:root[data-style="glass"][data-theme="dark"] .gp-tab.on { color: var(--accent); }
:root[data-style="glass"] .gp-tab > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glass-note { margin: 8px 0 0; }
.glass-note[hidden] { display: none; }

/* ---------- The tab bar's large view (js/ui/tabbar.js), as iOS's Large Content Viewer ----------
   The tab bar's labels keep their size at every text size (an iPhone's tab bar does the same, to leave the room
   to the content). At a large text size (150% and up) a long press on a tab shows its symbol and its name large,
   in a glass panel in the middle of the screen; the finger can slide along the bar to read the others, and lifting
   it opens the tab under it. Its sizes are in rem: they follow the text size and the device's own size together. */
.tab-hud { position: fixed; inset: 0; margin: auto; width: fit-content; height: fit-content; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-width: 9rem; min-height: 9rem; max-width: calc(100vw - 32px); padding: 1.4rem 1.6rem; box-sizing: border-box; border-radius: 2rem; isolation: isolate; pointer-events: none; -webkit-user-select: none; user-select: none; direction: rtl; text-align: center; color: var(--text); box-shadow: var(--lg-shadow); opacity: 0; visibility: hidden; scale: .9; transition: opacity .16s ease, scale .2s cubic-bezier(.32,.72,0,1), visibility 0s linear .2s; }
.tab-hud.on { opacity: 1; visibility: visible; scale: 1; transition: opacity .12s ease, scale .32s cubic-bezier(.34,1.45,.64,1), visibility 0s; }
.tab-hud::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--lg-gloss), var(--lg-fill); backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)); box-shadow: var(--lg-rim); }
.tab-hud svg { width: 3rem; height: 3rem; flex: none; stroke-width: 1.7; }
.tab-hud-label { font-size: 1.5rem; font-weight: 600; line-height: 1.2; text-wrap: balance; }
.tab-hud.active { color: var(--accent-strong); }
:root[data-theme="dark"] .tab-hud.active { color: var(--accent); }
/* a fuller fill than the bar's (as a sheet's), so the large words stay legible over anything under them */
:root[data-style="glass"]:not([data-glass="solid"]) .tab-hud { --lg-fill: color-mix(in srgb, var(--bg) 72%, transparent); }
@media (prefers-reduced-motion: reduce) { .tab-hud, .tab-hud.on { scale: 1; transition: opacity .12s ease, visibility 0s; } }
@media (prefers-reduced-transparency: reduce) { .tab-hud::before { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { .tab-hud::before { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 0 0 1.5px currentColor; } }
