/* Generated by scripts/build.mjs from components/bundle.css: px converted to rem (hairlines stay px). Do not edit. */
/* Bashtrail — component styles (direction B · Arcade).
   Fonts, colours and scales come from tokens.css (generated from tokens.json).
   The short aliases below are the only names components read. */

:root {
  --f-display: var(--font-display);
  --f-body: var(--font-body);
  --f-mono: var(--font-mono);
  --display-weight: 800;
  --display-tracking: -0.03em;
  --body-size: 1.0625rem;
  --body-lh: 1.65;
  --r-sm: var(--radius-sm);
  --r-md: var(--radius-md);
  --r-lg: var(--radius-lg);
  --ctl-border: var(--line-strong);
  --card-border: var(--line-strong);
  --card-shadow: var(--shadow-card);
  --btn-shadow: var(--shadow-card);
  --btn-primary-border: var(--line-strong);
  --term-border: var(--line-strong);
  --press-y: var(--press-depth);
  --label-case: none;
  --label-tracking: 0.02em;
  --label-weight: 800;
  --logo-ink: var(--ink);
  --meter-fill: var(--highlight);
  --dot-1: #ff5a36;
  --dot-2: #ffcf33;
  --dot-3: #4fe0b6;
}

/* ---------- base ---------- */

.bt-root {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
}

.bt-root * { box-sizing: border-box; }

.bt-root :focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.125rem;
}

.bt-label {
  color: var(--ink-muted);
  font: var(--label-weight) 0.875rem/1rem var(--f-display);
  letter-spacing: var(--label-tracking);
  margin: 0;
  text-transform: var(--label-case);
}

.bt-display {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.05;
  margin: 0;
}

.bt-muted { color: var(--ink-muted); }

.bt-link {
  color: var(--link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.1875rem;
}

/* ---------- Button ---------- */

.bt-btn {
  align-items: center;
  background: var(--surface-raised);
  border: var(--stroke) solid var(--ctl-border);
  border-radius: var(--r-md);
  box-shadow: var(--btn-shadow);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: 600 1rem/1.2 var(--f-body);
  gap: var(--sp-2);
  justify-content: center;
  min-height: var(--size-target);
  min-width: var(--size-target);
  padding: 0 var(--sp-5);
  text-decoration: none;
  transition: transform var(--dur-quick) cubic-bezier(0.2, 0, 0, 1), box-shadow var(--dur-quick) cubic-bezier(0.2, 0, 0, 1);
}

.bt-btn:hover { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.06), var(--btn-shadow); }
.bt-btn:active { box-shadow: none; transform: translateY(var(--press-y)); }

.bt-btn--primary {
  background: var(--brand);
  border-color: var(--btn-primary-border);
  color: var(--on-brand);
}

.bt-btn--primary:hover { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.1), var(--btn-shadow); }

.bt-btn--pill {
  background: var(--ink);
  border-color: var(--ink);
  border-radius: var(--radius-pill);
  color: var(--surface);
  font-size: 0.875rem;
  padding: 0 var(--sp-4);
}

.bt-btn[disabled],
.bt-btn[aria-disabled="true"] {
  background: var(--surface-sunken);
  border-color: var(--line-strong);
  border-style: dashed;
  box-shadow: none;
  color: var(--ink-muted);
  cursor: not-allowed;
  transform: none;
}

.bt-btn svg { flex: none; height: 1rem; width: 1rem; }

