/* ================================================================
   CONCEPT-CHOICE.CSS — the Learner Home's "Or choose a concept" list
   and its not-ready dialog (../practice/concept-choice.js, Seth
   2026-09-28).

   A LEDGER, NOT A STACK OF PILLS (Seth, 2026-09-28, on v1 — a full
   topbar pill per row with the name written on the fill: "this just doesn't
   look that good"). v1 broke the home's own rules (styles/xp-panel.css:
   one ink per job, numerals in Instrument Serif): names cut mid-word by the
   fill's seam and by the ellipsis, the AI's row boxed while the rest floated,
   and two outlined tags in two more colours. Now each row is
       [AI pick · Paused · continue]            eyebrow, only when it applies
       Name, on as many lines as it needs  +10 XP / problem   serif figure
       lesson · not tried yet
       ━━━━━━━━━━━━━━━━━━━━━━━──────────        the meter: knowledge
   The figure is the XP one solved problem on the concept earns (Seth,
   2026-09-29: "displays the amount of exp you would get from solving that
   sort of problem using the same layout, but with different numbers"); it
   was the concept's knowledge as "57 / 80 XP", which the meter still draws.
   The meter is still the topbar concept pill (styles/concept-pill.css) —
   its tinted track, hairline border, round ends and violet→cyan fill —
   slimmed to 6px, so the bar Seth asked for is recognisably the same one
   and no word ever sits on a seam. Rows are divided by hairlines; the AI's
   pick is set apart by a faint wash and its cyan eyebrow, nothing louder.

   Token-first, no hex (styles/watch.py).
   ================================================================ */

.concept-choice[hidden] { display: none; }
.concept-choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* The heading runs into a hairline: the list is the second way in, under
   the red button, and reads as a section of the column rather than a card. */
.concept-choice-head {
  align-items: center;
  color: var(--white);
  display: flex;
  font-size: 15px;
  font-weight: 600;
  gap: 12px;
  letter-spacing: -0.005em;
  margin: 0;
}
.concept-choice-head::after {
  border-top: 1px solid var(--border);
  content: "";
  flex: 1;
}
.concept-choice-note {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 4px 0 10px;
}

.cc-list {
  list-style: none;
  margin: 0 -10px;
  padding: 0;
}
.cc-item + .cc-item .cc-row::before {
  border-top: 1px solid var(--border);
  content: "";
  left: 10px;
  position: absolute;
  right: 10px;
  top: -1px;
}
.cc-row {
  align-items: baseline;
  animation: cc-row-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--cc-i, 0) * 45ms);
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  column-gap: 14px;
  cursor: pointer;
  display: grid;
  font: inherit;
  grid-template-areas:
    "eyebrow eyebrow"
    "title   figure"
    "sub     figure"
    "bar     bar";
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 10px 13px;
  position: relative;
  text-align: left;
  transition: background 0.14s ease;
  width: 100%;
}
@keyframes cc-row-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-row { animation: none; }
}
.cc-row.is-ai { background: rgb(var(--tint-rgb) / calc(0.035 * var(--tint-k))); }
.cc-row:hover { background: rgb(var(--tint-rgb) / calc(0.06 * var(--tint-k))); }
/* A washed row needs no hairline against its neighbours. */
.cc-row.is-ai::before,
.cc-item:has(.cc-row.is-ai) + .cc-item .cc-row::before { display: none; }
.cc-row:focus-visible { outline: 2px solid var(--xp-to); outline-offset: -2px; }
.cc-row:disabled { cursor: progress; opacity: 0.6; }

.cc-eyebrow {
  display: flex;
  gap: 10px;
  grid-area: eyebrow;
  margin-bottom: 5px;
}
.cc-flag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.cc-flag--ai { color: var(--xp-to); }
.cc-flag--continue { color: var(--accent-text); }

.cc-title {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  grid-area: title;
  line-height: 1.3;
  min-width: 0;
  text-wrap: pretty;
}
.cc-sub {
  color: var(--muted);
  font-size: 12px;
  grid-area: sub;
  line-height: 1.4;
  margin-top: 3px;
  min-width: 0;
}
.cc-sub:empty { display: none; }

/* The figure: the home's numeral face (styles/xp-panel.css --xp-display),
   so the list reads in the same voice as the course's percentage. */
.cc-figure {
  align-items: baseline;
  align-self: center;
  display: flex;
  gap: 3px;
  grid-area: figure;
  white-space: nowrap;
}
.cc-xp {
  color: var(--white);
  font-family: var(--xp-display);
  font-size: 28px;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
}
.cc-of {
  color: var(--muted-dim);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

/* The meter: the topbar pill's track and fill (styles/concept-pill.css),
   6px tall. */
.cc-bar {
  background: rgb(var(--tint-rgb) / calc(0.06 * var(--tint-k)));
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  display: block;
  grid-area: bar;
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
}
.cc-bar-fill {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--xp-to) 100%);
  display: block;
  height: 100%;
  width: var(--cc-pct, 0%);
}

.cc-error {
  color: var(--warn);
  font-size: 12.5px;
  margin: 8px 0 0;
}
.cc-error.hidden { display: none; }

/* ---- NOT READY: one message, one way back ------------------------- */
.cc-not-ready {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px -24px rgb(0 0 0 / 0.6);
  color: var(--text);
  max-width: min(420px, calc(100vw - 32px));
  padding: 24px 26px 22px;
}
.cc-not-ready::backdrop { background: rgb(0 0 0 / 0.45); }
.cc-not-ready-head {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}
.cc-not-ready-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.cc-not-ready-btn {
  border-radius: 10px;
  font-weight: 600;
  min-height: 42px;
  width: 100%;
}
