/* ── Design tokens (matching reference site) ─────────────────────────────── */
:root {
  --white:    #ffffff;
  --cream:    #f8f7f4;
  --black:    #1a1a1a;
  --muted:    #4a4a4a;
  --rule:     #d8d4cc;
  --accent:   #6b4226;
  --green:    #1f6b2e;
  --red:      #b03020;
  --rec:      #d27a2c;
  --info:     #2a5298;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif:    var(--sans);  /* unified font family — was Lora */
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
  backdrop-filter: blur(4px);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ── Progress Bar ─────────────────────────────────────────────────────────── */
.progress-bar {
  display: flex;
  gap: 0;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.progress-step {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-bottom: 2px solid transparent;
}

.progress-step.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.progress-step.done {
  color: var(--rule);
}

/* ── Main content ─────────────────────────────────────────────────────────── */
main {
  padding: 2.5rem 2rem 4rem;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.muted { color: var(--muted); font-size: 0.9rem; }
.label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
}

.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn-outline:hover { background: var(--accent); color: var(--white); }

.btn-danger {
  border-color: var(--red);
  background: var(--red);
}

.btn-large {
  font-size: 1rem;
  padding: 0.8rem 2rem;
}

/* ── Form elements ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.form-group input[type="text"] {
  width: 100%;
  max-width: 360px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--black);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input[type="text"]:focus { border-color: var(--accent); }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--rule);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--white);
}

/* ── Timer ────────────────────────────────────────────────────────────────── */
.timer-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.timer-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.timer {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--black);
  min-width: 4.5rem;
  transition: color 0.3s;
}

.timer.urgent { color: var(--red); }

.timer-bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.timer-bar {
  height: 100%;
  background: var(--accent);
  transition: width 1s linear, background 0.3s;
}

.timer-bar.urgent { background: var(--red); }

/* ── Likert scale ─────────────────────────────────────────────────────────── */
.likert-wrap {
  margin: 1.5rem 0;
}

.likert-wrap .label { margin-bottom: 0.75rem; }

.likert-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.likert-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  flex: 1;
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--rule);
  background: var(--white);
  cursor: pointer;
  border-radius: 2px;
  font-family: var(--sans);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: center;
  gap: 0.3rem;
}

.likert-btn:hover {
  border-color: var(--accent);
  background: #faf5f2;
}

.likert-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.likert-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.likert-btn .likert-num {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.6;
}

.likert-btn.selected .likert-num { opacity: 0.8; }

.likert-btn .likert-text {
  font-size: 0.78rem;
  line-height: 1.2;
}

/* ── Question display ─────────────────────────────────────────────────────── */
.question-text {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw + 0.6rem, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--black);
}

.question-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.background-text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  max-height: 240px;
  overflow-y: auto;
  border-left: 2px solid var(--rule);
  padding-left: 0.85rem;
}

.criteria-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  font-family: var(--sans);
  margin-bottom: 0.75rem;
  text-decoration: underline;
}

.criteria-text {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--cream);
  padding: 0.75rem;
  border: 1px solid var(--rule);
  margin-bottom: 1rem;
  display: none;
  line-height: 1.6;
}

.criteria-text.visible { display: block; }

/* ── Stage layout (with optional chatbot) ────────────────────────────────── */
.stage-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.stage-main { flex: 1; min-width: 0; }

.chatbot-panel {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid var(--rule);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
}

.chatbot-panel .panel-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.chatbot-instruction {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100px;
}

.chat-msg {
  font-size: 0.83rem;
  padding: 0.5rem 0.65rem;
  border-radius: 2px;
  line-height: 1.45;
  max-width: 100%;
}

.chat-msg.user {
  background: #f5ede8;
  color: var(--black);
  align-self: flex-end;
  text-align: right;
}

.chat-msg.assistant {
  background: var(--cream);
  color: var(--black);
  align-self: flex-start;
  border: 1px solid var(--rule);
}

.chat-msg.thinking {
  color: var(--muted);
  font-style: italic;
  background: none;
}

.chat-input-row {
  display: flex;
  gap: 0.4rem;
}

.chat-input-row input {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.83rem;
  outline: none;
  border-radius: 2px;
}

.chat-input-row input:focus { border-color: var(--accent); }

.chat-input-row button {
  padding: 0.45rem 0.8rem;
  font-size: 0.83rem;
}

