/* Roadrunner Academy — Roadrunner Charters design system (DESIGN.md base + academy additions at end) */
:root {
  --rr-black: #0a0a0a;
  --rr-white: #ffffff;
  --rr-paper: #fafafa;
  --rr-red: #8b0000;
  --rr-red-bright: #b91c1c;
  --rr-asphalt: #1c1c1e;
  --rr-charcoal: #2c2c2e;
  --rr-steel: #52525b;
  --rr-silver: #a1a1aa;
  --rr-line: #e4e4e7;
  --rr-yellow: #eab308;
  --rr-green: #15803d;
  --rr-link: #1d4ed8;
  --sans: "DM Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --heading: "Plus Jakarta Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 400 15px/1.55 var(--sans); color: var(--rr-black); background: var(--rr-paper); }
a { color: var(--rr-link); }

/* ---- nav slab ---- */
nav {
  background: var(--rr-black); color: var(--rr-white);
  display: flex; align-items: center; gap: 32px; padding: 0 32px; height: 56px;
}
nav .wordmark { font: 800 17px var(--heading); letter-spacing: 0.06em; text-transform: uppercase; }
nav .wordmark span { color: var(--rr-silver); font-weight: 600; }
nav .tabs { display: flex; gap: 8px; height: 100%; }
nav .tabs button {
  background: none; border: none; color: var(--rr-silver); font: 600 14px var(--sans);
  padding: 0 14px; cursor: pointer; height: 100%; border-bottom: 2px solid transparent;
}
nav .tabs button.active { color: var(--rr-white); border-bottom-color: var(--rr-red-bright); }
nav .tabs button:hover { color: var(--rr-white); }

main { max-width: 1440px; margin: 0 auto; padding: 24px 32px 64px; }

/* ---- headings / eyebrow ---- */
h1 { font: 700 30px/1.2 var(--heading); letter-spacing: -0.02em; margin: 8px 0 16px; }
h2 { font: 600 22px var(--heading); margin: 32px 0 12px; }
h3 { font: 600 17px var(--heading); }
.eyebrow { font: 600 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rr-steel); }

/* road stripe divider */
.road-stripe { height: 3px; background: var(--rr-black); position: relative; margin: 24px 0; border-radius: 2px; }
.road-stripe::after { content: ""; position: absolute; left: 48px; top: 0; width: 64px; height: 3px; background: var(--rr-red); }

