/* ============================================================
 * ALEX Interaction Design System v1.0 — component layer
 *
 * NEW classes only. The existing Reader classes
 * (.widget, .w-eyebrow, .w-title, .w-sub, .w-prompt, .w-row,
 *  .w-controls, .w-slider, .w-value, .w-stats, .w-stat,
 *  .w-stat-label, .w-stat-value, .w-stat-sub, .w-footnote,
 *  .w-chart-wrap, .w-chart, .btn, .btn-row, .btn-ghost,
 *  .choice, .result, .page-nav, .chapter-end, .practice-card)
 * live inside book_reader.html and are UNCHANGED by this file.
 *
 * Classes defined here map 1:1 to Design System §5.
 * ============================================================ */

/* ─── Segmented control (§5 .seg) ──────────────────────────────────
   Mutually-exclusive 2-5 chips. Replaces the ad-hoc "btn + btn-ghost"
   stress-chip pattern used today in compound_crossover_hero and other
   widgets. Not for A/B comparison (use .tabs for scenario tabs).
   v1.0.1: min-height 44px per §13 touch-target rule. */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
  margin: var(--sp-s) 0 var(--sp-m);
}
.seg-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  background: var(--panel-2);
  border: var(--b-norm);
  border-radius: var(--r-s);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 120ms, color 120ms, background 120ms;
  min-height: 44px;
  min-width: 44px;
  letter-spacing: 0.01em;
}
.seg-btn:hover:not([aria-pressed="true"]) {
  border-color: var(--border-l);
  color: var(--text);
}
.seg-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.seg-btn[aria-pressed="true"] {
  color: var(--text);
  background: var(--gold-bg);
  border: var(--b-selected);
}

/* ─── Scenario tabs (§5 .tabs) ────────────────────────────────────
   Horizontal tabs for mechanism-explorer widgets (permanent_loss,
   price_vs_business). Semantically a tablist. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
  margin: var(--sp-s) 0 var(--sp-m);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-s);
}
/* ─── .tabs-btn ──────────────────────────────────────────────────
   Design System v1.1.2 (Batch 3C): minimum interactive target
   raised to 44×44 per accessibility standard. Visual hierarchy and
   wrapping preserved; horizontal padding widened only enough to
   lift the vertical hit area via inline-block padding, so narrow
   labels still reach the 44px minimum. The visual separator
   (bottom border + font weight) is unchanged. */
.tabs-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 10px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 120ms, border-color 120ms;
}
.tabs-btn:hover { color: var(--text); }
.tabs-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tabs-btn[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* ─── Hero result (§5 .w-hero) ───────────────────────────────────
   The ONE primary number per widget. Larger than .w-stat and
   visually anchored. Max one .w-hero per widget. */
.w-hero {
  display: block;
  padding: var(--sp-l) var(--sp-l);
  margin: var(--sp-m) 0 var(--sp-l);
  background: var(--panel-2);
  border-radius: var(--r-l);
  border-left: 3px solid var(--gold);
}
.w-hero-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 4px;
}
.w-hero-value {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.w-hero-sub {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text2);
  margin-top: var(--sp-xs);
}
@media (max-width: 480px) {
  .w-hero { padding: var(--sp-m) var(--sp-m); }
  .w-hero-value { font-size: 24px; }
}

/* ─── Comparison card (§5 .w-compare) ─────────────────────────────
   Two or three .w-stat cards wrapped as a visibly-paired comparison. */
.w-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-m);
  margin: var(--sp-m) 0;
  border: var(--b-norm);
  border-radius: var(--r-m);
  padding: var(--sp-m);
  background: var(--panel-2);
}

/* ─── Comparison choice card (v1.1.1) ────────────────────────────
   An interactive comparison card: wraps a radio input and renders
   as a clickable card. Used in who_richer for A/B/insufficient_info
   options. All cards look equal-weight until the user picks. */
.w-compare-choice {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  padding: var(--sp-m);
  background: var(--panel);
  border: var(--b-norm);
  border-radius: var(--r-s);
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
  min-height: 72px;
  text-align: left;
  color: var(--text);
}
.w-compare-choice:hover:not(.selected):not(.correct):not(.wrong) {
  border-color: var(--border-l);
}
.w-compare-choice:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.w-compare-choice.selected {
  background: var(--gold-bg);
  border: var(--b-selected);
}
.w-compare-choice.correct {
  background: rgba(52, 211, 153, 0.08);
  border: 1.5px solid var(--green);
}
.w-compare-choice.wrong {
  background: var(--red-bg);
  border: 1.5px solid var(--red);
}
.w-compare-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.w-compare-choice-label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.w-compare-choice-sub {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text3);
  margin-top: var(--sp-xs);
}

/* ─── Timeline (§5 .w-timeline) ──────────────────────────────────
   Horizontal years axis for timeline widgets. */
