/* Musicalio website. Dark theme from the Musicalio design system (design/site/ snapshot of the "Musicalio Homepage"
   canvas): near-black surfaces, brand red for the logo and accents, darker red for buttons, green for correct notes. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/inter-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  /* Design system tokens */
  --bg: #0b0b0c; --surface-band: #111113; --surface-1: #151517; --surface-2: #18181b; --surface-3: #1c1c1f; --surface-4: #222226;
  --divider: #1f1f22; --border: #26262a; --border-strong: #3a3a3f; --border-hover: #6a6a70; --track: #2c2c30;
  --text: #f4f4f5; --text-2: #d4d4d8; --text-3: #a1a1aa; --text-4: #8e8e95;
  --brand: #f60000; --brand-deep: #c40000; --action: #d80000; --action-hover: #ee0000; --on-action: #fff; --on-brand: #0b0b0c;
  --link: #ff4d4d; --link-hover: #ff7a7a; --brand-soft: #2a0a0a; --brand-soft-text: #ff6b6b;
  --success: #4ade80; --success-soft: #0f2a1b; --success-line: #1f6b3e; --note-correct: #1f9d55;
  --paper: #f7f5f0; --paper-ink: #1a1a1a; --paper-ink-2: #4a4a50; --staff: #2a2a2a; --tab-line: #8a8a8a; --paper-track: #dcd8cf;
  --r-sm: 12px; --r-md: 14px; --r-paper: 18px; --r-card: 20px; --r-tile: 24px; --r-panel: 28px; --r-pill: 999px;
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, .45); --shadow-glow: 0 30px 90px rgba(246, 0, 0, .14);
  --font-display: 'Space Grotesk', Inter, system-ui, sans-serif; --font-sans: Inter, system-ui, sans-serif;

  /* Older names still used by the pages not yet redrawn (pricing, lessons, contact, legal), mapped onto the dark theme. */
  --ground: var(--bg); --card: var(--surface-1); --ink: var(--text); --ink-2: var(--text-3); --muted: var(--text-4);
  --line: var(--border); --sand: var(--surface-band); --stone: var(--border-strong);
  --accent: var(--action); --accent-ink: var(--link); --accent-soft: var(--brand-soft); --peach: var(--brand-soft-text);
  --ink-panel: var(--surface-3); --on-ink: var(--text); --on-ink-2: var(--text-2); --on-ink-3: var(--text-3);
}

/* Light theme (design canvas "Homepage — light theme"): the system setting, or the header switch (data-theme on <html>). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #ffffff; --surface-band: #f7f6f4; --surface-1: #f4f3f1; --surface-2: #efeeeb; --surface-3: #e8e7e3; --surface-4: #e2e0dc;
    --divider: #e6e4e0; --border: #dedcd7; --border-strong: #bdbab4; --border-hover: #8f8c86; --track: #d6d4cf;
    --text: #141416; --text-2: #2e2e33; --text-3: #55555c; --text-4: #6b6b72;
    --on-brand: #ffffff; --link: #b00000; --link-hover: #d80000; --brand-soft: #fde8e8; --brand-soft-text: #b00000;
    --success: #15803d; --success-soft: #e3f5ea; --success-line: #86d4a4;
    --paper: #fffdf8; --shadow-lift: 0 16px 40px rgba(20, 20, 22, .12); --shadow-glow: 0 30px 90px rgba(246, 0, 0, .08);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --surface-band: #f7f6f4; --surface-1: #f4f3f1; --surface-2: #efeeeb; --surface-3: #e8e7e3; --surface-4: #e2e0dc;
  --divider: #e6e4e0; --border: #dedcd7; --border-strong: #bdbab4; --border-hover: #8f8c86; --track: #d6d4cf;
  --text: #141416; --text-2: #2e2e33; --text-3: #55555c; --text-4: #6b6b72;
  --on-brand: #ffffff; --link: #b00000; --link-hover: #d80000; --brand-soft: #fde8e8; --brand-soft-text: #b00000;
  --success: #15803d; --success-soft: #e3f5ea; --success-line: #86d4a4;
  --paper: #fffdf8; --shadow-lift: 0 16px 40px rgba(20, 20, 22, .12); --shadow-glow: 0 30px 90px rgba(246, 0, 0, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img, svg { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--surface-3); color: var(--text); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.sec { padding-top: 56px; padding-bottom: 56px; }
.s { padding-top: 24px; padding-bottom: 48px; }
.ink, .sand, .band-bg { background: var(--surface-band); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px 56px; align-items: center; }
.split--top { align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Type */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; hyphens: auto; overflow-wrap: break-word; }
.h1 { font-size: clamp(40px, 5.5vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.h1 .hl, .hl { color: var(--brand); }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
.h2--xl { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.h2--m { font-size: 26px; letter-spacing: -0.02em; }
.h3 { font-size: 20px; letter-spacing: -0.01em; }
.eyebrow { margin: 0; align-self: flex-start; padding: 7px 13px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-soft-text); font-size: 14px; font-weight: 600; }
.lead { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--text-3); }
.note { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-4); }
.small { font-size: 14px; color: var(--text-4); }
.heading { display: flex; flex-direction: column; gap: 12px; }
.more-link { font-size: 15px; font-weight: 600; }
/* Section title with its next step on the right. */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* Button (design component Button: primary / secondary, optional arrow or camera icon, block) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border-radius: var(--r-md);
  font: inherit; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s; }
.btn svg { flex: none; }
.btn--md { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn--secondary, .btn--outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover, .btn--outline:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-hover); }
.btn--white { background: var(--text); color: var(--bg); }
.btn--white:hover { background: #fff; color: var(--bg); }

/* Header (design component SiteHeader) */
.hdr { background: var(--bg); color: var(--text); position: relative; z-index: 5; }
.hdr__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand:hover { color: var(--text); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; color: var(--text-2); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.nav .hdr__signin { margin-left: 8px; padding: 0 18px; border: 1px solid var(--border-strong); font-weight: 600; color: var(--text); }
.menu { display: none; }
/* phones: the most visited pages as a row of chips under the header; the rest stay in the menu */
.qnav { display: none; }
.qnav__in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; margin-top: -6px; }
.qnav__in::-webkit-scrollbar { display: none; }
.qnav a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); color: var(--text-2); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.qnav a[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.qnav a.qnav__scan { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.qnav svg { width: 16px; height: 16px; }
.menu > summary { list-style: none; width: 48px; height: 48px; border-radius: var(--r-md); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.menu > summary::-webkit-details-marker { display: none; }
.menu .ic-close, .menu[open] .ic-open { display: none; }
.menu[open] .ic-close { display: block; }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--divider); padding: 0 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.menu__panel a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: var(--r-md); text-decoration: none; font-size: 18px; font-weight: 600; color: var(--text-2); }
.menu__panel a[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.menu__panel .hdr__signin { margin-top: 8px; justify-content: center; border: 1px solid var(--border-strong); color: var(--text); font-size: 16px; }
.brand { margin-right: auto; }
.theme { flex: none; width: 48px; height: 48px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.theme[hidden] { display: none; }
/* Language suggestion bar above the header (site.js shows it). */
.langbar { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.langbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.langbar__in p { flex: 1 1 200px; margin: 0; color: var(--text); font-weight: 500; }
.langbar__close { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-2); cursor: pointer; }
.langbar__close:hover { color: var(--text); background: var(--surface-3); }
.langbar__close .ic-close { display: block; }
.lang { flex: none; position: relative; }
.lang > summary { list-style: none; cursor: pointer; min-width: 48px; height: 48px; padding: 0 10px; box-sizing: border-box; border-radius: var(--r-md); border: 1px solid var(--border-strong); color: var(--text-2); display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font-sans); letter-spacing: .04em; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover, .lang[open] > summary { color: var(--text); border-color: var(--border-hover); }
.lang__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 160px; padding: 6px; display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lift); }
.lang__item { min-height: 44px; padding: 0 12px; display: flex; align-items: center; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-weight: 500; }
.lang__item:hover { color: var(--text); background: var(--surface-2); }
.menu__panel .menu__lang { font-size: 16px; font-weight: 500; color: var(--text-3); }
.theme:hover { border-color: var(--border-hover); }
.theme .ic-moon { display: none; }
:root[data-theme="light"] .theme .ic-sun { display: none; }
:root[data-theme="light"] .theme .ic-moon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme .ic-sun { display: none; } :root:not([data-theme="dark"]) .theme .ic-moon { display: block; } }
@media (max-width: 1109px) { .nav { display: none; } .menu { display: block; } .qnav { display: block; } }
/* Longer nav labels (Slovak, German) need the menu button a little sooner, before the header wraps. */
@media (max-width: 1159px) { :root:not(:lang(en)) .nav { display: none; } :root:not(:lang(en)) .menu { display: block; } :root:not(:lang(en)) .qnav { display: block; } }

