:root {
  --ink: #172d28;
  --green: #103c35;
  --green-2: #1e594c;
  --paper: #f7f3e9;
  --cream: #fffdf7;
  --sage: #dbe8dc;
  --sage-2: #c8dacb;
  --lime: #d9ef8f;
  --orange: #bd5b39;
  --gold: #d9a949;
  --muted: #61706b;
  --line: #b9c3bc;
  --shadow: 12px 12px 0 rgba(16, 60, 53, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
code, pre { font-family: "Courier New", monospace; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); background: white; border: 2px solid var(--orange); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }

.site-header { position: sticky; z-index: 20; top: 0; min-height: 78px; padding: 0 4.5vw; display: flex; align-items: center; gap: 35px; background: rgba(247, 243, 233, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.wordmark { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.wordmark-seal { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--lime); background: var(--green); font: 22px Georgia, serif; }
.wordmark > span:last-child { display: grid; line-height: 1; }
.wordmark b { font: 14px Georgia, serif; letter-spacing: .08em; }
.wordmark small { margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .19em; }
.site-header nav { margin-left: auto; display: flex; gap: 24px; }
.site-header nav a, .header-link { color: #40534d; font-size: 10px; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.site-header nav a:hover, .header-link:hover { color: var(--orange); }
.header-link { padding: 10px 12px; border: 1px solid #87968f; }
.header-link span { color: var(--orange); }
.menu-button { display: none; padding: 9px 12px; border: 1px solid var(--green); color: var(--green); background: transparent; }
.mobile-nav { position: sticky; z-index: 19; top: 78px; padding: 12px 4.5vw; background: var(--green); }
.mobile-nav a { margin-right: 18px; color: white; font-size: 10px; text-decoration: none; }

.hero { min-height: 650px; padding: 78px 6vw 70px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 7vw; color: white; background: radial-gradient(circle at 80% 18%, rgba(217,239,143,.18), transparent 22%), linear-gradient(135deg, #123f36 0%, #0e2e29 100%); overflow: hidden; }
.hero-copy { max-width: 780px; }
.chapter-label { margin-bottom: 43px; display: flex; align-items: center; gap: 14px; color: #c8dad2; font-size: 9px; letter-spacing: .2em; }
.chapter-label span { padding: 7px 10px; color: var(--green); background: var(--lime); font-weight: 800; }
.chapter-label b { font-weight: 700; }
.hero .eyebrow { color: #f0ad86; }
.hero h1 { margin: 15px 0 23px; font: clamp(54px, 6.3vw, 91px)/.94 Georgia, serif; letter-spacing: -.045em; }
.hero h1 em { color: var(--lime); font-weight: 400; }
.hero-lede { max-width: 750px; margin: 0; color: #d3e1dc; font: 18px/1.65 Georgia, serif; }
.hero-actions { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 46px; padding: 14px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid; text-decoration: none; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.button.primary { color: var(--green); background: var(--lime); border-color: var(--lime); }
.button.secondary { color: white; background: transparent; border-color: #809e93; }
.source-note { margin: 22px 0 0; color: #a9c1b8; font-size: 10px; }
.source-note span { color: var(--lime); }

.hero-board { position: relative; padding: 29px; color: white; background: #0d302a; border: 1px solid #547a6f; box-shadow: 24px 24px 0 rgba(0,0,0,.17); }
.hero-board::before { content: ""; position: absolute; inset: 12px; pointer-events: none; border: 1px solid rgba(217,239,143,.16); }
.board-top { position: relative; padding-bottom: 18px; display: flex; justify-content: space-between; border-bottom: 1px solid #50746a; }
.board-top span { color: var(--lime); font-size: 8px; letter-spacing: .18em; }
.board-top b { font: 14px Georgia, serif; }
.hero-board ol { position: relative; margin: 18px 0 9px; padding: 0; list-style: none; }
.hero-board li { padding: 12px 0; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #325b50; }
.hero-board li > span { width: 31px; height: 31px; display: grid; place-items: center; flex: none; border: 1px solid #64877d; color: var(--lime); font-size: 9px; }
.hero-board li div { display: grid; gap: 4px; }
.hero-board li b { font: 17px Georgia, serif; }
.hero-board li small { color: #a9c3ba; font-size: 9px; }
.board-stamp { position: relative; margin-top: 21px; padding: 10px; color: #f1b38d; border: 1px solid #94543c; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .18em; transform: rotate(-1deg); }

.chapter-stats { display: grid; grid-template-columns: repeat(4, 1fr); color: white; background: var(--orange); }
.chapter-stats div { min-height: 105px; padding: 22px 4vw; display: flex; align-items: center; gap: 14px; border-right: 1px solid rgba(255,255,255,.25); }
.chapter-stats b { font: 37px Georgia, serif; }
.chapter-stats span { max-width: 100px; font-size: 9px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }

.orientation { padding: 65px 6vw; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; background: #e4eadf; border-bottom: 1px solid var(--line); }
.orientation h2 { margin: 10px 0 0; font: clamp(34px, 4vw, 55px)/1.04 Georgia, serif; }
.orientation > p { margin: 0; color: #4e5f59; font: 17px/1.75 Georgia, serif; }

.section { padding: 88px 6vw; }
.section-heading { margin-bottom: 36px; display: flex; justify-content: space-between; align-items: flex-end; gap: 45px; }
.section-heading h2 { max-width: 760px; margin: 10px 0 0; font: clamp(38px, 4.2vw, 59px)/1.03 Georgia, serif; letter-spacing: -.025em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); font: 14px/1.65 Georgia, serif; }
.section-heading.light h2, .section-heading.light > p { color: white; }
.section-heading.light > p { color: #bfd1c9; }

.framework-section { background: var(--cream); }
.exam-sequence { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.exam-sequence button { min-height: 150px; padding: 20px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.exam-sequence button span { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.exam-sequence button b { margin-top: 27px; display: block; font: 24px Georgia, serif; }
.exam-sequence button:hover, .exam-sequence button.active { background: var(--sage); box-shadow: inset 0 4px var(--orange); }
.sequence-detail { min-height: 110px; padding: 28px 31px; display: grid; grid-template-columns: 190px 1fr; gap: 30px; color: white; background: var(--green); }
.sequence-detail span { color: var(--lime); font-size: 9px; letter-spacing: .18em; }
.sequence-detail h3 { margin: 6px 0 0; font: 26px Georgia, serif; }
.sequence-detail p { margin: 0; color: #d0dfda; font: 17px/1.55 Georgia, serif; }
.duty-grid { margin-top: 58px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 44px; }
.duty-intro { padding: 31px; border-left: 4px solid var(--orange); background: #f2e8dc; }
.duty-intro h3 { margin: 11px 0 13px; font: 31px/1.12 Georgia, serif; }
.duty-intro > p:last-child { color: var(--muted); font: 14px/1.65 Georgia, serif; }
.duty-sources { display: grid; grid-template-columns: 1fr 1fr; }
.duty-sources article { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.duty-sources article:nth-child(odd) { border-left: 1px solid var(--line); }
.duty-sources article:nth-child(-n+2) { border-top: 1px solid var(--line); }
.duty-sources b { color: var(--green-2); font: 17px Georgia, serif; }
.duty-sources p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.standards-section, .cards-section, .attack-section { color: white; background: var(--green); }
.standards-lab { display: grid; grid-template-columns: 290px 1fr; gap: 0; border: 1px solid #5c7a71; }
.standard-tabs { display: grid; align-content: start; background: #0c302a; }
.standard-tabs button { min-height: 58px; padding: 14px 18px; border: 0; border-bottom: 1px solid #355d52; color: #c9dbd4; background: transparent; text-align: left; cursor: pointer; }
.standard-tabs button:hover, .standard-tabs button.active { color: var(--green); background: var(--lime); }
.standard-detail { min-height: 360px; padding: 48px; display: grid; align-content: center; background: linear-gradient(135deg, #194b41, #123b34); }
.standard-detail > span { color: #efa67d; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.standard-detail h3 { margin: 13px 0 18px; font: 42px Georgia, serif; }
.standard-detail .model-rule { max-width: 820px; margin: 0; color: white; font: 22px/1.5 Georgia, serif; }
.standard-trap { margin-top: 30px; padding: 18px; border-left: 4px solid var(--orange); background: rgba(0,0,0,.15); }
.standard-trap b { color: #f5b592; font-size: 9px; letter-spacing: .16em; }
.standard-trap p { margin: 7px 0 0; color: #cbdad5; font: 14px/1.55 Georgia, serif; }

.breach-section { background: var(--paper); }
.hand-lab { display: grid; grid-template-columns: 1fr .82fr; border: 1px solid var(--line); background: var(--cream); box-shadow: var(--shadow); }
.hand-controls { padding: 38px; display: grid; gap: 29px; }
.hand-controls label { display: grid; grid-template-columns: 1fr auto; gap: 11px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hand-controls label span { color: var(--orange); font: 16px Georgia, serif; letter-spacing: 0; }
.hand-controls input { grid-column: 1 / 3; width: 100%; accent-color: var(--orange); }
.hand-result { padding: 38px; color: white; background: var(--green); }
.hand-result > span { color: var(--lime); font-size: 9px; letter-spacing: .18em; }
.formula { margin: 25px 0 15px; display: flex; align-items: center; gap: 17px; }
.formula b { font: 42px Georgia, serif; }
.formula i { color: var(--orange); font: 36px Georgia, serif; }
.hand-result p { color: #c7d9d2; font: 16px/1.5 Georgia, serif; }
.hand-result strong { padding: 13px; display: block; color: var(--green); background: var(--lime); font: 18px/1.3 Georgia, serif; }
.hand-result small { margin-top: 16px; display: block; color: #9fb8af; line-height: 1.5; }

.premises-section { background: #e4eadf; }
.premises-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #9eaaa2; border-left: 1px solid var(--line); }
.premises-grid article { min-height: 300px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.28); }
.premises-grid article span { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.premises-grid h3 { margin: 24px 0 13px; font: 23px/1.15 Georgia, serif; }
.premises-grid p { color: #53615c; font-size: 12px; line-height: 1.55; }
.premises-grid .exam-note { margin-top: 18px; padding-top: 15px; border-top: 1px solid #aeb9b1; color: var(--green-2); font-weight: 700; }

.reader-section { background: var(--cream); }
.reader-search { min-width: 340px; padding: 9px 12px; display: flex; gap: 8px; align-items: center; border: 1px solid #aab5ae; background: white; }
.reader-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.reader-tools { position: sticky; z-index: 4; top: 78px; padding: 15px 21px; display: flex; justify-content: space-between; align-items: center; background: var(--sage); border: 1px solid var(--line); }
.reader-tools button { padding: 9px 13px; border: 1px solid var(--green); color: var(--green); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.reader-tools span { color: var(--muted); font-size: 10px; }
.chapter-reader { border: 1px solid var(--line); border-top: 0; }
.reader-item { border-bottom: 1px solid var(--line); }
.reader-item:last-child { border-bottom: 0; }
.reader-item > button { width: 100%; padding: 20px 22px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.reader-item > button:hover { background: #edf1e8; }
.reader-item > button span:first-child { color: var(--orange); font-size: 9px; font-weight: 800; }
.reader-item > button b { font: 20px Georgia, serif; }
.reader-item > button span:last-child { color: var(--green-2); font-size: 18px; }
.reader-copy { max-width: 900px; padding: 4px 65px 30px; }
.reader-copy p { margin: 0 0 13px; color: #46554f; font: 15px/1.75 Georgia, serif; }
.reader-empty { padding: 35px; color: var(--muted); font: 18px Georgia, serif; }

.cards-section code { padding: 2px 5px; color: var(--lime); background: rgba(0,0,0,.2); }
.csv-status { padding: 15px 18px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; border: 1px solid #5f7c73; background: #0c302a; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217,169,73,.16); }
.csv-status.loaded .status-dot { background: var(--lime); }
.csv-status.error .status-dot { background: #e98d72; }
.csv-status b { font-size: 11px; }
.csv-status small { color: #a9beb6; }
.csv-fallback { margin-top: 14px; padding: 20px; border-left: 4px solid var(--orange); background: #183f37; }
.csv-fallback p { margin: 0 0 13px; color: #c7d8d2; font: 14px/1.55 Georgia, serif; }
.card-toolbar { margin: 28px 0 17px; display: flex; justify-content: space-between; align-items: center; }
.card-toolbar span { color: #b7cbc3; font-size: 10px; letter-spacing: .08em; }
.card-toolbar button { padding: 9px 12px; border: 1px solid #6a877e; color: var(--lime); background: transparent; cursor: pointer; }
.flashcard { width: min(840px, 100%); min-height: 390px; margin: 0 auto; padding: 0; display: block; border: 0; background: transparent; cursor: pointer; }
.card-face { min-height: 390px; padding: 55px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid #6e8c82; color: white; background: linear-gradient(135deg, #174a40, #0c302a); box-shadow: 15px 15px 0 rgba(217,239,143,.12); }
.card-face small { margin-bottom: 24px; color: var(--lime); font-size: 9px; letter-spacing: .2em; }
.card-face strong { max-width: 760px; font: 31px/1.35 Georgia, serif; }
.card-face em { margin-top: 30px; color: #9db7ae; font-size: 8px; font-style: normal; letter-spacing: .18em; }
.flashcard.flipped .card-face { color: var(--ink); background: var(--sage); animation: reveal .22s ease-out; }
.flashcard.flipped .card-face small { color: var(--orange); }
.flashcard.flipped .card-face strong { font-size: 24px; line-height: 1.5; }
.flashcard.flipped .card-face em { color: var(--muted); }
.card-actions { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }
.card-actions button { min-width: 140px; padding: 12px; border: 1px solid #708c83; color: white; background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.card-actions button.mastered { color: var(--green); background: var(--lime); border-color: var(--lime); }

.quiz-section { background: var(--paper); }
.score-cluster { display: grid; gap: 7px; text-align: right; }
.score-cluster span { color: var(--muted); font-size: 10px; }
.score-cluster b { color: var(--orange); font: 24px Georgia, serif; }
.quiz-layout { display: grid; grid-template-columns: 190px 1fr; gap: 22px; }
.quiz-nav { padding: 18px; align-self: start; background: var(--green); }
.quiz-nav > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.question-dot { width: 25px; height: 25px; padding: 0; display: grid; place-items: center; border: 1px solid #66837a; color: #bacdc6; background: transparent; cursor: pointer; font-size: 8px; }
.question-dot.active { color: var(--green); background: var(--lime); border-color: var(--lime); }
.question-dot.correct { color: white; background: #377b66; }
.question-dot.wrong { color: white; background: var(--orange); }
.quiz-nav > button { width: 100%; margin-top: 14px; padding: 9px; border: 1px solid #66837a; color: white; background: transparent; cursor: pointer; font-size: 9px; }
.quiz-card { min-height: 600px; padding: 39px; border: 1px solid var(--line); background: var(--cream); box-shadow: var(--shadow); }
.quiz-card > span { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.quiz-card h2 { margin: 14px 0 25px; font: 27px/1.38 Georgia, serif; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { min-height: 64px; padding: 13px 15px; display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 13px; border: 1px solid #acb6af; background: white; text-align: left; cursor: pointer; }
.quiz-option span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--sage); font-size: 10px; font-weight: 800; }
.quiz-option:hover, .quiz-option.selected { border-color: var(--green-2); background: #edf2e9; }
.quiz-option.correct { border-color: #3b795f; background: #dcecdf; }
.quiz-option.wrong { border-color: var(--orange); background: #f4dfd6; }
.quiz-option:disabled { cursor: default; }
.quiz-feedback { margin-top: 20px; padding: 20px; border-left: 4px solid var(--orange); background: #ece6dc; }
.quiz-feedback b { color: var(--green-2); font: 18px Georgia, serif; }
.quiz-feedback p { margin: 8px 0 0; color: #47544f; font: 14px/1.65 Georgia, serif; }
.quiz-actions { margin-top: 22px; display: flex; justify-content: space-between; gap: 10px; }
.quiz-actions button { padding: 11px 14px; border: 1px solid #87968f; color: var(--green); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.quiz-actions .primary-action { margin-left: auto; color: white; background: var(--green); border-color: var(--green); }
.quiz-actions button:disabled { opacity: .35; cursor: default; }

.attack-checklist { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #5e7d73; border-left: 1px solid #5e7d73; }
.attack-checklist label { min-height: 95px; padding: 18px; display: flex; gap: 11px; align-items: flex-start; border-right: 1px solid #5e7d73; border-bottom: 1px solid #5e7d73; color: #d0dfda; font: 13px/1.5 Georgia, serif; }
.attack-checklist input { margin-top: 2px; accent-color: var(--lime); }
.exam-callout { margin-top: 30px; padding: 28px; border-left: 5px solid var(--orange); background: #0c302a; }
.exam-callout b { color: var(--lime); font-size: 9px; letter-spacing: .18em; }
.exam-callout p { max-width: 1000px; margin: 10px 0 0; color: white; font: 19px/1.6 Georgia, serif; }

footer { padding: 34px 6vw; display: grid; grid-template-columns: 1fr 2fr auto; gap: 30px; align-items: center; color: #b8cbc3; background: #0b2c27; }
footer div { display: grid; gap: 5px; }
footer b { color: white; font: 14px Georgia, serif; }
footer span, footer p, footer a { font-size: 10px; line-height: 1.5; }
footer p { margin: 0; }
footer a { color: var(--lime); }

.reference-main { max-width: 1120px; margin: auto; padding: 70px 6vw 100px; }
.reference-main h1 { margin: 12px 0 18px; font: clamp(52px, 7vw, 82px)/1 Georgia, serif; }
.reference-lede { max-width: 850px; color: var(--muted); font: 18px/1.7 Georgia, serif; }
.reference-main section { margin-top: 55px; }
.reference-main h2 { font: 31px Georgia, serif; }
.reference-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.reference-list article { min-height: 130px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reference-list b { color: var(--green); font: 18px Georgia, serif; }
.reference-list p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.upload-note { padding: 29px; color: white; background: var(--green); }
.upload-note h2 { color: white; }
.upload-note p { color: #c7d8d2; }
.upload-note pre { padding: 20px; overflow: auto; color: var(--lime); background: #092822; }

@keyframes reveal { from { opacity: .55; transform: translateY(5px); } }

@media (max-width: 1050px) {
  .site-header nav { display: none; }
  .header-link { margin-left: auto; }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-board { max-width: 620px; }
  .exam-sequence { grid-template-columns: repeat(3, 1fr); }
  .premises-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .section, .hero, .orientation { padding-left: 24px; padding-right: 24px; }
  .header-link { display: none; }
  .hero { min-height: 0; padding-top: 54px; }
  .hero h1 { font-size: 54px; }
  .chapter-stats { grid-template-columns: 1fr 1fr; }
  .chapter-stats div:nth-child(2) { border-right: 0; }
  .orientation { grid-template-columns: 1fr; }
  .section-heading { display: grid; }
  .section-heading h2 { font-size: 39px; }
  .exam-sequence { grid-template-columns: 1fr 1fr; }
  .sequence-detail, .duty-grid, .hand-lab, .standards-lab, .quiz-layout { grid-template-columns: 1fr; }
  .duty-sources { grid-template-columns: 1fr; }
  .duty-sources article { border-left: 1px solid var(--line); }
  .duty-sources article:nth-child(2) { border-top: 0; }
  .standard-tabs { grid-template-columns: 1fr 1fr; }
  .premises-grid { grid-template-columns: 1fr 1fr; }
  .reader-search { min-width: 0; width: 100%; }
  .reader-tools { top: 78px; }
  .quiz-nav { order: 2; }
  .attack-checklist { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header { padding: 0 18px; gap: 12px; }
  .hero h1 { font-size: 45px; }
  .hero-lede { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .chapter-stats div { padding: 18px; }
  .section { padding-top: 65px; padding-bottom: 65px; }
  .exam-sequence, .standard-tabs, .premises-grid, .attack-checklist, .reference-list { grid-template-columns: 1fr; }
  .sequence-detail { padding: 24px; }
  .standard-detail, .hand-controls, .hand-result, .quiz-card { padding: 25px; }
  .reader-item > button { grid-template-columns: 31px 1fr auto; }
  .reader-copy { padding: 4px 24px 26px; }
  .csv-status { grid-template-columns: auto 1fr; }
  .csv-status small { grid-column: 1 / 3; }
  .card-face { min-height: 350px; padding: 31px 22px; }
  .card-face strong { font-size: 24px; }
  .flashcard.flipped .card-face strong { font-size: 19px; }
  .card-actions { flex-wrap: wrap; }
  .card-actions button { min-width: 46%; }
  .quiz-actions { flex-wrap: wrap; }
  .quiz-actions .primary-action { order: 3; width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