/* ── Resolution screen ────────────────────────────────────────────────────── */
.resolution-badge {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  margin: 1rem 0;
  padding: 0.5rem 1.5rem;
  display: inline-block;
  border: 2px solid;
  border-radius: 2px;
}

.resolution-badge.yes {
  color: var(--green);
  border-color: var(--green);
  background: #f0f9f1;
}

.resolution-badge.no {
  color: var(--red);
  border-color: var(--red);
  background: #fdf0ef;
}

.answer-compare {
  display: flex;
  gap: 2rem;
  margin: 1.25rem 0;
}

.answer-item {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.answer-item .label { margin-bottom: 0.3rem; }

.answer-item .answer-value {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
}

/* ── Audio check ──────────────────────────────────────────────────────────── */
.audio-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin: 1rem 0;
  padding: 0.6rem 0.9rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.audio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule);
  flex-shrink: 0;
}

.audio-dot.recording { background: var(--red); animation: pulse 1s infinite; }
.audio-dot.ready { background: var(--green); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Payment meter ────────────────────────────────────────────────────────── */
.payment-meter {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.6rem;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}

.payment-meter #payment-display {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}

.payment-max {
  font-size: 0.78rem;
  color: var(--rule);
}

/* ── Think-aloud instruction bar ──────────────────────────────────────────── */
.think-aloud-bar {
  background: #fdf3ec;
  border: 1px solid #e8c9b0;
  border-radius: 2px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--accent);
  line-height: 1.6;
}

.think-aloud-bar strong { font-weight: 600; }
.think-aloud-bar em { font-style: italic; }

/* ── Rule confirmation walkthrough ───────────────────────────────────────── */
.rule-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.rule-pip {
  height: 4px;
  flex: 1;
  background: var(--rule);
  border-radius: 2px;
  transition: background 0.2s;
}

.rule-pip.done,
.rule-pip.active { background: var(--accent); }

.rule-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.rule-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.rule-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.rule-card-body {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--black);
}

.rule-scale-row {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  padding: 0.4rem 0;
}

/* ── Recording indicator (different color from urgent timer) ─────────────── */
.recording-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rec);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  animation: pulse 1s infinite;
}

/* ── Inline error ─────────────────────────────────────────────────────────── */
.error-msg {
  background: #fdf0ef;
  border: 1px solid #e8b0ad;
  color: var(--red);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  border-radius: 2px;
  margin: 0.75rem 0;
  display: none;
}

.error-msg.visible { display: block; }

/* ── Final screen ─────────────────────────────────────────────────────────── */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0 1.5rem;
}