.w-timeline {
  position: relative;
  padding: var(--sp-s) 0 var(--sp-m);
  margin: var(--sp-m) 0;
}

/* ─── Timeline items (v1.1.1) ────────────────────────────────────
   Horizontal row of year markers. Mobile reflows vertically rather
   than horizontal-scrolling or shrinking. Each item is a button
   with aria-current="step" on the selected year. */
.w-timeline-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: var(--sp-s);
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.w-timeline-items::before {
  /* Thin baseline connecting all markers */
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}
.w-timeline-item {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 8px;
  background: var(--panel);
  color: var(--text2);
  border: var(--b-norm);
  border-radius: var(--r-s);
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color 120ms, border-color 120ms, background 120ms;
}
.w-timeline-item:hover:not([aria-current="step"]) {
  color: var(--text);
  border-color: var(--border-l);
}
.w-timeline-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.w-timeline-item[aria-current="step"] {
  color: var(--text);
  background: var(--gold-bg);
  border: var(--b-selected);
}
/* Non-color-only: revealed years show a ✓ pseudo-element */
.w-timeline-item[data-revealed="true"]::after {
  content: " ✓";
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 600px) {
  /* Reflow vertically on narrow screens: stack year markers in one column.
     Baseline rule hides because it would overlap vertically. */
  .w-timeline-items {
    grid-template-columns: 1fr;
  }
  .w-timeline-items::before { display: none; }
  .w-timeline-item {
    text-align: left;
    justify-content: flex-start;
    padding-left: var(--sp-m);
  }
}

/* ─── Assumption panel (§5 .w-assumptions) ────────────────────────
   Collapsed-by-default `<details>` holding user-editable or
   explicitly hypothetical values. */
.w-assumptions {
  margin: var(--sp-m) 0 var(--sp-s);
  padding: 0;
  border: var(--b-norm);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-s);
  background: var(--panel-2);
}
.w-assumptions > summary {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  padding: 10px var(--sp-m);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  letter-spacing: 0.02em;
}
.w-assumptions > summary::before {
  content: "▸";
  display: inline-block;
  font-size: 10px;
  color: var(--amber);
  transition: transform 150ms;
}
.w-assumptions[open] > summary::before { transform: rotate(90deg); }
.w-assumptions > summary::-webkit-details-marker { display: none; }
.w-assumptions:focus-within > summary { outline: 2px solid var(--gold); outline-offset: 2px; }
.w-assumptions-body {
  padding: 0 var(--sp-m) var(--sp-m);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
}
.w-assumptions-body p { margin: var(--sp-s) 0; }

/* ─── Methodology panel (§5 .w-methodology) ───────────────────────
   Collapsed `<details>` describing HOW the result is computed.
   Non-editable. */
.w-methodology {
  margin: var(--sp-s) 0 var(--sp-s);
  padding: 0;
  border: var(--b-norm);
  border-left: 3px solid var(--border-l);
  border-radius: var(--r-s);
  background: var(--panel-2);
}
.w-methodology > summary {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  padding: 10px var(--sp-m);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  letter-spacing: 0.02em;
}
.w-methodology > summary::before {
  content: "▸";
  display: inline-block;
  font-size: 10px;
  color: var(--text3);
  transition: transform 150ms;
}
.w-methodology[open] > summary::before { transform: rotate(90deg); }
.w-methodology > summary::-webkit-details-marker { display: none; }
.w-methodology-body {
  padding: 0 var(--sp-m) var(--sp-m);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text3);
  line-height: 1.6;
}
.w-methodology-body code,
.w-methodology-body pre {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  background: var(--panel);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ─── Takeaway (§5 .w-takeaway) ──────────────────────────────────
   One educational-interpretation sentence per widget. */
.w-takeaway {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  margin: var(--sp-m) 0 var(--sp-s);
  padding: var(--sp-s) 0 var(--sp-s) var(--sp-m);
  border-left: 2px solid var(--gold);
}

/* ─── Model disclaimer (§5 .w-model-note) ────────────────────────
   Amber-dashed accent — signals "model, not forecast". */
.w-model-note {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
  margin: var(--sp-s) 0 0;
  padding: var(--sp-s) var(--sp-m);
  border: var(--b-assume);
  border-radius: var(--r-s);
  background: transparent;
}

/* ─── ALEX handoff (§5 .alex-handoff) ─────────────────────────────
   Workshop-bottom surface pointing to the next analytical layer.
   Never used inside inline widgets. */
.alex-handoff {
  margin: var(--sp-xl) 0 var(--sp-m);
  padding: var(--sp-l);
  background: var(--panel-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-m);
}
.alex-handoff-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.alex-handoff-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.alex-handoff-body {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text2);
  margin-bottom: var(--sp-m);
  line-height: 1.5;
}

