:root {
  color-scheme: light;
  --navy-950: #06283d;
  --navy-900: #083b5c;
  --navy-800: #0b4a70;
  --sky-500: #1496d4;
  --accent: var(--sky-500);
  --sky-100: #dff3fc;
  --amber-500: #e8a317;
  --amber-100: #fff4d6;
  --red-600: #c83d4f;
  --green-700: #237a57;
  --ink: #17232d;
  --muted: #607180;
  --line: #d8e0e6;
  --panel: #ffffff;
  --panel-soft: #f1f7fa;
  --page: #edf2f5;
  --shadow: 0 12px 32px rgba(6, 40, 61, 0.11);
}

* {
  box-sizing: border-box;
}

.builder-shared-scope{margin-block:12px 18px}
.builder-shared-scope>p{color:var(--muted);line-height:1.5;font-size:.9rem}
.builder-shared-scope>details{margin-top:12px}
.builder-scope>.builder-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.builder-scope>.builder-fields{grid-template-columns:1fr}}

/* Native disclosures use the whole heading row for pointer and keyboard input. */
:where(details > summary) { display:list-item; width:100%; min-height:44px; padding:8px 4px; cursor:pointer; line-height:1.5; }
:where(details > summary):hover { background:var(--panel-soft); border-radius:6px; }
:where(details > summary):focus-visible { outline:2px solid var(--sky-500); outline-offset:2px; border-radius:6px; }

html {
  min-height: 100%;
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, #e4edf2 0, var(--page) 220px),
    var(--page);
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
.choice-hit:focus-visible {
  outline: 3px solid rgba(20, 150, 212, 0.35);
  outline-offset: 2px;
}

.shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 52px);
  color: white;
  background: var(--navy-950);
  border-bottom: 4px solid var(--sky-500);
}

.brand-kicker {
  margin: 0 0 2px;
  color: #8bd4f4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-title {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 720;
  letter-spacing: -0.01em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(139, 212, 244, 0.45);
  border-radius: 999px;
  color: #bfe9fb;
  background: rgba(20, 150, 212, 0.12);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #d9f2fc;
  font-size: 0.85rem;
  white-space: nowrap;
}

.header-chip::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  content: "";
}

.workspace {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) 0 56px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(8, 59, 92, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.start-card {
  overflow: hidden;
}

.start-heading {
  padding: clamp(24px, 5vw, 42px);
  background:
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.22), transparent 31%),
    linear-gradient(145deg, #083b5c, #06283d);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: #326e89;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.start-heading h1,
.results-heading h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.start-heading p {
  max-width: 680px;
  margin: 15px 0 0;
  color: #d6e9f2;
  font-size: 1rem;
  line-height: 1.55;
}

.start-body {
  padding: clamp(22px, 4vw, 36px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.fact {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
}

.fact strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 1.35rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 40px 0 13px;
  border: 1px solid #bcc9d2;
  border-radius: 9px;
  color: var(--ink);
  background: var(--panel);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #b9cad5;
  color: var(--ink);
  background: var(--panel);
  border-radius: 9px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

/* Author button styles must not override the image recovery hidden state. */
[data-shared-source-image] [hidden] {
  display: none !important;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: transparent;
  color: white;
  background: var(--sky-500);
  box-shadow: 0 8px 18px rgba(20, 150, 212, 0.22);
}

.button-primary:hover {
  background: #0e86bf;
}

.button-secondary {
  color: var(--ink);
  border-color: #b9cad5;
  background: var(--panel);
}

.button-danger {
  border-color: transparent;
  color: white;
  background: var(--red-600);
}

.button-quiet {
  min-height: 38px;
  padding: 7px 11px;
  color: var(--ink);
  border-color: #cad5dc;
  background: var(--panel-soft);
  font-size: 0.88rem;
}

/* Backup actions retain a full touch target alongside compact utility controls. */
#export-backup,
#import-backup {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
}

.resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #8bcce8;
  border-radius: 11px;
  background: var(--sky-100);
}

.resume-banner strong,
.resume-banner span {
  display: block;
}

.resume-banner span {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.88rem;
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.side-card {
  padding: 22px;
}

.side-card + .side-card {
  margin-top: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.03rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #8a5a00;
  background: var(--amber-100);
  font-size: 0.75rem;
  font-weight: 800;
}

.baseline-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.mini-stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.18rem;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.79rem;
}

.attempt-list {
  display: grid;
  gap: 9px;
}

.attempt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: inherit;
  background: var(--panel-soft);
  text-align: left;
}

.attempt-row:hover {
  border-color: #84bfd9;
  background: var(--panel-soft);
}

.attempt-row strong,
.attempt-row span {
  display: block;
}

.attempt-row span,
.attempt-score small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.attempt-score {
  color: var(--ink);
  font-weight: 820;
  text-align: right;
}

.utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #bdcbd4;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

/* Exam surface */
.exam-shell {
  min-height: 100vh;
  background: var(--panel-soft);
}

.exam-header {
  position: sticky;
  z-index: 30;
  top: 0;
  color: white;
  background: var(--navy-900);
  box-shadow: 0 4px 16px rgba(6, 40, 61, 0.22);
}

.exam-header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: max(9px, env(safe-area-inset-top)) clamp(16px, 3vw, 34px) 9px;
}

.exam-item-label,
.exam-name,
.timer-label,
.timer {
  display: block;
}

.exam-item-label,
.timer-label {
  color: #b9d6e4;
  font-size: 0.76rem;
  font-weight: 700;
}

.exam-name {
  font-size: 0.95rem;
  font-weight: 760;
  text-align: center;
}

.timer-wrap {
  text-align: right;
}

.timer-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pause-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 7px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 760;
}

.pause-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}

.timer.warning {
  color: #ffd98a;
}

.exam-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.13);
}

.exam-progress span {
  display: block;
  height: 100%;
  background: var(--sky-500);
  transition: width 180ms ease;
}

.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 24px;
  align-items: start;
}

.exam-layout.navigator-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.exam-layout.navigator-hidden .navigator {
  display: none;
}

.question-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid #d5dee4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(6, 40, 61, 0.08);
}

.question-tools {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.question-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reading-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navigator-toggle {
  display: inline-flex;
  margin-right: 4px;
}

.pause-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 27, 42, 0.76);
  backdrop-filter: blur(6px);
}

.pause-card {
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.pause-card .eyebrow {
  color: var(--sky-500);
}

.pause-card h2 {
  margin: 0;
  color: var(--ink);
}

.pause-card p:not(.eyebrow) {
  margin: 10px 0 22px;
  color: var(--muted);
}

.zoom-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.zoom-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #c5d1d8;
  border-radius: 7px;
  color: var(--ink);
  background: var(--panel);
  font-size: 1.2rem;
  font-weight: 760;
  line-height: 1;
}

.zoom-button:disabled {
  color: #9aa7af;
  background: var(--panel-soft);
  cursor: default;
}

.zoom-value {
  min-width: 48px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
}

.mark-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 720;
}

.mark-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--amber-500);
}

.question-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.question-scroll {
  overflow-x: auto;
  padding: clamp(12px, 2vw, 22px);
  scroll-padding: 24px;
}

.question-stage {
  position: relative;
  width: 100%;
  min-width: 720px;
  margin: 0 auto;
  line-height: 0;
}

.question-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.native-question-stage {
  min-width: 0;
  max-width: 980px;
  line-height: 1.5;
}

.native-question-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 10px;
  padding: clamp(18px, 3vw, 34px);
  color: var(--ink);
  font-size: calc(1rem * var(--native-question-scale, 1));
}

.native-question-number,
.native-question-stem {
  white-space: pre-wrap;
  margin: 0;
  font-weight: 650;
  line-height: 1.62;
}

.native-choice-list {
  grid-column: 2;
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.native-choice-row {
  display: grid;
  grid-template-columns: 24px 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.45;
}

.native-choice-row.selected {
  border-color: #9bd3ea;
  background: var(--panel-soft);
}

.native-choice-row .native-choice-hit {
  position: static;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  transform: none;
  box-shadow: none !important;
}

.native-choice-row .native-choice-hit:hover,
.native-choice-row .native-choice-hit:checked {
  box-shadow: none !important;
}

.native-choice-row.correct {
  border-color: #91cfb2;
  background: var(--panel-soft);
}

.native-choice-row.eliminated {
  border-color: #e7aab2;
  background: #fff2f4;
  color: #8c3440;
}

.native-choice-row:has(input:disabled) {
  cursor: default;
}

.choice-hit {
  position: absolute;
  width: clamp(18px, 1.55vw, 22px);
  height: clamp(18px, 1.55vw, 22px);
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  appearance: none;
  border: 2px solid #9aa8b2;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 0 0 16px white;
  cursor: pointer;
  z-index: 2;
}

.choice-row-hit {
  position: absolute;
  left: 1%;
  right: 1%;
  height: max(34px, 5.25%);
  transform: translateY(-50%);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1;
}

.choice-row-hit:hover {
  background: rgba(20, 150, 212, 0.08);
}

.choice-row-hit.disabled {
  pointer-events: none;
}

.choice-hit:focus-visible {
  outline: 2px solid var(--sky-500);
  outline-offset: 3px;
}

.choice-hit:checked {
  border: 5px solid var(--sky-500);
  background: var(--panel);
}

.question-footer {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  background: var(--panel-soft);
}

.question-load-status { flex-basis: 100%; color: var(--muted); font-size: 0.875rem; }
.question-load-status:empty { display: none; }

.simulation-question-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.question-footer-simulation { justify-content: flex-end; }

.block-review-workspace {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) 0;
}

.block-review-card {
  padding: clamp(22px, 4vw, 38px);
}

.block-review-card h1 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.block-review-summary {
  margin: 0 0 22px;
  color: var(--muted);
}

.block-review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.review-pool-button {
  min-height: 108px;
  padding: 18px;
  border: 1px solid #b9cbd5;
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.review-pool-button:hover:not(:disabled) {
  border-color: var(--sky-500);
  background: var(--panel-soft);
}

.review-pool-button:disabled {
  opacity: 0.52;
  cursor: default;
}

.review-pool-button strong,
.review-pool-button span {
  display: block;
}

.review-pool-button strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.review-pool-button span {
  color: var(--muted);
}

.block-review-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 680px) {
  .block-review-actions { grid-template-columns: 1fr; }
  .block-review-footer { align-items: stretch; flex-direction: column; }
}

.nav-pair {
  display: flex;
  gap: 8px;
}

.navigator {
  position: sticky;
  top: 86px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid #d5dee4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(6, 40, 61, 0.08);
}

.navigator-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.navigator-title strong {
  color: var(--ink);
}

.navigator-title span {
  color: var(--muted);
  font-size: 0.78rem;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.qnav {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid #c8d3da;
  border-radius: 7px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 0.82rem;
  font-weight: 740;
}

.qnav:hover:not(:disabled) {
  border-color: var(--sky-500);
}

.qnav.answered {
  color: white;
  border-color: var(--navy-800);
  background: var(--navy-800);
}

.qnav.marked::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 2px white;
  content: "";
}

.qnav.current {
  outline: 3px solid rgba(20, 150, 212, 0.35);
  outline-offset: 1px;
}

.qnav:disabled {
  color: var(--muted);
  border-style: dashed;
  background: var(--panel-soft);
  cursor: not-allowed;
}

.qnav.locked {
  color: var(--muted);
  border-style: solid;
  background: repeating-linear-gradient(135deg, #eef1f3, #eef1f3 5px, #e2e8ec 5px, #e2e8ec 10px);
}

.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.74rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 10px;
  height: 10px;
  border: 1px solid #b7c4cc;
  border-radius: 3px;
  background: var(--panel-soft);
}

.legend .legend-answered {
  border-color: var(--navy-800);
  background: var(--navy-800);
}

.legend .legend-marked {
  border-color: var(--amber-500);
  border-radius: 50%;
  background: var(--amber-500);
}

.keyboard-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

/* Results */
.results-heading {
  padding: 28px clamp(24px, 5vw, 42px);
  color: white;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-950));
  border-radius: 16px 16px 0 0;
}

.results-heading p {
  margin: 12px 0 0;
  color: #d6e9f2;
}

.results-body {
  padding: clamp(20px, 4vw, 36px);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.pending-callout {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #e8c470;
  border-radius: 10px;
  color: #704c08;
  background: var(--amber-100);
  line-height: 1.48;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.attempt-passes-card {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #9fcddd;
  border-radius: 12px;
  background: linear-gradient(145deg, #f7fcfe, #eef8fb);
}

.attempt-passes-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.attempt-passes-head h2,
.attempt-passes-head p {
  margin: 0;
}

.attempt-passes-head h2 {
  color: var(--ink);
  font-size: 1.15rem;
}

.attempt-passes-head > p {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.attempt-pass-list {
  display: grid;
  gap: 8px;
}

.attempt-pass-row {
  display: grid;
  grid-template-columns: 34px minmax(180px, 1.4fr) repeat(4, minmax(100px, 0.75fr));
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #cfdee5;
  border-radius: 10px;
  background: var(--panel);
}

.attempt-pass-row > span:not(.attempt-pass-name):not(.attempt-pass-number) {
  text-align: center;
}

.attempt-pass-row strong,
.attempt-pass-row small {
  display: block;
}

.attempt-pass-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.attempt-pass-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy-800);
  font-weight: 800;
}

.attempt-passes-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.review-progress-card {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #c8d8e1;
  border-radius: 12px;
  background: linear-gradient(145deg, #f7fbfd, #eef6fa);
}

.review-progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.review-progress-head h2,
.review-progress-head p {
  margin: 0;
}

.review-progress-head h2 {
  color: var(--ink);
  font-size: 1.15rem;
}

.review-progress-head > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.review-pass-list {
  display: grid;
  gap: 8px;
}

.review-pass-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.review-pass-retake {
  align-self: stretch;
  min-width: 112px;
  white-space: nowrap;
}

.review-pass-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(210px, 1.7fr) repeat(5, minmax(86px, 0.65fr));
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #cfdae0;
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
}

.review-pass-row:hover {
  border-color: #7eabbf;
  box-shadow: 0 4px 14px rgba(9, 56, 80, 0.08);
}

.review-pass-row > span:not(.review-pass-identity) {
  text-align: center;
}

.review-pass-row strong,
.review-pass-row small {
  display: block;
}

.review-pass-row strong {
  color: var(--ink);
  font-size: 1rem;
}

.review-pass-identity strong {
  font-size: 0.96rem;
}

.review-pass-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.25;
}

.review-pass-percent strong {
  font-size: 1.25rem;
}

.review-pass-gain strong {
  color: var(--green-700);
}

.review-progress-empty {
  padding: 16px;
  border: 1px dashed #b7c8d1;
  border-radius: 9px;
  color: var(--muted);
  background: var(--panel);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.review-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.review-table th,
.review-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.review-table th {
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-table tbody tr:last-child td {
  border-bottom: 0;
}

.review-table tbody tr:hover {
  background: var(--panel-soft);
}

.answer-locked {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.result-question-row {
  cursor: pointer;
}

.result-question-row:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: -3px;
}

.review-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.review-choice-sequence {
  display: flex;
  align-items: center;
  gap: 4px;
}

.choice-sequence-arrow {
  color: var(--muted);
  font-weight: 800;
}

.attempt-answer-path {
  min-width: 150px;
}

.attempt-choice-sequence {
  display: flex;
  align-items: center;
  gap: 4px;
}

.attempt-choice-badge {
  display: inline-flex;
  min-width: 28px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 7px;
  background: #42677a;
  color: white;
  font-weight: 800;
}

.attempt-choice-badge.correct {
  background: var(--green-700) !important;
}

.attempt-choice-badge.incorrect {
  background: var(--red-600) !important;
}

.attempt-choice-badge.locked {
  background: #42677a;
}

.attempt-choice-badge[data-answer-state="correct"],
.review-timeline-item[data-answer-state="correct"] {
  background: var(--green-700) !important;
  color: #fff !important;
}

.attempt-choice-badge[data-answer-state="incorrect"],
.review-timeline-item[data-answer-state="incorrect"] {
  background: var(--red-600) !important;
  color: #fff !important;
}

.attempt-choice-badge[data-answer-state="locked"] {
  background: #42677a !important;
  color: #fff !important;
}

.attempt-outcome {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 750;
}

.attempt-outcome.improved {
  color: var(--green-700);
}

.attempt-outcome.harmed {
  color: var(--red-600);
}

.attempt-outcome.neutral {
  color: var(--muted);
}

.timing-detail {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.review-timeline-item {
  display: inline-flex;
  min-width: 34px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 6px;
  border-radius: 7px;
  color: white;
  font-weight: 800;
}

.review-timeline-item.correct {
  background: var(--green-700) !important;
}

.review-timeline-item.incorrect {
  background: var(--red-600) !important;
}

.review-timeline-item small {
  font-size: 0.58rem;
  opacity: 0.82;
}

.review-timeline-empty {
  color: var(--muted);
}

.answer-badge {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--ink);
  background: var(--panel-soft);
  font-weight: 820;
}

.answer-badge.blank {
  color: var(--muted);
  background: var(--panel-soft);
}

.answer-badge.correct {
  color: white;
  background: var(--green-700);
}

.answer-badge.incorrect {
  color: white;
  background: var(--red-600);
}

.comparison-change {
  color: #9b5e00;
  font-weight: 760;
}

.comparison-same {
  color: var(--green-700);
  font-weight: 760;
}

/* Learning review */
.review-workspace {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 0 38px;
}

.review-shell .topbar {
  min-height: 46px;
  padding: 6px clamp(16px, 3vw, 34px);
  border-bottom-width: 3px;
}

.review-shell .brand-kicker {
  display: none;
}

.review-shell .brand-title {
  font-size: 0.94rem;
}

.review-shell .header-chip {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 0.76rem;
}

.review-shell .version-chip {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.69rem;
}

.blind-rechallenge-banner,
.retrieval-pass-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  padding: 9px 12px;
  border: 1px solid #8fc5dd;
  border-radius: 10px;
  background: var(--panel-soft);
}

.blind-rechallenge-banner div,
.retrieval-pass-banner div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.blind-rechallenge-banner strong,
.retrieval-pass-banner strong {
  color: var(--ink);
}

.blind-rechallenge-banner span,
.blind-rechallenge-banner small,
.retrieval-pass-banner span,
.retrieval-pass-banner small {
  color: var(--muted);
  line-height: 1.35;
}

.retrieval-pass-banner {
  border-color: #a8d8c3;
  background: var(--panel-soft);
}

.review-toolbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.review-toolbar.pass-toolbar {
  grid-template-columns: auto auto 1fr auto auto;
}

.review-pass-action {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.review-toolbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.review-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 780;
}

.review-score {
  display: flex;
  min-width: 76px;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #c7d6df;
  border-radius: 10px;
  background: var(--panel);
  text-align: right;
}

.review-score strong,
.review-score span {
  display: inline;
}

.review-score strong {
  color: var(--ink);
  font-size: 1rem;
}

.review-score span {
  color: var(--muted);
  font-size: 0.76rem;
}

.review-filters {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  margin-bottom: 8px;
  padding: 1px 1px 4px;
  scrollbar-width: thin;
}

.review-pass-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  padding: 8px 12px;
  border: 1px solid #bcd7e4;
  border-radius: 9px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 0.8rem;
}

.review-pass-strip span {
  color: var(--muted);
}

.review-pass-strip > div:first-child > span {
  display: block;
  margin-top: 2px;
}

.review-pace {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.review-pace > span {
  min-width: 70px;
  text-align: center;
}

.review-pace strong,
.review-pace small {
  display: block;
}

.review-pace strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.review-pace small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.67rem;
}

.review-pace .pace-status {
  min-width: 88px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: #dcf5e8;
  font-weight: 800;
}

.review-pace .pace-status.behind {
  color: #8a4b00;
  background: #fff0c9;
}

.review-pace .pace-status.expired {
  color: #9d2638;
  background: #ffe7eb;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid #bdcbd4;
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  font-size: 0.8rem;
  font-weight: 740;
}

.filter-chip.active {
  color: white;
  border-color: var(--navy-800);
  background: var(--navy-800);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.review-question {
  overflow: hidden;
  border-radius: 12px;
}

.review-question-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.review-position {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.review-answer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.answer-hidden-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
}

.original-answer {
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid #cbd6dc;
}

.answer-arrow {
  margin: 0 3px;
  color: var(--muted);
}

.review-question-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.review-question-meta span:first-child {
  color: var(--ink);
  font-weight: 760;
}

.review-zoom {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.review-zoom button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #bdcbd4;
  border-radius: 7px;
  color: var(--ink);
  background: var(--panel);
  font-size: 1.1rem;
  font-weight: 800;
}

.review-zoom button:disabled {
  color: #9aa7af;
  background: var(--panel-soft);
  cursor: default;
}

.review-zoom output {
  min-width: 42px;
  font-weight: 780;
  text-align: center;
}

.review-image-wrap {
  overflow-x: auto;
  padding: clamp(8px, 1.3vw, 14px);
  background: var(--panel);
}

.review-question-stage {
  position: relative;
  min-width: 100%;
  line-height: 0;
}

.review-question-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.review-question-stage.native-question-stage {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.review-choice-hit:disabled {
  opacity: 1;
  cursor: default;
}

.review-choice-hit.review-correct {
  border-color: var(--green-700);
  background: #dcf6e9;
  box-shadow: 0 0 0 4px rgba(35, 122, 87, 0.2), 0 0 0 9px white;
}

.review-choice-hit.review-incorrect:checked,
.review-choice-hit.review-eliminated {
  border-color: var(--red-600);
  background: #ffe5e8;
  box-shadow: 0 0 0 4px rgba(200, 61, 79, 0.18), 0 0 0 9px white;
}

/* Keep focused review controls below the persistent site header when returning from an explanation. */
.original-review .review-nav button { scroll-margin-block-start: 5.5rem; }

.review-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel-soft);
}

.learning-panel {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.learning-panel .reflection-card,
.learning-panel .ai-tutor-card,
.learning-panel .review-disclaimer {
  grid-column: 1 / -1;
}

.review-checked-label {
  align-self: center;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 760;
}

.compact-check-button {
  min-width: 180px;
}

.learning-card {
  padding: 16px 17px;
  border: 1px solid #d4dfe5;
  border-radius: 11px;
  background: var(--panel);
  box-shadow: 0 7px 20px rgba(6, 40, 61, 0.06);
}

.learning-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.learning-card h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.35;
}

.active-recall-card {
  padding: 20px;
  border: 2px solid #9ccfe6;
  background: var(--panel-soft);
}

.active-recall-card h2 {
  margin-bottom: 7px;
  font-size: 1.25rem;
}

.active-recall-card .recall-instruction {
  color: var(--muted);
}

.review-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 14px;
}

.review-choice {
  min-height: 48px;
  border: 1px solid #aebfc9;
  border-radius: 9px;
  color: var(--ink);
  background: var(--panel);
  font-size: 1rem;
  font-weight: 850;
}

.review-choice:hover,
.review-choice.selected {
  border-color: var(--sky-500);
  background: var(--sky-100);
  box-shadow: inset 0 0 0 2px var(--sky-500);
}

.check-answer-button {
  width: 100%;
}

.check-answer-button:disabled {
  color: var(--muted);
  background: #dce4e8;
  box-shadow: none;
  cursor: default;
}

.answer-protection {
  margin-top: 10px !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
}

.try-again-button {
  margin-top: 10px;
}

.learning-card .learning-label {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict-card {
  border-left-width: 5px;
}

.verdict-correct {
  border-left-color: var(--green-700);
  background: var(--panel-soft);
}

.verdict-missed {
  border-left-color: var(--red-600);
  background: #fff5f6;
}

.audit-card {
  border-color: #e6c36d;
  background: var(--amber-100);
}

.reflection-card label:not(.retry-control) {
  display: block;
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
}

.reflection-card select,
.reflection-card textarea {
  width: 100%;
  border: 1px solid #bdcbd4;
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

.reflection-card select {
  min-height: 42px;
  padding: 0 10px;
}

.reflection-card textarea {
  min-height: 84px;
  padding: 10px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

.confidence-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.confidence-button {
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #bdcbd4;
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 0.82rem;
  font-weight: 740;
}

.confidence-button.selected {
  color: white;
  border-color: var(--navy-800);
  background: var(--navy-800);
}

.retry-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
}

.retry-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--amber-500);
}

.review-disclaimer {
  margin: 1px 3px 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.miss-reason-picker {
  position: relative;
}

.miss-reason-trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #adc6d3;
  border-radius: 9px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-weight: 650;
  text-align: left;
}

.miss-reason-trigger[aria-expanded="true"] {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(20, 150, 212, 0.14);
}

.miss-reason-panel {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #b8ccd7;
  border-radius: 10px;
  background: var(--panel-soft);
  box-shadow: 0 12px 28px rgba(22, 55, 72, 0.12);
}

.miss-reason-panel[hidden] {
  display: none;
}

.miss-reason-panel section {
  min-width: 0;
}

.miss-reason-panel h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.miss-reason-panel section > div {
  display: grid;
  gap: 5px;
}

.miss-reason-option,
.miss-reason-clear {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #cfdae0;
  border-radius: 7px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: left;
}

.miss-reason-option:hover,
.miss-reason-option.selected {
  border-color: var(--sky-500);
  background: var(--sky-100);
}

.miss-reason-clear {
  align-self: end;
  color: var(--muted);
  text-align: center;
}

.performance-coach-card {
  margin-top: 18px;
  padding: clamp(16px, 2.3vw, 24px);
  border: 1px solid #9fc8da;
  border-radius: 13px;
  background: linear-gradient(145deg, #f7fcff, #eef7fb);
}

.performance-coach-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.performance-coach-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
}

.performance-coach-head > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.performance-coach-intro {
  max-width: 920px;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.coach-scope-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.coach-feedback,
.coach-empty {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #c5d9e3;
  border-radius: 10px;
  background: var(--panel);
}

.coach-feedback > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--ink);
}

.coach-feedback > div:first-child span,
.coach-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.coach-feedback > div:last-child {
  color: var(--ink);
  line-height: 1.6;
}

.coach-conversation {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #c5d9e3;
}

.coach-thread {
  display: grid;
  gap: 9px;
}

.coach-thread-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.coach-message {
  max-width: 88%;
  padding: 11px 13px;
  border: 1px solid #c5d9e3;
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  line-height: 1.5;
}

.coach-message.user {
  justify-self: end;
  border-color: #9fc8da;
  background: var(--panel-soft);
}

.coach-message strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.78rem;
}

.coach-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.coach-prompt-chip {
  padding: 7px 10px;
  border: 1px solid #9fc8da;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.coach-followup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}

.coach-question-library {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #c5d9e3;
  border-radius: 12px;
  background: var(--panel-soft);
}

.coach-question-library-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.coach-question-library-head div {
  display: grid;
  gap: 2px;
}

.coach-question-library-head strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.coach-question-library-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.coach-saved-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #bad2dd;
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}

.coach-saved-question-use,
.coach-saved-question-remove {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.coach-saved-question-use {
  padding: 11px 13px;
  text-align: left;
  line-height: 1.4;
}

.coach-saved-question-use:hover,
.coach-saved-question-use:focus-visible {
  background: var(--panel-soft);
}

.coach-saved-question-remove {
  padding: 8px 12px;
  border-left: 1px solid #d7e4ea;
  color: #8b3e2f;
  font-size: 0.8rem;
  font-weight: 750;
}

.coach-question-library-note,
.coach-question-library-empty {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.coach-followup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.coach-followup-form label {
  color: var(--ink);
  font-weight: 750;
}

.coach-followup-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 14px;
  border: 1px solid #aebfc9;
  border-radius: 9px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
}

.coach-followup-actions .button {
  min-width: 140px;
}

.coach-followup-status {
  min-height: 1.35em;
  margin: 0;
  color: #9b421f;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .miss-reason-panel {
    grid-template-columns: 1fr;
  }

  .performance-coach-head {
    display: block;
  }

  .coach-message {
    max-width: 100%;
  }

  .coach-question-library-head,
  .coach-followup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-followup-actions .button {
    width: 100%;
  }
}

.ai-tutor-card {
  border-color: #8fc9e4;
  background: var(--panel-soft);
}

.ai-tutor-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.ai-saved-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #b7d9e9;
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 0.76rem;
  font-weight: 740;
}

.ai-thread {
  display: grid;
  max-height: 460px;
  overflow-y: auto;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #c8dce7;
  border-radius: 10px;
  background: var(--panel);
}

.ai-empty {
  color: var(--muted) !important;
  font-size: 0.88rem !important;
}

.ai-message {
  max-width: min(92%, 900px);
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.ai-message.ai-question {
  justify-self: end;
  border: 1px solid #aad0e2;
  background: var(--panel-soft);
}

.ai-message.ai-answer {
  justify-self: start;
  border: 1px solid #d3dee4;
  background: var(--panel-soft);
}

.ai-message-role {
  margin: 0 0 4px !important;
  color: var(--ink) !important;
  font-size: 0.72rem !important;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.ai-prompt-chips button {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #adc6d3;
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 0.78rem;
  font-weight: 730;
}

.ai-prompt-chips button:hover {
  border-color: var(--sky-500);
  background: var(--sky-100);
}

.ai-question-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 780;
}

.ai-question-input {
  width: 100%;
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid #adc6d3;
  border-radius: 9px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
}

.ai-question-input:focus {
  outline: 3px solid rgba(14, 165, 233, 0.2);
  border-color: var(--sky-500);
}

.ai-tutor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.ai-tutor-actions span {
  color: var(--muted);
  font-size: 0.78rem;
}

.ai-tutor-actions .button {
  min-width: 108px;
}

.ai-error {
  min-height: 1.2em;
  margin-top: 8px !important;
  color: var(--red-600) !important;
  font-size: 0.82rem !important;
  font-weight: 680;
}

.review-empty {
  padding: 34px;
  text-align: center;
}

.review-empty h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.review-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 27, 42, 0.68);
}

.modal {
  width: min(480px, 100%);
  padding: 24px;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

/* Keep the common practice confirmation reachable on short and narrow screens. */
#modal-backdrop > .modal {
  box-sizing: border-box;
  min-height: 0;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
}

.modal h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.toast-region {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 360px;
  padding: 12px 14px;
  color: white;
  border-radius: 9px;
  background: #203746;
  box-shadow: 0 12px 28px rgba(6, 40, 61, 0.22);
  animation: toast-in 160ms ease-out;
}

@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

@media (max-width: 1250px) {
  .exam-layout {
    grid-template-columns: 1fr;
    width: min(1240px, calc(100% - 16px));
  }

  .navigator {
    position: static;
    order: -1;
    display: none;
  }

  .navigator.navigator-open {
    display: block;
  }

  .question-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  .keyboard-note,
  .legend {
    display: none;
  }
}

@media (max-width: 930px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-pass-row {
    grid-template-columns: minmax(190px, 1.5fr) repeat(2, minmax(92px, 0.7fr));
  }

  .review-pass-entry {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .review-pass-gain,
  .review-pass-coverage,
  .review-pass-average,
  .review-pass-time {
    display: none;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .learning-panel {
    position: static;
    grid-template-columns: 1fr;
  }

  .learning-panel .reflection-card,
  .learning-panel .ai-tutor-card,
  .learning-panel .review-disclaimer {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 60px;
  }

  .header-chip {
    display: none;
  }

  .header-status {
    flex-shrink: 0;
  }

  .workspace {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .home-grid {
    gap: 12px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact {
    min-height: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row .button {
    width: 100%;
  }

  .exam-header-main {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .exam-name {
    display: none;
  }

  .exam-layout {
    width: calc(100% - 12px);
    gap: 10px;
    padding-top: 8px;
  }

  .navigator {
    padding: 10px;
    overflow-x: auto;
  }

  .question-grid {
    min-width: 620px;
  }

  .question-scroll {
    padding: 16px 8px 12px;
  }

  .question-stage {
    min-width: 700px;
  }

  .question-tools {
    padding-inline: 10px;
  }

  .zoom-label {
    display: none;
  }

  .question-footer {
    align-items: stretch;
  }

  .question-footer .button {
    padding-inline: 12px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-progress-card {
    padding: 14px;
  }

  .attempt-passes-card {
    padding: 14px;
  }

  .attempt-passes-head {
    display: block;
  }

  .attempt-passes-head > p {
    margin-top: 6px;
  }

  .attempt-pass-row {
    grid-template-columns: 32px minmax(0, 1fr) minmax(92px, auto);
    gap: 8px;
    padding: 10px;
  }

  .attempt-pass-row > span:nth-child(5),
  .attempt-pass-row > span:nth-child(6) {
    display: none;
  }

  .attempt-pass-row > span:nth-child(3) {
    display: none;
  }

  .review-progress-head {
    display: block;
  }

  .review-progress-head > p {
    margin-top: 6px;
  }

  .review-pass-row {
    grid-template-columns: 1fr auto;
    padding: 10px;
  }

  .review-pass-entry {
    grid-template-columns: 1fr;
  }

  .review-pass-retake {
    min-height: 42px;
  }

  .review-pass-correct {
    display: none;
  }

  .review-workspace {
    width: calc(100% - 14px);
    padding-top: 12px;
  }

  .review-toolbar {
    grid-template-columns: auto auto 1fr;
    align-items: start;
  }

  .review-toolbar.pass-toolbar {
    grid-template-columns: auto auto 1fr auto;
  }

  .review-toolbar p {
    display: none;
  }

  .review-toolbar .review-score {
    justify-self: end;
  }

  .review-pass-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .review-score {
    min-width: 72px;
    padding: 5px 8px;
  }

  .review-pass-strip {
    display: block;
  }

  .review-pass-strip span {
    display: block;
    margin-top: 3px;
  }

  .review-pace {
    justify-content: space-between;
    margin-top: 9px;
    gap: 5px;
  }

  .review-pace > span {
    min-width: 0;
  }

  .review-question-head {
    flex-direction: column;
  }

  .review-question-meta {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .review-image-wrap {
    padding: 12px 7px;
  }

  .review-question-stage {
    min-width: 690px;
  }

  .review-nav .button {
    min-height: 42px;
    padding-inline: 10px;
  }

  .compact-check-button {
    min-width: 138px;
  }

  .confidence-row {
    grid-template-columns: 1fr;
  }

  .ai-tutor-heading,
  .ai-tutor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-saved-status {
    align-self: flex-start;
  }

  .ai-tutor-actions .button {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .button {
    width: 100%;
  }
}

.library-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  color: white;
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
}

.library-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.library-workspace {
  max-width: 1050px;
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.library-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.library-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.library-heading-actions {
  display: grid;
  max-width: 480px;
  justify-items: start;
  gap: 12px;
}

.library-heading-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.form-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-library-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 24px;
}

.form-library-card-head,
.form-library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-library-card-head span {
  color: var(--sky-500);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-library-card h2 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-size: 1.5rem;
}

.form-library-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.form-library-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.form-library-meta strong {
  color: var(--green-700);
}

.form-open-button {
  justify-content: center;
  margin-top: 16px;
  text-decoration: none;
}

.form-library-card > .button {
  width: 100%;
  justify-content: center;
}

.form-library-card > .button ~ .button {
  margin-top: 8px;
}

.import-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 0 24px;
  padding: 24px;
  border-color: rgba(20, 150, 212, 0.35);
  background: linear-gradient(135deg, #ffffff, #effaff);
}

.import-lab h2,
.import-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.import-lab p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.import-lab-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.import-lab-flow span {
  padding: 9px 6px;
  border: 1px solid #c6e5f3;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.imported-form-card { border-top: 4px solid var(--sky-500); }

.import-remove-button {
  width: 100%;
  margin-top: 8px;
  color: #8b3340;
  background: var(--panel);
  border: 1px solid #e8c6cb;
}

.import-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(6, 40, 61, 0.28);
}

.import-dialog::backdrop {
  background: rgba(6, 40, 61, 0.62);
  backdrop-filter: blur(3px);
}

.import-dialog-card { padding: clamp(22px, 5vw, 36px); }

.import-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--panel);
  font-size: 1.65rem;
  line-height: 1;
}

.import-intro {
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.import-field {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  color: var(--ink);
  font-weight: 750;
}

.import-field span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.import-field em,
.import-field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 550;
}

.import-field input {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b8c9d4;
  border-radius: 9px;
  background: var(--panel-soft);
}

.import-attestation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 20px 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.import-attestation input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
}

.import-callout {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #cbe8f5;
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel-soft);
}

.import-callout span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.import-status {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.import-status.is-working,
.import-status.is-ready,
.import-status.is-error {
  padding: 12px 14px;
  border-radius: 9px;
}

.import-status.is-working { background: var(--panel-soft); color: var(--ink); }
.import-status.is-ready { background: var(--panel-soft); color: var(--green-700); }
.import-status.is-error { background: #fff0f2; color: var(--red-600); }

.import-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #bbd8e5;
  border-radius: 12px;
  background: var(--panel-soft);
}

.import-preview-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.import-preview-head div {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.import-preview-head span,
.import-preview-questions article span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.import-warnings {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  color: #78520a;
  background: var(--amber-100);
}

.import-warnings ul { margin: 7px 0 0; padding-left: 20px; }

.import-preview-questions { display: grid; gap: 9px; }

.import-preview-questions article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.import-preview-questions p { margin: 5px 0; line-height: 1.42; }
.import-preview-questions small { color: var(--muted); }

.import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.import-actions [hidden],
.import-preview[hidden] {
  display: none !important;
}

.explanation-mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: rgba(20, 150, 212, 0.35);
  background: var(--panel-soft);
}

.explanation-mode-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.explanation-mode-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid #b9d5e2;
  border-radius: 10px;
  background: var(--panel);
}

.explanation-mode-toggle button {
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-weight: 760;
}

.explanation-mode-toggle button:is(.selected,[aria-pressed=true]) {
  color: white;
  background: var(--navy-800);
}

.deep-learning-card p:last-child {
  line-height: 1.62;
}

.takeaway-card {
  border-left: 5px solid var(--amber-500);
  background: var(--amber-100);
}

.dashboard-workspace {
  width: min(1380px, calc(100% - 32px));
  padding-top: 30px;
}

.dashboard-loading {
  display: grid;
  min-height: 55vh;
  place-content: center;
  gap: 8px;
  color: var(--ink);
  text-align: center;
}

.dashboard-loading span {
  color: var(--muted);
  font-weight: 500;
}

.dashboard-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
}

.dashboard-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-title-row > div:first-child > p:last-child {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.dashboard-freshness {
  display: grid;
  min-width: 190px;
  padding: 18px 20px;
  border: 1px solid rgba(8, 59, 92, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-freshness strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.dashboard-freshness span {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 750;
}

.dashboard-freshness small {
  margin-top: 8px;
  color: var(--muted);
}

.dashboard-title-actions {
  display: grid;
  justify-items: stretch;
  gap: 10px;
}

.snapshot-source {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.demo-replay-note {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.5;
}

.cycle-next-step {
  display: grid;
  min-width: min(100%, 430px);
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid #8fc5dd;
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel-soft);
}

.cycle-next-step span {
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-stat-grid article {
  position: relative;
  display: grid;
  min-height: 132px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(8, 59, 92, 0.13);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 7px 20px rgba(6, 40, 61, 0.06);
}

.info-control {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.info-button {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-left: 5px;
  padding: 0;
  place-items: center;
  border: 1px solid #8bb7ca;
  border-radius: 50%;
  color: var(--muted);
  background: var(--panel-soft);
  font: 800 0.78rem/1 Georgia, serif;
  cursor: pointer;
}

.dashboard-stat-grid .info-control {
  position: absolute;
  top: 12px;
  right: 12px;
}

.info-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 48px));
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid #9fc8da;
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(6, 40, 61, 0.18);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.48;
  text-align: left;
}

.info-popover strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.dashboard-stat-grid article > .info-control .info-popover {
  right: -4px;
}

.investor-demo-card,
.coach-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 22px;
  border-color: #8fcde7;
  background: linear-gradient(135deg, #f5fcff, #eef9f4);
}

.investor-demo-card h2,
.coach-spotlight h2 {
  margin: 3px 0 7px;
  color: var(--ink);
}

.investor-demo-card p,
.coach-spotlight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.investor-demo-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.investor-demo-card li,
.coach-spotlight-proof span {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid #c3dce6;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
}

.investor-demo-card li span,
.coach-spotlight-proof span {
  color: var(--muted);
  font-size: 0.8rem;
}

.investor-demo-card .button {
  white-space: normal;
  text-decoration: none;
}

.sandbox-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #9bd7ec;
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--ink);
}

.sandbox-banner strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.header-chip.sandbox {
  border-color: #82d3ee;
  background: rgba(25, 161, 211, 0.14);
  color: #d9f6ff;
}

.sandbox-inline-note {
  display: inline-flex;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 750;
}

@media (max-width: 700px) {
  .sandbox-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.coach-spotlight {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr) auto;
  margin-top: 16px;
  background: linear-gradient(135deg, #f2faff, #ffffff);
}

.coach-spotlight-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coach-spotlight-proof span {
  display: inline-flex;
  color: var(--ink);
  font-weight: 750;
}

.panel-definition {
  margin: 12px 0 -4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.dashboard-stat-grid span,
.coaching-prescription-grid span,
.before-after span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-stat-grid strong {
  margin: 4px 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.05;
}

.dashboard-stat-grid small {
  color: var(--muted);
}

.visual-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.signal-card {
  display: flex;
  min-height: 126px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(8, 59, 92, 0.13);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 7px 20px rgba(6, 40, 61, 0.05);
}

.signal-ring {
  --ring-color: #1787b8;
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--signal) * 1%), #e5edf1 0);
}

.signal-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--panel);
}

.signal-ring span {
  z-index: 1;
  grid-area: 1 / 1;
  color: var(--ink);
  font-weight: 900;
}

.signal-ring.green { --ring-color: #21845e; }
.signal-ring.navy { --ring-color: #0d4f73; }
.signal-ring.amber { --ring-color: #e2a10b; }

.signal-card > div:last-child {
  display: grid;
  gap: 5px;
}

.signal-card strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.signal-card small {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.memory-queue-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
}

.memory-queue-intro {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.retrieval-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.retrieval-principles span {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 0.83rem;
  font-weight: 750;
}

.retrieval-principles strong {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--navy-800);
  font-size: 0.75rem;
}

.memory-queue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.memory-stack {
  display: grid;
  min-height: 130px;
  align-content: center;
  text-align: left;
  gap: 3px;
  padding: 16px;
  border: 1px solid rgba(8, 59, 92, 0.12);
  border-top: 5px solid #7e9bab;
  border-radius: 12px;
  background: var(--panel-soft);
  font: inherit;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.memory-stack:hover:not(:disabled),
.memory-stack:focus-visible {
  transform: translateY(-2px);
  border-color: #55add2;
  box-shadow: 0 9px 22px rgba(6, 40, 61, 0.11);
}

.memory-stack:disabled {
  cursor: default;
  opacity: 1;
}

.memory-stack.due { border-top-color: #d14355; }
.memory-stack.fragile { border-top-color: #e2a10b; }
.memory-stack.recovered { border-top-color: #1787b8; }
.memory-stack.stable { border-top-color: #21845e; }

.memory-stack strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.memory-stack span {
  color: var(--ink);
  font-weight: 850;
}

.memory-stack small,
.memory-queue-actions span {
  color: var(--muted);
  line-height: 1.4;
}

.memory-stack em {
  margin-top: 8px;
  color: var(--sky-600, #0878a9);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.memory-queue-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.retrieval-history {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) repeat(4, minmax(150px, 1fr));
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid rgba(8, 59, 92, 0.12);
}

.retrieval-history > div,
.retrieval-history article {
  display: grid;
  align-content: center;
  gap: 3px;
}

.retrieval-history > div span,
.retrieval-history article small {
  color: var(--muted);
  line-height: 1.35;
}

.retrieval-history article {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--panel-soft);
}

.retrieval-history article > span,
.retrieval-history article em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.retrieval-history article :is(button, a) {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 0;
  border: 0;
  color: var(--sky-600, #0878a9);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  text-transform: uppercase;
}

.retrieval-history article strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.coaching-loop-card {
  padding: clamp(20px, 4vw, 30px);
  border-color: rgba(20, 150, 212, 0.42);
  background: linear-gradient(135deg, white 0%, #f2fbff 100%);
}

.coaching-loop-head,
.dashboard-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.coaching-loop-head h2,
.dashboard-panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.15;
}

.loop-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #805700;
  background: var(--amber-100);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.loop-status.active {
  color: var(--ink);
  background: #dcf7ea;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 22px 0;
}

.loop-steps span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--panel);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.loop-steps .done {
  color: var(--ink);
  border-color: #9fcfe4;
  background: var(--panel-soft);
}

.loop-steps .active {
  color: var(--ink);
  border-color: #9fd5bb;
  background: var(--panel-soft);
}

.coaching-prescription-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.coaching-prescription-grid > div {
  min-height: 145px;
  padding: 16px;
  border: 1px solid #c7dce6;
  border-radius: 12px;
  background: var(--panel);
}

.coaching-prescription-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.coaching-prescription-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.coaching-loop-actions,
.dashboard-coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.coaching-loop-actions a {
  text-decoration: none;
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.dashboard-panel,
.dashboard-coach-card,
.dashboard-evidence-card {
  padding: 22px;
}

.dashboard-panel-head > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.metric-rows {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.metric-row {
  display: grid;
  grid-template-columns: 76px minmax(80px, 1fr) 50px 46px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.88rem;
}

.metric-row strong,
.metric-row small {
  text-align: right;
}

.metric-row small {
  color: var(--muted);
}

.dashboard-bar-track {
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.dashboard-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky-500), #49b9e9);
}

.dashboard-bar.green {
  background: linear-gradient(90deg, var(--green-700), #43a978);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.outcome-card {
  display: grid;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
}

.outcome-card strong {
  color: var(--ink);
  font-size: 1.7rem;
}

.outcome-card span {
  font-weight: 800;
}

.outcome-card small {
  margin-top: 5px;
  color: var(--muted);
}

.outcome-card.improved {
  border-color: #a9d8c1;
  background: var(--panel-soft);
}

.outcome-card.harmed {
  border-color: #edb8bf;
  background: #fff4f5;
}

.panel-note,
.dashboard-empty-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.before-after > div:not(.before-after-delta) {
  display: grid;
  min-height: 125px;
  align-content: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.before-after > div:last-child {
  border-color: #a9d8c1;
  background: var(--panel-soft);
}

.before-after strong {
  margin: 4px 0;
  color: var(--ink);
  font-size: 1.7rem;
}

.before-after small {
  color: var(--muted);
  line-height: 1.4;
}

.before-after-delta {
  display: grid;
  color: var(--green-700);
  text-align: center;
}

.before-after-delta strong {
  font-size: 1.1rem;
}

.before-after-delta span {
  font-size: 0.7rem;
}

.review-spark-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.review-spark-list > div {
  display: grid;
  grid-template-columns: 62px minmax(80px, 1fr) 48px 42px;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
}

.review-spark-list strong,
.review-spark-list small {
  text-align: right;
}

.review-spark-list small {
  color: var(--muted);
}

.dashboard-coach-card,
.dashboard-evidence-card {
  margin-top: 16px;
}

.dashboard-coach-report,
.dashboard-coach-message {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #c5d9e3;
  border-radius: 11px;
  background: var(--panel-soft);
  color: var(--ink);
  line-height: 1.58;
}

.dashboard-coach-report > strong,
.dashboard-coach-message > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.dashboard-coach-message.user {
  margin-left: min(15%, 140px);
  border-color: #9fc8da;
  background: var(--panel-soft);
}

#dashboard-coach-form {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

#dashboard-coach-form label {
  color: var(--ink);
  font-weight: 800;
}

#dashboard-coach-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid #aebfc9;
  border-radius: 9px;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

#dashboard-coach-form > div {
  display: flex;
  justify-content: flex-end;
}

.evidence-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.evidence-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-filters select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #b7c8d1;
  border-radius: 9px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: none;
}

.rechallenge-link,
.private-recall-label {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.rechallenge-link {
  color: white !important;
  background: var(--navy-800);
  text-decoration: none;
}

.private-recall-label {
  color: var(--muted);
  background: var(--panel-soft);
}

.dashboard-table-wrap {
  overflow: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.dashboard-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: var(--panel);
  font-size: 0.86rem;
}

.dashboard-table th,
.dashboard-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.dashboard-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-table a {
  color: var(--ink);
  font-weight: 800;
}

.answer-path { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
.answer-path-step { display:inline-flex; align-items:center; white-space:nowrap; }
.path-pill {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  padding: 3px 7px;
  line-height: 1.3;
  white-space: nowrap;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: #4a6f82;
  font-weight: 850;
}

.path-pill.correct {
  background: var(--green-700);
}

.path-pill.wrong {
  background: var(--red-600);
}

.path-separator {
  margin: 0 4px;
  color: var(--muted);
  font-weight: 900;
}

.outcome-label {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.outcome-label.improved,
.outcome-label.correct,
.outcome-label.changed-correct {
  color: var(--ink);
  background: var(--panel-soft);
}

.outcome-label.harmed,
.outcome-label.incorrect,
.outcome-label.still-incorrect {
  color: #9a2f3f;
  background: #fde9ec;
}

.dashboard-empty-state {
  max-width: 760px;
  margin: 8vh auto;
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
}

.dashboard-empty-state h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.dashboard-empty-state > p:not(.eyebrow) {
  margin: 16px auto 24px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-empty-state a {
  display: inline-flex;
  text-decoration: none;
}

@media (max-width: 760px) {
  .import-lab {
    grid-template-columns: 1fr;
  }

  .import-lab-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .import-preview-head {
    grid-template-columns: 1fr;
  }

  .import-actions {
    flex-wrap: wrap;
  }

  .import-actions .button {
    flex: 1 1 150px;
  }

  .library-heading {
    display: block;
  }

  .library-heading > p {
    margin-top: 12px;
  }

  .library-heading-actions {
    margin-top: 12px;
  }

  .form-library-grid {
    grid-template-columns: 1fr;
  }

  .explanation-mode-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-title-row,
  .dashboard-chart-grid,
  .coaching-prescription-grid,
  .investor-demo-card,
  .coach-spotlight {
    grid-template-columns: 1fr;
  }

  .investor-demo-card .button,
  .coach-spotlight .button {
    width: 100%;
    justify-content: center;
  }

  .dashboard-freshness {
    min-width: 0;
  }

  .dashboard-title-actions {
    width: 100%;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-signal-grid,
  .memory-queue-grid,
  .retrieval-principles,
  .evidence-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retrieval-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retrieval-history > div {
    grid-column: 1 / -1;
  }

  .loop-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .coaching-loop-head,
  .dashboard-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .dashboard-coach-message.user {
    margin-left: 0;
  }

  .coaching-loop-actions .button,
  .coaching-loop-actions a,
  .dashboard-coach-actions .button,
  #dashboard-coach-form .button {
    width: 100%;
    justify-content: center;
  }

}

@media (max-width: 460px) {
  .dashboard-stat-grid,
  .outcome-grid,
  .visual-signal-grid,
  .memory-queue-grid,
  .retrieval-history,
  .retrieval-principles,
  .evidence-filters {
    grid-template-columns: 1fr;
  }

  .retrieval-history > div {
    grid-column: auto;
  }

  .metric-row {
    grid-template-columns: 72px minmax(70px, 1fr) 45px;
  }

  .metric-row small {
    display: none;
  }

  .native-question-content {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .native-question-number {
    display: none;
  }

  .native-choice-list {
    grid-column: 1;
  }

  .info-popover {
    position: fixed;
    top: 50%;
    right: 24px;
    left: 24px;
    width: auto;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Build 20: separated investor demo and authenticated learner workspace */

/* Build 21: learner-controlled per-question timer */
.item-timer-toggle {
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
}

.review-question-meta > [hidden] {
  display: none;
}
.investor-shell {
  background:
    radial-gradient(circle at 90% 5%, rgba(20, 150, 212, 0.14), transparent 26rem),
    linear-gradient(180deg, #e7f1f6 0, var(--page) 36rem);
}

.investor-home-workspace {
  width: min(1240px, calc(100% - 32px));
}

.investor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 6vw, 68px);
  overflow: hidden;
  color: white;
  border: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(56, 189, 248, 0.28), transparent 34%),
    linear-gradient(135deg, #0b4a70, #06283d 68%);
}

.investor-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.investor-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 22px 0 0;
  color: #d6edf7;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.investor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.investor-hero-actions .button:not(.button-primary) {
  color: white;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.mvp-readiness {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(4, 31, 48, 0.62);
  backdrop-filter: blur(10px);
}

.mvp-readiness > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mvp-readiness > div span,
.mvp-readiness p {
  color: #acd9eb;
  font-size: 0.8rem;
}

.mvp-readiness ol {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.mvp-readiness li a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.mvp-readiness li a:hover { background: rgba(255, 255, 255, 0.16); }
.mvp-readiness li a:focus-visible { outline: 2px solid #8bd4f4; outline-offset: 3px; }

.mvp-readiness li b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #8bd4f4;
  font-size: 0.72rem;
}

.mvp-readiness li em {
  color: #84efbb;
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 800;
}

.mvp-readiness p { margin: 0; line-height: 1.45; }

.demo-paths,
.product-proof,
.architecture-strip {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.section-heading h2,
.product-proof h2,
.architecture-strip h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.section-heading .eyebrow,
.product-proof .eyebrow,
.architecture-strip .eyebrow,
.workspace-welcome .eyebrow {
  color: var(--sky-500);
}

.demo-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.demo-path-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 24px;
}

.demo-path-card.featured {
  border-top: 4px solid var(--sky-500);
}

.path-number {
  color: #aec4cf;
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.path-label {
  margin: 20px 0 5px;
  color: var(--sky-500);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-path-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.demo-path-card > p:not(.path-label) {
  margin: 12px 0 24px;
  color: var(--muted);
  line-height: 1.52;
}

.demo-path-card .button {
  justify-content: center;
  margin-top: auto;
  text-decoration: none;
}

.product-proof {
  padding: clamp(24px, 5vw, 42px);
}

.product-proof-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.product-proof-head > span {
  color: var(--muted);
  font-size: 0.85rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
}

.proof-grid > div {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  padding: 22px;
  background: var(--panel);
}

.proof-grid strong { color: var(--ink); font-size: 1.05rem; }
.proof-grid span { margin-top: 8px; color: var(--muted); line-height: 1.45; }
.proof-grid em { margin-top: auto; padding-top: 12px; color: var(--green-700); font-size: 0.72rem; font-style: normal; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }

.architecture-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
  padding: 30px;
  border-radius: 16px;
  background: var(--panel-soft);
}

.exam-family-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.exam-family-chips span {
  padding: 9px 12px;
  border: 1px solid #b5d9e8;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 760;
}

.workspace-user {
  color: white;
  font-size: 0.86rem;
  font-weight: 760;
}

.workspace-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.workspace-welcome h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
}

.workspace-welcome p:not(.eyebrow) {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-welcome .button { flex: 0 0 auto; text-decoration: none; }

.initial-loading,
.load-error {
  display: grid;
  min-height: 70vh;
  place-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
}

.load-error h1 { margin: 0; color: var(--ink); }
.load-error p { max-width: 540px; margin: 0 auto 10px; color: var(--muted); }

@media (max-width: 900px) {
  .investor-hero,
  .architecture-strip { grid-template-columns: 1fr; }
  .demo-path-grid,
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-family-chips { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .investor-home-workspace { width: min(100% - 20px, 1240px); padding-top: 18px; }
  .investor-topbar,
  .workspace-welcome,
  .product-proof-head { align-items: stretch; flex-direction: column; }
  .header-status { flex-wrap: wrap; }
  .investor-hero { padding: 28px 22px; }
  .investor-hero-copy h1 { font-size: clamp(2.15rem, 12vw, 3.5rem); }
  .investor-hero-actions .button,
  .workspace-welcome .button { width: 100%; justify-content: center; }
  .demo-path-grid,
  .proof-grid { grid-template-columns: 1fr; }
  .demo-path-card { min-height: 0; }
}

/* Keep scan controls inside their own row; broad white halos obscured letters. */
.question-stage:not(.native-question-stage) .choice-hit,
.review-question-stage:not(.native-question-stage) .choice-hit { box-shadow: none !important; width: 20px; height: 20px; }
.attempt-analysis-panel { padding: 24px; margin: 20px 0; }
.attempt-analysis-panel select { display: block; width: 100%; max-width: 700px; padding: 12px; margin: 12px 0; border: 1px solid #b9cbd5; border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
.attempt-exposure-stats { display: flex; flex-wrap: wrap; gap: 24px; padding: 12px 0; }
.attempt-exposure-stats strong { font-size: 24px; }
.attempt-history-table { overflow-x: auto; margin-top: 12px; }
.attempt-history-table table { width: 100%; border-collapse: collapse; }
.attempt-history-table th, .attempt-history-table td { text-align: left; padding: 12px; border-bottom: 1px solid #dce5eb; }
.attempt-history-table small { display: block; }

.attempt-progress-card { padding: clamp(18px, 3vw, 30px); margin: 22px 0; }
.attempt-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.attempt-progress-head h2 { margin: 4px 0; font-size: clamp(24px, 3vw, 34px); }
.progress-score-change { text-align: right; }
.progress-score-change strong { display: block; color: var(--muted); font-size: 40px; line-height: 1.1; }
.progress-score-change span { font-size: 14px; color: var(--muted); }
.progress-summary { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 18px 0 30px; color: var(--muted); font-size: 16px; }
.progress-summary b { color: var(--ink); }
.progress-chart-layout { display: flex; gap: 10px; }
.progress-y-axis { position: relative; width: 45px; flex: 0 0 45px; height: 240px; color: var(--muted); font-size: 14px; }
.progress-y-axis span { position: absolute; right: 0; transform: translateY(-50%); }
.progress-chart-main { flex: 1; min-width: 0; }
.progress-plot { position: relative; height: 240px; }
.progress-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.progress-grid-line { stroke: #dce7ed; stroke-width: 1; vector-effect: non-scaling-stroke; }
.progress-cumulative-line { stroke: #7994a4; stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.progress-score-line { stroke: #1598c7; stroke-width: 3; fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.progress-point { position: absolute; transform: translate(-50%, -50%); width: 12px; height: 12px; }
.progress-point i { display: block; width: 12px; height: 12px; border: 3px solid #1598c7; background: var(--panel); border-radius: 50%; box-sizing: border-box; }
.progress-point.selected i { background: #0b354b; border-color: #0b354b; outline: 4px solid #c7edf7; }
.progress-point b { position: absolute; bottom: 21px; left: 50%; transform: translateX(-50%); font-size: 18px; line-height: 1; color: var(--ink); background: var(--panel); padding: 2px 4px; border-radius: 4px; }
.progress-point b.below { bottom: auto; top: 21px; }
.progress-attempt-labels { display: grid; grid-template-columns: repeat(var(--attempt-count), minmax(0,1fr)); margin-top: 18px; gap: 6px; }
.progress-attempt-labels button { font: inherit; color: var(--ink); border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 2px; cursor: pointer; overflow-wrap: anywhere; }
.progress-attempt-labels button:hover, .progress-attempt-labels button[aria-pressed="true"] { background: var(--panel-soft); border-color: #aedcea; }
.progress-attempt-labels button:focus-visible { outline: 2px solid #1598c7; outline-offset: 2px; }
.progress-attempt-labels span, .progress-attempt-labels strong, .progress-attempt-labels small { display: block; margin: 3px 0; font-size: 14px; }
.progress-attempt-labels span, .progress-attempt-labels small { color: var(--muted); }
.progress-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 22px 0 10px; color: var(--muted); font-size: 14px; }
.progress-legend span { display: flex; align-items: center; gap: 8px; }
.progress-legend i { width: 22px; border-top: 3px solid #1598c7; }
.progress-legend .cumulative-key { border-top: 2px dashed #7994a4; }
@media(max-width: 600px) {
 .attempt-progress-head { align-items: flex-start; gap: 12px; }
 .progress-score-change strong { font-size: 32px; }
 .progress-score-change { max-width: 125px; }
 .progress-point b { font-size: 16px; }
 .progress-y-axis { width: 35px; flex-basis: 35px; }
 .progress-attempt-labels span { font-size: 12px; }
}

.review-retention-panel .review-spark-list > .recall-pass-row { grid-template-columns: minmax(180px, 1.2fr) minmax(80px, 1fr) 55px 105px; gap: 16px; font-size: 16px; padding: 12px 0; border-bottom: 1px solid #e1e9ee; }
.recall-pass-context > b, .recall-pass-context > span, .recall-pass-context > small { display: block; margin: 3px 0; text-align: left; }
.recall-pass-context > span, .recall-pass-context > small, .recall-pass-row > small { font-size: 14px; }
.recall-pass-row > small > span { display: block; }
@media(max-width: 600px) {
 .review-retention-panel .review-spark-list > .recall-pass-row { grid-template-columns: minmax(0, 1fr) 50px 98px; gap: 8px; }
 .recall-pass-row .dashboard-bar-track { display: none; }
}

.coach-scan-highlight { position: absolute; background: rgba(255, 211, 57, .32); box-shadow: 0 0 0 2px rgba(255, 211, 57, .32); pointer-events: none; z-index: 1; }
.coach-clue-mark, .ai-clue-quotes mark { background: #fff0ac; color: var(--ink); border-radius: 3px; padding: 0 3px; }
.ai-clue-quotes { margin: 12px 0; line-height: 1.8; }
.reason-coaching-action { margin: 12px 0; padding: 14px; border: 1px solid #b7ddeb; border-radius: 8px; background: var(--panel-soft); }
.reason-coaching-action p { margin: 0 0 10px; }
.first-review-list { display: grid; gap: 16px; margin: 20px 0; }
.first-review-list > article { padding: 18px; border: 1px solid #d8e5ec; border-radius: 10px; }
.first-review-list small, .first-review-list article > div:first-child > span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.first-review-counts { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0; }
.first-review-counts strong { font-size: 24px; color: var(--ink); }
.reason-pattern-panel { margin-top: 20px; }
.reason-evidence-list > div { padding: 14px 0; border-bottom: 1px solid #d8e5ec; }
.reason-evidence-list span, .reason-evidence-list small { display: block; margin-top: 6px; }
.reason-evidence-list small, .length-evidence small { color: var(--muted); font-size: 14px; }
.length-evidence { margin: 20px 0; padding: 14px; background: var(--panel-soft); border-radius: 8px; }
.length-evidence > * { display: block; margin: 6px 0; }
.import-preview-questions { max-height: 520px; overflow-y: auto; }

.recall-timing-choice { display: grid; gap: .65rem; margin: 1rem 0; padding: 1rem; border: 1px solid #b5d4de; border-radius: 12px; background: var(--panel-soft); }
.recall-timing-choice select { width: min(100%, 420px); padding: .7rem; border: 1px solid #9bb7c4; border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
.recall-timing-choice span { color: var(--muted); font-size: .9rem; }

.length-dimension-controls{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.length-dimension-controls button{padding:.7rem 1rem;border:1px solid #b5d4de;border-radius:8px;color: var(--ink);background: var(--panel);font:inherit;cursor:pointer}.length-dimension-controls button[aria-pressed=true]{color:white;background:#104f70}.reading-load-bars article{display:grid;grid-template-columns:100px minmax(0,1fr) 145px;gap:1rem;align-items:center;padding:1rem 0;border-bottom:1px solid #e1e9ec}.reading-load-bars small{display:block;color: var(--muted);font-size:.8rem;margin-top:.35rem}.reading-load-track{height:20px;background: var(--panel-soft);border-radius:5px;overflow:hidden}.reading-load-track span{display:block;height:100%;background:#1887af}.reading-load-bars article>span{text-align:right}.reading-load-bars article>span>strong{font-size:1.35rem}@media(max-width:600px){.reading-load-bars article{grid-template-columns:75px minmax(0,1fr) 85px;gap:.5rem}.reading-load-bars small{font-size:.72rem}}

.pace-inline-select{width:55px!important;min-width:0!important;max-width:55px!important;padding:0 2px!important;height:26px!important;line-height:normal;background:transparent;border:1px solid #b5c5cc;border-radius:2px;color:inherit;font:inherit;font-weight:inherit;cursor:pointer}.pace-inline-select:focus-visible{outline:2px solid #1887af;outline-offset:2px}.pace-card-heading{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.pace-card-content{min-width:0}.pace-card-secondary{border-top:1px solid #dce7eb;margin-top:.5rem;padding-top:.35rem}.pace-signal-card .signal-ring{flex-shrink:0}.pace-signal-card small{line-height:1.35}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Investor and learner overview: essential numbers first, detail on demand. */
.dashboard-title-row h1{font-size:clamp(1.7rem,3.5vw,2.8rem);line-height:1.15;letter-spacing:-.035em}.evidence-status{display:flex;align-items:baseline;gap:1rem;padding:1rem 1.2rem;margin-bottom:1rem;border:1px solid #b5d4de;border-left:4px solid #1689ac;border-radius:10px;background: var(--panel-soft)}.evidence-status span{font-size:.95rem;color: var(--muted)}.dashboard-stat-grid,.visual-signal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.question-groups{padding:1rem 1.2rem;margin:1rem 0}.question-groups summary,.scheduling-detail summary{font-weight:700;cursor:pointer;color: var(--ink)}.question-group-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.question-group-grid p{font-size:.95rem}.scheduling-detail{margin:1rem 0}.validation-plan{margin:1.5rem 0;padding:1.5rem}.validation-plan h2{margin:.35rem 0 .75rem;font-size:clamp(1.5rem,3vw,2rem)}.validation-plan p{line-height:1.6;color: var(--muted);font-size:1rem}.validation-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-top:1rem}.validation-grid article{border-top:2px solid #1887af;padding-top:1rem}.validation-grid h3{font-size:1.1rem;margin:0 0 .5rem}.architecture-strip>p{line-height:1.5;color: var(--muted)}.progress-score-change strong{font-size:1.65rem}.recall-next-card a{display:inline-block;margin-top:.5rem}.signal-card small{font-size:.875rem}.reading-load-bars small{font-size:.875rem}.dashboard-stat-grid small{font-size:.875rem}.pace-signal-card .pace-inline-select{font-size:inherit}@media(max-width:900px){.dashboard-stat-grid,.visual-signal-grid{grid-template-columns:1fr 1fr}.evidence-status{display:grid;gap:.4rem}}@media(max-width:600px){.dashboard-stat-grid,.visual-signal-grid,.validation-grid,.question-group-grid{grid-template-columns:1fr}.dashboard-title-row h1{font-size:1.8rem}.evidence-status{padding:.9rem}.signal-card{min-height:130px}.reading-load-bars small{font-size:.8rem}.progress-score-change strong{font-size:1.4rem}}

.recall-timing-choice { grid-template-columns: auto auto minmax(0, 420px); align-items: center; justify-content: start; }
.recall-timing-choice .pace-inline-select { width: auto; padding: .15rem .3rem; border-radius: 3px; }
.recall-timing-choice > span { grid-column: 1 / -1; }
@media(max-width: 600px) { .recall-timing-choice { grid-template-columns: auto 1fr; } .recall-timing-choice #recall-timer-mode { grid-column: 1 / -1; } .recall-timing-choice .pace-inline-select { justify-self: start; } }

/* A quiet closing boundary for the public product page. */
.investor-home-workspace .exam-family-chips { grid-column: 1 / -1; justify-content: flex-start; }
.investor-footer { margin-top: 1.5rem; background: var(--navy-950); color: #d5e4ed; border-top: 3px solid var(--sky-500); }
.investor-footer-inner { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 2.25rem 0 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.investor-footer a { color: #d5e4ed; text-decoration: none; }
.investor-footer a:hover { color: white; text-decoration: underline; text-underline-offset: .25rem; }
.investor-footer a:focus-visible { outline: 2px solid #77d2f4; outline-offset: 5px; border-radius: 2px; }
.investor-footer .investor-footer-brand { color: white; font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; }
.investor-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .95rem; }
.investor-footer small { flex-basis: 100%; padding-top: 1.25rem; border-top: 1px solid #365768; font-size: .875rem; color: #b7cedb; }
@media (max-width: 640px) { .investor-footer-inner { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; gap: 1.25rem; } .investor-footer nav { gap: .8rem 1.2rem; } .investor-footer small { width: 100%; } }

.proof-grid em, .path-label { font-size: .875rem; }
.investor-footer nav a { padding: .3rem 0; }
.load-error { width: min(100% - 32px, 680px); margin: 3rem auto; line-height: 1.6; }
.load-error .button { margin: .5rem .5rem 0 0; }

.workspace-study-actions { display:flex; flex-wrap:wrap; gap:.65rem; justify-content:flex-end; }
.takeaway-save-note { margin:.4rem 0 1rem; color: var(--muted); font-size:.9rem; line-height:1.5; }
.takeaway-save-feedback p:empty{display:none}.takeaway-save-feedback p{margin:.4rem 0;overflow-wrap:anywhere}.takeaway-save-feedback [hidden]{display:none!important}
.takeaway-save-note a { color: var(--muted); font-weight:700; text-underline-offset:.2rem; }
.review-sheet-workspace { width:min(1040px, calc(100% - 32px)); padding-bottom:3rem; }
.review-sheet-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:2rem; margin:1rem 0 1.5rem; }
.review-sheet-heading h1 { margin:.3rem 0 .75rem; color: var(--ink); font-size:clamp(1.8rem,4vw,2.8rem); line-height:1.15; letter-spacing:-.035em; }
.review-sheet-heading p { max-width:720px; font-size:1rem; line-height:1.6; color: var(--muted); }
.review-sheet-heading > button { flex-shrink:0; }
.review-sheet-controls { position:sticky; top:.5rem; z-index:5; padding:1rem; border:1px solid #b5d4de; box-shadow:0 4px 16px #082f4910; }
.review-sheet-modes { display:flex; flex-wrap:wrap; gap:.5rem; }
.review-sheet-modes button { border:1px solid #b5d4de; border-radius:7px; padding:.65rem 1rem; background: var(--panel-soft); color: var(--ink); font:inherit; font-weight:700; cursor:pointer; }
.review-sheet-modes button[aria-pressed="true"] { color:white; background:#0f4b6b; border-color:#0f4b6b; }
.review-sheet-filter-row { display:flex; flex-wrap:wrap; gap:1rem; align-items:end; margin-top:1rem; }
.review-sheet-filter-row label { display:grid; gap:.4rem; font-size:.9rem; font-weight:700; color: var(--ink); }
.review-sheet-filter-row select,.review-sheet-filter-row input[type="search"] { width:100%; min-height:42px; border:1px solid #a6bfcb; border-radius:7px; padding:.55rem .7rem; font:inherit; color: var(--ink); background: var(--panel); }
.review-sheet-filter-row > label:first-child { flex:1 1 230px; }
.review-sheet-filter-row .review-sheet-reason-filter { flex:1 1 260px; min-width:0; max-width:100%; }
#sheet-reason { min-width:0; max-width:100%; }
#sheet-reason-summary { overflow-wrap:anywhere; }
@media(max-width:720px) { .review-sheet-controls { position:static; } }
.review-sheet-filter-row .review-sheet-search { flex:2 1 260px; }
.review-sheet-filter-row .review-sheet-missed { display:flex; align-items:center; gap:.5rem; min-height:42px; font-weight:600; }
.review-sheet-missed input { width:18px; height:18px; accent-color:#0f4b6b; }
.review-sheet-mode-note,.review-sheet-count { font-size:.9rem; line-height:1.5; color: var(--muted); }
.review-sheet-count { font-weight:700; color: var(--ink); }
.review-sheet-list { display:grid; gap:1rem; }
.review-sheet-entry { padding:1.3rem 1.5rem; border:1px solid #cddfe6; box-shadow:none; }
.review-sheet-entry > header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.review-sheet-source { color: var(--muted); font-size:.9rem; }
.review-sheet-entry h2 { margin:.35rem 0; font-size:1.15rem; color: var(--ink); }
.review-sheet-entry small { font-size:.875rem; color: var(--muted); }
.review-sheet-entry header .button { padding:.45rem .75rem; min-height:40px; font-size:.9rem; flex-shrink:0; }
.review-sheet-own-note,.review-sheet-prepared { margin-top:1rem; padding-top:1rem; border-top:1px solid #dbe7ed; }
.review-sheet-section-title { display:flex; flex-wrap:wrap; gap:.5rem 1rem; align-items:baseline; }
.review-sheet-own-note strong,.review-sheet-prepared > strong { color: var(--ink); font-size:.9rem; }
.review-sheet-entry p { line-height:1.65; margin:.5rem 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.review-sheet-takeaway { border-left:3px solid #1689ac; padding-left:.9rem; font-size:1.05rem; color: var(--ink); }
.review-sheet-reason { font-size:.9rem; color: var(--muted); }
.review-sheet-reason span { font-weight:700; }
.review-sheet-answer { font-weight:700; }
.review-sheet-muted,.review-sheet-storage-note { color: var(--muted); font-size:.9rem; line-height:1.6; }
.review-sheet-storage-note { margin-top:1.5rem; }
.review-sheet-empty { padding:1.5rem; line-height:1.6; }
.review-sheet-empty h2 { font-size:1.3rem; }
.review-sheet-last-pass { padding-block:1rem; }
.review-sheet-last-pass .review-sheet-own-note { margin-top:.65rem; padding-top:.65rem; }
.review-sheet-other-notes { margin-top:.65rem; color:var(--ink); }
.review-sheet-other-notes > summary { width:fit-content; padding:.35rem 0; font-size:.9rem; font-weight:600; cursor:pointer; }
.review-sheet-other-notes > summary:focus-visible { outline-offset:3px; }
.review-sheet-filter-row > label { min-width:0; }
html[data-review-density="compact"] .review-sheet-heading > div > p:not(.eyebrow) { display:none; }
html[data-review-density="compact"] .review-sheet-heading { margin-block:.75rem; }
html[data-review-density="compact"] .review-sheet-controls { padding:.75rem; }
html[data-review-density="compact"] .review-sheet-filter-row { gap:.65rem; margin-top:.75rem; }
@media(max-width:640px) {
 .workspace-study-actions { justify-content:flex-start; }
 .review-sheet-heading { flex-direction:column; gap:.6rem; }
 .review-sheet-controls { position:static; }
 .review-sheet-modes { display:grid; grid-template-columns:1fr 1fr; }
 .review-sheet-modes button { padding:.65rem .35rem; font-size:.9rem; }
 .review-sheet-entry { padding:1rem; }
 .review-sheet-entry > header { flex-direction:column; gap:.75rem; }
 .review-sheet-filter-row > label { flex-basis:100%; }
}
@media print {
 .review-sheet-shell .topbar,.review-sheet-controls,.review-sheet-heading > button,.review-sheet-entry header .button { display:none !important; }
 .review-sheet-shell { background: var(--panel); }
 .review-sheet-workspace { width:100%; padding:0; margin:0; }
 .review-sheet-list { display:block; }
 .review-sheet-entry { break-inside:avoid; margin-bottom:1rem; padding:1rem 0; border:0; border-bottom:1px solid #aaa; }
 .review-sheet-heading h1 { font-size:24pt; }
 .review-sheet-entry p { color: var(--ink); }
}

.review-sheet-attempt-link { color: var(--muted); font-size:.875rem; text-underline-offset:.2rem; }
.review-sheet-attempt-link:hover { color: var(--muted); }
@media print { .review-sheet-attempt-link { text-decoration:none; } }

.miss-reason-card > label { display:block; margin:.5rem 0; color: var(--ink); font-weight:700; }
.miss-reason-card .miss-reason-trigger { width:100%; }

/* Keep review outcomes scannable; supporting evidence stays available on demand. */
.first-review-result { margin: 16px 0 12px; line-height: 1.6; }
.first-review-result > strong { color: var(--ink); font-size: 1.5rem; }
.dashboard-evidence-details { margin-top: 12px; font-size: 1rem; line-height: 1.6; }
.dashboard-evidence-details > summary { width: fit-content; color: var(--ink); cursor: pointer; font-size: .875rem; font-weight: 600; }
.dashboard-evidence-details > summary:focus-visible { outline: 2px solid #139ccc; outline-offset: 4px; }
.dashboard-evidence-details p { margin: 10px 0; }
.reason-pattern-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; }
.reason-evidence-list .reason-pattern-summary > span { margin: 0; color: var(--muted); }
.reason-question-list { margin: 12px 0; padding-left: 22px; }
.reason-question-list li { margin: 8px 0; }
.reason-question-list a { display: inline-block; padding: 4px 2px; text-decoration: underline; color: var(--ink); }

.scheduling-detail > summary { padding: 10px 0; min-height: 44px; box-sizing: border-box; }
.scheduling-detail > summary:focus-visible { outline: 2px solid #139ccc; outline-offset: 4px; }
.scheduling-explanation { margin: 8px 0 16px; padding: 14px 18px; border-left: 3px solid #1887af; background: var(--panel-soft); }
.scheduling-explanation p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.scheduling-explanation p + p { margin-top: 12px; }

.reading-target-control { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; white-space: nowrap; }
.reading-observation { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid #1887af; background: var(--panel-soft); font-size: 1rem; line-height: 1.6; }

.reading-target-input { width: 72px; min-width: 0; padding: 2px 4px; border: 1px solid #b5c5cc; border-radius: 2px; background: transparent; color: inherit; font: inherit; font-size: 1rem; }
.reading-target-input:focus-visible { outline: 2px solid #1887af; outline-offset: 2px; }

.roadmap-status { display: block; margin-bottom: 10px; color: var(--ink); font-size: .875rem; font-weight: 700; }

.product-roadmap > p { max-width: 82ch; }
.roadmap-group-title { margin: 24px 0 16px; font-size: 1.125rem; }
.roadmap-priority-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.roadmap-priority-grid article { border-top: 2px solid #1887af; padding-top: 16px; min-width: 0; }
.roadmap-priority-grid h3 { margin: 0 0 10px; font-size: 1.125rem; line-height: 1.4; }
.product-roadmap .roadmap-benefit { color: var(--ink); margin-bottom: 0; }
.roadmap-exploration { margin-top: 32px; padding: 24px; border-radius: 12px; background: var(--panel-soft); }
.roadmap-exploration > h3 { margin: 0 0 20px; font-size: 1.25rem; }
.roadmap-exploration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.roadmap-exploration-grid h4 { margin: 0 0 10px; font-size: 1rem; line-height: 1.5; }
.roadmap-exploration-grid p { margin-bottom: 0; }
.product-roadmap .roadmap-footnote { margin: 20px 0 0; font-size: .875rem; max-width: none; }
@media (max-width: 900px) { .roadmap-exploration-grid { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 600px) { .roadmap-priority-grid { grid-template-columns: 1fr; } .roadmap-exploration { padding: 20px 16px; } }

.account-sync-status { position: fixed; z-index: 100; bottom: 12px; right: 16px; padding: 6px 10px; border: 1px solid #c2d4db; border-radius: 6px; background: var(--panel); color: var(--muted); font: inherit; font-size: .875rem; box-shadow: 0 2px 8px #092f4010; }
.account-sync-status.needs-attention { border-color: #bc831c; color: #714c09; }
.account-sync-status:focus-visible { outline: 2px solid #1887af; outline-offset: 3px; }
.account-sync-status { max-width:calc(100vw - 32px); }
#home-sample-sets, #recall-queue, #insights-empty-state, #ai-coach, #requested-charts, .dashboard-comparison { scroll-margin-top:84px; }
.sync-conflict-dialog { max-width: min(600px, calc(100vw - 32px)); padding: 28px; border: 1px solid #b5c5cc; border-radius: 12px; color: var(--ink); }
.sync-conflict-dialog::backdrop { background: #092f4070; }
.sync-conflict-dialog h2 { font-size: 1.5rem; margin-top: 0; }
.sync-conflict-dialog p { font-size: 1rem; line-height: 1.6; }
.sync-conflict-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sync-conflict-actions button { padding: 10px 12px; font: inherit; border: 1px solid #b5c5cc; border-radius: 6px; background: var(--panel-soft); cursor: pointer; }
@media print { .account-sync-status, .sync-conflict-dialog { display: none !important; } }

.public-exam-access { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 20px; padding: 8px 20px; border-bottom: 1px solid #ffffff26; }
.public-exam-access a { font-size: .875rem; color: #e5f5fc; font-weight: 700; text-decoration: none; padding: 4px; }
.public-exam-access a:hover { text-decoration: underline; }
.public-exam-access a:focus-visible { outline: 2px solid #8bd4f4; outline-offset: 2px; }

.site-feedback-launcher { min-height: 44px; padding: 8px 12px; font: inherit; font-size: .875rem; cursor: pointer; background: transparent; }
body > .site-feedback-launcher { margin: 12px 16px; color: var(--ink); border-color: #c2d4db; }

.exam-name .site-feedback-launcher { display: block; margin: 4px auto 0; }
.site-feedback-launcher:focus-visible { outline: 2px solid #1887af; outline-offset: 3px; }
.site-feedback-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; overflow: auto; border: 1px solid #b5c5cc; border-radius: 14px; color: var(--ink); }
.site-feedback-dialog::backdrop { background: #092f4070; }
.site-feedback-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; touch-action:none; position:sticky; top:0; z-index:2; background:var(--panel); padding-bottom:12px; }
.site-feedback-head h2 { margin: 0; font-size: 1.5rem; }
.site-feedback-head button { border: 0; background: transparent; font-size: 1.75rem; min-width: 44px; min-height: 44px; cursor: pointer; }
.site-feedback-dialog p { font-size: 1rem; line-height: 1.5; }
.site-feedback-dialog label { display: grid; gap: 8px; margin: 16px 0; font-size: 1rem; font-weight: 600; }
.site-feedback-dialog label > span { font-weight: 400; }
.site-feedback-dialog input:not([type=checkbox]), .site-feedback-dialog textarea, .site-feedback-dialog select { width: 100%; padding: 10px 12px; border: 1px solid #b5c5cc; border-radius: 6px; color: inherit; font: inherit; background: var(--panel); }
.site-feedback-dialog textarea { resize: vertical; }
.site-feedback-dialog .feedback-context-option { display: flex; align-items: start; gap: 10px; font-size: .875rem; }
.feedback-context-option input { margin-top: 4px; flex: 0 0 auto; }
.site-feedback-dialog .feedback-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.site-feedback-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.site-feedback-status { min-height: 24px; }
.feedback-inbox-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.feedback-inbox-heading h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 8px; }
.feedback-report { padding: 24px; margin-bottom: 20px; }
.feedback-report header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 16px; }
.feedback-report-kind { font-weight: 700; font-size: 1rem; }
.feedback-report header p, .feedback-report-meta { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.feedback-report-message { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 1rem; }
.feedback-report select { padding: 6px; margin-left: 8px; font: inherit; }
.feedback-error { color: #a52a3e; font-size: 1rem; }
@media print { .site-feedback-launcher, .site-feedback-dialog { display: none !important; } }

.evidence-sort-heading { display:flex; align-items:center; gap:8px; width:100%; min-height:44px; border:0; padding:0; background:transparent; color:inherit; font:inherit; font-weight:inherit; text-align:left; cursor:pointer; white-space:nowrap; }
.evidence-sort-heading span { font-size:11px; opacity:.7; }
.evidence-sort-heading:focus-visible { outline:2px solid #1596ca; outline-offset:3px; border-radius:3px; }
.dashboard-table th[aria-sort="ascending"], .dashboard-table th[aria-sort="descending"] { color: var(--muted); }

.results-table-controls { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 12px; }
.review-table th[aria-sort="ascending"], .review-table th[aria-sort="descending"] { color: var(--muted); }

.challenge-choice-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.demo-path-card .challenge-choice-actions { margin-top:auto; }
.clinical-reference-card a { display:block; color: var(--muted); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }

.question-quality-plan { margin-top: 28px; padding: 22px 24px; border: 1px solid #bdd8e4; border-radius: 12px; background: var(--panel-soft); }
.question-quality-plan h3 { margin: 0 0 14px; font-size: 1.125rem; }
.question-quality-plan ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; padding-left: 22px; margin: 0 0 16px; }
.question-quality-plan li { padding-left: 3px; line-height: 1.6; }
.question-quality-plan p { margin: 0; }
.market-context > p { max-width: 85ch; }
.market-estimates { margin-top: 20px; }
.market-estimates summary { cursor: pointer; color: var(--ink); font-weight: 700; line-height: 1.5; }
.market-estimates summary:focus-visible { outline: 2px solid #1887af; outline-offset: 4px; }
.market-estimates p { margin-top: 16px; max-width: 95ch; }
.market-estimates a { color: var(--ink); text-decoration: underline; }
@media (max-width: 600px) { .question-quality-plan { padding: 20px 16px; } .question-quality-plan ol { grid-template-columns: 1fr; } }

.expert-review-roadmap { margin-top: 28px; border-top: 2px solid #1887af; padding-top: 20px; }
.expert-review-roadmap h3 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.4; }
.expert-review-roadmap p { max-width: 90ch; }

.product-vision { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: 24px 40px; align-items: center; margin-top: 24px; padding: clamp(24px, 4vw, 36px); border-left: 4px solid #1887af; }
.product-vision .eyebrow { color: #1887af; }
.product-vision h2 { margin: 0; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.product-vision > p { margin: 0; line-height: 1.65; }
@media (max-width: 760px) { .product-vision { grid-template-columns: 1fr; gap: 16px; } }

/* Study-material question builder */
.import-dialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.import-dialog [hidden] { display: none !important; }
.builder-mode { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.builder-fields { display: grid; align-items: start; grid-template-columns: minmax(0, 2fr) minmax(90px, .7fr) minmax(110px, 1fr); gap: 14px; }
.builder-fields .import-field { min-width: 0; align-content: start; }
.import-field textarea, .import-field select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #b8c9d4; border-radius: 9px; background: var(--panel-soft); color: var(--ink); font: inherit; font-weight: 400; line-height: 1.5; }
.import-field textarea { resize: vertical; }
.import-field input { min-width: 0; width: 100%; font-size: 1rem; }
.import-field small { font-size: .875rem; line-height: 1.5; }
.builder-recording { padding: 16px; border: 1px solid var(--line); border-radius: 10px; margin: 16px 0; }
.builder-recording summary, .import-preview-questions summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.builder-plan { padding: 14px; background: var(--panel-soft); border-radius: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.import-preview-questions p { overflow-wrap: anywhere; }
@media (max-width: 600px) { .builder-fields { grid-template-columns: 1fr; gap: 0; } }

.builder-natural { padding: 18px; margin: 18px 0; border: 1px solid #b6dce9; border-radius: 12px; background: var(--panel-soft); }
.builder-natural h3 { margin: 0; font-size: 1.125rem; }
.import-dialog fieldset.builder-natural { padding: 18px; border: 1px solid #b6dce9; }
.builder-scope { margin: 20px 0 12px; }
.builder-scope h3 { margin: 0 0 8px; font-size: 1.125rem; }
.builder-scope .builder-capacity { margin-bottom: 8px; }
.bank-generation-selection { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
.bank-generation-selection p { white-space: pre-line; overflow-wrap: anywhere; margin: 8px 0; }
.bank-scope-subject { margin:12px 0; overflow-wrap:anywhere; }
.bank-scope-subject + .bank-scope-subject { padding-top:12px; border-top:1px solid var(--line); }
.bank-scope-subject h3 { font-size:1rem; margin:0; }
.bank-scope-subject ul { margin:6px 0 10px; padding-left:22px; }
.bank-scope-subject li + li { margin-top:4px; }
.library-workspace .workspace-welcome h1 { font-size:clamp(1.7rem,3vw,2.2rem); letter-spacing:-.03em; }
.bank-heading h2 { font-size:clamp(1.3rem,2.5vw,1.7rem); margin:8px 0; line-height:1.25; }
.bank-empty-note { margin:20px 0 0; color:var(--muted); }
@media(max-width:650px){.library-workspace .workspace-welcome { align-items:flex-start; flex-direction:column; gap:14px; }.library-workspace .workspace-welcome .button { width:100%; }}
.bank-generation .builder-scope > .builder-fields { grid-template-columns: 1fr 1fr; }
.bank-generation .builder-scope { margin-top: 12px; }
.bank-generation .builder-plan { display: none; }
.bank-source-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0 8px; }
.bank-source-controls label { display: grid; gap: 6px; font-weight: 650; flex: 1 1 180px; }
.bank-source-controls select { width: 100%; min-height: 44px; background: var(--panel-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
.bank-source-note { color: var(--muted); line-height: 1.5; }
.bank-review-status { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-block: 1rem; }
.bank-review-status p { margin-block: .5rem; }
.bank-review-status summary { cursor: pointer; }
.bank-question-review-status { color: var(--muted); font-size: .875rem; margin: 0 0 12px; }
@media (max-width: 600px) { .bank-generation .builder-scope > .builder-fields { grid-template-columns: 1fr; } }
.builder-natural [role=status]:empty { display: none; }
.builder-refine > summary { cursor: pointer; font-weight: 750; color: var(--ink); margin: 16px 0; }
.builder-natural [role=status], .builder-recording [role=status] { line-height: 1.5; font-size: .95rem; }

.builder-material { margin: 18px 0; }
.builder-material > summary, .builder-refine > summary { cursor: pointer; color: var(--ink); font-weight: 700; padding: 12px 0; }
.optional-label { margin-left: 6px; font-size: .875rem; font-weight: 400; color: var(--muted); }
.upload-use-note, .builder-review-note { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.builder-natural { margin-bottom: 8px; }

.attempt-confidence-control { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; font-size: .9375rem; }
.attempt-confidence-control input { width: 76px; min-height: 36px; border: 1px solid #9eb7c5; border-radius: 6px; padding: 6px 8px; font: inherit; }
.attempt-confidence-control small { color: var(--muted); font-size: .875rem; }
.confidence-summary { padding: 24px; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.confidence-summary h2 { margin: 8px 0 20px; font-size: 1.4rem; }
.confidence-comparison { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.confidence-comparison strong { display: block; color: var(--ink); font-size: 1.8rem; }
.confidence-comparison span { color: var(--muted); }
.confidence-summary p { line-height: 1.5; }
.confidence-summary summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.confidence-summary table { width: 100%; margin-top: 16px; border-collapse: collapse; }
.confidence-summary th,.confidence-summary td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.confidence-chart { --confidence-label-width:125px; --confidence-value-width:100px; margin:24px 0 16px; padding:20px; background: var(--panel); border:1px solid var(--line); border-radius:10px; }
.confidence-chart figcaption { display:grid; gap:5px; margin-bottom:18px; color: var(--ink); }
.confidence-chart figcaption span,.confidence-chart-label small,.confidence-chart-value small { display:block; font-size:.875rem; color:var(--muted); line-height:1.4; }
.confidence-chart-axis { display:flex; justify-content:space-between; margin:0 calc(var(--confidence-value-width) + 16px) 4px calc(var(--confidence-label-width) + 16px); color:var(--muted); font-size:.75rem; }
.confidence-chart-row { display:grid; grid-template-columns:var(--confidence-label-width) minmax(0,1fr) var(--confidence-value-width); gap:16px; align-items:center; padding:10px 0; }
.confidence-chart-label strong,.confidence-chart-value strong { color: var(--ink); }
.confidence-chart-value { text-align:right; font-variant-numeric:tabular-nums; }
.confidence-chart-track { position:relative; height:22px; background: var(--panel-soft); border-radius:4px; overflow:hidden; }
.confidence-chart-track::after { content:""; position:absolute; inset:0 auto 0 50%; border-left:1px dashed #8ca5b5; }
.confidence-chart-track > span { display:block; height:100%; background:#176f98; }
.confidence-chart-empty .confidence-chart-track { background:transparent; border:1px dashed #c8d8e1; }
.confidence-chart-empty .confidence-chart-track::after { display:none; }
.confidence-chart-note { font-size:.875rem; color:var(--muted); }
@media (max-width:600px) {
  .confidence-chart { --confidence-value-width:68px; padding:14px 10px; }
  .confidence-chart-row { grid-template-columns:minmax(0,1fr) var(--confidence-value-width); gap:8px; }
  .confidence-chart-label { grid-column:1/-1; display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
  .confidence-chart-axis { margin-left:0; margin-right:calc(var(--confidence-value-width) + 8px); }
  .confidence-chart-label,.confidence-chart-value { font-size:.875rem; }
  .confidence-chart-label small,.confidence-chart-value small { font-size:.75rem; }
}
@media (hover: none) { .choice-row-hit:hover { background: transparent; } }
@media (max-width: 600px) { .confidence-comparison { grid-template-columns: 1fr; } .confidence-summary { padding: 18px; } .confidence-summary table { font-size: .875rem; } }

.attempt-confidence-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.attempt-confidence-buttons .confidence-button { min-height: 44px; min-width: 84px; padding: 7px 12px; }
.attempt-confidence-buttons .confidence-button small { display: block; font-size: .875rem; color: inherit; }
.attempt-confidence-buttons .confidence-button:disabled { opacity: .5; cursor: default; }
.attempt-confidence-buttons [data-attempt-confidence="0"] { color: #9f1239; background: #fff1f2; border-color: #e6b4c0; }
.attempt-confidence-buttons [data-attempt-confidence="33"] { color: #805400; background: #fff8e7; border-color: #d9c28a; }
.attempt-confidence-buttons [data-attempt-confidence="66"] { color: var(--muted); background: var(--panel-soft); border-color: #9ec7df; }
.attempt-confidence-buttons [data-attempt-confidence="100"] { color: var(--ink); background: var(--panel-soft); border-color: #9cccb0; }
.attempt-confidence-buttons [data-attempt-confidence="0"].selected { background: #9f1239; color: white; border-color: #9f1239; }
.attempt-confidence-buttons [data-attempt-confidence="33"].selected { background: #805400; color: white; border-color: #805400; }
.attempt-confidence-buttons [data-attempt-confidence="66"].selected { background: #075985; color: white; border-color: #075985; }
.attempt-confidence-buttons [data-attempt-confidence="100"].selected { background: #166534; color: white; border-color: #166534; }
.attempt-confidence-buttons .confidence-button:focus-visible { outline: 2px solid #142f40; outline-offset: 3px; }

.attempt-confidence-buttons [data-attempt-confidence="50"] { color: #805400; background: #fff8e7; border-color: #d9c28a; }
.attempt-confidence-buttons [data-attempt-confidence="50"].selected { color: white; background: #805400; border-color: #805400; }

.removed-attempts { padding: 20px 24px; margin: 16px 0; }
.removed-attempts summary { cursor: pointer; font-weight: 700; }
.removed-attempt-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); }
.removed-attempt-row small { display:block; margin-top:4px; }

.attempt-insights { margin:24px 0; padding:24px; border:1px solid var(--line); border-radius:14px; background: var(--panel-soft); }
.attempt-insights h2 { font-size:1.4rem; margin:6px 0 20px; }
.attempt-insight-signals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.attempt-insight-signals article { display:flex; flex-direction:column; gap:6px; }
.attempt-insight-signals article>strong { font-size:1.8rem; color: var(--ink); }
.attempt-insight-signals small,.attempt-insight-note { color:var(--muted); font-size:.875rem; line-height:1.5; }
.attempt-insight-details details,.attempt-navigation-details { padding:16px 0; border-top:1px solid var(--line); }
.attempt-insight-details summary,.attempt-navigation-details>summary { font-weight:700; cursor:pointer; color: var(--ink); }
.attempt-insight-details p { line-height:1.5; font-size:.9375rem; }
.attempt-insight-details p small { display:block; }
.attempt-insight-bar { display:grid; grid-template-columns:100px minmax(60px,1fr) 100px; align-items:center; gap:12px; margin:12px 0; }
.attempt-insight-bar small { display:block; font-size:.875rem; }
.attempt-insight-track { height:14px; background: var(--panel-soft); border-radius:5px; overflow:hidden; }
.attempt-insight-track i { display:block; height:100%; background:#1689ac; }
.attempt-reading-controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:16px 0; }
.attempt-reading-controls input { width:80px; }
.attempt-reading-controls input,.attempt-reading-controls select { padding:6px 8px; border:1px solid var(--line); border-radius:6px; font:inherit; }
@media(max-width:600px) { .attempt-insights { padding:18px; } .attempt-insight-signals { grid-template-columns:1fr; } .attempt-insight-bar { grid-template-columns:85px minmax(35px,1fr) 85px; gap:8px; font-size:.875rem; } }

/* Completion embeds the same insight cards as the selected-attempt dashboard. */
.completed-insights-heading { margin:28px 0 18px; }
.completed-insights-heading h2 { margin:6px 0 10px; color: var(--ink); }
.completed-insights-heading > p:last-child { margin:0; color:var(--muted); line-height:1.5; }
.completed-attempt-insights .custom-charts-section { margin:18px 0; }
.completed-attempt-insights > section { margin: 1.5rem 0; }
.completed-attempt-insights .visual-signal-grid { grid-template-columns: minmax(0,1fr); }
.completed-attempt-insights .dashboard-panel { padding: 1.5rem; }
@media(max-width:600px) { .completed-attempt-insights .visual-signal-grid {grid-template-columns:1fr;} }

.practice-setup{border:0;padding:0;margin:1.5rem 0}.practice-setup legend{font-weight:700;margin-bottom:.75rem}.practice-mode-options{display:grid;gap:.75rem}.practice-mode-options>label{display:flex;gap:.75rem;padding:1rem;border:1px solid #bfd0db;border-radius:10px;cursor:pointer}.practice-mode-options input{margin-top:.3rem;accent-color:#1596c4}.practice-mode-options strong,.practice-mode-options small{display:block}.practice-mode-options small{margin-top:.3rem;font-size:.875rem;line-height:1.45;color: var(--muted)}.practice-aid-options{padding:1rem;background: var(--panel-soft);border-radius:10px;margin-top:.75rem}.practice-aid-options label{display:flex;align-items:center;gap:.6rem;margin:.6rem 0}.practice-aid-options[hidden]{display:none}.exam-simulation .public-exam-access{display:none!important}

.exam-simulation .review-score{display:none}

.dashboard-evidence-summary{cursor:pointer;font-size:1.1rem;color: var(--ink)}.dashboard-evidence-summary span{font-size:.875rem;font-weight:400;margin-left:1rem;color:var(--muted)}.dashboard-evidence-card[open] .dashboard-evidence-summary{margin-bottom:1.25rem}

.results-question-details{margin-top:1.5rem}.results-question-details>summary{font-size:1.1rem;font-weight:700;color: var(--ink);cursor:pointer}.results-question-details[open]>summary{margin-bottom:1rem}

/* Question controls stay in normal flow below the variable-height exam header. */
.question-status-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; }
.question-item-clock { display:inline-flex; gap:8px; align-items:center; font-size:.875rem; color: var(--ink); font-variant-numeric:tabular-nums; }
.question-item-clock strong { font-size:1rem; }
.question-tool-row { flex-wrap:wrap; }
.reading-controls { flex-wrap:wrap; }
.navigator { position:static; }
.question-grid { max-height:50vh; overflow:auto; overscroll-behavior:contain; }
@media (max-width:700px) { .question-grid { min-width:0; grid-template-columns:repeat(5,minmax(44px,1fr)); } }

.coach-include-review { display:inline-flex; align-items:center; gap:8px; font-size:.95rem; }
.coach-include-review input { width:18px; height:18px; accent-color:var(--sky-500); }
.results-body > .performance-coach-card { margin:20px 0 28px; }
.attempt-strategy-details { margin:20px 0; }
.attempt-strategy-details > summary,.coach-question-library > summary,.coach-saved-analyses > summary { cursor:pointer; color: var(--ink); font-weight:700; padding:10px 0; }
.attempt-strategy-details .coaching-loop-card { margin-top:12px; }
.coach-status:empty { display:none; }

.section-visibility-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:18px 0; padding-bottom:12px; border-bottom:1px solid var(--line); }
.section-visibility-controls > span { font-weight:700; color: var(--ink); }
.section-visibility-controls .button { min-height:36px; padding:6px 10px; }
.section-visibility-controls small { color:var(--muted); font-size:.875rem; }

.section-visibility-controls .button[aria-pressed="true"] { background:var(--navy-800, #104d6a); color:#fff; border-color:var(--navy-800, #104d6a); }

.section-visibility-controls { gap:6px 10px; margin:12px 0; padding-bottom:10px; }
.section-visibility-controls > span { font-size:.875rem; color:var(--muted); font-weight:600; }
.section-visibility-controls .button { min-height:32px; padding:4px 9px; font-size:.875rem; box-shadow:none; }
.completed-attempt-insights .dashboard-stat-grid { display:flex; flex-wrap:wrap; gap:12px; }
.completed-attempt-insights .dashboard-stat-grid article { flex:1 1 220px; padding:16px 20px; }
.completed-attempt-insights .dashboard-stat-grid strong { font-size:1.6rem; }

/* Shared footer stays outside client-rendered page content and ends at the safe area. */
html:has(body > .site-footer),
body:has(> .site-footer) { background:var(--navy-950); }
body:has(> .site-footer) { display:flex; flex-direction:column; }
.site-content {
  flex:1;
  background:linear-gradient(180deg, #e4edf2 0, var(--page) 220px), var(--page);
}
.investor-home-workspace { padding-bottom:24px; }
.site-footer { margin-top:0; padding-bottom:env(safe-area-inset-bottom, 0px); }
.site-footer .investor-footer-inner { padding-top:24px; padding-bottom:16px; gap:16px 24px; }
.site-footer small { padding-top:16px; }
/* During a question attempt, keep copyright without unrelated navigation. */
body:has(.exam-shell) > .site-footer nav,
body:has(.exam-shell) > .site-footer .investor-footer-brand { display:none; }
body:has(.exam-shell) > .site-footer .investor-footer-inner { padding-top:12px; padding-bottom:12px; }
body:has(.exam-shell) > .site-footer small { border-top:0; padding-top:0; }

/* Data-dependent insight cards fill the available space as comparisons appear. */
.dashboard-stat-grid,
.visual-signal-grid,
.dashboard-chart-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.question-group-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

#selected-attempt-insights { scroll-margin-top: 90px; }

.recall-customization { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
.recall-customization summary { color: var(--ink); font-weight: 750; cursor: pointer; }
.recall-customization p { line-height: 1.5; }
.recall-customization form { display: grid; gap: 10px; }
.recall-customization textarea { width: 100%; padding: 12px; border: 1px solid #b9cad5; border-radius: 8px; font: inherit; resize: vertical; }
.recall-plan-actions,.recall-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.recall-quick-actions select { max-width: 100%; padding: 9px; border: 1px solid #b9cad5; border-radius: 8px; background: var(--panel); font: inherit; }
.recall-plan-preview { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.recall-plan-table { max-height: 320px; overflow: auto; }
.recall-plan-table table { width: 100%; border-collapse: collapse; }
.recall-plan-table th,.recall-plan-table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; }
.recall-plan-table th { background: var(--panel-soft); }
.scheduled-recall-list { margin: 16px 0; }
.scheduled-recall-list ul { max-height: 280px; overflow: auto; line-height: 1.7; }
/* Existing-question selection and the shared action assistant. */
.bank-heading { margin: 32px 0 24px; }
.bank-heading h1 { font-size: clamp(28px,4vw,42px); margin: 8px 0; }
.bank-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.bank-tabs > button { flex:1 1 190px; padding:14px 16px; border:1px solid #bbcdd8; border-radius:10px; background: var(--panel); color: var(--ink); text-align:left; font:inherit; cursor:pointer; }
.bank-tabs > button strong,.bank-tabs > button small { display:block; }
.bank-tabs > button small { margin-top:5px; color: var(--muted); font-size:13px; }
.bank-tabs > button[aria-selected="true"] { border-color:#1598cc; background: var(--panel-soft); box-shadow:inset 0 -3px #1598cc; }
.bank-tabs > button:focus-visible { outline:3px solid #1598cc; outline-offset:3px; }
.bank-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 24px; align-items: start; }
.bank-selection,.bank-block { padding: 24px; }
.bank-exam-label,.bank-block > label { display:block; font-weight:700; margin: 14px 0 8px; }
.bank-selection > select,.bank-selection > input,.bank-block > input { width:100%; padding:12px; border:1px solid #bbcdd8; border-radius:8px; font:inherit; background: var(--panel); }
.bank-filters { border:0; padding:0; margin:22px 0 12px; display:flex; gap:10px; flex-wrap:wrap; }
.bank-filters legend { font-weight:700; margin-bottom:10px; }
.bank-filters label { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid #d0dce4; border-radius:8px; cursor:pointer; }
.bank-filters label:has(input:checked), .bank-subject-row[data-topics-visible="true"] { background: var(--panel-soft); border-color:#1598cc; }
.bank-filters strong { margin-left:8px; color: var(--ink); }
.bank-status-help { margin:0 0 16px; color: var(--muted); font-size:14px; }
.bank-status-help summary { cursor:pointer; padding:8px 0; }
.bank-tree-hint { margin:0 0 16px; color: var(--muted); font-size:14px; }
.bank-tree-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:24px 0 12px; flex-wrap:wrap; }
.bank-tree-head h2 { margin:0; font-size:22px; }
.bank-search-label { display:block; margin-bottom:8px; }
.bank-tree { margin-top:16px; }
.bank-node { padding:8px 0; }
.bank-node-row { display:flex; align-items:flex-start; gap:10px; }
.bank-node-row > input { margin-top:13px; width:18px; height:18px; flex-shrink:0; }
.bank-branch { flex:1; min-width:0; }
.bank-branch summary { cursor:pointer; padding:11px 3px; min-height:44px; box-sizing:border-box; font-weight:650; }
.bank-leaf { display:flex; align-items:center; padding:11px 3px; min-height:44px; box-sizing:border-box; }
.bank-node-empty { color: var(--muted); }
.bank-branch summary > span,.bank-branch > small { color: var(--muted); font-weight:400; margin-left:10px; font-size:14px; }
.bank-branch > .bank-node { margin-left:14px; border-left:1px solid #dce6ec; padding-left:14px; }
.bank-block { position:sticky; top:24px; }
.bank-block small,.bank-block p { color: var(--muted); line-height:1.5; }
.bank-plan { border-top:1px solid #d9e4eb; margin-top:16px; padding-top:16px; }
.bank-plan .button { margin:6px 0; }
/* Keep the review filter and preview cancellation usable on touch screens. */
.bank-source-controls .bank-source-dependent label.bank-ai-provider-filter,
.bank-plan #bank-cancel { min-height:44px; }
.bank-empty { padding:22px 0; }
.bank-classification-note,.source-sets { margin:24px 0; }
.source-sets summary,.bank-classification-note summary { cursor:pointer; color: var(--ink); font-weight:650; }
.source-sets .form-library-grid { margin-top:20px; }
#saved-practice-items { display:grid; gap:12px; margin:16px 0; }
.saved-practice-panel { padding:24px; min-width:0; }
.saved-practice-controls { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:16px; margin-top:20px; }
.saved-practice-controls label { display:block; margin-bottom:6px; font-weight:650; }
.saved-practice-controls input,.saved-practice-controls select { width:100%; min-height:44px; min-width:0; }
.saved-practice-paging { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:20px; }
.saved-practice-paging select { min-height:44px; width:auto; }
.saved-practice-dates { display:flex; flex-wrap:wrap; gap:12px 28px; margin:12px 0 16px; }
.saved-practice-dates div { min-width:0; }
.saved-practice-dates dt { font-size:.85em; color:var(--muted); }
.saved-practice-dates dd { margin:2px 0 0; overflow-wrap:anywhere; }
.saved-practice-panel .saved-practice-row { box-shadow:none; margin:0; }
html[data-review-density="compact"] .saved-practice-panel { padding:16px; }
.saved-practice-row { min-width:0; padding:20px; }
.saved-practice-row h3 { margin:0 0 8px; overflow-wrap:anywhere; }
.saved-practice-row p { margin:0 0 16px; }
.saved-practice-actions { justify-content:flex-start; }
.saved-practice-actions > .button { min-height:44px; white-space:normal; overflow-wrap:anywhere; }
html[data-review-density="compact"] .saved-practice-row { padding:12px; }
.bank-error { padding:14px; background:#fff0f1; color:#9c3040; border-radius:8px; }
.bank-public { max-width:1280px; }
.action-launch { position:fixed; right:20px; bottom:70px; z-index:45; box-shadow:0 4px 16px #082e4930; }
.recall-stack-preparation { width:min(34rem,calc(100vw - 2rem)); max-height:calc(100dvh - 2rem); overflow:auto; color:var(--ink); background:var(--panel); }
.recall-stack-preparation [hidden] { display:none; }
:root[data-theme="dark"] .recall-stack-preparation button.button:not(.button-primary) { color:var(--ink); background:var(--panel-soft); border-color:var(--line); }
.recall-stack-preparation::backdrop { background:rgb(0 12 24 / .5); }
.recall-stack-preparation fieldset label { display:block; margin:.5rem 0; }
.action-dialog { position:fixed; margin:0; z-index:70; width:min(600px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; border:1px solid #d2e0e8; border-radius:16px; padding:24px; color: var(--ink); background: var(--panel); box-shadow:0 12px 48px #082e4940; }
.action-dialog::backdrop { background:#092b42a6; }
.action-dialog h2 { margin:0; font-size:26px; }
.action-head { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.action-head button { background:none; border:0; font-size:30px; cursor:pointer; color: var(--muted); }
.action-head .action-move-handle { font:inherit; font-size:12px; padding:6px 0; cursor:grab; touch-action:none; user-select:none; }
.action-head .action-move-handle:active { cursor:grabbing; }
.action-window-tools { display:flex; gap:6px; }
.action-window-tools button { min-width:38px; min-height:44px; }
.action-head button:focus-visible { outline:2px solid #167a9b; outline-offset:2px; border-radius:4px; }
.action-dialog textarea { width:100%; padding:12px; font:inherit; border:1px solid #b9cbd6; border-radius:8px; margin:8px 0; resize:vertical; }
.action-dialog label { font-weight:700; }
.action-dialog small { color: var(--muted); }
.action-actions { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
#action-plan { padding:16px; margin-top:16px; background: var(--panel-soft); border-radius:10px; }
#action-plan .button { margin:6px 6px 0 0; }
#action-status { line-height:1.5; }
@media(max-width:760px) { .bank-layout { grid-template-columns:1fr; } .bank-block { position:static; } .bank-selection,.bank-block { padding:18px; } .bank-tabs > button { flex-basis:calc(50% - 8px); min-width:0; padding:12px; } .bank-leaf { flex-wrap:wrap; } .bank-branch summary > span { display:block; margin:4px 0 0; } .bank-branch > .bank-node { margin-left:6px; padding-left:10px; } .action-launch { right:12px; bottom:64px; padding:12px 16px; font-size:14px; } }

/* Keep pace details on separate readable lines, including narrow tablet tiles. */
.pace-card-secondary { display: grid; gap: 4px; }
.pace-signal-card small { display: block; }
.pace-chart-scroll { overflow-x: auto; padding: 18px 4px 4px; }
.pace-chart-scroll:focus-visible { outline: 2px solid #1598c7; outline-offset: 4px; }

.pace-chart-target, .time-window-controls label { display:flex; align-items:center; gap:8px; color: var(--ink); font-weight:600; }
.pace-chart-target select, .time-window-controls select { width:auto; min-height:42px; margin:0; }
.pace-chart-target { margin-left:auto; }
.pace-chart-details { display:grid; gap:6px; }
.pace-selected-summary { display:grid; gap:8px; border-top:1px solid #dce7eb; padding-top:16px; color: var(--muted); }
.pace-selected-summary > strong { color: var(--ink); }
.time-window-controls { display:flex; gap:12px; flex-wrap:wrap; }
.time-window-scroll { overflow-x:auto; padding:8px 4px; }
.time-window-scroll:focus-visible { outline:2px solid #1598c7; outline-offset:4px; }
.time-window-plot { display:grid; gap:16px; margin:12px 0; }
.time-window-column { display:grid; grid-template-rows:2.6em auto 2.6em 2.6em; align-content:start; line-height:1.3; gap:8px; text-align:center; color: var(--ink); font-size:.9rem; }
.time-window-column small { color:var(--muted); }
.time-window-column .window-average { font-weight:600; }
.time-window-bar-space { height:210px; display:flex; align-items:flex-end; border-bottom:1px solid #a9bdc9; background:repeating-linear-gradient(to top, transparent 0,transparent 51px,#e6edf1 51px,#e6edf1 52px); }
.time-window-bar { display:flex; flex-direction:column; width:55%; margin:0 auto; overflow:hidden; border-radius:5px 5px 0 0; }
.window-correct { background:#21845e; }
.window-not-correct { background:#cc791e; }
.time-window-legend { display:flex; flex-wrap:wrap; gap:12px 24px; color:var(--muted); font-size:.9rem; margin:14px 0; }
.time-window-legend span { display:flex; align-items:center; gap:8px; }
.time-window-legend i { width:14px; height:14px; border-radius:3px; }
.time-window-tail { display:grid; gap:6px; padding:14px 0; border-top:1px solid #dce7eb; }
.time-window-tail small { color:var(--muted); }
.visual-signal-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }
@media(max-width:900px) { .pace-progress-card .attempt-progress-head, .time-window-card .attempt-progress-head { flex-wrap:wrap; } .pace-chart-target { margin-left:0; } }
/* Related timing comparisons share one card, with direct labels on every series. */
.window-paired-bars { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.window-paired-item { display:grid; grid-template-rows:2.6em 210px 2.6em; min-width:0; gap:6px; }
.window-paired-item > small { display:block; align-self:center; line-height:1.3; }
.window-paired-item .time-window-bar { width:75%; }
.time-window-bar.finalCorrect .window-correct { background:#21845e; }
.time-window-bar.finalCorrect .window-not-correct { background:#cc791e; }
.score-time-panel { border-top:1px solid #dce7eb; margin-top:22px; padding-top:18px; }
.score-time-panel h3 { font-size:1.2rem; margin:0 0 8px; }
.score-time-scroll, .requested-comparison-scroll { overflow-x:auto; padding:14px 8px 6px 40px; }
.score-time-plot { position:relative; height:200px; }
.score-time-plot svg { width:100%; height:100%; overflow:visible; }
.score-time-axis { position:absolute; top:0; bottom:0; left:-36px; display:flex; flex-direction:column; justify-content:space-between; font-size:.75rem; color:var(--muted); }
.score-time-labels { display:grid; gap:8px; text-align:center; font-size:.85rem; margin:12px 0; }
.score-time-labels span, .score-time-labels small { display:block; margin-top:5px; color:var(--muted); }
.chart-request-card { padding:20px; margin:20px 0; }
.chart-request-card summary { font-size:1.15rem; font-weight:700; cursor:pointer; }
.chart-request-card form { display:grid; gap:12px; padding-top:18px; }
.chart-request-card textarea { width:100%; box-sizing:border-box; font:inherit; min-height:84px; padding:12px; }
.chart-request-examples, .chart-request-actions { display:flex; flex-wrap:wrap; gap:10px 18px; }
.chart-request-card small { color:var(--muted); line-height:1.5; }
.requested-chart { padding:clamp(18px,3vw,30px); margin:20px 0; }
.requested-chart .time-window-card { border:none; box-shadow:none; padding:0; }
.requested-chart h2 { font-size:clamp(22px,3vw,30px); }
.requested-comparison-plot { display:grid; gap:24px; }
.requested-comparison-plot > div { text-align:center; font-size:.9rem; }
.requested-metric-bars { display:flex; justify-content:center; gap:10px; margin-top:14px; }
.requested-metric-bars > div { flex:1; min-width:55px; }
.requested-metric-bars small, .requested-metric-bars b { display:block; margin-top:6px; }
.requested-bar-space { height:180px; display:flex; align-items:flex-end; background:repeating-linear-gradient(to top,transparent 0,transparent 44px,#e6edf1 44px,#e6edf1 45px); border-bottom:1px solid #a9bdc9; }
.requested-bar { display:block; width:65%; margin:0 auto; background:#1598c7; border-radius:4px 4px 0 0; }
.requested-bar.final { background:#0b4f73; }.requested-bar.pace { background:#21845e; }
.score-time-scroll:focus-visible, .requested-comparison-scroll:focus-visible { outline:2px solid #1598c7; outline-offset:3px; }
.chart-conversation { list-style:none; display:grid; gap:10px; padding:0; margin:12px 0; max-height:340px; overflow-y:auto; overscroll-behavior:auto; }
.chart-message { padding:12px 14px; border-radius:12px; background: var(--panel-soft); max-width:92%; overflow-wrap:anywhere; }
.chart-message.user { justify-self:end; background: var(--panel-soft); }
.chart-message strong { font-size:.8rem; color:var(--muted); }
.chart-message p { margin:5px 0 0; white-space:pre-wrap; }
.insight-examples-heading { margin:28px 0 16px; }
.insight-examples-heading h2 { font-size:clamp(22px,3vw,30px); }
.enhancement-request-form { border-top:1px solid #dce7eb; margin-top:20px; }
.enhancement-request-history { margin-top:16px; }
.enhancement-request-history article { padding:12px 0; border-top:1px solid #dce7eb; overflow-wrap:anywhere; }
.enhancement-notice { padding:16px; border-radius:12px; background: var(--panel-soft); margin:16px 0; }

.generation-conversation { display: grid; gap: .65rem; margin: .8rem 0; max-height: 22rem; overflow-y: auto; }
.generation-conversation p { margin: 0; padding: .8rem; border-radius: .65rem; background: var(--surface-soft, #f1f7fa); overflow-wrap: anywhere; }

/* Visit duration is the main elapsed-window visual; outcome counts remain expandable. */
.visit-time-first { background:#087f8c; }
.visit-time-all { background:#173d63; }
.visit-time-axis-title { margin:8px 0 0; color:var(--muted); font-size:.85rem; }
.visit-time-scroll { overflow-x:auto; padding:28px 4px 10px; }
.visit-time-scroll:focus-visible { outline:2px solid #1598c7; outline-offset:4px; }
.visit-time-chart { display:grid; column-gap:16px; }
.visit-time-axis { position:sticky; left:0; z-index:2; height:210px; background: var(--panel); color:var(--muted); font-size:.8rem; }
.visit-time-axis span { position:absolute; right:10px; transform:translateY(50%); white-space:nowrap; }
.visit-time-column { display:grid; grid-template-rows:210px 2.6em 2.6em; gap:12px; text-align:center; font-size:.85rem; line-height:1.3; min-width:0; }
.visit-time-column strong { align-self:center; }
.visit-time-column small { color:var(--muted); }
.visit-time-bars { display:grid; grid-template-columns:1fr 1fr; gap:10px; position:relative; border-bottom:1px solid #a9bdc9; background:none; }
.visit-time-bar-slot { display:flex; justify-content:center; align-items:flex-end; position:relative; }
.visit-time-bar { width:75%; min-height:1px; position:relative; border-radius:4px 4px 0 0; }
.visit-time-bar > .visit-time-value { position:absolute; bottom:100%; left:50%; transform:translateX(-50%); padding-bottom:4px; font-size:.75rem; white-space:nowrap; color: var(--ink); }
.visit-time-missing { position:absolute; bottom:4px; color:var(--muted); }
.visit-time-target { position:absolute; left:0; right:0; border-top:2px dashed #a77724; pointer-events:none; z-index:1; }
.time-window-legend .visit-time-target-key { height:0; background:none; border-top:2px dashed #a77724; border-radius:0; }
.window-accuracy-details { margin:14px 0; }

/* Mean-time bar heights with equal question slices; color proportions encode counts. */
.visit-time-column { grid-template-rows:210px auto 2.6em 2.6em; }
.visit-time-bar { background:transparent; overflow:visible; }
.visit-time-stack { position:absolute; inset:0; overflow:hidden; border-radius:inherit; }
.visit-time-stack > .visit-outcome-segment { display:block; position:absolute; left:0; width:100%; min-height:0; padding:0; margin:0; border:0; box-sizing:border-box; }
.visit-time-bar > .visit-time-value { position:absolute; bottom:100%; }
.visit-outcome-unmarkedCorrect { --outcome-fill:#21845e; background:var(--outcome-fill); }
.visit-outcome-unmarkedIncorrect { --outcome-fill:#cc791e; background:var(--outcome-fill); }
.visit-outcome-markedCorrect { --outcome-fill:#156f9b; background:var(--outcome-fill); }
.visit-outcome-markedIncorrect { --outcome-fill:#aa476a; background:var(--outcome-fill); }
.visit-outcome-unknown { background:repeating-linear-gradient(135deg,#718096 0 3px,#edf0f3 3px 6px); }
.visit-outcome-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.visit-outcome-counts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; align-content:start; }
.visit-outcome-count { border-radius:4px; color:white; font-size:.8rem; font-weight:700; padding:3px 1px; }
.visit-outcome-count.visit-outcome-unknown { color: var(--ink); grid-column:1/-1; }
.visit-outcome-note { font-size:.85rem; }

.visit-outcome-segment.visit-outcome-markedCorrect,
.visit-outcome-segment.visit-outcome-markedIncorrect { background-image:repeating-linear-gradient(135deg,transparent 0 5px,rgba(255,255,255,.28) 5px 7px); }

.visit-outcome-unanswered { --outcome-fill:#68778f; background:var(--outcome-fill); }
.visit-outcome-count.visit-outcome-unanswered { grid-column:1/-1; }
.visit-time-stack > .visit-outcome-segment { box-shadow:inset 0 1px 0 rgba(255,255,255,.7); }

.visit-time-gridline { position:absolute; left:0; right:0; border-top:1px solid #e6edf1; pointer-events:none; }

.action-chat-tools { display:flex; justify-content:flex-end; margin:8px 0; }
.action-messages { max-height:32dvh; overflow-y:auto; overscroll-behavior:auto; padding:4px; margin:12px 0; }
.action-message { border-radius:10px; padding:12px 14px; margin:10px 0; line-height:1.5; }
.action-message p { margin:4px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.action-clarification-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(11rem,100%),1fr)); gap:.4rem; margin-top:.5rem; }
.action-clarification-choices .button { justify-content:flex-start; min-width:0; min-height:2.5rem; padding:.4rem .65rem; text-align:start; white-space:normal; overflow-wrap:anywhere; }
.action-message strong { font-size:.85rem; }
.action-message-user { background: var(--panel-soft); margin-left:24px; }
.action-message-assistant { background: var(--panel-soft); margin-right:24px; }
.action-chat-empty { color: var(--muted); line-height:1.5; }
@media(max-width:600px) { .action-dialog { padding:16px; } .action-message-user { margin-left:12px; } .action-message-assistant { margin-right:12px; } }

.journey-scroll { overflow-x:auto; margin:18px 0; }
.journey-table { border-collapse:separate; border-spacing:0; width:100%; table-layout:fixed; font-size:.72rem; }
.journey-table th:first-child { position:sticky; left:0; z-index:2; width:150px; background: var(--panel); text-align:left; padding:8px; }
.journey-table th small { display:block; font-weight:400; color: var(--muted); margin-top:6px; line-height:1.4; }
.journey-table td,.journey-table th { border-bottom:1px solid #dce7eb; vertical-align:bottom; }
.journey-table thead button { border:0; background:none; font:inherit; color: var(--ink); cursor:pointer; min-height:36px; width:100%; }
.journey-cell { display:block; position:relative; width:100%; height:96px; border:0; padding:0; background:transparent; cursor:pointer; }
.journey-cell-bar { position:absolute; bottom:24px; left:12.5%; width:75%; max-height:64px; border-radius:3px 3px 0 0; }
.journey-cell-time { position:absolute; bottom:3px; left:0; width:100%; font-size:.65rem; white-space:nowrap; color: var(--ink); }
.journey-mark { position:absolute; top:3px; left:0; width:100%; color: var(--ink); font-size:.65rem; font-weight:700; white-space:nowrap; }
.journey-empty { color: var(--muted); }
.journey-final { display:block; width:90%; margin:8px auto; border:0; border-radius:4px; color:white; min-height:28px; font:inherit; cursor:pointer; }
.journey-cell:focus-visible,.journey-final:focus-visible,.journey-table thead button:focus-visible { outline:2px solid #1598c7; outline-offset:-2px; }
.journey-detail { border-top:1px solid #dce7eb; padding-top:14px; margin:14px 0; }
.journey-detail li { padding:5px 0; line-height:1.5; }
.attempt-journey > details { margin-top:16px; }

.journey-counts { display:block; margin-top:5px; color: var(--ink); }

.visit-time-companion { border-top:1px solid #dce7eb; margin-top:28px; padding-top:24px; }

.attempt-timeline-scroll { overflow-x:auto; margin:18px 0; }
.attempt-timeline-svg { display:block; width:100%; min-width:1220px; height:auto; background: var(--panel); }
.attempt-timeline-svg text { font:11px system-ui,sans-serif; fill:#153847; }
.attempt-timeline-svg a { cursor:pointer; }
.attempt-timeline-svg a:focus { outline:2px solid #1496d4; }
.timeline-checkpoints { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; }
.timeline-checkpoints > div { background: var(--panel-soft); border-radius:6px; padding:10px; }
.timeline-checkpoints strong,.timeline-checkpoints span { display:block; font-size:.8rem; line-height:1.6; }

.attempt-timeline-svg .timeline-visit-label { font-size:9px; font-weight:700; }
.timeline-revisit-list ol { columns:2; column-gap:28px; padding-left:24px; }
.timeline-revisit-list li { break-inside:avoid; margin:8px 0; font-size:14px; }
@media(max-width:700px) { .timeline-revisit-list ol { columns:1; } }

/* Keep help attached to its compact trigger, including inside grid cards. */
.info-control { width:max-content; max-width:100%; justify-self:start; align-self:center; flex:0 0 auto; }
.info-control .info-button { box-sizing:border-box; min-width:24px; max-width:24px; width:24px; min-height:24px; max-height:24px; height:24px; flex:none; line-height:1; letter-spacing:normal; text-transform:none; }
.info-control .info-popover { position:absolute; top:calc(100% + 8px); left:0; right:auto; transform:none; width:min(330px,calc(100vw - 64px)); box-sizing:border-box; letter-spacing:normal; text-transform:none; }
.dashboard-stat-grid article > .info-control .info-popover { left:auto; right:0; }
.info-control .info-popover strong { margin:0; font-size:.86rem; line-height:1.4; }
.info-control .info-popover span { font-size:.82rem; font-weight:500; letter-spacing:normal; text-transform:none; }
.attempt-journey, .attempt-timeline { padding:clamp(18px,3vw,30px); margin:22px 0; }
.action-launch { display:grid; gap:4px; text-align:left; max-width:calc(100vw - 24px); }
.action-launch small { font-size:11px; line-height:1.35; font-weight:400; white-space:normal; }

.dashboard-shell .dashboard-workspace { width:calc(100% - clamp(24px,4vw,64px)); max-width:none; }

/* Wide chart contents scroll locally instead of widening the insights page. */
.dashboard-shell,.completed-attempt-insights { min-width:0; max-width:100%; }
.dashboard-shell .topbar > *,
.dashboard-workspace > *,
.dashboard-workspace .card,
.completed-attempt-insights .card,
:is(.dashboard-shell,.completed-attempt-insights) :is(.dashboard-title-row,.dashboard-chart-grid,.visual-signal-grid,.dashboard-stat-grid,.memory-queue-grid,.question-group-grid,.attempt-progress-head,.dashboard-panel-head) > * { min-width:0; max-width:100%; }
:is(.dashboard-shell,.completed-attempt-insights) :is(.journey-scroll,.attempt-timeline-scroll,.timeline-score-scroll,.visit-time-scroll,.time-window-scroll,.score-time-scroll,.pace-chart-scroll,.dashboard-table-wrap,.attempt-history-table) { width:100%; min-width:0; max-width:100%; }
@media (max-width:760px) {
  .dashboard-shell .topbar { flex-direction:column; align-items:stretch; gap:14px; padding:16px; }
  .dashboard-shell .header-status { width:100%; min-width:0; flex-shrink:1; flex-wrap:wrap; justify-content:flex-start; gap:8px; }
  .dashboard-shell .header-status .library-link,.dashboard-shell .header-status button { min-height:44px; }
  .dashboard-shell .version-chip { max-width:100%; white-space:normal; }
  .dashboard-shell .dashboard-workspace { width:calc(100% - 24px); padding-top:20px; }
  :is(.dashboard-shell,.completed-attempt-insights) .attempt-progress-head { flex-wrap:wrap; align-items:flex-start; gap:12px; }
  :is(.dashboard-shell,.completed-attempt-insights) :is(.reading-target-control,.pace-chart-target,.time-window-controls label) { flex-wrap:wrap; white-space:normal; max-width:100%; }
  :is(.dashboard-shell,.completed-attempt-insights) :is(select,textarea) { min-width:0; max-width:100%; }
  :is(.dashboard-shell,.completed-attempt-insights) :is(h1,h2,.panel-note,.chart-message p) { overflow-wrap:anywhere; }
}
@media (max-width:480px) {
  .dashboard-shell .dashboard-panel,.completed-attempt-insights .dashboard-panel { padding:18px; }
  :is(.dashboard-shell,.completed-attempt-insights) .evidence-filters { grid-template-columns:minmax(0,1fr); }
  :is(.dashboard-shell,.completed-attempt-insights) .journey-view-tools > label { width:100%; }
  :is(.dashboard-shell,.completed-attempt-insights) #journey-inspect { width:100%; }
}

/* Keep the challenge introduction readable at tablet widths. */
.investor-demo-card {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.investor-demo-card > * { min-width: 0; }
.investor-demo-card .challenge-choice-actions { grid-column: 1 / -1; }
.investor-demo-card .challenge-choice-actions .button {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}
/* The workspace capability completes the grid without empty colored cells. */
.proof-grid > div:last-child { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  .investor-demo-card { grid-template-columns: minmax(0, 1fr); }
}

/* Consistent action groups and balanced investor-page sections. */
.investor-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.investor-hero-actions > .button-primary { grid-column: 1 / -1; }
.investor-hero-actions .button { min-width: 0; white-space: normal; text-align: center; justify-content: center; }
.demo-path-card .challenge-choice-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; }
.demo-path-card .challenge-choice-actions .button { margin: 0; width: 100%; white-space: normal; text-align: center; }
.proof-grid > div:last-child { min-height: 0; }
.proof-grid > div:last-child em { margin-top: 0; }
.roadmap-implementation { margin: 16px 0; }
.roadmap-implementation summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.roadmap-implementation summary:focus-visible { outline: 2px solid #1887af; outline-offset: 4px; }
.roadmap-exploration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roadmap-exploration-grid > article:first-child { grid-column: 1 / -1; }
.validation-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 700px) {
  .investor-hero-actions, .roadmap-exploration-grid, .validation-grid { grid-template-columns: minmax(0, 1fr); }
}

/* First-screen hierarchy: the product promise, then clear ways to explore. */
.investor-hero { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .85fr); padding: clamp(28px, 4.5vw, 56px); gap: clamp(28px, 4vw, 48px); }
.investor-hero-copy h1 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.12; text-wrap: balance; }
.investor-hero-copy h1 span { display: block; color: #93ddf6; margin-top: .12em; }
.investor-hero-copy > p:not(.eyebrow) { font-size: 1.0625rem; line-height: 1.65; max-width: 55ch; margin-top: 20px; }
.investor-hero-copy > .hero-demo-note { font-size: .8125rem !important; color: #b6d6e4 !important; margin-top: 14px !important; }
.investor-hero-actions { margin-top: 24px; }
.investor-hero-actions .button { min-height: 48px; padding: 12px 16px; font-size: .9375rem; gap: 10px; }
.mvp-readiness { padding: 24px; }
.mvp-readiness > div > strong { color: #9debc6; font-size: .75rem; white-space: nowrap; padding: 5px 8px; border: 1px solid #87e9b944; border-radius: 6px; }
.mvp-readiness li a { padding: 12px 10px; gap: 12px; }
.mvp-readiness li span strong { display: block; font-size: .9375rem; font-weight: 700; }
.mvp-readiness li span small { display: block; margin-top: 4px; font-size: .8125rem; line-height: 1.35; color: #c1d8e3; }
.mvp-readiness li em { color: #a5cbdc; font-size: 1rem; }
.product-vision { padding: 28px 32px; gap: 24px; }
.product-vision h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.product-vision > p { color: var(--muted); }
.demo-paths > .section-heading { display: block; margin: 36px 0 20px; }
.demo-paths > .section-heading .eyebrow { margin: 0 0 10px; }
.demo-paths > .section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
.demo-path-card { padding: 26px; min-height: 0; }
.demo-path-card .path-number { font-size: 1.5rem; color: var(--muted); }
.demo-path-card .path-label { margin-top: 16px; }
.demo-path-card h3 { font-size: 1.25rem; line-height: 1.35; text-wrap: balance; }
.demo-path-card > p:not(.path-label) { margin-bottom: 16px; }
.demo-path-card > .demo-card-note { font-size: .8125rem; line-height: 1.5; padding-top: 12px; border-top: 1px solid var(--line); }
.demo-path-card > .button, .demo-path-card .challenge-choice-actions { margin-top: auto; }
.demo-path-card .button { font-size: .875rem; min-height: 44px; }
body:has(.investor-shell) .action-launch { padding: 12px 18px; border-radius: 999px; font-size: .875rem; bottom: 70px; }
body:has(.investor-shell) .action-launch small { display: none; }
@media (max-width: 1000px) {
  .investor-hero { grid-template-columns: minmax(0, 1fr); }
  .mvp-readiness ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-path-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .mvp-readiness ol { grid-template-columns: minmax(0, 1fr); }
  .investor-hero, .product-vision, .demo-path-card { padding: 24px; }
  .investor-hero-copy h1 { font-size: 2rem; }
}

/* Lead with behavioral coaching; let visitors choose how much detail to read. */
.demo-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-path-card .challenge-choice-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-path-card .button { min-height: 52px; }
.practice-next-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; margin-top: 20px; padding: 22px 26px; border: 1px solid #cddce4; border-radius: 14px; background: var(--panel-soft); }
.practice-next-step h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.125rem; }
.practice-next-step p { margin: 0; color: var(--muted); line-height: 1.55; }
.practice-next-actions { display: grid; gap: 4px; text-align: center; }
.practice-next-actions .button { min-height: 44px; white-space: normal; text-align: center; justify-content: center; }
.practice-next-actions .library-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--ink); font-size: .875rem; }
.coaching-core-grid, .near-term-priorities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.coaching-core-grid { margin-top: 24px; }
.coaching-core-grid article, .near-term-priorities article { min-width: 0; }
.core-step { color: var(--muted); font-size: .8125rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.coaching-core-grid h3, .near-term-priorities h3 { margin: 10px 0; color: var(--ink); font-size: 1.125rem; line-height: 1.4; }
.coaching-core-grid p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.near-term-priorities { margin-top: 28px; }
.near-term-priorities article { border-top: 2px solid #1887af; padding-top: 16px; }
.near-term-priorities p { margin-bottom: 0; }
.product-roadmap .roadmap-evidence-note { margin: 24px 0 0; padding: 12px 16px; border-left: 3px solid #9bbdcc; background: var(--panel-soft); font-size: .9375rem; }
.investor-disclosure { margin-top: 24px; border-top: 1px solid var(--line); }
.investor-disclosure > summary { min-height: 44px; padding: 18px 0; cursor: pointer; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.5; }
.investor-disclosure > summary::marker { color: #1887af; }
.investor-disclosure > summary > span { display: block; margin: 4px 0 0 1.1rem; color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.5; }
.investor-disclosure > summary:focus-visible { outline: 2px solid #1887af; outline-offset: 4px; border-radius: 4px; }
.investor-disclosure[open] > summary { margin-bottom: 8px; }
.disclosure-body, .roadmap-later-body { min-width: 0; padding-bottom: 8px; }
.disclosure-body h3 { margin: 0 0 12px; color: var(--ink); font-size: 1.125rem; line-height: 1.4; }
.supporting-features .expert-review-roadmap p { color: var(--muted); line-height: 1.6; }
.roadmap-later .roadmap-priority-grid > article:first-child { grid-column: 1 / -1; }
.roadmap-vision { margin-top: 28px; padding: 24px; border-radius: 12px; background: var(--panel-soft); }
.roadmap-vision h3 { margin: 0; color: var(--ink); font-size: 1.25rem; line-height: 1.4; }
.roadmap-vision .exam-family-chips { justify-content: flex-start; margin-top: 16px; }
.market-disclosure { margin: 24px 0; padding: 20px 24px; }
.market-disclosure > summary { padding: 0; }
.market-disclosure .disclosure-body { padding-top: 20px; }
.market-disclosure p { color: var(--muted); line-height: 1.6; }
.market-disclosure a { color: var(--ink); text-decoration: underline; }
.market-disclosure .roadmap-footnote { font-size: .875rem; }
.investor-closing { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); }
.investor-closing p { margin: 14px 0 0; color: var(--muted); line-height: 1.6; }
.investor-closing-actions { display: grid; gap: 12px; }
.investor-closing-actions .button { min-height: 48px; justify-content: center; text-align: center; white-space: normal; }
@media (max-width: 1000px) {
  .demo-path-grid { grid-template-columns: minmax(0, 1fr); }
  .coaching-core-grid, .near-term-priorities { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .coaching-core-grid article + article { padding-top: 20px; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .practice-next-step, .investor-closing { grid-template-columns: minmax(0, 1fr); }
  .practice-next-actions { justify-items: start; text-align: left; }
}
@media (max-width: 600px) {
  .demo-path-card .challenge-choice-actions { grid-template-columns: minmax(0, 1fr); }
  .practice-next-step, .market-disclosure { padding: 20px; }
  .practice-next-actions { justify-items: stretch; }
  .roadmap-vision { padding: 20px 16px; }
}


/* Shared chart readability: case study, workspace, and completed attempts. */
.chart-scroll-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 4px; padding:8px 12px; border-radius:8px; background: var(--panel-soft); color: var(--ink); font-size:.85rem; }
.chart-scroll-controls[hidden], .chart-scroll-controls button[hidden] { display:none; }
.chart-scroll-controls > div { display:flex; gap:8px; flex-shrink:0; }
.chart-scroll-controls button { min-height:44px; padding:8px 12px; border:1px solid #b8cdd8; border-radius:7px; background: var(--panel); color: var(--ink); font:inherit; font-weight:650; cursor:pointer; }
.chart-scroll-controls button:disabled { opacity:.4; cursor:default; }
.chart-scroll-controls button:focus-visible, [data-chart-scroll]:focus-visible { outline:2px solid #117cab; outline-offset:3px; }
[data-chart-scroll] { scrollbar-width:thin; scrollbar-color:#809cab #edf3f6; }
.chart-key-facts { display:flex; gap:12px 24px; flex-wrap:wrap; padding:14px 0; margin:8px 0; border-block:1px solid #dce7eb; color: var(--muted); font-size:.88rem; }
.chart-key-facts strong { color: var(--ink); margin-right:4px; }
.chart-coverage-note { padding:10px 14px; border-left:3px solid #9bb8c7; background: var(--panel-soft); color: var(--muted); font-size:.9rem; line-height:1.5; }
.attempt-journey .attempt-progress-head { flex-wrap:wrap; gap:16px; }
.attempt-journey .attempt-progress-head > label { display:grid; gap:6px; font-size:.85rem; max-width:100%; }
.attempt-journey .attempt-progress-head select { max-width:100%; min-height:44px; }
.journey-scroll { border:1px solid #dce7eb; border-radius:10px; }
.journey-table { font-size:.8rem; }
.journey-table th:first-child { width:160px; box-shadow:3px 0 4px #163e4d0c; }
.journey-table thead th { background: var(--panel-soft); }
.journey-table thead th:first-child { background: var(--panel-soft); }
.journey-table tbody td { border-right:1px solid #edf2f5; }
.journey-table tbody tr:nth-child(even) td { background: var(--panel-soft); }
.journey-table thead button { min-height:44px; padding:4px 0; }
.journey-cell-time { font-size:.74rem; }
.journey-mark { font-size:.77rem; }
.journey-final { min-height:36px; }
.visit-time-column { grid-template-rows:210px auto 160px auto auto; gap:10px; }
@supports (grid-template-rows:subgrid) {
  .visit-time-chart { grid-template-rows:210px auto auto auto auto; row-gap:10px; }
  .visit-time-axis { grid-column:1; grid-row:1; }
  .visit-time-column { grid-row:1 / span 5; grid-template-rows:subgrid; }
}
.visit-time-series-labels { display:grid; grid-template-columns:1fr 1fr; gap:10px; font-size:.8rem; font-weight:650; color: var(--ink); }
.visit-outcome-counts { display:flex; flex-direction:column; gap:4px; align-items:stretch; }
.visit-outcome-count { font-size:.78rem; padding:3px 4px; }
.window-label-caption { display:block; font-size:.72rem; font-weight:400; margin-bottom:4px; }
.visit-time-axis-title { color: var(--ink); font-weight:650; }
.chart-method-note, .timeline-recording-details, .timeline-revisit-list, .timeline-checkpoint-details { margin-top:16px; }
.chart-method-note summary, .timeline-recording-details summary, .timeline-revisit-list summary, .timeline-checkpoint-details summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:.88rem; font-weight:650; color: var(--ink); }
.chart-method-note p, .timeline-recording-details p { font-size:.88rem; color: var(--muted); line-height:1.6; }
.attempt-timeline-scroll { max-height: min(620px, 68vh); overflow:auto; border:1px solid #dce7eb; border-radius:10px; margin:12px 0 22px; }
.timeline-canvas { min-width:1100px; }
.attempt-timeline-svg { min-width:0; }
.attempt-timeline-svg text { font-size:12px; }
.timeline-axis-sticky { position:sticky; top:0; z-index:3; background: var(--panel-soft); border-bottom:1px solid #c8d8e2; }
.timeline-activity-plot { background: var(--panel); }
.timeline-event-legend .timeline-key-first { width:11px; height:11px; border-radius:50%; background:#617583; }
.timeline-event-legend .timeline-key-revision { width:11px; height:11px; border-radius:0; background:#617583; }
.timeline-score-summary { padding-top:4px; }
.timeline-score-scroll { overflow-x:auto; padding:6px 0; }
.timeline-score-plot { min-width:700px; }
.timeline-checkpoints { margin-top:10px; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); }
.timeline-checkpoints span { color: var(--muted); }
.timeline-accuracy-summary { margin-top:24px; }
.timeline-accuracy-summary h3 { margin:0; }
.timeline-accuracy-summary .attempt-progress-head { align-items:center; flex-wrap:wrap; gap:12px; }
.timeline-accuracy-summary label { display:flex; align-items:center; gap:8px; font-size:.85rem; }
.accuracy-count-scroll { overflow-x:auto; margin-top:12px; max-width:100%; }
.accuracy-count-table { width:100%; min-width:720px; border-collapse:collapse; font-size:.82rem; }
.accuracy-count-table th,.accuracy-count-table td { padding:10px 12px; text-align:left; border-bottom:1px solid #dce7eb; }
.accuracy-count-table thead { background: var(--panel-soft); }
.accuracy-count-table tbody th { white-space:nowrap; }
body:has(.dashboard-shell, .completed-attempt-insights) .action-launch { padding:12px 18px; border-radius:999px; font-size:.875rem; bottom:70px; }
body:has(.dashboard-shell, .completed-attempt-insights) .action-launch small { display:none; }
@media(max-width:600px) {
  .chart-scroll-controls { align-items:flex-start; flex-direction:column; gap:6px; }
  .chart-scroll-controls > div { align-self:flex-end; }
  .chart-key-facts { flex-direction:column; gap:8px; }
  .attempt-journey .attempt-progress-head > label { width:100%; }
  .attempt-journey .attempt-progress-head select { width:100%; }
  .attempt-timeline-scroll { max-height:65vh; }
}


/* Total-time bars and an optional full-width question overview. */
.journey-view-tools { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin:18px 0 10px; }
.journey-view-switch { display:flex; gap:4px; padding:4px; border-radius:9px; background: var(--panel-soft); }
.journey-view-switch button { min-height:44px; border:1px solid transparent; border-radius:6px; padding:8px 14px; font:inherit; font-size:.86rem; color: var(--ink); background:transparent; cursor:pointer; }
.journey-view-switch button[aria-pressed="true"] { color: var(--ink); background: var(--panel); border-color:#b8cdd8; font-weight:700; box-shadow:0 1px 3px #173c4c12; }
.journey-view-switch button:focus-visible, #journey-inspect:focus-visible { outline:2px solid #117cab; outline-offset:2px; }
.journey-view-tools label { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color: var(--ink); font-size:.86rem; }
#journey-inspect { width:auto; min-height:44px; max-width:100%; margin:0; }
.journey-view-note { color: var(--muted); font-size:.85rem; line-height:1.5; }
.pace-target-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-left:auto; max-width:100%; }
.pace-target-controls .pace-chart-target { margin-left:0; flex-wrap:wrap; }
.pace-target-controls .pace-apply { margin:0; flex-shrink:0; }
.pace-target-field { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.pace-target-field .pace-target-input { width:5.5rem; min-width:0; min-height:44px; margin:0; padding:8px; font:inherit; color: var(--ink); background: var(--panel); border:1px solid #b8cdd8; border-radius:6px; }
.pace-target-input:focus-visible { outline:2px solid #117cab; outline-offset:2px; }
.journey-view-tools .pace-chart-target { margin-left:0; }
.journey-completion { --journey-total-baseline:24px; }
.journey-completion > th, .journey-completion > td { border-top:2px solid #b8cdd8; background: var(--panel-soft) !important; }
.journey-completion > td { padding:0; }
.journey-completion .journey-total-cell { height:104px; }
.journey-completion .journey-cell-bar { bottom:var(--journey-total-baseline); }
.journey-pace-line { position:absolute; left:0; right:-1px; bottom:calc(var(--journey-total-baseline) + var(--journey-pace-height)); border-top:2px dashed #a77724; box-shadow:0 -1px 0 #ffffffb3,0 1px 0 #ffffffb3; pointer-events:none; z-index:1; }
.journey-pace-caption { display:flex; align-items:center; gap:4px; margin-top:6px; color:#714b14; font-weight:650; }
.journey-pace-key { width:14px; flex-shrink:0; border-top:2px dashed #a77724; }
.journey-completion .journey-cell-time { font-weight:700; }
.journey-compact .journey-table { width:100%; min-width:0; }
.journey-compact .journey-table th:first-child { width:110px; padding:6px; font-size:.73rem; }
.journey-compact .journey-table th small { font-size:.67rem; line-height:1.4; }
.journey-compact .journey-table td, .journey-compact .journey-table th:not(:first-child) { padding:0; }
.journey-compact .journey-table thead button { position:relative; min-width:0; min-height:40px; }
.journey-compact .journey-question-label { display:none; }
.journey-compact .journey-major-label .journey-question-label { display:block; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:max-content; font-size:.65rem; }
.journey-compact th:nth-child(2) .journey-question-label { left:2px; transform:translateY(-50%); }
.journey-compact th:last-child .journey-question-label { left:auto; right:2px; transform:translateY(-50%); }
.journey-compact .journey-cell { height:78px; min-width:0; }
.journey-compact .journey-cell-bar { bottom:8px; left:15%; width:70%; border-radius:2px 2px 0 0; }
.journey-compact .journey-cell-time, .journey-compact .journey-mark { display:none; }
.journey-compact .journey-completion .journey-total-cell { height:100px; }
.journey-compact .journey-completion { --journey-total-baseline:22px; }
.journey-compact .journey-total-cell .journey-cell-bar { bottom:var(--journey-total-baseline); }
.journey-compact .journey-total-cell .journey-cell-time { display:block; font-size:.6rem; }
.journey-compact .journey-total-cell .journey-mark { display:block; font-size:.65rem; }
.journey-compact .journey-cell-bar.visit-outcome-markedCorrect,
.journey-compact .journey-cell-bar.visit-outcome-markedIncorrect { background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgba(255,255,255,.45) 3px 5px); }
@media(max-width:1000px) {
  .journey-compact .journey-table th:first-child { width:90px; }
  .journey-compact .journey-total-cell .journey-cell-time { display:none; }
  .journey-compact .journey-completion .journey-total-cell { height:90px; }
  .journey-compact .journey-completion { --journey-total-baseline:8px; }
}
@media(max-width:600px) {
  .journey-view-tools { align-items:stretch; flex-direction:column; }
  .journey-view-switch button { flex:1; }
  .journey-view-tools label { align-items:stretch; flex-direction:column; }
  #journey-inspect { width:100%; }
  .journey-compact .journey-total-cell .journey-mark { display:none; }
}
.builder-answer-options { margin: 1.1rem 0; padding: 1rem; border: 1px solid var(--line, #cbdde5); border-radius: .8rem; background: var(--panel-soft); }
.builder-answer-options legend { padding: 0 .35rem; font-weight: 750; color: var(--navy-800, #173d50); }
.builder-answer-options .import-attestation { align-items: flex-start; margin: .5rem 0 .85rem; }
.builder-answer-options input[type="checkbox"] { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .15rem; }
.builder-answer-options strong, .builder-answer-options small { display: block; }
.builder-answer-options small { margin-top: .25rem; line-height: 1.45; color: var(--muted); }
.builder-answer-options .note { margin-bottom: 0; }
.unscored-note { padding: .8rem 1rem; border-radius: .7rem; background: var(--panel-soft); color: var(--ink); line-height: 1.5; }

/* Grouped company footer: one shared, responsive destination for product and support links. */
.site-footer { background:linear-gradient(120deg, #061f2e, #082f49); border-top:1px solid #2d5266; }
.site-footer .investor-footer-inner { display:grid; grid-template-columns:minmax(180px, .95fr) minmax(0, 3fr); align-items:start; gap:40px 56px; padding-top:52px; padding-bottom:24px; }
.site-footer .investor-footer-brand { display:inline-block; font-size:1.6rem; line-height:1.2; letter-spacing:-.055em; }
.site-footer .footer-intro p { max-width:27ch; margin:14px 0 0; font-size:.95rem; line-height:1.7; color:#b6cbd8; }
.site-footer .footer-social { margin-top:24px; }
.site-footer .footer-social h2 { margin:0 0 10px; font-size:1rem; color:#f4f9fc; }
.site-footer .footer-social ul { display:flex; flex-wrap:wrap; gap:16px; list-style:none; margin:0; padding:0; }
.site-footer .footer-social a { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border:0; border-radius:4px; color:#f4f9fc; }
.site-footer .footer-social a img { display:block; width:24px; height:24px; filter:none; opacity:.68; }
.site-footer .footer-social a:hover { background:transparent; }
.site-footer .footer-social a:is(:hover,:focus-visible) img { opacity:1; }
.site-footer .footer-social a:focus-visible { outline:3px solid #a5d8ff; outline-offset:3px; }
.site-footer nav.footer-groups { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; min-width:0; }
.site-footer .footer-group { min-width:0; }
.site-footer .footer-group h2 { margin:0 0 18px; color:#f4f9fc; font-size:.95rem; line-height:1.5; font-weight:700; letter-spacing:0; }
.site-footer .footer-group ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.site-footer .footer-group a { display:block; padding:4px 0; color:#b6cbd8; font-size:.9rem; line-height:1.6; overflow-wrap:anywhere; }
.site-footer .footer-group a:hover, .site-footer .footer-bottom a:hover { color:#fff; }
.site-footer .footer-bottom { grid-column:1 / -1; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 24px; border-top:1px solid #315164; padding-top:22px; }
.site-footer .footer-bottom small { flex-basis:auto; border:0; padding:0; color:#aec5d3; font-size:.8rem; line-height:1.6; }
.site-footer .footer-patent { white-space:nowrap; }
.site-footer .footer-bottom > a { font-size:.85rem; color:#b6cbd8; padding:4px 0; overflow-wrap:anywhere; }
@media(max-width:1080px) {
  .site-footer .investor-footer-inner { grid-template-columns:1fr; gap:32px; }
  .site-footer .footer-intro p { max-width:48ch; }
}
@media(max-width:640px) {
  .site-footer .investor-footer-inner { padding-top:36px; padding-bottom:22px; gap:28px; }
  .site-footer nav.footer-groups { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 24px; }
  .site-footer .footer-group h2 { margin-bottom:12px; }
  .site-footer .footer-group a { min-height:32px; display:flex; align-items:center; }
  .site-footer .footer-bottom { display:block; padding-top:20px; }
  .site-footer .footer-bottom small { display:block; }
  .site-footer .footer-bottom > a { display:inline-block; margin-top:12px; }
}
@media(max-width:360px) {
  .site-footer nav.footer-groups { grid-template-columns:1fr; gap:24px; }
}
body:has(.exam-shell) > .site-footer .footer-intro,
body:has(.exam-shell) > .site-footer .footer-bottom > a { display:none; }
body:has(.exam-shell) > .site-footer .investor-footer-inner { display:block; }
body:has(.exam-shell) > .site-footer .footer-bottom { border:0; padding:0; }

/* Shared feature directory; page headers retain their contextual controls. */
.site-navigation { position:sticky; top:0; z-index:60; flex-shrink:0; color:#e7f2f8; background:#12364f; border-bottom:1px solid #3d5d72; }
.site-navigation-bar { display:flex; align-items:center; gap:24px; width:min(1280px,calc(100% - 32px)); min-height:64px; margin:0 auto; }
.site-brand { color:white; font-size:1.2rem; font-weight:800; letter-spacing:-.03em; text-decoration:none; white-space:nowrap; }
.site-menu-trigger { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex:none; padding:10px; background:transparent; color:inherit; border:0; border-radius:7px; font:inherit; cursor:pointer; }
.site-menu-trigger:hover { background:rgba(128,150,170,.15); }
.site-menu-trigger:focus-visible { outline:2px solid currentColor; outline-offset:2px; background:rgba(128,150,170,.15); }
.site-menu-trigger svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2; }
.site-navigation-shortcuts { display:flex; align-items:center; gap:24px; }
.site-navigation-shortcuts a, .site-navigation-account { color:#e2edf4; font-size:.85rem; font-weight:600; padding:12px 0; white-space:nowrap; text-decoration:none; }
.site-navigation-account { margin-left:auto; background:transparent; border:0; font-family:inherit; cursor:pointer; }
.site-account-dialog { position:fixed; inset:76px max(16px,calc((100vw - 1280px)/2)) auto auto; margin:0; padding:0; width:320px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 92px); overflow:auto; border:1px solid #c8d8e2; border-radius:14px; background: var(--panel); color: var(--ink); box-shadow:0 12px 40px #03111d33; }
.site-account-dialog::backdrop { background:rgb(3 17 29 / .18); }
.account-menu-heading { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #dce6ec; }
.account-menu-heading h2 { margin:0; font-size:1rem; color: var(--ink); }
.account-menu-heading button { width:36px; height:36px; border:0; background: var(--panel-soft); border-radius:7px; color: var(--ink); font-size:1.4rem; cursor:pointer; }
.site-account-dialog nav { display:grid; padding:8px; }
.site-account-dialog nav a { display:block; padding:12px; border-radius:7px; color: var(--ink); text-decoration:none; font-size:.9rem; }
.site-account-dialog nav a:hover { background: var(--panel-soft); }
.account-menu-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid #dce6ec; padding:16px 20px; }
.account-menu-bottom a { color: var(--muted); font-size:.9rem; }
.account-menu-bottom span { color: var(--muted); font-size:.75rem; }
.site-feedback-entry { border:0; background:transparent; color: var(--muted); font:inherit; font-size:.85rem; text-align:left; text-decoration:underline; text-underline-offset:3px; padding:14px 20px; cursor:pointer; }
.site-feedback-quick { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; width:calc(100% - 40px); min-height:44px; margin:0 20px 16px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--ink); text-decoration:none; }
.site-feedback-quick span { color:var(--muted); }
.site-feedback-quick:focus-visible { outline:2px solid var(--sky-500); outline-offset:3px; }
.site-footer .footer-feedback .site-feedback-launcher { border:0; border-radius:0; padding:0; color:#d3e3ec; background:transparent; display:inline-flex; align-items:center; gap:7px; min-height:32px; font:inherit; }
.site-footer nav.footer-groups { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }
.page-context { width:min(1180px,calc(100% - 32px)); margin:0 auto; padding:24px 0 0; color: var(--ink); }
.family-medicine-review-history > .page-context { width:100%; }
.page-context > nav[aria-label="Breadcrumb"] a { color: var(--muted); font-size:.85rem; text-decoration:none; }
.page-context > nav[aria-label="Breadcrumb"] a:hover { text-decoration:underline; }
.page-context h1 { margin:12px 0 0; font-size:clamp(1.6rem,3vw,2.2rem); line-height:1.2; }
.account-page-links { display:flex; flex-wrap:wrap; gap:24px; border-bottom:1px solid var(--line); margin-top:22px; }
.account-page-links a { padding:12px 0; color: var(--muted); text-decoration:none; border-bottom:3px solid transparent; font-weight:650; font-size:.9rem; }
.account-page-links a[aria-current="page"] { color: var(--ink); border-bottom-color:#167a79; }
.page-context + .workspace { padding-top:24px; }
.billing-account-strip .billing-practice-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border:1px solid #b9d7df; border-radius:8px; background: var(--panel-soft); color: var(--ink); font-weight:700; text-decoration:none; }
@media(max-width:640px) { .page-context { width:calc(100% - 32px); padding-top:20px; } .billing-account-strip .billing-practice-link { width:100%; } }
.site-header-feedback { display:flex; flex-shrink:0; }
.site-header-feedback .site-feedback-launcher { display:inline-flex; align-items:center; gap:7px; color:#e2edf4; border:1px solid #7793a5; border-radius:7px; }
.site-feedback-launcher svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; vertical-align:middle; }
.site-menu-account a { color: var(--muted); }
.site-navigation-bar a:hover { color:white; text-decoration:underline; text-underline-offset:4px; }
.site-navigation button:focus-visible, .site-navigation a:focus-visible, .site-navigation input:focus-visible { outline:3px solid #38a7da; outline-offset:3px; }
.site-navigation-dialog { position:fixed; inset:0 auto 0 0; margin:0; padding:0; width:390px; max-width:calc(100vw - 18px); height:100dvh; max-height:100dvh; border:0; border-radius:0 14px 14px 0; background: var(--panel); color: var(--ink); overflow-y:auto; overscroll-behavior:contain; box-shadow:8px 0 40px #0005; }
.site-navigation-dialog::backdrop { background:rgb(3 17 29 / .62); }
.site-menu-heading { position:sticky; top:0; z-index:2; display:flex; justify-content:space-between; gap:12px; align-items:flex-start; background:#102e43; color:white; padding:22px 20px; }
.site-menu-heading a { color:#9ed5ee; font-size:.85rem; font-weight:700; text-decoration:none; }
.site-menu-heading h2 { color:white; font-size:1.2rem; margin:8px 0 6px; }
.site-menu-heading p { color:#c2d7e4; font-size:.8rem; margin:0; }
.site-menu-heading button { display:grid; place-items:center; width:36px; height:36px; border:1px solid #87a1b3; border-radius:7px; background:transparent; color:white; font-size:1.6rem; cursor:pointer; flex-shrink:0; }
.site-menu-search { padding:18px 20px; border-bottom:1px solid #dce6ec; background: var(--panel-soft); }
.site-menu-search label { display:block; margin-bottom:8px; font-size:.8rem; font-weight:700; }
.site-menu-search input { width:100%; padding:11px 12px; border:1px solid #9eb6c5; border-radius:8px; color: var(--ink); background: var(--panel); font:inherit; font-size:.9rem; }
.site-menu-search > button, .site-menu-empty button { color: var(--muted); background:transparent; border:0; padding:10px 0 0; text-decoration:underline; font:inherit; font-size:.85rem; cursor:pointer; }
.site-menu-sections section { padding:18px 0 12px; border-bottom:1px solid #dce6ec; }
.site-menu-sections h3 { margin:0 20px 8px; color: var(--ink); font-size:.95rem; scroll-margin-top:160px; }
.site-menu-sections ul { list-style:none; padding:0; margin:0; }
.site-menu-sections li > a { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 20px; color: var(--ink); text-decoration:none; border-left:3px solid transparent; }
.site-menu-sections li > a:hover { background: var(--panel-soft); }
.site-menu-sections li > a[aria-current="page"] strong { text-decoration:underline; text-underline-offset:4px; }
.site-menu-sections strong { display:block; font-size:.9rem; font-weight:600; }
.site-menu-sections small { display:block; color: var(--muted); line-height:1.5; font-size:.78rem; margin-top:3px; }
.site-menu-chevron { color: var(--muted); font-size:1.5rem; }
.site-menu-empty { padding:24px 20px; line-height:1.6; }
.site-menu-empty p { font-size:.85rem; color: var(--muted); }
.site-menu-account { padding:20px; background: var(--panel-soft); }
.site-menu-account > a { color: var(--muted); font-weight:700; font-size:.9rem; }
.site-menu-account p { color: var(--muted); font-size:.8rem; line-height:1.6; margin-bottom:0; }
body:not(:has(.exam-shell)) .review-shell .topbar { top:64px; }
body:has(.exam-shell) > .site-navigation { display:none; }
/* The shared header owns branding and account controls; page titles provide context. */
body:not(:has(.exam-shell)) .topbar { background:transparent; color: var(--ink); border-bottom:1px solid var(--line); box-shadow:none; }
body:not(:has(.exam-shell)) .topbar .brand-kicker,
body:not(:has(.exam-shell)) .topbar .version-chip { display:none; }
body:not(:has(.exam-shell)) .topbar .library-link { color: var(--ink); border-color:var(--line); background: var(--panel); }
.investor-topbar, .pricing-shell > .topbar, .dashboard-shell > .topbar, .review-sheet-shell > .topbar { display:none; }
.workspace-library-shell .workspace-welcome { display:block; }
.workspace-library-shell .workspace-welcome p:not(.eyebrow) { max-width:760px; }
.context-demo-label { font-size:.85rem; color:var(--muted); }
@media(max-width:1100px) { .site-navigation-shortcuts { display:none; } }
@media(max-width:640px) {
  .site-navigation-bar { width:calc(100% - 24px); gap:10px; }
  .site-brand { font-size:1.05rem; }
  .site-menu-trigger { padding:10px; }
  .site-menu-trigger > span, .site-header-feedback .site-feedback-launcher > span { display:none; }
  .site-header-feedback .site-feedback-launcher { padding:10px; }
  .site-navigation-account { font-size:.8rem; }
  .site-navigation-shortcuts { display:none; }
  .site-menu-heading { padding:18px; }
}

/* Completed results follow overview → execution → patterns → next practice. */
.completed-results-card .results-heading { padding:22px 28px; }
.completed-results-card .results-heading h1 { margin:8px 0; font-size:clamp(1.8rem,3vw,2.6rem); }
.completed-results-card .results-body { padding:24px 28px; }
.results-summary-strip { display:flex; flex-wrap:wrap; gap:10px 24px; padding:0 0 16px; color:var(--muted); font-size:.9rem; }
.results-summary-strip strong { color: var(--ink); font-size:1.1rem; margin-right:3px; }
.results-more-actions { position:relative; }
.results-more-actions summary { cursor:pointer; padding:12px 16px; border:1px solid var(--line); border-radius:8px; font-weight:700; }
.results-more-actions[open] { flex-basis:100%; }
.results-more-actions > div { display:flex; flex-wrap:wrap; gap:10px; padding:12px 0; }
.results-ai-details { margin:28px 0; border:1px solid var(--line); border-radius:12px; padding:18px; }
.results-ai-details > summary { font-weight:700; cursor:pointer; }
.insights-group-heading { padding:24px 0 12px; scroll-margin-top:100px; }
.insights-group-heading h2 { margin:4px 0 8px; font-size:1.5rem; }
.insights-group-heading p:last-child { color:var(--muted); margin:0; line-height:1.6; }
.attempt-comparison { padding:24px; margin:20px 0 28px; border:1px solid #b9d4e2; border-radius:14px; background:linear-gradient(135deg,#f5fafc,#fff 65%); min-width:0; }
.comparison-heading { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.comparison-heading h2 { margin:4px 0 8px; font-size:1.65rem; }
.comparison-heading .eyebrow, .insights-group-heading .eyebrow, .dashboard-comparison > .eyebrow { color: var(--muted); }
.comparison-heading p:last-child { color:var(--muted); margin:0; }
.comparison-badge { color: var(--ink); background: var(--panel-soft); padding:7px 12px; border-radius:20px; font-size:.8rem; white-space:nowrap; }
.comparison-selectors, .comparison-chart-controls { display:flex; flex-wrap:wrap; gap:12px 20px; margin:18px 0; align-items:end; }
.comparison-selectors label, .comparison-chart-controls label { display:grid; gap:6px; font-size:.8rem; font-weight:700; min-width:0; }
.comparison-selectors select, .comparison-chart-controls select, #comparison-form { border:1px solid #adc3cf; border-radius:7px; padding:9px 10px; background: var(--panel); color: var(--ink); max-width:100%; font-size:.85rem; }
.comparison-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; border-block:1px solid #dce6ec; padding:18px 0; }
.comparison-summary article { display:grid; gap:6px; min-width:0; }
.comparison-summary article > span { color:var(--muted); font-size:.85rem; }
.comparison-summary strong { font-size:clamp(1.3rem,2.5vw,2rem); color: var(--ink); }
.comparison-summary small { color:var(--muted); font-size:.8rem; line-height:1.5; }
.comparison-transitions { display:flex; flex-wrap:wrap; gap:8px 24px; padding:14px 0; font-size:.85rem; }
.comparison-transitions strong { color: var(--ink); }
.comparison-error-patterns { font-size:.8rem; color: var(--muted); line-height:1.6; margin:0 0 12px; }
.comparison-error-patterns span { display:block; }
.comparison-learning { border-top:1px solid #dce6ec; padding-top:12px; margin:18px 0; }
.comparison-learning h3 { font-size:1.05rem; margin:8px 0; }
.comparison-learning > p { color:var(--muted); font-size:.85rem; line-height:1.6; }
.comparison-learning > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.comparison-learning article { background: var(--panel-soft); border-radius:8px; padding:14px; }
.comparison-learning h4 { font-size:.9rem; margin:0 0 8px; }
.comparison-learning article p { font-size:.85rem; line-height:1.6; margin:0 0 8px; }
.comparison-score-history { padding:12px 0; border-bottom:1px solid #dce6ec; }
.comparison-score-history summary, .comparison-details summary, .comparison-methods summary, .comparison-conditions summary { cursor:pointer; font-weight:600; font-size:.85rem; padding:8px 0; }
.comparison-score-scroll, .comparison-chart-scroll { overflow:auto; max-width:100%; overscroll-behavior-inline:contain; }
.comparison-score-scroll svg { display:block; margin:0 auto; max-width:none; }
.comparison-score-scroll text { fill:#476071; font-size:11px; }
.comparison-score-scroll circle { fill:#24648c; }
.comparison-gridline { stroke:#d7e4ec; fill:none; }
.comparison-score-line { fill:none; stroke:#24648c; stroke-width:3; }
.comparison-question-head h3 { font-size:1rem; margin:22px 0 8px; }
.comparison-question-head p { color:var(--muted); font-size:.8rem; line-height:1.6; margin:0; }
.comparison-chart { border-collapse:separate; border-spacing:2px; width:100%; table-layout:fixed; }
.comparison-chart th:first-child { width:112px; position:sticky; left:0; background: var(--panel-soft); z-index:1; font-size:.8rem; padding:8px; text-align:left; }
.comparison-chart th small { display:block; font-size:.7rem; color: var(--muted); font-weight:400; line-height:1.7; margin-top:4px; }
.comparison-chart thead th { padding:0; }
.comparison-chart thead button { width:100%; padding:8px 0; border:0; background:transparent; color: var(--muted); font-size:10px; cursor:pointer; }
.comparison-cell { vertical-align:bottom; padding:0; border-radius:4px; }
.comparison-cell button { width:100%; height:88px; position:relative; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; padding:3px 0; border:0; border-radius:4px; background:transparent; color:inherit; cursor:pointer; font-size:11px; overflow:hidden; }
.comparison-cell.correct { color: var(--ink); background: var(--panel-soft); }
.comparison-cell.incorrect { color:#a3393e; background:#fceff0; }
.comparison-cell.unanswered, .comparison-cell.unscored { color: var(--muted); background: var(--panel-soft); }
.comparison-time-bar { background:var(--outcome-fill,#68778f); display:block; width:65%; opacity:1; border-radius:3px 3px 0 0; }
.comparison-mark { grid-row:4; justify-self:center; font-size:8px; line-height:10px; color:var(--ink); pointer-events:none; }
.comparison-time-label { font-size:9px; }
.comparison-cell button { height:100px; min-width:0; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:58px 13px 13px 10px; justify-items:center; align-content:end; }
.comparison-cell .comparison-time-bar { grid-row:1; align-self:end; }
.comparison-cell .comparison-time-label { grid-row:2; }
.comparison-cell .comparison-outcome { grid-row:3; line-height:13px; }
.comparison-cell .comparison-pace-line { position:absolute; left:0; right:0; bottom:calc(39px + var(--comparison-pace-height)); border-top:2px dashed #334e68; pointer-events:none; }
.comparison-chart-controls input[data-compare-pace] { max-width:110px; padding:8px; }
.comparison-compact .comparison-time-label { display:none; }
.bank-directory { margin:24px 0 30px; padding:24px; border:1px solid var(--line); border-radius:16px; background: var(--panel); }
.bank-directory-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.bank-directory h2 { margin:6px 0 12px; }
.bank-directory > label { display:block; font-weight:700; margin:20px 0 8px; }
.bank-directory > input { width:100%; padding:13px; border:1px solid var(--line); border-radius:8px; font:inherit; }
.bank-field-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:20px 0; }
.bank-field-picker { margin-top:18px; }
.bank-field-picker > summary { cursor:pointer; padding:12px 0; font-weight:700; }
.bank-field-grid button { display:flex; flex-direction:column; align-items:flex-start; gap:8px; text-align:left; min-width:0; padding:17px; border:1px solid var(--line); border-radius:10px; background: var(--panel-soft); color:var(--ink); font:inherit; cursor:pointer; }
.bank-field-grid button[aria-pressed="true"] { background: var(--panel-soft); border:2px solid #5199cf; padding:16px; }
.bank-field-grid button span,.bank-field-grid button small { color:var(--muted); font-size:.8rem; line-height:1.45; }
.bank-field-grid button:focus-visible,.bank-catalog-results button:focus-visible { outline:3px solid #5199cf; outline-offset:3px; }
.bank-catalog-results { margin-top:14px; padding:16px; background: var(--panel-soft); border-radius:10px; }
.bank-catalog-results button { margin:4px; }
.bank-directory-note { font-size:.85rem; line-height:1.6; color:var(--muted); }
.bank-exam-context { margin:24px 0 14px; }
.bank-exam-context p { color:var(--muted); font-size:.85rem; }
@media(max-width:800px) { .bank-field-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .bank-directory-heading { align-items:flex-start; flex-direction:column; } }
@media(max-width:480px) { .bank-directory { padding:16px; } .bank-field-grid { grid-template-columns:1fr; } }
.comparison-inspected { padding:12px 14px; background: var(--panel-soft); border-radius:8px; margin:12px 0; font-size:.85rem; line-height:1.6; }
.comparison-inspected p { margin:4px 0; }
.comparison-details table { width:100%; border-collapse:collapse; font-size:.8rem; }
.comparison-details td, .comparison-details th { padding:10px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.bank-exam-picker { margin:16px 0; border:1px solid var(--line,#cedae3); border-radius:12px; padding:16px; background: var(--panel); }
.bank-exam-picker > summary { cursor:pointer; font-weight:700; color:var(--navy,#203b53); }
.bank-exam-picker > summary span { font-weight:400; margin-left:12px; font-size:.85rem; }
.bank-exam-picker .bank-tabs { margin-top:16px; }
.bank-exam-picker, .bank-tree-head h2 { scroll-margin-top:100px; }
.bank-layout[hidden], .bank-classification-note[hidden] { display:none; }
.bank-exam-prompt { margin:12px 0; color:var(--navy,#203b53); }
.account-menu-identity { display:grid; gap:5px; padding:14px 20px; border-bottom:1px solid #dce6ec; overflow-wrap:anywhere; }
.account-menu-identity small { color: var(--muted); }
.account-menu-identity strong { color: var(--ink); }
.bank-layout { grid-template-columns:1fr; gap:14px; }
.bank-filters { scroll-margin-top:100px; }
.bank-taxonomy-browser { display:grid; grid-template-columns:1fr; gap:12px; margin-top:12px; align-items:start; }
.bank-subject-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:6px; }
.bank-subject-row { display:flex; align-items:center; gap:6px; border:1px solid var(--line,#dce6ec); border-radius:8px; padding:2px 8px; min-width:0; }
.bank-subject-choice { display:flex; align-items:center; gap:8px; flex:1; min-width:0; min-height:44px; margin:0; cursor:pointer; font-size:.85rem; line-height:1.35; }
.bank-subject-choice > input, .bank-subject-row > input { width:17px; height:17px; flex-shrink:0; margin:0; }
.bank-subject-choice > span { overflow-wrap:anywhere; }
.bank-subject-choice > strong { margin-left:3px; }
.bank-subject-row strong { font-size:.85rem; padding:3px 7px; border-radius:12px; background: var(--panel-soft); }
.bank-topic-panel { min-width:0; border:1px solid var(--line,#dce6ec); border-radius:10px; padding:12px; }
.bank-topic-panel h3 { margin:0 0 8px; font-size:1rem; }
.bank-topic-panel .bank-tree { margin-top:8px; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:4px 16px; }
.bank-topic-panel .bank-tree > .bank-node:has(> .bank-node-row > details) { grid-column:1/-1; }
.bank-topic-panel .bank-node { padding:2px 0; min-width:0; }
.bank-topic-panel .bank-tree > .bank-node + .bank-node { border-top:1px solid var(--line,#dce6ec); }
.bank-topic-panel .bank-branch summary { padding:8px 2px; min-height:44px; font-size:.88rem; line-height:1.4; }
.bank-topic-panel .bank-leaf { display:flex; align-items:center; flex:1; min-width:0; padding:8px 2px; min-height:40px; font-size:.85rem; line-height:1.4; }
.bank-topic-panel .bank-leaf > span { min-width:0; overflow-wrap:anywhere; }
/* The nonbreaking space keeps the count with the label's last word. */
.bank-topic-panel .bank-leaf .bank-match-count { display:inline; margin-inline-start:2px; }
.bank-topic-panel .bank-node-row { gap:7px; }
.bank-topic-panel .bank-node-row > input { margin-top:11px; }
.bank-topic-panel .bank-node:has(> .bank-node-row > .bank-leaf) { display:flex; align-items:center; }
.bank-topic-panel .bank-node-row:has(> .bank-leaf),.bank-topic-panel .bank-node-row:has(> details:not([open])) { align-items:center; width:100%; }
.bank-topic-panel .bank-node-row:has(> .bank-leaf) > input,.bank-topic-panel .bank-node-row:has(> details:not([open])) > input { margin-top:0; }
.bank-topic-panel .bank-children { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:2px 16px; padding:0 0 6px 10px; border-left:1px solid var(--line,#dce6ec); }
.bank-topic-panel .bank-children > .bank-node:has(details[open]) { grid-column:1/-1; }
.bank-topic-panel .bank-children:not(:has(details)) { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:2px 16px; }
.bank-topic-panel .bank-children > .bank-node { break-inside:avoid; }
.bank-topic-panel .bank-match-count { display:inline-block; white-space:nowrap; margin:0 0 0 7px; padding:1px 6px; border-radius:10px; background:var(--panel-soft); font-size:.76rem; font-weight:650; color:var(--ink); vertical-align:baseline; }
.bank-selection .bank-filters { margin-top:0; }
.bank-selection .bank-filters { gap:6px; }
.bank-selection .bank-filters label,.bank-source-controls .compact-choice label { box-sizing:border-box; min-height:40px; padding:6px 8px; gap:8px; font-size:.85rem; border-color:#d0dce4; }
.bank-selection .bank-filters strong { margin-left:3px; }
.bank-selection .bank-status-help { margin-bottom:0; }
.bank-selection .bank-tree-head { margin:12px 0 8px; }
.bank-selection .bank-tree-hint { margin-bottom:8px; }
.bank-selection .bank-search-label { margin-bottom:4px; font-size:.85rem; }
.bank-selection > #bank-search { padding:9px 12px; min-height:44px; }
.bank-outline-note { font-size:.85rem; line-height:1.5; color: var(--muted); }
.bank-outline-note small { display:block; }
.bank-block { position:static; padding:16px 20px; }
.bank-block-options > summary { cursor:pointer; font-weight:700; color: var(--ink); }
.bank-block-options > label { display:block; font-weight:700; margin:12px 0 6px; }
.bank-block-options > input { width:100%; padding:10px; border:1px solid #bbcdd8; border-radius:8px; font:inherit; }
@media(max-width:640px) {
 .bank-taxonomy-browser { grid-template-columns:1fr; gap:10px; }
 .bank-subject-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .bank-topic-panel { padding:10px; }
 .bank-topic-panel .bank-tree { grid-template-columns:1fr; }
 .bank-topic-panel .bank-children { grid-template-columns:1fr; padding-left:8px; }
 .bank-topic-panel .bank-children:not(:has(details)) { column-width:auto; column-count:1; }
}
.bank-field-picker > summary { font-weight:700; color:var(--navy,#203b53); }
.bank-field-picker > summary span { font-size:.85rem; font-weight:400; margin-left:12px; }
.bank-directory-content { padding-top:12px; }
.bank-directory-content > label { display:block; margin:12px 0 6px; }
.bank-directory-content > input { width:100%; min-height:44px; padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); font:inherit; }
.bank-directory:has(.bank-field-picker:not([open])) { padding:16px; margin-bottom:12px; }
.bank-syllabus-note { padding:14px 18px; border-left:4px solid #417d79; background: var(--panel-soft); margin:16px 0; line-height:1.6; }
.bank-syllabus-note p { margin:6px 0; }
.bank-law-scope label { display:block; margin-bottom:8px; }
.bank-law-scope select { display:block; width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); font:inherit; }
.bank-law-scope p { overflow-wrap:anywhere; }
.bank-syllabus-note small { display:block; color:var(--muted); }
.comparison-caveat, .comparison-conditions p { font-size:.8rem; color:var(--muted); line-height:1.6; }
.dashboard-comparison { padding:22px; margin:20px 0; }
.dashboard-comparison > label { display:block; font-weight:700; margin-bottom:8px; }
.dashboard-comparison .attempt-comparison { margin-bottom:0; }
@media(max-width:640px) {
  .shell:has(.completed-results-card) .topbar { flex-direction:column; align-items:stretch; gap:12px; padding:16px; }
  .shell:has(.completed-results-card) .header-status { width:100%; min-width:0; flex-wrap:wrap; justify-content:flex-start; }
  .completed-results-card .results-heading, .completed-results-card .results-body { padding:18px 16px; }
  .results-summary-strip { gap:8px 16px; }
  .attempt-comparison { padding:16px 12px; }
  .comparison-heading { display:block; }
  .comparison-learning > div { grid-template-columns:1fr; }
  .comparison-badge { display:inline-block; margin-top:12px; }
  .comparison-summary { gap:12px; }
  .comparison-summary small { font-size:.75rem; }
  .comparison-selectors { display:grid; grid-template-columns:1fr; }
  .comparison-chart-controls label { width:100%; }
  .comparison-chart-controls select { width:100%; }
  .dashboard-comparison { padding:16px 12px; }
}

.bank-blueprint-body { padding:8px 0 12px; font-size:.875rem; line-height:1.5; }
.bank-blueprint-body p { margin:8px 0 14px; }
.bank-blueprint-dimension { margin:14px 0; border-top:1px solid var(--line,#dbe3ea); padding-top:10px; }
.bank-blueprint-dimension h4 { margin:0 0 8px; font-size:.9rem; }
.bank-blueprint-dimension ul { list-style:none; padding:0; margin:8px 0; }
.bank-blueprint-dimension li { display:flex; align-items:baseline; gap:12px; justify-content:space-between; padding:5px 0; }
.bank-blueprint-dimension li span { min-width:0; overflow-wrap:anywhere; }
.bank-blueprint-dimension li strong { white-space:nowrap; font-size:.8rem; }
.bank-blueprint-body small { display:block; margin-top:10px; }

/* Community questions: keep disclosure and funding controls readable on small screens. */
#community-questions-root { margin-top:24px; }
#community-questions-root>.card { margin-bottom:16px; padding:24px; }
#community-questions-root details.card { padding:20px; }
#community-questions-root select,#community-questions-root input[type=number],#community-questions-root textarea { max-width:100%; }
#community-questions-root [data-community-edit] { max-width:800px; margin-top:18px; }
#community-questions-root [data-community-edit] label { display:block; font-weight:600; }
#community-questions-root [data-community-edit] textarea { display:block; width:100%; box-sizing:border-box; padding:10px 12px; margin-top:6px; border:1px solid var(--line,#b9cad6); border-radius:8px; font:inherit; font-weight:400; color:inherit; background: var(--panel); resize:vertical; }
#community-questions-root button { margin:8px 8px 8px 0; padding:9px 14px; border:1px solid var(--line,#b9cad6); border-radius:9px; background: var(--panel); color: var(--ink); font:inherit; cursor:pointer; }
#community-questions-root button:disabled { opacity:.6; cursor:wait; }
.community-generation { padding:18px; margin:16px 0; }
.community-generation p,.community-generation small { font-size:.85rem; line-height:1.5; }

/* Launch polish: direct pricing access and readable agreement text. */
.site-navigation-pricing{margin-left:auto;color:#e2edf4;font-size:.85rem;font-weight:600;white-space:nowrap;text-decoration:none;padding:12px 0}
.site-navigation-pricing:hover{text-decoration:underline}
.site-upgrade-entry{position:relative;margin-left:auto;flex-shrink:0}
.site-upgrade-entry .site-navigation-pricing{display:inline-flex;align-items:center;gap:5px;margin-left:0;min-height:44px;box-sizing:border-box}
.site-upgrade-entry svg{width:15px;height:15px;flex-shrink:0}
.site-upgrade-tooltip{position:absolute;right:0;top:100%;z-index:120;width:max-content;max-width:min(280px,calc(100vw - 32px));padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);box-shadow:var(--shadow);font-size:.82rem;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.site-upgrade-tooltip[hidden]{display:none}
.site-upgrade-tooltip strong,.site-upgrade-tooltip>span{display:block}
.site-upgrade-tooltip>span{margin-top:4px;font-weight:400}
.site-navigation-pricing+.site-navigation-account{margin-left:0}
.pricing-label-short{display:none}
.billing-consent{display:grid!important;grid-template-columns:20px minmax(0,1fr);gap:10px;align-items:start;line-height:1.5}
.billing-consent input[type=checkbox]{width:20px;height:20px;margin:2px 0 0}
.billing-consent>span{min-width:0;display:block}
.billing-consent a{display:inline!important}
@media(max-width:800px){.site-navigation-bar{gap:10px}.site-navigation-pricing{font-size:.8rem}.pricing-label-wide{display:none}.pricing-label-short{display:inline}}

.money-operations{padding:clamp(18px,3vw,32px)}
.money-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:24px 0}
.money-summary>div{padding:16px;border:1px solid #ccdbe5;border-radius:10px}.money-summary dt{font-size:.88rem}.money-summary dd{margin:8px 0 0;font-size:1.5rem;font-weight:700}
.money-filter{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:20px 0}.money-filter label{display:grid;gap:8px}.money-filter input{min-height:44px;padding:8px}
.money-records{overflow-x:auto;margin:24px 0}.money-records table{width:100%;border-collapse:collapse;font-size:.8rem}.money-records th,.money-records td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid #ccdbe5;overflow-wrap:anywhere;min-width:130px}

.why-page{max-width:1200px;margin:auto;padding:clamp(24px,4vw,56px) 24px 64px;color: var(--ink)}.why-page p{line-height:1.7}.why-hero{max-width:850px;padding:24px 0 40px}.why-hero h1{font-size:clamp(2.4rem,5vw,4.1rem);line-height:1.08;letter-spacing:-.035em;margin:18px 0}.why-hero>p:not(.eyebrow){max-width:720px;font-size:1.15rem}.why-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.why-cycle{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 48px}.why-cycle article,.why-research article{background: var(--panel);border:1px solid #cbdde7;padding:24px;border-radius:14px}.why-cycle article>span{display:inline-grid;place-items:center;background: var(--panel-soft);color: var(--ink);border-radius:50%;width:32px;height:32px;font-weight:700}.why-cycle h2{font-size:1.2rem;margin:14px 0 8px}.why-intro{max-width:820px}.why-examples,.why-research{margin-top:56px}.why-page h2{line-height:1.2}.why-example-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.why-example-tabs button{padding:12px 18px;border:1px solid #aac2d1;background: var(--panel);color: var(--ink);border-radius:8px;font:inherit;cursor:pointer}.why-example-tabs button[aria-pressed=true]{background:#173e5a;color:white}.why-example-card{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:28px;background: var(--panel);border:1px solid #cbdde7;border-radius:16px}.why-example-card figure{margin:0;min-width:0}.why-example-card svg{display:block;width:100%;height:auto;max-height:260px}.why-example-card figcaption{font-size:.8rem;color: var(--muted);margin-bottom:14px}.why-research-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.why-research article h3{margin-top:0}.why-research article a{font-size:.85rem;line-height:1.6;display:block}.why-application{padding-top:12px;border-top:1px solid #dce6ec}.why-research details{padding:20px;background: var(--panel-soft);border-radius:10px}.why-research summary{font-weight:700;cursor:pointer}.why-next{padding:28px;margin-top:48px}.results-next-step{line-height:1.6;padding:16px;background: var(--panel-soft);border-radius:8px}
@media(max-width:800px){.why-cycle{grid-template-columns:repeat(2,minmax(0,1fr))}.why-research-grid{grid-template-columns:1fr}.why-example-card{grid-template-columns:1fr}.why-hero{padding-top:4px}}
@media(max-width:420px){.why-page{padding:24px 16px 40px}.why-cycle{grid-template-columns:1fr}.why-example-card{padding:18px}}

.billing-period-picker{margin:16px 0 22px}.pricing-annual-charge{font-size:.85rem;line-height:1.6;color: var(--muted);margin-top:-8px}.why-chart-legend{display:flex;justify-content:center;gap:20px;font-size:.8rem;margin:0}
.import-attestation > span > small { display: block; margin-top: .25rem; }

.blind-setup{margin-top:20px;padding:20px;background: var(--panel-soft);border:1px solid #c4d9e5;border-radius:10px}.blind-setup>label{display:flex;align-items:center;gap:10px;font-weight:700;line-height:1.5}.blind-setup input[type=checkbox]{width:20px;height:20px;flex-shrink:0}.blind-setup p{line-height:1.6;margin:12px 0 18px}.blind-setup select{min-height:44px;padding:8px 12px}.hidden-results-card{max-width:900px;margin:auto;padding:clamp(24px,4vw,48px)}.hidden-results-card p{line-height:1.65}.blind-guidance{padding:20px;border-left:4px solid #4a91bc;background: var(--panel-soft);margin:24px 0}.blind-guidance h2{margin-top:0}.hidden-results-card .coaching-actions{gap:14px;margin:24px 0}

.fresh-practice-next{padding:22px;border:1px solid #c4d9e5;border-radius:12px;background: var(--panel-soft);margin:24px 0}.fresh-practice-next h2{font-size:1.25rem;margin:0 0 12px}.fresh-practice-next p{line-height:1.6}.fresh-practice-next .button{margin:6px 0 12px}

.recall-stem-preference{display:flex;gap:12px;align-items:flex-start;padding:18px;border:1px solid #c1d7e4;border-radius:10px;background: var(--panel-soft);margin:18px 0}.recall-stem-preference input{width:20px;height:20px;flex-shrink:0;margin-top:3px}.recall-stem-preference strong,.recall-stem-preference small{display:block;line-height:1.6}.recall-stem-preference small{margin-top:6px;color: var(--muted)}.recall-stem-card{padding:clamp(18px,3vw,28px);line-height:1.65}.recall-stem-card .native-question-stage{padding:20px 0}.recall-stem-card .button{margin-top:20px}.recall-image-note{padding:14px;background: var(--panel-soft);border-radius:8px;line-height:1.6}
body:has(.retrieval-pass-banner) #action-launch{display:none!important}
body:has(.hidden-results-card) #action-launch,
body:has(#community-questions-root [data-community-edit]:focus-within) #action-launch { display:none!important; }

.settings-page{max-width:1040px;margin:auto;padding:clamp(24px,4vw,48px) 20px 64px}.settings-page>header{max-width:760px;margin-bottom:32px}.settings-page h1{font-size:clamp(2rem,4vw,3rem);margin:12px 0}.settings-page p{line-height:1.65}.settings-section{padding:clamp(20px,3vw,32px);margin:24px 0}.settings-section h2{margin-top:0}.appearance-options{display:flex;flex-wrap:wrap;gap:12px;border:0;padding:0;margin:24px 0}.appearance-options legend{font-weight:700;margin-bottom:12px}.appearance-options label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;min-height:48px;padding:12px 20px;cursor:pointer}.appearance-options label:has(input:checked){border-color:var(--sky-500);background:var(--sky-100)}.appearance-options input{width:20px;height:20px;accent-color:#168ac0}.settings-note{color:var(--muted);font-size:.9rem}.settings-links{display:grid;gap:12px}.settings-links a{display:grid;gap:6px;padding:16px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--ink)}.settings-links a:hover{background:var(--sky-100)}.settings-links span{color:var(--muted);line-height:1.6}.study-material-preview{padding:20px;border:1px solid var(--line);border-radius:10px;margin:18px 0}.study-material-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;padding:16px;background:var(--page);font:inherit;font-size:.9rem}.study-material-preview li{margin:12px 0}.study-material-preview summary{cursor:pointer;line-height:1.6}.study-material-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}

@media(max-width:1100px){.import-lab{grid-template-columns:minmax(0,1fr);gap:20px}.import-lab-flow{max-width:600px}.import-lab>.button{justify-self:start}}

.pause-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.pause-settings-note{font-size:.85rem;color:var(--muted);line-height:1.6;margin-top:20px}

dialog.pause-backdrop{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;color:inherit}dialog.pause-backdrop::backdrop{background:transparent}


/* Shared page edges: navigation, headings, content and footer use one grid. */
:root { --site-content-width:1280px; --site-gutter:16px; }
.site-navigation-bar,
body .workspace,
.dashboard-shell .dashboard-workspace,
body .page-context,
body .pricing-shell,
body .why-page,
body .settings-page,
.site-footer .investor-footer-inner {
  width:min(var(--site-content-width),calc(100% - var(--site-gutter) - var(--site-gutter)));
  max-width:var(--site-content-width);
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}
body .pricing-shell,body .why-page,body .settings-page,.site-footer .investor-footer-inner { padding-left:0; padding-right:0; }
@media(max-width:640px) { :root { --site-gutter:12px; } }
@media(max-width:480px) { .site-menu-trigger>span { display:none; } .site-menu-trigger { padding:10px; } }
:root:not([data-theme=dark]) .button-primary{background:#0b6c99;color:#fff}:root:not([data-theme=dark]) .button-primary:hover{background:#085276}

/* Shared controls: one launcher size, compact menu, one scroll region. */
#action-launch.action-launch {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 18px;border-radius:999px;font-size:.875rem;line-height:1.25;white-space:nowrap;bottom:calc(20px + env(safe-area-inset-bottom, 0px));right:20px;}
.site-navigation-dialog {display:none;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;width:320px;}
.site-navigation-dialog[open] {display:grid;}
.site-menu-heading {position:static;background:var(--panel);color:var(--ink);padding:8px 12px;align-items:center;}
.site-menu-heading a {display:none;}
.site-menu-heading h2 {color:var(--ink);margin:0;font-size:1rem;}
.site-menu-heading button {color:var(--ink);border-color:var(--line);min-width:44px;min-height:44px;}
.site-menu-search {padding:0 12px 10px;border-color:var(--line);background:var(--panel);}
.site-menu-search label {font-weight:500;color:var(--muted);}
.site-menu-sections {overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;padding:0 8px;}
.site-menu-sections section {padding:12px 0 8px;border-color:var(--line);}
.site-menu-sections h3 {margin:0 12px 6px;font-size:.75rem;font-weight:500;color:var(--muted);}
.site-menu-sections li > a {min-height:44px;padding:10px 12px;border:0;border-radius:9px;gap:8px;}
.site-menu-sections li > a[aria-current="page"] {background:var(--panel-soft);box-shadow:inset 3px 0 var(--accent);}
.site-menu-sections li > a[aria-current="page"] strong {text-decoration:none;}
.site-menu-sections strong {font-weight:500;}
.site-menu-chevron {font-size:1rem;}
.site-menu-account {padding:10px 16px;border-top:1px solid var(--line);}
.site-menu-account p {margin:0;}
.appearance-options label {position:relative;}
.appearance-options label:has(input:checked) {background:var(--panel-soft);box-shadow:inset 0 0 0 2px var(--accent);}
.appearance-options input {accent-color:var(--accent);}
.pricing-faq {scroll-margin-top:85px;}
#plan-options,#appearance-title {scroll-margin-top:85px;}
@media(max-width:760px){#action-launch.action-launch{right:12px;bottom:calc(12px + env(safe-area-inset-bottom, 0px));}.site-navigation-dialog{max-width:calc(100vw - 32px);}}
@media(max-height:520px){.site-menu-heading{padding:6px 12px;}.site-menu-search{padding:4px 12px 8px;}.site-menu-search label{display:none;}.site-menu-account{padding:6px 12px;}}

.site-menu-group > summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 12px;cursor:pointer;list-style:none;border-radius:8px;color:var(--muted);}
.site-menu-group > summary::-webkit-details-marker{display:none;}
.site-menu-group > summary:after{content:"+";font-size:1rem;}
.site-menu-group[open] > summary:after{content:"−";}
.site-menu-group > summary:hover{background:var(--panel-soft);}
.site-menu-group > summary h3{margin:0;}

#automatic-topups,#ai-preferences,#credit-purchases,#billing-receipts,#refund-unused{scroll-margin-top:90px;}

.appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:360px;}
.appearance-options label{display:flex;justify-content:center;align-items:center;min-width:0;min-height:44px;padding:10px 8px;cursor:pointer;}
.appearance-options input{position:absolute;opacity:0;width:1px;height:1px;}
.appearance-options label:focus-within{outline:3px solid var(--accent);outline-offset:3px;}

.site-account-dialog,.account-menu-heading,.account-menu-identity,.account-menu-bottom{border-color:var(--line);}
.account-menu-heading button{min-width:44px;min-height:44px;}

#answer-changes,.confidence-summary,.reading-load-panel,#requested-charts,.dashboard-comparison,#ai-coach,#recall-queue{scroll-margin-top:90px;}
.settings-page .eyebrow{color:var(--muted);}

/* Compact initial navigation: common actions first, secondary groups deliberate. */
.site-menu-quick h3{margin:4px 12px 8px;}
.site-menu-quick svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;color:var(--muted);}
.site-menu-quick li > a{justify-content:flex-start;gap:12px;}
.site-menu-sections section{padding:6px 0;border-bottom:0;}
.site-menu-sections .site-menu-quick{padding:6px 0 12px;margin-bottom:4px;border-bottom:1px solid var(--line);}
.site-menu-group>summary{font-size:.85rem;color:var(--ink);}
.site-menu-group>summary h3{font-size:.85rem;color:inherit;font-weight:500;}
.site-menu-group ul{padding-left:10px;}
.site-menu-group li>a{font-size:.85rem;}
.profile-identity dl{display:grid;gap:14px;margin:20px 0;}.profile-identity dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;}.profile-identity dt{color:var(--muted);}.profile-identity dd{margin:0;overflow-wrap:anywhere;}
.profile-fields{border:0;padding:0;margin:24px 0;display:grid;gap:20px;}.profile-fields label{display:grid;gap:8px;font-size:.95rem;}.profile-fields input{width:100%;min-height:44px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font:inherit;}.profile-fields input:focus-visible{outline:3px solid var(--accent);outline-offset:2px;}.profile-actions{display:flex;flex-wrap:wrap;gap:10px;}.profile-page small{font-size:.8rem;font-weight:400;color:var(--muted);}

.profile-school-suggestion{padding:18px;margin-top:20px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);}.profile-school-suggestion p{margin:8px 0 14px;}.profile-school-suggestion small{display:block;margin-top:12px;}

.generation-recovery{padding:16px;margin:16px 0;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);}.generation-recovery>strong{font-size:.95rem;}.generation-recovery p{margin:8px 0 12px;color:var(--muted);font-size:.88rem;line-height:1.5;}.generation-recovery .coaching-actions{gap:8px;}.generation-recovery[hidden]{display:none;}
.account-sync-status{bottom:calc(72px + env(safe-area-inset-bottom,0px));max-width:min(260px,calc(100vw - 32px));white-space:normal;text-align:center;}
body:has(dialog[open]) .account-sync-status{visibility:hidden;}
#document-inline-scope #question-bank-root > :not(.bank-scope-pickers,.bank-layout,.bank-law-scope,.bank-error),
#document-inline-scope .bank-layout > :not(.bank-selection),
#document-inline-scope .bank-selection > :not(.bank-tree-head,.bank-tree-hint,.sr-only,#bank-search,.bank-taxonomy-browser),
#document-inline-scope .bank-directory a[href="/workspace?create=1"]{display:none;}
.import-dialog:has(#document-inline-scope #question-bank-root){width:min(1260px,calc(100% - 28px));max-width:calc(100% - 28px);}
#document-inline-scope .bank-layout{grid-template-columns:minmax(0,1fr);}
#document-source-fields .import-format-choice{margin-top:0;}
.import-file-label{position:relative;display:flex;align-items:center;gap:6px;}
#import-form.document-sources #builder-guidance-field{display:none;}
#import-form:has(#document-inline-scope #question-bank-root) #bank-generation-selection,
#import-form.document-sources :is(#builder-shared-scope,#builder-generated-title,#builder-natural){display:none;}
#document-inline-scope .bank-selection{width:100%;min-width:0;}
#generate-inputs .builder-scope{margin:10px 0;}
#generate-inputs .builder-scope>.builder-fields{grid-template-columns:repeat(2,minmax(0,1fr));}
#import-form #community-contribution{margin:8px 0;padding:0;}
#community-contribution>.builder-mode:has(>:not([hidden])){margin:6px 0;}
#community-contribution>.builder-mode:not(:has(>:not([hidden]))),
#community-contribution p:empty,#generation-count-feedback:empty{display:none;}
#import-form #builder-extra-options>summary{margin:4px 0;padding:8px 0;}
.community-generation.builder-material{padding:0;background:transparent;border:0;}
.community-generation.builder-material>summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.community-generation.builder-material[open]>summary{margin-bottom:14px;}
.community-generation:has(input[name="communityContribution"]:checked)>summary{color:var(--ink);}
.community-generation:has(input[name="communityContribution"]:checked) #community-contribution-state{color:var(--ink);font-weight:700;}
.generation-recovery:focus{outline:2px solid var(--line);outline-offset:3px;}


.question-marking-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 16px;border-top:1px solid var(--line);background:var(--panel-soft)}.question-marking-tools small{display:block;flex-basis:100%;color:var(--muted);font-size:12px}.image-crossout-tools{display:flex;gap:6px;flex-wrap:wrap}.native-choice-with-tools{display:flex;align-items:center;gap:8px;min-width:0}.native-choice-with-tools .native-choice-row{flex:1;min-width:0}.crossout-option{flex:none;border:1px solid var(--line);border-radius:7px;background:var(--panel-soft);color:var(--ink);padding:4px;font-size:15px;cursor:pointer;width:36px;min-height:36px;line-height:1}.crossout-option s{text-decoration-thickness:2px}.crossout-option[aria-pressed=true]{border-color:var(--muted);font-weight:700}.user-crossed-out .native-choice-row>strong,.user-crossed-out .native-choice-row>span{text-decoration:line-through;text-decoration-thickness:2px}.native-choice-with-tools .crossout-option:focus-visible{outline:3px solid #3d9bd6;outline-offset:2px}.user-question-highlight{background:#ffeb4f;color:#17232d;border-radius:1px;cursor:pointer}.native-question-stem,.native-choice-row>span{user-select:text}.user-image-markings{position:absolute;inset:0;pointer-events:none;z-index:3}.user-image-highlight{position:absolute;pointer-events:auto;cursor:pointer;background:rgba(255,211,38,.35);border:1px solid rgba(139,106,0,.5)}.user-crossout-line{position:absolute;left:8%;right:5%;height:2px;background:#702d50;box-shadow:0 0 1px white}.drawing-highlight{touch-action:none;cursor:crosshair;user-select:none}.drawing-highlight .user-image-markings{pointer-events:auto}.ai-clue-note{font-size:12px;color:var(--muted);padding:0 16px}#toggle-ai-clues{margin:8px 16px}.native-choice-with-tools .native-choice-row>span{overflow-wrap:anywhere}@media(max-width:520px){.native-choice-with-tools{align-items:stretch;gap:4px}.crossout-option{font-size:14px;width:34px}.question-marking-tools{padding:8px;gap:5px}.question-marking-tools .button{font-size:12px;padding:8px}}

.user-image-draft{z-index:4;pointer-events:none}

/* Keep practice setup primary; references remain available on demand. */
.bank-public{padding-top:24px}.bank-heading{margin:12px 0 20px}.bank-heading h1{font-size:clamp(26px,3vw,34px);line-height:1.2}.bank-heading>p{margin:8px 0}.bank-sample-note{font-size:13px;color:var(--muted)}.bank-sample-details{font-size:13px;color:var(--muted);max-width:850px}.bank-sample-details summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.bank-sample-details p{line-height:1.6;margin:8px 0}.bank-scope-pickers{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;margin:16px 0}.bank-scope-pickers .bank-directory,.bank-scope-pickers .bank-exam-picker,.bank-scope-pickers .bank-directory:has(.bank-field-picker:not([open])){padding:14px 16px;margin:0;border-radius:12px}.bank-scope-pickers:has(.bank-field-picker[open]){grid-template-columns:1fr}.bank-scope-pickers .bank-exam-picker[hidden]{display:none}.bank-outline-details{font-size:13px;margin:12px 0 20px;padding:10px 14px;border:1px solid var(--line);border-radius:8px}.bank-outline-details>summary{cursor:pointer;font-weight:600}.bank-outline-details>div{padding:10px 0 2px}.bank-outline-details p{max-width:1000px}.bank-public .bank-layout{margin-top:16px}@media(max-width:650px){.bank-scope-pickers{grid-template-columns:1fr;gap:8px}.bank-public{padding-top:16px}.bank-heading h1{font-size:27px}}
.bank-scope-pickers .bank-field-picker{margin:0}.bank-scope-pickers .bank-field-picker>summary,.bank-scope-pickers .bank-exam-picker>summary{padding:6px 0}.bank-outline-details>summary{padding:0}@media(min-width:1100px){.bank-layout{grid-template-columns:minmax(0,1fr) 300px;gap:20px}.bank-layout .bank-block{position:sticky;top:90px}.bank-layout .bank-selection{min-width:0}.bank-layout .bank-block-options>summary{line-height:1.5}}

/* Controlled shared practice; legacy/private question runners retain their styling. */
.shared-runner>section.card{padding:20px;margin:16px 0}.shared-runner>section.card>h2:first-child{margin-top:0}
.shared-runner{max-width:1120px;margin:24px auto;padding:20px;color:var(--ink)}.shared-runner-head,.shared-runner-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.shared-runner-head h1{margin:4px 0 12px}.shared-status{min-height:1.6em;color:var(--muted)}.shared-question{margin:20px 0;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:18px}.shared-runner .native-question-content{width:100%;max-width:none}.shared-question-grid{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}.shared-question-grid .button{min-width:44px;min-height:44px}.shared-runner-note{color:var(--muted);font-size:13px}.shared-block-builder{border-block:1px solid var(--line);padding:16px 0;margin:16px 0}.shared-block-builder label{display:inline-grid;gap:4px;margin:6px 12px 10px 0}.shared-block-builder input,.shared-block-builder select{max-width:100%;padding:10px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:6px}.shared-review p{white-space:pre-wrap;overflow-wrap:anywhere}.shared-runner [hidden]{display:none!important}@media(max-width:600px){.shared-runner{padding:12px;margin:8px auto}.shared-question{padding:8px}.shared-block-builder label{display:grid;margin-right:0}.shared-runner-head{align-items:flex-start}}

/* USMLE-style strikeout glyph; retain a usable pointer/keyboard target. */
.native-choice-with-tools .crossout-option{border-color:transparent;background:transparent;color:var(--muted);font-size:14px}
.native-choice-with-tools .crossout-option s{text-decoration-thickness:1px}
.native-choice-with-tools .crossout-option:hover{background:var(--panel-soft);color:var(--ink)}

/* Original attempts are immutable; outcomes supplement, rather than replace, saved marks. */
.native-choice-row.original-correct-choice{background:#e8f6ee;border-color:#237a57;color:#17232d}
.native-choice-row.original-selected-incorrect{background:#fff0f0;border-color:#ba4050;color:#17232d}
.original-choice-outcome{line-height:1.4;font-size:12px;font-weight:750;flex:none;max-width:140px;padding:4px 8px}
.original-choice-outcome:empty{display:none}
.original-review-nav{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0}
.original-review-nav .button{min-width:40px}
.original-review .user-question-highlight{cursor:default}
.original-review .native-choice-row:has(input:disabled),.shared-review .native-choice-row:has(input:disabled){opacity:1;cursor:default}
/* Signed-in identity is a single, quiet profile control. */
.site-navigation-account:has(.account-trigger-name){display:inline-flex;align-items:center;gap:9px;min-width:0;padding:5px 10px 5px 5px;border:1px solid #ffffff29;border-radius:999px;background:#ffffff05;line-height:1.25;transition:background .15s,border-color .15s}
/* Retain the avatar, gaps and chevron when a desktop name is ellipsized. */
@media(min-width:641px){.site-navigation-account:has(.account-trigger-name){min-width:80px}}
.site-navigation-account:has(.account-trigger-name):hover,.site-navigation-account[aria-expanded=true]{background:#ffffff12;border-color:#ffffff55}
.site-navigation-account:focus-visible{outline:2px solid #8ad4fa;outline-offset:3px}
.account-trigger-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border-radius:50%;background:#ccece8;color:#123e43;font-size:11px;font-weight:800;letter-spacing:.02em}
.account-trigger-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;color:inherit;font-weight:600}
.account-trigger-chevron{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;opacity:.75}
@media(max-width:640px){.account-trigger-name{max-width:90px}.site-navigation-account:has(.account-trigger-name){gap:6px;padding-right:8px}.account-trigger-avatar{width:26px;height:26px;font-size:10px}}
@media(max-width:640px){.original-review .native-choice-with-tools,.shared-review .native-choice-with-tools{flex-wrap:wrap}.original-review .native-choice-row,.shared-review .native-choice-row{flex-basis:100%}.original-choice-outcome{max-width:none;padding:2px 8px}}

.site-brand-group{display:inline-flex;align-items:center;gap:8px;flex:none}
.site-beta-badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 7px;border:1px solid #ffffff4d;border-radius:6px;background:#ffffff0a;color:#d9edf8;font-size:11px;font-weight:650;letter-spacing:.02em;text-decoration:none}
.site-beta-badge:hover{background:#ffffff1a;color:white}
.site-beta-badge:focus-visible{outline:2px solid #8ad4fa;outline-offset:3px}
.site-build-label a,.account-menu-bottom a{color:inherit;text-underline-offset:3px}
.beta-status-page{max-width:760px;margin:0 auto;padding:48px 24px 64px;color:var(--ink);line-height:1.7}
.beta-status-page h1{font-size:clamp(28px,4vw,40px);line-height:1.2;margin:8px 0 24px}
.beta-status-page p:not(.eyebrow){font-size:17px;max-width:64ch}
.beta-status-page .button{display:inline-flex;margin-top:12px}
@media(max-width:640px){.site-brand-group{gap:5px}.site-beta-badge{font-size:10px;padding:2px 5px}}
/* Completed shared-question review: independent display and contribution choices. */
.shared-statistics-settings { margin-block: 1rem; }
.shared-runner dialog.modal { max-width: calc(100vw - 24px); color: var(--ink); border: 1px solid var(--line); }
.shared-runner dialog.modal::backdrop { background: rgba(5, 27, 42, .68); }
.shared-runner dialog.modal .modal-actions { flex-wrap: wrap; }
.shared-statistics-settings summary { cursor: pointer; font-weight: 650; }
.shared-statistics-settings label { display: flex; align-items: flex-start; gap: .6rem; margin-block: .8rem; }
.shared-statistics-settings input { flex: 0 0 auto; margin-top: .25rem; }
.shared-answer-statistics { margin-block: 1rem; padding: 1rem; border: 1px solid var(--line, #748b9a); border-radius: .6rem; background: var(--surface, transparent); color: inherit; }
.shared-answer-statistics table { width: min(100%, 26rem); border-collapse: collapse; color: inherit; }
.shared-answer-statistics caption { text-align: left; padding-block: .5rem; }
.shared-answer-statistics th, .shared-answer-statistics td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--line, #748b9a); }

.bank-topic-panels { display:grid; gap:12px; min-width:0; }
.bank-topic-selection { margin-left:8px; color:var(--muted); font-weight:400; font-size:.8rem; white-space:nowrap; }



/* One full-width selector with an explicit next action and persistent reasons. */
.bank-layout { grid-template-columns:minmax(0,1fr); }
.bank-action-area { display:grid; grid-template-columns:minmax(240px,1fr) minmax(0,2fr); gap:10px 18px; align-items:center; margin:18px 0 10px; padding:16px 0; background:var(--panel); border-block:1px solid var(--line); }
.bank-action-feedback strong { font-size:.95rem; }
.bank-action-feedback p { margin:5px 0 0; color:var(--muted); font-size:.85rem; line-height:1.5; }
.bank-actions { display:flex; flex-wrap:wrap; gap:8px; }
.bank-actions .button { width:auto; min-height:44px; margin:0; white-space:nowrap; }
.bank-actions .button[aria-disabled="true"], .bank-actions .button[aria-disabled="true"]:hover { background:var(--panel-soft); color:var(--muted); border:1px solid var(--line); box-shadow:none; cursor:not-allowed; opacity:1; }
#bank-status { grid-column:1/-1; margin:0; font-size:.85rem; color:var(--ink); }
#bank-status:empty { display:none; }
.bank-block-options { margin-bottom:18px; font-size:.85rem; }
.bank-block-options[hidden] { display:none; }
.bank-settings-grid { display:grid; grid-template-columns:1fr 2fr; gap:12px; margin:12px 0; }
.bank-action-area > .bank-settings-grid { grid-template-columns:minmax(9rem,14rem); margin:0; }
.bank-action-area > .bank-settings-grid[hidden] { display:none; }
.bank-action-area > .bank-actions { grid-column:1/-1; }
.bank-settings-grid label { display:grid; align-content:start; gap:6px; font-weight:600; }
.bank-settings-grid input { width:100%; min-width:0; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); font:inherit; }
.bank-settings-grid small { color:var(--muted); font-weight:400; }
.bank-plan { padding:16px; margin-bottom:18px; border:1px solid var(--line); border-radius:10px; }
@media(min-width:900px) { .bank-action-area { position:sticky; top:78px; z-index:4; } }
@media(max-width:760px) { .bank-action-area { grid-template-columns:1fr; } .bank-actions .button { flex:1; padding:10px 12px; font-size:.8rem; } .bank-settings-grid { grid-template-columns:1fr 1fr; } .bank-settings-grid label:last-child { grid-column:1/-1; } }

/* One saved explanation layout for private and shared review. */
.saved-explanation-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.saved-explanation-head h2 { margin:0; font-size:1.05rem; }
.saved-explanation-section { padding-top:16px; margin-top:16px; border-top:1px solid var(--line); }
.saved-explanation-section h3 { margin:0 0 8px; font-size:.94rem; color:var(--ink); }
.saved-explanation-section p { white-space:pre-line; overflow-wrap:anywhere; }
.saved-explanation-section .saved-explanation-clue { margin-top:10px; color:var(--muted); }
.saved-explanation-section p + p { margin-top:14px; }
.saved-explanation-section strong { color:var(--ink); font-weight:700; }
.saved-explanation-source { margin-top:16px; }
.saved-explanation-source summary { cursor:pointer; font-weight:600; }

.learning-panel > .saved-explanation, .learning-panel > .verdict-card { grid-column: 1 / -1; }

:root { --asset-series-1:#276589; --asset-series-2:#a85315; --asset-series-3:#537a39; --asset-series-4:#825a9f; }
[data-theme="dark"] { --asset-series-1:#83c8ef; --asset-series-2:#ffc18b; --asset-series-3:#aad987; --asset-series-4:#d3aff3; }
.teaching-asset { line-height:1.6; margin:18px 0; padding:16px; background:var(--panel-soft); color:var(--ink); border:1px solid var(--line); border-radius:10px; min-width:0; }
.teaching-asset figcaption { margin-bottom:12px; }
.teaching-asset figcaption p { margin-top:6px; }
.teaching-table-scroll { max-width:100%; overflow:auto; }
.teaching-table-scroll > table { width:100%; border-collapse:collapse; font-size:.95rem; margin-block:12px; }
.teaching-table-scroll > table th,.teaching-table-scroll > table td { border:1px solid var(--line); padding:10px 12px; text-align:start; vertical-align:top; min-width:130px; white-space:normal; overflow-wrap:break-word; line-height:1.55; }
.teaching-table-scroll > table thead th { background:var(--panel-soft); font-weight:700; }
.teaching-table-scroll > table tbody th { font-weight:650; }
[data-table-keep] { margin-block:12px; }
[data-table-keep] button { min-height:44px; white-space:normal; }
[data-keep-status]:empty { display:none; }
.teaching-asset table { border-collapse:collapse; width:100%; font-size:.9rem; }
.teaching-asset th,.teaching-asset td { border:1px solid var(--line); padding:8px; text-align:start; vertical-align:top; min-width:90px; white-space:pre-line; }
.teaching-asset th { font-weight:650; }
.teaching-chart,.teaching-diagram { width:100%; height:auto; display:block; color:var(--ink); overflow:visible; }
.teaching-chart text { fill:currentColor; font-size:11px; }
.teaching-grid-line { stroke:var(--line); }
.teaching-chart-legend { display:flex; flex-wrap:wrap; list-style:none; gap:16px; padding:0; }
.teaching-chart-legend span { display:inline-block; width:12px; height:12px; margin-right:6px; }
/* Keep concept maps at their authored scale; narrow screens retain the scrollable text alternative. */
.teaching-diagram { max-width:600px; }
.teaching-diagram-connections { margin-top:12px; }
.teaching-diagram rect { fill:var(--panel); stroke:currentColor; }
.teaching-diagram text { fill:currentColor; font-size:13px; }
.teaching-provenance { margin-top:12px; font-size:.85rem; overflow-wrap:anywhere; }
.teaching-asset summary { cursor:pointer; }

.teaching-library-layout { display:grid; grid-template-columns:minmax(220px,1fr) minmax(0,3fr); gap:16px; align-items:start; }
.teaching-library .card { padding:20px; margin-bottom:16px; min-width:0; }
.teaching-editor-fields { border:0; padding:0; min-width:0; }
.teaching-editor-fields > label:not(.import-field) { display:block; margin:12px 0; }
.teaching-editor-fields > .button { margin:6px; }
.teaching-editor-fields table input { width:100%; min-width:100px; }
@media(max-width:760px){.teaching-library-layout{grid-template-columns:1fr;}}

.teaching-visual-scroll { max-width:100%; overflow:auto; }
.teaching-visual-scroll > svg { min-width:600px; }

/* Three strokes converge once, then remain still. Keep the wordmark readable throughout. */
.site-brand, .site-footer .investor-footer-brand { display:inline-flex; align-items:center; gap:8px; }
.brand-mark { width:30px; height:30px; flex:none; overflow:visible; }
.brand-stroke { transform-box:fill-box; transform-origin:center; }
.brand-mark-animated .brand-stroke-one { animation:brand-converge-one .9s cubic-bezier(.2,.75,.2,1) both; }
.brand-mark-animated .brand-stroke-two { animation:brand-converge-two .9s cubic-bezier(.2,.75,.2,1) both; }
.brand-mark-animated .brand-stroke-three { animation:brand-converge-three .9s cubic-bezier(.2,.75,.2,1) both; }
@keyframes brand-converge-one { 0% { transform:translate(-64px,-34px); opacity:0; } 65%,100% { transform:none; opacity:1; } }
@keyframes brand-converge-two { 0%,10% { transform:translate(2px,20px); opacity:0; } 80%,100% { transform:none; opacity:1; } }
@keyframes brand-converge-three { 0%,20% { transform:translate(64px,34px); opacity:0; } 95%,100% { transform:none; opacity:1; } }
@media(prefers-reduced-motion:reduce) { .brand-mark-animated .brand-stroke { animation:none; } }
@media(max-width:640px) { .site-brand .brand-mark { width:24px; height:24px; } .site-brand { gap:5px; } }

#my-saved-sets { scroll-margin-top:90px; }
.bank-empty-note a { text-decoration:underline; text-underline-offset:3px; }
.site-account-dialog .appearance-compact{margin:12px 20px}.site-menu-account .appearance-compact{margin:8px 0}.pause-appearance{margin:20px 0}

#bank-next-step{margin-top:20px}#bank-next-step[hidden],.bank-empty-note[hidden]{display:none}

.saved-set-actions{display:flex;justify-content:flex-end;margin:12px 0}

/* Shared question-outcome symbols and view grammar across timing reports. */
.question-outcome-symbols{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;line-height:13px}
.question-outcome-symbols .outcome-result{line-height:13px}
.question-outcome-symbols .outcome-mark{min-height:10px;font-size:8px;line-height:10px}
.comparison-cell .comparison-outcome{grid-row:3 / span 2}
.journey-cell{height:116px}.journey-cell-bar{bottom:44px}.journey-cell-time{bottom:26px}
.journey-mark.question-outcome-symbols{top:auto;bottom:0;width:100%;font-size:11px;line-height:13px}
.journey-completion{--journey-total-baseline:44px}.journey-completion .journey-total-cell{height:124px}
.journey-compact .journey-mark.question-outcome-symbols{display:none}
.comparison-compact th:first-child{width:110px}
.comparison-compact thead button{position:relative;min-width:0;min-height:40px;padding:0}
.comparison-compact .comparison-question-label{display:none}
.comparison-compact .comparison-major-label .comparison-question-label{display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;font-size:.65rem}
.comparison-compact .comparison-cell button{height:78px;grid-template-rows:58px}
.comparison-compact .comparison-time-label,.comparison-compact .comparison-outcome{display:none}
.comparison-compact .comparison-cell .comparison-pace-line{bottom:calc(3px + var(--comparison-pace-height))}
.comparison-pattern-evidence{margin-top:12px}.comparison-pattern-evidence li{margin:8px 0;overflow-wrap:anywhere}

.journey-compact .journey-cell-time{bottom:3px}
.comparison-compact th:nth-child(2) .comparison-question-label{left:2px;transform:translateY(-50%)}
.comparison-compact th:last-child .comparison-question-label{left:auto;right:2px;transform:translateY(-50%)}

.generation-settings-fields.builder-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:15px 0}
.generation-settings-fields>.import-field{margin:0}
.generation-settings-support.builder-mode{align-items:center;margin:0 0 14px;gap:8px 14px}
.generation-settings-support>small{flex:1 1 18rem;min-width:0;color:var(--muted);font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.generation-settings-support>.button{max-width:100%;white-space:normal}
.question-generation-details{margin:12px 0;font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
.question-generation-details>summary{cursor:pointer;font-weight:700}
.question-generation-details dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:6px 16px}.question-generation-details dt{font-weight:600}.question-generation-details dd{margin:0}
@media(max-width:600px){.generation-settings-fields.builder-fields{grid-template-columns:1fr}.question-generation-details dl{grid-template-columns:1fr}}

.linked-case-band th{font-size:11px;padding:6px 2px!important;white-space:normal!important}.linked-case-bracket{border-bottom:3px solid var(--accent,#3b7196)!important;border-left:1px solid var(--line,#637384);border-right:1px solid var(--line,#637384)}.linked-case-label{display:block;font-size:11px;font-weight:400}.linked-case-summary{margin:14px 0}.linked-case-summary table{width:100%;border-collapse:collapse}.linked-case-summary th,.linked-case-summary td{text-align:left;padding:8px;border-bottom:1px solid var(--line,#637384)}

/* Shared field/exam/subject selection, consistent with practice tiles. */
.scope-picker-tiled{min-width:0}.scope-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.scope-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.scope-panel-heading h4{margin:12px 0}.scope-panel-heading>span{color:var(--muted);font-size:.85rem}.scope-search{display:block;max-width:520px;margin:12px 0}.scope-search input{display:block;width:100%;margin-top:6px}.scope-tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.scope-tile{display:flex;flex-direction:column;min-width:0;padding:15px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);color:var(--ink)}.scope-tile-selected{border:2px solid #5199cf;padding:14px}.scope-tile-partial{border-color:#5199cf}.scope-tile-select{display:flex!important;align-items:flex-start!important;gap:10px;cursor:pointer;flex:1;min-width:0}.scope-tile-select input{flex:0 0 auto!important;width:18px!important;height:18px;margin-top:3px!important;accent-color:#327db5}.scope-tile-select span{min-width:0;overflow-wrap:anywhere}.scope-tile-select strong{display:block;line-height:1.45}.scope-tile-select small{display:block!important;margin:7px 0;color:var(--muted);font-size:.8rem;line-height:1.45}.scope-tile-open{align-self:flex-start;margin-top:10px;text-align:left;white-space:normal!important}.scope-tile:focus-within{outline:2px solid #5199cf;outline-offset:3px}.scope-selected{border-top:1px solid var(--line);margin-top:20px;padding-top:4px}.scope-selected ul{list-style:none;padding:0}.scope-selected li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.scope-selected li>span{min-width:0;overflow-wrap:anywhere}.scope-selected .coaching-actions{flex-shrink:0}.scope-edit-notice{border-left:3px solid #5199cf;padding:12px}.scope-edit-notice .button{margin-left:8px}@media(max-width:1000px){.scope-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:580px){.scope-tile-grid{grid-template-columns:1fr}.scope-selected li{flex-direction:column}.scope-breadcrumbs .button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.scope-selected .coaching-actions{flex-wrap:wrap}}

.coach-profile-steps{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.coach-profile-steps a{display:block;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft);color:var(--ink);font-size:.85rem}.coaching-form [id^="coach-profile-"]{scroll-margin-top:90px}.coach-profile-preview{padding:16px;border:1px solid var(--line);border-radius:10px}.coach-profile-preview summary{font-weight:700;cursor:pointer}.coach-profile-preview li{overflow-wrap:anywhere}

.scope-filter-row{grid-column:1/-1;min-width:0}.scope-filter-row h3{font-size:1rem}.scope-filter-tiles{display:flex;gap:8px;flex-wrap:wrap}.scope-filter-tiles .button{padding:10px 14px;text-align:left;white-space:normal;overflow-wrap:anywhere;background:var(--panel-soft);color:var(--ink);border:1px solid var(--line);border-radius:10px}.scope-filter-tiles .button[aria-pressed="true"]{border:2px solid #5199cf;padding:9px 13px}

.coaching-overview{display:grid;gap:18px}.coaching-overview>.card{padding:24px}.coaching-review-guide{padding:20px;margin:18px 0}.coaching-review-guide summary{font-weight:700;cursor:pointer}.coaching-review-guide th,.coaching-review-guide td{vertical-align:top;min-width:150px}.coaching-review-guide td{max-width:370px}.coaching-review-guide .table-wrap{overflow-x:auto}

.coaching-report-feedback{padding:24px;margin:20px 0}.coaching-report-feedback summary{font-weight:700;cursor:pointer;margin:16px 0}.coaching-feedback-published dl{margin:16px 0}.coaching-feedback-published dt{font-weight:700;margin-top:16px}.coaching-feedback-published dd{margin:6px 0 0;overflow-wrap:anywhere}.coaching-feedback-receipt{border:1px solid var(--line);border-radius:10px;padding:20px;margin:16px 0;background:var(--panel-soft)}

.coaching-conversation{scroll-margin-top:90px}.coaching-message-history{max-height:480px;overflow:auto;overscroll-behavior:contain;min-width:0}.coaching-message-history .coach-message{overflow-wrap:anywhere}.coaching-conversation textarea{width:100%}

.coaching-conversation h2 { scroll-margin-top: 96px; }

.coaching-time-bars { display: grid; gap: 18px; padding-left: 24px; }
.coaching-time-bars li { display: grid; grid-template-columns: minmax(90px,1fr) minmax(80px,2fr) minmax(140px,1fr); gap: 10px; align-items: center; }
.coaching-time-bars meter { width: 100%; height: 16px; accent-color: var(--accent); }
.coaching-time-bars small { grid-column: 1 / -1; }
.coaching-case-label { display:block; min-width:140px; max-width:240px; margin-top:4px; }
.coach-result-question { scroll-margin-top: 96px; }
@media(max-width:600px) { .coaching-time-bars li { grid-template-columns: 1fr; } }

.insight-sharing { scroll-margin-top: 96px; }
.insight-sharing-heading { display:flex; gap:24px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.insight-sharing-heading>div:first-child { flex:1 1 360px; }
.insight-sharing-panel { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.insight-sharing-panel fieldset { min-width:0; margin:16px 0; padding:20px; border:1px solid var(--line); border-radius:12px; }
.insight-sharing-panel legend { padding:0 8px; font-weight:700; }
.insight-sharing-panel button { cursor:pointer; padding:10px 14px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); font:inherit; }
.insight-sharing-panel button[aria-pressed=true] { outline:2px solid var(--sky-500); background:var(--panel-soft); }
.insight-sharing-panel button:disabled { cursor:wait; opacity:.6; }
.insight-sharing-panel input:not([type=checkbox]),.insight-sharing-panel select { width:100%; max-width:100%; box-sizing:border-box; padding:12px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--panel); font:inherit; }
.insight-sharing-panel input[type=checkbox] { width:20px; height:20px; flex:0 0 20px; }
.insight-attempt-list { max-height:360px; overflow:auto; display:grid; gap:10px; margin-top:14px; }
.insight-attempt-choice { display:flex!important; align-items:flex-start; gap:12px; padding:12px; border:1px solid var(--line); border-radius:10px; }
.insight-attempt-choice small,.insight-coach-tile span { display:block; margin-top:5px; }
.insight-coach-search { display:flex; gap:12px; align-items:flex-end; margin:16px 0; }
.insight-coach-search label { flex:1; }
.insight-coach-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; margin:16px 0; }
.insight-coach-tile { text-align:left; min-height:100px; overflow-wrap:anywhere; }
.insight-share-summary,.insight-share-created,.insight-feedback-receipt { padding:20px; margin:16px 0; border:1px solid var(--line); border-radius:12px; background:var(--panel-soft); }
.insight-access-list { display:grid; gap:16px; max-height:680px; overflow:auto; }
.insight-sharing-panel .coaching-invitation { overflow-wrap:anywhere; }
#insight-share-panel-title { scroll-margin-top:96px; }
@media(max-width:600px) {
 .insight-sharing-panel fieldset { padding:12px; }
 .insight-coach-search { flex-direction:column; align-items:stretch; }
 .insight-sharing-heading .coaching-actions { width:100%; }
 .insight-sharing-panel .coaching-actions>* { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
}

.insight-sharing-panel .button-primary { background:var(--navy-900); color:#fff; }

.card.insight-sharing { padding:24px 28px; }
@media(max-width:600px) { .card.insight-sharing { padding:16px; } }

.insight-section-options { display:grid; gap:12px; margin:18px 0; }
.insight-section-choice { display:flex!important; align-items:flex-start; gap:12px; padding:14px; border:1px solid var(--line); border-radius:10px; }
.insight-section-choice small { display:block; margin-top:5px; line-height:1.5; }
.insight-report-preview { padding:16px; border:1px solid var(--line); border-radius:10px; overflow-wrap:anywhere; }
.card.shared-report-context { padding:24px 28px; overflow-wrap:anywhere; }
.shared-report-context p { line-height:1.6; }
@media(max-width:600px) { .card.shared-report-context { padding:16px; } }

.shared-report-sections { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.shared-insights-navigation>a { display:inline-block; margin:12px 20px 0 0; }
#attempt-progress-title,#attempt-journey-title,#selected-attempt-insights,#shared-report-context,#shared-report-feedback,#shared-report-sections { scroll-margin-top:96px; }
.shared-report-return { margin:20px 0; }

.insight-inbox h3[tabindex] { scroll-margin-top: 96px; }

#shared-question-evidence-title, #shared-question-record-title { scroll-margin-top: 96px; }
.insight-question-record { margin:20px 0; padding:18px; border:1px solid var(--border); border-radius:12px; }
.insight-record-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
.insight-record-metrics dt { font-size:.85rem; opacity:.8; }
.insight-record-metrics dd { margin:4px 0 0; font-weight:700; }

.coaching-offer-editor > summary { cursor:pointer; padding:4px 0; }
.coaching-offer-editor form { margin-top:18px; }
.coaching-offer-editor fieldset { display:grid; gap:16px; min-width:0; margin:0; padding:0; border:0; }
.coaching-offer-preview { padding-top:14px; border-top:1px solid rgba(128,150,170,.35); }
.coaching-offer-editor .button { max-width:100%; white-space:normal; }

.insight-text-review { margin:18px 0; padding:14px; border:1px solid rgba(128,150,170,.35); border-radius:12px; }
.insight-reflection-list { display:grid; gap:14px; max-height:620px; overflow:auto; margin:16px 0; }
.insight-share-reflection { min-width:0; padding:14px; border:1px solid rgba(128,150,170,.35); border-radius:10px; }
.insight-share-reflection h4, .insight-share-reflection p, .insight-sharing .preserve-lines { overflow-wrap:anywhere; }
.insight-share-reflection textarea, .insight-text-review textarea { width:100%; max-width:100%; box-sizing:border-box; }
.insight-text-review button { max-width:100%; white-space:normal; }
#share-reflection-page-title, #insight-share-success-title { scroll-margin-top:96px; }

.coach-profile-editor-fields{border:0;padding:0;margin:0;min-width:0;}
.coach-profile-editor .coaching-actions{margin-bottom:14px;}

#insight-feedback-receipt-title,.coaching-feedback-receipt{scroll-margin-top:96px;}

/* Keep set/attempt filters and chart labels legible on phones. */
.insights-scope-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.insights-scope-controls label{display:grid;gap:6px;min-width:0}.insights-scope-controls select{width:100%;min-width:0}.progress-chart-main{overflow-x:auto;padding-top:24px;margin-top:-24px}.progress-plot,.progress-attempt-labels{min-width:calc(var(--attempt-count,1) * var(--attempt-label-width,60px))}.progress-attempt-labels strong{white-space:nowrap;font-size:12px}@media(max-width:600px){.insights-scope-controls{grid-template-columns:1fr}.progress-attempt-labels small{font-size:11px}.progress-attempt-labels button{padding:7px 1px}.progress-attempt-labels{gap:2px}}

/* Answer speed is separate from accuracy. */
.pace-metric-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.pace-metric{display:flex;flex-direction:column;gap:7px;padding:18px;border:1px solid var(--border,#cbd5e1);border-radius:12px;background:var(--surface,#fff)}.pace-metric>span{font-weight:700}.pace-metric>strong{font-size:2rem;line-height:1.2}.pace-metric small{line-height:1.5}.pace-plain-explanation{line-height:1.6;padding:14px;border-left:4px solid #0f766e;background:rgba(13,148,136,.07)}.pace-bar-list{display:grid;gap:18px;margin:24px 0;max-height:560px;overflow:auto;padding:2px}.pace-bar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}.pace-bar-heading button{display:flex;gap:9px;align-items:baseline;text-align:left;background:transparent;color:inherit;border:0;padding:3px;min-width:0;cursor:pointer}.pace-bar-heading button span{overflow-wrap:anywhere;line-height:1.4}.pace-bar-heading button[aria-pressed=true]{text-decoration:underline}.pace-bar-heading>b{white-space:nowrap;font-size:.9rem}.pace-stacked-bar{display:flex;overflow:hidden;height:22px;border-radius:6px;background:#e2e8f0}.pace-stacked-bar span{display:block;height:100%}.pace-within{background:#0f766e}.pace-over{background:#b45309}.pace-unknown{background:#94a3b8}.pace-bar-row p{font-size:.85rem;margin:7px 0 0;line-height:1.5}.pace-bar-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:.85rem}.pace-bar-legend span{display:flex;gap:6px;align-items:center}.pace-bar-legend i{width:13px;height:13px;border-radius:3px}.pace-extra{margin-top:18px;border-top:1px solid var(--border,#cbd5e1);padding-top:14px}.pace-extra summary{cursor:pointer;font-weight:600}.pace-extra .pace-chart-details{display:grid;gap:12px;margin-top:14px}.pace-signal-card .pace-card-content{width:100%}.pace-signal-card{grid-column:1/-1}.pace-card-content h2{font-size:1.2rem}@media(max-width:600px){.pace-metric-pair{grid-template-columns:1fr}.pace-bar-heading{flex-direction:column;gap:3px}.pace-bar-heading>b{padding-left:3px}.pace-metric{padding:14px}.pace-progress-card .attempt-progress-head{align-items:stretch}.pace-chart-target{max-width:100%}}

.pace-metric{background:transparent}.pace-bar-heading button{font:inherit}.pace-card-content{min-width:0}

.pace-apply{align-self:center;min-height:40px}.pace-progress-card .attempt-progress-head{flex-wrap:wrap}.pace-card-content>.pace-apply{margin:8px 0}

.pace-apply{padding:9px 14px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;cursor:pointer}

.live-sharing-panel{margin-top:20px;border-top:1px solid currentColor;padding-top:18px}.live-sharing-panel fieldset{border:0;padding:0;min-width:0}.live-sharing-panel label{display:grid;gap:6px;margin:12px 0}.live-sharing-panel input[type=search],.live-sharing-panel select{width:100%;max-width:100%}.live-coach-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:16px 0}.live-coach-options button{display:flex;flex-direction:column;text-align:left;gap:8px;padding:14px;background:transparent;color:inherit;border:1px solid currentColor;border-radius:10px;cursor:pointer;overflow-wrap:anywhere}.live-coach-options button[aria-pressed=true]{outline:3px solid #0f766e;outline-offset:2px}.live-share-options{padding:14px;border:1px solid currentColor;border-radius:10px;margin:16px 0}.live-consent-summary{padding:14px;border-left:3px solid #0f766e;line-height:1.6}.live-access-card{padding:14px;border:1px solid currentColor;border-radius:10px;margin:12px 0;overflow-wrap:anywhere}.live-sharing-panel .checkbox-row{display:flex;gap:10px;align-items:center}.live-share-success{margin:16px 0;padding:14px;border:1px solid #0f766e;border-radius:10px}

.assigned-insight-attempts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.assigned-insight-attempts button{display:grid;gap:7px;text-align:left;color:inherit;background:transparent;cursor:pointer;margin:0}.assigned-insight-attempts button[aria-pressed=true]{outline:3px solid #0f766e;outline-offset:2px}
/* Recall uses one compact context row; the question and navigation have priority. */
@media screen{
body:has(.recall-focused) .site-navigation-bar{min-height:48px}
body:has(.recall-focused) .site-beta-badge{display:none}
.recall-focused .review-workspace{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;width:calc(100% - 20px);max-width:none;margin:8px auto 16px;padding:0}
.recall-focused .review-toolbar{grid-column:1;grid-row:1;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0;min-height:34px}
.recall-focused .review-toolbar h1{font-size:.95rem}
.recall-focused .review-toolbar p{font-size:.78rem}
.recall-focused .review-toolbar .review-score{display:none}
.recall-focused .review-pass-strip{grid-column:2;grid-row:1;align-self:center;margin:0;padding:0;border:0;background:transparent}
.recall-focused .review-pass-strip>div:first-child{display:none}
.recall-focused .review-pace{margin:0;padding:0;text-align:right}
.recall-focused #review-clock{font-size:1rem}
.recall-focused #review-clock-label{font-size:.7rem;line-height:1.25}
.recall-focused .review-layout,.recall-focused .review-empty,.recall-focused .blind-rechallenge-banner{grid-column:1/-1;min-width:0;margin:0}
.recall-focused .review-question{overflow:visible}
.recall-focused .review-question-head{padding:7px 10px;gap:8px}
.recall-focused .review-position{font-size:.8rem;line-height:1.3}
.recall-focused .review-question-meta{gap:6px}
.recall-focused .review-question-meta label{font-size:.78rem}
.recall-focused .review-zoom{margin:0}
.recall-focused .recall-help{display:block;position:relative;margin:0;padding:0;border:0;background:transparent;font-size:.8rem}
.recall-focused .recall-help summary{cursor:pointer;padding:7px;min-height:30px;box-sizing:border-box}
.recall-focused .recall-help>div{position:absolute;right:0;top:100%;z-index:40;display:block;width:min(360px,80vw);padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 8px 24px #0003}
.recall-focused .recall-help p{font-size:.9rem;line-height:1.5;margin:0 0 8px;color:var(--ink)}
.recall-focused .recall-marking-tools{padding:6px 10px;border-top:1px solid var(--line);font-size:.8rem}
.recall-focused .recall-marking-tools>summary{cursor:pointer;min-height:30px;display:flex;align-items:center}
.recall-focused .review-nav{position:sticky;bottom:0;z-index:25;flex-wrap:wrap;min-height:48px;padding:7px 10px;box-sizing:border-box;background:var(--panel);box-shadow:0 -3px 12px #0002;border-radius:0 0 12px 12px}
.recall-focused .review-nav .button{min-height:38px}
.recall-focused .compact-check-button{min-width:0}
@media(max-width:640px){.recall-focused .review-workspace{width:calc(100% - 12px);gap:5px 7px}.recall-focused .review-toolbar{gap:5px}.recall-focused .review-toolbar h1{font-size:.85rem}.recall-focused .review-question-head{flex-wrap:wrap;padding:6px 8px}.recall-focused .review-question-meta{display:flex;flex-wrap:wrap;align-items:center}.recall-focused .review-nav{gap:6px}.recall-focused .review-nav .button{flex:1;padding:8px;font-size:.83rem}}
}

@media screen and (max-width:640px){.recall-focused .recall-help>div{position:fixed;top:104px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 130px);overflow:auto;box-sizing:border-box}}
.recall-resume-notice{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:12px 0;border:1px solid var(--line);border-left:4px solid #1689ac;border-radius:10px;background:var(--panel-soft)}.recall-resume-notice p{margin:4px 0 0;font-size:.88rem;line-height:1.4}.recall-resume-notice .button{flex-shrink:0}
/* Recall actions stay reachable even when a scanned question is taller than the screen. */
@media screen {
  .recall-focused .review-workspace { margin-top:4px; margin-bottom:calc(92px + env(safe-area-inset-bottom,0px)); }
  .recall-focused .review-toolbar h1 { margin:0; max-width:min(32vw,360px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .recall-focused .review-toolbar p { margin:0; }
  .recall-focused .review-question-meta { flex-direction:row; flex-wrap:wrap; align-items:center; }
  .recall-focused .review-image-wrap { padding:6px; }
  .recall-focused .review-nav {
    position:fixed; left:0; right:0; bottom:0; z-index:45;
    display:flex; flex-wrap:nowrap; justify-content:center; gap:10px;
    padding:8px max(10px,env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-right,0px));
    border-radius:0; border-top:1px solid var(--line);
  }
  .recall-focused .review-nav .button { flex:1; max-width:240px; min-width:0; min-height:44px; }
  .recall-focused .review-checked-label { max-width:30%; text-align:center; }
  .recall-focused .review-question { scroll-margin-bottom:100px; }
  .recall-focused .review-question :is(button,input,textarea,summary) { scroll-margin-bottom:100px; }
}
@media screen and (max-width:640px) {
  .recall-focused .review-toolbar h1 { max-width:32vw; }
  .recall-focused .review-toolbar { gap:4px 6px; }
  .recall-focused .review-nav { gap:6px; }
  .recall-focused .review-nav .button { padding:8px 6px; font-size:.8rem; }
}
@media screen {
  body:has(.recall-focused) .account-sync-status { bottom:calc(76px + env(safe-area-inset-bottom,0px)); max-width:min(260px,calc(100vw - 24px)); }
}

/* Learner AI coaching room follows the existing card/button system. */
.ai-coach-intro{display:flex;gap:1.5rem;align-items:center;justify-content:space-between;margin-bottom:1rem}
.ai-coach-intro>div{max-width:48rem}.ai-coach-badge{display:inline-block;font-size:.72rem;letter-spacing:.08em;font-weight:700;color:var(--green-700)}
.ai-coach-room{display:grid;grid-template-columns:minmax(240px,1fr) minmax(320px,2fr);gap:1rem;margin-top:1rem;align-items:start}
.ai-coach-sidebar{display:grid;gap:1rem;min-width:0}.ai-coach-room .card{min-width:0}.ai-coach-session-heading{display:flex;align-items:start;justify-content:space-between;gap:1rem}
.ai-coach-conversation{max-height:34rem;min-height:14rem;overflow:auto;overscroll-behavior:contain;padding:.5rem 0;margin:1rem 0;border-block:1px solid var(--line)}
.ai-coach-message{padding:1rem;border-radius:12px;margin:.6rem 0;border:1px solid var(--line)}.ai-coach-message-user{margin-left:1.5rem;background:var(--panel-soft)}.ai-coach-message p{margin-bottom:0;white-space:pre-wrap;overflow-wrap:anywhere}
.ai-coach-welcome{padding:1rem}.ai-coach-task{grid-column:1/-1;scroll-margin-top:6rem}.ai-coach-evidence{max-height:16rem;overflow:auto;overflow-wrap:anywhere}.ai-coach-evidence article{padding:.5rem 0;border-bottom:1px solid var(--line)}
.ai-coach-room input,.ai-coach-room textarea{width:100%;box-sizing:border-box;min-width:0}.ai-coach-room button,.ai-coach-room a{white-space:normal}.ai-coach-task details{margin-top:1rem}
@media(max-width:760px){.ai-coach-room{grid-template-columns:minmax(0,1fr)}.ai-coach-intro,.ai-coach-session-heading{flex-direction:column;align-items:stretch}.ai-coach-message-user{margin-left:.5rem}.ai-coach-task{grid-column:auto}}
.ai-coach-evidence-panel{margin-block:1rem;padding:1rem;border-radius:12px;background:var(--panel-soft);border:1px solid var(--line)}
.ai-coach-room select{width:100%;min-width:0}.ai-coach-timing-list{max-height:22rem;overflow:auto}.ai-coach-time-row{display:grid;grid-template-columns:minmax(5rem,1fr) minmax(3rem,2fr) minmax(6rem,1fr);gap:.5rem;align-items:center;font-size:.8rem;margin-block:.65rem;overflow-wrap:anywhere}
.ai-coach-time-track{display:block;background:var(--line);height:.7rem;border-radius:4px}.ai-coach-time-track>span{display:block;height:100%;border-radius:4px}.ai-coach-counts>div{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding-block:.5rem}.ai-coach-counts dd{margin:0;text-align:right}
@media(max-width:420px){.ai-coach-time-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ai-coach-time-track{grid-column:1/-1;grid-row:auto}}
.ai-coach-room>.card,.ai-coach-sidebar>.card{padding:clamp(16px,2vw,24px)}

@media(min-width:761px) and (max-width:980px){.ai-coach-room{grid-template-columns:minmax(0,1fr)}.ai-coach-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Recall is a next action, with a compact entry before the charts. */
.insights-recall-shortcut{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border:1px solid var(--line);border-radius:16px;background:var(--panel);margin-bottom:18px;}
.insights-recall-shortcut>div:first-child{display:grid;gap:4px;}
.insights-recall-shortcut strong{font-size:1.1rem;}
.insights-recall-shortcut span{font-size:.88rem;color:var(--muted);}
.insights-recall-shortcut-actions{display:flex;gap:10px;flex-wrap:wrap;}
@media(max-width:600px){.insights-recall-shortcut{align-items:stretch;flex-direction:column;padding:16px;}.insights-recall-shortcut-actions .button{flex:1;text-align:center;}}

.action-voice-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0;}.action-voice-tools span{font-size:.9rem;color:var(--muted);}.action-dialog #action-plan small{display:block;margin-top:8px;color:var(--muted);}.action-dialog #action-plan p{overflow-wrap:anywhere;}

.support-refunds{margin-top:16px;padding-top:12px;border-top:1px solid var(--line);max-height:460px;overflow:auto;overflow-wrap:anywhere}.support-refunds input,.support-refunds select{max-width:100%;box-sizing:border-box}.support-refunds table{width:100%;font-size:.9rem}.support-refunds th,.support-refunds td{padding:8px;vertical-align:top}.action-chat-tools{display:flex;gap:8px;flex-wrap:wrap;}

/* Keep the exact refund confirmation visible inside the support dialog. */
.action-dialog.action-refunds-open #action-form > :not(.action-head){display:none}
.action-dialog.action-refunds-open .support-refunds{max-height:calc(85vh - 120px)}

.action-voice-recovery{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.action-voice-recovery h3{margin:0 0 8px;font-size:1rem}.action-voice-recovery p{margin:8px 0}.action-recovery-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Distinct surfaces with native menu modality and a nonblocking assistant. */
.action-dialog{border-color:color-mix(in srgb,var(--ink) 22%,var(--panel));border-radius:20px;box-shadow:0 24px 80px rgb(0 12 24 / .38),0 2px 12px rgb(0 12 24 / .18);overscroll-behavior:contain}
.action-head{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:16px}
.action-window-tools button{border:1px solid var(--line);border-radius:10px;font-size:23px;background:var(--panel-soft)}
.action-window-tools button:hover{background:color-mix(in srgb,var(--panel-soft) 85%,var(--ink))}
.site-navigation-dialog{border-right:1px solid var(--line);border-radius:0 20px 20px 0;box-shadow:18px 0 70px rgb(0 12 24 / .36)}
.site-navigation-dialog::backdrop{background:rgb(3 17 29 / .42);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.site-account-dialog{box-shadow:0 20px 60px rgb(0 12 24 / .3)}
.site-account-dialog::backdrop{background:rgb(3 17 29 / .24);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
@media(prefers-reduced-transparency:reduce){.site-navigation-dialog::backdrop,.site-account-dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}

.action-dialog .action-head{position:sticky;top:0;z-index:4;background:var(--panel);padding-top:10px}

.site-menu-account{display:grid;gap:8px}.site-menu-account .appearance-compact{margin:0}

.action-utility-link,.billing-inline-link{appearance:none;border:0;background:none;color:var(--muted);font:inherit;font-size:.86rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px 0}.action-utility-link:hover,.billing-inline-link:hover{color:var(--ink)}.action-utility-link:focus-visible,.billing-inline-link:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:3px}
.billing-support-tools{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.billing-support-choices{display:grid;gap:10px;margin:18px 0}.billing-support-choices>button{text-align:left;display:grid;gap:5px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);font:inherit;cursor:pointer}.billing-support-choices>button:hover{background:var(--panel-soft)}.billing-support-choices>button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}.billing-support-choices span{font-size:.88rem;color:var(--muted);line-height:1.5}.billing-support-policy{display:inline-block;margin:4px 0 12px}.refund-calculation-details{margin:12px 0;padding:10px 0;border-top:1px solid var(--line)}.refund-calculation-details summary{cursor:pointer;font-size:.9rem;font-weight:600}.refund-calculation-details p{font-size:.9rem;line-height:1.6}

/* Shared area-choice presentation: single Practice selection and multiple profile areas. */
:root{--area-choice-gap:10px;--area-choice-radius:10px;--area-choice-padding:17px;--area-choice-accent:#5199cf}
:is(.bank-field-grid,.scope-tile-grid){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--area-choice-gap);margin:16px 0}
:is(.bank-field-grid button,.scope-tile){min-width:0;padding:var(--area-choice-padding);border:1px solid var(--line);border-radius:var(--area-choice-radius);background:var(--panel-soft);color:var(--ink);font:inherit;text-align:left}
:is(.bank-field-grid button[aria-pressed=true],.scope-tile-selected){border:2px solid var(--area-choice-accent);padding:calc(var(--area-choice-padding) - 1px)}
.scope-tile-partial{border-color:var(--area-choice-accent)}
:is(.bank-field-grid button,.scope-tile) strong{font-size:1rem;line-height:1.45}
.scope-tile-select{margin:0!important}.scope-tile-select small{margin:6px 0 0}.scope-tile-open{font-size:.85rem;padding:6px 10px;min-height:36px;margin-top:12px}
:is(.scope-search,.bank-directory-content>label){display:block;font-weight:600;margin:16px 0 6px;max-width:none}
:is(.scope-search input,.bank-directory-content>input,.live-sharing-panel input[type=search],.live-sharing-panel select){box-sizing:border-box;display:block;width:100%;max-width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;margin-top:6px}
.live-sharing-panel{border-top-color:var(--line)}.live-sharing-panel button:not(.button){min-height:40px;padding:9px 14px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-weight:600;cursor:pointer}.live-sharing-panel button:disabled{cursor:default;opacity:.55}.live-sharing-panel>button:last-child{margin-top:12px}.live-sharing-panel [data-live-search]{margin-top:0}.live-sharing-panel :is(.live-share-options,.live-access-card){border-color:var(--line)}.live-sharing-panel .live-coach-options button{background:var(--panel-soft);padding:var(--area-choice-padding);border-radius:var(--area-choice-radius)}.live-sharing-panel .live-coach-options button[aria-pressed=true]{border-color:var(--area-choice-accent);outline-color:var(--area-choice-accent)}
@media(max-width:800px){:is(.bank-field-grid,.scope-tile-grid){grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){:is(.bank-field-grid,.scope-tile-grid){grid-template-columns:1fr}}

/* Coach intake uses native form controls and distinct request cards. */
.live-sharing-panel :is(input:not([type=checkbox]),textarea){display:block;box-sizing:border-box;width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit}.live-sharing-panel textarea{resize:vertical;min-height:80px}.live-sharing-panel [aria-label="New learner requests"]{padding:16px 0;border-bottom:1px solid var(--line)}.live-sharing-panel [aria-label="New learner requests"]>.live-access-card{background:var(--panel-soft)}.live-sharing-panel summary{cursor:pointer;font-weight:650}.live-sharing-panel .live-share-options>summary{padding:4px 0}.live-sharing-panel .live-access-card h4{margin:0 0 10px}.live-sharing-panel .live-access-card .coaching-actions{margin-bottom:0}

.live-sharing-panel :is(button,.button){max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* Compact, expand-first area selection shared with the Practice interaction. */
.scope-picker-compact{min-width:0}.scope-compact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:6px;margin:10px 0}.scope-compact-tile{display:flex!important;align-items:center!important;gap:8px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--panel-soft);cursor:pointer;min-width:0;font-size:.88rem;line-height:1.4}.scope-compact-tile input{width:17px!important;height:17px;flex:0 0 auto;accent-color:#5199cf;margin:0!important}.scope-compact-tile>span:not(.scope-disclosure){overflow-wrap:anywhere;flex:1}.scope-compact-selected{border-color:#5199cf;background:color-mix(in srgb,#5199cf 14%,var(--panel-soft))}.scope-compact-partial{border-color:#5199cf}.scope-compact-tile:focus-within{outline:2px solid #5199cf;outline-offset:2px}.scope-disclosure{color:var(--muted)}.scope-inline-panel{padding:12px;border:1px solid var(--line);border-radius:9px;margin:10px 0}.scope-inline-heading,.scope-compact-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.scope-inline-heading{font-size:.9rem}.scope-inline-heading strong{overflow-wrap:anywhere;min-width:0}.scope-picker-compact .text-button{font-size:.85rem;white-space:normal}.scope-compact-summary{font-size:.85rem;margin-top:14px;color:var(--muted)}.scope-selection-details{margin:8px 0}.scope-selection-details ul{list-style:none;padding:0}.scope-selection-details li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.scope-selection-details li span{overflow-wrap:anywhere;min-width:0}@media(max-width:580px){.scope-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scope-inline-panel{padding:8px}.scope-compact-tile{font-size:.8rem;padding:8px}.scope-inline-panel .scope-inline-panel .scope-compact-grid{grid-template-columns:1fr}}

.scope-picker-compact label.scope-compact-tile{margin:0!important;font-weight:400}.scope-picker-compact label.scope-compact-tile input{padding:0;border-radius:3px}

/* Disclosure is a separate native button, never part of the checkbox label. */
.scope-picker-compact .scope-compact-tile{padding:0;cursor:default}.scope-picker-compact label.scope-tile-main{display:flex;align-items:center;gap:8px;margin:0!important;padding:10px;flex:1;align-self:stretch;cursor:pointer;min-width:0;font-weight:400}.scope-tile-main>span{overflow-wrap:anywhere;min-width:0}.scope-picker-compact .scope-disclosure{display:flex;align-items:center;justify-content:center;align-self:stretch;flex:0 0 36px;min-height:36px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--muted);cursor:pointer;font:inherit}.scope-picker-compact .scope-disclosure:hover,.scope-picker-compact .scope-disclosure:focus-visible{background:transparent;color:var(--ink)}.scope-picker-compact .scope-disclosure:focus-visible{outline:2px solid #5199cf;outline-offset:-3px}@media(max-width:580px){.scope-picker-compact label.scope-tile-main{padding:8px}.scope-picker-compact .scope-disclosure{flex-basis:32px}}

.scope-picker-compact .scope-disclosure{flex-basis:44px;min-height:44px}@media(max-width:580px){.scope-picker-compact .scope-disclosure{flex-basis:44px}}

@media(max-width:420px){.scope-picker-compact .scope-compact-grid{grid-template-columns:1fr}}

:root[data-theme="dark"] .scope-picker-compact button.scope-disclosure{background:transparent;color:var(--muted)}:root[data-theme="dark"] .scope-picker-compact button.scope-disclosure:hover,:root[data-theme="dark"] .scope-picker-compact button.scope-disclosure:focus-visible{background:transparent;color:var(--ink)}

/* Quiet disclosure: only the glyph changes, never the tile surface. */
.scope-picker-compact .scope-compact-tile{gap:0}.scope-picker-compact .scope-disclosure>span{font-size:.72rem;opacity:.45}.scope-picker-compact .scope-disclosure:hover>span,.scope-picker-compact .scope-disclosure:focus-visible>span{opacity:.85}.scope-compact-tile:focus-within:not(:has(:focus-visible)){outline:none}

.coaching-filters-simple{grid-template-columns:repeat(3,minmax(0,1fr))}.coaching-filters-simple>.coach-search{grid-column:span 2}@media(max-width:700px){.coaching-filters-simple{grid-template-columns:1fr}.coaching-filters-simple>.coach-search{grid-column:auto}}

.bank-tabs:has(.bank-exam-tile){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:6px}.bank-exam-tile{display:flex;align-items:center;min-width:0;border:1px solid var(--line);border-radius:7px;background:var(--panel-soft)}.bank-exam-tile>label{display:flex;align-items:center;gap:8px;flex:1;padding:10px;min-width:0;cursor:pointer;font-size:.88rem}.bank-exam-tile strong{font-weight:400;overflow-wrap:anywhere}.bank-exam-tile input{width:17px;height:17px;flex:none;accent-color:#5199cf}.bank-exam-tile>button,:root[data-theme="dark"] .bank-exam-tile>button{flex:0 0 44px;align-self:stretch;min-height:44px;border:0;background:transparent;color:var(--muted);box-shadow:none;cursor:pointer}.bank-exam-tile>button span{font-size:.72rem;opacity:.45}.bank-exam-tile>button:hover span,.bank-exam-tile>button:focus-visible span{opacity:.85}.bank-exam-tile:has(input:checked){border-color:#5199cf;background:color-mix(in srgb,#5199cf 14%,var(--panel-soft))}.bank-exam-subjects{border:1px solid var(--line);border-radius:9px;padding:12px;margin:12px 0}.bank-exam-subjects>h3{margin:0 0 10px}.bank-exam-subjects .bank-subject-list{margin:10px 0}.bank-exam-tile:focus-within{outline:2px solid #5199cf;outline-offset:2px}@media(max-width:420px){.bank-tabs:has(.bank-exam-tile){grid-template-columns:1fr}}

.bank-exam-tile:focus-within:not(:has(:focus-visible)){outline:none}

.bank-scope-pickers:has(.bank-exam-picker[open]){grid-template-columns:1fr}

/* Ask: one conversation region and a stable native message composer. */
.action-dialog{width:min(540px,calc(100% - 24px));height:min(730px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:18px;box-shadow:0 22px 80px rgba(6,32,47,.26),0 2px 8px rgba(6,32,47,.12);overflow:auto;background:var(--panel)}
#action-form{height:100%;min-height:0;display:flex;flex-direction:column;margin:0}#action-form[hidden],.action-dialog [hidden]{display:none!important}
.action-dialog .action-head{padding:18px 20px 0;gap:10px;flex:0 0 auto;align-items:flex-start}.action-title-group{min-width:0}.action-dialog .action-head h2{font-size:20px;line-height:1.3;letter-spacing:-.025em}.action-head .action-move-handle{min-height:26px;padding:2px 0;font-size:10px;color:var(--muted);opacity:.8}.action-window-tools{gap:2px}.action-window-tools button{display:grid;place-items:center;min-width:36px;width:36px;min-height:40px;font-size:22px;border-radius:9px}.action-window-tools button:hover{background:var(--panel-soft);color:var(--ink)}
.action-dialog .action-intro{margin:5px 20px 12px;font-size:.79rem;line-height:1.5;color:var(--muted);flex:0 0 auto}.action-chat-tools{display:flex;justify-content:space-between;gap:12px;margin:0;padding:0 20px 13px;border-bottom:1px solid var(--line);flex:0 0 auto}.action-dialog .action-utility-link{min-height:30px;padding:3px 0;background:none;border:0;font:inherit;font-size:.75rem;color:var(--muted);text-decoration:none}.action-dialog .action-utility-link:hover{color:var(--ink);text-decoration:underline}
.action-conversation{min-height:100px;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;padding:18px 20px;scrollbar-gutter:stable}.action-dialog .action-messages{max-height:none;overflow:visible;min-height:0;padding:0;border:0;background:transparent;display:grid;gap:18px}.action-dialog .action-message{max-width:94%;padding:0;border:0;background:transparent;border-radius:0;box-shadow:none}.action-dialog .action-message>strong{font-size:.68rem;color:var(--muted);font-weight:650}.action-dialog .action-message p{margin:7px 0 0;font-size:.89rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.action-dialog .action-message-user{justify-self:end;background:var(--panel-soft);border:1px solid var(--line);border-radius:13px 13px 3px 13px;padding:11px 14px}.action-dialog .action-message-user p{margin-top:4px}.action-dialog .action-chat-empty{padding:35px 6px;color:var(--muted);text-align:center;font-size:.88rem;line-height:1.7}.action-dialog #action-status{font-size:.8rem;color:var(--muted);margin:10px 0}.action-dialog #action-status:empty{display:none}.action-dialog #action-plan{margin-top:18px;padding:13px;background:var(--panel-soft);border:1px solid var(--line);border-radius:11px;font-size:.82rem}.action-dialog #action-plan h3{font-size:.95rem;margin:0 0 8px}.action-dialog #action-plan small{display:block;line-height:1.5;font-size:.71rem}.action-dialog #action-plan .button{font-size:.8rem;min-height:40px}
.action-composer{flex:0 0 auto;margin:0;padding:14px 20px 12px;border-top:1px solid var(--line);background:var(--panel);position:relative}.action-dialog .action-composer label{display:block;font-size:.73rem;font-weight:650;color:var(--muted);margin-bottom:6px}.action-dialog .action-composer textarea{display:block;box-sizing:border-box;min-height:72px;max-height:150px;resize:vertical;margin:0 0 10px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;font-size:.88rem;line-height:1.5;background:var(--panel);color:var(--ink)}.action-composer textarea:focus{outline:2px solid var(--sky-500);outline-offset:1px}
.action-dialog .action-voice-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}.action-dialog .action-voice-tools .button{min-height:42px;padding:8px 12px;font-size:.77rem;border-radius:9px}.action-dialog #action-read-reply{background:none;border:1px solid transparent;color:var(--muted);box-shadow:none}.action-dialog #action-read-reply:hover{border-color:var(--line);color:var(--ink)}.action-dialog #action-submit{margin-left:auto;min-width:72px}.action-recording-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:20px;margin-top:8px}.action-recording-tools [hidden]{display:none!important}.action-recording-tools #action-voice-state{font-size:.71rem;line-height:1.45;color:var(--muted)}.action-recording-tools meter{width:80px;max-width:100%}.action-recording-tools .button{font-size:.75rem;min-height:40px;padding:7px 10px}
.action-dialog .action-privacy-note{margin-top:4px;font-size:.7rem;color:var(--muted)}.action-dialog .action-privacy-note summary{width:auto;min-height:26px;padding:3px 0;cursor:pointer}.action-dialog .action-privacy-note p{margin:7px 0;line-height:1.6}.action-privacy-note a{font-size:.72rem}.action-dialog #action-refund-slot{padding:20px}.action-dialog #action-refund-slot:not([hidden]){min-height:100%}
@media(max-width:600px){.action-dialog{width:calc(100% - 16px);height:min(720px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);border-radius:14px}.action-dialog .action-head{padding:14px 14px 0}.action-dialog .action-head h2{font-size:18px}.action-dialog .action-intro{margin-left:14px;margin-right:14px}.action-chat-tools{padding-left:14px;padding-right:14px}.action-conversation{padding:15px 14px}.action-composer{padding:12px 14px 10px}.action-dialog .action-voice-tools{gap:5px}.action-dialog .action-voice-tools .button{padding:8px 9px;font-size:.72rem;min-height:44px}.action-dialog #action-submit{min-width:62px}.action-dialog .action-message p{font-size:.86rem}.action-dialog .action-message{max-width:96%}}

.action-dialog .action-messages{margin:0}.action-dialog .action-message{margin:0}

/* Ask: secondary conversation controls stay out of the main composer. */
.action-chat-tools{position:relative;align-items:center}
.action-options{margin-left:auto;position:relative}
.action-options>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--muted);font-size:.85rem;padding:0 .5rem;border-radius:.5rem}
.action-options>summary::-webkit-details-marker{display:none}
.action-options>summary:focus-visible{outline:2px solid var(--sky-500);outline-offset:2px}
.action-options-menu{position:absolute;right:0;top:100%;z-index:5;width:min(260px,calc(100vw - 64px));padding:.75rem;border:1px solid var(--line);border-radius:.75rem;background:var(--panel);box-shadow:0 8px 24px #0002}
.action-options-menu button{min-height:44px;text-align:left}
.action-options-menu p,.action-recovery-note{font-size:.8rem;color:var(--muted);margin:.35rem 0 0}

/* Keep the entire composer inside the visible viewport, including phone zoom. */
.action-dialog{box-sizing:border-box;min-width:0}
#action-form,.action-dialog .action-head,.action-chat-tools,.action-conversation,.action-composer{min-width:0;max-width:100%;box-sizing:border-box}
.action-dialog .action-composer textarea{width:100%;min-width:0;max-width:100%}
.action-dialog .action-voice-tools .button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:420px){
 .action-dialog .action-voice-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center}
 .action-dialog #action-voice{justify-self:start;font-size:.8rem}
 .action-dialog #action-submit{grid-column:2;grid-row:1;margin-left:0;min-width:70px;font-size:.8rem}
 .action-dialog #action-read-reply{grid-column:1/-1;grid-row:2;justify-self:start;padding-left:0}
 .action-dialog .action-conversation{min-height:0}
}

@media(max-width:420px){.action-head #action-left,.action-head #action-right{display:none}}

/* Phone text entry must not trigger focus zoom and leave the page enlarged. */
.action-dialog .action-composer textarea,.action-dialog input:not([type=checkbox]):not([type=radio]),.action-dialog select{font-size:max(16px,1rem)}
@media(max-width:480px){
 .site-navigation-bar{gap:6px;min-width:0}
 .site-brand-group{min-width:0;flex:1 1 auto}
 .site-navigation-bar .site-brand{font-size:clamp(12px,3.5vw,16px);gap:4px;min-width:0}
 .site-navigation-bar .brand-mark{width:22px;height:22px;flex:none}
 .site-navigation-account,.site-invite-trigger,.site-inbox-bell,.site-menu-trigger{flex-shrink:0}
 #action-launch.action-launch{max-width:calc(100% - 24px);white-space:normal;overflow-wrap:anywhere}
}
#pacing-chart,#accuracy-by-time{scroll-margin-top:84px}

.action-ideas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.action-idea{min-height:44px;padding:10px 12px;border:1px solid var(--border,#cbd5e1);border-radius:10px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}.action-idea:hover,.action-idea:focus-visible{border-color:currentColor}.action-ideas-hint{font-size:.85rem;opacity:.75}
@media(max-width:360px){.action-ideas{grid-template-columns:1fr}}

.action-dialog .action-chat-empty{padding:4px 0;margin:0;text-align:left;font-weight:600}.action-dialog .action-idea{font-size:.8rem;border-color:var(--line,#cbd5e1)}.action-dialog .action-ideas-hint{margin:0;font-size:.75rem;line-height:1.5}

/* Extra provenance, images and teaching assets must not shift the question grid. */
.native-question-content > :not(.native-question-number):not(.native-question-stem):not(.native-choice-list){grid-column:1 / -1;min-width:0}
.native-question-content > .native-question-number{grid-column:1}
.native-question-content > .native-question-stem{grid-column:2;min-width:0}
.native-question-content > .native-choice-list{grid-column:2;min-width:0;width:100%}

/* Verified Step 1 arrangement; original controls and responsive implementation. */
.exam-reference-tools{display:flex;flex-wrap:wrap;gap:6px;grid-column:1/-1;justify-content:flex-end}
.exam-reference-tools button{min-height:36px;border:1px solid #7592ad;border-radius:4px;padding:6px 12px;color:white;background:transparent;font:inherit;font-size:.85rem;cursor:pointer}
.exam-reference-tools button:hover,.exam-reference-tools button:focus-visible{background:#ffffff20}
:is(.exam-profile-usmle,.medical-recall-shell){--exam-chrome:#294e73;background:var(--panel)}
.exam-profile-usmle .exam-header{background:var(--exam-chrome);box-shadow:none}
.exam-profile-usmle .exam-header-main{grid-template-columns:minmax(150px,1fr) auto minmax(260px,1fr);gap:10px;min-height:66px;padding:8px 18px}
.exam-profile-usmle .exam-reference-tools{grid-column:auto}
.simulation-question-navigation{display:flex;align-items:center;gap:10px}
/* Recall uses standard study buttons; white labels belong to dark exam chrome. */
.simulation-question-navigation:not(.recall-question-navigation) .button{min-height:40px;border:1px solid #a4bad0;border-radius:3px;color:white;background:transparent}
.simulation-question-navigation .button:disabled{opacity:.45}
.exam-profile-usmle .exam-layout{grid-template-columns:92px minmax(0,1fr);gap:0;width:100%;padding:0 0 75px;align-items:stretch}
.exam-profile-usmle .question-panel{grid-column:2;grid-row:1;border:0;border-radius:0;box-shadow:none;min-height:calc(100dvh - 145px)}
.exam-profile-usmle .navigator{grid-column:1;grid-row:1;top:74px;padding:8px;border:0;border-right:1px solid #b4c3d2;border-radius:0;box-shadow:none;max-height:calc(100dvh - 150px);overflow:auto;align-self:start;background:var(--panel-soft)}
.exam-profile-usmle .navigator-title{display:block;margin-bottom:8px;font-size:.7rem}
.exam-profile-usmle .navigator-title span{display:block;font-size:.65rem}
.exam-profile-usmle .question-grid{grid-template-columns:1fr;gap:2px;max-height:60dvh;overflow:auto}
.exam-profile-usmle .qnav{aspect-ratio:auto;min-height:28px;border-radius:0;font-size:.8rem}
.exam-profile-usmle .legend{font-size:.63rem;display:grid;gap:5px}
.exam-profile-usmle .keyboard-note{display:none}
.exam-profile-usmle .exam-layout.navigator-hidden{grid-template-columns:minmax(0,1fr)}
.exam-profile-usmle .exam-layout.navigator-hidden .question-panel{grid-column:1}
.exam-profile-usmle .question-tools{border-bottom:0;padding:10px 24px}
.exam-profile-usmle .question-scroll{padding:8px 28px 30px}
:is(.exam-profile-usmle,.medical-study-content) .native-question-stage{max-width:var(--medical-reading-width,1060px);margin:0}
:is(.exam-profile-usmle,.medical-study-content) .native-choice-list{max-width:var(--medical-choice-width,850px)}
.exam-profile-usmle .question-footer{position:fixed;z-index:31;inset:auto 0 0;min-height:62px;padding:8px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom));border-radius:0;border:0;background:var(--exam-chrome);color:white;display:flex;justify-content:space-between;gap:12px}
.exam-profile-usmle .question-footer .timer-wrap{text-align:left;margin-right:auto}
.exam-profile-usmle .question-footer .timer-line{justify-content:flex-start}
.exam-profile-usmle .question-footer .button{color:white;border-color:#a4bad0;background:transparent;border-radius:3px}
.exam-profile-usmle .question-footer .question-load-status:empty{display:none}
.exam-reverse .question-panel{background:#151b22;color:#f0f4fa;--ink:#f0f4fa;--panel:#151b22;--panel-soft:#222e3a;--muted:#c3ced8}
.exam-tool-dialog{z-index:40;width:min(620px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line,#adbdca);border-radius:10px;padding:20px;color:var(--ink);background:var(--panel);box-shadow:0 18px 80px #0006}
.exam-tool-dialog::backdrop{background:#07172766}
.exam-tool-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.exam-tool-dialog h2{margin:0;font-size:1.2rem}
.exam-tool-dialog button{min-height:40px;padding:7px 13px;border:1px solid #9eb0bf;border-radius:5px;color:var(--ink);background:var(--panel-soft);font:inherit;cursor:pointer}
.exam-tool-dialog label{display:block;margin:10px 0;font-weight:600}
.exam-tool-dialog textarea,.exam-tool-dialog input[type=search],.exam-tool-dialog select{width:100%;min-width:0;padding:10px;border:1px solid #9eb0bf;border-radius:5px;color:var(--ink);background:var(--panel);font:inherit;font-size:16px}
.exam-tool-dialog textarea{resize:vertical}
.exam-tool-dialog p{font-size:.85rem;line-height:1.5}
.exam-lab-controls{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
.exam-lab-table{overflow:auto}
.exam-lab-table table{width:100%;border-collapse:collapse}
.exam-lab-table th,.exam-lab-table td{padding:10px;text-align:left;border-bottom:1px solid #aab9c955;font-size:.9rem}
.exam-calculator-display{display:block;background:var(--panel-soft);border:1px solid #9eb0bf;padding:16px;text-align:right;font-size:1.8rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.exam-calculator-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
@media(max-width:760px){.exam-profile-usmle .exam-header-main{grid-template-columns:1fr auto;padding:8px 10px}.exam-profile-usmle .exam-reference-tools{grid-column:1/-1;justify-content:flex-start}.exam-profile-usmle .exam-layout{grid-template-columns:80px minmax(0,1fr)}.exam-profile-usmle .navigator{padding:4px;top:120px}.exam-profile-usmle .navigator-title strong{font-size:.6rem}.exam-profile-usmle .navigator-title span,.exam-profile-usmle .legend{display:none}.exam-profile-usmle .question-tools{padding:8px}.exam-profile-usmle .question-scroll{padding:8px 10px 22px}.exam-profile-usmle .question-footer{gap:6px;padding-left:8px;padding-right:8px}.exam-profile-usmle .question-footer .button{font-size:.75rem;padding:8px}.exam-profile-usmle .timer{font-size:.9rem}.exam-tool-dialog{padding:14px}.exam-reference-tools button{min-height:40px}}
.exam-header > .exam-reference-tools{padding:0 18px 8px}
.exam-profile-usmle .exam-header-main{grid-template-columns:1fr auto}
.exam-profile-usmle .exam-header > .exam-reference-tools{position:absolute;right:18px;top:12px;padding:0}
.exam-profile-usmle .exam-header-main{padding-right:400px}
@media(max-width:1000px){.exam-profile-usmle .exam-header-main{padding-right:18px}.exam-profile-usmle .exam-header > .exam-reference-tools{position:static;padding:0 10px 8px;justify-content:flex-end}.exam-profile-usmle .navigator{top:120px}}
.exam-profile-usmle .exam-header-main{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding-right:18px}
:is(.exam-profile-usmle,.medical-study-content) .native-question-stem{font-weight:400;line-height:1.5;font-family:Arial,sans-serif}
:is(.exam-profile-usmle,.medical-study-content) .native-choice-row{font-family:Arial,sans-serif}
.exam-profile-usmle .legend{display:flex;flex-direction:column;align-items:flex-start;overflow-wrap:anywhere}
.exam-profile-usmle .legend span{white-space:normal;min-width:0}
@media(max-width:1000px){.exam-profile-usmle .exam-header-main{grid-template-columns:1fr auto}.exam-profile-usmle .legend{font-size:.6rem}}
@media(max-width:760px){.exam-profile-usmle .legend{display:none}}
/* Keep the explicit desktop grid assignments from creating an implicit phone column. */
@media(max-width:640px){.native-question-content > .native-question-stem,.native-question-content > .native-choice-list{grid-column:1;min-width:0}.native-question-content{grid-template-columns:minmax(0,1fr)}.exam-profile-usmle .native-question-content{padding:8px 0}.exam-profile-usmle .native-choice-row{grid-template-columns:20px 22px minmax(0,1fr);gap:5px;padding:8px 4px}.exam-profile-usmle .native-choice-list{width:100%}}
@media(max-width:640px){.question-stage.native-question-stage{min-width:0;width:100%;max-width:100%}}
.exam-profile-usmle .qnav{padding:3px 14px;background:transparent;border:0;border-bottom:1px solid #b6c4cf55;color:var(--ink);font-weight:500}
.exam-profile-usmle .qnav:nth-child(odd){background:var(--panel-soft)}
.exam-profile-usmle .qnav:not(.answered):not(:disabled)::before{content:'•';position:absolute;left:4px;top:50%;transform:translateY(-50%);font-size:.95rem}
.exam-profile-usmle .qnav.answered{color:var(--ink);background:transparent}
.exam-profile-usmle .qnav.current{background:#294e73;color:white;outline:1px solid #517898}
.proceed-next-row{display:flex;justify-content:center;max-width:1060px;margin:20px 0 8px}
.proceed-next-row .button{border-radius:3px;background:#315b83;color:white;border:1px solid #517898;min-height:36px;font-size:.85rem}
/* The standard calculator is a small floating panel at the lower right. */
.exam-tool-dialog.exam-tool-calculator{position:fixed;inset:auto 8px 65px auto;margin:0;width:256px;max-width:calc(100vw - 16px);padding:8px;border-radius:3px;background:#e3e8ee;color:#172533;box-shadow:0 3px 12px #0004}
.exam-tool-calculator header{margin:0 0 5px;gap:8px}
.exam-tool-calculator h2{font-size:.75rem;font-weight:500}
.exam-tool-calculator header button{padding:2px 6px;min-height:25px;font-size:.7rem}
.exam-tool-calculator .exam-calculator-display{font-family:monospace;font-size:1.25rem;background:#fff;color:#111;padding:5px 8px;border-radius:2px}
.exam-tool-calculator .exam-calculator-keys{gap:4px;margin-top:6px}
.exam-tool-calculator [data-calc]{min-height:30px;padding:3px;border:1px solid #7e8ca2;border-radius:3px;background:linear-gradient(#fcfcfc,#dce2e9);color:#101c29;font-size:.85rem;font-weight:600}
.exam-tool-calculator [data-calc='M+'],.exam-tool-calculator [data-calc='MR'],.exam-tool-calculator [data-calc='MC']{background:linear-gradient(#ddd9ef,#a69bc9)}
.exam-tool-calculator [data-calc='C'],.exam-tool-calculator [data-calc='=']{background:linear-gradient(#f7edba,#dfc76c)}
.exam-tool-calculator [data-calc='±'],.exam-tool-calculator [data-calc='√'],.exam-tool-calculator [data-calc='1/x'],.exam-tool-calculator [data-calc='÷'],.exam-tool-calculator [data-calc='×'],.exam-tool-calculator [data-calc='−'],.exam-tool-calculator [data-calc='+']{background:linear-gradient(#cbd9f3,#879ed4)}
.exam-tool-calculator [data-calc='0']{grid-column:span 2}
@media(max-width:640px){.exam-tool-dialog.exam-tool-calculator{bottom:72px}.exam-tool-calculator [data-calc]{min-height:40px}}
/* Reference panels follow the observed desktop placement; phones retain readable full-width panels. */
.exam-tool-dialog.exam-tool-notes{position:fixed;inset:auto 8px 65px auto;margin:0;width:355px;padding:8px;border-radius:3px;background:var(--panel-soft)}
.exam-tool-notes header{margin-bottom:5px}.exam-tool-notes h2{font-size:.8rem}.exam-tool-notes header button{min-height:26px;padding:2px 6px;font-size:.75rem}.exam-tool-notes label{font-size:.75rem;margin:4px 0}.exam-tool-notes textarea{padding:7px;min-height:100px}.exam-notes-actions{display:flex;justify-content:space-between;gap:10px;margin-top:6px}.exam-tool-notes .exam-notes-actions button{font-size:.8rem;min-height:30px;padding:5px 8px}.exam-tool-notes p{margin:5px 0 0;font-size:.7rem}
.exam-tool-dialog.exam-tool-labs{position:fixed;inset:74px 0 65px auto;margin:0;width:min(540px,40vw);max-height:none;border-radius:0;padding:12px;border-top:0;box-shadow:-3px 0 12px #0002}
.exam-shell.exam-reference-open .question-panel{margin-right:min(540px,40vw)}
.exam-tool-labs .exam-lab-table th,.exam-tool-labs .exam-lab-table td{padding:6px;font-size:.82rem}
.exam-tool-dialog.exam-tool-labs{display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;height:auto}
.exam-tool-labs header{flex:none;margin-bottom:4px}
.exam-tool-labs .exam-lab-table{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:12px}
.exam-tool-labs .exam-lab-table th,.exam-tool-labs .exam-lab-table td{vertical-align:top;overflow-wrap:anywhere}
.exam-tool-labs .exam-lab-table th[scope=row]{font-weight:400}
.exam-tool-labs .exam-lab-table thead{position:sticky;top:0;background:var(--panel);z-index:1}
.exam-tool-labs .exam-lab-group th{background:var(--panel-soft);font-weight:700}
.exam-tool-labs .exam-lab-si-label{font-weight:400;margin:8px 0}
.exam-lab-tabs{display:flex;flex-wrap:wrap;gap:0;flex:none;border-bottom:1px solid var(--line,#adbdca);margin:4px 0 0}
.exam-tool-labs .exam-lab-tabs button{flex:1;min-width:0;padding:6px 5px;border-radius:0;font-size:.8rem;min-height:36px}
.exam-tool-labs .exam-lab-tabs button[aria-selected=true]{background:var(--ink);color:var(--panel);font-weight:700}
.exam-tool-labs :focus-visible{outline:2px solid #4b92ca;outline-offset:2px}
.exam-profile-usmle .native-question-content{grid-template-columns:minmax(0,1fr);padding:20px 12px;font-size:calc(1rem * var(--native-question-scale,1))}
.exam-profile-usmle .native-question-content>.native-question-number{display:none}
.exam-profile-usmle .native-question-content>.native-question-stem,.exam-profile-usmle .native-question-content>.native-choice-list{grid-column:1}
.exam-profile-usmle .native-choice-list{border:1px solid #91a1af;border-bottom:4px solid #294e73;padding:5px;gap:1px;margin-top:22px}
.exam-profile-usmle .native-choice-row{border-radius:0;padding:8px 6px}
.exam-profile-usmle .proceed-next-row{justify-content:flex-start;padding-left:12px}
@media(max-width:1000px){.exam-tool-dialog.exam-tool-labs{top:120px;width:min(540px,65vw)}.exam-shell.exam-reference-open .question-panel{margin-right:0}}
@media(max-width:640px){.exam-tool-dialog.exam-tool-labs{inset:125px 8px 72px;width:calc(100vw - 16px);max-width:calc(100vw - 16px)}.exam-tool-dialog.exam-tool-notes{bottom:72px;max-width:calc(100vw - 16px)}.exam-profile-usmle .native-question-content{padding:8px 0}.exam-profile-usmle .native-choice-row{padding:8px 2px}.exam-profile-usmle .proceed-next-row{padding-left:0}}
.exam-tool-lock::backdrop{background:#e8edf3}
.exam-tool-lock{border-radius:3px;text-align:center}
.exam-tool-dialog.exam-tool-settings{position:fixed;inset:68px 12px auto auto;margin:0;width:290px;padding:12px;border-radius:3px;max-height:calc(100dvh - 140px)}
.exam-tool-settings h2{font-size:.9rem}.exam-tool-settings label{font-size:.85rem}.exam-tool-settings summary{cursor:pointer;padding:8px 0}.exam-hide-strikeout .crossout-option{display:none}
@media(max-width:1000px){.exam-tool-dialog.exam-tool-settings{top:122px}}
.exam-profile-usmle .question-footer [data-exam-tool=lock]{position:absolute;left:50%;transform:translateX(-50%)}
.exam-profile-usmle .qnav.marked::after{width:7px;height:9px;border-radius:0;background:#b03131;transform:rotate(12deg)}
@media(max-width:640px){.exam-profile-usmle .question-footer [data-exam-tool=lock]{position:static;transform:none;padding:8px 6px;min-width:38px}.exam-profile-usmle .question-footer .timer-wrap{margin-right:0}.exam-profile-usmle .question-footer .nav-pair{margin-left:auto;gap:4px}.exam-profile-usmle .question-footer .button{font-size:.7rem;padding:8px 5px}}
.exam-tool-calculator header{justify-content:flex-end}
.exam-profile-usmle .legend{display:none}
.question-status-key{font-size:.68rem;margin-top:5px;overflow-wrap:anywhere}.question-status-key summary{cursor:pointer;text-align:center;padding:5px 0}.question-status-key p{margin:5px 0}
/* One reading-size control covers the question and explanatory review content. */
.review-text-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:12px 0;font-size:.85rem;color:var(--ink)}
.review-text-toolbar .review-zoom{gap:8px}.review-text-toolbar .review-zoom button{min-width:40px;min-height:40px}.review-text-toolbar output{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}
.review-layout .learning-panel :is(p,li,td,th,label,textarea,.clinical-reference-content,.explanation-paragraph){font-size:calc(1rem * var(--review-text-scale,1));line-height:1.6;overflow-wrap:anywhere}
.review-layout .learning-panel h2{font-size:calc(1.15rem * var(--review-text-scale,1));line-height:1.4;overflow-wrap:anywhere}
.review-layout .learning-panel h3{font-size:calc(1.05rem * var(--review-text-scale,1));line-height:1.4}
.review-layout .learning-panel{min-width:0}.review-layout .learning-card{min-width:0}.review-layout .learning-card table{max-width:100%}
@media(max-width:760px){.review-layout[style*="--review-text-scale:2"] .learning-panel{grid-template-columns:minmax(0,1fr)}}
/* Native review text reflows; only scanned question images need a wide canvas. */
.review-question-stage.native-question-stage{min-width:0;width:100%;max-width:100%}
.shared-runner .question-stage.native-question-stage{min-width:0;width:100%;max-width:100%}
/* Keep the support label readable; touch devices retain the solid launcher. */
@media(hover:hover) and (pointer:fine){
  #action-launch.action-launch:not(:hover):not(:focus-visible){background:var(--panel);color:var(--muted);border-color:var(--line);box-shadow:none}
}
/* Keep Ask quiet on phones and touch screens without hiding its name. */
@media(max-width:760px),(hover:none) and (pointer:coarse){
  #action-launch.action-launch{min-height:44px;padding:8px 12px;font-size:.8125rem;background:var(--panel);background:color-mix(in srgb,var(--panel) 80%,transparent);color:var(--ink);border-color:var(--line);box-shadow:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
}
#action-launch.action-launch:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.review-layout .learning-panel{font-size:calc(1rem * var(--review-text-scale,1))}
.review-layout .learning-panel :is(summary,small){font-size:calc(.9rem * var(--review-text-scale,1));line-height:1.5}

/* Review layers: stored marks remain independent; overlap keeps both signals. */
:root{--exam-highlight:#ffff00}
.user-question-highlight{background:var(--exam-highlight);color:#17232d}
.coach-clue-mark{background:transparent;color:inherit;border-radius:0;padding:0;text-decoration:underline;text-decoration-color:#946300;text-decoration-thickness:3px;text-underline-offset:3px}
.ai-user-overlap{text-decoration:underline;text-decoration-color:#946300;text-decoration-thickness:3px;text-underline-offset:3px}
.review-highlight-layers{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 16px}.review-highlight-layers #toggle-ai-clues{margin:0}.review-highlight-layers .ai-clue-note{flex-basis:100%;margin:0;padding:0}

.teaching-media-image{display:block;max-width:100%;height:auto;margin:12px auto}.teaching-media-player{display:block;width:100%;max-height:65vh;margin:12px 0}.media-transcript p{white-space:pre-wrap}.teaching-asset{min-width:0}.review-media-editor{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px}.review-media-editor label{display:block;margin:10px 0}.review-media-editor input:not([type=checkbox]),.review-media-editor textarea,.review-media-editor select{max-width:100%;width:100%}

.coach-clue-mark{background:var(--exam-highlight);color:#17232d}.ai-user-overlap{text-decoration-style:double}

/* Shared action spacing: standard groups 12px; compact stacks 8px. */
:root { --action-gap: 12px; --action-gap-compact: 8px; }
.results-actions,
.coach-followup-actions,
.modal-actions,
.import-actions,
.dashboard-title-actions,
.coaching-loop-actions,
.dashboard-coach-actions,
.workspace-study-actions,
.recall-plan-actions,
.recall-quick-actions,
.action-actions,
.chart-request-actions,
.investor-hero-actions,
.investor-closing-actions,
.why-actions,
.study-material-actions,
.pause-actions,
.profile-actions,
.shared-runner-actions,
.insights-recall-shortcut-actions,
.site-feedback-actions { gap: var(--action-gap); }
.modal-actions, .import-actions, .coach-followup-actions { flex-wrap: wrap; }
.results-actions > .button,
.coach-followup-actions > .button,
.modal-actions > .button,
.import-actions > .button,
.dashboard-title-actions > .button,
.coaching-loop-actions > .button,
.dashboard-coach-actions > .button,
.workspace-study-actions > .button,
.recall-plan-actions > .button,
.recall-quick-actions > .button,
.action-actions > .button,
.chart-request-actions > .button,
.investor-hero-actions > .button,
.investor-closing-actions > .button,
.why-actions > .button,
.study-material-actions > .button,
.pause-actions > .button,
.profile-actions > .button,
.shared-runner-actions > .button,
.insights-recall-shortcut-actions > .button,
.site-feedback-actions > .button { margin: 0; text-align: center; }
.button { box-sizing: border-box; max-width: 100%; text-align: center; }
.form-library-card > .button ~ .button { margin-top: var(--action-gap-compact); }

/* Support forms share the application field geometry and full-width email input. */
.contact-support-form { padding: clamp(18px, 4vw, 28px); margin-top: 28px; }
.contact-support-form fieldset { display: grid; gap: 20px; }
.contact-support-form fieldset > p { margin: 0; }
.contact-support-form label { display: grid; gap: 8px; font-weight: 600; }
.contact-support-form input:not([type=checkbox]), .contact-support-form select, .contact-support-form textarea, .site-feedback-dialog input:not([type=checkbox]), .site-feedback-dialog select, .site-feedback-dialog textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; }
.contact-support-form textarea, .site-feedback-dialog textarea { resize: vertical; }
.contact-support-form label:has(> input[type=checkbox]), .site-feedback-dialog label:has(> input[type=checkbox]) { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; font-weight: 400; line-height: 1.5; }
.contact-support-form input[type=checkbox], .site-feedback-dialog input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; }
.contact-support-form input:focus-visible, .contact-support-form select:focus-visible, .contact-support-form textarea:focus-visible, .site-feedback-dialog input:focus-visible, .site-feedback-dialog select:focus-visible, .site-feedback-dialog textarea:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }
.contact-support-form fieldset > .button { justify-self: start; }
.contact-support-form [role=status]:empty { display: none; }
.contact-support-form code, .site-feedback-dialog [data-feedback-reference] code { overflow-wrap: anywhere; }

.support-message-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.support-message-heading > label { margin:0; padding-top:8px; }
.support-dictation { display:flex; align-items:center; gap:8px; flex-wrap:wrap; max-width:100%; }
.support-dictation > .button { box-sizing:border-box; min-width:44px; min-height:44px; }
.support-dictation small { display:block; flex-basis:100%; max-width:440px; color:var(--muted); font-size:.8rem; line-height:1.5; }
.support-dictation [role=status] { flex-basis:100%; font-size:.85rem; line-height:1.5; }
.support-dictation [role=status]:empty { display:none; }
.support-dictation [hidden] { display:none; }

.site-feedback-brand{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer}
.site-feedback-brand svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.site-feedback-brand:hover,.site-feedback-brand:focus-visible{color:var(--ink);background:var(--panel-soft)}
.site-feedback-brand:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.site-feedback-brand [role=tooltip]{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink);font-size:.8rem;white-space:nowrap;visibility:hidden;pointer-events:none;z-index:120}
.site-feedback-brand:hover [role=tooltip],.site-feedback-brand:focus-visible [role=tooltip]{visibility:visible}
body:has(.exam-simulation) .site-feedback-brand{display:none}
.account-sync-status[hidden]{display:none!important}


body:has(.exam-simulation) .account-sync-status:not(.needs-attention){display:none!important}

.admin-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}.admin-hub-grid li{margin:12px 0}.community-admin-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px 16px;margin:16px 0}.community-admin-fields label{display:grid;align-content:start;gap:6px;min-width:0;margin:0;line-height:1.45}.community-admin-fields :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit}.experience-preview{display:flex;align-items:center;gap:12px;padding:18px;background:var(--panel-soft);border-radius:10px}

.coach-teaching-board{margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--panel-soft);scroll-margin-top:90px}.coach-teaching-board.is-speaking{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.coach-board-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;flex-wrap:wrap}.coach-board-heading h3{margin:0}.coach-board-heading .coaching-actions{margin:0}.coach-board-heading label{display:flex;align-items:center;gap:8px;min-height:44px}.coach-board-step{padding:16px;background:var(--panel);border-radius:10px}.coach-board-step h4{font-size:1.1rem}.coach-board-step li{margin:10px 0}.coach-board-diagram{display:flex;flex-direction:column;align-items:center;list-style:none;padding:0;gap:8px}.coach-board-diagram li{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;max-width:100%}.coach-board-diagram li>span{border:1px solid var(--line);border-radius:9px;padding:12px 18px;max-width:100%;overflow-wrap:anywhere}.coach-board-diagram b{color:var(--accent);font-size:1.5rem}.coach-evidence-bar{height:24px;background:var(--line);border-radius:8px;overflow:hidden}.coach-evidence-bar>span{display:block;height:100%;background:var(--accent)}.coach-evidence-mini-bar{display:block;height:8px;background:var(--accent);margin-bottom:6px;max-width:100%}@media(max-width:640px){.coach-teaching-board{padding:12px}.coach-board-step{padding:12px}}

.coach-focused-mark{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px;background:var(--panel-soft)}.coach-focused-mark b{color:var(--accent)}


body>.site-feedback-launcher-pilot{position:fixed;z-index:46;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:0;border-radius:50%;background:transparent;color:var(--muted);box-shadow:none;cursor:pointer}body>.site-feedback-launcher-pilot[hidden]{display:none!important}.site-feedback-launcher-pilot svg{width:20px;height:20px;opacity:.8}.site-feedback-launcher-pilot:hover,.site-feedback-launcher-pilot:focus-visible{color:var(--ink)}.site-feedback-launcher-pilot:hover svg,.site-feedback-launcher-pilot:focus-visible svg{opacity:1}.site-feedback-launcher-pilot>span{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink);font-size:.8rem;white-space:nowrap;visibility:hidden;pointer-events:none}.site-feedback-launcher-pilot:hover>span,.site-feedback-launcher-pilot:focus-visible>span{visibility:visible}

.site-footer .footer-group li:has(> .footer-feedback:empty){display:none}

/* Theme button defaults must not fill the quiet personal Feedback dock. */
:root[data-theme] body>button.site-feedback-launcher-pilot{background:transparent;min-width:44px;max-width:44px;right:auto}
:root[data-theme] body>button.site-feedback-launcher-pilot:hover,:root[data-theme] body>button.site-feedback-launcher-pilot:focus-visible{background:transparent;color:var(--ink)}

/* Recall link counts use the same category cues as their destination stacks. */
:root{--recall-count-due:#a92b40;--recall-count-fragile:#805900;--recall-count-recovered:#11658a;--recall-count-stable:#17613f}
:root[data-theme="dark"]{--recall-count-due:#fecdd3;--recall-count-fragile:#fde68a;--recall-count-recovered:#bae6fd;--recall-count-stable:#a7f3d0}
:root[data-theme] .recall-count[data-recall-category="due"],:root[data-theme] .memory-stack.due>strong{color:var(--recall-count-due)}
:root[data-theme] .recall-count[data-recall-category="fragile"],:root[data-theme] .memory-stack.fragile>strong{color:var(--recall-count-fragile)}
:root[data-theme] .recall-count[data-recall-category="recovered"],:root[data-theme] .memory-stack.recovered>strong{color:var(--recall-count-recovered)}
:root[data-theme] .recall-count[data-recall-category="stable"],:root[data-theme] .memory-stack.stable>strong{color:var(--recall-count-stable)}
.recall-count{font-weight:800;font-variant-numeric:tabular-nums}
.recall-quick-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.recall-quick-action{min-height:44px;white-space:normal}
.recall-quick-action[data-start-retrieval="due"]{border-color:var(--recall-count-due)}
.recall-quick-action[data-start-retrieval="fragile"]{border-color:var(--recall-count-fragile)}
.insights-recall-shortcut strong>.recall-count{font-size:inherit}

@keyframes account-save-fade{from{opacity:1}to{opacity:0}}
.account-sync-status.is-saved{animation:account-save-fade 3s linear forwards}
@media(prefers-reduced-motion:reduce){.account-sync-status.is-saved{animation-duration:.01ms}}

/* Recall uses the familiar question-navigation position and a native sticky header. */
@media screen{
 body:has(.recall-focused) :is(.site-navigation,.site-footer){display:none!important}
 .recall-focused .review-workspace{margin-top:0;margin-bottom:16px}
 .recall-control-bar{grid-column:1/-1;position:sticky;top:0;z-index:65;padding:10px 12px;background:var(--panel);border-bottom:1px solid var(--line);box-shadow:0 2px 8px #0002;box-sizing:border-box}
 .recall-control-bar .review-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}
 .recall-control-bar .recall-question-navigation{margin-left:auto;padding:0;border:0;gap:8px;flex-wrap:nowrap;order:5}
 .recall-question-navigation .button{min-height:44px;min-width:100px}
 .recall-control-bar .review-pass-strip{display:flex;justify-content:flex-end;margin:4px 0 0;padding:0}
 .recall-focused .review-question{scroll-margin-top:130px;scroll-margin-bottom:16px}
 .recall-focused .review-question :is(button,input,textarea,summary){scroll-margin-top:130px;scroll-margin-bottom:16px}
}
@media screen and (max-width:640px){
 .recall-control-bar{padding:8px}
 .recall-control-bar .recall-question-navigation{flex:1;justify-content:flex-end}
 .recall-question-navigation .button{min-width:84px;padding:8px 10px}
}

.recall-navigation-position{font-size:.85rem;color:var(--muted);white-space:nowrap}
/* Keep primary actions beside the choices; secondary controls share a compact header. */
.recall-focused .recall-control-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.recall-focused .recall-control-bar .review-toolbar{flex:1 1 320px}
.recall-focused .recall-control-bar .review-toolbar{gap:6px 12px}
.recall-focused .recall-control-bar h1{font-size:1rem;margin:0;flex:1 1 180px}
.recall-focused .recall-control-bar .review-toolbar>p{font-size:.85rem;margin:0}
.recall-focused .recall-control-bar .review-score{display:none}
.recall-focused .recall-control-bar .review-pass-strip{margin:0;justify-content:flex-start}
.recall-focused .recall-control-bar .review-pace{font-size:.85rem}
.recall-focused .recall-question-navigation,.recall-answer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;padding:0;border:0}
.recall-focused .recall-question-navigation{justify-content:flex-start;padding:0 10px}
.recall-focused .recall-navigation-position{order:1;margin-left:auto;margin-right:0}
.recall-focused .native-question-content{padding:18px 12px 8px}
.recall-question-navigation .button,.recall-answer-actions .button,.recall-advance-status .button{min-height:44px}
.recall-reading-options>summary{min-height:44px;display:list-item;align-content:center;cursor:pointer}
.recall-reading-options[data-recall-options][open]{flex-basis:auto}
.recall-options-panel{position:absolute;inset-inline-end:12px;top:calc(100% + 4px);z-index:75;width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 150px);overflow:auto;overscroll-behavior:contain;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);box-shadow:0 8px 24px #0004;box-sizing:border-box}
.recall-options-panel>[data-recall-options-close]{float:right;margin-bottom:8px;width:44px;min-width:44px;min-height:44px;padding:0;font-size:1.5rem;line-height:1}
.recall-options-panel .review-layout-preferences{clear:both}
.recall-options-panel .review-density-segmented{margin-block:8px}
.recall-options-panel [role=status]:empty{display:none}
.bank-recall-dialog .question-practice-controls{position:sticky}
.bank-recall-dialog .question-view-options[data-recall-options][open]{flex-basis:auto}
.recall-advance-preference{margin:12px 0;min-width:0}
.recall-advance-preference small{display:block;color:var(--muted);margin-top:6px}
.recall-advance-preference [role="status"]:empty{display:none}
.recall-advance-status:not([hidden]){display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}
.recall-advance-status[hidden],.recall-advance-status [hidden]{display:none!important}
.bank-recall-dialog .question-practice-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bank-recall-dialog .question-practice-controls>strong{font-size:.9rem;flex:1 1 180px}
.bank-recall-dialog .question-practice-controls [data-question-clock]{margin-left:auto}
.bank-recall-dialog .recall-answer-actions [data-question-next]{margin-left:0}
@media screen and (max-width:640px){.recall-focused .review-question :is(button,input,textarea,summary){scroll-margin-top:200px}}

/* Both timeline orientations use the same events; pin the upward view axis to its origin. */
[data-timeline-orientation="up"] .timeline-axis-sticky{top:auto;bottom:0;border-bottom:0;border-top:1px solid var(--line)}

.question-practice-dialog{width:min(960px,calc(100% - 24px));max-height:92dvh;padding:0 20px 20px;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:auto}.question-practice-dialog::backdrop{background:#0009}.question-practice-controls{position:sticky;top:0;background:var(--panel);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;z-index:2;border-bottom:1px solid var(--line)}.question-practice-dialog .native-question-content{max-width:none}.question-practice-dialog .native-question-stem,.question-practice-explanation{white-space:pre-wrap}.question-practice-dialog img{max-width:100%;height:auto}.question-practice-actions{margin-top:16px}

.dashboard-workspace [hidden]{display:none!important}.insights-view-controls{margin-block:16px}.insights-view-controls select{width:100%;margin-top:8px}

.insights-view-controls select{box-sizing:border-box;min-height:48px;padding:10px 14px;font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:9px}.insights-view-controls label{display:block;margin-top:12px}

.insights-chart-checks,.recall-set-list{display:grid;gap:4px;padding:8px}.insights-chart-checks{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}.recall-set-list{max-height:320px;overflow:auto}.insights-chart-checks label,.recall-set-list label{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 8px;margin:0}.insights-chart-checks label:has(input:disabled){color:var(--muted)}.insights-multi-picker,.recall-set-picker{margin-block:12px}.recall-scope-actions{display:flex;gap:8px;flex-wrap:wrap;margin-block:12px}.recall-scope-controls select,.recall-scope-controls input[type="search"]{width:100%;min-height:44px;box-sizing:border-box;padding:10px;font:inherit;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px}.recall-scope-controls label{display:block;margin-top:12px}.recall-scope-controls .recall-set-list label{display:flex;margin:0}

.insights-view-controls,.recall-scope-controls{padding:20px}.recall-scope-controls>h2{margin-top:0}.recall-scope-controls>details:last-child{margin-top:12px}
.recall-timeout-notice{padding:20px;scroll-margin-top:90px}.recall-timeout-notice h2{margin-top:0}.recall-timeout-notice p:last-child{margin-bottom:0}

.bank-recall-dialog [data-question-clock]{font-variant-numeric:tabular-nums;white-space:nowrap}

.insights-view-controls h2{margin-top:0}.insights-view-tiles{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:8px;overflow:visible;max-height:none}.insights-view-tiles .scope-compact-tile{min-height:60px;box-sizing:border-box;margin:0;align-items:flex-start!important;white-space:normal;font:inherit;text-align:left}.insights-view-tiles small{display:block;margin-top:5px;color:var(--muted);font-size:.8em}.insights-view-tiles label:has(input:disabled){color:var(--muted);cursor:default}.insights-view-tiles .insights-action-tile{justify-content:center;align-items:center!important;font-weight:600}.insights-view-tiles .insights-action-tile:disabled{cursor:default;opacity:.65}

.insights-view-tiles .insights-coach-tile{box-shadow:inset 0 3px 0 #5199cf;background:color-mix(in srgb,#5199cf 9%,var(--panel-soft))}.insights-coach-title{display:flex;align-items:center;gap:8px;font-size:1.05em}.insights-coach-title svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}.insights-view-tiles .insights-coach-tile.scope-compact-selected{background:color-mix(in srgb,#5199cf 20%,var(--panel-soft));border-color:#5199cf}

/* Sandbox bug batch: keep support views inside the panel and clear of the footer. */
.action-dialog[open]{display:flex;flex-direction:column}
.action-dialog #action-form{flex:1 1 auto;min-height:0}
.action-dialog.action-refunds-open #action-form{height:auto;flex:0 0 auto}
.action-dialog #action-refund-slot{flex:1 1 auto;min-height:0;overflow:auto;padding:0 20px 20px;box-sizing:border-box}
.action-dialog.action-refunds-open .support-refunds{max-height:none;overflow:visible;margin-top:0}
.action-dialog .action-head{cursor:grab;touch-action:none;user-select:none}
.action-dialog .action-head:active{cursor:grabbing}
.action-dialog .action-title-group{flex:1;align-self:stretch;padding-bottom:10px}
.action-dialog .action-title-group:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.action-dialog .action-window-tools{cursor:default;touch-action:auto}
.action-options-menu{display:grid;gap:8px}
body:has(#action-assistant-shell)>.site-footer{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
.action-dialog.action-refunds-open #action-refund-slot{min-height:0;height:auto;flex:1 1 0}

/* Insights tools have independent scopes; charts remain inside their selector panel. */
.insights-coach-panel{border-top:3px solid #5199cf;background:color-mix(in srgb,#5199cf 5%,var(--panel))}
.insights-coach-panel>summary{display:list-item;font-size:1.2rem;cursor:pointer}
.insights-coach-panel>summary>span{display:block;font-size:.88rem;font-weight:400;margin:8px 0;color:var(--muted)}
.insights-coach-scope{margin:20px 0;padding-bottom:12px;border-bottom:1px solid var(--line)}
.insights-coach-scope label{display:grid;gap:8px;max-width:520px}
.insights-coach-panel .dashboard-coach-card{padding:0;border:0;box-shadow:none;background:transparent}
.insights-coach-panel .coaching-loop-card{margin-top:24px}
.insights-builder-panel>summary{font-size:1.15rem;font-weight:650;cursor:pointer}
.insights-chart-results{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:24px;min-width:0}.insights-chart-results>*{min-width:0;max-width:100%;box-sizing:border-box}
.insights-chart-results>.card,.insights-chart-results>.dashboard-chart-grid,.insights-chart-results>.dashboard-story-only{margin:0}
.insights-chart-results [hidden]{display:none!important}
.insights-coach-panel select{max-width:100%;width:100%;min-width:0;font:inherit}
.chart-community-form{margin-top:24px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft)}
.chart-community-form pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem;max-width:100%}
.chart-community-form>label{display:flex;gap:10px;align-items:flex-start;margin:16px 0}
.chart-community-form input{flex:none;margin-top:5px}
.insights-customize-chart{font-size:.8rem;min-height:44px;margin:6px 0 12px}
.insights-coach-panel,.insights-view-controls{padding:24px}
.insights-coach-panel select{min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink)}
@media(max-width:600px){.insights-coach-panel,.insights-view-controls{padding:16px}}
.dashboard-workspace>.card.insights-coach-panel{border-top-color:#5199cf}

/* Descriptive response-time distributions share one scale and an exact table. */
.time-distribution-panel{grid-column:1/-1;min-width:0;scroll-margin-top:96px}
.distribution-chart-scroll,.distribution-table-scroll{max-width:100%;overflow-x:auto}
.distribution-chart-scroll:focus-visible{outline:2px solid var(--sky-500);outline-offset:3px}
.time-distribution-svg{display:block;width:100%;min-width:520px;max-height:340px;font-family:inherit}
.time-distribution-svg text{fill:var(--ink);font-family:inherit;font-size:15px}
.time-distribution-svg line{stroke:var(--muted);stroke-width:2}
.time-distribution-svg rect{fill:#7fb6d9;fill-opacity:.5;stroke:#4f91bd;stroke-width:2}
.time-distribution-svg .distribution-incorrect rect{fill:#dca470;stroke:#a96b34}
.time-distribution-svg .distribution-unanswered rect{fill:#abb7c1;stroke:#748493}
.time-distribution-svg .distribution-median{stroke:var(--ink);stroke-width:3}
.distribution-table-scroll table{width:100%;border-collapse:collapse}
.distribution-table-scroll th,.distribution-table-scroll td{text-align:left;padding:10px;white-space:nowrap;border-bottom:1px solid var(--line)}
.distribution-table-scroll caption{text-align:left;color:var(--muted);padding:8px 10px}
.time-cdf-details{margin-top:20px}
.requested-distribution{padding:0;border:0;box-shadow:none;background:transparent}
.time-cdf-svg{display:block;width:100%;max-width:700px;height:auto;margin:12px auto}
.time-cdf-svg text{fill:var(--ink);font:14px system-ui,sans-serif}
.time-cdf-legend{display:flex;flex-wrap:wrap;gap:8px 20px;padding:0;list-style:none}
.time-cdf-key{display:inline-block;width:24px;vertical-align:middle;margin-right:6px;border-top:3px solid #21845e}
.time-cdf-key.time-cdf-incorrect{border-color:#b86a29;border-top-style:dashed}
.time-cdf-key.time-cdf-unanswered{border-color:#667b8c;border-top-style:dotted}
.time-cdf-table{width:100%;border-collapse:collapse;table-layout:fixed}
.time-cdf-table th,.time-cdf-table td{text-align:left;vertical-align:top;padding:8px 6px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;white-space:normal}
.time-cdf-table td span{display:block}
.time-cdf-table caption{text-align:left;color:var(--muted);padding:8px 0}
@media(max-width:480px){.time-cdf-table{font-size:14px}.time-cdf-table th,.time-cdf-table td{padding:8px 4px}}

.explanation-audio{border:1px solid var(--line);border-radius:12px;padding:14px;margin:12px 0;background:var(--panel-soft)}
.explanation-audio-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.explanation-audio-controls label{display:grid;gap:6px;min-width:160px}
.explanation-audio-controls select{font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px;min-height:44px}
.explanation-audio-controls .button{min-height:44px}
.explanation-audio p{margin:10px 0 0}
.explanation-audio [role=status]:empty{display:none}

/* Optional objective practice stays in the revealed explanation flow. */
[data-objective-practice] { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border, #cbd5e1); }
[data-objective-practice] summary { cursor: pointer; font-weight: 700; padding-block: 10px; min-height: 44px; }
[data-objective-practice] form { display: grid; gap: 14px; min-width: 0; }
[data-objective-practice] label { display: grid; gap: 7px; font-weight: 600; min-width: 0; }
[data-objective-practice] textarea, [data-objective-practice] select { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 44px; border: 1px solid var(--border, #94a3b8); border-radius: 8px; padding: 10px; font: inherit; color: inherit; background: transparent; }
[data-objective-practice] textarea { min-height: 90px; resize: vertical; }
[data-objective-practice] p { margin-block: 8px; }
[data-objective-practice] [role="status"]:empty { display: none; }

.exam-focus-options { margin: 8px 0; max-width: 42rem; }
.exam-focus-options summary { cursor: pointer; min-height: 44px; padding: 10px; font-weight: 700; }
.exam-focus-options button { min-height: 44px; padding: 8px 14px; font: inherit; }
.exam-focus-options p { font-size: .9rem; line-height: 1.5; margin: 8px 10px; }
.exam-focus-options [role="status"]:empty { display: none; }

.confidence-comparison.confidence-repeat-comparison { grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); }

.explanation-audio-controls label { flex:1 1 200px;max-width:100%; }
.explanation-audio-controls select { min-width:0;width:100%;max-width:100%; }
.explanation-audio-controls [data-device-voice-label][hidden] { display:none; }

[data-choice-variant] summary { cursor:pointer;min-height:44px;padding:10px 0;box-sizing:border-box;font-weight:650; }
[data-choice-variant] form { display:grid;gap:12px; }
[data-choice-variant] label { display:grid;gap:8px; }
[data-choice-variant] .choice-variant-permission { display:flex;align-items:flex-start;gap:10px; }
[data-choice-variant] input[type="checkbox"] { width:20px;height:20px;flex:0 0 20px;margin:3px 0 0; }
[data-choice-variant] textarea { width:100%;max-width:100%;min-width:0;min-height:96px;box-sizing:border-box;resize:vertical;font:inherit;line-height:1.5;padding:10px 12px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px; }
[data-choice-variant] button { justify-self:start;min-height:44px; }

[data-resource-library] { margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:10px; }
[data-resource-library] summary { cursor:pointer;min-height:44px;padding:10px 0;box-sizing:border-box;font-weight:650; }
.review-resource-library-form { display:grid;grid-template-columns:minmax(0,1fr);gap:12px; }
.review-resource-library-form label { display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0; }
.review-resource-library-form [data-resource-results] { min-width:0;overflow-wrap:anywhere; }
.study-resource-page > .card > details { overflow-wrap:anywhere; }
.review-resource-library-form input,
.review-resource-library-form select { box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px; }
.review-resource-library-form button { justify-self:start;min-height:44px; }
.generation-approval-dialog { box-sizing:border-box;width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:24px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:16px; }
.generation-approval-dialog::backdrop { background:rgb(0 0 0 / .65); }
.generation-approval-dialog h2 { margin:0 0 16px; }
.generation-approval-details { white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;max-height:55dvh;line-height:1.6; }
.generation-approval-actions { display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:20px; }
.generation-approval-actions button { min-height:44px; }

/* Private layout pilot uses page scrolling and native touch-friendly controls. */
.private-layout-pilot{padding:24px;box-sizing:border-box;max-width:100%;overflow-wrap:anywhere}
.private-layout-pilot form{margin-top:24px}
.private-layout-pilot fieldset>label{margin-block:16px}
.private-layout-pilot select{min-height:44px;max-width:100%;width:100%}
.private-layout-pilot [role="group"]>label{display:flex;align-items:center;gap:10px;min-height:44px}
.private-layout-pilot .coaching-actions{flex-wrap:wrap;gap:8px}
.private-layout-pilot button{min-height:44px;white-space:normal;max-width:100%}
@media(max-width:600px){.private-layout-pilot{padding:18px}}

:is([data-table-offer],[data-visual-offer]){margin-block:16px;white-space:normal}
:is([data-table-offer],[data-visual-offer]) fieldset{border:0;min-width:0;width:100%;box-sizing:border-box;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
:is([data-table-offer],[data-visual-offer]) label{display:block;white-space:normal}
:is([data-table-offer],[data-visual-offer]) input:not([type=checkbox]),:is([data-table-offer],[data-visual-offer]) textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:44px;margin-top:8px}
:is([data-table-offer],[data-visual-offer]) button{min-height:44px;white-space:normal;max-width:100%}
:is([data-table-offer],[data-visual-offer]) [role=status]{overflow-wrap:anywhere;white-space:normal}

.chart-examples{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.chart-example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin-top:16px}.chart-example-grid>article{padding:20px;border:1px solid var(--line);border-radius:12px;min-width:0;overflow-wrap:anywhere}.chart-example-grid h4{margin:0 0 12px}.chart-example-grid small{display:block;margin:12px 0}.chart-example-grid button{min-height:44px;white-space:normal}

@media(max-width:600px){.requested-chart .attempt-progress-head{display:block}.requested-chart .chart-request-actions{display:flex;flex-wrap:wrap;margin-top:16px}.requested-chart .chart-request-actions>button{flex:1 1 140px;min-height:44px;white-space:normal}}

/* Descriptive time shares use the same selected records as the distributions. */
.time-allocation-details { margin-block: 1rem; }
.time-allocation-details > summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 700; }
.time-allocation-bars { list-style: none; padding: 0; }
.time-allocation-bars li { margin-block: 12px; overflow-wrap: anywhere; }
.time-allocation-bars meter { display: block; width: 100%; min-width: 0; height: 20px; margin-top: 4px; }
.time-allocation-bars meter::-webkit-meter-optimum-value { background: var(--accent, #567e9b); }
.time-allocation-bars meter::-moz-meter-bar { background: var(--accent, #567e9b); }

[data-visual-offer] form,[data-visual-offer] fieldset>*{min-width:0;max-width:100%;box-sizing:border-box}
/* Private note tables use the existing takeaway storage and accessible renderer. */
.private-note-tools { margin-block:12px; min-width:0; }
.private-note-tools summary { cursor:pointer; padding-block:12px; }
.private-note-tools fieldset { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-block:12px; padding:12px; min-width:0; }
.private-note-tools label { display:grid; gap:6px; min-width:0; }
.private-note-tools input,.private-note-tools select { width:100%; min-width:0; min-height:44px; box-sizing:border-box; }
.private-note-dimensions { display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
.private-note-tools button { min-height:44px; white-space:normal; }
.private-note-tools [data-note-output] { overflow-wrap:anywhere; }
.private-note-tools [data-note-status]:empty { display:none; }
@media(max-width:480px) { .private-note-tools fieldset { grid-template-columns:minmax(0,1fr); } }

/* Short, mutually exclusive narration choices use native radio keyboard behavior. */
.explanation-voice-options{border:0;padding:0;margin:0;min-width:0;max-width:100%;flex:0 1 auto}
.explanation-voice-options legend{font-weight:600;margin-bottom:6px}
.explanation-voice-options>div{display:flex;flex-wrap:wrap;gap:6px}
.explanation-audio-controls .explanation-voice-options label{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.explanation-voice-options label:has(input:checked){background:var(--panel-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.explanation-voice-options label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.explanation-voice-options input{width:18px;height:18px;flex:0 0 auto;margin:0;accent-color:var(--accent)}

.bank-heading{position:relative}
.bank-heading:has(.practice-recall-shortcut){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:start;padding-right:0}
.bank-heading:has(.practice-recall-shortcut)>:not(.practice-recall-shortcut){grid-column:1}
.practice-recall-shortcut{position:static;grid-column:2;grid-row:1 / span 2;align-self:start;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:92px;min-height:64px;padding:8px 12px;border:2px solid var(--recall-count-due);border-radius:10px;background:var(--panel);color:var(--ink);text-decoration:none;font-size:.85rem}
.practice-recall-shortcut .recall-count{font-size:1.65rem;line-height:1.1}
.practice-recall-shortcut:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.practice-recall-shortcut:hover{background:var(--panel-soft)}
@media(max-width:480px){.bank-heading:has(.practice-recall-shortcut){grid-template-columns:minmax(0,1fr)}.practice-recall-shortcut{grid-column:1;grid-row:auto;width:fit-content;margin:12px 0}}

/* Short, fixed choices stay visible and keep native radio keyboard behavior. */
.compact-choice{border:0;padding:0;margin:0;min-width:0;max-width:100%}
.compact-choice legend{font-weight:600;margin-bottom:6px}
.compact-choice>div{display:flex;flex-wrap:wrap;gap:6px}
.compact-choice label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.compact-choice label:has(input:checked){background:var(--panel-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.compact-choice label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.compact-choice input[type=radio]{width:18px;height:18px;flex:0 0 auto;margin:0;accent-color:var(--accent)}
.recall-timing-choice{grid-template-columns:minmax(0,1fr)}
.recall-timing-choice .compact-choice span{color:var(--ink);font-size:inherit}

.bank-source-controls .compact-choice label{display:flex;flex:0 1 auto;font-weight:inherit}
.bank-source-controls .compact-choice{flex:0 1 auto}
.import-dialog .import-format-choice{margin:14px 0}

.question-tutor{margin-top:16px;padding:16px}
.question-tutor [hidden]{display:none!important}
.ai-tutor-card [hidden]{display:none!important}
.question-tutor>summary{font-weight:650;cursor:pointer;min-height:44px;align-content:center}
.question-tutor>label{display:grid;gap:8px;margin:12px 0}
.question-tutor>label.tutor-profile-choice,.ai-tutor-card>label.tutor-profile-choice{display:block;margin:12px 0}
.tutor-profile-choice select{font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:5px 8px;min-height:36px}
.question-tutor>label.tutor-note-option,.ai-tutor-card>label.tutor-note-option{display:flex;align-items:flex-start;gap:8px;min-height:44px;cursor:pointer}
.question-tutor .tutor-note-option input,.ai-tutor-card .tutor-note-option input{width:18px;height:18px;flex:0 0 auto;margin:3px 0 0;accent-color:var(--accent)}
.question-tutor textarea{width:100%;min-height:88px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit}
.question-tutor [data-tutor-messages]>section{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px}

/* Private bank-question study notes reuse the explanation typography. */
.private-bank-notes{margin-block:16px;min-width:0}
.private-bank-notes summary{cursor:pointer;padding-block:12px}
.private-bank-notes label{display:grid;gap:6px;min-width:0}
.private-bank-notes textarea{width:100%;box-sizing:border-box;min-height:120px}
.private-bank-notes [hidden]{display:none!important}
.private-bank-notes [data-bank-note-preview]{overflow-wrap:anywhere;min-width:0}

.bank-recall-dialog .native-question-content{display:block;padding:16px 0 8px}
.insights-scope-summary{line-height:1.6;margin:0 0 16px}
#insights-chart-filters{scroll-margin-top:90px}
.review-layout-choice{margin:8px 0;min-width:0;max-width:680px}
.review-layout-choice small{display:block;color:var(--muted);line-height:1.5;margin-top:6px}
.review-layout-preferences [role="status"]:empty{display:none}
.review-layout-choice label{min-height:44px}
.review-density-toggle{min-height:44px;white-space:nowrap}
.review-density-segmented.appearance-compact{min-width:0;max-width:100%;border:0;padding:0}
.review-density-segmented legend{font-weight:600;margin-bottom:6px}


.review-density-inline{display:inline-block;vertical-align:middle}
.review-density-inline legend.sr-only{margin:0}
.recall-pause-control{min-height:44px;margin-left:16px;background:transparent}
.recall-question-navigation .recall-check-action,.recall-answer-actions .recall-check-action{margin-left:16px}
@media(max-width:520px){.recall-question-navigation .recall-check-action,.recall-answer-actions .recall-check-action{margin-left:0}}
.question-view-options>summary,.review-view-options>summary,.review-context-details>summary{min-height:44px;align-content:center;cursor:pointer}
.review-view-options{min-width:0}
.review-toolbar:has(.review-view-options){display:flex;flex-wrap:wrap;position:relative}
:is(.review-toolbar,.question-practice-controls,.shared-runner-head)>:is(.review-view-options,.question-view-options,.recall-reading-options){margin-inline-start:auto}
:is(.review-toolbar,.question-practice-controls,.shared-runner-head)>:is(.review-view-options,.question-view-options,.recall-reading-options)+.review-density-inline{margin-inline-start:0}
.review-toolbar>.review-view-options[data-recall-options][open]{flex-basis:auto}
.review-toolbar>.review-view-options>.recall-options-panel{inset-inline-end:0;width:min(520px,100%)}
/* Saved-block review options anchor to their header, not the whole page. */
.shared-runner-head:has(>details[data-recall-options]){position:relative;z-index:3}
.shared-runner-head>.question-view-options[data-recall-options][open]{flex-basis:auto}
.review-context-details{margin-block:16px}
.question-view-options[open]{flex-basis:100%}
.question-practice-controls:has(.question-view-options){flex-wrap:wrap}
.question-practice-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.quick-review-question,.quick-review-learning{min-width:0}
.quick-review-learning:empty{display:none}
[data-review-density="compact"] .review-layout{gap:12px}
[data-review-density="compact"] .native-question-content{padding:8px 12px}
[data-review-density="compact"] .native-choice-list{gap:4px;margin-top:8px}
[data-review-density="compact"] .native-choice-row{padding-block:6px;min-height:44px}
[data-review-density="compact"] .learning-card{padding:12px}
[data-review-density="compact"] .saved-explanation-section{margin-block:6px;padding-top:6px}
[data-review-density="compact"] .saved-explanation-section h3{margin:0 0 4px}
[data-review-density="compact"] .saved-explanation-section h3,
[data-review-density="compact"] .saved-explanation-section h3+p{display:inline}
[data-review-density="compact"] .saved-explanation-section h3::after{content:": "}
[data-review-density="compact"] .saved-explanation-section p{margin-block:4px}
[data-review-density="compact"] .saved-explanation-section p+p{margin-top:6px}
[data-review-density="compact"] .learning-panel{grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
[data-review-density="compact"] .learning-panel>*{grid-column:1/-1;min-width:0}
[data-review-density="compact"] .review-question{min-width:0}
[data-review-density="compact"] .review-question-head{display:none}
[data-review-density="compact"] .recall-focused .recall-question-navigation{margin-block:4px;justify-content:flex-start}
[data-review-density="compact"] .recall-navigation-position{display:none}
.bank-recall-dialog[data-review-density="compact"] .recall-answer-actions{justify-content:flex-start}
.bank-recall-dialog[data-review-density="compact"] .recall-answer-actions [data-question-next]{margin-left:0}
.question-practice-dialog[data-review-density="compact"] .question-practice-layout.answer-revealed [data-question-check]{display:none}
[data-review-density="compact"] .recall-focused .recall-saved-choice-note,
[data-review-density="compact"] .recall-focused .verdict-card{display:none}
.recall-marking-tools>summary{min-height:44px;align-content:center;cursor:pointer;padding-inline:10px}
.question-practice-dialog[data-review-arrangement]{width:min(1320px,calc(100% - 24px))}
[data-review-arrangement="beside"] .learning-panel{grid-template-columns:minmax(0,1fr);min-width:0}
[data-review-arrangement="beside"] .learning-panel>*{grid-column:1/-1;min-width:0}
[data-review-arrangement="full"] .review-layout.answer-revealed{grid-template-columns:minmax(0,1fr)}
@media screen and (min-width:1100px){
 [data-review-arrangement="beside"] .review-layout.answer-revealed,
 .question-practice-dialog[data-review-arrangement="beside"] .question-practice-layout.answer-revealed{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
}
@media(pointer:coarse){.review-layout-choice label{min-height:48px}}
@media print{.review-layout-preferences,.question-view-options,.review-view-options{display:none}}

.saved-explanation-head [role="status"]:empty{display:none}
[data-review-density="compact"] .saved-explanation-section[data-empty-explanation-section]{display:none}
.saved-explanation-head .explanation-mode-toggle{margin:0;flex:0 0 auto}
.saved-explanation-head{justify-content:flex-start;gap:8px}
.saved-explanation-head [data-explanation-visibility]{margin-left:auto;min-height:44px}

[data-review-density="compact"] [data-auto-check="true"] .recall-check-action:disabled{display:none}
@media(max-width:520px){.recall-question-navigation,.recall-answer-actions{row-gap:16px}}

.recall-focused .recall-navigation-position{order:1;margin-left:auto;margin-right:0}

.recall-advance-preference .recall-delay-input{display:flex;width:max-content;max-width:100%;gap:8px;margin-top:8px}
.recall-advance-preference .recall-delay-input[hidden]{display:none}
.recall-delay-input input[type=number]{width:7ch;min-width:72px;min-height:44px;margin:0}

/* Shared density changes spacing and explicitly secondary guidance only. */
.appearance-save-status:empty{display:none}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.workspace-heading h1{margin:0}
html[data-review-density="compact"] [data-compact-guidance]{display:none}
html[data-review-density="compact"] .site-content h1{font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.15;margin-bottom:8px}
html[data-review-density="compact"] .site-content :is(.workspace,.library-workspace){padding-top:12px}
html[data-review-density="compact"] .site-content :is(.workspace-welcome,.dashboard-title-row){gap:12px;margin-bottom:12px}
html[data-review-density="compact"] .site-content :is(.dashboard-panel,.memory-queue-card,.attempt-analysis-panel,.form-library-card){padding:12px}
html[data-review-density="compact"] .site-content :is(.start-heading,.start-body){padding:12px}
html[data-review-density="compact"] .bank-heading{margin:12px 0}
html[data-review-density="compact"] .bank-source-controls{gap:8px;margin:8px 0}
html[data-review-density="compact"] .bank-exam-picker{padding:10px;margin:8px 0}
html[data-review-density="compact"] .bank-tabs>button{padding:8px 10px;min-height:44px}
html[data-review-density="compact"] .bank-field-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px;margin:8px 0}
html[data-review-density="compact"] .bank-field-grid button{padding:8px;gap:4px;min-height:44px}
html[data-review-density="compact"] .bank-field-grid button[aria-pressed="true"]{padding:7px}
html[data-review-density="compact"] .memory-queue-card{gap:10px}
html[data-review-density="compact"] .dashboard-freshness{padding:10px 12px}

[data-compact-only]{display:none}
html[data-review-density="compact"] [data-compact-only]{display:block}

.dashboard-title-row{align-items:start}
.dashboard-title-actions{min-width:0}
.dashboard-title-actions .coaching-actions{display:flex;flex-direction:row;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.insights-filter-toolbar{padding:14px 18px;margin-bottom:18px}
.insights-filter-overview{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap}
.insights-filter-toolbar .dashboard-freshness{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;padding:0;min-width:0;background:none;border:0;box-shadow:none}
.insights-filter-toolbar .dashboard-freshness strong{font-size:1.35rem}
.insights-filter-toolbar .dashboard-freshness small{flex-basis:100%}
.insights-filter-toolbar .insights-scope-summary{margin:0;flex:1 1 250px}
.insights-filter-toolbar>details>summary{cursor:pointer;min-height:44px;align-content:center;width:fit-content;font-weight:700}
.insights-filter-toolbar .attempt-analysis-panel{padding:12px 0 0;margin:0;border:0;box-shadow:none;background:none}
.coach-question-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.coach-question-suggestions button{min-height:44px;padding:8px 12px;font-size:.9rem}
#dashboard-coach-form .coach-question-suggestions .button{width:auto;flex:0 1 auto}
.site-content .dashboard-title-actions .coaching-actions>button{width:auto;flex:0 1 auto}
html[data-review-density="compact"] .insights-filter-toolbar{padding:10px 12px;margin-bottom:12px}
html[data-review-density="compact"] .insights-coach-panel{padding:12px}
@media(max-width:700px){.dashboard-title-row{grid-template-columns:minmax(0,1fr);gap:12px}.dashboard-title-actions .coaching-actions{justify-content:flex-start}.insights-filter-overview{gap:8px}.insights-filter-toolbar{padding:12px}.coach-question-suggestions{gap:6px}.insights-scope-controls{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){html[data-review-density="compact"] .dashboard-title-actions .coaching-actions>button{font-size:.8rem;padding:8px 10px;min-height:44px}html[data-review-density="compact"] .dashboard-title-row .eyebrow{display:none}}

.recall-answer-feedback,[data-question-feedback]{margin:6px 0;font-weight:650}
[data-question-feedback]:empty{display:none}
.recall-answer-feedback:focus-visible,[data-question-feedback]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ai-coach-session .ai-prompt-chips>button{min-height:44px}
html[data-review-density="compact"] .ai-coach-room{gap:12px}
html[data-review-density="compact"] :is(.ai-coach-intro,.ai-coach-session,.ai-coach-task,.ai-coach-sidebar>.card){padding:12px}

.recall-custom-dates{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.recall-custom-dates label{flex:0 1 220px;min-width:0;max-width:100%}.recall-custom-dates input{max-width:100%;min-height:44px}

.saved-lesson-chapter-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-block:16px 8px}.saved-lesson-chapter-heading h4{margin:0}.saved-lesson-chapter-heading .button{min-height:44px}.lesson-video-text>summary{min-height:44px;align-content:center;cursor:pointer}

/* Keep the native stepper visible for the optional, incrementable delay. */
.recall-delay-input input[type="number"]{appearance:auto}
.recall-delay-input input[type="number"]::-webkit-inner-spin-button{opacity:1}
/* Recall keeps its context heading small in either density. */
.site-content .recall-focused .recall-control-bar h1{font-size:1rem;line-height:1.3;margin:0}

:is(.workspace-heading,.review-toolbar,.question-practice-controls,.shared-runner-head)>.review-density-inline{margin-inline-start:auto;flex:0 0 auto}

/* One dismiss control for comparable study windows; action buttons stay explicit. */
.window-close.window-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ink);font-family:inherit;font-size:1.5rem;font-weight:400;line-height:1;cursor:pointer}
.window-close.window-close:hover{background:var(--panel-soft)}
.window-close.window-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.question-practice-controls:has(>[data-question-close]){padding-inline-end:56px}
.question-practice-controls>[data-question-close]{position:absolute;inset-inline-end:0;top:8px}

/* Reuse the saved page density on the learning libraries; content stays readable. */
html[data-review-density="compact"] :is(.study-resource-page,.lesson-video-page) .card{padding:12px}
html[data-review-density="compact"] .study-resource-page .coaching-form label{margin:8px 0}

/* Optional page guidance follows the shared density preference; learning and action notices stay separate. */
.density-help{margin:0;padding:0;border:0;background:transparent;min-width:0}
.density-help>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:10px 0;font-size:.9rem;font-weight:600;line-height:1.5}
.density-help>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.density-help-body{min-width:0;overflow-wrap:anywhere}
html:not([data-review-density="compact"]) .density-help>summary{display:none}
html[data-review-density="compact"] .density-help{margin:4px 0}
/* Keep paired field/exam disclosures and their targets consistent in both page views. */
.bank-scope-pickers{align-items:stretch}
.bank-scope-pickers :is(.bank-field-picker,.bank-exam-picker)>summary{box-sizing:border-box;min-height:44px;overflow-wrap:anywhere}
html[data-review-density="compact"] .bank-scope-pickers :is(.bank-directory,.bank-exam-picker,.bank-directory:has(.bank-field-picker:not([open]))){padding:0 12px;margin:0;border-radius:12px}
/* Captions occupy the same row above the select and radio group. */
.insights-scope-controls{align-items:start}
.insights-scope-controls>label,.insights-scope-controls>.compact-choice{margin:0;align-self:start}
.insights-scope-controls>label{align-content:start;grid-template-rows:max-content auto;font:inherit}
.insights-scope-controls>label>strong,.insights-scope-controls>.compact-choice>legend{font:inherit;font-weight:700;line-height:1.5}
.insights-scope-controls>.compact-choice>legend{float:none;padding:0;margin:0 0 6px;width:100%;box-sizing:border-box}
.insights-scope-controls select{min-height:44px;box-sizing:border-box;margin:0;padding:8px 12px;font:inherit;line-height:1.5}
.insights-scope-controls>.compact-choice>div{align-items:start}
.insights-scope-controls>.compact-choice label{box-sizing:border-box;min-height:44px;font:inherit;line-height:1.5}

/* Multiple question sources use native checkboxes with the same readable target size. */
.bank-source-controls .compact-choice input[type=checkbox],.bank-selection .bank-filters input[type=checkbox]{width:18px;height:18px;flex:0 0 auto;margin:0;accent-color:var(--accent)}

.bank-source-controls{align-items:start}
.bank-source-controls>label{margin:0;min-width:0}
.bank-source-controls>label,.bank-source-controls>.compact-choice>legend{font-size:1rem;font-weight:650;line-height:1.5}
.bank-source-controls>.compact-choice>legend{padding:0;margin:0 0 6px}
.bank-source-controls>button{align-self:end}

.bank-source-controls .bank-facet{flex:1 1 260px;min-width:0}
.bank-source-controls .bank-facet>div{display:flex;flex-wrap:wrap;gap:6px}
.bank-source-controls .bank-facet label{min-width:0;overflow-wrap:anywhere}

/* Experienced learners can restore static exam-outline references in Comfortable. */
html[data-review-density="compact"] :is(.bank-outline-details,.bank-outline-note,.bank-outline-guidance){display:none}

/* Keep the bank's activity filters in one persistent parent/child branch. */
.bank-source-controls .bank-source-tree{flex:1 1 100%;min-width:0}
.bank-source-controls .bank-source-tree>div{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px}
.bank-source-branch{min-width:0}
.bank-source-dependent{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-inline-start:2px solid var(--line);padding-inline-start:16px;margin-top:6px}
.bank-source-controls .bank-saved-source{align-self:start}
@media(max-width:700px){.bank-source-controls .bank-source-tree>div,.bank-source-dependent{grid-template-columns:minmax(0,1fr)}.bank-source-dependent{padding-inline-start:12px}}

html[data-review-density="compact"] :is(.bank-choosing-help,.bank-source-note,.bank-source-help-note){display:none}

html[data-review-density="compact"] .bank-review-activity-help{display:none}

html[data-review-density="compact"] :is(.bank-status-help,.bank-tree-hint){display:none}

html[data-review-density="compact"] .bank-explore-help{display:none}

/* Question sources and their child filters share the question-status treatment. */
.bank-source-controls .compact-choice label:has(input:checked),.bank-source-controls .compact-choice label:has(input:indeterminate){background:var(--panel-soft);border-color:#1598cc;box-shadow:none}
.bank-source-controls .bank-saved-source{justify-self:start}

.bank-source-controls.card{padding:24px}
@media(max-width:760px){.bank-source-controls.card{padding:18px}}

.bank-source-controls .bank-source-branch>label{width:max-content;max-width:100%}
.bank-source-controls .bank-source-tree>legend{font-weight:700}
.bank-selection .bank-filters label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}

/* Original bank review follows the same saved page density as other study views. */
.shared-review-readonly{display:none}
.shared-review-navigation{justify-content:flex-start}
.shared-runner-head>.review-density-inline{margin-inline-start:auto}
html[data-review-density="compact"] .shared-runner{margin:8px auto;padding:12px 20px}
html[data-review-density="compact"] .shared-runner-head{gap:8px;align-items:center}
html[data-review-density="compact"] .shared-runner-head h1{margin:2px 0;font-size:1.6rem;line-height:1.2}
html[data-review-density="compact"] .shared-runner-head .eyebrow{margin:0;font-size:.7rem;line-height:1.4}
html[data-review-density="compact"] .shared-status{min-height:0;margin:4px 0;font-size:.85rem}
html[data-review-density="compact"] .shared-runner[data-shared-completed]>.shared-result{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:10px 12px;margin:8px 0}
html[data-review-density="compact"] .shared-result>h2{margin:0;font-size:1rem}
html[data-review-density="compact"] .shared-result-score{margin:0}
html[data-review-density="compact"] :is(.shared-result-note,.shared-review-context-note,.shared-review-help,.shared-review-tools .ai-clue-note,.shared-runner-note){display:none}
html[data-review-density="compact"] .shared-question-grid{margin:8px 0}
html[data-review-density="compact"] .shared-runner>.shared-review{padding:12px;margin:8px 0}
html[data-review-density="compact"] .shared-review-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
html[data-review-density="compact"] .shared-review-heading h2{margin:0;font-size:1.1rem;line-height:1.3}
html[data-review-density="compact"] .shared-review-readonly{display:inline-block;font-size:.8rem;color:var(--muted)}
html[data-review-density="compact"] .shared-review-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0}
html[data-review-density="compact"] .shared-review-bookmark{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0}
html[data-review-density="compact"] .shared-review-tools .review-highlight-layers{padding:0}
html[data-review-density="compact"] .shared-review-tools :is([role="alert"],[role="status"]){flex-basis:100%;margin:0}
html[data-review-density="compact"] .shared-review .shared-question{margin:8px 0;padding:10px}
html[data-review-density="compact"] .shared-review .native-choice-list{gap:6px}
@media(max-width:600px){html[data-review-density="compact"] .shared-runner{padding:8px 12px}}

html[data-review-density="compact"] .shared-runner-head>[data-shared-time]{margin:0}
html[data-review-density="compact"] .shared-statistics-settings{margin-block:8px}
@media(max-width:600px){
 html[data-review-density="compact"] .shared-runner[data-shared-completed] .shared-runner-head{display:grid;grid-template-columns:auto 1fr}
 html[data-review-density="compact"] .shared-runner[data-shared-completed] .shared-runner-head>div,
 html[data-review-density="compact"] .shared-runner[data-shared-completed] .shared-runner-head>[data-shared-time]{grid-column:1/-1}
 html[data-review-density="compact"] .shared-runner-head>.review-density-inline{margin:0;justify-self:end}
}

/* Compact review omits highlight toggles that have no saved layer to show. */
html[data-review-density="compact"] .shared-review-tools :is([data-shared-user-layer],[data-shared-ai-layer]):disabled,
html[data-review-density="compact"] .original-review :is(#toggle-user-highlights,#toggle-ai-clues):disabled{display:none}

.saved-lesson-player{scroll-margin-top:90px}
.saved-lesson-chapter{padding:10px;margin-block:12px;min-width:0}
.saved-lesson-chapter-heading :is(h4,h5,h6){margin:0;font-size:1rem;line-height:1.4}
.saved-lesson-current-point{color:var(--muted);font-size:.85rem}
.saved-lesson-chart-title{font-weight:650}
.saved-lesson-resume-note{margin-block:8px;line-height:1.5}

html[data-review-density="compact"] .review-resource-filter-help{display:none}

/* Exact records behind an own custom comparison; native disclosures match other Insights details. */
.requested-record-groups { margin-top:16px; }
.requested-question-records > summary { min-height:44px; padding:10px 0; cursor:pointer; overflow-wrap:anywhere; }
.requested-record-list { list-style:none; padding:0; margin:8px 0; }
.requested-record-list > li { padding:10px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.requested-record-list > li > div { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:start; gap:8px; }
.requested-record-list small { display:block; color:var(--muted); margin-top:4px; }
.requested-record-list .text-button { display:inline-flex; align-items:flex-start; min-height:44px; line-height:1.5; }
[data-review-density="compact"] .requested-record-list > li { padding-block:4px; }
.requested-question-records [data-requested-record-range]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

/* Original bank reviews reuse the same account arrangement as native reviews. */
.shared-review-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;position:relative}
.shared-review-heading>.question-view-options{margin-inline-start:auto}
.shared-review-heading>.question-view-options[open]{flex-basis:auto}
.shared-review-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.shared-review-question,.shared-review-learning{min-width:0}
.shared-review-question .shared-review-navigation{justify-content:flex-start}
@media screen and (min-width:1100px){
 [data-review-arrangement="beside"] .shared-runner[data-shared-reviewing]{max-width:1320px}
 [data-review-arrangement="beside"] .shared-review-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px}
}

/* Compact original review keeps the result summary on its Results screen. */
html[data-review-density="compact"] .shared-runner[data-shared-reviewing]>.shared-result,
html[data-review-density="compact"] .shared-runner[data-shared-reviewing]>.shared-statistics-settings,
html[data-review-density="compact"] .shared-runner[data-shared-reviewing]>.shared-runner-head .eyebrow{display:none}

/* Evidence follows the page scroll; only long timing records need their own scroller. */
.ai-coach-evidence-panel>[role="status"]:empty{margin:0}
html[data-review-density="compact"] .ai-coach-evidence-panel{padding:10px;margin-block:10px}
html[data-review-density="compact"] .ai-coach-evidence-panel>h3{margin:0 0 8px}
html[data-review-density="compact"] .ai-coach-evidence-panel>p{margin-block:8px}
html[data-review-density="compact"] .coach-teaching-board{padding:12px;margin-block:12px}
html[data-review-density="compact"] .coach-board-step{padding:10px}

.ai-coach-evidence-panel>.coach-evidence-filter{padding:0;margin:10px 0}
.ai-coach-evidence-panel>.coach-evidence-filter>label{margin:0}
@media(max-width:640px){
 .ai-coach-evidence-panel>.coaching-actions[aria-label="Evidence chart"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch;gap:8px}
 .ai-coach-evidence-panel>.coaching-actions[aria-label="Evidence chart"]>.button{min-width:0;min-height:44px;white-space:normal;padding:10px 4px;overflow-wrap:normal}
}

@media(max-width:360px){
 html[data-review-density="comfortable"] .ai-coach-evidence-panel>.coaching-actions[aria-label="Evidence chart"]{grid-template-columns:minmax(0,1fr)}
}

.coach-written-history{margin:16px 0}
.coach-written-lesson{margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:10px}
.coach-written-lesson>summary{overflow-wrap:anywhere}
html[data-review-density="compact"] .coach-written-history{margin:10px 0}

/* Active coaching is the primary pane; setup leads before a session starts. */
.ai-coach-room.has-active-session{grid-template-columns:minmax(320px,2fr) minmax(240px,1fr)}
@media(max-width:980px){.ai-coach-room.has-active-session{grid-template-columns:minmax(0,1fr)}}

html[data-review-density="compact"] .ai-coach-intro{display:none}

.coach-request-recovery{margin:12px 0;padding:12px;border:1px solid var(--red-600);border-radius:10px;background:var(--panel-soft);overflow-wrap:anywhere}
.coach-request-recovery>p{margin:0 0 10px}

/* Remembered source disclosure reuses native details and the existing checkbox tree. */
html .card.bank-source-disclosure{padding:0;margin:16px 0;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:none}
.bank-source-disclosure>summary{box-sizing:border-box;min-height:44px;padding:10px 16px;cursor:pointer;font-weight:700;overflow-wrap:anywhere}
.bank-source-disclosure>summary>span{font-weight:700}
.bank-source-disclosure>summary>small{display:block;margin-top:4px;color:var(--muted);font-size:.85rem;font-weight:400}
.bank-source-disclosure>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:inherit}
.bank-source-disclosure>.bank-source-controls{padding:0 16px 12px;margin:0}
.bank-source-disclosure>.bank-source-note,.bank-source-disclosure>.bank-source-help-note,.bank-source-disclosure>.bank-review-activity-help{margin-inline:16px}

/* Bounded evidence browsing; analysis scope remains independent. */
.evidence-pagination{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;margin:12px 0;}
.evidence-pagination label{display:flex;align-items:center;gap:8px;}
.evidence-pagination select{width:auto;min-width:76px;}
.evidence-pagination>div{display:flex;gap:8px;}
.insights-recent-count{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.insights-recent-count input{width:92px;}

/* The three question-picker disclosures share surface, type and density rhythm. */
.bank-source-disclosure>summary{font-size:inherit;color:var(--ink)}
html[data-review-density="compact"] .bank-picker-hint{display:none}
html[data-review-density="compact"] .bank-scope-pickers{margin-block:8px;gap:8px}
html[data-review-density="compact"] .card.bank-source-disclosure{margin-block:8px}
html[data-review-density="compact"] .bank-source-disclosure>summary{padding:6px 12px}

html[data-review-density="compact"] .bank-mixed-exam-note{display:none}

html .card.bank-source-disclosure>summary{background:transparent}

html[data-review-density="compact"] :is(.bank-directory-content>p:first-child,.bank-directory-note,.bank-exam-prompt){display:none}
html[data-review-density="compact"] .bank-field-grid button{padding:10px;border-width:1px;border-radius:7px;font-size:.88rem}
html[data-review-density="compact"] .bank-field-grid button strong{font-weight:400}
html[data-review-density="compact"] .bank-field-grid button[aria-pressed="true"]{padding:10px;border:1px solid #5199cf;background:color-mix(in srgb,#5199cf 14%,var(--panel-soft))}
.bank-exam-picker #bank-clear-exams{margin-top:8px;min-height:44px}

.insights-date-range{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:12px 0}
.insights-date-range label{display:grid;gap:4px}
.insights-date-range input{width:175px;max-width:100%}

.coach-report-history{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:10px}
.coach-history-selectors,.coach-history-reports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.coach-history-selectors label{display:grid;gap:6px;min-width:0}
.coach-saved-analysis{min-width:0;overflow-wrap:anywhere}
.coach-saved-analysis>div{padding-block:10px;line-height:1.6}
.dashboard-coach-report .teaching-table-scroll,.dashboard-coach-message .teaching-table-scroll{max-width:100%}
@media(max-width:650px){.coach-history-selectors,.coach-history-reports{grid-template-columns:1fr}}

.accuracy-count-details{margin-block:12px}
.accuracy-count-details>summary{font-weight:600}

.study-text{overflow-wrap:anywhere;line-height:1.6}
.ai-coach-message>.study-text{margin-top:8px}
.study-text .teaching-table-scroll{max-width:100%;margin-block:10px}

.coach-lesson-context{display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem .75rem}

@media(max-width:480px){.ai-coach-session .ai-prompt-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ai-coach-session .ai-prompt-chips>button{min-width:0;width:100%;min-height:44px;padding:8px;line-height:1.35;text-align:center}}

.coach-lesson-video>.lesson-video-text{max-width:960px}

.video-playback-recovery{margin-block:12px;overflow-wrap:anywhere}

/* Compact question reviews reserve the close-button space on the first row only. */
@media(max-width:640px){
 .question-practice-dialog[data-review-density="compact"]{width:calc(100% - 16px);max-width:calc(100% - 16px);padding-inline:12px}
 .question-practice-dialog[data-review-density="compact"] .question-practice-controls{padding-block:8px;padding-inline-end:0;gap:4px 8px;justify-content:flex-start}
 .question-practice-dialog[data-review-density="compact"] .question-practice-controls>strong{flex:1 0 100%;min-width:0;overflow-wrap:anywhere}
 .question-practice-dialog[data-review-density="compact"] .question-practice-controls>[data-question-clock]{margin-inline-start:auto;margin-inline-end:56px;min-height:44px;display:flex;align-items:center}
 .question-practice-dialog[data-review-density="compact"] .question-practice-controls>span:first-child{min-width:0;flex:1 1 auto}
 .question-practice-dialog[data-review-density="compact"] .question-practice-controls:not(:has(>[data-question-clock]))>strong{flex-basis:100%;padding-inline-end:56px;min-height:44px;box-sizing:border-box;align-content:center}
 .question-practice-dialog[data-review-density="compact"] .question-practice-controls>.review-density-inline{flex:0 0 auto}
 .question-practice-dialog[data-review-density="compact"] .question-practice-controls>.review-density-inline .appearance-segments span{padding-inline:8px}
 .question-practice-dialog[data-review-density="compact"] .question-practice-controls>.question-view-options{margin-inline-start:auto}
}

/* Image reviews reuse the existing size controls; only the image scrolls sideways. */
.question-image-size{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-block:12px}
.question-image-size .review-zoom button,.question-image-size>[data-question-image-fit]{width:auto;min-width:44px;min-height:44px;height:44px}
.quick-review-image-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.quick-review-image-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.question-practice-dialog .quick-review-image-scroll img{width:100%;max-width:none;height:auto}
.question-practice-controls>.question-view-options[data-recall-options][open]{flex-basis:auto}

/* Inline literals retain the surrounding teaching-text size and can wrap. */
.study-text code,.ai-answer code{font-family:monospace,monospace;font-size:1em;overflow-wrap:anywhere}

.action-ideas a.action-idea{display:inline-flex;align-items:center;text-decoration:none}.action-ideas a.action-idea:hover{text-decoration:underline}

/* Selected coaching timing uses the same saved event projection as its answer. */
.coach-selected-visits{margin-block:1rem}
.coach-selected-visits table{font-size:.9rem}
.coach-visit-time{min-width:7rem}
.coach-visit-time .ai-coach-time-track{margin-top:.25rem}
.coach-visit-time .ai-coach-time-track>span{background:var(--accent)}

.problem-recovery{margin:.5rem 0 1rem;padding:.75rem;border-inline-start:3px solid var(--accent);background:var(--sky-100);color:var(--ink);border-radius:.35rem}.problem-recovery p{margin:0 0 .45rem}.problem-recovery-links{display:flex;flex-wrap:wrap;gap:.5rem 1rem}.problem-recovery-links a{color:inherit;font-weight:650;text-decoration:underline;text-underline-offset:.18em}.problem-recovery-links a:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* Native multi-reason review controls use standard labeled checkboxes. */
.miss-reason-panel fieldset{border:0;padding:0;margin:0;min-width:0}.miss-reason-panel legend{font-size:.76rem;font-weight:700;color:var(--ink);padding:0;margin-bottom:6px}.miss-reason-panel fieldset>div{display:grid;gap:5px}.miss-reason-panel .miss-reason-option{display:flex;gap:9px;align-items:flex-start;cursor:pointer}.miss-reason-option input{flex:none;margin:2px 0 0;accent-color:var(--sky-600,#307d9c)}.miss-reason-option:has(input:checked){border-color:var(--sky-500);background:var(--sky-100)}
.dashboard-coach-actions{flex-wrap:wrap}.dashboard-coach-actions>.coach-followup-status{flex:1 1 100%;margin:0}.dashboard-coach-actions>[aria-busy=true]{cursor:progress}

/* Coaching actions share the form-start alignment across sample and own Insights. */
.dashboard-coach-actions,#dashboard-coach-form>div:not(.coach-question-suggestions){justify-content:flex-start}
.dashboard-coach-card [tabindex="-1"]{scroll-margin-top:96px}

/* The same metric bars used elsewhere in Insights, with space for outcome labels. */
.answer-change-chart{margin:20px 0 0}.answer-change-chart figcaption{font-weight:700}.answer-change-chart .metric-row{grid-template-columns:minmax(125px,1fr) minmax(90px,2fr) 38px 48px}.answer-change-chart .metric-rows{margin-top:12px}.dashboard-bar.red{background:var(--red-600)}
@media(max-width:460px){.answer-change-chart .metric-row{grid-template-columns:minmax(110px,1fr) minmax(55px,1fr) 30px}.answer-change-chart .metric-row small{display:none}}

.recall-study-time{margin:8px 0;padding:10px 14px;border:1px solid var(--line);border-radius:10px;font-size:14px}.recall-study-time>label{display:flex;gap:8px;align-items:flex-start;margin-top:10px}.recall-study-time p{margin:8px 0;overflow-wrap:anywhere}.recall-study-time small{display:block;max-width:80ch;color:var(--muted)}

.recall-study-timebox{margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:8px;min-width:0}.recall-study-timebox>label{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.recall-study-timebox input{width:5em;max-width:100%}.recall-study-timebox>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.recall-study-timebox [data-study-timebox-notice]:not(:empty){font-weight:700}
.recall-study-timebox [hidden]{display:none!important}

.recall-study-history{display:grid;gap:5px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:.78rem;overflow-wrap:anywhere}.recall-study-history b{font-size:.8rem}.recall-study-history small{font-size:.72rem}.recall-study-share{display:flex;height:8px;border-radius:5px;overflow:hidden;background:var(--line)}.recall-study-share>span:first-child{background:var(--sky-600,#0878a9)}.recall-study-share>span:last-child{background:var(--teal-600,#168477)}

.recall-study-time [data-study-summary-clock]{font-weight:700;overflow-wrap:anywhere}

.review-sheet-scope-summary { margin:1rem 0 .5rem; padding:.6rem 0; font-size:.92rem; line-height:1.5; color:var(--ink); font-weight:600; overflow-wrap:anywhere; }
@media print {
 html:has(.review-sheet-shell),body:has(.review-sheet-shell) { background:#fff !important; color:#111 !important; min-height:0 !important; height:auto !important; }
 body:has(.review-sheet-shell) { display:block; }
 body:has(.review-sheet-shell) .site-content,.review-sheet-shell { min-height:0; height:auto; background:#fff; }
 body:has(.review-sheet-shell) > aside,body:has(.review-sheet-shell) .site-navigation,body:has(.review-sheet-shell) .site-footer,body:has(.review-sheet-shell) #action-assistant-shell { display:none !important; }
 .review-sheet-shell { --ink:#111; --muted:#444; --panel:#fff; --panel-soft:#fff; color:#111; background:#fff; }
 .review-sheet-scope-summary { border-bottom:1px solid #aaa; color:#111; break-inside:avoid; }
}

[data-question-family]{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:12px}[data-question-family] ul{display:grid;gap:12px;max-height:360px;overflow:auto;padding-left:20px}[data-question-family] summary{cursor:pointer;font-weight:700}

/* First-choice timing layers preserve existing outcome colors and marked stripes. */
.journey-after-choice { position:absolute; top:0; left:0; width:100%; background:rgba(0,0,0,.34); border-top:1px solid rgba(255,255,255,.8); pointer-events:none; }
.journey-first-choice { position:absolute; left:50%; width:7px; height:7px; border:2px solid #fff; border-radius:50%; background:#142c3b; transform:translate(-50%,50%); box-shadow:0 0 0 1px #142c3b; pointer-events:none; z-index:1; }

/* Medical simulation reuses the existing top-navigation/left-list/footer-timer profile. */
.active-practice.exam-profile-usmle .exam-header-main{min-height:48px;padding:4px 12px;gap:8px}
.active-practice.exam-profile-usmle .exam-item-label,.active-practice.exam-profile-usmle .timer-label{display:none}
.active-practice.exam-profile-usmle .exam-reference-tools{position:absolute;right:8px;top:2px;padding:0;display:flex;gap:4px}
.active-practice .exam-icon-tools button{min-width:44px;min-height:44px;padding:6px;font-size:1.25rem;color:white;background:transparent}
.active-practice.exam-profile-usmle .question-tools{min-height:0;padding:4px 12px;gap:0}
.active-practice.exam-profile-usmle .question-status-row:has(>.sr-only:only-child){display:none}
.active-practice.exam-profile-usmle .navigator-toggle{display:none}
.active-practice.exam-profile-usmle .question-scroll{padding-top:6px}
.active-practice.exam-profile-usmle .native-question-content{padding-top:6px}
.active-practice.exam-profile-usmle .exam-progress{height:3px}
@media(max-width:1000px){.active-practice.exam-profile-usmle .exam-header-main{padding-right:200px}.active-practice.exam-profile-usmle .exam-header>.exam-reference-tools{position:absolute;padding:0;top:2px}.active-practice.exam-profile-usmle .navigator{top:52px}}
@media(max-width:640px){.active-practice.exam-profile-usmle .exam-header-main{padding-right:8px;min-height:48px}.active-practice.exam-profile-usmle .exam-header>.exam-reference-tools{position:static;justify-content:flex-end}.active-practice.exam-profile-usmle .navigator{top:96px}.active-practice.exam-profile-usmle .question-tools button{min-height:44px}}

.active-practice .exam-icon-tools button{display:inline-flex;align-items:center;justify-content:center}.active-practice .exam-icon-tools svg{display:block;pointer-events:none}

:is(.exam-profile-usmle,.medical-study-content){--medical-reading-width:1060px;--medical-choice-width:850px}
/* Shared medical reading surface; Recall/review keep their own feedback and timing controls. */
.medical-study-content .native-question-content{display:block;width:100%;max-width:var(--medical-reading-width);box-sizing:border-box;margin-inline:auto;padding:8px 12px;font-size:calc(1rem * var(--native-question-scale,1));font-family:Arial,sans-serif}
.medical-study-content .native-question-stem,.medical-study-content .recall-stem-card .native-question-stem{font-family:Arial,sans-serif;font-size:calc(1rem * var(--native-question-scale,1));font-weight:400;line-height:1.5;max-width:var(--medical-reading-width);margin-inline:auto}
.medical-study-content .native-question-number{display:none}
.medical-study-content .native-choice-list{width:100%;max-width:var(--medical-choice-width);margin-top:22px;box-sizing:border-box}
.medical-study-content .native-choice-row{font-family:Arial,sans-serif;font-weight:400;line-height:1.5;border-radius:0;padding:8px 6px;min-height:44px;grid-template-columns:20px 22px minmax(0,1fr);gap:5px}
.medical-study-content .native-choice-row>strong{font-weight:400}
.medical-study-content .recall-stem-card .native-question-stage{max-width:var(--medical-reading-width);margin-inline:auto;padding:8px 12px;box-sizing:border-box}
.medical-study-content .review-question-head{padding-block:6px}
.medical-study-content .question-practice-controls{padding-block:6px;gap:8px}
@media(max-width:640px){.medical-study-content .native-question-content,.medical-study-content .recall-stem-card .native-question-stage{padding:8px 0}.medical-study-content .native-choice-row{padding:8px 2px}}

.medical-study-content .native-choice-row>input[type=radio]{position:static;width:20px;height:20px;margin:2px 0 0;transform:none;box-shadow:none}

/* Recall shares the practice reading frame, while retaining Recall actions and clocks. */
.medical-recall-shell{display:grid;grid-template-columns:84px minmax(0,1fr);gap:0;max-width:none;padding:0 0 76px}
.medical-recall-shell>.review-workspace{min-width:0;width:100%;align-content:start;margin:0;padding:0 12px}
.medical-recall-rail{position:sticky;top:0;align-self:start;max-height:calc(100dvh - 76px);overflow:auto;padding:8px 4px;background:var(--panel-soft);border-right:1px solid var(--line)}
.medical-recall-rail>strong{display:block;font-size:.7rem;padding:6px 2px}
.medical-recall-rail .qnav{aspect-ratio:auto;display:block;position:relative;width:100%;min-height:44px;border-radius:0;margin:0;border:0;border-bottom:1px solid var(--line);text-align:center;background:transparent;color:var(--ink)}
.medical-recall-rail .qnav:not(.answered)::before{content:'•';position:absolute;left:8px}
.medical-recall-rail .qnav.current{background:#294e73;color:white}
.medical-recall-shell .recall-control-bar{padding:6px 8px}
.medical-recall-shell .review-question-head{display:none}
.medical-recall-shell .medical-recall-footer{position:fixed;inset:auto 0 0;z-index:70;display:flex;align-items:center;gap:8px;margin:0;padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);min-height:58px;box-sizing:border-box}
.medical-recall-shell .medical-recall-footer .recall-navigation-position{margin-left:auto}
@media(max-width:640px){.medical-recall-shell{grid-template-columns:60px minmax(0,1fr)}.medical-recall-shell>.review-workspace{padding:0 6px}.medical-recall-footer .button{padding:8px 6px;font-size:.8rem}.medical-recall-rail>strong{font-size:.6rem}}

.medical-recall-shell>.question-practice-controls{grid-column:1/-1;min-width:0}.medical-recall-shell>.medical-recall-body{grid-column:2;min-width:0}.medical-recall-shell>.medical-recall-rail{grid-column:1}.medical-recall-shell .medical-recall-footer .button{min-height:44px}

.medical-recall-shell .medical-recall-footer .review-pace{margin:0 auto 0 0;font-size:.82rem}.medical-recall-shell .medical-recall-footer .review-pace small{display:block}.medical-recall-shell .recall-control-bar>.review-pass-strip{display:none}.medical-recall-shell .recall-reading-options>summary{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}.medical-recall-shell .recall-control-bar h1{font-size:.9rem;flex:1 1 120px}.medical-recall-shell .recall-control-bar .review-toolbar>p{margin:0}

/* Recall uses the same medical exam chrome; option popovers retain panel contrast. */
.medical-recall-shell :is(.recall-control-bar,.question-practice-controls,.medical-recall-footer){background:var(--exam-chrome);color:white;border-color:#7592ad;box-shadow:none}
.medical-recall-shell :is(.recall-control-bar,.question-practice-controls,.medical-recall-footer) :is(.button,.text-button,.window-close){color:white;background:transparent;border-color:#a4bad0}
.medical-recall-shell :is(.recall-control-bar,.question-practice-controls,.medical-recall-footer) :is(.button,.text-button,.window-close):is(:hover,:focus-visible){background:#ffffff20}
.medical-recall-shell .recall-control-bar .review-toolbar{min-height:44px;flex-wrap:nowrap;margin:0;gap:8px}
.medical-recall-shell .recall-control-bar .review-toolbar>p{display:none}
.medical-recall-shell .recall-control-bar h1{font-size:.88rem;font-weight:600;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;margin:0}
.medical-recall-shell .recall-options-panel{color:var(--ink);background:var(--panel)}
.medical-recall-shell .recall-options-panel :is(.button,.text-button,.window-close){color:var(--ink);background:var(--panel-soft);border-color:var(--line)}
.medical-recall-shell .medical-recall-footer :is(.review-pace,.review-pace strong,.review-pace small){color:inherit}

/* Closed modal stays closed; its footer belongs to the dialog, not the page. */
.question-practice-dialog.medical-recall-shell:not([open]){display:none}
.question-practice-dialog.medical-recall-shell[open]{display:grid;grid-template-rows:auto minmax(0,1fr);padding-bottom:0}
.question-practice-dialog.medical-recall-shell .medical-recall-footer{position:sticky;inset:auto;bottom:0;width:100%;margin-top:12px;flex-wrap:wrap}
.question-practice-dialog.medical-recall-shell .medical-recall-body{padding-bottom:0}

@media(max-width:640px){.medical-recall-shell:not(dialog){padding-bottom:150px}.medical-recall-shell .medical-recall-footer{flex-wrap:wrap;row-gap:6px}.medical-recall-shell .medical-recall-footer .review-pace{flex:1 1 130px}.medical-recall-shell .medical-recall-footer .review-pass-action{margin-inline-start:auto}}

/* Active saved medical-bank practice only; completed review stays unchanged. */
body:has(.shared-medical-active) :is(.site-navigation,.site-footer,.workspace-header,.workspace-navigation){display:none!important}
.shared-medical-active{--exam-chrome:#294e73;display:grid;grid-template-columns:64px minmax(0,1fr);gap:0;max-width:none;margin:0;padding:0 12px 88px 0;min-height:100dvh}
.shared-medical-active>*{grid-column:2;min-width:0}
.shared-medical-active .shared-medical-header{grid-column:1/-1;display:flex;align-items:center;gap:16px;min-height:52px;padding:4px 16px;background:var(--exam-chrome);color:white;position:sticky;top:0;z-index:30}
.shared-medical-settings{margin-left:auto;position:relative}.shared-medical-settings>summary{display:grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer;font-size:24px}.shared-medical-settings>div{position:absolute;right:0;top:100%;width:min(440px,calc(100vw - 32px));max-height:70dvh;overflow:auto;padding:16px;border:1px solid var(--line);background:var(--panel);color:var(--ink);box-shadow:0 8px 30px #0004}
.shared-medical-active .shared-medical-rail{grid-column:1;grid-row:2/span 99;display:flex;flex-direction:column;align-items:stretch;align-self:start;position:sticky;top:56px;max-height:calc(100dvh - 140px);overflow:auto;gap:2px;padding:4px}
.shared-medical-rail .button{min-width:44px;min-height:44px;padding:6px;font-size:14px}
.shared-medical-active .shared-medical-extra-actions{display:none}.shared-medical-active .shared-runner-note{font-size:12px}.shared-medical-active .bank-question-review-status{font-size:11px;line-height:1.3;margin:4px 0;color:var(--muted)}.shared-medical-active .native-question-content{padding-top:6px}.shared-medical-active .shared-source-details{font-size:12px}
.shared-medical-active .shared-medical-footer{position:fixed;inset:auto 0 0;z-index:31;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:62px;padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom));background:var(--exam-chrome);color:white}.shared-medical-footer>[data-shared-time]{margin:0 auto 0 0}.shared-medical-footer .button{min-height:44px;background:white;color:#173651;border-color:#bccbd9}.shared-medical-footer .button-primary{font-weight:700}
@media(max-width:520px){.shared-medical-active{grid-template-columns:50px minmax(0,1fr);padding-right:8px}.shared-medical-active .shared-medical-header{gap:8px;padding-inline:8px}.shared-medical-mark{font-size:13px}.shared-medical-footer{flex-wrap:wrap}.shared-medical-footer>[data-shared-time]{font-size:12px;max-width:34%}.shared-medical-footer .button{padding:8px;font-size:13px}}

html .site-content .shared-medical-active .shared-medical-header h1{margin:0;font-size:16px;line-height:1.2;color:inherit;letter-spacing:normal}.shared-medical-active .shared-question-grid{margin:0}.shared-medical-active .shared-medical-extra-actions{display:none!important}

body:has(.shared-medical-active) .site-content{max-width:none;width:100%;padding:0;margin:0}

/* Keep exam navigation clear of global floating launchers. */
body:has(.shared-medical-active[data-exam-focus-session]) #action-launch,
body:has(.shared-medical-active) .site-feedback-launcher{display:none!important}
.shared-medical-rail .button{box-sizing:border-box;width:44px;min-width:44px;flex-shrink:0}
@media(max-width:520px){.shared-medical-active .shared-medical-rail{padding-inline:3px}}

.shared-medical-active .shared-medical-mark{display:inline-flex;align-items:center;gap:8px;min-height:44px;min-width:44px;cursor:pointer}.shared-medical-active .shared-medical-mark input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:0}

/* Review controls remain comfortably tappable in either reading density. */
.review-shell #original-back,
.review-shell #review-back,
.original-review [data-original-question],
.review-shell .explanation-mode-toggle > button,
.review-shell .review-highlight-layers > .button,
.original-review #original-previous,
.original-review #original-next {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
}
.original-review [data-original-question] {
  flex: 0 0 auto;
}
.review-shell :is(#original-back, #review-back) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Insights controls: preserve wrapping while keeping a consistent touch target. */
.section-visibility-controls .button,
.pace-target-controls .pace-apply,
.pace-card-content > .pace-apply {
  min-height:44px;
  min-width:44px;
  box-sizing:border-box;
}

/* Setup choices: the whole checkbox label is a usable touch target. */
.practice-setup .practice-aid-options > label,
.practice-setup .blind-setup > label:has(input[type="checkbox"]) {
  min-height:44px;
  box-sizing:border-box;
  cursor:pointer;
}

/* Active shared practice: quiet chrome and bounded reading area. */
.shared-medical-active .shared-question{width:100%;max-width:900px;box-sizing:border-box;margin:12px auto;padding:12px 16px;border:0;border-radius:0;background:transparent}
.shared-medical-active .shared-question .native-question-content{max-width:var(--medical-reading-width,78ch);padding:8px 0}
.shared-medical-active .shared-source-details{margin-top:20px;padding:0;border:0;background:transparent;font-size:.85rem}
.shared-medical-active .shared-source-details>summary{display:list-item;min-height:44px;align-content:center;cursor:pointer;color:var(--muted)}
.shared-medical-active .question-concern-report{margin:8px 0;padding:8px 0;border:0;background:transparent;font-size:.85rem}
.shared-medical-active .question-concern-report>summary{min-height:44px;align-content:center;cursor:pointer}
.shared-runner.shared-paused{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;min-height:70dvh;max-width:none;margin:0;padding:24px;box-sizing:border-box}
.shared-runner.shared-paused>.shared-pause-panel{grid-column:1;width:min(100%,420px);padding:24px;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-align:center}
html .site-content .shared-runner.shared-paused .shared-pause-panel h1{font-size:1.25rem;line-height:1.3;letter-spacing:normal;margin:0 0 8px}
.shared-pause-panel p{font-size:.9rem;margin:8px 0 16px}.shared-pause-panel .shared-status{font-size:.8rem;margin-bottom:0}
@media(max-width:520px){.shared-medical-active .shared-question{padding:8px 4px;margin-block:8px}.shared-runner.shared-paused{padding:16px}.shared-runner.shared-paused>.shared-pause-panel{padding:20px}}

/* Bank saving belongs to the common exam layout, including its pause dialog. */
.assigned-practice-status.bank-session-status{position:static;z-index:auto;min-height:0;padding:8px 12px;color:var(--ink,#17232d);background:var(--panel,#fff);box-shadow:none;font-size:13px;line-height:1.5}
.assigned-practice-status.bank-session-status>span{min-width:0}
.pause-card .bank-session-status{margin-top:12px;text-align:left}

/* Completed bank review: background details remain available without leading the question. */
.shared-runner[data-shared-completed] :is(.shared-review-provenance,.shared-result-context){margin:12px 0;color:var(--muted);font-size:.875rem}
.shared-runner[data-shared-completed] :is(.shared-review-provenance,.shared-result-context)>summary{min-height:44px;align-content:center;cursor:pointer;overflow-wrap:anywhere}

.attempt-journey .journey-calculation-details>summary{min-height:44px;align-content:center;cursor:pointer;overflow-wrap:anywhere}

/* Canonical Ask resource metadata wraps within the existing conversation. */
.action-message [data-agent-resource] { max-width:100%; white-space:normal; text-align:left; overflow-wrap:anywhere; }
.action-resource-detail { display:block; color:var(--muted); font-size:.85em; line-height:1.4; }

.action-dialog .action-recovery-links{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:12px 0 0;padding:0}.action-dialog .action-recovery-links li{max-width:100%;margin:0}.action-dialog .action-recovery-links a{white-space:normal}

/* Ella can get out of the learner’s way without ending a chosen voice session. */
.action-dialog .action-minimize{min-width:36px;width:36px;min-height:40px;border:0;border-radius:9px;background:transparent;color:var(--ink);font-size:1.35rem;line-height:1;cursor:pointer}
.action-dialog .action-minimize:hover,.action-dialog .action-minimize:focus-visible{background:var(--panel-soft)}
.action-dialog .action-minimized-tools{display:flex;align-items:center;gap:8px;max-width:100%;font-size:.76rem;color:var(--muted)}
.action-dialog .action-minimized-tools button{min-height:40px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft);color:var(--ink);font:inherit;cursor:pointer}
.action-dialog.action-minimized{width:min(380px,calc(100% - 24px));height:auto;min-height:0;max-height:none;overflow:visible}
.action-dialog.action-minimized #action-form{height:auto;min-height:0;flex:0 0 auto}
.action-dialog.action-minimized .action-head{padding:8px 10px;align-items:center;gap:0}
.action-dialog.action-minimized #action-move,.action-dialog.action-minimized .action-window-tools,.action-dialog.action-minimized #action-form>.action-intro,.action-dialog.action-minimized #action-form>.action-memory-choice,.action-dialog.action-minimized #action-form>.action-chat-tools,.action-dialog.action-minimized #action-form>.action-conversation,.action-dialog.action-minimized #action-form>.action-composer{display:none!important}
.action-dialog.action-minimized .action-minimized-tools{display:flex!important;flex:1;justify-content:flex-end;flex-wrap:wrap}
.action-dialog .action-memory-choice{margin:6px 20px 12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);font-size:.78rem;line-height:1.5}
.action-dialog .action-memory-choice p{margin:0 0 9px}
.action-dialog .action-memory-choice .button{min-height:40px;margin:0 8px 6px 0;font-size:.76rem}
.action-dialog #action-memory-status{margin:4px 0 0;color:var(--muted);font-size:.72rem}
.action-dialog .action-memory-choice [disabled]{opacity:.65;cursor:wait}

/* A quiet start: the set, mode and timing lead; optional detail stays nearby. */
.practice-start-grid{max-width:1000px;margin:0 auto;grid-template-columns:minmax(0,1fr)}
.practice-start-grid.has-history{max-width:none;grid-template-columns:minmax(0,1.5fr) minmax(260px,.65fr)}
.practice-start-grid .start-heading{background:var(--panel);color:var(--ink);padding:28px 30px 0}
.practice-start-grid .start-heading h1{font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.2;letter-spacing:-.025em}
.practice-start-grid .start-heading .start-summary{color:var(--muted);font-size:.95rem;line-height:1.5;margin:10px 0 0}
.practice-start-grid .start-body{padding:20px 30px 28px}
.practice-start-grid .practice-setup{margin:0 0 18px}
.practice-mode-options>label:has(input:checked){border-color:var(--sky-500,#1596c4);background:var(--panel-soft)}
.practice-mode-options>label:focus-within{outline:2px solid var(--sky-500,#1596c4);outline-offset:3px}
.practice-start-grid .practice-mode-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.practice-start-grid .practice-mode-options>label{min-width:0;padding:14px;line-height:1.4}
.practice-start-grid .form-row{align-items:end;margin-top:20px;gap:12px;flex-wrap:wrap}
.practice-start-grid .form-row .field{min-width:min(100%,200px);flex:1}
.practice-start-grid #start-attempt{min-width:160px;min-height:46px}
.setup-review-options{margin:12px 0 18px;border-block:1px solid var(--line)}
.setup-review-options>summary,.practice-start-details>summary,.setup-help>summary{min-height:44px;align-content:center;cursor:pointer;line-height:1.4}
.setup-review-options>summary{font-weight:650}
.setup-review-options .blind-setup{margin:0 0 14px;padding:14px;border:0}
.setup-review-options .blind-setup>label{min-height:44px}
.setup-review-options .blind-setup p{font-size:.9rem;line-height:1.5;margin:8px 0 12px}
.blind-limit-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.blind-limit-row>label{font-size:.9rem;font-weight:650}
.attempt-stepper{display:inline-flex;align-items:center;gap:6px}
.attempt-stepper .button{min-width:44px;min-height:44px;font-size:1.2rem}
.attempt-stepper input{box-sizing:border-box;width:64px;min-height:44px;padding:8px;text-align:center;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;appearance:textfield;-moz-appearance:textfield}
.attempt-stepper input::-webkit-inner-spin-button,.attempt-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
.attempt-stepper :disabled{opacity:.5;cursor:default}
.practice-start-details{margin-top:20px;border-top:1px solid var(--line);font-size:.875rem;color:var(--muted)}
.practice-start-details p,.setup-help p{line-height:1.55;margin:8px 0 12px}
.practice-start-details .utility-row{margin-top:12px;flex-wrap:wrap}
.setup-help{font-size:.875rem;color:var(--muted)}
.start-key-notice{padding:12px;border-left:3px solid var(--sky-500,#1596c4);background:var(--panel-soft);line-height:1.5;margin:0 0 18px}
html[data-review-density="compact"] .practice-start-grid .start-heading{padding:16px 16px 0}
html[data-review-density="compact"] .practice-start-grid .start-body{padding:14px 16px 18px}
@media(max-width:930px){.practice-start-grid.has-history{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.practice-start-grid .start-heading{padding:20px 18px 0}.practice-start-grid .start-body{padding:16px 18px 22px}.practice-start-grid .practice-mode-options{grid-template-columns:minmax(0,1fr)}.practice-start-grid .form-row{align-items:stretch}.practice-start-grid .form-row .field,.practice-start-grid #start-attempt{width:100%}.blind-limit-row{gap:10px}.attempt-stepper{flex-shrink:0}}

/* Upgrade shortcut details stay visible on touch devices and use only verified offers. */
.action-ideas a.action-idea.action-upgrade-idea{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
.action-upgrade-idea>strong{font:inherit;font-weight:650}
.action-upgrade-hint{display:grid;gap:2px;font-size:.75rem;line-height:1.4;color:var(--muted);max-width:100%;overflow-wrap:anywhere}
.action-upgrade-hint [data-upgrade-price]{font-weight:650;color:var(--ink)}
.action-upgrade-hint [hidden]{display:none}

/* Keep pass context while mobile chart bars retain usable space. */
.journey-mobile-summary{display:none}
@media(max-width:600px){
 .attempt-journey .journey-table th:first-child{width:96px;padding:6px;font-size:.74rem}
 .attempt-journey .journey-compact .journey-table th:first-child{width:72px}
 .journey-row-extra{display:none}
 .journey-mobile-summary{display:block}
 .journey-mobile-summary summary{min-height:44px;line-height:44px;cursor:pointer;font-weight:600;font-size:.73rem}
 .journey-mobile-summary small{overflow-wrap:anywhere}
 .journey-mobile-summary summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
}

/* Completed review examples: optional learner evidence, without changing bank selection. */
.bank-review-filter-pair{display:inline-flex;align-items:center;gap:4px}.bank-review-info-wrap{position:relative;display:inline-flex}.bank-review-info{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;font-size:1.1rem;cursor:pointer}.bank-review-info-help{display:none;position:absolute;z-index:5;top:100%;right:0;width:240px;max-width:70vw;padding:10px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 16px #0002}.bank-review-info-wrap:hover .bank-review-info-help,.bank-review-info-wrap:focus-within .bank-review-info-help{display:block}.bank-review-info:focus-visible{outline:2px solid currentColor;outline-offset:2px}.completed-review-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:20px}.completed-review-dialog::backdrop{background:#0007}.completed-review-dialog-head,.completed-review-page-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.completed-review-dialog-head h2{margin:0}.completed-review-dialog .button{min-height:44px;white-space:normal}.completed-review-dialog p,.completed-review-dialog li,.completed-review-dialog h3{overflow-wrap:anywhere}.completed-review-example-list{padding-left:24px}.completed-review-example-list li{margin:10px 0}.completed-review-example-card{padding:16px;margin:16px 0}.completed-review-example-stem{white-space:pre-wrap}.completed-review-dialog :focus-visible{outline:2px solid currentColor;outline-offset:3px}@media(max-width:520px){.completed-review-dialog{padding:16px}.bank-review-filter-pair{max-width:100%}}

.bank-review-info-wrap[data-review-help-dismissed] .bank-review-info-help{display:none}

/* Independent native navigator states: left unanswered dot, right flag/note. */
.exam-profile-usmle .qnav[data-native-status]{padding:3px 21px 3px 8px;font-variant-numeric:tabular-nums}
.exam-profile-usmle .question-grid .qnav[data-native-status]::before,.exam-profile-usmle .question-grid .qnav[data-native-status]::after{content:none}
.exam-nav-unanswered{position:absolute;left:1px;top:50%;transform:translateY(-50%);width:6px;text-align:center}
.exam-nav-icons{position:absolute;right:1px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:flex-end;gap:1px;width:20px;pointer-events:none}
.exam-nav-icons svg{width:9px;height:12px;flex:none}
.exam-nav-pencil{color:currentColor}

.exam-nav-number{white-space:nowrap}
.exam-nav-number-three{font-size:.7rem}
.exam-nav-number-four{font-size:.625rem;letter-spacing:-.06em}

/* Review guidance is an inline optional disclosure; native keyboard state stays intact. */
.bank-ai-history-head{position:relative;display:flex;align-items:center;gap:6px;margin-bottom:6px}
.bank-reviews-help{display:inline-block;margin:0;font-weight:400}
.bank-reviews-help>summary{display:inline-flex;align-items:center;justify-content:center;min-height:24px;min-width:24px;width:auto;padding:0 2px;background:transparent;border:0;border-radius:0;color:var(--muted);font-size:15px;font-weight:400;line-height:1.3;cursor:pointer;list-style:none}
.bank-reviews-help>summary::-webkit-details-marker{display:none}
.bank-reviews-help>summary::before,.bank-reviews-help>summary::after{content:none}
.bank-reviews-help>summary:hover{background:transparent;color:var(--ink)}
.bank-reviews-help[open]>.bank-review-help-body{position:absolute;z-index:5;top:100%;left:0;right:0;max-width:48ch;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 18px #0002;font-size:14px;line-height:1.55;font-weight:400}
.bank-review-help-body p{margin:0 0 10px}.bank-review-help-body p:last-child{margin-bottom:0}

/* Count-only Recall tile stays in layout; its navigation is an explicit bubble action. */
.practice-recall-shortcut{position:relative;display:block;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent}
.practice-recall-shortcut>.memory-stack{width:48px;min-width:48px;height:44px;min-height:44px;display:grid;place-items:center;padding:4px;border-radius:7px;text-align:center;gap:0}
.practice-recall-shortcut>.memory-stack>strong{font-size:20px;line-height:1;font-weight:800}
.practice-recall-bubble{position:fixed;inset:auto;width:220px;max-width:calc(100vw - 16px);margin:0;padding:12px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:9px;box-shadow:0 5px 18px #0002;font-size:13px;z-index:10}
.practice-recall-bubble>strong{display:block;margin-bottom:8px;font-size:13px}.practice-recall-bubble>a{display:inline-flex;align-items:center;min-height:32px;color:var(--ink);text-decoration:underline}
.practice-recall-bubble[data-fallback-open="false"]{display:none}
@media(max-width:480px){.practice-recall-shortcut{margin:8px 0;width:fit-content}}

.bank-option-count{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}

/* Keep the useful source summary in a stable row while allowing larger text to wrap. */
.bank-source-disclosure>summary .bank-steady-summary{display:block;box-sizing:border-box;min-height:max(22px,1.833em);line-height:1.6;padding-top:1px;margin:0;color:var(--muted);font-size:.75rem;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:480px){.bank-source-disclosure>summary .bank-steady-summary{min-height:max(42px,3.5em);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:anywhere}}

.bank-review-help-body .bank-review-info-wrap{display:block;max-width:100%}
.bank-review-help-body .bank-review-info{max-width:100%;font-size:14px;white-space:normal;justify-content:flex-start;text-align:left;padding:6px 0}

/* Learner review selection controls */
.bank-source-dependent{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px!important}.bank-source-dependent>#bank-learner-answer{grid-column:auto!important}.bank-radio-options{display:flex!important;flex-direction:column;align-items:stretch!important;gap:2px!important;margin-top:10px}.bank-review-radio{display:flex!important;align-items:flex-start;gap:7px;min-height:34px;width:100%;padding:6px 0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;font-size:13px!important}.bank-review-radio input{flex:0 0 auto;margin:3px 0 0;accent-color:var(--accent,#286481)}.bank-review-radio>span{flex:1;white-space:normal!important}.bank-review-radio>small{margin-left:auto;min-width:16px;text-align:right;font-size:12px;font-weight:400;color:var(--muted)}.bank-review-radio:has(input:checked)>span{font-weight:600}.bank-private-inventory-note{font-size:12px;color:var(--muted);margin:10px 0 0}.bank-ai-history .bank-ai-selection-note{font-size:12px;max-width:32ch} @media(max-width:850px){.bank-source-dependent{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-source-dependent>#bank-learner-answer{grid-column:auto!important}.bank-source-dependent>.bank-ai-history{grid-column:1/-1}} @media(max-width:550px){.bank-source-dependent{grid-template-columns:minmax(0,1fr)}.bank-source-dependent>#bank-learner-answer{grid-column:auto!important}.bank-source-dependent>.bank-ai-history{grid-column:auto}}
.bank-selection-review-status{margin-top:18px;padding:18px}.bank-selection-review-status ul{list-style:none;padding:0}.bank-selection-review-status li{padding:12px 0;border-top:1px solid var(--line)}.bank-selection-review-label,.question-review-badge{display:inline-block;margin:0 8px 6px 0;padding:3px 8px;border:1px solid var(--line);border-radius:6px;font-size:12px;color:var(--muted)}.bank-selection-review-status p{margin:5px 0}.bank-ai-selection-note{font-size:12px;color:var(--muted);margin:12px 0}.question-review-status{margin:0 0 10px;line-height:1.4}

/* Compact aligned review controls; essential explanation stays in the info popup. */
.bank-source-dependent{gap:16px!important;align-items:start}
@media(min-width:851px){.bank-source-dependent>#bank-quality{grid-column:3}}
.bank-source-dependent>fieldset{min-width:0;margin:0!important;padding:0!important;border:0!important}
.bank-source-controls .bank-ai-history-head{min-height:26px;margin:0!important;gap:4px;align-items:center}
.bank-source-controls .bank-ai-history-head>strong{font-size:14px;line-height:1.4;font-weight:600}
.bank-source-controls .bank-reviews-help>summary{min-width:24px;min-height:24px;font-size:14px}
.bank-source-controls .bank-review-filter-pair{display:block;width:100%}
.bank-source-controls .bank-radio-options{margin-top:4px;gap:0!important}
.bank-source-controls .bank-review-radio{box-sizing:border-box;min-height:32px!important;padding:5px 0!important;gap:7px;align-items:center;font-size:14px!important;line-height:1.35}
.bank-source-controls .bank-review-radio input{width:14px;height:14px!important;min-width:14px;min-height:14px!important;padding:0;margin:0;flex:none}
.bank-source-controls .bank-review-radio>span{min-width:0;flex:0 1 auto}
.bank-source-controls .bank-review-radio>small{margin-left:0;min-width:0;flex:none;text-align:left;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.4}
.bank-source-controls .bank-ai-provider-filter{display:flex!important;box-sizing:border-box;align-items:center;gap:7px;min-height:32px!important;margin:6px 0 0!important;padding:4px 0!important;border:0!important;background:none!important;font-size:14px!important;line-height:1.4;white-space:normal}
.bank-source-controls .bank-ai-provider-filter input{flex:none;width:14px;height:14px!important;min-width:14px;min-height:14px!important;padding:0;margin:0}
.bank-source-controls .bank-ai-provider-filter small{margin-left:0;font-size:11px;white-space:nowrap}
/* Inventory counts share one readable treatment throughout the chooser. */
:root :is(.bank-source-controls .bank-option-count,.bank-source-controls .bank-review-radio>small,.bank-source-controls .bank-ai-provider-filter small,.bank-selection .bank-filters strong,.bank-selection .bank-subject-row strong,.bank-selection .bank-topic-panel .bank-match-count,.bank-selection .bank-topic-panel h3 small){color:var(--muted);font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;background:transparent;padding:0;border-radius:0}
.bank-source-controls .bank-review-help-body{box-sizing:border-box;max-width:min(48ch,calc(100vw - 32px));overflow-wrap:anywhere}
@media(pointer:coarse){.bank-source-controls .bank-review-radio,.bank-source-controls .bank-ai-provider-filter{min-height:44px!important}.bank-source-controls .bank-reviews-help>summary{min-width:44px;min-height:44px!important}.bank-source-controls .bank-ai-history-head{min-height:44px!important}}




/* Keep each muted count beside its label across all review groups. */
.bank-source-controls .bank-review-radio{gap:6px!important}
.bank-source-controls .bank-review-radio>span{flex:0 1 auto;min-width:0}
.bank-source-controls .bank-review-radio>small{flex:0 0 auto;margin-left:0;min-width:0;text-align:left}
.bank-source-controls .bank-ai-provider-filter{gap:6px!important}
.bank-source-controls .bank-ai-provider-filter small{margin-left:0}


/* Consistent optional help: one paragraph rhythm, readable measure, no list indentation. */
.bank-company-review-row{position:relative;display:flex;align-items:center;gap:4px;min-width:0;margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.bank-source-controls .bank-company-review-row .bank-ai-provider-filter{margin:0!important;padding:0!important;border-top:0!important;width:auto!important;flex:0 1 auto;min-width:0}
.bank-company-review-row>.bank-reviews-help{flex:none}
.bank-reviews-help[open]>.bank-review-help-body{box-sizing:border-box;width:min(36ch,calc(100vw - 40px));max-width:calc(100vw - 40px);right:auto;padding:14px 16px;font-size:14px;line-height:1.5;text-align:left;white-space:normal;z-index:30;box-shadow:0 6px 20px #00000018}
.bank-review-help-body p{margin:0 0 10px!important;padding:0!important;text-indent:0!important}.bank-review-help-body p:last-child{margin-bottom:0!important}

/* AI history filters both sources; share the same controls outside the bank-only branch. */
.bank-source-controls .bank-ai-history{min-width:0;margin:0;padding:0;border:0}
.bank-source-controls .bank-ai-history>div:not(.bank-ai-history-head){display:block;max-width:32rem}
.bank-source-controls>#bank-refresh{align-self:start}

/* Saved sets have their own AI review choices, separate from bank-only facets. */
.bank-saved-branch{min-width:0}
.bank-source-controls .bank-saved-branch>.bank-ai-history{margin-top:6px;padding-inline-start:16px;border-inline-start:2px solid var(--line);max-width:34rem}

.action-dialog .action-resize {
 position:absolute;right:2px;bottom:2px;z-index:3;width:28px;height:28px;
 padding:0;border:0;border-radius:6px;background:var(--panel);color:var(--muted);
 cursor:nwse-resize;touch-action:none;font-size:17px;line-height:1;
}
.action-resize:focus-visible { outline:2px solid var(--accent);outline-offset:-3px; }
.action-dialog.action-fullscreen { border-radius:0; }
.action-dialog.action-fullscreen .action-resize,.action-dialog.action-minimized .action-resize { display:none; }
.action-dialog.action-minimized { width:min(380px,calc(100% - 24px))!important;height:auto!important; }

.reviewed-status-spinner{display:inline-block;width:.85em;height:.85em;margin-inline-end:.5em;border:.12em solid currentColor;border-inline-end-color:transparent;border-radius:50%}
@media (prefers-reduced-motion:no-preference){.reviewed-status-spinner{animation:reviewed-status-spin .9s linear infinite}}
@keyframes reviewed-status-spin{to{transform:rotate(360deg)}}



.stem-lab-panel { --lab-indent:clamp(.75em, 4vw, 2em); display:table; max-width:calc(100% - var(--lab-indent)); margin:.6em 0; margin-inline-start:var(--lab-indent); border-collapse:collapse; overflow-wrap:anywhere; }
.stem-lab-panel > [role=row] { display:table-row; }
.stem-lab-panel [role=rowheader], .stem-lab-panel [role=cell] { display:table-cell; padding:.16em .75em .16em 0; vertical-align:top; }
.stem-lab-panel [role=rowheader] { font-weight:600; }

.guided-exhibit .exhibit-guide-target { outline:2px solid currentColor; outline-offset:-2px; }

.builder-sharing-reminder {
  max-inline-size: min(30rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border-radius: 1rem;
  color: CanvasText;
  background: Canvas;
}
.builder-sharing-reminder h2 { margin-block-start: 0; }
.builder-sharing-reminder .button { margin: .25rem .35rem .25rem 0; }
.builder-sharing-reminder::backdrop { background: rgb(0 0 0 / .45); }
#learner-model-settings fieldset { margin-block: .75rem; }

/* A closed assistant must leave the learner workspace interactive at every width. */
#action-dialog:not([open]){display:none}

.library-workspace:has(#create-before-bank-loads) #bank-create-link { display: none; }

/* Share the available rail height between the list and its status controls. */
.active-practice.exam-profile-usmle .navigator {
  display:flex;
  flex-direction:column;
  max-height:calc(100dvh - var(--exam-rail-top, 74px) - 54px);
  overflow:auto;
}
.active-practice.exam-profile-usmle .navigator > :not(.question-grid) { flex:none }
.active-practice.exam-profile-usmle .question-grid {
  min-height:0;
  max-height:none;
  gap:0;
  grid-auto-rows:max-content;
}
.active-practice.exam-profile-usmle .question-grid .qnav {
  min-height:24px;
  line-height:1.15;
  padding-block:1px;
}
.active-practice.exam-profile-usmle .qnav[data-native-status] { padding-inline:0 }
.active-practice .exam-nav-unanswered { left:5px;width:8px;font-size:1.05rem }
.active-practice .exam-nav-icons { right:4px;width:auto;gap:1px }
.active-practice .exam-nav-icons svg { width:12px;height:15px }
@media(max-width:1000px){.active-practice.exam-profile-usmle .navigator{--exam-rail-top:52px}}
@media(max-width:640px){.active-practice.exam-profile-usmle .navigator{--exam-rail-top:96px}}
.active-practice.exam-profile-usmle .exam-layout.navigator-hidden .navigator {display:none}

.active-practice .mark-control .exam-mark-flag {
  width:17px;height:19px;vertical-align:middle;color:var(--muted);
}
.active-practice .mark-control input:checked + .exam-mark-flag,
.active-practice .exam-nav-icons .exam-mark-flag {color:#bd3333}
.active-practice .exam-nav-icons .exam-mark-flag {width:14px;height:16px}
.active-practice .qnav.current .exam-mark-flag {color:#ffb7af}
.active-practice .question-grid .qnav.marked:not([data-native-status])::after {
  width:10px;height:12px;top:3px;right:4px;background:currentColor;
  border-radius:0;box-shadow:none;transform:none;
  clip-path:polygon(0 0,100% 0,77% 30%,100% 60%,16% 60%,16% 100%,0 100%);
}
[data-theme="dark"] .active-practice .mark-control input:checked + .exam-mark-flag,[data-theme="dark"] .active-practice .exam-nav-icons .exam-mark-flag {color:#ffaaa1}
.study-set-dialog { width: min(39rem, 94vw); max-height: 86vh; overflow: auto; margin: auto; padding: 1.5rem; background: var(--surface,Canvas); color: var(--text,CanvasText); }
.study-set-dialog::backdrop { background: rgba(0,0,0,.55); }
.study-set-dialog .utility-row, .study-set-dialog audio, #study-this-set:not(:empty) { margin-block: .8rem; }
.study-set-dialog audio { max-width: 100%; }
.study-set-dialog figure { margin: 1.25rem 0; }
.study-set-dialog figcaption { font-weight: 650; margin-block-end: .55rem; }
.study-decision-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.study-decision-path li { position: relative; border: 1px solid currentColor; border-radius: .5rem; padding: .65rem .85rem; }
.study-decision-path li + li::before { content: ""; position: absolute; bottom: 100%; inset-inline-start: 1.25rem; height: 1.1rem; border-inline-start: 2px solid currentColor; }
.study-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.study-branches li:first-child { grid-column: 1 / -1; text-align: center; }
.study-branches li + li::before { inset-inline-start: 50%; }
@media (max-width: 26rem) {
  .study-branches { grid-template-columns: 1fr; }
  .study-branches li + li { margin-inline-start: 1rem; }
  .study-branches li + li::before { inset-inline-start: .5rem; }
}

#my-exam-review > summary { cursor: pointer; font-weight: 700; }
.exam-review-options { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1rem; }
.exam-review-options fieldset, .exam-review-options ol, .exam-review-options [role="status"] { flex-basis: 100%; }
.exam-review-options fieldset label { display: inline-flex; align-items: center; gap: .3rem; margin-right: 1rem; }
.exam-review-options input[type="number"] { width: 5rem; }
.exam-review-options li p { white-space: pre-line; overflow-wrap: anywhere; }

.question-number-lookup { width: 100%; max-width: 54rem; min-width: 0; justify-self: start; text-align: start; }
.question-number-entry { display: grid; justify-items: start; gap: .65rem; }
.question-number-entry label { font-weight: 700; }
.question-number-entry p { margin: 0; }
.question-number-entry textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 11.5rem; padding: .75rem; font: inherit; line-height: 1.45; resize: vertical; }
.question-number-selection { margin-block: 1rem; }
.question-number-actions, .question-number-selection-count { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-block: .75rem; }
.question-number-selection-count span { font-weight: 700; }
.question-number-results { padding-inline-start: 0; list-style: none; }
.question-number-results > li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-block: .55rem; }
@media (max-width: 40rem) {
  .question-number-results > li { align-items: flex-start; flex-direction: column; margin-block: 1.25rem; }
}

.bank-selection-review-status > summary { cursor: pointer; font-weight: 700; }
main:has(#my-saved-practice[hidden]) .saved-practice-jump { display: none; }

.saved-practice-copy { display:inline-flex; flex-direction:column; align-items:flex-start; min-width:0; max-width:100%; }
.saved-practice-copy > [role="status"]:not(:empty) { display:block; margin-top:.5rem; line-height:1.5; overflow-wrap:anywhere; }
.saved-practice-copy textarea { display:block; box-sizing:border-box; width:100%; margin-top:.4rem; }

[data-ella-practice-help]{position:relative;z-index:1;grid-column:1/-1;padding:.25rem .75rem;font-size:.85rem;background:var(--panel-soft);color:var(--text)}
[data-ella-practice-help] summary{cursor:pointer;width:fit-content}
[data-ella-practice-help] p{max-width:58ch;margin:.35rem 0}
[data-ella-practice-help]{color:var(--ink);font-size:.875rem;line-height:1.5;max-width:100%;box-sizing:border-box}
[data-ella-practice-help]>summary{min-height:44px;display:list-item;align-content:center;padding:.35rem 0}
[data-ella-practice-help]>div{padding:.5rem 0;max-width:44rem}
.ella-practice-choices{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}
.ella-practice-form{display:flex;flex-wrap:wrap;align-items:end;gap:.5rem;margin:.75rem 0}
.ella-practice-form label{display:grid;gap:.35rem;flex:1 1 16rem;min-width:0}
.ella-practice-form input{box-sizing:border-box;width:100%;min-height:44px;font-size:max(16px,1rem);color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:.5rem}
[data-ella-practice-help] button{min-height:44px;white-space:normal}
.ella-practice-reply:empty{display:none}
.shared-runner .library-link{color:var(--ink);border-color:var(--line);background:var(--panel);min-height:44px}
.ella-screenshot-tools{margin:.25rem 0;font-size:.875rem}
.ella-screenshot-tools>summary{cursor:pointer;min-height:44px;align-content:center}
#ella-screenshot-host{display:grid;gap:.5rem;max-height:35vh;overflow:auto;padding:.5rem 0}
#ella-screenshot-host>label{display:flex;align-items:center;gap:.5rem;min-height:44px}
#ella-screenshot-host>label input{flex:none;width:18px;height:18px}
#ella-screenshot-host p{font-size:.875rem;line-height:1.5;margin:.25rem 0}
#ella-screenshot-host button{min-height:44px}
.ella-message-screenshots{display:grid;gap:.75rem;margin-top:.5rem}
.ella-message-screenshots figure{margin:0;min-width:0}
.ella-message-screenshots img{display:block;width:auto;max-width:100%;max-height:260px;object-fit:contain;border:1px solid var(--line);border-radius:6px}
.ella-message-screenshots figcaption{font-size:.8rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere;margin-top:.25rem}
.journey-scroll:has(.journey-answer-change) .journey-table{table-layout:auto}
.journey-answer-change{position:absolute;left:50%;transform:translate(-50%,50%);display:inline-flex;gap:2px;pointer-events:none;z-index:2}
.journey-cue{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:34px;height:18px;padding:0 2px;font:700 12px/1 sans-serif;color:#fff;white-space:nowrap;border:1px solid white}
.journey-cue.cue-gain{background:#126444;border-radius:10px}
.journey-cue.cue-loss{background:#933329;border-radius:2px}
.journey-cue.cue-wrong{background:#754914;border-radius:2px 9px;border-style:dashed}
.journey-cue.cue-right{background:#194e70;border-radius:9px 2px}
.journey-cue.cue-unknown{background:#515968;border-radius:50%}
.journey-cue-legend{display:flex;flex-wrap:wrap;gap:6px 16px;padding:0;list-style:none}
.journey-cue-legend li{display:inline-flex;align-items:center;gap:5px}


practice-table-pages { display:block; }
practice-table-pages tr[hidden] { display:none; }

.study-guide-screen { width: min(42rem, calc(100% - 2rem)); max-height: 88dvh; overflow: auto; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); background: var(--panel, white); }
.study-guide-screen::backdrop { background: rgb(12 30 42 / 55%); }
.study-guide-screen > h2 { display: inline-block; margin: 0 0 1.2rem; }
.study-guide-screen > button { float: right; }
.study-guide-screen > section { clear: both; display: grid; gap: .65rem; }
.study-guide-screen textarea { width: 100%; }
.review-mode-price { display: block; margin-top: .25rem; font-weight: 650; }
