/* ============================================================
   OSCE Patient — history-taking practice
   One phase owns the screen at a time: history, then the clinical
   steps, then the report. The top bar is the only constant.
   ============================================================ */

:root {
  --bg: var(--blue-97d);
  --card: var(--white);
  --line: var(--blue-92d);
  --line-soft: var(--blue-95d);
  --ink: var(--grey-7);
  --ink-2: #1a1f2e;
  --label: var(--blue-24);
  --muted: var(--blue-46);
  --muted-2: var(--blue-65);
  --field: var(--blue-84b);
  --accent: var(--blue-58b);
  --accent-dark: var(--blue-48);
  --accent-soft: var(--blue-95f);
  --accent-soft-line: var(--blue-91);
  --dark: #0b1020;
  --dark-ink: #e9eeff;
  --dark-muted: #b9c6ff;
  --good-bg: var(--green-94);
  --good-line: var(--green-81);
  --good-ink: var(--green-21);
  --warn-bg: var(--yellow-95);
  --warn-line: var(--yellow-81);
  --warn-ink: var(--yellow-24);
  --warn-ink-2: #6b4800;
  --bad-bg: var(--red-96);
  --bad-line: var(--red-87);
  --bad-ink: var(--red-33b);
  --radius: 16px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Class-level display rules outrank the browser's [hidden] rule, so state
   this once and loudly rather than per component. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

.app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 28px;
  /* The pale blue band from the front page, on every page's top bar. */
  background: var(--blue-96c);
  border-bottom: 1px solid var(--blue-91c);
}

/* The app itself sits on the front page's background: white, with the same
   faint line drawings fixed at the edges (Ben, 6 Oct). */
.appBody { background: var(--card); }
.appBody .app { position: relative; z-index: 1; }
.bgArt { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bgArt svg {
  position: absolute;
  fill: none;
  stroke: var(--blue-92c);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bgArt svg.wide { stroke-width: 2; }
.bgArt .b1 { width: 120px; left: 5%; top: 24%; transform: rotate(-12deg); }
.bgArt .b2 { width: 210px; right: 3%; top: 30%; }
.bgArt .b3 { width: 104px; left: 7%; bottom: 10%; transform: rotate(8deg); }
.bgArt .b4 { width: 96px; right: 8%; bottom: 16%; transform: rotate(10deg); }
.bgArt .b5 { width: 84px; left: 14%; top: 56%; transform: rotate(-32deg); }
.bgArt .b6 { width: 180px; left: 2%; bottom: 36%; }
/* Only where there is margin to draw in: the app's column is 1000px wide. */
@media (max-width: 1320px) { .bgArt { display: none; } }

.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brandName { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.brandSub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topControls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }

.pickField {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 10px 5px 12px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--card);
}
.pickField > span { font-size: 12px; color: var(--muted); }
.pickField select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 2px;
  min-width: 0;
  max-width: 260px;
  text-overflow: ellipsis;
}
.pickField select:focus { outline: none; }

.topActions { display: flex; align-items: center; gap: 8px; }

.btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: var(--card); border-color: var(--field); color: var(--blue-27); }
.btn.ghost:hover { background: var(--blue-98); border-color: var(--muted-2); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- stage ---------- */

/* A column, so anything that sits above the phase — the guest banner — is a
   full-width row rather than a second column beside it. */
.stage { flex-grow: 1; display: flex; flex-direction: column; align-items: center; padding: 24px 28px 48px; }
.phase { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 18px; }
.phase[hidden] { display: none; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.cardHead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cardHead h2 { margin: 0; font-size: 17px; font-weight: 700; }
.muted { font-size: 13px; color: var(--muted); }
.stageNote { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- patient strip ---------- */

.patientStrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.patientWho { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--accent);
}
.patientName { font-size: 15px; font-weight: 700; }
.patientMeta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.patientStats { display: flex; align-items: center; gap: 18px; }
.stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.statLabel { font-size: 13px; color: var(--muted); }
.statValue { font-size: 15px; font-weight: 700; }
.statDivider { width: 1px; height: 32px; background: var(--line); }

/* ---------- chat ---------- */

.chatCard { display: flex; flex-direction: column; gap: 14px; }

.chatLog {
  /* A fixed, roomy box from the first question: it doesn't grow as the
     consult does, it scrolls (Ben, 6 Oct). */
  height: clamp(340px, 52vh, 640px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--blue-99c);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.msg { display: flex; }
.msg.me { justify-content: flex-end; }
.bubble {
  max-width: 74%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.me .bubble { background: var(--accent-soft); border: 1px solid var(--accent-soft-line); }
.pt .bubble { background: var(--card); border: 1px solid #e3e6ee; }

/* Flagging a reply sits inside the patient's bubble, quiet until hovered:
   it belongs to that reply, and it shouldn't compete with the reply itself. */
.flagWrap {
  margin-top: 7px;
  min-height: 20px;
  font-size: 12px;
}
.flagBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.msg:hover .flagBtn,
.flagBtn:focus-visible { opacity: 1; }

/* The little "i" beside the flag: what the flag is for. */
.flagInfo {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  vertical-align: middle;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.msg:hover .flagInfo,
.flagInfo:focus-visible { opacity: 1; }
.flagInfo:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.flagHelp { max-width: 480px; }
.flagHelpDemo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--blue-99c);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}
.flagHelpDemo .bubble { max-width: 86%; }
.flagHelpPill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 12px;
}
.flagHelpNote {
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--field);
  border-radius: 10px;
  font-size: 13.5px;
}
.flagBtn:hover {
  color: var(--warn-ink);
  border-color: var(--warn-line);
  background: var(--warn-bg);
}

.flagForm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.flagInput {
  flex: 1 1 180px;
  min-width: 0;
  padding: 5px 9px;
  border: 1px solid var(--field);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  background: var(--card);
  color: var(--ink);
}
.flagSend,
.flagCancel {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--field);
  background: var(--card);
  color: var(--label);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.flagSend {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}
.flagDone { color: var(--good-ink); }
.flagFailed { color: var(--warn-ink); }

@media (prefers-reduced-motion: reduce) {
  .flagBtn { transition: none; }
}

.systemNote {
  align-self: center;
  font-size: 12px;
  color: var(--muted-2);
  padding: 4px 12px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.chatForm { display: flex; gap: 10px; }
.chatInput {
  flex: 1;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--field);
  font: inherit;
  font-size: 15px;
}
.chatInput:focus, .input:focus { outline: 2px solid rgba(43,99,255,0.2); border-color: var(--accent); }

/* ---------- stepper ---------- */

.stepper { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.stepNode { display: flex; align-items: center; gap: 10px; }
.stepDot {
  width: 28px; height: 28px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--card); border: 1px solid var(--field); color: var(--muted-2);
}
.stepNode.done .stepDot, .stepNode.current .stepDot {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
.stepName { font-size: 14px; font-weight: 600; color: var(--muted-2); }
.stepNode.done .stepName, .stepNode.current .stepName { color: var(--ink); }
.stepLine { flex-grow: 1; min-width: 24px; height: 2px; background: var(--line); margin: 0 14px; }
.stepLine.done { background: var(--accent); }

/* ---------- findings ---------- */

.findingsArea { display: flex; flex-direction: column; gap: 18px; }
.findingsArea:empty { display: none; }

.findingTable { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.findingRow {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.findingRow:last-child { border-bottom: none; }
.findingRow:nth-child(odd) { background: var(--blue-99c); }
.findingLabel { font-weight: 700; color: var(--label); }
.findingText { color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.findingText.unavailable { color: var(--muted); font-style: italic; }

/* ---------- form fields ---------- */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.fieldHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fieldLabel { font-size: 14px; font-weight: 600; color: var(--label); }
.fieldMarks { font-size: 12px; color: var(--muted-2); }
.fieldHint { font-size: 12px; color: var(--muted); }

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  background: var(--card);
  resize: vertical;
}

.fieldGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rowActions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.rowActions .btn.ghost { margin-right: auto; }
.stepSkip { display: block; margin: 14px 0 0 auto; font-size: 13px; }
.stepSkip[hidden] { display: none; }

/* ---------- report ---------- */

#report { display: flex; flex-direction: column; gap: 18px; }

.scoreHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 26px;
  background: var(--dark);
  border-radius: var(--radius);
}
.scoreHeroLeft { display: flex; flex-direction: column; gap: 6px; }
.scoreCaption { font-size: 13px; color: var(--dark-muted); letter-spacing: 0.02em; }
.scoreValue { display: flex; align-items: baseline; gap: 10px; }
.scoreNumber { font-size: 46px; font-weight: 700; color: var(--dark-ink); line-height: 1; }
.scoreOutOf { font-size: 20px; color: #7e8bb8; }
.pills { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: var(--dark-ink);
  font-size: 13px;
  font-weight: 700;
}
.pill.great { color: #7CFFB2; }
.pill.ok { color: #FFD37C; }
.pill.low { color: #FFB4B4; }

.bars { display: flex; flex-direction: column; gap: 14px; }
.bar { display: flex; flex-direction: column; gap: 6px; }
.barHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.barName { font-size: 14px; font-weight: 600; color: var(--label); }
.barScore { font-size: 14px; color: var(--blue-27); }
.barScore b { font-weight: 700; }
.barTrack { height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.barFill { height: 8px; border-radius: 999px; background: var(--accent); }

.advice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 20px;
}
.advice h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; color: var(--warn-ink); }
.adviceList { display: flex; flex-direction: column; gap: 9px; }
.adviceItem { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--warn-ink-2); }
.adviceItem svg { flex-shrink: 0; margin-top: 2px; }

.coverGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.coverHead { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.coverHead h2 { margin: 0; font-size: 16px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--blue-98);
  color: #475467;
}
.chip.hit { background: var(--good-bg); border-color: var(--good-line); color: var(--good-ink); }

.answer { display: flex; flex-direction: column; gap: 14px; }
.answer h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--label);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.answer p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.answer ul, .answer ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.answer li { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.answer hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2px 0; }

.marksTable { display: flex; flex-direction: column; gap: 8px; }
.markRow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.markRow .barName { font-weight: 500; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .topbar { padding: 12px 16px; gap: 12px; }
  /* On a phone the case picker is the widest thing on the page — let it take
     the full row rather than pushing the layout sideways. */
  .topControls { width: 100%; }
  .pickField:first-child { flex-grow: 1; }
  .pickField:first-child select { max-width: 100%; width: 100%; }
  .topActions { width: 100%; }
  .topActions .btn { flex-grow: 1; justify-content: center; }
  .stage { padding: 18px 16px 40px; }
  .coverGrid, .fieldGrid { grid-template-columns: 1fr; }
  .findingRow { grid-template-columns: 1fr; gap: 4px; }
  .patientStats { width: 100%; justify-content: space-between; }
  .bubble { max-width: 88%; }
}

/* ---------- the differential repeater ---------- */
.ddxField { gap: 10px; }
.ddxList { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.ddxRow {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ddxHead { display: flex; align-items: center; gap: 10px; }
.ddxIndex {
  flex: 0 0 auto;
  min-width: 58px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.ddxName { flex: 1 1 auto; }
.ddxRemove {
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: var(--muted-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.ddxRemove:hover { color: var(--warn-ink); }
.ddxAdd { align-self: flex-start; }
@media (max-width: 640px) {
  .ddxHead { flex-wrap: wrap; }
  .ddxName { flex: 1 1 100%; order: 2; }
}

/* ---------- what you didn't ask ---------- */
.missedCard { border-color: var(--warn-line); }
.missedGroup { margin-bottom: 16px; }
.missedGroup:last-child { margin-bottom: 0; }
.missedSection {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.missedItem {
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.missedGroup .missedItem:first-of-type { border-top: 0; }
.missedTop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.missedLabel { font-size: 14px; font-weight: 600; }
.missedPts { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.missedAsk {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--warn-ink);
}

/* The illness script in a sentence, under the diagnosis. It's the thing the
   student is meant to be carrying in their head — what this condition looks
   like when it's textbook — so the evidence underneath has something to be
   evidence FOR. */
.keyScript {
  margin: 2px 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
  font-style: italic;
}
.keyTell {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-2);
}
.keyTellHead {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-right: 6px;
}

/* Half credit — they started this screen and stopped at one symptom. It sits
   in the same list as the misses because the advice is the same, but it isn't
   a miss and shouldn't read as one. */
.halfTag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
  background: var(--warn-bg, rgba(180, 130, 20, 0.14));
  color: var(--warn-ink);
}
.missedItemPartial .missedPts { color: var(--warn-ink); }


/* ============================================================
   Differential answer key
   The leading diagnosis first, then the rest. Under each, what
   supports it (green) and what argues against it (red) — the two
   halves of the reasoning the student is being marked on, so they
   have to be separable at a glance.
   ============================================================ */
.keyList { display: flex; flex-direction: column; gap: 12px; }

.keyCard {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--card);
}
.keyCard.isLeading {
  border-color: var(--accent-soft-line);
  background: var(--accent-soft);
}

.keyHead { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.keyRank {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--line-soft);
}
.keyCard.isLeading .keyRank { color: var(--white); background: var(--accent); }
.keyName { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.keyBadge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.keyBadge.leading { color: var(--white); background: var(--accent); }
.keyBadge.common { color: var(--muted); background: var(--line-soft); }
.keyBadge.cantmiss { color: var(--bad-ink); background: var(--bad-bg); border: 1px solid var(--bad-line); }

.keyEvidence {
  border-radius: 10px;
  padding: 9px 12px;
  margin-top: 8px;
  border: 1px solid transparent;
}
.keyEvidence.for { background: var(--good-bg); border-color: var(--good-line); }
.keyEvidence.against { background: var(--bad-bg); border-color: var(--bad-line); }

.keyEvidenceHead {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.keyEvidence.for .keyEvidenceHead { color: var(--good-ink); }
.keyEvidence.against .keyEvidenceHead { color: var(--bad-ink); }

.keyEvidence ul { margin: 0; padding-left: 18px; }
.keyEvidence li { font-size: 13.5px; line-height: 1.55; }
.keyEvidence.for li { color: var(--good-ink); }
.keyEvidence.against li { color: var(--bad-ink); }


/* The two halves of the reasoning are two different thoughts — what points
   towards the diagnosis and what points away — so they get two boxes, tinted
   the same way as the answer key they'll be compared against. */
.ddxReasons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 640px) { .ddxReasons { grid-template-columns: 1fr; } }

.ddxReasonBox { display: block; border-radius: 10px; padding: 8px 10px; border: 1px solid transparent; }
.ddxReasonBox.for { background: var(--good-bg); border-color: var(--good-line); }
.ddxReasonBox.against { background: var(--bad-bg); border-color: var(--bad-line); }

.ddxReasonHead {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ddxReasonBox.for .ddxReasonHead { color: var(--good-ink); }
.ddxReasonBox.against .ddxReasonHead { color: var(--bad-ink); }
.ddxReasonBox .ddxReason { background: var(--card); }

/* "Is there anything else you'd like to examine?" — asked outright, because an
   empty box with "leave blank if you're done" under it reads as a prompt to
   keep going. */
.askMore { padding: 4px 0; }
.askMoreQ { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.askMoreActions { display: flex; gap: 10px; flex-wrap: wrap; }


/* ============================================================
   Choosing a case
   The first screen of the session, so it gets the page rather
   than a corner of the header.
   ============================================================ */
.pickHead { margin: 8px 0 20px; }
.pickTitle { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.pickLead { margin: 0; color: var(--muted); font-size: 15px; max-width: 60ch; line-height: 1.6; }

.yearPick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.yearPickLabel { font-size: 13px; color: var(--muted); }
.yearOptions { display: inline-flex; background: var(--line-soft); border-radius: 999px; padding: 3px; gap: 3px; }
.yearOption {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.yearOption.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.yearPickNote { font-size: 13px; color: var(--muted-2); }

.caseGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.caseCard {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.caseCard:hover {
  border-color: var(--accent-soft-line);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.07);
}
.caseAvatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.caseText { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.caseTitle { font-size: 15px; font-weight: 650; }
.caseWho { font-size: 13px; color: var(--muted); }
.caseGo { margin-left: auto; color: var(--muted-2); font-size: 18px; }
.caseCard:hover .caseGo { color: var(--accent); }

/* ============================================================
   Guest mode
   Said once, at the top, rather than after they've finished.
   ============================================================ */
.guestBanner {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--warn-ink);
}
.guestBanner strong { margin-right: 6px; }

.savedNote {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.savedNote.unsaved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  border-radius: var(--radius-sm);
  color: var(--warn-ink);
}

/* ============================================================
   My cases
   ============================================================ */
.attemptList { display: flex; flex-direction: column; }
.attemptRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 14px 4px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.attemptList .attemptRow:first-child { border-top: 0; }
.attemptRow:hover .attemptTitle { color: var(--accent); }
.attemptMain { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.attemptTitle { font-size: 15px; font-weight: 650; }
.attemptMeta { font-size: 13px; color: var(--muted); }
.attemptScore { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.attemptNumber { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.attemptOutOf { font-size: 13px; font-weight: 500; color: var(--muted-2); }

.transcript { display: flex; flex-direction: column; gap: 12px; }
.turn { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.transcript .turn:first-child { border-top: 0; padding-top: 0; }
.turnQ { font-size: 14px; font-weight: 600; }
.turnA { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.55; }

/* ============================================================
   Welcome
   The page a stranger lands on. One thesis, one obvious action.
   ============================================================ */
.welcomeBody { background: var(--bg); }
.welcome { max-width: 780px; margin: 0 auto; padding: 24px 20px 60px; }
.welcomeHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.welcomeBrand { font-weight: 700; letter-spacing: -0.01em; }

.welcomeHero h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
}
.welcomeLead { margin: 0 0 26px; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.welcomeActions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.big { padding: 12px 22px; font-size: 15px; }
.welcomeFine { margin: 14px 0 0; font-size: 13px; color: var(--muted-2); }

.welcomeSteps { margin-top: 56px; }
.welcomeSteps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.welcomeSteps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.welcomeSteps strong { color: var(--ink); font-weight: 650; }
.welcomeStepN {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.welcomeFoot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); }

@media (max-width: 640px) {
  .welcomeHero h1 { font-size: 30px; }
  .welcome { padding-top: 18px; }
}


/* The pages that aren't a .phase still want the same column width. */
#listView, #detailView { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- narrow screens ----------
   A student on a phone between lectures is the likeliest user there is, so
   the header has to fold rather than push the page sideways. */
@media (max-width: 720px) {
  .topbar { padding: 10px 16px; gap: 10px; }
  .topActions { flex-wrap: wrap; gap: 8px; }
  .topActions .btn { padding: 7px 12px; font-size: 13px; }
  .userChip { font-size: 13px; }
  .userChip .userYear { display: none; }
  .stage { padding: 16px 16px 40px; }
  .brandSub { display: none; }
  .caseGrid { grid-template-columns: 1fr; }
  .guestBanner { flex-direction: column; align-items: flex-start; }
  .attemptRow { align-items: flex-start; }
}

/* The back link is a link, not a full-width bar. */
#detailView > .btn { align-self: flex-start; }


/* Years 3 and 4 are shown so students can see where this is going, and are
   unavailable because the content behind them hasn't been checked. */
.yearOption.is-soon { color: var(--muted-2); cursor: pointer; }
.yearOption.is-soon:hover { color: var(--muted); }

.comingSoon {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 16, 32, 0.45);
}
.comingCard {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.22);
}
.comingCard h3 { margin: 0 0 8px; font-size: 17px; }
.comingCard p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.comingCard .comingFine { color: var(--muted); font-size: 13px; }
.comingCard .btn { margin-top: 6px; }

.fieldHelp {
  margin: -4px 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}


/* What a friend trying this for the first time needs to know, before they
   form an opinion about a slow reply or a wrong one. */
.beforeYouStart {
  margin-top: 48px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.beforeYouStart h2 { margin: 0 0 12px; font-size: 15px; letter-spacing: -0.01em; }
.beforeYouStart ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.beforeYouStart li { font-size: 14px; line-height: 1.6; color: var(--muted); }
.beforeYouStart strong { color: var(--ink); font-weight: 600; }


/* ---------- the station clock ----------
   Eight minutes, on the corner of the patient strip, where a clock on the wall
   would be. The ring empties as the time goes: the number is for checking, the
   ring is for glancing. Amber in the last minute, red at zero — and it stops
   there rather than cutting anyone off mid-sentence. */
.patientStrip { position: relative; }

.stationClock {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  font: inherit;
}
.stationClock.isRunning { cursor: default; }
.stationClock:disabled { opacity: 1; }

.clockRing { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.clockTrack {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 5;
}
.clockProgress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s linear, stroke 0.3s ease;
}
.stationClock.isLow .clockProgress { stroke: #d9840a; }
.stationClock.isOut .clockProgress { stroke: var(--bad-ink); }

.clockFace { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1; }
.clockTime {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stationClock.isLow .clockTime { color: #8a5200; }
.stationClock.isOut .clockTime { color: var(--bad-ink); }
.clockHint {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.stationClock:not(.isRunning):hover .clockHint { color: var(--accent); }

/* Restart, hung under the clock it resets. */
.clockRestart {
  position: absolute;
  top: 62px;
  right: -14px;
  width: 76px;
  padding: 4px 0;
  border: 1px solid #f1b5ba;
  border-radius: 999px;
  background: var(--bad-bg);
  color: var(--bad-ink);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
}
.clockRestart:hover { background: var(--red-54); border-color: var(--red-54); color: var(--white); }

/* Finish history: green, centred under the question box. */
.finishRow { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn.pauseBtn { padding: 11px 20px; font-size: 15px; }
.finishRow:has(#finishBtn[hidden]) { display: none; }
.btn.finishBtn {
  padding: 11px 28px;
  font-size: 15px;
  background: var(--green-37);
  border-color: var(--green-37);
}
.btn.finishBtn:hover { background: var(--green-30); border-color: var(--green-30); }

/* The strip has to leave room for a clock that overhangs its corner. */
.patientStrip .patientStats { padding-right: 62px; }

@media (max-width: 640px) {
  .stationClock { width: 62px; height: 62px; top: -14px; right: -6px; }
  .clockRestart { width: 62px; top: 52px; right: -6px; font-size: 10.5px; }
  .clockTime { font-size: 14px; }
  .patientStrip .patientStats { padding-right: 46px; }
}

/* =========================================================================
   Ordering exams and investigations, and what comes back
   =========================================================================
   One box per request rather than one box and a note about commas: a student
   ordering four investigations is doing four separate things.
   ========================================================================= */

.requestRows { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.requestRow { display: flex; gap: 8px; align-items: center; }
.requestRow .requestInput { flex: 1; min-width: 0; }
.removeRequest {
  flex: none;
  align-self: stretch;
  width: 44px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--muted, var(--blue-46));
}
.removeRequest:hover { color: var(--bad-ink, var(--red-33b)); }
.addRequest { align-self: flex-start; font-size: 13px; }

/* ---- the reveal ---- */
.revealGroup { margin: 0 0 22px; }
.revealTitle {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, var(--blue-46));
}

.revealBox {
  border: 2px solid var(--line, var(--blue-92d));
  border-radius: var(--radius-sm, 12px);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--card, var(--white));
}
/* Ordered it, and it was indicated. */
.revealBox.correct { border-color: var(--good-line, var(--green-81)); background: var(--good-bg, var(--green-94)); }
/* Ordered it, and it wasn't. */
.revealBox.wrong   { border-color: var(--bad-line, var(--red-87)); background: var(--bad-bg, var(--red-96)); }
/* Not ordered and not graded: general inspection and hands, which come at
   the start of every examination. */
.revealBox.included { border-color: var(--line, var(--blue-92d)); background: var(--blue-97d); }
.revealTag.included { color: var(--muted, var(--blue-46)); }
/* Didn't order it, and should have. */
.revealBox.missed  { border-color: var(--bad-line, var(--red-87)); background: var(--bad-bg, var(--red-96)); }

.revealHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}
.revealLabel { font-weight: 700; font-size: 14px; }
.revealTag {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.revealTag.correct { color: var(--good-ink, var(--green-21)); }
.revealTag.wrong, .revealTag.missed { color: var(--bad-ink, var(--red-33b)); }

.revealBody { font-size: 14px; line-height: 1.5; }
.revealBox.wrong .revealBody, .revealBox.missed .revealBody { color: var(--bad-ink, var(--red-33b)); }

.interpretField { margin-top: 22px; }

/* =========================================================================
   Rating a case at the end of the station
   ========================================================================= */
.rateOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rateBox {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card, var(--white));
  border-radius: var(--radius, 16px);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(11, 16, 32, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rateBox h2 { margin: 0; font-size: 19px; }
.rateBox .muted { margin: 0; }
.rateClose {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted, var(--blue-46));
  cursor: pointer;
  padding: 4px 8px;
}
.rateStars { display: flex; align-items: center; gap: 4px; margin: 4px 0 8px; }
.rateStar {
  border: none;
  background: none;
  font-size: 32px;
  line-height: 1;
  color: var(--blue-84b);
  cursor: pointer;
  padding: 2px;
}
.rateStar.on { color: var(--orange-55); }
.rateStar:hover { transform: scale(1.08); }
.rateStar:focus-visible { outline: 2px solid var(--accent, var(--blue-58b)); border-radius: 6px; }
.rateValue { margin-left: 10px; font-size: 14px; color: var(--muted, var(--blue-46)); font-variant-numeric: tabular-nums; }
.rateBox textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.rateStatus { margin: 0; min-height: 1em; font-size: 13px; color: var(--bad-ink, var(--red-33b)); }
.rateActions { display: flex; justify-content: flex-end; gap: 8px; }

/* In the admin panel */
.feedbackList { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.feedbackItem { border: 1px solid var(--line, var(--blue-92d)); border-radius: 12px; padding: 10px 12px; }
.feedbackMeta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.feedbackText { font-size: 14px; line-height: 1.5; white-space: pre-wrap; }

/* "Which neurological examination?" */
.neuroChoices { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.neuroChoice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, var(--blue-92d));
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}
.neuroChoice:hover { background: var(--blue-99b); }
.neuroChoice input { width: 18px; height: 18px; margin: 0; }
.neuroChoice:has(input:checked) { border-color: var(--accent, var(--blue-58b)); background: var(--accent-soft, var(--blue-95f)); }

/* ============================================================
   The disclaimer (Ben, 18 Sep): small, at the foot of every page,
   and in full on the sign-up form.
   ============================================================ */
.siteDisclaimer {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted, var(--blue-46));
}
.signupDisclaimer {
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--yellow-95);
  border: 1px solid var(--yellow-80);
  color: var(--yellow-23);
}
.signupDisclaimer strong { display: block; margin-bottom: 2px; }
.authForgot { margin: 2px 0 0; text-align: center; }

/* A case a guest can see but not open. */
.caseCard.locked { opacity: 0.62; }
.caseCard.locked .caseAvatar { background: var(--line-soft, var(--blue-95)); color: var(--muted, var(--blue-46)); }
.caseCard.locked .caseGo { font-size: 15px; }

/* The temporary password on the admin page — read aloud or pasted, so big. */
.tempPassword {
  display: block;
  font-size: 22px;
  letter-spacing: 0.04em;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  background: var(--line-soft, var(--blue-95));
  user-select: all;
}

/* Why an item matters, beside the item: the old "What to do differently"
   card, folded into the list it was commenting on. */
.missedNote {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #5b6472);
}

/* An examination's findings under their own headings: general inspection,
   then the part the exam is named for. */
.revealSection + .revealSection { margin-top: 10px; }
.revealSectionHead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2, #6b7482);
  margin-bottom: 2px;
}

/* =========================================================================
   PHONES (Ben, 6 Oct). A shared link is opened on a phone first.

   The consult is the screen that matters most, and on a phone it behaves
   like a messaging app: the conversation fills the screen and scrolls, with
   the question box and Finish history fixed at the bottom, above the
   keyboard. Everything else simply tightens and stacks.
   ========================================================================= */
@media (max-width: 640px) {
  .topbar { padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
  .brandName { font-size: 16px; white-space: nowrap; }
  .topActions { width: auto; margin-left: auto; flex-wrap: nowrap; gap: 6px; min-width: 0; }
  .topActions .btn { flex-grow: 0; padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
  .userChip { gap: 8px; font-size: 12.5px; white-space: nowrap; }
  .userChip #userName { display: none; }
  /* Signed in, Home + Account + Sign out + Change case was 50px wider than a
     phone, and the whole page (and the case brief over it) slid sideways
     (check before sharing, 8 Nov). Account is a tap away from Home. */
  .userChip a[href="/account.html"] { display: none; }
  .topbar .brandName { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

  .stage { padding: 12px 12px 28px; }
  .phase { gap: 12px; }
  .card { padding: 14px; }
  .pickTitle { font-size: 24px; }

  .guestBanner { padding: 8px 12px; margin-bottom: 10px; gap: 8px; font-size: 12.5px; }
  .guestBanner .btn { padding: 6px 12px; font-size: 12.5px; }

  /* 16px stops iPhones zooming the page when a box is tapped. */
  .chatInput, .input, select, textarea, input[type="text"], input[type="email"], input[type="password"] { font-size: 16px; }

  .patientStrip { padding: 10px 76px 10px 12px; min-height: 70px; }
  .patientStrip .patientStats { display: none; }
  .stationClock { width: 54px; height: 54px; top: 6px; right: 8px; box-shadow: none; }
  .clockTime { font-size: 13px; }
  .clockHint { font-size: 7.5px; }
  .clockRestart { width: 54px; top: 62px; right: 8px; font-size: 10px; padding: 2px 0; }

  .bubble { max-width: 88%; font-size: 14.5px; }
  .chatForm { gap: 8px; }
  .chatInput { min-width: 0; padding: 11px 12px; }
  .chatForm .btn { padding: 11px 14px; }
  .btn.finishBtn { width: 100%; justify-content: center; }

  .revealHead { flex-wrap: wrap; gap: 4px; }
  .rowActions { flex-direction: column; align-items: stretch; }
  .rowActions .btn { justify-content: center; }
  .siteDisclaimer { font-size: 11px; padding: 12px 16px; }

  /* The consult, filling the screen. */
  body[data-phase="history"] .app { height: 100dvh; min-height: 0; }
  body[data-phase="history"] .stage { flex: 1; min-height: 0; padding-bottom: 10px; }
  body[data-phase="history"] #phaseHistory { flex: 1; min-height: 0; }
  body[data-phase="history"] .chatCard { flex: 1; min-height: 0; padding: 10px; gap: 8px; }
  body[data-phase="history"] .chatLog { flex: 1; min-height: 0; height: auto; padding: 10px; }
  body[data-phase="history"] .stageNote,
  body[data-phase="history"] .siteDisclaimer { display: none; }
  /* Once past the case list the guest notice is one line: who you are, and
     the button. The explanation was read on the way in. */
  body:not([data-phase="pick"]) .guestBanner span { display: none; }
  body:not([data-phase="pick"]) .guestBanner { margin-bottom: 8px; padding: 6px 10px; flex-wrap: nowrap; }
  body:not([data-phase="pick"]) .guestBanner > div { flex: 0 1 auto; min-width: 0; }
  body:not([data-phase="pick"]) .guestBanner strong { margin: 0; }
}

/* ---------- feedback: in depth on the left, checklist on the right ---------- */
.fbColumns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fbColumns.fbOne { grid-template-columns: minmax(0, 1fr); }
.fbDeep { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fbList { position: sticky; top: 14px; min-width: 0; }
.fbScroll { max-height: min(72vh, 760px); overflow-y: auto; padding-right: 8px; margin-right: -8px; }
.fbOne .fbList { position: static; }
.fbOne .fbScroll { max-height: none; }

.fbGroup { margin-bottom: 16px; }
.fbGroup:last-child { margin-bottom: 0; }
.fbGroupHead {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 6px;
}
.fbRow {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 7px 10px; margin-bottom: 5px; border-radius: 10px; border: 1px solid transparent;
}
.fbRow.got { background: var(--good-bg); border-color: var(--good-line); color: var(--good-ink); }
.fbRow.missed { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.fbRow.partial { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.fbMark { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.fbLabel { font-size: 14px; font-weight: 600; }
.fbTry { font-size: 13px; margin-top: 2px; color: var(--ink); opacity: 0.85; }
.fbNote { font-size: 13px; margin-top: 2px; color: var(--ink); opacity: 0.75; }
.fbCount.got { color: var(--good-ink); font-weight: 600; }
.fbCount.missed { color: var(--bad-ink); font-weight: 600; }

.fbLead { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.fbKey { padding: 11px 0; border-top: 1px solid var(--line-soft); }
.fbKey .fbLabel { font-size: 15px; }
.fbWhy { font-size: 13px; color: var(--label); margin-top: 4px; line-height: 1.45; }
.fbSub {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-2); margin: 16px 0 2px;
}
.fbStats { display: flex; gap: 18px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.fbStats b { color: var(--ink); font-size: 18px; margin-right: 3px; }
.fbNoteBlock { margin-top: 10px; opacity: 1; color: var(--label); }

@media (max-width: 900px) {
  .fbColumns { grid-template-columns: minmax(0, 1fr); }
  .fbList { position: static; }
  .fbScroll { max-height: 60vh; }
}

/* ---------- spoken consult (prototype) ---------- */
.voiceBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.voiceBar[hidden], .voiceStage[hidden], .voiceCaptions[hidden] { display: none; }
.voiceModes { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--blue-95e); }
.voiceMode {
  border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 7px 18px; border-radius: 999px; cursor: pointer;
}
.voiceMode.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1); }
.voiceCaptions { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--label); cursor: pointer; }
.voiceCaptions input { width: 16px; height: 16px; accent-color: var(--accent); }

.voiceStage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0 16px; }
.voiceOrb {
  width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--accent-soft-line); background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.voiceOrb svg { width: 32px; height: 32px; }
.voiceOrb:hover { transform: scale(1.04); }
.voiceOrb[data-state="listening"] { background: var(--accent); border-color: var(--accent); color: var(--white); animation: voicePulse 1.6s ease-out infinite; }
.voiceOrb[data-state="thinking"] { background: var(--white); border-style: dashed; }
.voiceOrb[data-state="speaking"] { background: var(--good-bg); border-color: var(--good-line); color: var(--good-ink); }
@keyframes voicePulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 99, 255, 0.35); }
  100% { box-shadow: 0 0 0 18px rgba(43, 99, 255, 0); }
}
.voiceStatus { font-size: 15px; font-weight: 600; color: var(--label); text-align: center; }
.voiceHeard { min-height: 20px; font-size: 14px; color: var(--muted); font-style: italic; text-align: center; }

/* Captions off: only the voice. The stage takes the room the chat had. */
.chatCard.voiceNoCaptions .chatLog { display: none; }
.chatCard.voiceNoCaptions .voiceHeard { display: none; }
.chatCard.voiceNoCaptions .voiceStage { padding: 70px 0; }
.chatCard.voiceNoCaptions .voiceOrb { width: 120px; height: 120px; }
.chatCard.voiceNoCaptions .voiceOrb svg { width: 50px; height: 50px; }
@media (prefers-reduced-motion: reduce) { .voiceOrb[data-state="listening"] { animation: none; } }
.chatForm[hidden] { display: none; }
.voiceTiming { min-height: 16px; font-size: 12px; color: var(--muted-2, var(--blue-65)); text-align: center; }
.chatCard.voiceNoCaptions .voiceTiming { display: none; }

/* A microphone under a text box (summary, interpretation). */
.dictateBox { position: relative; }
.dictateBox textarea.hasDictation { padding-bottom: 50px; }
.dictateBtn { position: absolute; right: 10px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--label); background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.dictateBtn:hover { border-color: var(--accent); color: var(--accent); }
.dictateBtn svg { width: 15px; height: 15px; }
.dictateBtn.isOn { background: var(--accent); border-color: var(--accent); color: var(--white); animation: voicePulse 1.6s ease-out infinite; }
.dictateLive { position: absolute; left: 12px; bottom: 16px; right: 120px; font-size: 13px; color: var(--muted); font-style: italic; pointer-events: none; }

/* The line under the microphone. Two wavelengths wider than its window and
   slid sideways, so it runs without a join. */
.voiceWave { width: min(280px, 80%); height: 34px; overflow: hidden; color: var(--line); }
.voiceWave svg { display: block; width: 200%; height: 100%; transform-origin: center; transform: scaleY(0.06); transition: transform 0.25s ease; }
.voiceWave[data-state="quiet"] { color: var(--accent); }
.voiceWave[data-state="quiet"] svg { transform: scaleY(0.12); }
.voiceWave[data-state="student"] { color: var(--accent); }
.voiceWave[data-state="patient"] { color: var(--good-ink); }
.voiceWave[data-state="student"] svg, .voiceWave[data-state="patient"] svg { animation: voiceWaveRun 0.9s linear infinite, voiceWaveSwell 0.7s ease-in-out infinite alternate; }
.voiceWave[data-state="patient"] svg { animation-duration: 1.2s, 0.9s; }
@keyframes voiceWaveRun { from { translate: 0 0; } to { translate: -8.3333% 0; } }
@keyframes voiceWaveSwell { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
.chatCard.voiceNoCaptions .voiceWave { width: min(360px, 86%); height: 44px; }
@media (prefers-reduced-motion: reduce) { .voiceWave svg { animation: none !important; } }
.fbPts { float: right; margin-left: 10px; font-size: 12px; font-weight: 600; opacity: 0.75; white-space: nowrap; }
.requestHint { margin: -2px 0 6px; padding: 8px 12px; font-size: 14px; color: var(--warn-ink, var(--orange-27)); background: var(--warn-bg, #fff6e0); border: 1px solid var(--warn-line, #f0d9a0); border-radius: 10px; }

/* "Back to practice", top left on every admin page. */
.backToPractice { margin-right: 18px; font-size: 14.5px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.backToPractice:hover { text-decoration: underline; }

/* The station brief before each case (Ben, 5 Nov). */
.briefBox { max-width: 520px; }
.briefBox p { margin: 0; line-height: 1.5; }
.briefBox h3 { margin: 6px 0 0; font-size: 15px; }
.briefBox ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.briefActions { display: flex; gap: 10px; justify-content: space-between; margin-top: 10px; }
.briefActions .btn { flex: 1; justify-content: center; }
.btn.briefStart { background: var(--green-36); border-color: var(--green-36); color: var(--white); }
.btn.briefStart:hover { background: var(--green-29); border-color: var(--green-29); }
.btn.briefBack { background: var(--red-51); border-color: var(--red-51); color: var(--white); }
.btn.briefBack:hover { background: var(--red-42); border-color: var(--red-42); }

/* =========================================================================
   After the history: each step is a pop-up over the consult, like the
   station brief (Ben, 5 Nov)
   ========================================================================= */
#phaseClinical:not([hidden]) {
  position: fixed;
  inset: 0;
  /* Every screen is capped at 1000px wide; the backdrop must cover the
     whole window (Ben's wide screen, 5 Nov). */
  width: auto;
  max-width: none;
  z-index: 40;
  background: rgba(11, 16, 32, 0.45);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
#phaseClinical > .card {
  width: 100%;
  max-width: 620px;
  margin: auto 0;
  box-shadow: 0 20px 50px rgba(11, 16, 32, 0.25);
}
#phaseClinical .stepper,
#phaseClinical .findingsArea { display: none; }
#phaseClinical .cardHead h2 { font-size: 18px; line-height: 1.35; }
#phaseClinical .cardHead { align-items: flex-start; gap: 12px; }
#phaseClinical .cardHead .muted { white-space: nowrap; }

.speakPanel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 8px;
  text-align: center;
}
.bigMic {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: var(--accent, var(--blue-58b));
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(43, 99, 255, 0.3);
  transition: transform 0.12s ease, background 0.12s ease;
}
.bigMic svg { width: 38px; height: 38px; }
.bigMic:hover { transform: scale(1.04); }
.bigMic:focus-visible { outline: 3px solid var(--accent, var(--blue-58b)); outline-offset: 3px; }
.bigMic.isOn { background: var(--red-51); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.15); animation: micPulse 1.4s ease-in-out infinite; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0.08); } }
@media (prefers-reduced-motion: reduce) { .bigMic.isOn { animation: none; } }
.bigMicLabel { margin: 0; font-size: 15px; color: var(--muted, var(--blue-46)); }
.micSafariNote { margin: 8px auto 0; max-width: 34em; font-size: 13px; line-height: 1.4; color: var(--muted, var(--blue-46)); text-align: center; }
.typeInstead { margin-top: 4px; }
.summaryBox { width: 100%; box-sizing: border-box; margin-top: 12px; resize: vertical; }

/* Examination findings as a short list */
.findingList { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.findingList li { line-height: 1.45; }

/* The simpler feedback sheet */
.modelSummary { margin: 0; line-height: 1.6; }
.yourSummary { margin-top: 14px; }
.yourSummary p { margin: 4px 0 0; line-height: 1.55; white-space: pre-wrap; }
.heardDdx { margin: 10px 0 0; font-size: 14px; }
.keyCard .keyScript { line-height: 1.55; font-style: normal; color: inherit; }

/* =========================================================================
   The front page's look, site-wide (Ben, 6 Nov): a white page with the faint
   line drawings at the edges (site-art.js adds them), and white boxes lifted
   off it by the front page's soft, wide shadow rather than sitting flat.
   ========================================================================= */
body.siteArt { background: var(--white); }
/* Behind everything, so no page needs its content raised above it. */
.bgArt { z-index: -1; }
.siteArt {
  --lift: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 40px rgba(16, 24, 40, 0.08);
  --head-bg: var(--blue-99);
  --well: var(--blue-99c);
}
.siteArt .card,
.siteArt .patientStrip,
.siteArt .authCard,
.siteArt .panel,
.siteArt .hmRegion {
  border-color: var(--line);
  box-shadow: var(--lift);
}

/* Inside the boxes on the history-taking pages: a soft header strip on each
   box, and pale wells for the chat and the lists, so nothing is white on
   white (Ben, 5 Nov). */
.consultPage .card > .cardHead:first-child {
  margin: -20px -20px 16px;
  padding: 14px 20px;
  background: var(--head-bg);
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius) var(--radius) 0 0;
  align-items: center;
}
.consultPage .chatLog { background: var(--well); border-color: var(--line-soft); }
.consultPage .pt .bubble { background: var(--white); border-color: var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.consultPage .me .bubble { background: #e3ecff; border-color: #cddcff; }
.consultPage .barTrack { background: #e8ecf4; }
.consultPage .markRow { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.consultPage .markRow:last-child { border-bottom: 0; }
.consultPage .keyCard { background: var(--well); border-color: var(--line); }
.consultPage .keyCard.isLeading { background: var(--accent-soft); border-color: var(--accent-soft-line); }
.consultPage .yourSummary { background: var(--well); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.consultPage .fbGroupHead { color: var(--label); }
.cqQuestion { margin: 0 0 12px; font-weight: 600; line-height: 1.5; }
.cqAnswer { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--good-line); background: var(--good-bg); border-radius: var(--radius-sm); }
.cqAnswer p { margin: 4px 0 0; line-height: 1.55; white-space: pre-line; }
.cqFigure { display: block; margin: 0 0 12px; }
.cqAnswer .cqFigure { margin: 12px 0 0; }
.cqFigure img { display: block; width: 100%; height: auto; border: 1px solid var(--line, #d0d7de); border-radius: var(--radius-sm); background: var(--white); }
.cqNotes { margin-top: 10px !important; }
.cqReference { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--good-line); font-size: 0.85em; color: var(--muted, #555); overflow-wrap: anywhere; }
.cqReference span { font-weight: 600; }

/* The model answer that drops down after the summary and the examiner's question. */
.modelReveal { margin-top: 14px; border: 1px solid var(--good-line); background: var(--good-bg); border-radius: var(--radius-sm); }
.modelReveal > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.modelReveal > summary::-webkit-details-marker { display: none; }
.modelReveal > summary::after { content: "▾"; margin-left: auto; transition: transform .15s; }
.modelReveal[open] > summary::after { transform: rotate(180deg); }
.modelReveal[open] > summary { border-bottom: 1px solid var(--good-line); }
.modelRevealBody { padding: 4px 14px 14px; animation: modelDrop .35s ease-out; }
@keyframes modelDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modelRevealBody { animation: none; } }
.modelRevealBody p { margin: 4px 0 12px; line-height: 1.55; }
.modelRevealBody .keyEvidenceHead { margin-top: 10px; }
.revealText { white-space: pre-line; }
.revealDdx { margin: 6px 0 12px; padding-left: 22px; line-height: 1.7; }
.revealLead { font-size: 0.75em; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--good, #1a7f37); margin-left: 6px; }
.revealNote { font-size: 0.85em; color: var(--muted); font-style: italic; margin-bottom: 0 !important; }
.useMic { margin: 10px auto 0; display: flex; gap: 8px; }
.useMic svg { width: 18px; height: 18px; }

/* The smallest phones (iPhone SE, 320px): the site name gives way to the
   buttons, which still didn't fit beside it. */
@media (max-width: 380px) {
  .topbar .brandName { display: none; }
}

/* =========================================================================
   Design refresh (Ben, 8 Nov): refine what's there. One button system, a
   station header that stays in view, a patient with a face, clearer
   bubbles, a navy report card. Everything below overrides the rules above.
   ========================================================================= */
:root {
  --navy: #0e1b2c;
  --navy-2: #16263b;
  --navy-ink: #e6edf7;
  --navy-muted: #9fb0c6;
  --teal: #0f766e;
  --teal-soft: #e3f4f1;
  --teal-line: #b6e2da;
  --display: "Iowan Old Style", "Charter", "Bitstream Charter", "Source Serif Pro", Georgia, "Times New Roman", serif;
}

/* Headings in a quiet serif, like a journal; everything else stays sans. */
.pickTitle, .cardHead h2, .briefBox h2, .rateBox h2, .rcScore span, .rcVerdict h2 { font-family: var(--display); letter-spacing: -0.005em; }
.cardHead h2 { font-weight: 600; font-size: 18px; }

/* One button system: blue fills for the one main action, outlines for the
   rest, red only for something that loses work. */
.btn.secondary { background: var(--card); border-color: var(--field); color: var(--ink-2); }
.btn.secondary:hover { background: var(--blue-97b); border-color: var(--muted-2); }
.btn.briefStart, .btn.briefStart:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn.briefStart:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.briefBack, .btn.briefBack:hover { background: var(--card); border-color: var(--field); color: var(--ink-2); }
.btn.briefBack:hover { background: var(--blue-97b); }
.btn.finishBtn { background: var(--card); border: 1.5px solid var(--ink-2); color: var(--ink-2); }
.btn.finishBtn:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--white); }
.btn:focus-visible, .linkBtn:focus-visible { outline: 3px solid var(--accent-soft-line); outline-offset: 2px; }
.linkBtn { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkBtn:hover { color: var(--ink-2); }

/* The station header stays in view while the consult scrolls. */
body[data-phase="history"] .patientStrip,
body[data-phase="clinical"] .patientStrip { position: sticky; top: 10px; z-index: 20; box-shadow: 0 6px 18px rgba(14, 27, 44, 0.06); }
.patientStrip .avatar { background: linear-gradient(135deg, var(--blue-58), var(--teal)); color: var(--white); border: 0; }

/* Clearer turns: the student's questions filled, the patient's answers
   outlined, each answer with the patient's initial beside it. */
.chatLog, .consultPage .chatLog { background: #f8f9fc; }
.me .bubble, .consultPage .me .bubble { background: var(--accent); border-color: var(--accent); color: var(--white); border-bottom-right-radius: 5px; }
.pt .bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(14, 27, 44, 0.04); }
.msg.pt { gap: 8px; align-items: flex-end; }
.msgAvatar { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--white); background: linear-gradient(135deg, var(--blue-58), var(--teal)); }
.msg { animation: msgIn 0.22s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* The patient is replying. */
.typingRow .bubble { display: inline-flex; gap: 4px; padding: 13px 14px; }
.typingRow .bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: typingDot 1.2s infinite; }
.typingRow .bubble i:nth-child(2) { animation-delay: 0.15s; }
.typingRow .bubble i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .msg, .typingRow .bubble i, .rcScore, .rcRing { animation: none !important; }
}

/* ---------- the report card ---------- */
.rc { display: flex; flex-direction: column; gap: 16px; }
.rcHero {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: var(--navy); color: var(--navy-ink); border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 14px 34px rgba(14, 27, 44, 0.18);
}
.rcScore { position: relative; width: 104px; height: 104px; }
.rcScore svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rcScore circle { fill: none; stroke-width: 8; }
.rcTrack { stroke: rgba(255, 255, 255, 0.12); }
.rcRing { stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--off); animation: rcFill 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.rcRing.great, .rcRing.good { stroke: var(--green-60); }
.rcRing.ok { stroke: #f1b552; }
.rcRing.low { stroke: #ff8a8f; }
@keyframes rcFill { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--off); } }
.rcScore span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 600; color: var(--white); }
.rcCaption { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-muted); margin-bottom: 6px; }
.rcGradeRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rcGrade { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 10px; border-radius: 7px; }
.rcGrade.great, .rcGrade.good { background: rgba(95, 211, 148, 0.16); color: var(--green-69); }
.rcGrade.ok { background: rgba(241, 181, 82, 0.16); color: #f6c877; }
.rcGrade.low { background: rgba(255, 138, 143, 0.16); color: #ffa3a7; }
.rcMeta { font-size: 13.5px; color: var(--navy-muted); }
.rcVerdict p { margin: 8px 0 0; color: var(--blue-84); font-size: 15px; line-height: 1.5; }
.rcHeroActions { display: flex; flex-direction: column; gap: 8px; }
.btn.onNavy { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: var(--navy-ink); }
.btn.onNavy:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); color: var(--white); }

.rcTwo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rcPanel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.rcPanel h3 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; }
.rcPanel.well h3 { color: var(--good-ink); }
.rcPanel.fix h3 { color: var(--bad-ink); }
.rcPanel ul, .rcPanel ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.rcPanel.well { border-top: 3px solid #36b37e; }
.rcPanel.fix { border-top: 3px solid var(--red-59); }
.rcPts { font-size: 12px; color: var(--muted); font-weight: 500; }
.rcTry { display: block; margin-top: 3px; color: var(--accent-dark); font-size: 13.5px; }

.rcTabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-top: 4px; }
.rcTab { background: none; border: 0; border-bottom: 2.5px solid transparent; padding: 10px 14px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.rcTab:hover { color: var(--ink-2); }
.rcTab.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.rcTabPanel { display: flex; flex-direction: column; gap: 16px; }
.rcTabPanel[hidden] { display: none; }
/* The checklist reads as part of the page, not a box that scrolls on its own. */
.rc .fbScroll { max-height: none; overflow: visible; }
.rcBars { display: flex; flex-direction: column; gap: 4px; }
.rcBar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 2fr) auto; gap: 16px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.rcBar:last-child { border-bottom: 0; }
.rcBarTrack { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.rcBarFill { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.rcBarScore { font-variant-numeric: tabular-nums; color: var(--muted); }
.rcBarScore b { color: var(--ink); }
.rcTranscript { display: flex; flex-direction: column; gap: 12px; }
.rcTurn { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14.5px; }
.rcTurnN { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.rcQ { font-weight: 600; }
.rcA { color: var(--label); margin-top: 2px; }
.rcRate .rateStars { margin: 4px 0 12px; }
.rcActions {
  position: sticky; bottom: 0; z-index: 15; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  padding: 12px 14px; margin: 0 -2px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -6px 20px rgba(14, 27, 44, 0.06);
}
.rcActions .btn.secondary:first-child { margin-right: auto; }

@media (max-width: 720px) {
  .rcHero { grid-template-columns: auto 1fr; padding: 18px; gap: 16px; }
  .rcHeroActions { grid-column: 1 / -1; flex-direction: row; }
  .rcHeroActions .btn { flex: 1; justify-content: center; }
  .rcScore { width: 84px; height: 84px; }
  .rcScore span { font-size: 28px; }
  .rcTwo { grid-template-columns: 1fr; }
  .rcBar { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .rcBarTrack { grid-column: 1 / -1; grid-row: 2; }
  .rcActions { justify-content: stretch; }
  .rcActions .btn { flex: 1 1 100%; justify-content: center; }
  .rcActions .btn.secondary:first-child { margin-right: 0; }
}

/* ---------- the examiner's steps ---------- */
.examinerSays { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.summaryGuide { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.summaryGuideHead { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; width: 100%; }
.guideChip { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--field); color: var(--muted); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.guideChip.done { border-style: solid; border-color: var(--good-line); background: var(--good-bg); color: var(--good-ink); }
.guideChip.done::before { content: "✓ "; }
.stepClock { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; margin-left: 10px; flex: none; }
.stepClock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.stepClock circle { fill: none; stroke-width: 3.2; }
.scTrack { stroke: var(--line); }
.scArc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.stepClock b { position: relative; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.stepClock.low .scArc { stroke: var(--red-59); }
.stepClock.low b { color: var(--bad-ink); }
.linkBtn.stepSkip { display: block; margin: 10px auto 0; }

/* ---------- voice: two seats ---------- */
.voiceSeats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 460px; margin: 0 auto 14px; }
.voiceSeat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color 0.25s, box-shadow 0.25s, opacity 0.25s; opacity: 0.72; }
.seatAvatar { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--white); background: linear-gradient(135deg, var(--blue-58), var(--teal)); }
.seatAvatar.you { background: var(--ink-2); font-size: 13px; }
.seatName { font-size: 13px; color: var(--muted); }
.seatBars { display: flex; gap: 3px; height: 20px; align-items: center; }
.seatBars i { width: 4px; height: 4px; border-radius: 2px; background: var(--line); }
.seatDots { display: none; gap: 4px; height: 20px; align-items: center; }
.seatDots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: typingDot 1.2s infinite; }
.seatDots i:nth-child(2) { animation-delay: 0.15s; } .seatDots i:nth-child(3) { animation-delay: 0.3s; }
.voiceStage[data-speaker="student"] [data-seat="student"],
.voiceStage[data-speaker="patient"] [data-seat="patient"],
.voiceStage[data-speaker="thinking"] [data-seat="patient"] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.voiceStage[data-speaker="patient"] [data-seat="patient"] { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.voiceStage[data-speaker="student"] [data-seat="student"] .seatBars i { background: var(--accent); animation: seatBar 0.9s ease-in-out infinite; }
.voiceStage[data-speaker="patient"] [data-seat="patient"] .seatBars i { background: var(--teal); animation: seatBar 1.1s ease-in-out infinite; }
.voiceStage[data-speaker="patient"] [data-seat="patient"] .seatAvatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--teal); animation: seatRing 1.4s ease-out infinite; }
.voiceStage[data-speaker="thinking"] [data-seat="patient"] .seatBars { display: none; }
.voiceStage[data-speaker="thinking"] [data-seat="patient"] .seatDots { display: flex; }
.seatBars i:nth-child(2) { animation-delay: 0.1s !important; } .seatBars i:nth-child(3) { animation-delay: 0.2s !important; }
.seatBars i:nth-child(4) { animation-delay: 0.3s !important; } .seatBars i:nth-child(5) { animation-delay: 0.4s !important; }
@keyframes seatBar { 0%, 100% { height: 5px; } 50% { height: 18px; } }
@keyframes seatRing { from { transform: scale(0.92); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .seatBars i, .seatDots i, .seatAvatar::after { animation: none !important; } }

/* ---------- one top bar ---------- */
.navLink { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.navLink:hover { background: var(--line-soft); color: var(--ink); }
.navLink.is-current { color: var(--accent); background: var(--accent-soft); }
.userChip { display: inline-flex; align-items: center; gap: 8px; }
.userChip #userName { font-size: 13.5px; color: var(--muted); }
/* In the station, only the way out. */
body[data-phase="history"] .topActions > :not(#changeCaseBtn),
body[data-phase="clinical"] .topActions > :not(#changeCaseBtn) { display: none !important; }
@media (max-width: 640px) {
  .navLink { padding: 6px 7px; font-size: 13px; }
  .userChip #userName, .userChip .userYear { display: none; }
}

/* ---------- my progress ---------- */
.progressSummary { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.progressSummary:empty { display: none; }
.pgGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pgGrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgCard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pgGoal { background: var(--navy); border-color: var(--navy); color: var(--navy-ink); }
.pgLabel { font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.pgGoal .pgLabel, .pgGoal .pgNote { color: var(--navy-muted); }
.pgBig { font-family: var(--display); font-size: 34px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pgBig span { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.pgGoal .pgBig span { color: var(--navy-muted); }
.pgNote { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.pgTrack { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; margin-top: 10px; }
.pgTrack > span { display: block; height: 100%; border-radius: 4px; background: var(--green-60); }
.pgTrack.small { background: var(--line-soft); margin: 0; flex: 1; height: 7px; }
.pgTrack.small > span { background: var(--accent); }
.pgCases { display: flex; flex-direction: column; }
.pgCase { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.pgCase:last-child { border-bottom: 0; }
.pgCaseName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgCaseBest { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.spark { width: 96px; height: 28px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--accent); }
.sparkOne { font-size: 13px; color: var(--muted); }
.pgWeak { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); }
.pgWeak:last-child { border-bottom: 0; }
.pgWeak > span:first-child { flex: 0 0 46%; }
.pgWeak b { font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
@media (max-width: 720px) {
  .pgGrid, .pgGrid.two { grid-template-columns: 1fr; }
}

/* ---------- home: weekly goal, coming soon ---------- */
.hmWeek { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.hmWeek:hover { border-color: var(--accent); }
.hmStreak { font-size: 12.5px; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 3px 8px; border-radius: 999px; }
.hmSoonLine { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.hmHeld { white-space: nowrap; }

/* ---------- reading a marked history back ---------- */
.reviewBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-soft-line); font-size: 14px; color: var(--ink-2); }
body[data-review="1"] .chatForm,
body[data-review="1"] .finishRow,
body[data-review="1"] #voiceBar,
body[data-review="1"] #voiceStage,
body[data-review="1"] #resetBtn,
body[data-review="1"] .stageNote { display: none !important; }
body[data-review="1"] .stationClock { pointer-events: none; }
body[data-review="1"] .topActions > :not(#changeCaseBtn):not([hidden]) { display: inline-flex !important; }
body[data-review="1"] #changeCaseBtn { display: none !important; }
.pgEmpty { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--navy); color: var(--navy-ink); border-radius: var(--radius); padding: 22px 24px; }
.pgEmpty h2 { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 4px 0 6px; }
.pgEmpty p { margin: 0; max-width: 560px; color: var(--blue-84); font-size: 14.5px; line-height: 1.55; }
.pgEmpty .pgLabel { color: var(--navy-muted); }

/* ---------- the OSCE date ---------- */
.hmExam { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; font: inherit; font-size: 13.5px; text-align: left; color: var(--ink-2); padding: 7px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.hmExam b { font-weight: 600; color: var(--ink); }
.hmExam span { font-size: 12.5px; color: var(--muted); }
.hmExam:hover { border-color: var(--accent); }
.hmExam.add { flex-direction: row; color: var(--accent-dark); border-style: dashed; font-weight: 600; }
.hmExamForm { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hmExamForm input { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--field); border-radius: 10px; background: var(--card); color: var(--ink); }
.hmExamMsg { font-size: 13px; color: var(--bad-ink); }
.modelLines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--label); }
.modelLines li { padding-left: 14px; position: relative; }
.modelLines li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.modelLines li.lead { padding-left: 0; font-weight: 600; color: var(--ink); }
.modelLines li.lead::before { display: none; }

/* ---------- the examiner's pop-up, tidied (Ben, 9 Nov) ---------- */
#phaseClinical > .card { min-width: 0; padding: 0; overflow: hidden; }
#phaseClinical .cardHead {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; row-gap: 4px; align-items: center;
  margin: 0; padding: 26px 30px 24px; border-bottom: 1px solid var(--line-soft); background: var(--card);
}
#phaseClinical #stepProgress { grid-column: 1; grid-row: 1; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#phaseClinical #stepTitle { grid-column: 1; grid-row: 2; font-size: 19px; line-height: 1.3; }
#phaseClinical .stepClock { grid-column: 2; grid-row: 1 / 3; margin: 0; width: 52px; height: 52px; }
#phaseClinical .stepClock b { font-size: 12.5px; }
#stepBody { padding: 24px 30px; }
#phaseClinical .stepActions { margin: 0; padding: 20px 30px 24px; gap: 20px; align-items: center; justify-content: flex-start; }
#phaseClinical .stepActions #stepSubmitBtn { margin-left: auto; }
/* Retain the hook used by app.js, without offering a return to the history. */
#phaseClinical #stepBackBtn { display: none; }
#phaseClinical .stepActions .stepSkip { display: none; }
#phaseClinical .stepActions .stepSkip[hidden] { display: none; }
#phaseClinical .stepActions #stepBackBtn[hidden] + .stepSkip { margin-left: 0; }

.summaryGuide { gap: 6px; margin: 0 0 6px; }
.summaryGuideHead { width: auto; font-size: 11.5px; margin-right: 2px; }
.guideChip { border: 1px solid var(--line); background: var(--bg); font-size: 12.5px; padding: 4px 10px; }
.guideChip.done { border-color: var(--good-line); }

.speakPanel { flex-direction: column; justify-content: center; text-align: center; gap: 20px; padding: 20px 0; }
.speakPanel[hidden] { display: none; }
/* Match the history microphone's pill, palette and listening state. */
#phaseClinical .bigMic {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: auto; min-width: 212px; max-width: 100%; height: 52px; padding: 0 24px;
  border-radius: 26px; background: #deedfc; color: #173e70;
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .01em;
  box-shadow: none; animation: none; transition: background-color .25s ease, color .25s ease;
}
#phaseClinical .bigMic::after { content: attr(aria-label); }
#phaseClinical .bigMic:hover { background: #eef6fe; transform: none; }
#phaseClinical .bigMic.isOn { background: #b5f2df; color: #124e43; }
#phaseClinical .bigMic svg { width: 20px; height: 20px; flex: none; }
.speakText { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.speakText .bigMicLabel { font-size: 15px; color: var(--ink-2); }
.speakText .typeInstead { margin: 0; padding: 2px 0; }
.speakText .micSafariNote { margin: 6px 0 0; text-align: center; }
.useMic { margin-top: 10px; }
.summaryBox { margin-top: 10px; }

@media (max-width: 640px) {
  #phaseClinical .cardHead { padding: 22px 20px; }
  #stepBody { padding: 20px; }
  #phaseClinical .stepActions { flex-direction: row; flex-wrap: wrap; padding: 18px 20px 22px; }
  #phaseClinical .stepActions #stepSubmitBtn { flex: 1 1 100%; order: -1; justify-content: center; }
  #phaseClinical .stepActions .stepSkip { margin-left: auto; }
}
.linkBtn.useMic { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; }
.linkBtn.useMic[hidden] { display: none; }
.linkBtn.useMic svg { width: 15px; height: 15px; }

/* ---------- feedback tabs as one clear segmented bar (Ben, 9 Nov) ---------- */
.rcTabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 12px; background: var(--blue-95c); overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
.rcTabs::-webkit-scrollbar { display: none; }
.rcTab { flex: 1 0 auto; border: 0; border-radius: 9px; padding: 9px 14px; font-size: 14px; font-weight: 500; color: var(--label); background: transparent; transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.rcTab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.rcTab.on { color: var(--ink); background: var(--card); font-weight: 600; box-shadow: 0 1px 3px rgba(14, 27, 44, 0.12), 0 0 0 1px rgba(14, 27, 44, 0.04); border-color: transparent; }
.rcTab:focus { outline: none; }
.rcTab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 640px) { .rcTab { flex: 0 0 auto; padding: 8px 12px; font-size: 13.5px; } }

/* Ben's approved Balanced examiner popup (14 Nov). Shared countdown UI;
   the answer box, rather than conversation captions, displays dictation. */
#phaseClinical .cardHead { padding: 28px 30px 24px; }
#phaseClinical #stepTitle { font-size: 23px; line-height: 1.35; }
#phaseClinical .examinerVoicePanel { gap: 17px; padding: 14px 0; }
#phaseClinical .examinerVoicePanel .bigMic::after { content: none; }
#phaseClinical .examinerTimingHint { margin: 0; color: var(--muted); font-size: 14px; }
#phaseClinical .examinerVoicePanel .bigMicLabel { margin: 0; color: var(--ink-2); font-size: 14px; }
#phaseClinical .examinerVoicePanel .bigMicLabel:empty { display: none; }
#phaseClinical .examinerVoicePanel .bigMic.cvPill { min-width: 230px; height: 54px; font-weight: 500; }
#phaseClinical .examinerVoicePanel .bigMic[data-pill="listening"] { background: #b5f2df; color: #124e43; }
#phaseClinical .examinerVoicePanel .cvLabel { white-space: nowrap; font-variant-numeric: tabular-nums; }
#phaseClinical .examinerVoicePanel .cvSegs,
#phaseClinical .examinerVoicePanel .cvBars { display: inline-flex; align-items: center; gap: 4px; }
#phaseClinical .examinerVoicePanel .cvSegs i { width: 15px; height: 5px; border-radius: 3px; background: #a4cbee66; }
#phaseClinical .examinerVoicePanel .cvSegs i.on { background: #173e70; }
#phaseClinical .examinerVoicePanel .cvBars { height: 16px; gap: 3px; }
#phaseClinical .examinerVoicePanel .cvBars i { width: 3px; height: 6px; border-radius: 2px; background: currentColor; animation: cvLevel .8s ease-in-out infinite alternate; }
#phaseClinical .examinerVoicePanel .cvBars i:nth-child(2) { animation-delay: -.3s; }
#phaseClinical .examinerVoicePanel .cvBars i:nth-child(3) { animation-delay: -.55s; }
#phaseClinical .examinerVoicePanel .typeInstead { margin: 0; }
#phaseClinical .linkBtn.useMic { display: flex; width: fit-content; margin: 16px auto 0; }
#phaseClinical .stepActions { justify-content: flex-end; }
@media (max-width: 640px) {
  #phaseClinical .cardHead { padding: 24px 20px; }
  #phaseClinical #stepTitle { font-size: 21px; }
  #phaseClinical .examinerVoicePanel { padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  #phaseClinical .examinerVoicePanel .cvBars i { animation: none; height: 10px; }
}