/* Footer (design component SiteFooter) */
.ftr { background: var(--bg); color: var(--text-4); border-top: 1px solid var(--divider); font-size: 14px; }
.ftr__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.ftr__col { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.ftr__brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); }
.ftr__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.ftr nav { display: flex; flex-direction: column; gap: 10px; }
.ftr nav b { color: var(--text); font-weight: 600; }
.ftr a { color: var(--text-3); text-decoration: none; }
.ftr a:hover { color: var(--text); }

/* Cards and surfaces */
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-3); }
.card .more-link { margin-top: auto; }
.panel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-panel); padding: clamp(20px, 5vw, 40px); }
.panel-ink { background: var(--surface-2); color: var(--text); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.panel-ink p { margin: 0; color: var(--text-3); }
.keys { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; font-size: 14px; }
.keys div { background: var(--surface-3); border-radius: var(--r-sm); padding: 14px; }
.keys dt { font-weight: 600; }
.keys dd { margin: 2px 0 0; color: var(--text-3); }
.ill { width: 100%; }
.ill svg { display: block; width: 100%; height: auto; border-radius: 16px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 2px; }

/* Tables (stack into cards when narrow) */
.tbl { background: var(--surface-1); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; container-type: inline-size; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl thead th { text-align: left; font-size: 13px; color: var(--text-3); padding: 14px 18px; font-weight: 600; background: var(--surface-1); }
.tbl tbody tr { border-top: 1px solid var(--border); }
.tbl th[scope="row"] { padding: 12px 18px; text-align: left; font-weight: 600; }
.tbl td { padding: 12px 18px; }
.tbl .mut { color: var(--text-4); }
.tbl .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; }
.tbl .sub { display: block; margin-top: 4px; font-size: 12px; color: var(--text-4); }
.tbl .lb { display: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: var(--r-pill); }
.tag--accent { background: var(--brand-soft); color: var(--brand-soft-text); }
.tag--success { background: var(--success-soft); color: var(--success); }
.yes { color: var(--success); font-weight: 700; }
@container (max-width: 600px) {
  .tbl table, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl thead { display: none; }
  .tbl tr { padding: 16px; }
  .tbl th[scope="row"] { padding: 0 0 10px; font-size: 17px; }
  .tbl td { padding: 6px 0; display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
  .tbl .lb { display: block; font-size: 12px; font-weight: 600; color: var(--text-4); }
}

/* Tool tiles (home "Free tools") */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.tool { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-tile); padding: clamp(18px, 4vw, 28px); display: flex; align-items: center; gap: clamp(14px, 3vw, 24px); text-decoration: none; color: var(--text); transition: border-color .15s; }
.tool:hover { color: var(--text); border-color: var(--border-strong); }
.tool > svg, .tool__dots { flex: none; width: 84px; }
.tool h3 { font-size: 24px; }
.tool p { margin: 6px 0 0; color: var(--text-3); line-height: 1.5; }
.tool__dots { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tool__dots span { width: 18px; height: 18px; border-radius: 50%; background: var(--border-strong); }
.tool__dots span:first-child { width: 24px; height: 24px; background: var(--brand); }

/* Pricing cards */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.plan { background: var(--surface-2); border: 1px solid transparent; border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.plan--line { border-color: var(--border-strong); }
.plan--plus { border: 2px solid var(--brand); }
.plan h3 { font-size: 22px; }
.plan__price { font-family: var(--font-display); font-size: 36px; font-weight: 700; }
.plan__price small { font-family: var(--font-sans); font-size: 16px; color: var(--text-4); font-weight: 500; }
.plan p { margin: 0; color: var(--text-3); line-height: 1.6; }
.plan > :last-child { margin-top: auto; }
/* Older two-card pricing (pricing and features pages until they are redrawn) */
.price { height: 100%; background: var(--surface-2); color: var(--text); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--border-strong); }
.price--plus { border: 2px solid var(--brand); }
.price__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 40px; }
.price__name { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.price__amount { margin: 0; font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.price__amount small { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--text-4); }
.price ul { margin: 0; padding: 0 0 0 18px; font-size: 15px; line-height: 1.8; color: var(--text-3); }
.price__cta { margin-top: auto; padding-top: 8px; }
.toggle { display: inline-flex; background: var(--surface-4); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.toggle button { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-pill); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--text-2); }
.toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.toggle em { font-style: normal; color: var(--success); }
.toggle button[aria-pressed="true"] em { color: var(--note-correct); }
[data-interval="year"] .m-only, [data-interval="month"] .y-only { display: none; }
.bars { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 3px; }
.bars span { height: 26px; border-radius: 3px; background: var(--border-strong); }
.bars span.k { background: var(--brand); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--border-strong); }
.legend i.k { background: var(--brand); }

/* FAQ */
.faq { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 48px; }
.faq div { border-top: 1px solid var(--border); padding: 18px 0; }
.faq dt { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.faq dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-3); }