/* ─── Workshop shell (§4) ─────────────────────────────────────────
   Outer container for Practice-Zone workshops. */
.workshop {
  display: block;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}
.workshop-header {
  padding: var(--sp-l) 0 var(--sp-m);
  border-bottom: var(--b-norm);
  margin-bottom: var(--sp-l);
}
.workshop-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: var(--sp-s);
  min-height: 44px;
}
.workshop-back:hover { color: var(--gold); }
.workshop-title {
  font-family: var(--font-read);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 var(--sp-s);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.workshop-meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: var(--sp-m);
}
.workshop-estimate {
  color: var(--text3);
  font-size: 12px;
  margin-left: var(--sp-s);
}

.workshop-step {
  padding: var(--sp-l) 0;
  border-top: var(--b-norm);
}
.workshop-step:first-of-type { border-top: none; padding-top: 0; }
.workshop-step-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-m);
  margin-bottom: var(--sp-m);
}
.workshop-step-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  flex: 0 0 auto;
}
.workshop-step-title {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.workshop-step-body {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.workshop-step-body p { margin: var(--sp-s) 0; }
.workshop-step-body p:first-child { margin-top: 0; }

.workshop-nav {
  display: flex;
  gap: var(--sp-m);
  padding: var(--sp-l) 0;
  margin-top: var(--sp-l);
  border-top: var(--b-norm);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workshop-nav .workshop-nav-left {
  margin-right: auto;
}

@media (max-width: 600px) {
  .workshop-title { font-size: 22px; }
  .workshop-step-head { flex-wrap: wrap; gap: 4px; }
}

/* ─── Workshop progress (§5 .workshop-progress) ───────────────────
   Dot sequence (not percentage) for workshop step indicator. */
.workshop-progress {
  display: inline-flex;
  gap: var(--sp-s);
  align-items: center;
  padding: var(--sp-s) 0;
}
.workshop-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 120ms;
  position: relative;
}
.workshop-progress-dot[aria-current="step"] {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
}
.workshop-progress-dot[data-complete="true"] {
  background: var(--text3);
}
/* Non-color-only: completed dots get an inner ✓ via pseudo-element. */
.workshop-progress-dot[data-complete="true"]::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
}

/* ─── v1.0.1 touch-target rule (§13 canonical, ≥44 CSS px) ───────── */

/* Reader-wide .btn — bump min-height so taps register comfortably.
   Visual padding stays the same; the box gains a few px via min-height
   plus display:inline-flex centering. Existing styling preserved. */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.page-nav-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Slider: enlarge the touch strip to 44px while keeping the visible
   track at 4px via appearance:none + runnable-track pseudo. */
.w-slider {
  height: 44px;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.w-slider:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.w-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.w-slider::-moz-range-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.w-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); border: none; cursor: pointer;
  margin-top: -8px; /* center a 20px thumb on a 4px track */
}
.w-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); border: none; cursor: pointer;
}

/* AssumptionPanel / MethodologyPanel summary rows — their <summary>
   is the main hit target; bump min-height. */
.w-assumptions > summary,
.w-methodology > summary {
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
}

/* ─── Reduced motion ──────────────────────────────────────────────
   Honor prefers-reduced-motion across all new components. */
@media (prefers-reduced-motion: reduce) {
  .seg-btn,
  .tabs-btn,
  .w-assumptions > summary::before,
  .w-methodology > summary::before,
  .workshop-progress-dot {
    transition: none !important;
  }
}

/* ─── Mobile recomposition (§14) ──────────────────────────────────
   Ensures recompose, not shrink: KPIs stack 1-col on narrow screens. */
@media (max-width: 480px) {
  .w-compare {
    grid-template-columns: 1fr;
    padding: var(--sp-s);
  }
  .seg { gap: 6px; }
  .w-takeaway { font-size: 13.5px; padding-left: var(--sp-s); }
}

/* ══════════════════════════════════════════════════════════════════
   DS v1.2 · Workshop primitives (Stage 8 Final)
   ──────────────────────────────────────────────────────────────────
   WorkshopShell is the one container a Workshop widget mounts into.
   These primitives are complementary to the BOOK inline primitives
   above — they are NEVER used inside a BOOK inline widget. The
   `.workshop-shell` scope is the opt-in; anything inside it may
   use the Workshop primitives below.
   ══════════════════════════════════════════════════════════════════ */

.workshop-shell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
  padding: var(--sp-m);
  background: var(--bg-surface, #0f1115);
  color: var(--text-primary, #e8e8ec);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 10px;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
}

.workshop-shell[data-workshop-state="PROMOTING"] .workshop-btn--confirm {
  opacity: 0.6;
  cursor: wait;
}

.workshop-step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-s);
}
.workshop-step[hidden] { display: none !important; }

.workshop-step-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary, #e8e8ec);
}