.summary-table th {
  text-align: left;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.summary-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.zip-notice {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.zip-notice code {
  font-family: monospace;
  font-size: 0.85em;
  background: var(--rule);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex-row { display: flex; align-items: center; gap: 1rem; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Question header (Q counter + stage label + recording indicator) ────── */
.q-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.q-counter {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.q-stage-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex: 1;
}

/* ── Prolific welcome banner ─────────────────────────────────────────────── */
.prolific-banner {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1.1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}
.prolific-banner code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
  background: var(--rule);
  padding: 0.05em 0.35em;
  border-radius: 2px;
}

/* ── Instructions screen (rule cards + checkbox) ─────────────────────────── */
.rule-list {
  margin: 0.6rem 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.rule-list li { margin-bottom: 0.35rem; }

.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.confirm-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

/* ── Section heading on the final screen ─────────────────────────────────── */
.section-h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
  letter-spacing: 0.01em;
}

/* ── Callout boxes (saved status, info, success) ─────────────────────────── */
.callout-box {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1.1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.callout-box.callout-success {
  border-left-color: var(--green);
  background: #f0f7f1;
}
.callout-info {
  background: #eef3fa;
  border: 1px solid #b8c8e0;
  border-left: 3px solid var(--info);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  border-radius: 2px;
  margin: 0.75rem 0;
  color: var(--black);
}
.callout-info code {
  font-family: 'Courier New', Courier, monospace;
  background: var(--white);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  font-size: 0.92em;
}

/* ── Secondary button (less prominent than primary) ──────────────────────── */
.btn-secondary {
  font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover:not(:disabled) {
  background: var(--accent);
  color: var(--white);
}
.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Final-screen action row */
#final-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  main { padding: 1.5rem 0 3rem; }
  .container { padding: 0 1.25rem; }
  .stage-layout { flex-direction: column; }
  .chatbot-panel { width: 100%; border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
  .likert-btn { min-width: 60px; }
  .answer-compare { flex-direction: column; gap: 0.75rem; }
}

/* ───────────────────────────────────────────────────────────────────────────
   New design: practice banner, silence pill, bonus rows, pay summary
   ─────────────────────────────────────────────────────────────────────────── */

/* Practice banner — shown on the practice intro and during the practice round */
.practice-banner {
  background: #fdf3ec;
  border: 1px solid #e8c9b0;
  border-left: 3px solid var(--accent);
  padding: 0.7rem 1rem;
  border-radius: 2px;
  font-size: 0.92rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Worked-example bonus table on the rules screen */
.bonus-example {
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.88rem;
}
.bonus-example th,
.bonus-example td {
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.bonus-example th {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.bonus-example td:nth-child(2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Aside text inside rule-card (used for the example intro/outro lines) */
.rule-card-aside {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.4rem 0;
}
.rule-list {
  margin: 0.4rem 0 0.6rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.65;
}
.rule-list li { margin-bottom: 0.3rem; }

/* Review-policy card uses a slightly different accent so it stands out */
.review-card {
  border-left: 3px solid var(--red);
  background: #fdf6f5;
}

/* Submit status row replaces the old payment meter */
.submit-status-row {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -0.35rem 0 0.85rem;
}

/* Silence prompt pill (non-punitive nudge to keep talking) */
.silence-pill {
  background: #fff7e8;
  border: 1px solid #e8c585;
  border-left: 3px solid var(--rec);
  color: var(--accent);
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 0.85rem;
  animation: pillIn 0.18s ease-out;
}
@keyframes pillIn {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Final-screen summary table with the bonus column */
.summary-table-bonus td:last-child,
.summary-table-bonus th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Pay summary block on the final screen */
.pay-summary {
  margin: 1.25rem 0 0.75rem;
  border: 1px solid var(--rule);
  background: var(--cream);
  border-radius: 2px;
  padding: 0.85rem 1.1rem;
  max-width: 480px;
}
.pay-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.92rem;
}
.pay-row + .pay-row { border-top: 1px solid var(--rule); }
.pay-total {
  font-size: 1rem;
  border-top: 2px solid var(--accent) !important;
  margin-top: 0.25rem;
  padding-top: 0.45rem;
}
.pay-total strong {
  color: var(--accent);
  font-size: 1.05rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   Two-column payout table (rules screen)
   ─────────────────────────────────────────────────────────────────────────── */
.payout-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0.85rem;
  font-size: 0.88rem;
  table-layout: fixed;
}
.payout-table th,
.payout-table td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.payout-table th {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.payout-table th:nth-child(2),
.payout-table th:nth-child(3),
.payout-table td:nth-child(2),
.payout-table td:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 30%;
}
.payout-table td:first-child { white-space: nowrap; }

/* Shade cells based on the --shade custom property (0..1, 1 = best payout). */
.payout-yes { background: rgba(31, 107, 46, calc(var(--shade, 0) * 0.45)); color: var(--black); }
.payout-no  { background: rgba(176, 48, 32, calc(var(--shade, 0) * 0.45)); color: var(--black); }

/* ───────────────────────────────────────────────────────────────────────────
   Stage B progress bar with min/max ticks (single increasing bar)
   ─────────────────────────────────────────────────────────────────────────── */
.progress-wrap {
  margin: 1rem 0 1.4rem;
  padding-top: 1.1rem;       /* space for "min" / "max" labels above ticks */
}
.progress-track {
  position: relative;
  height: 8px;
  background: var(--rule);
  border-radius: 4px;
  overflow: visible;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.25s linear;
}
.progress-tick {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 12px;
  background: var(--black);
  transform: translateX(-50%);
  pointer-events: none;
}
.progress-tick.progress-tick-end {
  right: 0;
  left: auto;
  transform: translateX(0);
}
.progress-tick-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.progress-tick-end .progress-tick-label {
  left: auto;
  right: 0;
  transform: translateX(0);
}

/* ───────────────────────────────────────────────────────────────────────────
   Rule walkthrough progression (pips at the top of each rule card)
   ─────────────────────────────────────────────────────────────────────────── */
/* Existing styles already defined; nothing new needed. */