.bt-row { align-items: center; display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Terminal ---------- */

.bt-term {
  background: var(--shell-bg);
  border: var(--stroke) solid var(--term-border);
  border-radius: var(--r-md);
  box-shadow: var(--btn-shadow);
  color: var(--shell-ink);
  overflow: hidden;
}

.bt-term__bar {
  align-items: center;
  background: var(--shell-bar);
  color: var(--shell-muted);
  display: flex;
  font: 500 0.75rem/1rem var(--f-mono);
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.bt-term__dot { background: var(--dot-1); border-radius: 50%; flex: none; height: 0.625rem; width: 0.625rem; }
.bt-term__dot:nth-child(2) { background: var(--dot-2); }
.bt-term__dot:nth-child(3) { background: var(--dot-3); }
.bt-term__title { margin-left: 0.375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bt-term__body {
  font: 400 0.875rem/1.8 var(--f-mono);
  margin: 0;
  padding: 0.75rem 1rem;
  white-space: pre-wrap;
}

.bt-term__prompt { color: var(--shell-prompt); }
.bt-term__out { color: var(--shell-muted); }
.bt-term__warn { color: var(--shell-warn); }

/* steady block caret: no blinking (WCAG 2.2.2, and kinder to attention) */
.bt-term__caret {
  background: var(--shell-ink);
  display: inline-block;
  height: 1.1em;
  vertical-align: -0.2em;
  width: 0.55em;
}

/* ---------- Feedback ---------- */

.bt-fb {
  background: var(--fb-bg);
  border: var(--stroke) solid var(--fb-c);
  border-radius: var(--r-md);
  color: var(--ink);
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: auto minmax(0, 1fr);
  padding: var(--sp-3) var(--sp-4);
}

.bt-fb--ok { --fb-c: var(--ok); --fb-bg: var(--ok-soft); }
.bt-fb--almost { --fb-c: var(--almost); --fb-bg: var(--almost-soft); }
.bt-fb--retry { --fb-c: var(--retry); --fb-bg: var(--retry-soft); }

.bt-fb__icon {
  background: var(--fb-c);
  border-radius: var(--radius-pill);
  color: var(--fb-bg);
  display: grid;
  height: 1.75rem;
  place-items: center;
  width: 1.75rem;
}

.bt-fb__icon svg { height: 1rem; width: 1rem; }
.bt-fb__heading { color: var(--fb-c); font: 700 1rem/1.3 var(--f-body); margin: 0.125rem 0 0; }
.bt-fb__body { font-size: 0.9375rem; line-height: 1.5; margin: 0.25rem 0 0; }

/* ---------- Progress + LessonNav ---------- */

.bt-progress { display: grid; gap: var(--sp-2); }

.bt-progress__head {
  color: var(--ink-muted);
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  line-height: 1.4;
}

.bt-progress__head strong { color: var(--ink); }

.bt-meter {
  background: var(--surface-sunken);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  height: 0.75rem;
  overflow: hidden;
}

.bt-meter > span { background: var(--meter-fill); display: block; height: 100%; }

.bt-nav { display: grid; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }

.bt-nav a {
  align-items: center;
  border-radius: var(--r-sm);
  color: var(--ink);
  display: flex;
  font-size: 0.9375rem;
  gap: var(--sp-3);
  line-height: 1.3;
  min-height: var(--size-target);
  padding: 0.25rem var(--sp-3);
  text-decoration: none;
}

.bt-nav a:hover { background: var(--surface-sunken); }
.bt-nav a[aria-current="step"] { background: var(--brand-soft); font-weight: 600; }

.bt-nav__num {
  background: var(--surface-sunken);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  display: grid;
  flex: none;
  font: 600 0.75rem/1 var(--f-mono);
  height: 1.75rem;
  place-items: center;
  width: 1.75rem;
}

.bt-nav__num svg { height: 0.875rem; width: 0.875rem; }
.is-done .bt-nav__num { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
[aria-current="step"] .bt-nav__num { background: var(--surface-raised); border: 0.125rem solid var(--link); color: var(--link); }
.bt-nav__time { color: var(--ink-muted); font-size: 0.8125rem; font-weight: 400; margin-left: auto; white-space: nowrap; }
.bt-nav__section { color: var(--ink-muted); font: var(--label-weight) 0.875rem/1rem var(--f-display); letter-spacing: var(--label-tracking); margin: var(--sp-3) 0 var(--sp-1); text-transform: var(--label-case); }

/* ---------- Code, command chip, keys ---------- */

.bt-code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--code-ink);
  font-family: var(--f-mono);
  font-size: 0.88em;
  padding: 0.08em 0.4em;
}

.bt-cmd {
  align-items: center;
  background: var(--code-bg);
  border: var(--stroke) solid var(--ctl-border);
  border-radius: var(--r-sm);
  color: var(--code-ink);
  display: inline-flex;
  font: 500 0.9375rem/1.4 var(--f-mono);
  gap: 0.6em;
  padding: 0.5rem 0.75rem;
}

.bt-cmd::before { color: var(--ink-muted); content: "$"; }

.bt-keys { align-items: center; color: var(--ink-muted); display: flex; flex-wrap: wrap; font-size: 0.875rem; gap: var(--sp-2) var(--sp-4); }
.bt-keys span { align-items: center; display: inline-flex; gap: 0.375rem; }

.bt-kbd {
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-bottom-width: 0.1875rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font: 600 0.8125rem/1 var(--f-mono);
  min-width: 1.75rem;
  padding: 0.3125rem 0.4375rem 0.25rem;
  text-align: center;
}

/* ---------- Pager ---------- */

.bt-pager { display: grid; gap: var(--sp-3); grid-template-columns: 1fr 1fr; }

.bt-pager a {
  background: var(--surface-raised);
  border: var(--stroke) solid var(--card-border);
  border-radius: var(--r-md);
  box-shadow: var(--btn-shadow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-height: var(--size-target);
  padding: var(--sp-3) var(--sp-4);
  text-decoration: none;
}

.bt-pager a.is-ready { align-items: flex-end; background: var(--brand); border-color: var(--btn-primary-border); color: var(--on-brand); text-align: right; }
.bt-pager__label { color: var(--ink-muted); font: var(--label-weight) 0.875rem/1rem var(--f-display); letter-spacing: var(--label-tracking); text-transform: var(--label-case); }
.is-ready .bt-pager__label { color: var(--on-brand); }
.bt-pager__title { font-size: 1rem; font-weight: 600; line-height: 1.3; }

/* ---------- Hint ladder ---------- */

.bt-hints { display: grid; gap: var(--sp-2); }

.bt-hint {
  background: var(--surface-raised);
  border: var(--stroke) solid var(--card-border);
  border-radius: var(--r-md);
}

.bt-hint > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 600;
  gap: var(--sp-3);
  list-style: none;
  min-height: var(--size-target);
  padding: 0.375rem var(--sp-4);
}

.bt-hint > summary::-webkit-details-marker { display: none; }
.bt-hint > summary::after { color: var(--ink-muted); content: "+"; font: 400 1.25rem/1 var(--f-mono); margin-left: auto; }
.bt-hint[open] > summary::after { content: "–"; }
.bt-hint__step { color: var(--ink-muted); font: 600 0.75rem/1 var(--f-mono); }
.bt-hint__body { font-size: 0.9375rem; line-height: 1.6; margin: 0; padding: 0 var(--sp-4) var(--sp-4); }
.bt-hint--locked { background: var(--surface-sunken); border-style: dashed; box-shadow: none; }
.bt-hint--locked > summary { color: var(--ink-muted); cursor: not-allowed; font-weight: 500; }
.bt-hint--locked > summary::after { content: ""; }

/* ---------- Course card ---------- */

.bt-course {
  background: var(--surface-raised);
  border: var(--stroke) solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.bt-course__title { font-size: 2rem; }
.bt-course__pareto { align-items: baseline; display: flex; gap: var(--sp-3); }
.bt-course__stat { color: var(--link); font: var(--display-weight) 2.75rem/1 var(--f-display); letter-spacing: var(--display-tracking); }
.bt-course__pareto p { font-size: 0.9375rem; line-height: 1.45; margin: 0; }
.bt-course__list { display: grid; font-size: 0.9375rem; gap: 0.375rem; list-style: none; margin: 0; padding: 0; }
.bt-course__list li { align-items: flex-start; display: flex; gap: var(--sp-2); line-height: 1.45; }
.bt-course__list svg { color: var(--link); flex: none; height: 1.125rem; margin-top: 1px; width: 1.125rem; }

.bt-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }

.bt-chip {
  align-items: center;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  display: inline-flex;
  font: 500 0.8125rem/1 var(--f-body);
  gap: 0.375rem;
  min-height: 1.75rem;
  padding: 0 0.625rem;
}

.bt-chip svg { height: 0.875rem; width: 0.875rem; }

/* ---------- Sprint timer ---------- */

.bt-sprint {
  background: var(--surface-raised);
  border: var(--stroke) solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
}

.bt-sprint__head { align-items: end; display: flex; justify-content: space-between; gap: var(--sp-3); }
.bt-sprint__clock { font: var(--display-weight) 2.25rem/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: var(--display-tracking); }
.bt-sprint__note { font-size: 0.875rem; line-height: 1.45; margin: 0; }

.bt-segs { display: grid; gap: 0.25rem; grid-template-columns: repeat(var(--bt-seg-count, 12), minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.bt-seg { background: var(--surface-sunken); border: 1px solid var(--line-strong); border-radius: 0.1875rem; height: 0.875rem; overflow: hidden; }
.bt-seg.is-group-end { margin-right: 0.375rem; } /* the site marks the last level of each world */
.bt-seg.is-done { background: var(--meter-fill); border-color: var(--meter-fill); }
.bt-seg.is-now { border: 0.125rem solid var(--link); }
.bt-seg.is-now > span { background: var(--meter-fill); display: block; height: 100%; }

/* ---------- Lockup (Bashtrail | Subject) ----------
   Geometry from the wordmark's 1738 × 820 viewBox: the terminal window is 96.24% of the
   height, starting 1.78% down; the title bar is 19.33%; the "bashtrail" baseline is 61.59%.
   Two sizes only, where the title-bar gap lands on the 0.25rem scale (decision 2):
   header 2.5875rem (gap 0.5rem = sp-2) and large 3.88125rem (gap 0.75rem = sp-3). */

.bt-lockup {
  --lk-h: 2.5875rem;
  --lk-gap: var(--sp-2);
  --lk-sub: calc(var(--lk-h) * 0.5);
  align-items: flex-start;
  color: var(--ink);
  display: inline-flex;
  flex: none;
  height: var(--lk-h);
  text-decoration: none;
}

.bt-lockup--lg { --lk-h: 3.88125rem; --lk-gap: var(--sp-3); }

/* A linked lockup is shorter than a 2.75rem target at header size: grow the hit area, not the drawing. */
a.bt-lockup { position: relative; }
a.bt-lockup::after {
  content: "";
  inset: min(0px, calc((var(--lk-h) - var(--size-target)) / 2)) 0;
  position: absolute;
}

.bt-lockup__mark {
  -webkit-mask: url("./logos/bashtrail-logo-arcade.svg") left top / contain no-repeat;
  background: var(--logo-ink);
  display: block;
  flex: none;
  height: var(--lk-h);
  mask: url("./logos/bashtrail-logo-arcade.svg") left top / contain no-repeat;
  width: calc(var(--lk-h) * 2.1195);
}

.bt-lockup__sep {
  background: var(--line-strong);
  flex: none;
  height: calc(var(--lk-h) * 0.9624);
  margin: calc(var(--lk-h) * 0.0178) var(--lk-gap) 0;
  width: var(--stroke);
}

/* Bricolage's baseline sits 0.83em below the top of a line-height:1 box. */
.bt-lockup__subject {
  font: var(--display-weight) var(--lk-sub)/1 var(--f-display);
  letter-spacing: -0.01em;
  margin-top: calc(var(--lk-h) * 0.6159 - var(--lk-sub) * 0.83);
  white-space: nowrap;
}

/* Below 1.75rem of wordmark: the $ favicon, then the subject name. */
.bt-lockup--mini { --lk-h: 1.5rem; align-items: center; gap: var(--sp-2); }
.bt-lockup--mini .bt-lockup__fav { display: block; flex: none; height: var(--lk-h); width: var(--lk-h); }
.bt-lockup--mini .bt-lockup__subject { font: var(--display-weight) 0.875rem/1 var(--f-display); margin-top: 0; } /* label size: half of 1.5rem would be unreadable */

/* ---------- Header ----------
   From the Mockups header (decision 7). Sticky above 21.6875rem (decision 8). Narrow-screen
   behaviour: .bt-header__wide hides under 62.5rem, .bt-header__mid under 53.75rem, and the
   menu button appears under 62.5rem. Breakpoints are in em (decision 10). */

.bt-header {
  background: var(--surface);
  border-bottom: var(--stroke) solid var(--line-strong);
  position: sticky;
  top: 0;
  z-index: 20;
}

.bt-header__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: 0 auto;
  max-width: var(--layout-max);
  padding: var(--sp-2) var(--sp-5);
}

.bt-header__nav { display: flex; gap: var(--sp-5); }

.bt-header__nav a {
  align-items: center;
  color: var(--ink-muted);
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: var(--size-target);
  text-decoration: none;
}

.bt-header__nav a:hover { color: var(--ink); }
.bt-header__nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--link); color: var(--ink); }

.bt-header__actions { align-items: center; display: flex; gap: var(--sp-3); margin-left: auto; }

.bt-header__all {
  align-items: center;
  color: var(--link);
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 600;
  min-height: var(--size-target);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.1875rem;
  white-space: nowrap;
}

.bt-header__menu { display: none; }
.bt-header__menu.bt-btn { padding: 0; width: var(--size-target); }
.bt-header__menu svg { height: 1.125rem; width: 1.125rem; }

@media (max-width: 62.5em) { /* 62.5rem */
  .bt-header__wide { display: none; }
  .bt-header__menu { display: inline-flex; }
}

@media (max-width: 53.75em) { /* 53.75rem */
  .bt-header__mid { display: none; }
  .bt-header__inner { padding: var(--sp-2) var(--sp-4); }
  .bt-lockup--lg { --lk-h: 2.5875rem; --lk-gap: var(--sp-2); } /* phones use the header size (decision 3) */
}

@media (max-width: 21.6875em) { /* 21.6875rem: the menu may wrap, so the header stops sticking */
  .bt-header { position: static; }
  .bt-header__actions { margin-left: auto; }
}

/* ---------- Drawer ----------
   No backdrop (decision 11): the drawer's edge and shadow-pop set it apart; the page
   behind is made inert by the site's script while it is open. */

.bt-drawer {
  background: var(--surface-raised);
  border-left: var(--stroke) solid var(--line-strong);
  box-shadow: var(--shadow-pop);
  display: grid;
  gap: var(--sp-4);
  height: 100dvh;
  inset: 0 0 0 auto;
  overflow-y: auto;
  padding: max(var(--sp-4), env(safe-area-inset-top, 0px)) max(var(--sp-4), env(safe-area-inset-right, 0px)) max(var(--sp-4), env(safe-area-inset-bottom, 0px)) var(--sp-4);
  position: fixed;
  align-content: start;
  width: min(20rem, 88vw);
  z-index: 30;
}

.bt-drawer[hidden] { display: none; }

.bt-drawer__links { display: grid; list-style: none; margin: 0; padding: 0; }

.bt-drawer__links a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  min-height: var(--size-target);
  text-decoration: none;
}