/* Closing call to action: a paper card (old "band" markup keeps working) */
.band .wrap, .cta-card { margin-top: 24px; margin-bottom: 48px; background: var(--paper); color: var(--paper-ink); border-radius: var(--r-panel); padding: clamp(20px, 5vw, 40px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band { background: transparent; padding: 0 24px; }
@media (max-width: 480px) { .band { padding: 0 16px; } }
.band p, .cta-card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--paper-ink); }
.cta-card p { margin: 8px 0 0; color: var(--paper-ink-2); font-size: 18px; line-height: 1.6; }
.band .btn { background: var(--action); color: #fff; border-color: transparent; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: var(--text-3); }
.steps li > span:first-child { flex: none; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-soft-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps b { color: var(--text); }

/* Jump links */
.jump { display: flex; gap: 8px; flex-wrap: wrap; }
.jump a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: var(--border-hover); color: var(--text); }

/* Lessons page (until redrawn) */
/* Lessons: catalog (instrument picker, filters, rows) and the lesson page */
.crumbs { font-size: 14px; color: var(--text-4); }
.crumbs a { color: var(--text-4); }
.crumbs a:hover { color: var(--text-2); }
.crumbs [aria-current] { color: var(--text-2); }
.ltools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }
.ltools .toggle button { min-height: 44px; padding: 0 16px; font-size: 14px; }
.ltools .toggle button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.ltools + .seg button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.pick { position: relative; }
.pick > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; }
.pick > summary::-webkit-details-marker { display: none; }
.pick[open] > summary > svg { transform: rotate(180deg); }
.pick__badge { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-soft-text); display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-display); }
.pick__menu { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; width: min(300px, calc(100vw - 32px)); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-card); padding: 8px; box-shadow: var(--shadow-lift); display: flex; flex-direction: column; gap: 2px; }
.pick__menu > * { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: var(--r-md); color: var(--text); text-decoration: none; font-weight: 600; }
.pick__menu a:hover, .pick__menu a[aria-current] { background: var(--surface-4); }
.pick__menu a[aria-current] .pick__badge { background: var(--brand); color: var(--on-brand); }
.pick__name { flex-grow: 1; }
.pick__n { color: var(--text-4); font-size: 13px; font-weight: 500; }
.pick__soon { color: var(--text-4); }
.lgroup { border-top: 1px solid var(--divider); padding: 36px 0 44px; }
.lgroup__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.lbars { display: flex; gap: 4px; }
.lbars span { width: 24px; height: 6px; border-radius: 3px; background: var(--track); }
.lbars span.on { background: var(--action); }
.lrows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.lrow { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: var(--r-paper); background: var(--surface-1); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: background .15s, border-color .15s; }
.lrow:hover { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); }
.lrow:hover b { text-decoration: underline; text-underline-offset: 4px; }
.lrow[hidden] { display: none; }
.lrow__n { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font-display); background: var(--surface-4); color: var(--text-3); }
.lrow__n.on { background: var(--action); color: var(--on-action); }
.lrow__t { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lrow__t b { font-size: 16px; line-height: 1.3; }
.lrow__t span { font-size: 13px; color: var(--text-3); }
.lrow > svg { flex: none; width: 18px; height: 18px; color: var(--text-4); }
.lhero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.tagchip { padding: 7px 13px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); font-size: 14px; font-weight: 600; }
.lfacts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.lfacts div { background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.lfacts dt { color: var(--text-4); font-size: 13px; }
.lfacts dd { margin: 4px 0 0; font: 700 20px/1.2 var(--font-display); }
.lscore { margin: 0; background: var(--paper); color: var(--paper-ink); border-radius: var(--r-panel); padding: clamp(16px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-glow); }
.lscore__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lscore__head b { font: 700 18px/1.2 var(--font-display); }
.lscore__head span, .lscore figcaption { color: var(--paper-ink-2); font-size: 13px; line-height: 1.5; }
.lscore svg { width: 100%; height: auto; display: block; }
.lsteps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.lsteps li { display: flex; gap: 14px; align-items: center; background: var(--surface-2); border-radius: 16px; padding: 16px 18px; color: var(--text-3); }
.lsteps li > span:first-child { font: 700 22px/1 var(--font-display); color: var(--brand); }
.lsteps b { color: var(--text); }
@media (max-width: 860px) { .lhero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ltools { align-items: stretch; flex-direction: column; } .ltools .toggle { overflow-x: auto; align-self: stretch; min-width: 0; max-width: 100%; } .ltools .toggle button { white-space: nowrap; } }

/* LessonCard (design component): cream paper card, red title with chevron, two bars of notation, level meter */
.lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.lesson { background: var(--paper); color: var(--paper-ink); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.lesson:hover { color: var(--paper-ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.lesson h3 { display: flex; align-items: center; gap: 4px; font-size: 28px; letter-spacing: -0.02em; color: var(--action); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.lesson:hover h3 { text-decoration-line: underline; }
.lesson > svg { display: block; width: 100%; height: auto; }
.lesson h3 svg { flex: none; }
.lesson p { margin: 0; color: var(--paper-ink-2); line-height: 1.55; font-size: 16px; }
.lesson__meter { display: flex; gap: 4px; margin-top: auto; }
.lesson__meter span { width: 24px; height: 6px; border-radius: 3px; background: var(--paper-track); }
.lesson__meter span.on { background: var(--action); }
@media (prefers-reduced-motion: reduce) { .lesson { transition: none; } .lesson:hover { transform: none; } }

/* Contact */
.mail-card { gap: 14px; padding: 32px; }
.mail-card a.big { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration-color: var(--brand); text-underline-offset: 6px; overflow-wrap: anywhere; }
.facts { margin: 0; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-card); padding: 8px 24px; display: flex; flex-direction: column; font-size: 15px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--text-3); text-align: right; }

/* Legal */
.legal { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 16px; padding-bottom: 64px; }
.legal aside { flex: 1 1 240px; display: flex; flex-direction: column; gap: 24px; }
.legal aside nav { display: flex; flex-direction: column; gap: 4px; }
.legal aside nav a { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.legal aside nav a[aria-current="page"] { background: var(--surface-3); color: var(--text); }
.legal aside .toc { border-top: 1px solid var(--border); padding-top: 16px; gap: 2px; }
.legal aside .toc a { min-height: 32px; padding: 0; font-weight: 500; font-size: 14px; color: var(--text-3); }
.legal article { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.legal article section { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 16px; }
.legal article section p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.legal .updated { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-4); }
@media (max-width: 860px) { .legal aside .toc { display: none; } .legal aside nav { flex-direction: row; flex-wrap: wrap; } }

/* Tuner and metronome: shared with the app (apps/web/src/tools/*.css, appended by build.mjs) */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-3); }
.seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 8px; }
.seg button, .chip { min-width: 52px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; color: var(--text-2); }
.seg button:hover, .chip:hover { border-color: var(--border-hover); }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.metro { background: var(--surface-1); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-panel); padding: clamp(16px, 4vw, 28px); display: flex; flex-direction: column; align-items: center; gap: 20px; box-shadow: var(--shadow-glow); }