/* ---- stat tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.tile { background: #fff; border: 1px solid var(--rr-line); border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tile .label { font: 500 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rr-steel); }
.tile .value { font: 700 26px var(--heading); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .value.alert { color: var(--rr-red); }

/* ---- cards ---- */
.card { background: #fff; border: 1px solid var(--rr-line); border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* ---- dispatch-board tables ---- */
table { width: 100%; border-collapse: collapse; }
th {
  font: 600 11px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--rr-steel);
  text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--rr-line);
}
td { padding: 9px 10px; border-bottom: 1px solid var(--rr-line); vertical-align: middle; }
tbody tr:hover { background: rgba(139,0,0,0.04); }
tbody tr.clickable { cursor: pointer; }
td.mono, .mono { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
td.num, th.num { text-align: right; }
td.num { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }

/* ---- status chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px;
  font: 600 11px var(--sans); white-space: nowrap;
}
.chip.ok, .chip.confirmed, .chip.active { background: rgba(21,128,61,.1); color: var(--rr-green); }
.chip.expiring, .chip.awaiting_confirmation, .chip.probation { background: rgba(234,179,8,.14); color: #854d0e; }
.chip.expired, .chip.discrepancy { background: rgba(139,0,0,.09); color: var(--rr-red); }
.chip.missing, .chip.needs_vendor { background: none; border: 1px solid var(--rr-silver); color: var(--rr-steel); }
.chip.completed { background: rgba(82,82,91,.12); color: var(--rr-steel); }
.chip.cancelled, .chip.inactive { background: rgba(82,82,91,.12); color: var(--rr-steel); text-decoration: line-through; }

/* ---- buttons ---- */
button, .btn { font: 600 15px var(--sans); border-radius: 10px; padding: 10px 20px; cursor: pointer; transition: all .15s; }
.btn-primary { background: var(--rr-black); color: #fff; border: 1px solid var(--rr-black); }
.btn-primary:hover { background: var(--rr-red); border-color: var(--rr-red); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary { background: #fff; color: var(--rr-black); border: 1px solid var(--rr-line); }
.btn-secondary:hover { border-color: var(--rr-black); }
.btn-danger { background: none; border: none; color: var(--rr-red); font-size: 13px; padding: 4px 8px; }
.btn-ghost { background: none; border: none; color: var(--rr-steel); padding: 6px 10px; font-size: 13px; }
.btn-ghost:hover { color: var(--rr-black); }
.btn-sm { font-size: 13px; padding: 6px 14px; }
button:disabled { opacity: .5; pointer-events: none; }

/* ---- forms ---- */
label { display: block; font: 500 13px var(--sans); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; font: 400 14px var(--sans); padding: 8px 10px; border: 1px solid var(--rr-line);
  border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--rr-black); box-shadow: 0 0 0 3px rgba(139,0,0,.3);
}
input.mono { font-family: var(--mono); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 16px; }
.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }
.error-msg { color: var(--rr-red); font-size: 13px; margin-top: 6px; }

/* ---- dropzone ---- */
.dropzone {
  border: 2px dashed var(--rr-line); border-radius: 12px; padding: 28px; text-align: center;
  color: var(--rr-steel); cursor: pointer; background: #fff; transition: all .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--rr-black); color: var(--rr-black); }
.dropzone .big { font: 600 16px var(--heading); color: var(--rr-black); }

/* ---- modal ---- */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex;
  align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 50; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18);
  width: 100%; max-width: 980px; padding: 24px 28px 28px;
}
.modal.narrow { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal-head h3 { font-size: 20px; }
.close-x { background: none; border: none; font-size: 22px; color: var(--rr-steel); cursor: pointer; padding: 4px 10px; }
.close-x:hover { color: var(--rr-black); }

/* ---- match panel ---- */
.match-panel { border: 1px solid var(--rr-line); border-radius: 10px; overflow: hidden; margin-top: 12px; }
.match-row { display: grid; grid-template-columns: 130px 1fr 1fr 90px; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--rr-line); align-items: center; font-size: 13px; }
.match-row:last-child { border-bottom: none; }
.match-row.head { background: var(--rr-paper); font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--rr-steel); }
.match-row .val { font-family: var(--mono); font-size: 12px; }
.match-ok { color: var(--rr-green); font-weight: 700; }
.match-bad { color: var(--rr-red); font-weight: 700; }
.match-na { color: var(--rr-silver); }

/* ---- misc ---- */
.flex { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--rr-steel); font-size: 13px; }
.small { font-size: 12px; color: var(--rr-silver); }
.section-gap { margin-top: 24px; }
.pill-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-filter button {
  font: 500 12px var(--sans); padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--rr-line); background: #fff; color: var(--rr-steel);
}
.pill-filter button.active { background: var(--rr-black); color: #fff; border-color: var(--rr-black); }
.doc-link { font: 500 13px var(--mono); }
.margin-pos { color: var(--rr-green); }
.margin-neg { color: var(--rr-red); }
.itin-details { white-space: pre-line; color: var(--rr-steel); font-size: 12px; }
.empty-state { text-align: center; color: var(--rr-silver); padding: 32px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--rr-black); color: #fff;
  padding: 12px 20px; border-radius: 10px; font: 500 14px var(--sans);
  box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 100; animation: toast-in .2s ease-out;
}
.toast.warn { background: var(--rr-red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

@media (max-width: 768px) {
  main { padding: 16px; }
  nav { padding: 0 16px; gap: 16px; }
  .match-row { grid-template-columns: 100px 1fr 1fr 60px; }
}

/* ---- compliance request builder ---- */
.req-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 8px; }
.req-check { display: flex; align-items: flex-start; gap: 7px; font-weight: 400; font-size: 13px; margin: 0; }
.req-check input { width: auto; margin-top: 3px; }
.req-table { margin-top: 10px; }
.req-table td { vertical-align: middle; }
.msg-preview {
  margin-top: 12px; border: 1px solid var(--rr-line); border-left: 3px solid var(--rr-red);
  border-radius: 8px; padding: 12px 14px; background: var(--rr-white);
}
.msg-body {
  width: 100%; margin-top: 8px; font: 400 13px/1.5 var(--sans); color: var(--rr-charcoal);
  border: 1px solid var(--rr-line); border-radius: 6px; padding: 10px; resize: vertical; background: var(--rr-paper);
}

/* ---- inbox email cards ---- */
.email-card { margin-bottom: 12px; }
.email-card + .email-card { margin-top: 0; }

/* ---- import paste bar ---- */
.paste-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

/* ---- signed-in identity in nav ---- */
.whoami { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.whoami .muted { color: var(--rr-silver); }
.logout-link {
  color: var(--rr-white); text-decoration: none; font: 600 13px var(--sans);
  border: 1px solid #3f3f46; padding: 5px 11px; border-radius: 7px;
}
.logout-link:hover { background: var(--rr-charcoal); }

/* ---- duplicate review ---- */
.dupe-card { margin-bottom: 14px; border-left: 3px solid var(--rr-red); }
.dupe-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 0; border-top: 1px solid var(--rr-line); margin-top: 8px;
}
.dupe-row .btn-primary { margin-left: auto; }

/* ---- pricing / rate cards ---- */
.form-sep {
  font: 600 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rr-steel);
  border-top: 1px solid var(--rr-line); padding-top: 12px; margin-top: 4px;
}
.price-best { background: color-mix(in srgb, var(--rr-green) 8%, transparent); }
.price-best td:first-child { box-shadow: inset 3px 0 0 var(--rr-green); }
.rate-editor {
  margin-top: 14px; border: 1px dashed var(--rr-line); border-radius: 8px; padding: 14px; background: var(--rr-paper);
}
.rate-table td, .rate-table th { padding: 7px 10px; }
@media (max-width: 768px) {
  .req-items { grid-template-columns: 1fr; }
}