.bt-drawer__links a[aria-current="page"] { color: var(--link); font-weight: 600; }


/* ---------- Course card: coming soon (decision 5) ----------
   Promoted from Mockups. Not a link, not focusable; "Coming soon" is a text chip. */
.bt-course.is-soon { background: var(--surface); border-style: dashed; box-shadow: none; }
.bt-course.is-soon .bt-course__stat { color: var(--ink-muted); }

/* ---------- Pomodoro timer (decision 21) ----------
   Opt-in. 25-minute focus rounds, 5-minute breaks; nothing ends or locks on its own. */
.bt-rounds { align-items: center; color: var(--ink-muted); display: flex; font-size: 0.8125rem; gap: 0.375rem; list-style: none; margin: 0; padding: 0; }
.bt-rounds > li { background: var(--surface-sunken); border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); height: 0.875rem; width: 0.875rem; }
.bt-rounds > li.is-done { background: var(--meter-fill); border-color: var(--meter-fill); }
.bt-rounds > li.is-now { border: 0.125rem solid var(--link); }
.bt-sprint.is-break { background: var(--surface); border-style: dashed; box-shadow: none; }
.bt-sprint.is-break .bt-sprint__clock { color: var(--link); }

/* ---------- Progress strip and Levels panel (decision 19) ----------
   Every lesson page shows the strip. The Levels button opens LessonNav as a side panel
   (.bt-levels) on wide screens; on phones the site puts it in the drawer. */
