/* ── First-run welcome banner ─────────────────────────────────────────────────── */
#welcome-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto 16px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1.5px solid var(--action-line);
  border-radius: 16px;
}
#welcome-banner .wb-emoji { font-size: 1.8rem; line-height: 1; }
#welcome-banner .wb-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
#welcome-banner .wb-text strong { color: var(--text); font-size: 0.98rem; }
#welcome-banner .wb-text span { color: var(--muted); font-size: 0.82rem; }
#welcome-banner .wb-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
#welcome-banner .wb-btn:hover { border-color: var(--action); }
#welcome-banner .wb-btn:active { transform: scale(0.97); }
#welcome-banner .wb-primary {
  background: var(--action);
  background-image: var(--action-grad);
  border-color: var(--action-lilac);
  color: var(--text-strong);
  font-weight: 700;
  box-shadow: var(--halo-action);
}
#welcome-banner .wb-primary:hover { background: var(--action-deep); }

@media (max-width: 720px) {
  #welcome-banner { flex-wrap: wrap; gap: 10px; }
  #welcome-banner .wb-text { flex-basis: calc(100% - 60px); }
  #welcome-banner .wb-primary { flex: 1; }
}

/* ── Card ─────────────────────────────────────────────────────────────────────── */
/* Progress toward the next unlock, for the type being played (ui.js::updateTypeProgress).
   One muted line on every width: title · have/need + bar · influx · ▾; the toggle reveals the three
   requirements (initTypeProgress). Quieter than the card under it. */
.type-progress {
  max-width: 780px;
  margin: 0 auto 12px;
  padding: 4px 6px 4px 14px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}
.type-progress[hidden] { display: none; }
.type-progress > .tp-title { padding: 8px 0; }
/* Message-only strip (domain done / locked): no toggle to reveal the rest, so it wraps. */
.tp-title.tp-msg { white-space: normal; overflow: visible; }
.tp-head { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.tp-title { line-height: 1.4; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-title b { color: var(--text); font-weight: 600; }
.tp-note { color: var(--muted); font-size: 12px; }
.tp-inline { display: flex; align-items: center; gap: 8px; flex: none; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-influx.ok { color: var(--action-lilac); }
.tp-bar {
  width: 72px;
  height: 6px;
  background: var(--surface-sunk);
  border-radius: 999px;
  overflow: hidden;
}
.tp-bar > span {
  display: block;
  height: 100%;
  background: var(--shade, var(--action));   /* the frontier's domain shade (ui.js, spec §4.1) */
  border-radius: inherit;
  transition: width 0.4s ease;
}
.tp-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 36px; min-height: 36px;
  background: transparent; border: 0; border-radius: 8px; color: var(--muted); font-size: 14px; cursor: pointer;
}
.tp-toggle:hover { color: var(--text); background: var(--surface-3); }
.tp-toggle span { transition: transform 0.15s; }
.tp-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.tp-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 0 8px; font-size: 12px; color: var(--muted); }
.tp-collapsed .tp-steps { display: none; }
.tp-step.ok { color: var(--action-lilac); }
.tp-boss { color: var(--text-strong); font-weight: 700; }

/* Direction badge in card */
.dir-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  margin-left: 6px;
}
/* Direction and level badges are information: lilac-grey, no fill (spec §4). */
.dir-badge.en-fr, .dir-badge.fr-en { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.card-top { display: flex; align-items: center; flex-wrap: wrap; }

/* The card. Directed light (light.js, spec §5): while a question is on screen the card holds
   the soft violet edge glow; once graded, the light moves to the verdict and the card rests. */
#card {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-strong) 8%, transparent);
  max-width: 780px;
  margin: 0 auto;
  transition: border-color .25s, box-shadow .25s;
}
:root:not([data-light]) #card,
:root[data-light="question"] #card {
  border-color: var(--action-line);   /* fallback without color-mix() (Safari < 16.2) */
  border-color: color-mix(in srgb, var(--action) 55%, var(--line));
  box-shadow: var(--halo-card);       /* same: old browsers keep the halo */
  box-shadow: var(--halo-card), inset 0 1px 0 color-mix(in srgb, var(--text-strong) 8%, transparent);
}

.category-badge {
  --shade: var(--muted);   /* set inline to the domain's shade (config.js::categoryShade) */
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 4px 3px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--shade);
}
/* The domain's shade: text and a small dot, never a fill or a halo (spec §4.1). */
.category-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shade); flex: none; }