.workshop-step-copy {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary, rgba(232, 232, 236, 0.7));
}

.workshop-governance {
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-tertiary, rgba(232, 232, 236, 0.55));
}

.workshop-footnote {
  margin-top: var(--sp-s);
  font-size: 12px;
  color: var(--text-tertiary, rgba(232, 232, 236, 0.55));
}

.workshop-scenario-form,
.workshop-assumptions,
.workshop-results {
  display: flex;
  flex-direction: column;
  gap: var(--sp-s);
}

.workshop-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-s);
}

.workshop-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-m);
}

.workshop-actions {
  display: flex;
  gap: var(--sp-s);
  flex-wrap: wrap;
  margin-top: var(--sp-s);
}

/* Buttons — reuse Book button sizing (min 44px tap target) */
.workshop-btn {
  min-height: 44px;
  padding: 0 var(--sp-m);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}
.workshop-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.workshop-btn--primary {
  background: var(--gold, #c69c3b);
  color: var(--bg-page, #0b0d10);
  border-color: var(--gold, #c69c3b);
}
.workshop-btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
}
.workshop-btn--ghost {
  background: transparent;
  color: var(--text-primary, #e8e8ec);
  border-color: var(--border, rgba(255,255,255,0.1));
}
.workshop-btn--ghost:hover:not(:disabled) {
  border-color: var(--gold, #c69c3b);
}

/* Error pane */
.workshop-error {
  color: var(--danger, #ff6b6b);
  font-size: 13px;
  padding: var(--sp-s);
  background: rgba(255, 107, 107, 0.08);
  border-radius: 6px;
}

/* Results fallback */
.workshop-results-fallback {
  padding: var(--sp-s);
  background: var(--bg-surface-elev, rgba(255,255,255,0.03));
  border-radius: 6px;
}

/* ─── ConsentPreview ───────────────────────────────────────────────
   The one UI the Shell opens when the user clicks "Use scenario".
   Field-level opt-in: EVERY checkbox is unchecked by default. */
.workshop-consent-preview {
  display: flex;
  flex-direction: column;
  gap: var(--sp-s);
  padding: var(--sp-m);
  background: var(--bg-surface-elev, rgba(255,255,255,0.04));
  border: 1px solid var(--gold, #c69c3b);
  border-radius: 10px;
  margin-top: var(--sp-m);
}
.workshop-consent-preview[hidden] { display: none !important; }

.workshop-consent-header {
  margin: 0 0 var(--sp-s);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold, #c69c3b);
}

.workshop-consent-section-label {
  margin: var(--sp-s) 0 var(--sp-xs);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary, #e8e8ec);
}

.workshop-consent-will-use,
.workshop-consent-will-not-use {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.workshop-consent-will-not-use li {
  padding-left: 18px;
  position: relative;
  font-size: 13px;
  color: var(--text-tertiary, rgba(232, 232, 236, 0.55));
}
.workshop-consent-will-not-use li::before {
  content: "×";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--text-tertiary, rgba(232, 232, 236, 0.4));
}

.workshop-consent-item {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  min-height: 44px;
  cursor: pointer;
  padding: var(--sp-xs);
  border-radius: 6px;
}
.workshop-consent-item:hover {
  background: rgba(255,255,255,0.03);
}
.workshop-consent-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--gold, #c69c3b);
}
.workshop-consent-item-label {
  font-size: 13.5px;
  color: var(--text-primary, #e8e8ec);
}
.workshop-consent-item-value {
  font-size: 13.5px;
  color: var(--gold, #c69c3b);
  font-variant-numeric: tabular-nums;
}

.workshop-consent-what-alex,
.workshop-consent-revoke {
  font-size: 12.5px;
  color: var(--text-secondary, rgba(232, 232, 236, 0.65));
  margin: var(--sp-xs) 0 0;
  line-height: 1.5;
}

.workshop-consent-status {
  margin-top: var(--sp-s);
  padding: var(--sp-s);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  font-size: 13px;
  min-height: 20px;
}
.workshop-shell[data-workshop-state="COMPLETED"] .workshop-consent-status {
  background: rgba(72, 197, 141, 0.1);
  color: var(--success, #48c58d);
}

/* Screen-reader-only live region */
.workshop-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ─── Workshop progress + mobile recomposition ─────────────────── */
@media (max-width: 480px) {
  .workshop-shell {
    padding: var(--sp-s);
  }
  .workshop-compare {
    grid-template-columns: 1fr;
  }
  .workshop-scenarios {
    grid-template-columns: 1fr;
  }
  .workshop-actions {
    flex-direction: column;
  }
  .workshop-btn {
    width: 100%;
  }
}

/* Reduced motion applies to workshop transitions too */
@media (prefers-reduced-motion: reduce) {
  .workshop-btn,
  .workshop-consent-item {
    transition: none !important;
  }
}