.bt-strip { align-items: center; color: var(--ink-muted); display: flex; flex-wrap: wrap; font-size: 0.875rem; gap: var(--sp-2) var(--sp-4); }
.bt-strip strong { color: var(--ink); }
/* Pomodoro in the strip (SprintTimer, placement B): one button at the end of the strip opens the
   timer under the strip. While a round or break runs, the button shows the clock and round dots. */
.bt-strip__timer { margin-left: auto; padding: 0 var(--sp-4); }
/* Words for screen readers only (for example the rest of the Timer button's name). */
.bt-sr-only { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.bt-strip__clock { font: var(--display-weight) 1rem/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: var(--display-tracking); }
.bt-strip__timer.is-break { border-style: dashed; box-shadow: none; }
.bt-strip__timer.is-break .bt-strip__clock { color: var(--link); }
.bt-strip__timer .bt-rounds { gap: 0.25rem; }
.bt-strip__timer .bt-rounds > li { height: 0.625rem; width: 0.625rem; }
.bt-steps { display: flex; gap: 0.1875rem; list-style: none; margin: 0; padding: 0; }
.bt-steps > li { background: var(--surface-sunken); border: 1px solid var(--line-strong); border-radius: 0.1875rem; height: 0.5rem; width: 1.125rem; }
.bt-steps > li.is-done { background: var(--meter-fill); border-color: var(--meter-fill); }
.bt-steps > li[aria-current="step"] { border: 0.125rem solid var(--link); }
.bt-levels {
  align-content: start;
  background: var(--surface-raised);
  border-right: var(--stroke) solid var(--line-strong);
  box-shadow: var(--shadow-pop);
  display: grid;
  gap: var(--sp-3);
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-3);
  position: sticky;
  top: 4rem;
  width: var(--sidebar-width);
}
.bt-levels[hidden] { display: none; }

