/* Comparison and staged cases share the trainer's compact visual language. */
.trainer-page.practice-page[data-trainer="quiz"] #app[data-screen="home"] {display:block}
.practice-hero {padding:6px 0 12px}
.practice-hero h1 {font-size:clamp(28px,3.5vw,36px);font-weight:720;line-height:1.15;letter-spacing:-.035em;margin:7px 0 10px}
.practice-hero>p:last-child {max-width:62ch;color:var(--ui-muted,#afc0d1);font-size:14px;line-height:1.55;margin:0}
.practice-tabs {display:flex;gap:4px;width:fit-content;max-width:100%;padding:4px;margin:16px 0;border:1px solid var(--ui-border,#304356);border-radius:14px;background:#111d29}
.practice-tabs button,.practice-confidence button {min-height:44px;padding:8px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ui-muted,#afc0d1);font:650 13px/1.4 var(--ui-font,system-ui,-apple-system,"Segoe UI",sans-serif);cursor:pointer}
.practice-tabs button[aria-pressed="true"] {background:#273d50;color:var(--ui-text,#eef4fa);box-shadow:0 1px 3px #0002}
.practice-intro {color:var(--ui-muted,#afc0d1);font-size:14px;line-height:1.55;max-width:75ch;margin:0 0 16px}
.practice-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.practice-card {display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:16px;border:1px solid var(--ui-border,#304356);border-radius:var(--ui-radius,14px);background:var(--ui-surface,#162331)}
.practice-card h2 {font-size:17px;font-weight:690;line-height:1.35;letter-spacing:-.015em;margin:0}
.practice-card p {font-size:13px;color:var(--ui-muted,#afc0d1);line-height:1.55;margin:0}
.practice-card .action {margin-top:auto;font-size:13px;min-height:44px}
.practice-card-head {display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;min-width:0}
.practice-card-head .eyebrow {margin:0;font-size:10px;line-height:1.5;letter-spacing:.065em}
.practice-card-head .small {flex-shrink:0;white-space:nowrap;font-size:12px}
.practice-trigger {border-left:2px solid #d8b574;padding-left:10px}
.practice-card .practice-history {font-size:12px;color:#b5c9da}
.practice-note {color:var(--ui-muted,#afc0d1);font-size:12px;line-height:1.55;margin:16px 0}
.practice-empty,.practice-confirm {border:1px solid var(--ui-border,#304356);border-radius:var(--ui-radius,14px);background:var(--ui-surface,#162331);padding:18px;margin:16px 0}
.practice-empty h2,.practice-confirm h2 {font-size:18px;font-weight:690;line-height:1.35;margin:0 0 8px}
.practice-empty p,.practice-confirm p {color:var(--ui-muted,#afc0d1);font-size:14px;line-height:1.55;margin:0}
.practice-empty>a {display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:12px}
.practice-empty .action {margin:12px 8px 0 0}
.practice-confirm {border-color:#8a714b;background:#2a261f}
.practice-question {font-size:clamp(22px,3vw,28px);font-weight:680;line-height:1.3;letter-spacing:-.025em;margin:10px 0 18px;overflow-wrap:break-word;max-width:46ch}
.practice-confidence {display:flex;gap:7px;flex-wrap:wrap;min-width:0;padding:10px 12px;margin:16px 0 12px;border:1px solid var(--ui-border,#304356);border-radius:10px;background:#132230}
.practice-confidence legend {font-size:12px;font-weight:650;line-height:1.4;padding:0 5px}
.practice-confidence legend span {font-size:11px;font-weight:400;color:var(--ui-muted,#afc0d1);margin-left:6px}
.practice-confidence button {padding:7px 13px;border-color:#354b61;background:#1b2b3a}
.practice-confidence button[aria-pressed="true"] {background:#273f52;border-color:var(--ui-accent,#9bdafa);color:var(--ui-accent,#9bdafa)}
.practice-selected,.practice-selected:disabled {border-color:var(--ui-accent,#9bdafa)!important;background:#263e51!important;color:var(--ui-text,#eef4fa)!important;opacity:1!important}
.practice-saved {background:#193044;border:1px solid #3c596e;padding:16px;border-radius:var(--ui-radius,14px);margin:16px 0}
.practice-saved strong {font-size:14px;font-weight:690}
.practice-saved p {color:#bfd0df;line-height:1.55;font-size:13px;margin-top:6px}
.practice-summary {margin:0 0 20px}
.practice-summary .score {font-size:clamp(44px,5.5vw,60px);line-height:1.15;margin:10px 0}
.practice-summary p {max-width:none;margin-left:0;margin-right:0;text-align:left}
.practice-summary .practice-contrast {font-size:14px;line-height:1.55;color:#c5d5e3;margin:12px 0 16px}
.practice-results {display:grid;gap:16px}
.practice-result {background:var(--ui-surface,#162331);border:1px solid var(--ui-border,#304356);border-radius:var(--ui-radius,14px);padding:20px;min-width:0}
.practice-result>h2 {font-size:17px;font-weight:680;line-height:1.45;letter-spacing:-.015em;margin:12px 0}
.practice-result h3 {font-size:14px}
.practice-result p {line-height:1.55}
.practice-result .typed-answer {color:#bfcede;font-size:14px;line-height:1.55;padding-left:12px;border-left:2px solid #496178;margin:12px 0;overflow-wrap:anywhere}
.practice-right,.practice-wrong {font-size:12px;font-weight:690;line-height:1.4}
.practice-right {color:#a9e1c1}
.practice-wrong {color:#ffc0c9}
.practice-storage {padding:12px 14px;background:#30291f;border:1px solid #826c46;border-radius:10px;color:#e8d6b7;line-height:1.55;font-size:12px}
.practice-page .options {margin:16px 0}
.practice-page .option {min-height:60px}
.practice-result .learning-feedback {margin-top:16px}
.practice-page .resume .small {display:block;margin-top:4px}
.practice-page button:focus-visible,.practice-page a:focus-visible {outline:2px solid var(--ui-accent,#9bdafa);outline-offset:3px}
.practice-evidence {border:1px solid var(--ui-border,#304356);background:var(--ui-surface,#162331);border-radius:var(--ui-radius,14px);padding:6px 16px;margin:16px 0}
.practice-evidence summary {min-height:44px;align-content:center;font-size:14px;line-height:1.5;font-weight:650;cursor:pointer}
.practice-evidence p {display:flex;justify-content:space-between;gap:16px;font-size:13px;line-height:1.5;padding:12px 0;border-bottom:1px solid var(--ui-border,#304356);margin:0}
.practice-evidence p strong {min-width:0;overflow-wrap:anywhere}
.practice-evidence p span {color:var(--ui-muted,#afc0d1);white-space:nowrap}
.practice-evidence small {display:block;font-size:12px;color:var(--ui-muted,#afc0d1);line-height:1.55;padding:12px 0}
@media(hover:hover) {
  .practice-tabs button:not([aria-pressed="true"]):hover,.practice-confidence button:not([aria-pressed="true"]):hover {background:#203446;color:var(--ui-text,#eef4fa)}
  .practice-card:has(.action:hover) {border-color:#526e87}
}
@media(max-width:680px) {
  .practice-grid {grid-template-columns:1fr}
  .practice-tabs {width:100%}
  .practice-tabs button {flex:1;padding:8px 7px;font-size:12px;white-space:normal}
  .practice-card .action {width:100%}
  .practice-result {padding:16px}
  .practice-card-head {gap:8px}
  .practice-hero {padding-top:4px}
  .practice-evidence p {flex-direction:column;gap:4px}
}
@media(max-width:359px) {
  .practice-tabs button {padding-inline:5px}
  .practice-confidence {padding:9px}
  .practice-confidence button {flex:1;padding-inline:9px}
  .practice-card-head {align-items:flex-start;flex-wrap:wrap;gap:4px}
  .practice-card {padding:14px}
}

/* Keep the short resume action on one line beside a wrapping exercise title. */
.practice-page .resume :is(.action,.secondary) {white-space:nowrap;flex-shrink:0}
