/* ==========================================================================
   Music Buddy Theory: field guide, v8 (executive refinement)
   One reading column, hairline rules, a gentle wave between plates, 12-24px radii.
   Matte black, electric blue, icy highlights. No gradients for atmosphere, no blur,
   no drop shadows: depth comes from borders, tint and a 1px ring. Markup unchanged.
   ========================================================================== */

:root {
  color-scheme: dark;
  --mbv: 8;                    /* the page checks this to detect an old stylesheet */

  --bg: #050505;
  --panel: #090c14;
  --panel2: #0e1424;
  --blue: #2f6bff;
  --hi: #d4e2ff;
  --ink: #a9c1f7;
  --dim: #6b8bd1;
  --rule: #14275a;
  --rule2: #22408f;
  --goodb: #35c27a;
  --badb: #ff5d4d;

  --cut: var(--bg);            /* icons cut their details out in the surface colour */
  --r: 12px;                   /* controls */
  --R: 20px;                   /* panels */
  --ring: 0 0 0 1px var(--blue);

  /* fluid type scale (ratio about 1.25) */
  --t-1: clamp(.72rem, .70rem + .08vw, .78rem);
  --t0: clamp(.95rem, .92rem + .15vw, 1.04rem);
  --t1: clamp(1.1rem, 1.04rem + .3vw, 1.25rem);
  --t2: clamp(1.3rem, 1.15rem + .7vw, 1.6rem);
  --t3: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  --t4: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);
  --t5: clamp(3.2rem, 2rem + 6vw, 6.6rem);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* names the scripts still read */
  --card: var(--panel); --tint: var(--panel2); --line: var(--rule); --mut: var(--dim);
  --accent: var(--blue); --accent-ink: #050505; --at: var(--blue); --ct: var(--hi);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t0)/1.6 var(--sans); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
h1, h2, h3, h4, p { margin: 0; }
p { margin-top: 8px; }
a { color: inherit; }
b { font-weight: 600; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #050505; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 80; background: var(--blue); color: #050505; padding: 9px 14px; border-radius: var(--r); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* mono labels, one consistent voice */
.mut, label, .num, .tag, .kick, .run, .pno, .story i, .facts dt, .qcat, .wm i, .melname, .mhi, .oct, .reg, .ff small, .ff em {
  font-family: var(--mono);
}
.mut { color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.hand { font-weight: 500; }

/* ---------- frame: side index + reading column ---------- */
.page { display: block; }
.col { padding: 0 20px; max-width: 780px; margin: 0 auto; }

.tabs {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex;
  background: var(--bg); border-top: 1px solid var(--blue);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs .brand, .tabs .x { display: none; }
.tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px;
  text-decoration: none; color: var(--dim); font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  transition: color .15s, background .15s;
}
.tabs a i { font-style: normal; font-size: 9px; color: var(--rule2); }
.tabs a:hover { color: var(--hi); }
.tabs a.on { background: var(--blue); color: #050505; }
.tabs a.on i { color: #050505; }

@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .page { display: grid; grid-template-columns: 208px minmax(0, 1fr); max-width: 1240px; margin: 0 auto; padding: 0 48px 0 0; }
  .col { max-width: 900px; margin: 0; padding: 0 0 0 56px; border-left: 1px solid var(--rule); width: 100%; }
  .tabs {
    position: sticky; top: 0; align-self: start; height: 100vh; z-index: 5;
    flex-direction: column; border: 0; padding: 44px 0 36px 28px; background: none;
  }
  .tabs .brand, .tabs .x { display: flex; }
  .tabs .brand { margin-bottom: 40px; }
  .tabs a {
    flex: none; flex-direction: row; align-items: baseline; gap: 16px; padding: 12px 0; position: relative;
    border-top: 1px solid var(--rule); font-size: 11.5px; letter-spacing: .14em;
  }
  .tabs a:last-of-type { border-bottom: 1px solid var(--rule); }
  .tabs a i { min-width: 20px; color: var(--dim); }
  .tabs a:hover { background: none; color: var(--hi); transform: translateX(3px); }
  .tabs a.on { background: none; color: var(--blue); }
  .tabs a.on i { color: var(--blue); }
  .tabs a.on::before { content: ""; position: absolute; left: -28px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--blue); }
  .mel { bottom: 28px !important; }
  .drawer { bottom: 104px !important; }
}

/* brand */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); }
.lm { display: block; flex: none; color: var(--blue); }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm b { font: 600 13px/1 var(--mono); letter-spacing: .16em; }
.wm i { font-style: normal; font-size: 9.5px; letter-spacing: .52em; margin-top: 6px; color: var(--dim); }

