/* Review session runner (v2 build item 2b). Classes prefixed
   .ss-; option rows reuse review.css's .rv-option. */
.ss-card{max-width:720px;margin-left:auto;margin-right:auto}
.ss-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ss-head .rv-chips{margin:0}
.ss-head-right{display:flex;align-items:center;gap:10px}
.ss-exit{margin-left:auto;color:var(--muted);text-decoration:none;font-size:1rem;line-height:1;
  min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.ss-exit:hover{color:var(--ink)}
.ss-count{color:var(--muted);font-weight:800;font-size:.875rem;white-space:nowrap}
.ss-glyph{font-family:var(--jp);font-size:3.25rem;line-height:1.25;margin:18px 0 2px}
.ss-reading{color:var(--violet);font-weight:700;margin:0 0 6px}
.ss-question{display:block;font-size:1.125rem;margin-bottom:18px}
.ss-options{margin-top:4px}
.ss-option{text-align:left;cursor:pointer;font:inherit;width:100%}
.ss-option:hover{border-color:var(--violet)}
.ss-option:disabled{cursor:default;opacity:1}
.ss-right{background:#e2f3e8!important;border-color:#1e7a46!important;color:#14532d}
.ss-wrong{background:#fdeaea!important;border-color:#c0392b!important;color:#7c1d12}
.ss-note{font-weight:700;margin:16px 0 0}
.ss-note-ok{color:#1e7a46}
.ss-note-bad{color:#7c1d12}
.ss-next{margin-top:16px;cursor:pointer;font:inherit}

/* The boards' session bar carries a progress track; the fill is
   the share of units finished. Options take the Practice board's
   2x2 grid with letter badges on wide screens. */
.ss-track{height:5px;background:var(--lav-2);border-radius:3px;margin:12px 0 2px;overflow:hidden}
.ss-track i{display:block;height:100%;background:var(--violet);border-radius:3px}
.ss-option{display:flex;align-items:center;gap:12px}
.ss-badge{width:26px;height:26px;flex:none;border-radius:50%;background:var(--lav-1);
  color:var(--violet-deep);display:grid;place-items:center;font-size:.75rem;font-weight:800}
.ss-right .ss-badge{background:#cdeeda;color:#14532d}
.ss-wrong .ss-badge{background:#f6cfcf;color:#7c1d12}
@media (min-width:700px){
  .ss-options{grid-template-columns:1fr 1fr;gap:12px}
  .ss-option{min-height:76px}
}

/* Writing questions in sessions (2026-11-18): the prompt is a
   meaning and a reading chip; the drawing stage is the shared
   surface on paper, framed. After Check the stage goes inert
   and the verdict strip carries the result. */
.ss-write-label{color:var(--kj-shu-deep, #b8461f);font-size:.6875rem;font-weight:700;letter-spacing:.09em;margin:16px 0 0;text-transform:uppercase}
.ss-write-meaning{font-size:1.75rem;font-weight:800;margin:6px 0 0}
.ss-write-chip{display:inline-block;background:var(--kj-wash, #fbebe2);color:var(--kj-shu-deep, #b8461f);
  border-radius:999px;padding:5px 14px;font-family:var(--jp);font-size:.875rem;font-weight:700;margin:10px 0 0}
.ss-write-note{color:var(--muted);font-size:.8125rem;margin:10px 0 0;line-height:1.45}
.ss-write-stage{max-width:330px;margin:14px auto 0}
.ss-write-stage .db-box{background:var(--white);border:1px solid var(--lav-2)}
.ss-write-done .db-canvas{pointer-events:none}
.ss-write-ctrls{display:flex;align-items:center;gap:8px;max-width:330px;margin:4px auto 0}
.ss-write-ctrls .kj-trace-link:first-child{margin-right:0}
.ss-write-check{margin-left:auto}
.ss-write-verdict{max-width:560px;margin:0 auto}
.ss-write-verdict .ss-next{display:block;margin-left:auto}
.ss-write-verdict-row{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.ss-write-verdict-row .ss-next{margin-left:0}
.ss-write-verdict-row .ss-retry{margin-top:16px;cursor:pointer;font:inherit}

/* The session's way forward stays reachable: on a phone the
   Next button pins above the tab bar while the card scrolls
   (2026-11-18 — the review sitting ran 1.55 screens with its
   feedback at the fold). */
@media (max-width:899px){
  .ss-next{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:5;
    box-shadow:0 6px 18px rgba(38,34,48,.18)}
}
/* Exit confirm (B7, 2026-11-18): the States Sheet's calm card
   over a dimmed screen. An overlay, not a re-render — the
   session card underneath keeps its exact state, so Keep
   going returns to the prompt in progress, drawing included. */
.ss-exit-overlay{position:fixed;inset:0;z-index:60;background:rgba(38,34,48,.45);
  display:flex;align-items:center;justify-content:center;padding:20px}
.ss-exit-card{width:100%;max-width:420px}
.ss-exit-title{margin:6px 0 8px}
.ss-exit-row{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}

/* Cloze feedback pronunciation stack (2026-11-18). */
.fb-kana{font-family:var(--jp);font-size:.9375rem;color:var(--muted);margin:0 0 2px}
.fb-romaji{font-size:.8125rem;color:var(--muted);margin:0 0 2px}
.fb-say{font-size:.8125rem;color:var(--violet-deep);font-weight:700;margin:0 0 6px}

/* Set break (Ema round 2, 2026-11-18): the pause card every 10
   answers — counts in lav-1 cells, Stop here / Keep going. */
.ss-break-title{margin:6px 0 8px}
.break-nums{display:flex;gap:8px;margin:14px 0}
.break-nums div{flex:1;background:var(--lav-1);border-radius:12px;padding:10px;text-align:center}
.break-nums b{display:block;font-size:1.25rem;color:var(--violet-deep)}
.break-nums span{font-size:.75rem;font-weight:800;color:var(--muted)}

/* MC feedback recap (Ema round 2, 2026-11-18): the item itself,
   briefly, under the verdict — a word's reading and first
   example, a kanji's readings line. */
.fb-recap{margin-top:12px;border-top:1px solid var(--lav-2);padding-top:10px}
.fb-recap-line{margin:0 0 2px;color:var(--muted);font-size:.875rem}
.fb-recap-line:first-child{color:var(--ink);font-weight:700}

/* Session feedback example sentence (2026-11-19): one fresh
   sentence using the item, under the recap, in the cloze
   feedback stack's own line styles (.fb-kana/.fb-romaji/.fb-say
   above) with a small muted label. */
.fb-example{margin-top:12px;border-top:1px solid var(--lav-2);padding-top:10px}
.fb-example-label{margin:0 0 4px;color:var(--muted);font-size:.75rem;font-weight:700}
.fb-ex-ja{font-family:var(--jp);font-size:.9375rem;color:var(--ink);margin:0 0 2px}
.fb-ex-en{font-size:.875rem;color:var(--muted);margin:0 0 6px}
.fb-ex-listen,.fb-cloze-listen,.fb-recap-listen{border:0;cursor:pointer;background:var(--lav-1);color:var(--violet);
  font-family:var(--sans);font-weight:700;font-size:.75rem;border-radius:12px;
  min-width:72px;min-height:44px;padding:10px 12px}

/* Session feedback lesson card (San, 2026-11-27): under the
   verdict, the item's own lesson card — the study pages'
   pieces (.vc- / .kj- classes) stacked in the session
   card's normal flow. The study screens scope their type
   colours to their page roots, so the same tokens are
   declared here for the pieces to draw with. The one-card
   segment bodies carry the study layout's scroll boxes and
   fade masks; in feedback those come off, and each block
   stands as its own bordered card. */
.fb-lesson{margin-top:14px;border-top:1px solid var(--lav-2);padding-top:12px;
  --vc-vocab:#7a5fa0;--vc-vocab-wash:#f1ebfa;--vc-warn:#b97e14;--vc-warn-wash:#fdf6e0;
  --kj-shu:#de5b2c;--kj-shu-deep:#b8461f;--kj-wash:#fbebe2;--kj-warn:#b97e14;--kj-warn-wash:#fdf6e0}
.fb-lesson-label{color:var(--muted);font-size:.6875rem;font-weight:800;
  letter-spacing:.09em;text-transform:uppercase;margin:0 0 12px}
.fb-lesson-stack{display:grid;gap:12px}
.fb-lesson-kanji{border:1px solid var(--lav-2);border-radius:20px;padding:20px}
.fb-lesson .kj-seg-body{flex:none;min-height:0;overflow:visible;margin-top:0;
  overscroll-behavior:auto;-webkit-mask-image:none;mask-image:none;
  border:1px solid var(--lav-2);border-radius:20px;padding:20px}
.fb-lesson .kj-seg-words,.fb-lesson .kj-seg-parts{display:block}
.fb-lesson .kj-words-scroll,.fb-lesson .kj-parts-scroll{flex:none;min-height:0;
  overflow:visible;overscroll-behavior:auto;-webkit-mask-image:none;mask-image:none}

/* The feedback Report control (flow Q5, 2026-11-24): a quiet
   text button under Next on every question feedback. The
   question's context rides into the report sheet, so the
   learner only writes what they saw. */
.fb-report{display:block;margin:12px auto 0;background:none;border:0;cursor:pointer;
  color:var(--muted);font-family:var(--sans);font-weight:700;font-size:.8125rem;
  min-height:44px;padding:10px 16px;text-decoration:underline;text-underline-offset:3px}

/* Cloze feedback Why block (Ema round 2, 2026-11-18): the grammar
   point's own What / Watch-out text under the verdict, so feedback
   explains the answer instead of only marking it. */
.fb-why{background:var(--lav-1);border-radius:12px;padding:10px 12px;margin-top:10px;
  font-size:.875rem;line-height:1.5}
.fb-why b{color:var(--violet-deep)}

/* Writing verdict steps strip (Ema round 2, 2026-11-18): under a
   failed check, the true stroke order — one cell per stroke, the
   real path with its direction arrow, the failed stroke lit. */
.ss-write-order{font-weight:700;margin:12px 0 0}
.fb-steps{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.fb-scell{width:46px;background:var(--white);border:1.5px solid var(--lav-2);border-radius:10px;
  padding:5px 0 3px;text-align:center}
.fb-scell-bad{border-color:#c2432b;background:#fdeaea}
.fb-scell-svg{display:block;width:40px;height:40px;margin:0 auto}
.fb-scell-n{display:block;font-size:.65625rem;color:var(--muted);font-weight:800}