/* Topic badge (theme axis) — neutral pill beside the colored category badge */
.theme-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  margin-left: 6px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ℹ️ rule-card button (grammar tip) — sits in the card-top next to the badges. */
.rule-btn {
  margin-left: 6px;
  margin-bottom: 18px;
  padding: 1px 7px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 20px;
  cursor: pointer;
  background: var(--surface-3);
  border: 1px solid var(--line);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.rule-btn:hover { border-color: var(--action-line); transform: translateY(-1px); }

/* Rule-card modal body sections. */
.rule-section { margin-bottom: 16px; }
.rule-section:last-child { margin-bottom: 0; }
.rule-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.rule-section p { margin: 0; line-height: 1.5; }
.rule-ex { margin: 0; padding-left: 18px; line-height: 1.6; }
.rule-ex li { margin-bottom: 3px; }

/* Conjugation table inside the rule card. */
.conj-table { width: 100%; border-collapse: collapse; }
.conj-table td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.conj-table tr:last-child td { border-bottom: none; }
.conj-table .conj-hit td,
.conj-table tr.conj-hit td {
  font-weight: 800;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--action) 22%, transparent);
  border-radius: 4px;
}

.q-prompt {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 10px;
}

.q-text {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-strong);
  word-break: break-word;
}

.xp-preview {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}

textarea {
  width: 100%;
  background: var(--surface-sunk);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  resize: none;
  outline: none;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* Free text: the field is "the targeted answer" — it takes the action halo while typed in. */
textarea:focus    { border-color: var(--action-lilac); box-shadow: var(--halo-action); box-shadow: 0 0 0 3px var(--action-glow), var(--halo-action); }
textarea.t-ok     { border-color: var(--ok);  background: var(--ok-sunk); box-shadow: 0 0 26px -6px var(--ok); }
textarea.t-close  { border-color: var(--almost); background: var(--almost-sunk); box-shadow: 0 0 26px -8px var(--almost); }
textarea.t-wrong  { border-color: var(--ko);    background: var(--ko-sunk); }
textarea:disabled { opacity: 0.75; cursor: default; }

/* Accent keys under the French answer box (render.js::accentBar) */
.accent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
textarea:disabled + .accent-row { display: none; }
.accent-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.accent-bar[hidden] { display: none; }
.accent-toggle {
  padding: 5px 10px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
}
.accent-toggle:hover  { border-color: var(--action); color: var(--text); }
.accent-toggle.active { border-color: var(--action); background: var(--action-glow); color: var(--text); }
.accent-key {
  min-width: 34px;
  padding: 5px 0;
  background: var(--surface-sunk);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
}
.accent-key:hover { border-color: var(--action); background: var(--surface-1); }

.hint-area { margin-top: 10px; min-height: 22px; }
.hint-text {
  font-size: 13px;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  background: var(--surface-sunk);
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 1.5px;
}

.explain-block {
  margin-top: 8px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--text-strong) 3%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.explain-h {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.explain-tip {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.feedback {
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.fb-ok    { background: var(--ok-sunk); border: 1px solid var(--ok-line); color: var(--ok-soft); }
/* Once the reward beat settles, the verdict stays the best-lit block while the player reads. */
.fb-ok, .fb-close { box-shadow: 0 0 24px -14px currentColor; }
.fb-close { background: var(--almost-sunk); border: 1px solid var(--almost-line); color: var(--almost-soft); }
.fb-wrong { background: var(--ko-sunk); border: 1px solid var(--ko-line); color: var(--ko-soft); }
.feedback em  { font-style: normal; font-weight: 600; }
.feedback .combo-bonus { margin-left: 8px; font-weight: 700; }
.wrong-run { display: block; margin-top: 6px; font-size: 13px; color: var(--text-soft); }
.feedback .fb-alts { opacity: 0.65; font-size: 13px; }
.feedback .fb-practice { opacity: 0.7; font-size: 12px; font-style: italic; }

/* All valid answers revealed under the QCM verdict (incl. alternatives). */
.mcq-allforms {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.mcq-allforms .maf-label { color: var(--muted); font-size: 12px; font-weight: 700; margin-right: 6px; }
.mcq-allforms em { font-style: normal; font-weight: 600; color: var(--text-strong); }

/* C-B1: grammatical hint shown under a wrong QCM pick (tense / role contrast). */
.mcq-explain {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}
.mcq-explain em { font-style: normal; font-weight: 600; }

.btn-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

button {
  font-family: inherit;
  font-size: 14px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all 0.15s;
  padding: 10px 20px;
  color: var(--text);
  background: transparent;
}
button:active:not(:disabled) { transform: scale(0.97); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: var(--action);
  background-image: var(--action-grad);
  color: var(--text-strong);
  border-color: var(--action-lilac);
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 800;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--action-deep) 60%, var(--shadow));
}
.btn-primary:hover:not(:disabled) { background: var(--action-deep); }
/* After a wrong or "almost" answer, Next holds the light; after a right one the reward does. */
:root[data-light="wrong"] .btn-row .btn-primary,
:root[data-light="almost"] .btn-row .btn-primary { box-shadow: var(--halo-action); box-shadow: 0 3px 0 color-mix(in srgb, var(--action-deep) 60%, var(--shadow)), var(--halo-action); }

.btn-secondary { color: var(--muted); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }

/* Skip and Hint: controls at rest (spec §5); only their price is gold (coins, §4). */
.btn-skip {
  background: var(--surface-3);
  border-color: var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
}
.btn-skip:hover:not(:disabled) { border-color: var(--action-line); color: var(--text-strong); }
.btn-skip .price, .btn-hint .price { color: var(--coin); font-weight: 700; margin-left: 2px; }
/* Hint: a real button next to Skip. Disabled (QCM, after submit, already used, too few coins)
   it stays readable so the player sees it and its price. */
.btn-link.btn-hint {
  background: var(--surface-3);
  border-color: var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  font-size: inherit;
  text-decoration: none;
}
.btn-link.btn-hint:hover:not(:disabled) { border-color: var(--action-line); color: var(--text-strong); }
.btn-hint:disabled { opacity: 0.6; cursor: not-allowed; }

/* "Why is the hint greyed?" — the wrapper takes the hover (a disabled button gets none). */
.hint-wrap { position: relative; display: inline-flex; }
.hint-wrap .btn-hint:disabled { pointer-events: none; }
.hint-wrap[data-tip]:not([data-tip=""]) { cursor: not-allowed; }
.hint-wrap[data-tip]:not([data-tip=""]):hover::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20;
  width: max-content; max-width: 260px;
  background: var(--surface-1); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; font-weight: 500; line-height: 1.35; white-space: normal;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--shadow) 50%, transparent); pointer-events: none;
}

