/* The Word Bank for the Vocabulary Builder (static/js/wordbank.js). Without JavaScript the source list stays visible. */
.wbank .wb-source { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.wbank .wb-source > li { margin: 0; }
.wbank .wb-source li { padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wbank .wb-source .p { color: var(--muted); }
/* hidden from the start, so the plain list never flashes while the script loads; a visitor without JavaScript gets it back from the <noscript> style in the page head */
.wbank .wb-source, .wbank .wb-nojs { display: none; }
.wb-slot:empty::before { content: 'Loading the word bank\2026'; display: block; padding: 16px; color: var(--muted); }

/* the letter strip: each letter with its progress beside it */
.wb-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; }
.wb-letter { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 10px; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
button.wb-letter:hover { border-color: var(--accent); }
.wb-letter.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wb-letter.is-on .wb-letter-count { color: inherit; opacity: .9; }
.wb-letter.is-empty { opacity: .35; cursor: default; }
.wb-letter-name { font-weight: 700; }
.wb-letter-count { font-size: .75rem; color: var(--muted); }

/* search, kind filter, open all */
.wb-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 .8rem; }
.wb-search, .wb-kind { padding: 7px 10px; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wb-search { flex: 1 1 220px; min-width: 0; }
.wb-search:focus, .wb-kind:focus { outline: 2px solid var(--accent); outline-offset: 1px; }


/* two lists */
.wb-tabs { display: none; gap: 8px; margin: 0 0 .8rem; }
.wb-tab { flex: 1; padding: 8px 10px; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.wb-tab.is-on { border-color: var(--accent); font-weight: 700; }
.wb-columns { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; }
.wb-col h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.wbank .wb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wbank .wb-list > li { margin: 0; }
.wb-empty { margin: 0; padding: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); }

/* a card: one line when closed */
.wb-row { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pos, var(--line)); border-radius: var(--radius-sm); }
.wb-row.is-open { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); border-left-color: var(--pos, var(--line)); }
.wb-row[data-pos='noun'] { --pos: #2f7fd1; }
.wb-row[data-pos='verb'] { --pos: #2f9e6b; }
.wb-row[data-pos='adjective'] { --pos: #d9822b; }
.wb-row[data-pos='adverb'] { --pos: #8e5bd1; }
.wb-col-known .wb-row { background: color-mix(in srgb, #2f9e6b 8%, var(--surface)); }
.wb-line { display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
.wb-check { flex: 0 0 1.5rem; height: 1.5rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: .85rem; color: #fff; background: none; border: 2px solid var(--line); border-radius: 50%; cursor: pointer; }
.wb-check:hover { border-color: var(--accent); }
.wb-col-known .wb-check { background: var(--accent); border-color: var(--accent); }
.wb-open { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 6px 4px; font: inherit; text-align: left; color: inherit; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.wb-open:hover .wb-word { color: var(--accent); }
.wb-word { font-size: 1.15rem; }
.wb-pos { font-size: .9rem; font-style: normal; font-weight: 600; color: var(--pos, var(--muted)); }
.wb-chevron { margin-left: auto; color: var(--muted); transition: transform .15s; }
.wb-row.is-open .wb-chevron { transform: rotate(180deg); }
.wb-hear { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.wb-hear:hover { color: var(--text, inherit); }

/* an opened card: labelled rows */
.wb-detail { display: grid; gap: 10px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.wb-detail[hidden] { display: none; }
.wb-fact { display: grid; grid-template-columns: 5.4rem 1fr; gap: 10px; align-items: baseline; }
.wb-tag { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.wb-brief { font-size: 1rem; }
.wb-examples { display: grid; gap: 6px; }
.wb-example { margin: 0; padding-left: 10px; border-left: 3px solid var(--line); font-size: .95rem; }
.wb-hit { padding: 0 2px; font-weight: 600; color: inherit; background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 3px; }
.wb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-chip { padding: 2px 10px; font-size: .85rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; }
.wb-chip-form { font-style: italic; }
.wb-chip-syn { color: #2f9e6b; border-color: color-mix(in srgb, #2f9e6b 45%, var(--line)); background: color-mix(in srgb, #2f9e6b 10%, transparent); }
.wb-chip-ant { color: #d95b5b; border-color: color-mix(in srgb, #d95b5b 45%, var(--line)); background: color-mix(in srgb, #d95b5b 10%, transparent); }
.wb-note { font-size: .9rem; padding: 6px 10px; background: color-mix(in srgb, #d9822b 12%, transparent); border-left: 3px solid #d9822b; border-radius: 4px; }
.wb-small { padding: 3px 10px; font: inherit; font-size: .8rem; color: var(--accent); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.wb-small:hover { border-color: var(--accent); }

/* a narrow screen: one list at a time, chosen with the two tabs; labels sit above their content */
@media (max-width: 720px) {
  .wb-tabs { display: flex; }
  .wb-columns { grid-template-columns: 1fr; }
  .wb-columns .wb-col-known { display: none; }
  .wb-columns.show-known .wb-col-known { display: block; }
  .wb-columns.show-known .wb-col-learn { display: none; }
  .wb-col > h3 { display: none; }
  .wb-fact { grid-template-columns: 1fr; gap: 3px; }
}

/* polish: progress summary, letter bars, two zones, motion, touch targets, focus */
.wb-summary { display: grid; gap: 6px; margin: 0 0 1rem; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wb-summary-text { margin: 0; font-weight: 600; }
.wb-meter { height: 8px; overflow: hidden; background: var(--line); border-radius: 999px; }
.wb-meter-fill { display: block; height: 100%; background: linear-gradient(90deg, #2f9e6b, var(--accent)); border-radius: 999px; transition: width .35s ease; }
.wb-letter { flex-wrap: wrap; position: relative; }
.wb-letter-bar { flex: 0 0 100%; height: 3px; margin-top: 3px; overflow: hidden; background: var(--line); border-radius: 999px; }
.wb-letter-fill { display: block; height: 100%; background: #2f9e6b; }
.wb-letter.is-on .wb-letter-bar { background: rgba(255, 255, 255, .35); }
.wb-letter.is-on .wb-letter-fill { background: #fff; }
.wb-col { padding: 12px; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wb-col-known { background: none; border-color: color-mix(in srgb, #2f9e6b 30%, var(--line)); }
.wb-col h3 { display: flex; align-items: center; gap: 8px; }
.wb-row { transition: border-color .15s; }
.wb-row:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.wb-open { min-height: 2.6rem; }
.wb-open:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.wb-detail { animation: wb-open .18s ease-out; }
.wb-row.is-new { animation: wb-flash 1s ease-out; }
@keyframes wb-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes wb-flash { from { background-color: color-mix(in srgb, var(--accent) 30%, var(--surface)); } }
.wbank button:focus-visible, .wbank input:focus-visible, .wbank select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .wb-detail, .wb-row.is-new { animation: none; } .wb-meter-fill, .wb-chevron { transition: none; } }
@media (max-width: 720px) {
  .wb-check { flex-basis: 2.2rem; height: 2.2rem; }
  .wb-hear { width: 2.6rem; height: 2.6rem; }
  .wb-open { min-height: 2.8rem; }
  .wb-col { padding: 0; background: none; border: 0; }
}

/* the three stages: Core, Wider, Advanced */
.wb-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 1rem; }
.wb-stage { display: grid; gap: 2px; justify-items: center; padding: 10px 8px; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.wb-stage:hover:not(:disabled) { border-color: var(--accent); }
.wb-stage.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wb-stage:disabled { opacity: .55; cursor: default; }
.wb-stage-name { font-weight: 700; }
.wb-stage-count { font-size: .75rem; color: var(--muted); }
.wb-stage.is-on .wb-stage-count { color: inherit; opacity: .9; }

/* progress (left) and search (right): two boxes, half and half */
.wb-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 .8rem; }
.wb-top .wb-summary { margin: 0; align-content: center; }
.wb-top .wb-search { width: 100%; height: 100%; min-height: 3.4rem; padding: 12px 14px; font-size: 1rem; background: var(--surface); border-radius: var(--radius-sm); }
@media (max-width: 720px) { .wb-top { grid-template-columns: 1fr; } .wb-top .wb-search { min-height: 3rem; } }

/* compact controls (2026-10-29): stages and search on one row, a thin progress line, one row of letters */
.wb-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.wb-stages { display: flex; gap: 6px; margin: 0; }
.wb-stage { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; }
.wb-stage-count { font-size: .72rem; }
.wb-top .wb-search { flex: 1 1 220px; height: auto; min-height: 0; padding: 7px 12px; font-size: .95rem; }
.wb-summary { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 6px 12px; }
.wb-summary-text { flex: 0 0 auto; font-size: .9rem; }
.wb-summary .wb-meter { flex: 1 1 auto; height: 6px; }
.wb-letters { flex-wrap: wrap; gap: 4px; margin: 0 0 .8rem; }
.wb-letter { flex: 1 1 auto; min-width: 28px; justify-content: center; padding: 4px 6px 5px; gap: 4px; }
.wb-letter.is-all { flex: 0 0 auto; padding: 4px 10px 5px; }
.wb-letter-name { font-size: .95rem; }
.wb-letter .wb-letter-count { display: none; }
.wb-letter.is-on .wb-letter-count, .wb-letter.is-all .wb-letter-count { display: inline; }
.wb-letter-bar { margin-top: 2px; }
@media (max-width: 720px) {
  .wb-top .wb-search { flex: 1 1 100%; }
  .wb-stages { width: 100%; }
  .wb-stage { flex: 1 1 0; justify-content: center; }
  .wb-summary { flex-wrap: wrap; }
  .wb-letter { min-width: 26px; padding: 4px 4px 5px; }
}

/* the letters: one even row on a wide screen (All, then A to Z), two rows on a phone */
.wb-letters { display: grid; grid-template-columns: auto repeat(26, minmax(0, 1fr)); gap: 3px; }
.wb-letter { min-width: 0; padding: 4px 0 5px; justify-self: stretch; }
.wb-letter.is-all { padding: 4px 10px 5px; }
.wb-letter.is-on .wb-letter-count { display: none; }
.wb-letter.is-all .wb-letter-count { display: inline; }
@media (max-width: 720px) {
  .wb-letters { grid-template-columns: repeat(13, minmax(0, 1fr)); }
  .wb-letter.is-all { grid-column: 1 / -1; padding: 5px 10px; }
}

/* Test me */
.wb-test-btn { padding: 7px 16px; font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); cursor: pointer; }
.wb-test-btn:hover { filter: brightness(1.08); }
.is-testing .wb-top, .is-testing .wb-summary, .is-testing .wb-letters, .is-testing .wb-tabs, .is-testing .wb-columns { display: none; }
.wb-quiz { display: grid; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 120px; }
.wb-quiz[hidden] { display: none; }
.wb-quiz-title { margin: 0; font-size: 1.5rem; }
.wb-quiz-text, .wb-quiz-note, .wb-quiz-label, .wb-quiz-scope, .wb-quiz-hint { margin: 0; }
.wb-quiz-note, .wb-quiz-hint { font-size: .85rem; color: var(--muted); }
.wb-quiz-scope { display: inline-block; justify-self: start; padding: 2px 12px; font-size: .8rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 999px; }
.wb-quiz-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* the first screen: three choices as cards */
.wb-choices { display: grid; gap: 10px; }
.wb-choice { display: flex; align-items: center; gap: 16px; padding: 14px 16px; font: inherit; text-align: left; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.wb-choice:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.wb-choice:disabled { opacity: .5; cursor: default; }
.wb-choice-count { flex: 0 0 3.6rem; text-align: center; font-size: 1.7rem; font-weight: 700; color: var(--accent); }
.wb-choice-text { display: grid; gap: 2px; }
.wb-choice-hint { font-size: .88rem; color: var(--muted); }

/* a question */
.wb-quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wb-quiz-count { font-weight: 600; }
.wb-steps { display: flex; gap: 6px; }
.wb-step { flex: 1 1 0; height: 6px; background: var(--line); border-radius: 999px; transition: background .2s; }
.wb-step.is-right { background: #2f9e6b; }
.wb-step.is-wrong { background: #d95b5b; }
.wb-step.is-now { background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.wb-step.is-now.is-right { background: #2f9e6b; }
.wb-step.is-now.is-wrong { background: #d95b5b; }
.wb-qcard { display: grid; gap: 8px; padding: 18px; background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 12px; }
.wb-quiz-word { margin: 0; font-size: 2rem; line-height: 1.2; }
.wb-quiz-sentence { margin: 0; font-size: 1.25rem; line-height: 1.5; }
.wb-options { display: grid; gap: 8px; }
.wb-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 3rem; font: inherit; text-align: left; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, transform .15s; }
.wb-option:hover:not(:disabled) { border-color: var(--accent); transform: translateX(2px); }
.wb-key { flex: 0 0 1.8rem; height: 1.8rem; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.wb-option.is-right { border-color: #2f9e6b; background: color-mix(in srgb, #2f9e6b 16%, var(--surface)); }
.wb-option.is-right .wb-key { color: #fff; background: #2f9e6b; border-color: #2f9e6b; }
.wb-option.is-wrong { border-color: #d95b5b; background: color-mix(in srgb, #d95b5b 14%, var(--surface)); }
.wb-option.is-wrong .wb-key { color: #fff; background: #d95b5b; border-color: #d95b5b; }
.wb-option:disabled { cursor: default; }
.wb-option:disabled:not(.is-right):not(.is-wrong) { opacity: .55; }
.wb-feedback { margin: 0; min-height: 1.4rem; font-weight: 600; }
.wb-feedback.is-right { color: #2f9e6b; }
.wb-feedback.is-wrong { color: #d95b5b; }
.wb-next { justify-self: start; padding: 11px 22px; font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 10px; cursor: pointer; }
.wb-next:hover { filter: brightness(1.08); }
.wb-next[hidden] { display: none; }

/* the result: a score ring and the missed words as small cards */
.wb-result { display: flex; align-items: center; gap: 20px; }
.wb-result-text { display: grid; gap: 4px; }
.wb-ring { --p: 0%; --ring: #2f9e6b; flex: 0 0 auto; width: 6.5rem; height: 6.5rem; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--ring) var(--p), var(--line) 0); position: relative; }
.wb-ring::before { content: ''; position: absolute; inset: 9px; background: var(--surface); border-radius: 50%; }
.wb-ring.is-mid { --ring: #d9822b; }
.wb-ring.is-low { --ring: #d95b5b; }
.wb-ring-score { position: relative; font-size: 1.5rem; font-weight: 700; }
.wb-missed { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wb-missed-item { margin: 0; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid #d95b5b; border-radius: 10px; }
.wb-missed-head, .wb-missed-meaning { margin: 0; }
.wb-missed-item .wb-example { margin: 6px 0 0; }
.wb-quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 720px) {
  .wb-test-btn { flex: 1 1 100%; }
  .wb-quiz { padding: 14px; }
  .wb-result { flex-direction: column; text-align: center; }
  .wb-quiz-word { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .wb-choice, .wb-option, .wb-step { transition: none; } }

/* the end of a long list: a button that also loads the next cards when it scrolls into view */
.wbank .wb-list > .wb-sentinel { margin: 4px 0 0; padding: 8px; text-align: center; list-style: none; }

/* a card or the test waiting for its words */
.wb-wait { margin: 0; padding: 6px 2px; color: var(--muted); font-size: 0.9rem; }

/* phone: the name sits above its count, so three stage buttons fit a 390px screen without a sideways scroll */
@media (max-width: 520px) {
  .wb-stage { flex-direction: column; align-items: center; gap: 0; min-width: 0; padding: 6px 4px; }
  .wb-stage-count { white-space: nowrap; }
}

/* the short "how to use" text above the word bank: closed until the visitor opens it */
.wb-help { margin: 0 0 1rem; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 10px); }
.wb-help summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.wb-help[open] summary { margin-bottom: 8px; }
.wb-help p, .wb-help ul { margin: 0 0 8px; }

.wb-ipa { font-family: 'Segoe UI', 'Noto Sans', 'DejaVu Sans', system-ui, sans-serif; letter-spacing: .02em; }
.wb-credit { margin-top: 18px; color: var(--muted); }

/* ---- Sounds of English (Pronunciation page) ---- */
.sounds h2 { margin: 1.6rem 0 .3rem; }
.snd-note { margin: 0 0 .8rem; color: var(--muted); }
.snd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.snd-card { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 8px); }
.snd-sym { flex: 0 0 auto; min-width: 2.6rem; text-align: center; font-size: 1.6rem; font-weight: 600; line-height: 1.3; color: var(--accent); font-family: 'Segoe UI', 'Noto Sans', 'DejaVu Sans', system-ui, sans-serif; }
.snd-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.snd-card li { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.snd { padding: 2px 4px; font: inherit; font-weight: 600; color: inherit; background: none; border: 0; border-bottom: 1px dashed var(--accent); cursor: pointer; }
.snd:hover { color: var(--accent); }
.snd:disabled { cursor: default; border-bottom-color: transparent; }
.snd-ipa { white-space: nowrap; color: var(--muted); font-size: .85rem; font-family: 'Segoe UI', 'Noto Sans', 'DejaVu Sans', system-ui, sans-serif; }
@media (max-width: 520px) { .snd-grid { grid-template-columns: 1fr; } }

/* ---- Letters A to Z (Pronunciation page) ---- */
.ltr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ltr-card { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 8px); }
.ltr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ltr-big { font-size: 1.8rem; font-weight: 700; line-height: 1.1; color: var(--accent); }
.ltr-name { color: var(--muted); font-size: .9rem; font-family: 'Segoe UI', 'Noto Sans', 'DejaVu Sans', system-ui, sans-serif; }
.ltr-row { display: flex; align-items: baseline; gap: 12px; padding: 4px 0; }
.ltr-sym { flex: 0 0 3.2rem; font-size: 1.15rem; font-weight: 600; color: var(--accent); font-family: 'Segoe UI', 'Noto Sans', 'DejaVu Sans', system-ui, sans-serif; }
.ltr-silent .ltr-sym { font-size: .85rem; font-weight: 500; color: var(--muted); }
.ltr-words { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ltr-w { white-space: nowrap; }
@media (max-width: 520px) { .ltr-grid { grid-template-columns: 1fr; } }
.snd b { color: var(--accent); }
.ltr-head .ltr-name { text-align: right; }
.alpha { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-bottom: 8px; }
.alpha-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 8px); }
.alpha-b b { font-size: 1.5rem; color: var(--accent); }
.alpha-b span { font-size: .85rem; color: var(--muted); font-family: 'Segoe UI', 'Noto Sans', 'DejaVu Sans', system-ui, sans-serif; }
.alpha-b:hover { border-color: var(--accent); }

/* ---- Listening practice ---- */
.listen { margin: 0 0 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 8px); }
.lis-count, .lis-score { margin: 0 0 10px; color: var(--muted); }
.lis-score { color: inherit; font-size: 1.15rem; font-weight: 600; }
.lis-btn { padding: 8px 16px; font: inherit; font-weight: 600; color: var(--on-accent, #fff); background: var(--accent); border: 0; border-radius: var(--radius, 8px); cursor: pointer; }
.lis-play { display: block; margin-bottom: 12px; }
.lis-answers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.lis-opt { min-width: 7rem; padding: 10px 18px; font: inherit; font-size: 1.1rem; font-weight: 600; color: inherit; background: none; border: 2px solid var(--line); border-radius: var(--radius, 8px); cursor: pointer; }
.lis-opt:hover:not(:disabled) { border-color: var(--accent); }
.lis-opt.is-right { border-color: #2e9d5b; background: color-mix(in srgb, #2e9d5b 18%, transparent); }
.lis-opt.is-wrong { border-color: #d9534f; background: color-mix(in srgb, #d9534f 18%, transparent); }
.lis-opt:disabled { cursor: default; }
.lis-result { min-height: 1.5em; margin: 0 0 10px; font-weight: 600; }