/* masthead, with a ruler along the baseline */
.mast {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px;
  padding: 24px 0 18px; border-bottom: 1px solid var(--blue);
  background: repeating-linear-gradient(90deg, var(--rule2) 0 1px, transparent 1px 14px) bottom / 100% 5px no-repeat;
}
.run { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
@media (min-width: 1000px) { .mast .brand { display: none; } .mast { padding-top: 46px; } }

/* ---------- hero: headline left, spec sheet hanging lower right ---------- */
.hero { display: grid; gap: 40px 56px; padding: 64px 0 56px; }
@media (min-width: 780px) { .hero { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; } }
.kick { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.kick::before { content: ""; width: 34px; height: 2px; background: var(--blue); }
.hero h1 { font: 500 clamp(54px, 10.4vw, 118px)/.86 var(--serif); letter-spacing: -.05em; color: var(--hi); max-width: 6.6ch; }
.lede { margin: 26px 0 30px; max-width: 31ch; font-size: 21px; line-height: 1.42; color: var(--ink); }
.facts { margin: 0; border-left: 1px solid var(--blue); padding-left: 24px; }
.facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 13px 0 11px; border-bottom: 1px solid var(--rule); }
.facts > div:first-child { border-top: 1px solid var(--rule); }
.facts dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; font: 500 44px/1 var(--serif); letter-spacing: -.03em; color: var(--hi); font-variant-numeric: lining-nums; }