/* ------------------------------------------------------------------ Home */
.hero { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; padding-bottom: 48px; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero__foot { margin: 0; color: var(--text-4); font-size: 15px; }

/* Hero practice panel (home.ts). Works as a static score without JavaScript. */
.player { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-panel); padding: clamp(12px, 3vw, 20px); display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-glow); }
.pl-picks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.pl-picks > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); cursor: pointer; }
.pl-chip:hover { border-color: var(--border-hover); }
.pl-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.pl-selects { display: none; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.pl-selects select { min-height: 44px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; min-width: 0; width: 100%; }

.pl-paper { background: var(--paper); border-radius: var(--r-paper); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.pl-piece[hidden] { display: none; }
/* The score strip: fits on wide screens; on phones about 44 px per note, moved by home.ts to keep the current note in view. */
.pl-scroll { overflow: hidden; }
.pl-scroll .pl-line { transition: transform .35s ease; }
@media (prefers-reduced-motion: reduce) { .pl-scroll .pl-line { transition: none; } }
.pl-line { position: relative; height: 208px; }
.pl-notab .pl-line { height: 116px; }
.pl-notab .pl-tab { display: none; }
.pl-staff, .pl-tablines { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; justify-content: space-between; }
.pl-staff { top: 40px; height: 56px; }
.pl-tablines { top: 140px; height: 61px; }
.pl-staff i, .pl-tablines i { height: 1px; background: var(--staff); }
.pl-tablines i { background: var(--tab-line); }
.pl-clef { position: absolute; left: 0; top: 22px; font-size: 64px; line-height: 1; color: var(--paper-ink); font-family: serif; }
.pl-tabkey { position: absolute; left: 6px; top: 146px; font-weight: 700; font-size: 13px; line-height: 16px; color: var(--paper-ink); width: 10px; text-align: center; }
.pl-notes { position: absolute; left: 44px; right: 6px; top: 0; bottom: 0; }
.pl-bar { position: absolute; top: 40px; height: 57px; width: 1px; background: var(--staff); }
.pl-bar--end { width: 3px; right: 0; }
.pl-n { position: absolute; width: 16px; height: 12px; margin-left: -8px; color: var(--paper-ink); }
.pl-n b { position: absolute; inset: 0; border-radius: 50%; transform: rotate(-20deg); background: currentColor; }
.pl-n s { position: absolute; right: 0; bottom: 6px; width: 2px; height: 38px; background: currentColor; }
.pl-n u { position: absolute; left: -5px; top: 5px; width: 26px; height: 2px; background: var(--paper-ink); }
.pl-n--open b { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.pl-n em { position: absolute; right: -9px; bottom: 26px; width: 9px; height: 16px; border-top: 2.5px solid currentColor; border-right: 2px solid currentColor; border-top-right-radius: 10px; transform: skewY(25deg); }
.pl-beam { position: absolute; height: 5px; background: var(--paper-ink); }
.pl-f { position: absolute; width: 18px; margin-left: -9px; text-align: center; background: var(--paper); font-size: 14px; font-weight: 700; line-height: 16px; color: var(--paper-ink); }
.pl-n.done, .pl-f.done { color: var(--note-correct); }
.pl-n.cur, .pl-f.cur { color: var(--brand); }
.pl-n.cur b { box-shadow: 0 0 0 4px rgba(246, 0, 0, .22); }
.pl-n--open.cur b { box-shadow: inset 0 0 0 2px currentColor, 0 0 0 4px rgba(246, 0, 0, .22); }
.pl-cursor { position: absolute; top: 28px; height: 80px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--brand); opacity: .35; transition: left .15s; }
.pl-cursor[hidden] { display: none; }

.pl-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pl-ctrl > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--action); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pl-play:hover { background: var(--action-hover); }
.pl-play .ic-pause, .pl-play[aria-pressed="true"] .ic-play { display: none; }
.pl-play[aria-pressed="true"] .ic-pause { display: block; }
.pl-round { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pl-tempo { display: flex; align-items: center; gap: 2px; background: var(--surface-4); border-radius: var(--r-pill); padding: 4px; }
.pl-tempo button { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; color: var(--text); font-size: 20px; cursor: pointer; }
.pl-tempo output { min-width: 64px; text-align: center; font-weight: 600; font-size: 14px; }
.pl-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pl-status > div { display: flex; flex-direction: column; min-width: 0; }
.pl-status small { font-size: 13px; color: var(--text-4); }
.pl-status b { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.pl-status b.ok { color: var(--success); }
.pl-mic { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r-md); border: none; background: var(--text); color: var(--bg); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.pl-mic[hidden], .pl-play[hidden] { display: none; }
.pl-mic { white-space: nowrap; align-self: center; }
.pl-mic__short { display: none; }
.pl-heard { font-size: 13px; color: var(--text-4); }
@media (max-width: 719px) {
  .pl-picks { display: none; }
  .pl-scroll .pl-line { width: calc(var(--n) * 44px + 60px); }
  .pl-selects { display: grid; }
  .pl-ctrl { flex-direction: column; align-items: stretch; gap: 12px; }
  .pl-tempo { margin-left: auto; }
  .pl-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-modes .pl-chip { width: 100%; padding: 0 6px; }
  .pl-status { flex-wrap: nowrap; justify-content: space-between; gap: 10px; }
  .pl-status > div { flex: 1; }
  .pl-status b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pl-mic { padding: 0 14px; }
  .pl-mic__long { display: none; }
  .pl-mic__short { display: inline; }
}

/* Photo to notes */
.convert { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.convert > div:first-child { flex: 3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.convert__art { flex: 1 1 300px; min-width: 0; max-width: 340px; margin: 0 auto; display: flex; justify-content: center; }
.convert__art svg { width: 100%; max-width: 320px; height: auto; }
/* Phone landscape and small tablets: text and animation side by side. */
@media (min-width: 560px) and (max-width: 900px) {
  .convert { flex-wrap: nowrap; gap: 28px; }
  .convert > div:first-child { flex: 1 1 0; }
  .convert__art { flex: 0 1 38%; margin: 0; }
}
/* Phone landscape and tablets: the three plans and the four lesson cards each on one row, a bit tighter. */
@media (min-width: 560px) and (max-width: 1000px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .plan { padding: 20px; gap: 12px; }
  .plan h3 { font-size: 19px; }
  .lessons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .lesson { padding: 16px; gap: 10px; }
  .lesson h3 { font-size: 20px; }
  .lesson p { font-size: 14px; }
}

/* Library teaser */
.lib { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.lib > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lib > ul { flex: 1 1 360px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lib__big { font-family: var(--font-display); font-size: clamp(56px, 8vw, 96px); font-weight: 700; line-height: 1; color: var(--brand); letter-spacing: -0.04em; }
.lib li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface-3); border-radius: var(--r-md); }
.lib li span:first-child { font-weight: 500; }
.lib li span:last-child { color: var(--text-4); font-size: 14px; text-align: right; }
.lib li.open span:last-child { color: var(--success); }
.lib li.dim { opacity: .55; }

/* ------------------------------------------------------------------ Tool pages (tuner, metronome) */
/* Title and tool side by side; on phones the tool comes right after the title. */
.thero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "top tool" "rest tool"; gap: 20px 40px; align-items: start; padding-top: 16px; }
.thero__top { grid-area: top; align-self: end; }
.thero__tool { grid-area: tool; align-self: center; }
.thero__rest { grid-area: rest; }
@media (max-width: 860px) { .thero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "tool" "rest"; gap: 16px; } }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.kbd-list { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-3); }
.kbd-list div { display: flex; align-items: center; gap: 8px; }
.kbd-list dd { margin: 0; }
kbd { display: inline-block; min-width: 28px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--text); font: 600 13px/1.2 var(--font-sans); text-align: center; }
@media (max-width: 640px) { .kbd-list { display: none; } }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.steps3 > div { background: var(--surface-2); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.steps3 span { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--brand); line-height: 1; }
.steps3 p { margin: 0; color: var(--text-3); line-height: 1.55; }
.qa { display: flex; flex-direction: column; gap: 10px; }
.qa details { background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; }
.qa summary { font-weight: 600; min-height: 28px; cursor: pointer; }
.qa p { margin: 10px 0 0; color: var(--text-3); line-height: 1.55; }

/* ------------------------------------------------------------------ Features */
.feat { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.feat__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.feat__art { flex: 1 1 420px; min-width: 0; }
.pills { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--track); color: var(--text-2); font-size: 14px; }
.card .tag { align-self: flex-start; }

/* The shared tools (tuner, metronome, drone, intonation: apps/web/src/tools/*.css) switch to two columns inside a
   `tool` container of 540px or more. The page's tool column is one only on phones held sideways; on wider screens the
   column is ~576px, too narrow for two, so the tools stay stacked. */
@media (orientation: landscape) and (max-height: 560px) { .thero__tool { container: tool / inline-size; } }

/* Phones held sideways: the tool first, at the top of the screen (site.js scrolls to it), the title under it. */
@media (orientation: landscape) and (max-height: 560px) {
  .thero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tool" "top" "rest"; gap: 16px; padding-top: 0; }
  .thero__tool { scroll-margin-top: 8px; }
  .thero__tool > .metro, .thero__tool > div > .metro { padding: 14px 18px; }
}

/* ------------------------------------------------------------------ Embed code (tool pages) and /embed/ pages */
.embed-box { border: 1px solid var(--border); border-radius: 16px; background: var(--surface-1); padding: 0 18px; }
.embed-box summary { display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; font-weight: 600; list-style: none; }
.embed-box summary::-webkit-details-marker { display: none; }
.embed-box[open] { padding-bottom: 18px; }
.embed-box p { margin: 0 0 10px; }
.embed-box textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--text-2); font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; margin-bottom: 10px; }
body.embed { min-height: 0; }
.embed__tool { container: tool / inline-size; padding: 8px; }
.embed__by { margin: 0; padding: 0 8px 10px; text-align: center; font-size: 13px; }
.embed__by a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); text-decoration: none; min-height: 32px; }
.embed__by a:hover { color: var(--text); }

