:root {
  --bg: #f6f5f1; --surface: #ffffff; --surface2: #f0eee8; --ink: #1d1c1a; --muted: #6b6860;
  --line: #e3e0d8; --accent: #6d5efc; --ok: #2e9e5b; --bad: #d64545; --warn: #c98a12;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --c: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141412; --surface: #1d1c1a; --surface2: #262522; --ink: #ecebe6; --muted: #9a978e;
    --line: #33312d; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: inherit; }
h1 { font-size: 1.9rem; line-height: 1.15; margin: .2em 0 .3em; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.05rem; max-width: 60ch; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface2); padding: 1px 5px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px;
  padding: 10px 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--accent); }
.brand span { color: var(--ink); }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--surface2); }
.nav a.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent);
  color: #fff; text-decoration: none; font-weight: 700; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .9rem; padding: 4px; }
button.link:hover { color: var(--ink); }
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .nav { order: 3; flex-basis: 100%; }
  .who { margin-left: auto; }
}

/* cards & forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card.center { text-align: center; max-width: 480px; margin: 60px auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
input, textarea, select { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--c); outline-offset: 1px; border-color: transparent; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; }
.row-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 12px; }
.row-form label { flex: 1 1 180px; }
.row-form label.check { flex: 0 0 auto; padding-bottom: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 10px; padding: 10px 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
  transition: transform .06s, background .15s; touch-action: manipulation; }
.btn:hover { background: var(--surface2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--c); border-color: var(--c); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { padding: 14px 24px; font-size: 1.05rem; }
.btn.small { padding: 5px 10px; font-size: .85rem; border-radius: 8px; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn:disabled { opacity: .45; cursor: default; }

.flashes { display: grid; gap: 8px; margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 10px; background: var(--surface2); border-left: 4px solid var(--muted); }
.flash.ok { border-color: var(--ok); } .flash.error { border-color: var(--bad); } .flash.info { border-color: var(--accent); }

.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table.compact td { padding: 6px 8px; }
.table tr.dim td { opacity: .55; }
.tablewrap { overflow-x: auto; }
.actions { text-align: right; white-space: nowrap; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.tag.green { --c: var(--ok); } .tag.red { --c: var(--bad); } .tag.amber { --c: var(--warn); }

.menu { position: relative; display: inline-block; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; box-shadow: var(--shadow); display: grid; gap: 6px; min-width: 220px; }
.menu-body .btn { width: 100%; }
.menu-body .del { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.menu-body .del input { padding: 6px 8px; font-size: .85rem; }
.notice { border-color: var(--accent); }
.pw { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; margin: 6px 0; user-select: all; }

/* auth */
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.authcard { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); text-align: center; }
.authcard form { text-align: left; margin-top: 20px; }
.authlogo { color: var(--accent); }
.authcard .flashes { text-align: left; }