/* ---------- index of instruments ---------- */
.index { padding: 8px 0 12px; }
.rh { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 20px; }
.rh h2 { font: 500 34px/1 var(--serif); letter-spacing: -.03em; color: var(--hi); }
.rh span { font: 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--blue); border-left: 1px solid var(--rule2); }
.story {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 178px; padding: 12px 12px 14px;
  text-align: left; background: var(--bg); color: var(--blue); border: 0; border-right: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.pno { font-size: 10.5px; letter-spacing: .14em; color: var(--dim); }
.gw { display: grid; place-items: center; width: 100%; height: 90px; margin: 6px 0 10px; }
.gl { width: 76px; height: 76px; fill: currentColor; display: block; }
.story b { font: 500 18px/1.12 var(--serif); letter-spacing: -.015em; color: var(--hi); }
.story i { font-style: normal; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.story:hover { z-index: 2; transform: translateY(-1px); box-shadow: var(--ring); background: var(--panel2); --cut: var(--panel2); }
.story:active { transform: none; box-shadow: none; }
.story.on { background: var(--blue); color: #050505; --cut: var(--blue); }
.story.on .pno, .story.on b, .story.on i { color: #050505; }
.story.seen:not(.on) .gl { opacity: .7; }
@media (min-width: 1000px) {
  .stories { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .story:last-child { grid-column: span 2; }
  .gw { height: 104px; } .gl { width: 90px; height: 90px; }
}

/* ---------- plates ---------- */
main { counter-reset: plate; }
.post { counter-increment: plate; position: relative; margin: 0 0 clamp(56px, 8vw, 96px); padding-top: 56px; border-top: 0; }
.post::before, .bench::before { content: ""; position: absolute; left: 0; right: 0; top: 0; width: auto; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='12' viewBox='0 0 96 12'%3E%3Cpath d='M0 6C8 6 16 1 24 1S40 6 48 6S64 11 72 11S88 6 96 6' fill='none' stroke='%2322408f' stroke-width='1'/%3E%3C/svg%3E") repeat-x left center / 96px 12px; }
.ph { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 0 0 22px; }
.ph::before { content: "Plate " counter(plate, decimal-leading-zero); font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); width: 100%; }
.ph .av { display: none; }
.ph b { display: block; font: 500 32px/1.02 var(--serif); letter-spacing: -.035em; color: var(--hi); }
.ph span.s { display: block; margin-top: 6px; font: italic 400 16px/1.35 var(--serif); color: var(--dim); }
.ph .av svg, .tabs svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.ph .av svg { width: 20px; height: 20px; }
.pad { padding: 0 0 6px; }

/* two-column plate bodies */
.two { display: grid; gap: 30px 44px; }
@media (min-width: 800px) { .two { grid-template-columns: 250px minmax(0, 1fr); } }
.two > div > .mut:first-child { margin-top: 0; }

/* ---------- setup guide carousel ---------- */
.carwrap { position: relative; }
.car { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--panel); border: 1px solid var(--blue); border-radius: var(--R); }
.car::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; min-height: 330px; padding: 36px 68px 40px; display: flex; flex-direction: column; justify-content: center; }
.slide h3 { font: 500 42px/1 var(--serif); letter-spacing: -.04em; color: var(--hi); margin: 10px 0 16px; }
.slide p { margin: 0; max-width: 34em; font-size: 20px; line-height: 1.5; color: var(--ink); }
.num { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--blue); }
.arr { position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; border: 1px solid var(--blue); border-radius: 9px; background: var(--bg); color: var(--blue); font-size: 22px; line-height: 1; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.arr:hover { background: var(--blue); color: #050505; transform: translateY(-2px); box-shadow: var(--ring); }
.arr.l { left: 12px; } .arr.r { right: 12px; }
.dots { display: flex; gap: 6px; padding: 16px 0 4px; }
.dots i { width: 26px; height: 3px; background: var(--rule2); border-radius: 2px; }
.dots i.on { background: var(--blue); }
.cap { margin: 0; padding: 6px 0 0; font: italic 400 19px/1.45 var(--serif); color: var(--ink); max-width: 36em; }
.cap b { font: 600 10.5px var(--mono); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-right: 10px; }

/* ---------- controls ---------- */
label { display: block; flex: 1 1 170px; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
label select { margin-top: 8px; }
select, input[type=text] {
  width: 100%; padding: 11px 13px; background: var(--panel); color: var(--hi); border: 1px solid var(--rule2); border-radius: var(--r);
  font: 500 14px/1.3 var(--mono); letter-spacing: 0; text-transform: none; transition: border-color .15s, box-shadow .15s;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f6bff' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select option { background: #0b0f1a; color: var(--hi); }
select:hover, input[type=text]:hover { border-color: var(--blue); }
select:focus, input[type=text]:focus { outline: 0; border-color: var(--hi); box-shadow: 0 0 0 3px var(--rule); }
input[type=text]::placeholder { color: var(--dim); opacity: .8; }
input[type=range] { width: 100%; height: 26px; margin: 6px 0 0; background: none; accent-color: var(--blue); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { align-items: flex-end; gap: 14px; }

a.btn { display: inline-block; text-decoration: none; }
.btn {
  padding: 11px 19px; background: var(--blue); color: #050505; border: 1px solid var(--blue); border-radius: var(--r);
  font: 600 11.5px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase;
  transition: transform .13s, box-shadow .13s, background .13s, color .13s, border-color .13s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--ring); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.btn.alt { background: transparent; color: var(--blue); }
.btn.alt:hover { background: var(--panel2); color: var(--hi); border-color: var(--hi); box-shadow: var(--ring); }
.btn[aria-pressed=true], .btn.alt[aria-pressed=true] { background: var(--blue); color: #050505; border-color: var(--blue); }
.chk { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; max-width: 100%; margin-top: 14px; font: 500 12.5px/1.4 var(--mono); letter-spacing: 0; text-transform: none; color: var(--dim); }
.chk input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--blue); }
#fstat, #tstat { min-height: 1.3em; }

/* ---------- scales ---------- */
.notes { display: flex; flex-wrap: wrap; margin-top: 8px; border: 1px solid var(--rule2); border-radius: var(--r); overflow: hidden; width: fit-content; max-width: 100%; }
.notes span, .notes button { min-width: 54px; padding: 9px 11px; border: 0; border-right: 1px solid var(--rule); background: var(--panel); font: 500 15px var(--mono); text-align: center; color: var(--hi); font-variant-numeric: tabular-nums; }
.notes span:last-child, .notes button:last-child { border-right: 0; }
.notes .on { background: var(--blue); color: #050505; }
#sigc, #sigw { font-size: 12px; }

/* ---------- fingering chart ---------- */
.dd { position: relative; display: inline-block; margin-top: 4px; }
.ddb { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; background: var(--panel); color: var(--hi); border: 1px solid var(--blue); border-radius: 10px; font: 500 16px var(--serif); transition: transform .13s, box-shadow .13s; }
.ddb:hover { transform: translateY(-1px); box-shadow: var(--ring); }
#ddl { position: absolute; left: 0; top: calc(100% + 8px); z-index: 12; min-width: 272px; margin: 0; padding: 4px; list-style: none; background: var(--panel); border: 1px solid var(--blue); border-radius: 12px; box-shadow: var(--ring); }
#ddl button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; background: none; border: 0; border-radius: 8px; text-align: left; font: 500 16.5px var(--serif); color: var(--ink); }
#ddl button:hover { background: var(--blue); color: #050505; --cut: var(--blue); }
.av { display: grid; place-items: center; width: 100%; height: 100%; }
.av.sm { width: 42px; height: 42px; flex: none; color: var(--blue); --cut: var(--panel); }
.av.sm .gl { width: 38px; height: 38px; }
#ddl button:hover .av { color: #050505; }

.fctl { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 6px 0 14px; }
.vb {
  touch-action: none; user-select: none; -webkit-user-select: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 72px; height: 96px;
  background: var(--panel); color: var(--blue); border: 1px solid var(--blue); border-radius: 12px 12px 8px 8px; font: 500 27px var(--serif);
  box-shadow: var(--ring); transition: transform .06s, box-shadow .06s, background .06s;
}
.vb small { font: 500 10.5px var(--mono); color: var(--dim); }
.vb.pos { width: 52px; height: 60px; font-size: 21px; border-radius: 9px; }
.vb.op { border-style: dashed; }
.vb.op b { font: 600 14px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.vb:hover { background: var(--panel2); }
.vb.down { background: var(--blue); color: #050505; transform: translateY(4px); box-shadow: var(--ring); }
.vb.down small { color: #050505; }
.read { text-align: center; }
#rn, #pn { font: 500 62px/1.02 var(--serif); letter-spacing: -.04em; color: var(--hi); }
#pn { font-size: 46px; }
.reg { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 14px 0 4px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.fchart { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); margin-top: 22px; border: 1px solid var(--rule2); border-radius: var(--R); overflow: hidden; }
.fc { padding: 11px 4px 12px; background: var(--panel); border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; transition: background .12s; }
.fc b { display: block; font: 500 21px var(--serif); color: var(--hi); }
.fc small { font: 500 11px var(--mono); color: var(--dim); }
.fc:hover { background: var(--panel2); }
.fc.on { background: var(--blue); }
.fc.on b, .fc.on small { color: #050505; }

/* ---------- study cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.flip { perspective: 1100px; height: 324px; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.in { position: relative; display: block; height: 100%; transition: transform .6s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.flip[aria-pressed=true] .in { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; padding: 22px; overflow: auto; backface-visibility: hidden;
  background: var(--panel); border: 1px solid var(--blue); border-radius: var(--R); transition: visibility 0s .3s, box-shadow .15s;
}
.front { display: flex; flex-direction: column; justify-content: flex-end; }
.front::before { content: ""; position: absolute; left: 22px; top: 22px; width: 34px; height: 3px; background: var(--blue); }
.face h4 { font: 500 30px/1 var(--serif); letter-spacing: -.035em; color: var(--hi); }
.front p { margin-top: 8px; font: italic 400 17px var(--serif); color: var(--dim); }
.front .mut { margin-top: 22px; font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.back { transform: rotateY(180deg); font-size: 15.5px; line-height: 1.5; }
.flip:hover .face { box-shadow: var(--ring); }
.flip[aria-pressed=false] .back, .flip[aria-pressed=true] .front { visibility: hidden; }
.mx { display: block; margin: 0 auto 8px; max-width: 100%; }

/* ---------- quizzes ---------- */
.box { position: relative; padding: 26px 26px 26px 30px; background: var(--panel); border: 1px solid var(--rule2); border-radius: var(--R); --cut: var(--panel); }
.box::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px; background: var(--blue); border-radius: 0 3px 3px 0; }
.box > b { font: 500 24px var(--serif); letter-spacing: -.02em; color: var(--hi); }
.bar { height: 4px; margin-bottom: 18px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); transition: width .3s; }
#qq, #sqq { margin-top: 4px; font: 500 28px/1.2 var(--serif); letter-spacing: -.025em; color: var(--hi); }
#beat { font: 500 30px var(--serif); min-width: 1.4em; color: var(--hi); }
.opts { display: grid; gap: 12px; margin: 20px 0; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.opt { padding: 14px 16px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule2); border-radius: 10px; text-align: left; font: 500 17.5px var(--serif); transition: transform .13s, box-shadow .13s, border-color .13s; }
.opt:hover:not(:disabled) { border-color: var(--hi); color: var(--hi); transform: translateY(-1px); box-shadow: var(--ring); }
.opt:disabled { cursor: default; }
.opt.good { border: 2px solid var(--goodb); color: var(--goodb); }
.opt.bad { border: 2px solid var(--badb); color: var(--badb); }
.opt.good::after { content: " \2713"; } .opt.bad::after { content: " \2717"; }
#sfb, #fb { margin-top: 12px; }

/* ---------- play page ---------- */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--blue); border-radius: 9px; overflow: hidden; }
.seg .btn { border: 0; border-radius: 0; background: transparent; color: var(--blue); }
.seg .btn:hover { transform: none; box-shadow: none; background: var(--panel2); }
.seg .btn[aria-pressed=true] { background: var(--blue); color: #050505; }

.staffbox { margin-top: 22px; padding: 20px 10px; background: var(--panel); border: 1px solid var(--rule2); border-radius: var(--R); }
.stf { display: block; width: 100%; height: auto; max-width: 660px; margin: 0 auto; }
.stfq .stf { max-width: 300px; }
.stf .ln, .stf .bar { stroke: var(--dim); stroke-width: 1.2; fill: none; }
.stf .ld { stroke: var(--ink); stroke-width: 1.5; }
.stf .clef { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stf .cf { fill: var(--ink); }
.stf .ks { stroke: var(--ink); fill: none; stroke-linecap: round; }
.stf .ts { fill: var(--ink); font: 600 25px var(--serif); text-anchor: middle; }
.nt { color: var(--ink); }
.nt.on { color: var(--hi); }
.nt.ok { color: var(--goodb); }
.nt.bad { color: var(--badb); }
.nt .hd { fill: currentColor; stroke: currentColor; stroke-width: 1; }
.nt .hd.o { fill: none; stroke-width: 2.2; }
.nt .st { stroke: currentColor; stroke-width: 1.6; fill: none; }
.nt .bm { stroke: currentColor; stroke-width: 5; }
.nt text { fill: currentColor; font: 500 11px var(--mono); text-anchor: middle; }
.nt .ld { stroke: currentColor; }
#pmsg { min-height: 2.8em; margin-top: 14px; }
.playpad { margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--rule); }
.deckcard { margin-top: 22px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--blue); border-radius: var(--R); }
.deckcard h3 { margin: 6px 0 2px; font: 500 36px/1.05 var(--serif); letter-spacing: -.035em; color: var(--hi); }
.lg { font-weight: 700; } .lg.g { color: var(--goodb); } .lg.r { color: var(--badb); }

/* ---------- tools ---------- */
#tools .grid { gap: 24px; }

/* ---------- on the stand: labelled specimen panels ---------- */
.bench { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 22px; margin: 0 0 92px; padding-top: 56px; position: relative; }
.bench::before { content: ""; position: absolute; left: 0; top: -2px; width: 72px; height: 3px; background: var(--blue); }
.bhead { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; }
.bhead::before { content: "Bench"; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.bhead h2 { font: 500 34px/1 var(--serif); letter-spacing: -.035em; color: var(--hi); }
.bx { position: relative; grid-column: 1 / -1; min-width: 0; padding: 32px 24px 24px; background: var(--panel); border: 1px solid var(--rule2); border-radius: var(--R); --cut: var(--panel); }
@media (min-width: 800px) {
  .melc { grid-column: span 12; } .pitch { grid-column: span 5; } .fsearch { grid-column: span 7; }
  .chordb { grid-column: span 12; } .fcm { grid-column: span 7; } .warm { grid-column: span 5; }
}
.bt { position: absolute; top: -14px; left: 18px; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 36px); padding: 0 12px 0 10px; background: var(--bg); }
.bt b { font: 500 21px/1.1 var(--serif); letter-spacing: -.02em; color: var(--hi); white-space: nowrap; }
.bt svg { width: 19px; height: 19px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.bt .tag { margin-left: 4px; }
.tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--rule2); border-radius: 5px; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--hi); background: none; line-height: 1.3; }
.tag i { display: none; }
.tag.amber { border-color: var(--rule2); color: var(--hi); }
.tag.live { background: var(--blue); border-color: var(--blue); color: #050505; }
.pill { padding: 7px 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule2); border-radius: var(--r); font: 500 12px/1 var(--mono); letter-spacing: .04em; transition: transform .12s, box-shadow .12s, border-color .12s; }
.pill:hover { border-color: var(--blue); color: var(--hi); transform: translateY(-2px); }
.pill.sm { padding: 7px 9px; font-size: 11.5px; }
.pill[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #050505; transform: none; }
.chip { padding: 7px 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule2); border-radius: 999px; font: 500 12px/1.3 var(--mono); text-align: left; transition: border-color .12s, color .12s, transform .12s; }
.chip:hover { border-color: var(--blue); color: var(--hi); transform: translateY(-2px); }

/* Mel's card */
.melc { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 32px; align-items: start; }
.melc-l { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.melav { display: grid; place-items: center; width: 148px; height: 148px; color: var(--blue); background: var(--panel2); border: 1px solid var(--blue); border-radius: 18px; outline: 1px solid var(--rule); outline-offset: 5px; --cut: var(--panel2); }
.melav svg { width: 104px; height: 104px; }
.melname { font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.melc-r { min-width: 0; }
.bub { position: relative; padding: 0 0 0 22px; border-left: 3px solid var(--blue); min-height: 124px; }
.mhi { display: block; margin-bottom: 10px; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.bub p { margin: 0 0 14px; min-height: 3.8em; font: italic 400 26px/1.32 var(--serif); letter-spacing: -.015em; color: var(--hi); }
.melc-act { margin-top: 18px; gap: 10px; }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 600px) { .melc { grid-template-columns: 1fr; gap: 20px; } .melc-l { flex-direction: row; align-items: center; } .melav { width: 92px; height: 92px; border-radius: 14px; } .melav svg { width: 66px; height: 66px; } .bub p { font-size: 22px; } }

/* quick pitch */
.snds { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule2); border-radius: var(--r); overflow: hidden; }
.pn { padding: 14px 0; background: var(--bg); color: var(--hi); border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font: 500 21px/1 var(--serif); transition: background .1s; }
.pn:nth-child(4n) { border-right: 0; } .pn:nth-last-child(-n+4) { border-bottom: 0; }
.pn.blk { background: var(--panel2); color: var(--dim); }
.pn:hover { background: var(--panel2); color: var(--hi); }
.pn[aria-pressed=true] { background: var(--blue); color: #050505; }
.qrow { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.oct { display: flex; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.oct .btn { padding: 5px 12px; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; opacity: .3; }
.eq i { width: 4px; height: 6px; background: var(--blue); }
.eq.on { opacity: 1; }
.eq.on i { animation: eq .8s steps(6) infinite; }
.eq i:nth-child(2) { animation-delay: .15s !important; } .eq i:nth-child(3) { animation-delay: .3s !important; } .eq i:nth-child(4) { animation-delay: .08s !important; } .eq i:nth-child(5) { animation-delay: .22s !important; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 22px; } }
#qps { min-height: 1.4em; margin: 10px 0 0; }

/* fingering finder */
.fqin { display: flex; gap: 10px; margin: 16px 0 4px; flex-wrap: wrap; }
.fqin input { flex: 1 1 130px; } .fqin select { flex: 1 1 150px; }
.fqr { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 14px; }
.fr { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 11px 13px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule2); border-radius: 10px; transition: transform .12s, box-shadow .12s, background .12s; }
.fr b { font: 500 25px/1 var(--serif); letter-spacing: -.02em; color: var(--hi); }
.fr b sub { font: 500 11px var(--mono); color: var(--dim); margin-left: 2px; }
.fr span { font: 500 12px var(--mono); color: var(--blue); }
.fr:hover { transform: translateY(-1px); box-shadow: var(--ring); border-color: var(--blue); }
.fr.on { background: var(--blue); border-color: var(--blue); }
.fr.on b, .fr.on span, .fr.on sub { color: #050505; }
.sugs2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }

/* chord builder */
.cbrow { margin: 16px 0 10px; }
.roots, .quals { display: flex; flex-wrap: wrap; gap: 6px; }
.cbout { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.cbn { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cbt { margin-right: 10px; font: 500 34px/1 var(--serif); letter-spacing: -.035em; color: var(--hi); }
.cn { display: inline-grid; place-items: center; min-width: 46px; height: 38px; padding: 0 10px; border: 1px solid var(--blue); border-radius: 8px; font: 500 20px/1 var(--serif); color: var(--hi); background: var(--bg); }
.cbk { margin-top: 18px; }
.cbk svg { display: block; width: 100%; height: auto; max-height: 96px; }
.k { fill: var(--ink); stroke: var(--bg); stroke-width: 1.5; }
.k.on { fill: var(--blue); }
.bk { fill: var(--bg); stroke: var(--rule2); stroke-width: 1; }
.bk.on { fill: var(--blue); stroke: var(--hi); }

/* quick flashcards */
.fcard { display: block; width: 100%; margin-top: 14px; padding: 0; border: 0; background: none; perspective: 1000px; text-align: left; }
.fin { position: relative; display: block; min-height: 206px; transition: transform .5s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.fcard.turned .fin { transform: rotateY(180deg); }
.ff { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 24px; background: var(--bg); border: 1px solid var(--blue); border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: box-shadow .15s; }
.fcard:hover .ff { box-shadow: var(--ring); }
.ff small { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.ff b { font: 500 28px/1.15 var(--serif); letter-spacing: -.02em; color: var(--hi); }
.ff em { margin-top: 6px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--dim); }
.fb { transform: rotateY(180deg); background: var(--blue); }
.fb small, .fb b { color: #050505; }
.fcard.done .ff b { color: var(--blue); } .fcard.done .fb b { color: #050505; }
.fcact { margin-top: 16px; gap: 10px; }

/* warm-up */
.wl { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--rule2); }
.wl li { border-bottom: 1px solid var(--rule); }
.wi { display: flex; align-items: flex-start; gap: 14px; padding: 12px 2px; cursor: pointer; font: 400 17px/1.35 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.wi input { position: absolute; opacity: 0; }
.bx2 { flex: none; width: 21px; height: 21px; margin-top: 2px; border: 1px solid var(--blue); border-radius: 6px; background: var(--bg); display: grid; place-items: center; transition: background .12s; }
.wi:hover .bx2 { background: var(--panel2); }
.wi input:checked + .bx2 { background: var(--blue); }
.wi input:checked + .bx2::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #050505; border-bottom: 2px solid #050505; transform: rotate(-45deg) translate(1px, -1px); }
.wi input:checked ~ span:last-child { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--blue); }
.wi input:focus-visible + .bx2 { outline: 2px solid var(--hi); outline-offset: 2px; }
.wbar { height: 4px; margin-top: 18px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.wbar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .4s; }
.note, .wn { display: block; margin: 12px 0 0; font: italic 400 16px var(--serif); color: var(--dim); }

/* ---------- Mel: floating button and chat ---------- */
.mel {
  position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40; width: 66px; height: 66px;
  display: grid; place-items: center; color: var(--blue); background: var(--bg); border: 1px solid var(--blue); border-radius: 50%;
  box-shadow: var(--ring); transition: transform .14s, box-shadow .14s;
}
.mel:hover { transform: translateY(-1px); box-shadow: var(--ring); }
.mel:active { transform: none; box-shadow: none; }
.mel svg { width: 46px; height: 46px; }
.drawer {
  position: fixed; right: 18px; bottom: 160px; z-index: 40; width: min(396px, calc(100vw - 36px)); height: min(548px, 68vh);
  display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--blue); border-radius: 16px; box-shadow: var(--ring);
}
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--rule2); background: var(--panel2); }
.drawer header b { display: flex; align-items: center; gap: 10px; font: 600 11.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.drawer header button { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 8px; font-size: 24px; line-height: 1; color: var(--dim); }
.drawer header button:hover { border-color: var(--rule2); color: var(--hi); }
#mst { margin: 0; padding: 8px 16px 0; font-size: 11px; }
#log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.m { max-width: 90%; padding: 4px 0 4px 13px; border-left: 3px solid var(--blue); color: var(--ink); font-size: 16.5px; line-height: 1.45; animation: fade .25s; }
.m.me { align-self: flex-end; padding: 9px 13px; border: 0; border-radius: 12px 12px 3px 12px; background: var(--blue); color: #050505; }
#chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
#f { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--rule); }
#f input { flex: 1; }
.sugs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 8px 0 6px; }
.m .chip { font-size: 12px; padding: 6px 11px; }
.chip.all { border-color: var(--blue); color: var(--blue); }
#qlist { flex: 1; overflow-y: auto; padding: 12px 16px; }
.qtop { display: flex; gap: 8px; margin-bottom: 8px; position: sticky; top: -12px; background: var(--panel); padding: 4px 0 8px; }
.qcat { margin: 18px 0 8px; padding-bottom: 5px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); border-bottom: 1px solid var(--rule2); }
.qi { display: block; width: 100%; margin: 0 0 6px; padding: 9px 12px; background: var(--bg); color: var(--ink); text-align: left; border: 1px solid var(--rule); border-radius: 9px; font: 400 15.5px var(--serif); transition: background .12s, color .12s, border-color .12s; }
.qi:hover { background: var(--blue); color: #050505; border-color: var(--blue); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.pop { animation: pop .22s; }
@keyframes pop { 50% { transform: scale(1.06); } }

/* ---------- footer and the stale-file notice ---------- */
.foot { margin: 0; padding: 24px 0 40px; border-top: 1px solid var(--blue); color: var(--dim); font: 400 12px/1.7 var(--mono); }
.stale { position: sticky; top: 0; z-index: 90; padding: 12px 16px; background: #b3261e; color: #fff; font: 600 14px var(--mono); text-align: center; }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .col { padding: 0 16px; }
  .hero { padding: 40px 0 40px; }
  .facts dd { font-size: 36px; }
  .stories .gl { width: 62px; height: 62px; } .gw { height: 76px; } .story { min-height: 150px; padding: 10px 9px 12px; } .story b { font-size: 15.5px; } .story i { font-size: 9px; letter-spacing: .1em; }
  .slide { padding: 28px 24px 32px; min-height: 290px; } .slide h3 { font-size: 34px; } .slide p { font-size: 18px; }
  .arr { display: none; }
  .ph b { font-size: 28px; }
  .vb { width: 62px; height: 86px; }
  .box { padding: 22px 18px 22px 24px; }
  .bx { padding: 30px 16px 20px; }
}
@media (hover: none) { .arr { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Refinements: single reading column, fluid type, tidy radii
   ========================================================================== */

/* frame: fixed side index + one focused column */
@media (min-width: 1000px) {
  .page { grid-template-columns: 208px minmax(0, 1fr); max-width: 1160px; padding-right: 32px; }
  .col { max-width: 800px; padding-left: clamp(40px, 5vw, 64px); }
}

/* hero: title, lede, actions, then a hairline row of figures */
.hero { display: block; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 8.4ch; font: 500 var(--t5)/.92 var(--serif); letter-spacing: -.045em; }
.lede { max-width: 36em; margin: clamp(20px, 3vw, 32px) 0 clamp(24px, 3vw, 34px); font: 400 var(--t1)/1.6 var(--sans); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; border: 0; border-top: 1px solid var(--rule2); }
.facts > div { display: block; padding: 18px 16px 4px 0; border: 0; border-right: 1px solid var(--rule); }
.facts > div:not(:first-child) { padding-left: 18px; }
.facts > div:last-child { border-right: 0; }
.facts > div:first-child { border-top: 0; }
.facts dt { margin-bottom: 8px; line-height: 1.4; }
.facts dd { font-size: var(--t4); line-height: 1; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2n) { border-right: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 18px; }
}

/* index and plate headings */
.rh h2 { font-size: var(--t3); }
.ph { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 8px; align-items: center; padding: 0 0 clamp(20px, 3vw, 30px); }
.ph::before { grid-column: 1 / -1; width: auto; }
.ph .av { display: grid; grid-row: 2 / span 2; width: 52px; height: 52px; margin: 0; color: var(--blue); border: 1px solid var(--rule2); border-radius: 16px; }
.ph > div { min-width: 0; }
.ph b { font: 500 var(--t3)/1.1 var(--serif); letter-spacing: -.03em; }
.ph span.s { margin-top: 4px; font: italic 400 var(--t0)/1.4 var(--serif); }
.bhead h2 { font-size: var(--t3); }
.slide h3 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.slide p { font: 400 var(--t1)/1.6 var(--sans); }
.cap { font-size: var(--t1); }
.deckcard h3 { font-size: var(--t3); }
#qq, #sqq { font-size: var(--t2); line-height: 1.25; }

/* instrument index sits cleanly in the column */
.stories { border-radius: var(--R); overflow: hidden; border: 1px solid var(--rule2); }
@media (min-width: 1000px) { .stories { grid-template-columns: repeat(5, minmax(0, 1fr)); } .story:last-child { grid-column: span 2; } }
.story { border-radius: 0; }
.story:hover { transform: none; box-shadow: inset 0 0 0 1px var(--blue); }

/* bench: two measured columns */
@media (min-width: 800px) {
  .pitch, .fsearch, .fcm, .warm { grid-column: span 6; }
}
.bench { gap: 44px 20px; }

/* radii: 12px controls, 14-24px groupings */
.ddb { border-radius: 16px; } #ddl { border-radius: 18px; } #ddl button { border-radius: 12px; }
.opt, .fr, .ff { border-radius: 16px; } .cn, .seg { border-radius: 14px; }
.arr { border-radius: 14px; } .pgrid, .notes { border-radius: 16px; }
.drawer { border-radius: 22px; } .melav { border-radius: 24px; }
.vb { border-radius: 16px 16px 12px 12px; } .tag { border-radius: 8px; }

/* quiet, precise interaction: tint and a 1px ring, never a bounce */
.btn:hover { transform: none; box-shadow: none; background: var(--hi); border-color: var(--hi); }
.btn.alt:hover { background: var(--panel2); border-color: var(--blue); color: var(--hi); }
.ddb:hover, .arr:hover, .opt:hover:not(:disabled), .fr:hover, .mel:hover { transform: none; box-shadow: var(--ring); }
.pill:hover, .chip:hover { transform: none; }
.vb.down { transform: translateY(2px); }

/* body copy in sans, labels in mono, display in serif */
.opt { font: 500 var(--t0)/1.4 var(--sans); }
.qi { font: 400 .92rem/1.45 var(--sans); }
.wi { font: 400 var(--t0)/1.5 var(--sans); }
.m { font-size: .95rem; line-height: 1.55; }
.melc .bub p { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem); }
.note, .wn { font-size: var(--t0); }

/* ==========================================================================
   ROUNDED PASS: no hard corners anywhere. Same palette, softer edges.
   ========================================================================== */
:root { --rr: 14px; --rr2: 20px; }
/* instrument index: separate rounded tiles instead of a ruled grid */
.stories { border: 0; border-radius: 0; overflow: visible; gap: 10px; background: none; }
.story, .story:hover { border: 1px solid var(--rule2); border-radius: var(--rr2); }
.story { transition: background .15s, border-color .15s, transform .15s; }
.story:hover { transform: translateY(-3px); box-shadow: none; border-color: var(--blue); background: var(--panel2, #0a0c10); }
.story.on { border-radius: var(--rr2); }
.gl, .gl * { stroke-linejoin: round; }
.gl { width: 84px; height: 84px; }
/* controls, boxes, panels */
select, input[type=text], .btn, .pill, .chip, .tag, .fc, .pn, .cn, .opt, .qi, .box, .deckcard, .staffbox, .car, .facts, .melc, .kick, .stale { border-radius: var(--rr); }
.box, .deckcard, .staffbox, .car, .melc { border-radius: var(--rr2); }
.btn { border-radius: 999px; }
.tag { border-radius: 999px; }
.seg { border-radius: 999px; overflow: hidden; }
.seg .btn { border-radius: 0; }
.pill, .chip { border-radius: 999px; }
.notes, .fchart, .fqr, .pgrid { border-radius: var(--rr2); overflow: hidden; }
.dots i { height: 6px; width: 6px; border-radius: 50%; } .dots i.on { width: 22px; border-radius: 999px; }
.bar, .wbar { border-radius: 999px; } .bar i, .wbar i { border-radius: 999px; }
.mel { border-radius: 50%; } .melav { border-radius: 28px; }
.drawer { border-radius: 24px; } .m { border-radius: 16px; } .m.me { border-radius: 16px 16px 4px 16px; }
.bx2, .chk input { border-radius: 7px; }
input[type=range]::-webkit-slider-thumb { border-radius: 999px; } input[type=range]::-moz-range-thumb { border-radius: 999px; }
.fcard, .flip, .face, .ff { border-radius: var(--rr2); }
.ph .av { border-radius: 16px; }
.facts { border-radius: var(--rr2); overflow: hidden; }
/* music notation: round caps and joins on every stem, beam, clef and ledger line */
.stf *, .nt *, .cbk svg * { stroke-linecap: round; stroke-linejoin: round; }
.nt .bm { stroke-linecap: round; }
.bt svg { stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.lm, .logo svg { stroke-linejoin: round; }
@media (max-width: 560px) { .gl { width: 64px; height: 64px; } .stories { gap: 8px; } }
.ph .av svg { width: 28px; height: 28px; }
.mel svg { width: 56px; height: 56px; } .drawer header b svg { width: 34px; height: 34px; }