/* ------------------------------------------------------------------ Public library (rendered by the Worker) */
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.libgrid a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.libgrid a:hover { background: var(--surface-3); border-color: var(--border-strong); }
.libgrid a span:last-child { color: var(--text-4); font-size: 13px; white-space: nowrap; }
.libfilter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.libfilter b { font-size: 14px; color: var(--text-4); font-weight: 600; margin-right: 4px; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share b { font-size: 14px; color: var(--text-4); font-weight: 600; margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: 600 14px var(--font-sans); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { color: var(--text); background: var(--surface-3); }
.share [hidden] { display: none; }
.credit { font-size: 14px; color: var(--text-4); line-height: 1.6; margin: 0; }
.credit a { color: var(--text-3); }
.lscore svg { width: 100%; height: auto; display: block; }
/* Notation preview on library pages (the app's Incipit, drawn by the Worker; Bravura is served by the app) */
@font-face { font-family: 'Bravura'; src: url('/app/font/Bravura.woff2') format('woff2'); font-display: block; }
.incipit { overflow: visible; }
.incipit__lines line, .incipit__bar { stroke: #9a9488; stroke-width: 1; }
.incipit__ledger { stroke: #6b6f75; stroke-width: 1; }
.incipit__stem { stroke: #1a1a1a; stroke-width: 1.2; }
.incipit__glyphs { font-family: 'Bravura'; fill: #1a1a1a; }
.lrow[aria-current="page"] { border-color: var(--brand); }
/* Phones: language, theme and menu buttons fit next to the logo on one row. */
@media (max-width: 420px) {
  .hdr__in { gap: 8px; }
  .lang > summary, .theme, .menu > summary { width: 44px; min-width: 44px; height: 44px; padding: 0; }
  .brand { gap: 8px; } .brand span { font-size: 22px; }
}

/* ------------------------------------------------------------------ Learn: header menu (design: SiteHeader with Learn) */
.nav__learn > summary, .menu__learn > summary { list-style: none; cursor: pointer; }
.nav__learn > summary::-webkit-details-marker, .menu__learn > summary::-webkit-details-marker { display: none; }
.nav__learn > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 500; color: var(--text-2); }
.nav__learn > summary:hover, .nav__learn[open] > summary { color: var(--text); background: var(--surface-2); }
.nav__learn > summary[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.nav__learn > summary svg, .menu__learn > summary svg { transition: transform .15s; }
.nav__learn[open] > summary svg, .menu__learn[open] > summary svg { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lift); }
.mega .wrap { padding-top: 24px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 16px; }
.mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.mega__col { display: flex; flex-direction: column; }
.nav .mega a { min-height: 36px; padding: 0; border-radius: 0; background: none; color: var(--text-3); font-size: 15px; }
.nav .mega a:hover { color: var(--text); background: none; text-decoration: underline; text-underline-offset: 4px; }
.nav .mega .mega__inst { min-height: 44px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.mega__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--divider); font-size: 14px; color: var(--text-4); }
.nav .mega__foot a { color: var(--link); font-weight: 600; }
.menu__learn > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border-radius: var(--r-md); font-size: 18px; font-weight: 600; color: var(--text-2); }
.menu__learn > summary[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.menu__learn > div { display: flex; flex-direction: column; padding: 0 0 8px 12px; }
.menu__panel .menu__learn a { min-height: 52px; font-size: 17px; font-weight: 500; justify-content: space-between; gap: 12px; }
.menu__learn a small { color: var(--text-4); font-size: 13px; font-weight: 500; text-align: right; }
.menu__panel .menu__learn .menu__all { color: var(--link); font-weight: 600; }
@media (max-height: 700px) { .menu__panel { max-height: calc(100svh - 80px); overflow-y: auto; } }

/* ------------------------------------------------------------------ Learn: hubs */
.card--link { text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.card--link:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.card .note { color: var(--brand-soft-text); }
.icards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.icard { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-tile); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.icard__head { display: flex; align-items: center; gap: 12px; }
.icard__head h2 { flex-grow: 1; font-size: 26px; }
.icard__head h2 a { color: var(--text); text-decoration: none; }
.icard__head h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.icard p { margin: 0; color: var(--text-3); line-height: 1.55; }
.icard__topics { display: flex; flex-wrap: wrap; gap: 6px; }
.icard__topics .chip { min-height: 40px; font-size: 14px; }
.icard .more-link { margin-top: auto; }
.lvls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.lvl { background: var(--surface-2); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.lvl__head { display: flex; flex-direction: column; gap: 8px; }
.lvl__head b { font: 700 19px/1.2 var(--font-display); }
.lvl__rows { display: flex; flex-direction: column; }
.lvl__rows a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--border); color: var(--text-2); text-decoration: none; font-size: 15px; }
.lvl__rows a:hover { color: var(--text); }
.lvl__rows .note { flex: none; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.lvl .more-link { margin-top: auto; min-height: 44px; display: flex; align-items: center; }

/* ------------------------------------------------------------------ Learn: chord boxes and cards (design: ChordBox) */
.cbox { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 160 / 186; font-family: var(--font-sans); }
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 12px; }
.ccards--s { grid-template-columns: repeat(auto-fill, minmax(min(30%, 128px), 1fr)); gap: 10px; }
.ccard { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-paper); padding: 14px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--text); font: inherit; text-align: center; cursor: pointer; }
.ccard:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.ccard b { font: 700 22px/1.1 var(--font-display); }
.ccard .cbox { max-width: 150px; }
.ccard > span { font-size: 13px; color: var(--text-4); }
.ccard .ccard__open { color: var(--success); }
.ccard--s { padding: 10px 8px 8px; }
.ccard--s b { font-size: 18px; }
.ccard--v { border-width: 2px; }
.ccard--v b { font: 600 15px/1.3 var(--font-sans); }
.ccard--v[aria-pressed="true"] { border-color: var(--brand); }
.hold { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hold li { display: flex; gap: 16px; align-items: center; background: var(--surface-2); border-radius: var(--r-paper); padding: 14px 18px; color: var(--text-2); line-height: 1.5; }
.hold li > span:first-child { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 17px/1 var(--font-display); }
.hold li > .hold__strum { background: var(--border-strong); }
.hold-v[hidden] { display: none; }
.ctab { margin: 0; background: var(--bg); border-radius: var(--r-md); padding: 14px 18px; font: 16px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); overflow-x: auto; }
.prog a { color: var(--text); }
.prog span { color: var(--brand); }

/* The chord / note tool card in the hero */
.ctool, .ftool { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-panel); padding: clamp(14px, 4vw, 24px); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-glow); }
.ctool__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ctool__head b { font: 700 20px/1.2 var(--font-display); }
.ctool__n { color: var(--text-4); font-size: 14px; white-space: nowrap; }
.ctool__box { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ctool__shapes { flex: 0 1 230px; min-width: 0; }
.ctool__shapes > [hidden] { display: none; }
.ctool__arrow { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ctool__arrow:hover { border-color: var(--border-hover); background: var(--surface-3); }
.ctool__arrow[hidden] { display: none; }
.ctool__legend { margin: 0; text-align: center; font-size: 13px; color: var(--text-4); }
.ctool__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ctool__actions .btn { min-width: 0; padding-left: 12px; padding-right: 12px; font-size: 16px; }
.ctool__actions .btn[hidden] { display: none; }
.ctool__actions .mcheck__go { grid-column: 1 / -1; }
.btn[aria-pressed="true"][data-sound] { border-color: var(--brand); color: var(--text); }
.mcheck { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-paper); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mcheck[hidden] { display: none; }
.mcheck__strings { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.mcheck__strings span { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mcheck__strings i { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font-sans); font-style: normal; color: var(--text-4); }
.mcheck__strings small { font-size: 11px; color: var(--text-4); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.mcheck__strings [data-state="ok"] i { background: var(--success-soft); color: var(--success); }
.mcheck__strings [data-state="ok"] i::before { content: '\2713'; }
.mcheck__strings [data-state="bad"] i { background: #3a2a05; color: #fbbf24; }
.mcheck__strings [data-state="bad"] i::before { content: '!'; }
.mcheck__strings [data-state="off"] i::before { content: '\00d7'; }
.mcheck__msg { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); min-height: 1.5em; }
.mcheck__meter { position: relative; height: 8px; margin: 6px 0; border-radius: var(--r-pill); background: var(--surface-4); }
.mcheck__meter i { position: absolute; left: 50%; top: -4px; width: 2px; height: 16px; background: var(--success); }
.mcheck__meter b { position: absolute; left: 50%; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--text-4); transition: left .1s; }
.mcheck__meter b[data-state="ok"] { background: var(--success); }
.mcheck__meter b[data-state="near"] { background: #fbbf24; }
.mcheck__meter b[data-state="bad"] { background: var(--brand); }
.cpick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cpick__l { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.cpick > div { display: flex; flex-wrap: wrap; gap: 6px; }
.cpick .chip { min-width: 44px; padding: 0 10px; justify-content: center; font-size: 15px; }
.lfacts .fstaff { width: 100%; max-width: 150px; height: auto; display: block; }
.lfacts dd.small { font: 500 13px/1.3 var(--font-sans); color: var(--text-4); }
.fstaff path { stroke: var(--text-3); stroke-width: 1.4; fill: none; }
.fstaff ellipse { fill: var(--brand); }
.fstaff__clef { font-family: 'Bravura'; font-size: 40px; fill: var(--text-2); }
.fstaff__acc { font-size: 22px; fill: var(--text); text-anchor: end; }

/* Flute fingering (the app's practice card, on paper) */
.ffing { display: block; width: 100%; height: auto; background: var(--paper); border: 1px solid var(--paper-track); border-radius: 14px; padding: 6px 8px 2px; box-sizing: border-box; }
.fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 250px), 1fr)); gap: 12px; }
.fcard { background: var(--surface-2); border: 2px solid transparent; border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.fcard:hover, .fcard.is-on { color: var(--text); border-color: var(--brand); }
.fcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fcard__head b { font: 700 22px/1 var(--font-display); }
.fcard__head span { font-size: 13px; color: var(--text-4); }
.ftool__now { margin: 0; text-align: center; color: var(--text-4); }
.ftool__now b { font: 700 22px/1 var(--font-display); color: var(--text); }
.ftool__svgs > [hidden] { display: none; }
.ftool__nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ftool__nav b { font: 700 32px/1 var(--font-display); }
.flegend { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--text-3); }
.flegend span { display: inline-flex; align-items: center; gap: 8px; }
.flegend i { width: 14px; height: 14px; border-radius: 50%; }

/* Into the app: a bar at the bottom of the screen on phones held upright */
.mcta { display: none; }
@media (max-width: 640px) and (orientation: portrait) {
  .mcta { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(8px); }
  .mcta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .mcta b { font-size: 15px; line-height: 1.3; }
  .mcta span { font-size: 13px; color: var(--text-3); line-height: 1.3; }
  .mcta .btn { flex: none; }
}
@media (max-width: 640px) {
  .ccards--s { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fcard { padding: 10px; gap: 6px; }
  .fcard__head b { font-size: 19px; }
  .ffing { padding: 4px 4px 0; }
  .ctool__shapes { flex-basis: 190px; }
}
/* Phones held sideways (about 340 px of page between the browser's bars): the tool card goes side by side,
   diagram on the left, controls on the right, so it fits on the first screen (site.js scrolls to it). */
@media (orientation: landscape) and (max-height: 560px) {
  .ctool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "box head" "box actions" "box check"; align-content: start; gap: 8px 16px; padding: 12px 16px; }
  .ctool__head { grid-area: head; }
  .ctool__box { grid-area: box; }
  .ctool__shapes .cbox { height: min(230px, calc(100svh - 110px)); width: auto; margin: 0 auto; }
  .ctool__legend { display: none; }
  .ctool__actions { grid-area: actions; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctool__actions .btn { min-height: 44px; font-size: 15px; }
  .ctool__actions .btn svg { display: none; }
  .ctool .mcheck { grid-area: check; padding: 10px; gap: 8px; }
  .ftool { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "nav nav" "svg actions" "svg check"; align-content: start; gap: 8px 16px; padding: 12px 16px; }
  #fchart.ftool { grid-template-areas: "now now" "svg actions" "svg check"; }
  .ftool__now { grid-area: now; }
  .ftool__nav { grid-area: nav; }
  .ftool__nav b { font-size: 24px; }
  .ftool > .ffing, .ftool__svgs { grid-area: svg; }
  .ftool .ctool__actions { grid-area: actions; grid-template-columns: minmax(0, 1fr); }
  .ftool .mcheck, .ftool > .mcheck__msg { grid-area: check; }
}

/* Library score page: About this piece (apps/api/src/analysis.ts; design docs/design/score-page-insights.html) */
.labout { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 68ch; }
.lsub { font-size: 14px; color: var(--text-4); }
.meter { display: flex; gap: 3px; margin-top: 6px; }
.meter i { flex: 1; height: 5px; border-radius: 3px; background: var(--border); }
.meter i.on { background: var(--brand); }
.lfacts--sm div { padding: 10px 12px; }
.lfacts--sm dt { font: 700 17px/1.2 var(--font-display); color: var(--text); }
.lfacts--sm dd { font: 600 13px/1.3 var(--font-sans); color: var(--text-3); margin-top: 6px; }
.lfacts--sm dd.small { font-weight: 500; color: var(--text-4); }
.facts--sm { padding: 4px 18px; font-size: 14px; }
.facts--sm div { padding: 9px 0; align-items: center; }
.facts--sm dt a { color: inherit; }
.lmarks .chip { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.libfilter span.chip { display: inline-flex; align-items: center; vertical-align: middle; cursor: default; }
.lscore__more { align-self: flex-start; background: none; border: 1px solid var(--paper-ink-2); color: var(--paper-ink); border-radius: 999px; padding: 8px 16px; font: 600 14px var(--font-sans); cursor: pointer; min-height: 44px; }
.lscore iframe { width: 100%; height: 560px; border: 0; border-radius: 12px; display: block; }
.lscore--whole { padding: 8px; }
.nw { white-space: nowrap; }
@media (max-width: 640px) {
  /* five difficulty tiles in two columns: the last one takes the whole row */
  .lfacts--sm div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Library composer page (apps/api/src/composer.ts; design docs/design/composer-page.html) */
.chero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cbio { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 62ch; }
.portrait { margin: 0; justify-self: end; max-width: 340px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.portrait img { width: 100%; height: auto; border-radius: var(--r-panel); display: block; box-shadow: var(--shadow-glow); }
.portrait figcaption { font-size: 13px; color: var(--text-4); }
.monogram { justify-self: end; width: min(240px, 100%); aspect-ratio: 1; border-radius: var(--r-panel); background: var(--surface-1); border: 1px solid var(--border); display: grid; place-items: center; font: 700 64px/1 var(--font-display); color: var(--text-4); }
.glabel { font-size: 14px; color: var(--text-4); font-weight: 600; }
.startgrid, .conn { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.conn__more { margin: 0; color: var(--text-3); line-height: 1.6; }
.conn__more span { color: var(--text-4); }
.dist { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.dist__row { display: grid; grid-template-columns: 96px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; color: var(--text-3); }
.dist__row b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.dist__bar { height: 10px; border-radius: 5px; background: var(--surface-1); border: 1px solid var(--border); overflow: hidden; }
.dist__bar i { display: block; height: 100%; background: var(--brand); }
@media (max-width: 860px) {
  /* phones and small tablets: a small portrait above the name, so the name and facts stay near the top */
  .chero { grid-template-columns: minmax(0, 1fr); }
  .chero .portrait, .chero .monogram { justify-self: start; order: -1; max-width: 132px; }
  .chero .monogram { font-size: 40px; }
  .chero .portrait figcaption { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  /* phones held sideways: portrait beside the text, kept short */
  .chero { grid-template-columns: minmax(0, 1fr) 150px; }
  .chero .portrait, .chero .monogram { order: 0; justify-self: end; max-width: 150px; }
}

/* Chords in a key (/learn/<inst>/keys/) */
.ccard > .note { font-size: 12px; color: var(--brand); font-weight: 700; letter-spacing: .04em; }
.ccard--dim { cursor: default; justify-content: center; }
.ccard--dim:hover { background: var(--surface-1); border-color: var(--border); }
.ccard--dim b { color: var(--text-3); }
.chip--static small { color: var(--text-4); margin-right: 4px; }
.chip--static a { color: inherit; }
.ktable { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-paper); overflow-x: auto; background: var(--surface-1); }
.ktable__row { display: grid; grid-template-columns: minmax(110px, 1.4fr) repeat(7, minmax(52px, 1fr)); min-width: 560px; border-top: 1px solid var(--border); }
.ktable__row:first-child { border-top: 0; }
.ktable__row > * { padding: 12px 10px; display: flex; align-items: center; min-height: 44px; }
.ktable__row > [role="rowheader"] { font-weight: 700; color: var(--text); }
.ktable__row a { color: var(--text); }
.ktable__row a:hover { color: var(--brand); }
.ktable__row span[role="cell"] span { color: var(--text-4); }
.ktable__head { background: var(--surface-2); color: var(--text-4); font-size: 13px; font-weight: 600; }

/* Lesson tips */
.ltips { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.ltips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ltips li { background: var(--surface-1); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--r-paper); padding: 14px 18px; color: var(--text-2); line-height: 1.55; }

/* The shared metronome card (metronome.ts), loaded by the app (screens/Tuner.tsx) and appended to the website's
   site.css by apps/site/build.mjs. Uses only variables both define; the buttons are each side's own .btn. */
.metro { background: var(--surface-1); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-panel, var(--r-panel));
  padding: clamp(16px, 4vw, 28px); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.metro__tempo { display: flex; align-items: center; gap: 16px; }
.metro__step { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent;
  font: inherit; font-size: 28px; cursor: pointer; color: var(--text); }
.metro__step:hover { border-color: var(--text-4); }
.metro__bpm { text-align: center; min-width: 150px; display: flex; flex-direction: column; }
.metro__bpm-n { font-family: var(--font-display); font-size: 88px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.metro__bpm span { font-size: 14px; font-weight: 600; color: var(--text-4); }
.metro__range { width: 100%; max-width: 380px; accent-color: var(--brand); height: 28px; }
.metro__beats { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; min-height: 40px; }
.metro__beats span { width: 24px; height: 24px; border-radius: 50%; background: var(--border-strong); transition: transform .06s, background .06s; }
.metro__beats span:first-child { width: 34px; height: 34px; }
.metro__beats span.on { background: var(--text); transform: scale(1.2); }
.metro__beats span.acc { background: color-mix(in srgb, var(--brand) 28%, var(--surface-1)); }
.metro__beats span.acc.on { background: var(--brand); }
.metro__field { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.metro__label { font-size: 14px; font-weight: 600; color: var(--text-3); }
.metro__sig { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.metro__seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.metro__seg button { min-width: 52px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; color: var(--text-2); }
.metro__seg button:hover { border-color: var(--text-4); }
.metro__seg button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.metro__custom { display: flex; align-items: center; gap: 8px; color: var(--text-4); }
.metro__stepper { display: flex; align-items: center; background: var(--surface-4); border-radius: var(--r-pill); padding: 2px; }
.metro__stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 18px; cursor: pointer; }
.metro__stepper output { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.metro__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.metro__go[aria-pressed="true"] { background: transparent; border-color: var(--border-strong); color: var(--text); }
@media (max-width: 400px) { .metro__bpm-n { font-size: 72px; } .metro__bpm { min-width: 120px; } .metro__tempo { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .metro__beats span { transition: none; } .metro__beats span.on { transform: none; } }

/* Desktop and phones in landscape: beats, BPM and slider on the left; time signature, Start and Tap tempo on the right,
   sharing one width. */
@container tool (min-width: 540px) {
  .metro:not(.tuner) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 32px; row-gap: 16px; align-items: center; justify-items: center; }
  .metro:not(.tuner) .metro__beats { grid-column: 1; grid-row: 2; }
  .metro:not(.tuner) .metro__tempo { grid-column: 1; grid-row: 3; }
  .metro:not(.tuner) .metro__range { grid-column: 1; grid-row: 4; }
  .metro:not(.tuner) .metro__field { grid-column: 2; grid-row: 2 / 4; align-self: center; }
  .metro:not(.tuner) .metro__actions { grid-column: 2; grid-row: 4; }
  .metro:not(.tuner) .metro__field, .metro:not(.tuner) .metro__actions { justify-self: stretch; width: 100%; max-width: 340px; margin: 0 auto; }
  .metro__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* the chips' group keeps the label */
  .metro__sig { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; }
  .metro__seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metro__seg button { min-width: 0; padding: 0 4px; }
  .metro__custom { display: grid; grid-template-columns: 1fr auto 1fr; }
  .metro__stepper { justify-content: space-between; }
  .metro__actions { display: grid; grid-template-columns: 1fr 1fr; }
}
/* Phones in landscape: little height, so everything a size smaller. */
@media (orientation: landscape) and (max-height: 560px) {
  .metro:not(.tuner) { column-gap: 28px; row-gap: 6px; }
  .metro:not(.tuner) .metro__beats { min-height: 28px; }
  .metro__bpm-n { font-size: 64px; }
  .metro__bpm { min-width: 110px; }
  .metro__step { width: 48px; height: 48px; font-size: 24px; }
  .metro__beats span { width: 20px; height: 20px; }
  .metro__beats span:first-child { width: 28px; height: 28px; }
  .metro__range { height: 24px; }
  .metro__field { gap: 6px; }
  .metro__sig { gap: 8px; }
  .metro__actions .btn { min-height: 44px; height: 44px; padding: 0 18px; }
}

/* The shared tuner card (tuner.ts), loaded by the app (screens/Tuner.tsx) and appended to the website's site.css by
   apps/site/build.mjs. The card itself is `.metro` (metronome.css); `.tn-ok` on it marks "in tune". */
.tuner { gap: 16px; }
.tn-head:empty { display: none; }
.tn-target { margin: 0; text-align: center; color: var(--text-4); }
.tn-target b { color: var(--text); }
.tn-meter { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.tn-arc { stroke: var(--surface-4); }
.tn-tick { stroke: var(--border-strong); }
.tn-tick--mid { stroke: var(--success); }
.tn-side { fill: var(--text-4); }
.tn-needle { transform-box: view-box; transform-origin: 150px 150px; transition: transform .12s ease-out; color: var(--brand); }
.tn-dial { fill: var(--brand-soft); stroke: var(--brand); }
.tn-note { fill: var(--text); font-family: var(--font-display); }
.tn-cents { fill: var(--brand-soft-text); font-family: var(--font-sans); }
.tn-cents:empty { display: none; }
.tn-ok .tn-needle { color: var(--success); }
.tn-ok .tn-dial { fill: var(--success-soft); stroke: var(--success); }
.tn-ok .tn-cents { fill: var(--success); }
.tn-strings { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tn-strings:empty { display: none; }
.tn-chip { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; color: var(--text-2); }
.tn-chip:hover { border-color: var(--text-4); }
.tn-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tn-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px;
  border-radius: 14px; border: 1px solid transparent; font: inherit; font-size: 17px; font-weight: 600; line-height: 1.2; cursor: pointer;
  background: var(--text); color: var(--bg); }
.tn-go:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.tn-go[hidden] { display: none; }
.tn-status { margin: 0; text-align: center; font-size: 14px; color: var(--text-4); }
.tn-status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .tn-needle { transition: none; } }

/* Desktop and phones in landscape: the gauge on the left, the rest (instrument, target, strings, microphone) on the right. */
@container tool (min-width: 540px) {
  .metro.tuner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr repeat(5, auto) 1fr;
    column-gap: 32px; row-gap: 16px; align-items: center; justify-items: center; }
  .tuner .tn-head { max-width: 100%; }
  .tuner .tn-strings { gap: 8px; flex-wrap: nowrap; }
  .tuner .tn-meter { grid-column: 1; grid-row: 1 / -1; width: min(100%, 440px); }
  .tuner .tn-head { grid-column: 2; grid-row: 2; }
  .tuner .tn-target { grid-column: 2; grid-row: 3; }
  .tuner .tn-strings { grid-column: 2; grid-row: 4; }
  .tuner .tn-go { grid-column: 2; grid-row: 5; }
  .tuner .tn-status { grid-column: 2; grid-row: 6; }
}
/* Phones in landscape: little height, so tighter and the gauge sized by it. */
@media (orientation: landscape) and (max-height: 560px) {
  .metro.tuner { column-gap: 20px; row-gap: 10px; }
  .tuner .tn-strings { gap: 4px; }
  .tuner .tn-strings .tn-chip { min-width: 40px; padding: 0 8px; }
  .tuner .tn-go { min-height: 44px; padding: 8px 20px; font-size: 16px; }
  .tuner .tn-meter { width: min(100%, calc((100dvh - 150px) * 1.53)); }
}

/* Drone and Intonation tools (tools/panels.tsx). The card is the shared .metro (metronome.css); chips are .tn-chip and the
   white button .tn-go (tuner.css). Phones in portrait stack everything; desktop and phones in landscape use two columns,
   like the tuner and metronome. */

/* One-of-n pill track (panels.tsx Seg), same look as the app's neutral Segmented. */
.tseg { display: grid; gap: 4px; padding: 4px; background: var(--surface-4); border-radius: var(--r-pill); }
.tseg button { min-width: 0; min-height: 40px; padding: 0 6px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-2);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tseg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---- drone */
.drone { gap: 20px; }
.drone__dial { width: 168px; height: 168px; flex: none; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface-3); border: 3px solid var(--border-strong); transition: background .2s, border-color .2s, box-shadow .2s; }
.drone--on .drone__dial { background: var(--brand-soft); border-color: var(--brand);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 8%, transparent), 0 0 0 22px color-mix(in srgb, var(--brand) 4%, transparent); }
.drone__note { font: 700 52px/1 var(--font-display); letter-spacing: -0.03em; color: var(--text); }
.drone__hz { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--text-3); }
.drone__controls { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.drone__notes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.drone__notes .tn-chip { min-width: 0; padding: 0; }
.drone__row { display: flex; align-items: center; gap: 12px; }
.drone__row > :last-child { flex: 1; min-width: 0; }
.drone__label { font-size: 14px; font-weight: 600; color: var(--text-3); width: 72px; flex: none; }
.drone__stepper { justify-content: space-between; }
.drone__stepper button:disabled { opacity: .35; cursor: default; }
.drone__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.drone__row .metro__range { max-width: none; }
.drone__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drone__actions .tn-go { min-height: 52px; padding: 8px 12px; font-size: 16px; }
.drone__go--on { background: transparent; border-color: var(--border-strong); color: var(--text); }
.drone__go--on:hover { background: var(--surface-3); }
.drone__btn { min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.drone__btn:hover { background: var(--surface-3); }

/* ---- intonation */
.metro.into { align-items: stretch; justify-content: flex-start; gap: 16px; }
.into__live { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.into__now { display: flex; align-items: baseline; gap: 10px; min-height: 64px; color: var(--text-4); }
.into__now--ok { color: var(--success); }
.into__now--miss { color: var(--brand-soft-text); }
.into__cents { font: 700 64px/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.into__text { font-size: 15px; font-weight: 600; }
.into__graph { position: relative; margin: 0; height: 240px; background: var(--surface-band); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.into__graph svg { display: block; width: 100%; height: 100%; }
.into__band { fill: var(--success-soft); }
.into__grid { stroke: var(--border); stroke-width: 1; }
.into__mid { stroke: var(--success); stroke-width: 1.5; stroke-dasharray: 4 4; }
.into__line { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.into__seg { position: absolute; transform: translate(2px, -22px); font-size: 12px; font-weight: 600; color: var(--text-3); pointer-events: none; white-space: nowrap; }
.into__dot { position: absolute; right: -5px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--brand-soft-text); }
.into__dot--ok { background: var(--success); }
.into__ax { position: absolute; font-size: 11px; color: var(--text-3); pointer-events: none; }
.into__ax--top { left: 10px; top: calc(25% - 6px); }
.into__ax--bot { left: 10px; top: calc(75% - 6px); }
.into__ax--l { left: 10px; bottom: 8px; }
.into__ax--r { right: 10px; bottom: 8px; }
.into__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.into__target { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.into__tg { display: flex; flex-direction: column; gap: 4px; }
.into__tg .drone__label { width: auto; font-size: 13px; color: var(--text-4); }
.into__note { font: 700 36px/1 var(--font-display); }
.into__hz { font-size: 14px; color: var(--text-3); }
.into__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.into__stat { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface-3); min-width: 0; }
.into__stat span { font-size: 12px; font-weight: 600; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.into__stat b { font: 700 24px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.into__bad { color: var(--brand-soft-text); }
.into__hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-3); }
.into .drone__actions .tn-go { gap: 8px; }

/* ---- two columns: desktop and phones in landscape */
@container tool (min-width: 540px) {
  /* .metro:not(.tuner) in metronome.css also matches these cards: drop its rows */
  .metro.drone, .metro.into { grid-template-rows: none; row-gap: 16px; }
  .metro.drone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: center; justify-items: center; }
  .drone__controls { max-width: 360px; }
  .metro.into { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .into__side { max-width: 360px; width: 100%; justify-self: center; }
  .into__graph { height: 320px; }
}
@media (min-width: 1100px) {
  .drone__dial { width: 220px; height: 220px; }
  .drone__note { font-size: 68px; }
  .into__cents { font-size: 72px; }
}
/* Phones in landscape: little height. The drone's note chips move under the dial; the intonation hint goes. */
@media (orientation: landscape) and (max-height: 560px) {
  .metro.drone { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 10px; column-gap: 20px; align-content: center; }
  .metro.drone .drone__dial { grid-column: 1; grid-row: 1; width: 112px; height: 112px; }
  .drone__note { font-size: 38px; }
  .drone__hz { font-size: 12px; margin-top: 2px; }
  .drone__controls { display: contents; }
  .drone__notes { grid-column: 1; grid-row: 2; width: 100%; max-width: 320px; }
  .drone__controls > .drone__row, .drone__controls > .drone__actions { grid-column: 2; width: 100%; max-width: 340px; }
  .metro.drone { grid-template-rows: repeat(5, auto); }
  .metro.drone .drone__dial { grid-row: 1 / 3; align-self: end; }
  .drone__notes { grid-row: 3 / 6; align-self: start; }
  .drone__controls > :nth-child(2) { grid-row: 1; }
  .drone__controls > :nth-child(3) { grid-row: 2; }
  .drone__controls > :nth-child(4) { grid-row: 3; }
  .drone__controls > :nth-child(5) { grid-row: 4; }
  .drone__controls > :nth-child(6) { grid-row: 5; }
  .drone__actions .tn-go, .drone__btn { min-height: 44px; font-size: 15px; }
  .drone__label { width: 64px; font-size: 13px; }
  .metro.into { row-gap: 8px; column-gap: 20px; }
  .into__live { gap: 6px; }
  .into__now { min-height: 0; }
  .into__cents { font-size: 40px; }
  .into__graph { height: calc(100dvh - 150px); min-height: 150px; }
  .into__side { gap: 8px; }
  .into__note { font-size: 28px; }
  .into__hint { display: none; }
  .into__stat { padding: 8px 10px; }
  .into__stat b { font-size: 20px; }
  .into .drone__actions .tn-go, .into .drone__btn { min-height: 44px; font-size: 15px; }
}
/* Phones in portrait: fit above the tab bar on a ~740px-tall screen. */
@media (max-width: 899px) and (orientation: portrait) {
  .drone { gap: 16px; }
  .drone__dial { width: 144px; height: 144px; }
  .drone__note { font-size: 46px; }
  .drone__controls { gap: 12px; }
  .metro.into { gap: 12px; }
  .into__live { gap: 8px; }
  .into__now { min-height: 52px; }
  .into__cents { font-size: 52px; }
  .into__graph { height: 170px; }
  .into__side { gap: 12px; }
  .into__note { font-size: 30px; }
  .into__stat { padding: 10px; }
  .into__stat b { font-size: 22px; }
}
/* Short screens in the stacked layout (small phones, narrow windows): shrink the dial and the graph to keep it on one screen. */
@media (max-width: 1099px) and (min-height: 561px) and (max-height: 720px) {
  .drone { gap: 12px; }
  .drone__dial { width: 96px; height: 96px; }
  .drone__note { font-size: 32px; }
  .drone__note { font-size: 36px; }
  .drone__hz { font-size: 12px; margin-top: 2px; }
  .drone__controls { gap: 10px; }
  .into__now { min-height: 0; }
  .into__cents { font-size: 44px; }
  .into__graph { height: 120px; }
  .metro.into, .into__side { gap: 10px; }
}

/* The Learn drawings (learn/draw.ts), shared by the app and the website (appended to site.css by build.mjs). */
.cbox { display: block; width: 100%; height: auto; aspect-ratio: 160 / 186; font-family: var(--font-sans); }
.cbox__nut { fill: var(--text); }
.cbox__fret { stroke: var(--border-strong); stroke-width: 2; }
.cbox__str { stroke: var(--text-4); }
.cbox__x { fill: var(--text-4); font-size: 17px; font-weight: 700; text-anchor: middle; }
.cbox__o { fill: none; stroke: var(--text); stroke-width: 2; }
.cbox__fr { fill: var(--text-3); font-size: 13px; font-weight: 600; }
.cbox__dot { fill: var(--brand); }
.cbox__n { fill: var(--on-brand, #fff); font-size: 12px; font-weight: 700; text-anchor: middle; }

/* Violin fingerboard: drawn on the score paper, like the flute chart (the site calls paper ink --paper-ink). */
.vbox { display: block; width: 100%; height: auto; font-family: var(--font-sans); }
.vbox__nut { fill: var(--paper-ink, var(--ink)); }
.vbox__tape { stroke: var(--paper-track); stroke-width: 3; }
.vbox__str { stroke: var(--paper-ink-2, var(--ink-2)); }
.vbox__name { fill: var(--paper-ink-2, var(--ink-2)); font-size: 13px; font-weight: 700; text-anchor: middle; }
.vbox__name.is-on { fill: var(--paper-ink, var(--ink)); }
.vbox__o { fill: none; stroke: var(--finger-left, #d7263d); stroke-width: 2.5; }
.vbox__dot { fill: var(--finger-left, #d7263d); }
.vbox__n { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; }