/* A stopping point between worlds (decision 20): a suggestion, never a lock. */
.bt-nav__stop {
  align-items: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  display: flex;
  font-size: 0.8125rem;
  gap: var(--sp-2);
  line-height: 1.4;
  margin: var(--sp-1) 0;
  padding: 0.375rem var(--sp-2);
}
.bt-nav__stop svg { flex: none; height: 0.875rem; width: 0.875rem; }

/* ---------- Feedback: plain panel (decision 23) ----------
   For messages that are not about the learner's result. No state colour, no icon. */
.bt-fb--note { --fb-c: var(--line-strong); --fb-bg: var(--surface-raised); grid-template-columns: minmax(0, 1fr); }
.bt-fb--note .bt-fb__heading { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .bt-btn, .bt-btn:active { transition: none; transform: none; }
}

@media (forced-colors: active) {
  .bt-btn, .bt-fb, .bt-meter, .bt-seg, .bt-nav__num, .bt-hint, .bt-pager a, .bt-course, .bt-sprint { border-color: CanvasText; }
  .bt-meter > span, .bt-seg.is-done, .bt-seg.is-now > span { background: Highlight; forced-color-adjust: none; }
  .bt-lockup__mark { background: CanvasText; forced-color-adjust: none; }
  .bt-lockup__sep { background: CanvasText; forced-color-adjust: none; }
  .bt-header, .bt-drawer, .bt-levels, .bt-nav__stop, .bt-steps > li, .bt-rounds > li { border-color: CanvasText; }
  .bt-steps > li.is-done, .bt-rounds > li.is-done { background: Highlight; forced-color-adjust: none; }
}