.btn-link {
  background: none;
  border-color: transparent;
  color: var(--action-lilac);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
  padding: 10px 12px;
}
.btn-link:hover:not(:disabled) { color: var(--text-strong); }

/* ── Voice (modules/voice.js): 🎤 answer-by-voice + 🔊 read-aloud ─────────────── */
.mic-btn {
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
}
.mic-btn.listening {
  border-color: var(--action-hi);
  background: color-mix(in srgb, var(--action-hi) 12%, transparent);
  animation: mic-pulse 1.1s ease-in-out infinite;
}
/* No looping pulse while a verdict is up (spec §5), nor for reduced motion: the violet ring stays. */
:root:is([data-light="ok"], [data-light="almost"], [data-light="wrong"]) .mic-btn.listening { animation: none; }
@media (prefers-reduced-motion: reduce) { .mic-btn.listening { animation: none; } }
/* Dictated answer awaiting "OK" (voice.js::showVoiceConfirm) */
.voice-confirm {
  margin-top: 6px;
  padding: 6px 10px;
  border-left: 3px solid var(--action-hi);
  border-radius: 6px;
  background: color-mix(in srgb, var(--action-hi) 8%, transparent);
  font-size: 13px;
}
/* What the mic hears right now (voice.js::showVoiceLive) */
.voice-live { margin-top: 6px; font-size: 13px; color: var(--muted); font-style: italic; }
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--action-hi) 45%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--action-hi) 0%, transparent); }
}