/* dashboard */
.hero { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.hero h1 { font-size: 2.2rem; }
.herostats { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.stat { display: grid; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px; text-decoration: none; }
.stat b { font-size: 1.5rem; line-height: 1.1; }
.stat span { font-size: .75rem; color: var(--muted); }
.link-stat:hover { border-color: var(--accent); }
.week { display: flex; gap: 4px; }
.week .day { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .72rem; font-weight: 700;
  background: var(--surface2); color: var(--muted); }
.week .day.on { background: var(--accent); color: #fff; }
.week .day.today { outline: 2px solid var(--accent); outline-offset: 1px; }

.workout-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.wlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.wlist a { display: grid; grid-template-columns: 12px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 10px; background: var(--surface2); text-decoration: none; border: 1px solid transparent; }
.wlist a:hover { border-color: var(--c); }
.wlist .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); grid-row: span 2; }
.wlist .wname { font-weight: 600; }
.wlist .wcat { grid-column: 2; font-size: .78rem; color: var(--muted); }
.wlist .wmin { grid-column: 3; grid-row: 1 / span 2; font-size: .85rem; color: var(--muted); }
.wlist li.done a { opacity: .6; }
.wlist li.done .wmin { color: var(--ok); font-weight: 700; }

.cat { margin-top: 28px; }
.cat-head { border-left: 4px solid var(--c); padding-left: 12px; margin-bottom: 12px; }
.cat-head h2 { margin: 0; }
.cat-head p { margin: 2px 0 0; font-size: .92rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.tile:hover { border-color: var(--c); transform: translateY(-2px); }
.tile.wide { margin-top: 4px; }
.tile-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mins { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.blurb { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.tile-foot { display: flex; justify-content: space-between; align-items: end; gap: 8px; min-height: 36px; }
.nums { display: flex; gap: 16px; }
.nums span { display: grid; line-height: 1.1; }
.nums small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.nums b { font-size: 1.2rem; }
.nums em { font-style: normal; font-size: .72rem; color: var(--muted); }
.spark { display: block; }

/* exercise page */
.ex-head { margin-bottom: 16px; }
.ex-head h1 { margin-top: 4px; }
.back { text-decoration: none; color: var(--muted); font-size: .9rem; margin-right: 10px; }
.back:hover { color: var(--ink); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  min-height: 420px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; }
.loading { color: var(--muted); }
.panel { max-width: 560px; width: 100%; }
.panel h2 { font-size: 1.4rem; }
.panel p { color: var(--muted); }
.panel .how { text-align: left; background: var(--surface2); border-radius: 12px; padding: 14px 18px; margin: 14px 0; color: var(--ink); font-size: .95rem; }
.panel .how li { margin: 4px 0; }
.panel .tipbox { text-align: left; border-left: 3px solid var(--c); padding: 6px 12px; margin: 14px 0; font-size: .92rem; color: var(--ink); }
.panel .levelline { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.btnrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.bigtext { font-size: clamp(3rem, 12vw, 6rem); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1; min-height: 1.1em; }
.prompt { font-size: 1.1rem; margin-bottom: 12px; color: var(--muted); }
.answer { font-size: 1.6rem; text-align: center; letter-spacing: .15em; max-width: 360px; font-variant-numeric: tabular-nums; }
.progressbar { position: absolute; top: 0; left: 0; height: 4px; background: var(--c); border-radius: 20px 0 0 0; transition: width .3s; }
.status { position: absolute; top: 14px; right: 18px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.status.left { right: auto; left: 18px; }
.feedback { font-weight: 700; font-size: 1.2rem; min-height: 1.5em; margin-top: 10px; }
.feedback.ok { color: var(--ok); } .feedback.bad { color: var(--bad); }
.result-score { font-size: 3.4rem; font-weight: 800; color: var(--c); line-height: 1; margin: 6px 0; }
.result-score small { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.pb { display: inline-block; background: var(--c); color: #fff; font-weight: 700; padding: 3px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 8px; }
.breakdown { text-align: left; margin: 14px auto; max-width: 440px; font-size: .92rem; }
.breakdown li { margin: 3px 0; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); }
.hist summary { cursor: pointer; font-weight: 600; }
.hist { margin-top: 20px; }
kbd { font-family: var(--mono); font-size: .85em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface2); }

/* n-back */
.nb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(320px, 80vw); aspect-ratio: 1; }
.nb-cell { background: var(--surface2); border-radius: 12px; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: #fff; transition: background .08s; }
.nb-cell.on { background: var(--c); }
.nb-btns { display: flex; gap: 12px; margin-top: 20px; width: min(420px, 92vw); }
.nb-btns .btn { flex: 1; padding: 16px 8px; font-size: 1rem; }
.btn.hit { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.miss { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.pressed { background: var(--surface2); border-color: var(--c); }

/* corsi */
.corsi { position: relative; width: min(520px, 92vw); aspect-ratio: 5/4; background: var(--surface2); border-radius: 16px; }
.cblock { position: absolute; width: 15%; aspect-ratio: 1; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--c) 30%, var(--surface)); cursor: pointer; transition: background .1s, transform .1s; padding: 0; }
.cblock.lit { background: var(--c); transform: scale(1.06); }
.cblock.wrong { background: var(--bad); }
.cblock:disabled { cursor: default; }

/* matrix */
.mgrid { display: grid; gap: 6px; width: min(420px, 88vw); aspect-ratio: 1; }
.mcell { border: 0; border-radius: 8px; background: var(--surface2); cursor: pointer; padding: 0; transition: background .12s; }
.mcell.lit { background: var(--c); }
.mcell.wrong { background: var(--bad); }
.mcell.missed { background: color-mix(in srgb, var(--c) 35%, transparent); }
.mcell:disabled { cursor: default; }

/* word list / recall */
.recall { width: 100%; max-width: 520px; min-height: 200px; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 560px; margin: 10px auto; }
.chip { padding: 3px 10px; border-radius: 999px; background: var(--surface2); font-size: .9rem; }
.chip.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-weight: 600; }
.chip.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); text-decoration: line-through; }

/* pairs */
.pair { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; display: flex; gap: .5em; align-items: center; justify-content: center; flex-wrap: wrap; }
.pair .amp { color: var(--c); font-weight: 400; }

/* faces */
.face-card { display: grid; justify-items: center; gap: 8px; }
.face-card svg { width: 180px; height: 180px; border-radius: 50%; background: var(--surface2); }
.face-name { font-size: 1.8rem; font-weight: 800; }
.face-job { color: var(--muted); font-size: 1.1rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(460px, 92vw); margin-top: 14px; }
.choices .btn { padding: 14px 8px; }
.choices .btn.right { background: var(--ok); border-color: var(--ok); color: #fff; }
.choices .btn.wrongpick { background: var(--bad); border-color: var(--bad); color: #fff; }

/* episode */
.event { max-width: 520px; text-align: left; background: var(--surface2); border-radius: 16px; padding: 22px 24px; border-left: 5px solid var(--c); }
.event .time { font-size: .9rem; font-weight: 700; color: var(--c); letter-spacing: .05em; text-transform: uppercase; }
.event .icon { font-size: 2.4rem; float: right; margin-left: 10px; }
.event p { color: var(--ink); font-size: 1.2rem; margin: 6px 0 0; }
.math { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* flashcards */
.fc { width: min(560px, 94vw); min-height: 240px; background: var(--surface2); border-radius: 18px; padding: 28px 24px; display: grid; align-content: center; gap: 12px; }
.fc .front { font-size: 1.5rem; font-weight: 700; }
.fc .back { font-size: 1.3rem; color: var(--c); font-weight: 600; border-top: 1px dashed var(--line); padding-top: 12px; }
.fc .deckname { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(560px, 94vw); margin-top: 16px; }
.grades .btn { display: grid; padding: 10px 4px; }
.grades .btn small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.grades .g1 { border-color: var(--bad); } .grades .g3 { border-color: var(--warn); } .grades .g4 { border-color: var(--ok); } .grades .g5 { border-color: var(--accent); }
.review-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.review-cta h2 { margin: 0; }
.cardlist { display: grid; gap: 6px; max-height: 560px; overflow-y: auto; }
.ci { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--surface2); border-radius: 10px; font-size: .92rem; }
.ci-meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ci-meta .due { color: var(--accent); font-weight: 700; }
.x { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0 4px; }
.x:hover { color: var(--bad); }
.tip { margin-top: 14px; }
.danger-zone { margin-top: 16px; }
.danger-zone summary { cursor: pointer; }
.danger-zone form { margin-top: 8px; }

/* techniques */
.techs { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 18px; }
.tech { border-top: 4px solid var(--c); margin: 0; }
.tech p, .tech li { font-size: .95rem; }
.tech .uses { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 0; }

/* [NBACK-DEMO-v1] example graphic + demo */
.panel.wide { max-width: 860px; }
.nb-figure { margin: 6px 0 14px; background: var(--surface2); border-radius: 14px; padding: 12px 10px 10px; }
.nb-figure-scroll { overflow-x: auto; }
.nb-example { display: block; width: 100%; min-width: 520px; height: auto; margin: 0 auto; }
.nb-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; align-items: center; }
.ex-cell { fill: var(--surface); }
.ex-on { fill: var(--c); }
.ex-letter { fill: #fff; font-weight: 800; font-size: 17px; font-family: var(--font); }
.ex-step { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.ex-verdict { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--font); }
.ex-v-memorize, .ex-v-none { fill: var(--muted); font-weight: 600; }
.ex-v-pos { fill: var(--c); } .ex-v-letter { fill: #e8793a; } .ex-v-both { fill: var(--ok); }
.ex-keys { fill: var(--muted); font-size: 11.5px; font-family: var(--font); }
.ex-arrow-p { fill: none; stroke: var(--c); stroke-width: 2.2; }
.ex-arrow-l { fill: none; stroke: #e8793a; stroke-width: 2.2; stroke-dasharray: 5 4; }
.ex-arrow-p-fill { fill: var(--c); } .ex-arrow-l-fill { fill: #e8793a; }
.ex-arrow-label { font-size: 11.5px; font-weight: 700; font-family: var(--font); }
.ex-arrow-label.p { fill: var(--c); } .ex-arrow-label.l { fill: #e8793a; }
.ex-key { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.ex-key.p { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.ex-key.l { color: #e8793a; background: color-mix(in srgb, #e8793a 14%, transparent); }
.demo-badge { position: absolute; top: 14px; left: 18px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); padding: 3px 10px; border-radius: 999px; }
.demo-caption { min-height: 3.2em; max-width: 560px; font-size: 1.05rem; margin: 18px auto 14px; line-height: 1.45; }
.nb-grid.demo { width: min(260px, 70vw); }
.nb-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; min-height: 62px; }
.thumb { display: grid; justify-items: center; gap: 2px; padding: 4px; border-radius: 8px; border: 2px solid transparent; opacity: .55; }
.thumb.ref { border-color: var(--c); opacity: 1; }
.thumb b { font-size: .8rem; }
.thumb small { font-size: .65rem; color: var(--c); font-weight: 700; white-space: nowrap; }
.thumb-grid { display: grid; grid-template-columns: repeat(3, 10px); gap: 2px; }
.thumb-grid span { width: 10px; height: 10px; border-radius: 2px; background: var(--surface2); }
.thumb-grid span.on { background: var(--c); }
.ex-arrow-label { paint-order: stroke; stroke: var(--surface2); stroke-width: 4px; stroke-linejoin: round; }
.nb-grid { grid-template-rows: repeat(3, 1fr); }
.nb-cell { min-height: 0; min-width: 0; }
.nb-grid.demo .nb-cell { font-size: 1.8rem; }

/* [NBACK-PACE-v1] */
.pace { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0 0 12px; text-align: left; display: grid; gap: 8px; }
.pace legend { font-weight: 700; font-size: .85rem; padding: 0 6px; }
.pace-opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.pace-opt:has(input:checked) { background: color-mix(in srgb, var(--c) 10%, transparent); }
.pace-opt input { width: auto; margin-top: 4px; accent-color: var(--c); }
.pace-opt span { display: grid; }
.pace-opt small { color: var(--muted); font-size: .85rem; }
.pace-speed { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); padding-left: 8px; }
.pace-speed select { width: auto; padding: 6px 10px; }
.nb-caption { min-height: 1.6em; margin-bottom: 12px; font-size: 1.05rem; }
.nb-next { display: grid; justify-items: center; gap: 4px; margin-top: 14px; }
.btn.missed { border: 2px dashed var(--bad); color: var(--bad); }
.btn.pressed kbd, .btn.hit kbd, .btn.miss kbd { background: rgba(255,255,255,.25); color: inherit; border-color: transparent; }
.btn.primary kbd { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.4); }
