* { box-sizing: border-box; }
:root {
  --text-size: 24px;
  --line-height: 1.5;
  --line-length: 60ch;
  --paper: #f4f7fa;
  --surface: #ffffff;
  --ink: #152941;
  --muted: #526b80;
  --border: #d7e2eb;
  --navy: #001b36;
  --panel: #0b2542;
  --gold: #c2a14e;
  --link: #155a94;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--text-size)/var(--line-height) Arial, sans-serif;
  letter-spacing: .12em;
  word-spacing: .16em;
  text-align: left;
  font-style: normal;
}
header {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas: "eyebrow logout" "title logout" "nav nav";
  align-items: center;
  column-gap: 2rem;
  max-width: none;
  margin: 0;
  padding: .85rem max(1.25rem, calc((100vw - 1200px)/2)) 0;
  background: var(--navy);
  color: #eef4fa;
  border-bottom: 1px solid #31516f;
}
header .eyebrow {
  grid-area: eyebrow;
  margin: 0;
  color: #d4b667;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
header h1 {
  grid-area: title;
  margin: -.1rem 0 .45rem;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: .015em;
  text-transform: uppercase;
}
header .brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: .7rem; border: 1px solid var(--gold); border-radius: 4px; color: #f5d889; font-size: 1.5rem; vertical-align: middle; }
header nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem;
  margin-top: .2rem;
  font-size: 1rem;
  letter-spacing: normal;
  word-spacing: normal;
}
header nav a {
  display: inline-block;
  padding: .68rem .95rem;
  color: #d9e6f0;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  border-radius: 5px 5px 0 0;
}
header nav a:hover, header nav a:focus-visible { background: #123756; color: #fff; }
header nav a[aria-current] { color: #f5d889; border-bottom-color: var(--gold); font-weight: 800; }
header #logout {
  grid-area: logout;
  justify-self: end;
  align-self: center;
  background: transparent;
  color: #f5d889;
  border: 1px solid #927e52;
  font-size: .88rem;
}
main, footer { width: min(1200px, calc(100% - 2.5rem)); margin-inline: auto; }
main { padding: 1.6rem 0 2rem; }
section {
  margin: 0 0 1.2rem;
  padding: 1.55rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 7px 25px #1234520b;
}
.page > h2 { margin: 0 0 .35rem; font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.16; letter-spacing: -.02em; }
.page > p { max-width: var(--line-length); margin: .35rem 0 .8rem; color: var(--muted); font-size: 1.07rem; line-height: 1.45; letter-spacing: normal; word-spacing: normal; }
#today, #practice, #tutor { background: var(--panel); color: #f2f5fa; border-color: #274868; }
#today > p, #practice > p, #tutor > p { color: #cbd9e5; }
#today, #practice, #tutor { background-image: radial-gradient(circle at 83% 27%, #244768 0, transparent 32%), linear-gradient(125deg, #0b2542 0%, #0b2542 70%, #102e4b 100%); }
#today { min-height: 250px; position: relative; padding-right: 19rem; }
#today .pet-scene { position: absolute; right: 1.8rem; top: 1.2rem; display: flex; align-items: end; gap: .15rem; }
.pet-scene img { object-fit: contain; max-width: 100%; }
#today .pet-scene img:first-child { width: 150px; height: 150px; }
#today .pet-scene img:last-child { width: 95px; height: 95px; }
#today > h2 { max-width: 18ch; }
#today > .button, #today > button { margin: .5rem .55rem 0 0; }
.today-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; width: calc(100% + 17rem); margin-top: 1.65rem; }
.today-links a { display: grid; gap: .25rem; padding: .8rem .95rem; border: 1px solid #476587; border-radius: 5px; background: #183b5d; color: #eef4fa; font-size: .9rem; letter-spacing: normal; word-spacing: normal; text-decoration: none; }
.today-links a:hover { border-color: var(--gold); background: #244969; }
.today-links strong { color: #f5d889; }
.today-links span { color: #d3e1ec; }
.guardian-panel { max-width: 62ch; }
.guardian-panel h2 { margin: 0 0 .55rem; font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.16; letter-spacing: -.02em; }
.guardian-panel p { margin: .35rem 0 .9rem; font-size: 1.05rem; line-height: 1.45; letter-spacing: normal; word-spacing: normal; }
#today .guardian-panel p, #practice .guardian-panel p, #tutor .guardian-panel p { color: #d1e0eb; }
body[data-role="guardian"] #today > :not(#guardian-home), body[data-role="guardian"] #practice > :not(#guardian-practice), body[data-role="guardian"] #tutor > :not(#guardian-tutor) { display: none; }
body[data-role="guardian"] #today, body[data-role="guardian"] #practice, body[data-role="guardian"] #tutor { min-height: 240px; padding-right: 1.75rem; }
body[data-role="guardian"] #practice::after, body[data-role="guardian"] #tutor::after { display: none; }
#practice, #tutor { position: relative; min-height: 185px; padding-right: 14rem; overflow: hidden; }
#practice::after, #tutor::after { content: ""; position: absolute; right: 2rem; top: .8rem; width: 145px; height: 145px; background: url('/v2/assets/lumi.webp') center / contain no-repeat; }
#board { display: block; position: relative; min-height: 250px; padding-right: 20.5rem; }
#board .practice-guide { position: absolute; top: 1.55rem; right: 1.55rem; width: 17rem; padding: 1rem; border-radius: 6px; background: #eff5f9; border: 1px solid #d2e0e9; letter-spacing: normal; word-spacing: normal; }
.practice-guide .guide-label { margin: 0; color: #9a6d20; font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.practice-guide h3 { margin: .25rem 0 .7rem; color: #122d49; font-size: 1.12rem; letter-spacing: normal; }
.practice-guide ol { list-style: none; padding: 0; margin: 0; }
.practice-guide li { display: grid; grid-template-columns: 1.7rem 1fr; column-gap: .55rem; margin: .6rem 0; color: #24425c; font-size: .84rem; line-height: 1.3; }
.practice-guide .guide-number { grid-row: span 2; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #c2a14e; color: #001b36; font-weight: 850; }
.practice-guide li strong { display: block; color: #102b45; }
.practice-guide li span { display: block; }
.practice-guide .guide-note { margin: .8rem 0 0; padding-top: .7rem; border-top: 1px solid #c9d9e3; color: #34516a; font-size: .78rem; }
#board > label:first-child { display: inline-block; margin: 0 .6rem .65rem 0; }
#practice-topic { display: inline-block; width: min(100%, 340px); margin-right: .5rem; }
#board > button { margin: .25rem .4rem .25rem 0; }
#active-problem { max-width: 850px; margin-top: 1.2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
#problem-text { margin: .2rem 0 1rem; font-size: 1.18em; line-height: 1.35; letter-spacing: normal; word-spacing: normal; }
#active-problem > p, #board > p { max-width: var(--line-length); color: var(--muted); font-size: 1rem; letter-spacing: normal; word-spacing: normal; }
#active-problem > button { margin: .3rem .45rem .3rem 0; }
#hint-text:not(:empty), .feedback-retry, #worked-example:not(:empty) { margin-top: .9rem; padding: .85rem 1rem; background: #fff5df; color: #402f14; border-left: 4px solid #b17b22; border-radius: 4px; }
#checked-lines { padding-left: 1.5rem; }
#map #topics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; padding: 0; list-style: none; }
#map #topics li { padding: .85rem 1rem; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 6px; background: var(--paper); font-size: 1.02rem; letter-spacing: normal; word-spacing: normal; }
.course-guide { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--border); letter-spacing: normal; word-spacing: normal; }
.course-guide-intro { max-width: 72ch; }
.course-guide .guide-label { margin: 0 0 .4rem; color: #96702d; font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.course-guide h3 { margin: .2rem 0 .6rem; font-size: clamp(1.3rem,2vw,1.7rem); line-height: 1.25; }
.course-guide p { line-height: 1.48; }
.course-guide-layout { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0,1fr); gap: 1.15rem; margin-top: 1.3rem; align-items: start; }
.course-guide-index, .course-guide-lesson { padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); }
.course-guide-index { max-height: 75vh; overflow: auto; }
.course-guide-index label { margin: 0 0 .3rem; }
#guide-search { width: 100%; }
#guide-count { margin: .4rem 0 1rem; color: var(--muted); font-size: .82rem; }
.guide-unit + .guide-unit { margin-top: 1rem; }
.guide-unit h4 { margin: 0 0 .4rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border); font-size: .85rem; line-height: 1.3; }
.guide-topic { display: block; width: 100%; margin: .15rem 0; padding: .48rem .55rem; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--ink); text-align: left; font-size: .79rem; line-height: 1.32; font-weight: 500; }
.guide-topic:hover, .guide-topic[aria-current="true"] { border-left-color: var(--gold); background: var(--surface); color: var(--ink); }
.course-guide-lesson { padding: clamp(1rem,2.5vw,1.7rem); }
.course-guide-lesson > p { margin: .3rem 0 1rem; }
.guide-section-label { margin: 1.2rem 0 .25rem !important; color: #96702d; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.guide-worked, .guide-check { margin-top: 1.1rem; padding: .85rem 1rem; border-left: 4px solid var(--gold); background: var(--surface); }
.guide-worked p, .guide-check p { margin: .3rem 0 .65rem; }
.guide-check { border-left-color: #287d85; }
.guide-check button { margin: .45rem 0; font-size: .82rem; }
.guide-check p[hidden] { display: none; }
.guide-footnote { color: var(--muted); font-size: .78rem; }
.guide-pagination { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.35rem; }
.guide-pagination button { font-size: .78rem; }
#quizzes { letter-spacing: normal; word-spacing: normal; }
#quizzes > .guide-label, .quiz-panel .guide-label { margin: 0 0 .4rem; color: #96702d; font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.quiz-note { padding: .6rem .85rem; border-left: 4px solid #287d85; background: var(--paper); }
.quiz-layout { display: grid; grid-template-columns: minmax(250px, 360px) minmax(0,1fr); gap: 1.15rem; margin-top: 1.1rem; align-items: start; }
.quiz-index, .quiz-panel { padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); }
.quiz-index { max-height: 75vh; overflow: auto; }
#quiz-search { width: 100%; }
#quiz-count { margin: .4rem 0 1rem; color: var(--muted); font-size: .82rem; }
.quiz-panel { padding: clamp(1rem,2.5vw,1.7rem); }
.quiz-panel h3 { margin: .2rem 0 .8rem; font-size: clamp(1.3rem,2vw,1.7rem); line-height: 1.25; }
.quiz-modes { display: flex; gap: .4rem; margin-bottom: .6rem; }
.quiz-modes button[aria-pressed="false"], .quiz-choice[aria-pressed="false"] { background: var(--surface); color: var(--ink); border-color: var(--border); }
.quiz-prompt { margin: .3rem 0 .8rem; font-size: 1.12em; line-height: 1.45; }
.quiz-choices { display: grid; gap: .5rem; margin: .9rem 0; }
.quiz-choice { display: block; width: 100%; text-align: left; font-weight: 600; line-height: 1.4; }
.quiz-choice[aria-pressed="true"] { outline: 3px solid #287d85; }
#quiz-text { width: 100%; }
.quiz-hint { color: var(--muted); font-size: .85rem; }
#quizzes #quiz-questions > button, #quizzes #quiz-cards > button:not(.flashcard) { margin: .3rem .45rem .3rem 0; }
#quiz-verdict:not(:empty) { margin: .8rem 0 0; font-weight: 750; }
.quiz-explanation { margin-top: .8rem; padding: .85rem 1rem; border-left: 4px solid var(--gold); background: var(--surface); }
.quiz-explanation p { margin: .3rem 0; line-height: 1.45; }
.flashcard { display: grid; gap: .6rem; width: 100%; min-height: 11rem; margin: .5rem 0; padding: 1.4rem; border: 1px solid var(--border); border-left: 6px solid var(--gold); background: var(--surface); color: var(--ink); text-align: left; font-size: 1.1em; font-weight: 600; line-height: 1.45; }
.flashcard:hover { background: var(--surface); border-color: var(--gold); }
.flashcard .guide-label { font-size: .7rem; }
#me { max-width: 900px; }
#settings-form { display: grid; grid-template-columns: minmax(0,14rem) minmax(0,1fr); gap: .3rem 1rem; align-items: center; }
#settings-form > p, #settings-form > button { grid-column: 1 / -1; }
#settings-form > p { margin: .2rem 0 .5rem; color: var(--muted); font-size: 1rem; letter-spacing: normal; word-spacing: normal; }
#settings-form label:has(input[type="checkbox"]) { grid-column: 1 / -1; display: flex; gap: .65rem; align-items: center; }
#settings-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: 0; }
button, input, select, textarea, .button { font: inherit; max-width: 100%; border-radius: 5px; }
button, .button {
  display: inline-block;
  padding: .68rem .95rem;
  border: 1px solid #aa8b40;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: normal;
  word-spacing: normal;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: #d4b667; }
button:disabled { opacity: .55; cursor: not-allowed; }
input:not([type="checkbox"]), select, textarea {
  padding: .58rem .72rem;
  border: 1px solid #9db3c4;
  background: #fff;
  color: #152941;
  font-size: 1rem;
  letter-spacing: normal;
  word-spacing: normal;
}
textarea { display: block; width: 100%; max-width: 100%; }
label { display: block; margin-top: .8rem; font-size: .95rem; font-weight: 750; letter-spacing: normal; word-spacing: normal; }
input:not([type="checkbox"]) { display: block; margin-bottom: .65rem; }
a { color: var(--link); }
:focus-visible { outline: 3px solid #d0a845; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: .5rem; z-index: 5; padding: .35rem; background: #fff; }
.needs-help { border: 3px solid #ad7a13; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; padding: .9rem 0 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; letter-spacing: normal; word-spacing: normal; }
footer p { margin: 0; }
body[data-theme="navy"] { --paper: #001b36; --surface: #0b2542; --ink: #eef4fa; --muted: #b7c7d7; --border: #2c5479; --link: #f0d288; }
body[data-theme="navy"] #map #topics li { background: #143554; }
body[data-theme="navy"] #board .practice-guide { background: #123756; border-color: #426889; }
body[data-theme="navy"] .practice-guide h3, body[data-theme="navy"] .practice-guide li strong { color: #eef4fa; }
body[data-theme="navy"] .practice-guide li, body[data-theme="navy"] .practice-guide .guide-note { color: #c1d3e1; border-color: #426889; }
body[data-theme="navy"] input:not([type="checkbox"]), body[data-theme="navy"] select, body[data-theme="navy"] textarea { background: #071d34; border-color: #52718b; color: #eef4fa; }
body[data-theme="navy"] #active-problem > p, body[data-theme="navy"] #board > p { color: #b7c7d7; }
body[data-theme="navy"] #login { background: var(--surface); }
@media (max-width: 800px) {
  header { padding-inline: 1rem; column-gap: .5rem; }
  header nav { overflow-x: auto; flex-wrap: nowrap; }
  header nav a { white-space: nowrap; padding: .55rem .65rem; }
  main, footer { width: calc(100% - 1.5rem); }
  #today { padding-right: 1.2rem; }
  #today .pet-scene { position: static; float: right; max-width: 42%; }
  .today-links { width: 100%; grid-template-columns: 1fr; clear: both; }
  #practice, #tutor { padding-right: 1.2rem; }
  #practice::after, #tutor::after { display: none; }
  #board { padding-right: 1.2rem; }
  #board .practice-guide { position: static; width: 100%; margin-top: 1.2rem; }
  #map #topics, #settings-form { grid-template-columns: 1fr; }
  .course-guide-layout, .quiz-layout { grid-template-columns: 1fr; }
  .quiz-index { max-height: 20rem; }
  .course-guide-index { max-height: 20rem; }
}
@media (max-width: 540px) {
  section { padding: 1.1rem; }
  header h1 { font-size: 1.12rem; }
  header #logout { padding: .5rem; }
  #today .pet-scene { float: none; max-width: none; }
  #practice-topic { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
body[data-reduced-motion="true"] *, body[data-reduced-motion="true"] *::before, body[data-reduced-motion="true"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body[data-read-aloud="false"] [data-read] { display: none; }
/* Flashcards: one card, navy text on warm off-white, teal for "Know it", coral for "Study again" (the diagram palette). */
#flashcards { --fc-navy: #13294b; --fc-paper: #fbf8f1; --fc-edge: #e4dccb; --fc-teal: #0f766e; --fc-teal-soft: #dcefec; --fc-coral: #c2492f; --fc-coral-soft: #fbe5de; --fc-coral-ink: #8a2e19; }
#flashcards :focus-visible { outline: 3px solid var(--fc-navy); outline-offset: 3px; }
body[data-theme="navy"] #flashcards :focus-visible { outline-color: #f0d288; }
.fc-choose { max-width: 46rem; margin: .5rem 0 .3rem; }
.fc-choose > summary { cursor: pointer; padding: .3rem 0; font-size: .95rem; font-weight: 750; letter-spacing: normal; word-spacing: normal; color: var(--link); }
.fc-picker { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); margin-top: .4rem; }
.fc-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.fc-preset[aria-pressed="false"], .fc-modes button[aria-pressed="false"] { background: var(--surface); color: var(--ink); border-color: var(--border); }
.fc-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 .75rem; align-items: end; }
.fc-range label { grid-row: 1; }
.fc-range select { grid-row: 2; width: 100%; }
.fc-range button { grid-column: 1 / -1; justify-self: start; margin-top: .6rem; }
.fc-module select { width: 100%; }
.fc-message { color: var(--muted); font-size: .95rem; letter-spacing: normal; }
.fc-message:empty { display: none; }
.fc-study { max-width: 46rem; margin-top: .4rem; }
.fc-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; margin: .45rem 0 .2rem; }
.fc-help p { margin: 0; }
.fc-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; }
.fc-bar p { margin: .2rem 0; font-size: .92rem; font-weight: 750; letter-spacing: .02em; word-spacing: normal; color: var(--ink); }
.fc-modes { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .7rem; }
.fc-modes button { font-size: .85rem; }
.fc-card { display: flex; flex-direction: column; gap: .55rem; width: 100%; min-height: 12rem; margin: 0; padding: 1.1rem 1.4rem 1.3rem;
  border: 1px solid var(--fc-edge); border-top: 6px solid var(--fc-teal); border-radius: 14px; background: var(--fc-paper); color: var(--fc-navy);
  text-align: left; font-weight: 400; box-shadow: 0 2px 10px #13294b14; }
.fc-card:hover { background: var(--fc-paper); border-color: var(--fc-edge); border-top-color: var(--fc-teal); }
.fc-card[data-side="back"], .fc-card[data-side="back"]:hover { border-top-color: var(--fc-coral); }
.fc-card.fc-turn { animation: fc-turn .24s ease-out; }
@keyframes fc-turn { from { transform: perspective(1000px) rotateY(-70deg); opacity: .35; } to { transform: none; opacity: 1; } }
.fc-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; font-size: .8rem; font-weight: 750; letter-spacing: normal; }
.fc-topic { color: #3b5578; }
.fc-chip { flex: none; padding: .1rem .55rem; border-radius: 999px; border: 1px solid #b9c6d6; color: #3b5578; background: #fff; }
.fc-chip[data-status="known"] { border-color: var(--fc-teal); color: var(--fc-teal); background: var(--fc-teal-soft); }
.fc-chip[data-status="again"] { border-color: var(--fc-coral); color: var(--fc-coral-ink); background: var(--fc-coral-soft); }
.fc-side { font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #3b5578; }
.fc-term { font-size: 1.4em; font-weight: 750; line-height: 1.3; }
.fc-definition { font-size: 1.05em; line-height: 1.5; }
.fc-term sup, .fc-definition sup, .fc-term sub, .fc-definition sub { font-size: .72em; line-height: 0; letter-spacing: normal; }
.fc-figure { display: block; margin-top: .4rem; }
.fc-figure img { display: block; width: 100%; max-width: 26rem; height: auto; margin: 0 auto; border-radius: 8px; border: 1px solid var(--fc-edge); background: var(--fc-paper); }
.fc-figure-missing { display: block; margin: .3rem 0 0; padding: .5rem .7rem; border-left: 4px solid var(--fc-coral); background: #fff; font-size: .85rem; letter-spacing: normal; }
#fc-read { font-size: .85rem; }
.fc-rate { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .5rem 0; }
.fc-rate button { padding: .85rem 1rem; font-size: 1.02rem; }
.fc-again-button, .fc-again-button:hover { border-color: var(--fc-coral); background: var(--fc-coral-soft); color: var(--fc-coral-ink); }
.fc-again-button:hover { background: #f8d3c7; }
.fc-known-button, .fc-known-button:hover { border-color: #0b5c56; background: var(--fc-teal); color: #fff; }
.fc-known-button:hover { background: #0b5c56; }
.fc-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; margin: .5rem 0; }
.fc-nav button { font-size: .85rem; background: var(--surface); color: var(--ink); border-color: var(--border); }
.fc-nav #fc-next { justify-self: end; }
.fc-nav #fc-prev { justify-self: start; }
.fc-summary { margin: .8rem 0 .4rem; color: var(--muted); font-size: .88rem; letter-spacing: normal; }
.fc-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.fc-tools button { font-size: .8rem; background: var(--surface); color: var(--ink); border-color: var(--border); }
.fc-empty { padding: .9rem 1rem; border-left: 4px solid var(--fc-teal); background: var(--paper); }
.fc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 540px) {
  .fc-card { min-height: 13rem; padding: 1rem 1rem 1.2rem; }
  .fc-term { font-size: 1.25em; }
  .fc-range { grid-template-columns: 1fr; }
  .fc-range label, .fc-range select { grid-row: auto; }
  .fc-nav { grid-template-columns: 1fr 1fr; }
  .fc-nav #fc-shuffle { grid-column: 1 / -1; grid-row: 2; }
  .fc-nav #fc-prev, .fc-nav #fc-next { justify-self: stretch; }
}