/* ── Niveau 1 — QCM (multiple choice) ─────────────────────────────────────────── */
.dir-badge.level-badge { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* ── Boss final: a stronger violet card (gold is for coins only, spec §4) ─────────── */
#card.boss {
  background: var(--surface-2); /* fallback for browsers without color-mix() */
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--action) 16%, transparent), transparent 60%),
    var(--surface-2);
}
:root[data-light="question"] #card.boss {
  border-color: var(--action-lilac);
  box-shadow: 0 0 56px -10px var(--action-hi), inset 0 1px 0 color-mix(in srgb, var(--text-strong) 10%, transparent);
}
.dir-badge.boss-badge {
  background: var(--action);
  background-image: var(--action-grad);
  color: var(--text-strong);
  border: 1px solid var(--action-lilac);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.boss-source {
  font-size: 13px;
  font-style: italic;
  color: var(--text-soft);
  margin: -4px 0 14px;
}
#card.boss .q-level-hint { color: var(--text-strong); font-weight: 700; }

/* Cloze: English prompt then the French sentence with inline blanks */
/* The sentence to translate (source): cool tint, so it reads as the prompt … */
.q-en-prompt {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  word-break: break-word;
}
/* Colour code (new-player-focus spec §8): cool blue = the meaning to render, white = what you produce */
.q-source {
  background: color-mix(in srgb, var(--source) 9%, transparent);
  border-left: 3px solid var(--source);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  color: var(--source-pale);
}
.q-source .q-text { color: var(--source-pale); margin-bottom: 0; }
.q-source.fb-source { font-size: 16px; margin: 0 0 8px; }
.q-produce { margin-bottom: 6px; }
.lang-chip {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .6px;
  border-radius: 5px;
  padding: 2px 6px;
  margin-right: 8px;
  vertical-align: middle;
}
.lang-chip-source { background: color-mix(in srgb, var(--source) 16%, transparent); color: var(--source); border: 1px solid color-mix(in srgb, var(--source) 45%, transparent); }
.lang-chip-produce { background: color-mix(in srgb, var(--text-strong) 6%, transparent); color: var(--text); border: 1px solid var(--line); }
.q-cloze {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--text-strong);
}
.cloze-blank {
  display: inline-block;
  min-width: 60px;
  padding: 0 8px;
  margin: 0 2px;
  background: color-mix(in srgb, var(--source) 12%, transparent);
  border-bottom: 2px dashed var(--source);
  border-radius: 4px;
  color: var(--source);
  text-align: center;
}
.cloze-blank.filled {
  background: none;
  border-bottom-style: solid;
  border-bottom-color: var(--action-lilac);
  color: var(--text-strong);
}

.mcq-group { margin-bottom: 12px; }
.mcq-group-tag {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.mcq-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
/* Answer tiles: chunky, they "sink" under the finger. The targeted tile (hover, keyboard
   focus, selected) takes the action gradient and halo — the one strong light of the moment. */
.mcq-btn {
  background: var(--surface-tile);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  padding: 15px 18px;
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 4px 0 var(--surface-sunk);
}
.mcq-btn::before { content: attr(data-num) ". "; opacity: .55; margin-right: .25em; }
.mcq-btn:hover:not(:disabled)::before, .mcq-btn.selected::before { opacity: .8; }
.mcq-btn:hover:not(:disabled),
.mcq-btn:focus-visible:not(:disabled),
.mcq-btn.selected,
.mcq-btn.selected:hover:not(:disabled) {
  background: var(--action);
  background-image: var(--action-grad);
  border-color: var(--action-lilac);
  color: var(--text-strong);
  box-shadow: var(--halo-action);   /* fallback without color-mix() */
  box-shadow: 0 4px 0 color-mix(in srgb, var(--action-deep) 55%, var(--shadow)), var(--halo-action);
}
.mcq-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--surface-sunk); }
/* Graded. Right: the verdict takes the halo. Wrong: the pick is red without a halo, and the
   correct tile glows softly so the eye finds the answer. */
.mcq-btn.mcq-correct           { border-color: var(--ok); background: var(--ok-sunk); background-image: none; color: var(--ok-soft); box-shadow: 0 4px 0 var(--surface-sunk), 0 0 28px -6px var(--ok); }
:root[data-light="wrong"] .mcq-btn.mcq-correct { box-shadow: 0 4px 0 var(--surface-sunk), 0 0 18px -8px var(--ok); }
.mcq-btn.mcq-wrong             { border-color: var(--ko);   background: var(--ko-sunk); background-image: none; color: var(--ko-soft); box-shadow: 0 4px 0 var(--surface-sunk); }
.mcq-btn:disabled              { opacity: 1; cursor: default; }
.mcq-btn:not(.selected):not(.mcq-correct):disabled { opacity: 0.45; }

.q-level-hint {
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  margin-bottom: 14px;
}
.feedback .fb-unlock { color: var(--action-lilac); font-size: 12px; font-weight: 700; }
.feedback .fb-progress { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.feedback .fb-progress.fb-quiet { color: var(--muted); font-weight: 500; }

/* 🚩 report button (modules/report.js) — discreet until hovered. */
.report-btn { opacity: 0.55; }
.report-btn:hover, .report-btn:focus-visible { opacity: 1; }

/* Phones: the same single line, tighter; the toggle is a 44 px target. */
@media (max-width: 720px) {
  .type-progress { padding: 2px 2px 2px 10px; margin-bottom: 8px; }
  .tp-head { gap: 6px; }
  .tp-inline { gap: 6px; font-size: 11px; }
  .tp-bar { width: 36px; }
  .tp-toggle { min-width: 44px; min-height: 44px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tp-toggle span { transition: none; } }