/* ---- workshop (self-evaluation) ---- */
.chip.sev-high { background: rgba(139,0,0,.09); color: var(--rr-red); }
.chip.sev-medium { background: rgba(234,179,8,.14); color: #854d0e; }
.chip.sev-low { background: rgba(82,82,91,.12); color: var(--rr-steel); }
.chip.ws-proposed { background: none; border: 1px solid var(--rr-silver); color: var(--rr-steel); }
.chip.ws-approved { background: rgba(21,128,61,.1); color: var(--rr-green); }
.chip.ws-done { background: rgba(82,82,91,.12); color: var(--rr-steel); }
.chip.ws-dismissed { background: rgba(82,82,91,.12); color: var(--rr-steel); text-decoration: line-through; }
.health-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.health-dot {
  display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); color: var(--rr-steel);
  padding: 4px 10px; border: 1px solid var(--rr-line); border-radius: 999px;
}
.health-dot i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.health-dot.h-ok i { background: var(--rr-green); }
.health-dot.h-high i { background: var(--rr-red); }
.health-dot.h-medium i { background: #eab308; }
.health-dot.h-low i { background: #a1a1aa; }
.ws-finding { padding: 8px 0; border-bottom: 1px solid var(--rr-line); }
.ws-finding:last-child { border-bottom: none; }
.ws-finding summary { cursor: pointer; list-style-position: outside; }
.ws-evidence { margin: 8px 0 4px 24px; padding: 0; }
.ws-evidence li { font: 400 13px var(--sans); color: var(--rr-steel); margin: 3px 0; }
.ws-item { margin-bottom: 12px; }
.brief-block {
  background: var(--rr-paper); border: 1px solid var(--rr-line); border-radius: 10px; padding: 14px 16px;
  font: 400 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word;
  max-height: 480px; overflow-y: auto; margin-top: 12px;
}
.delta-new { color: var(--rr-red); font-weight: 700; }
.delta-up { color: #854d0e; font-weight: 700; }
.delta-down { color: var(--rr-green); font-weight: 700; }


/* ================================================================
   Roadrunner Academy additions (training, KB, agent brain)
   ================================================================ */

/* anchors styled as buttons (module "Open" links) */
a.btn-primary, a.btn-secondary {
  font: 600 15px var(--sans); border-radius: 10px; padding: 10px 20px;
  cursor: pointer; text-decoration: none; display: inline-block; transition: all .15s;
}
a.btn-primary.btn-sm, a.btn-secondary.btn-sm { font-size: 13px; padding: 6px 14px; }
a.btn-secondary { background: #fff; color: var(--rr-black); border: 1px solid var(--rr-line); }
a.btn-secondary:hover { border-color: var(--rr-black); }

/* ---- progress bars ---- */
.pbar { height: 6px; background: var(--rr-line); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.pbar.big { height: 9px; }
.pbar-fill { height: 100%; background: var(--rr-black); border-radius: 999px; transition: width .25s; }

/* ---- training ---- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.course-card h3 { margin-bottom: 4px; }
.course-card p { min-height: 40px; }
.continue-card { margin-top: 20px; border-left: 3px solid var(--rr-red); }

.module-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--rr-line); }
.module-row:last-child { border-bottom: none; }
.module-row.done .mod-title { color: var(--rr-steel); }
.mod-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rr-green); cursor: pointer; }
.mod-body { flex: 1; }
.mod-title { font: 600 15px var(--sans); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mod-actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.mod-text { margin-top: 10px; padding: 14px 16px; background: var(--rr-paper); border: 1px solid var(--rr-line); border-radius: 10px; }

/* ---- knowledge base ---- */
.kb-search {
  width: 240px; font: 400 14px var(--sans); padding: 8px 10px;
  border: 1px solid var(--rr-line); border-radius: 8px; background: #fff;
}
.callout {
  background: rgba(234,179,8,.10); border: 1px solid rgba(234,179,8,.45);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 14px;
}

/* ---- rendered markdown ---- */
.md-body { line-height: 1.6; }
.md-body .md-h { margin: 18px 0 8px; }
.md-body h3.md-h { font-size: 19px; }
.md-body h4.md-h { font-size: 16px; }
.md-body h5.md-h, .md-body h6.md-h { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--rr-steel); }
.md-body p { margin: 8px 0; }
.md-body .md-list { margin: 8px 0 8px 22px; }
.md-body .md-list li { margin: 3px 0; }
.md-body code { font: 500 12.5px var(--mono); background: var(--rr-paper); border: 1px solid var(--rr-line); border-radius: 5px; padding: 1px 5px; }
.md-body .md-code { font: 400 12.5px/1.5 var(--mono); background: var(--rr-asphalt); color: #e4e4e7; border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 10px 0; white-space: pre; }
.md-body .md-hr { border: none; border-top: 1px solid var(--rr-line); margin: 16px 0; }
.md-body .md-quote { border-left: 3px solid var(--rr-line); padding: 4px 14px; color: var(--rr-steel); margin: 8px 0; }
.md-tablewrap { overflow-x: auto; margin: 10px 0; }
.md-tablewrap table { min-width: 480px; }
.wikilink {
  background: none; border: none; cursor: pointer; padding: 0 2px;
  color: var(--rr-link); font: inherit; text-decoration: underline dotted;
}
.wikilink:hover { color: var(--rr-black); }

/* ---- agent brain ---- */
.brain-legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.legend-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font: 600 12px var(--sans); background: #fff; border: 1px solid var(--rr-line); cursor: pointer; color: var(--rr-black);
}
.legend-chip.dim { opacity: .35; }
.legend-chip.static { cursor: default; color: var(--rr-steel); }
.legend-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-chip i.ghost { border: 1.5px dashed var(--rr-silver); background: none; }
.brain-wrap { position: relative; }
#br-canvas {
  width: 100%; display: block; background: #fff;
  border: 1px solid var(--rr-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
  cursor: grab;
}
.brain-panel {
  position: absolute; top: 14px; right: 14px; width: 340px; max-height: calc(100% - 28px);
  overflow-y: auto; background: #fff; border: 1px solid var(--rr-line); border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.10); padding: 16px;
}
.brain-panel.hidden { display: none; }
.bp-body { margin-top: 10px; border-top: 1px solid var(--rr-line); padding-top: 8px; font-size: 13.5px; }
.bp-links { margin-top: 10px; }
.bp-links .wikilink { display: inline-block; margin: 2px 6px 2px 0; text-align: left; }

@media (max-width: 900px) {
  .brain-panel { position: static; width: auto; max-height: none; margin-top: 12px; }
  .kb-search { width: 100%; }
}


/* ================================================================
   Academy v2 — study view, players, Pre-Trip board, suite links
   ================================================================ */

/* nav suite switcher */
.suite-links { display: flex; gap: 10px; margin-left: 16px; }
.suite-links a { color: var(--rr-silver); font: 600 12px var(--sans); text-decoration: none; }
.suite-links a:hover { color: var(--rr-white); }

/* course page */
.section-h { font-size: 18px; margin: 24px 0 8px; }
.course-infographic { max-width: 100%; border: 1px solid var(--rr-line); border-radius: 12px; margin: 8px 0 12px; display: block; max-height: 340px; object-fit: contain; background: #fff; }
.module-row.unpub { opacity: .75; background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(234,179,8,.05) 14px 28px); }
.modlink { background: none; border: none; padding: 0; font: 600 15px var(--sans); color: var(--rr-black); cursor: pointer; text-align: left; }
.modlink:hover { color: var(--rr-red); }

/* study view — three zones, similar-not-identical to the NotebookLM layout */
.study-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.study-left, .study-right { background: #fff; border: 1px solid var(--rr-line); border-radius: 12px; padding: 14px; position: sticky; top: 16px; }
.study-center { min-width: 0; }
.study-lesson { padding: 28px 32px; }
.mnav-list { display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow-y: auto; }
.mnav { background: none; border: none; text-align: left; font: 500 13px var(--sans); color: var(--rr-steel); padding: 6px 8px; border-radius: 8px; cursor: pointer; border-left: 3px solid transparent; }
.mnav:hover { background: var(--rr-paper); color: var(--rr-black); }
.mnav.active { border-left-color: var(--rr-red); color: var(--rr-black); font-weight: 600; background: var(--rr-paper); }
.mnav-dot { color: var(--rr-green); }
.study-done { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 500 13px var(--sans); cursor: pointer; }
.study-done input { width: 16px; height: 16px; accent-color: var(--rr-green); }
.pdf-frame { width: 100%; height: 72vh; border: 1px solid var(--rr-line); border-radius: 12px; background: #fff; }
.study-right textarea { resize: vertical; }

/* flashcard flip-deck */
.deck-wrap { padding: 20px 24px; }
.flashcard { perspective: 1200px; height: 260px; cursor: pointer; margin-top: 12px; outline: none; }
.fc-inner { position: relative; width: 100%; height: 100%; transition: transform .35s; transform-style: preserve-3d; }
.flashcard.flipped .fc-inner { transform: rotateY(180deg); }
.fc-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px 32px; border-radius: 14px; border: 1px solid var(--rr-line);
  font: 600 18px/1.5 var(--heading); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06);
  overflow-y: auto;
}
.fc-back { transform: rotateY(180deg); background: var(--rr-asphalt); color: var(--rr-white); font: 400 15.5px/1.6 var(--sans); }

/* quiz player */
.quiz-q { font: 600 17px/1.5 var(--heading); margin: 12px 0; }
.quiz-choices { display: flex; flex-direction: column; gap: 8px; }
.quiz-choice {
  text-align: left; background: #fff; border: 1px solid var(--rr-line); border-radius: 10px;
  padding: 10px 14px; font: 500 14.5px var(--sans); cursor: pointer;
}
.quiz-choice:hover { border-color: var(--rr-black); }
.quiz-choice.picked { border-color: var(--rr-black); box-shadow: 0 0 0 2px rgba(10,10,10,.15); }
.quiz-choice.right { border-color: var(--rr-green); background: rgba(21,128,61,.08); }
.quiz-choice.wrong { border-color: var(--rr-red); background: rgba(139,0,0,.06); }
.quiz-rationale { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.quiz-rationale.ok { background: rgba(21,128,61,.08); }
.quiz-rationale.no { background: rgba(234,179,8,.10); }
.quiz-score { font: 800 54px var(--heading); margin: 8px 0; }
.quiz-score.ok { color: var(--rr-green); }

@media (max-width: 1000px) {
  .study-grid { grid-template-columns: 1fr; }
  .study-left, .study-right { position: static; }
}

/* Improver rework: role tags, redo card */
.rolechips { display: flex; gap: 4px; flex-wrap: wrap; }
.rolechip {
  font: 600 11px var(--sans); padding: 2px 9px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid var(--rr-line); color: var(--rr-steel);
}
.rolechip:hover { border-color: var(--rr-black); color: var(--rr-black); }
.rolechip.active { background: var(--rr-black); border-color: var(--rr-black); color: #fff; }
.redo-card { margin-top: 20px; border-left: 3px solid var(--rr-red); }
