@font-face { font-family: Figtree; src: url(/fonts/figtree-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/figtree-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/figtree-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #161616;
  --muted: #5d5a54;
  --line: #d9d6cf;
  --accent: #ed9d22;
  --accent-soft: #fbe7c6;
  --radius: 2px;
  /* Touch targets scale with the screen but never drop below 64px (shared classroom screens). */
  --tap: clamp(64px, 9vh, 120px);
  --q-size: clamp(1.75rem, 1rem + 3.2vw, 4.5rem);
  --opt-size: clamp(1.25rem, 0.8rem + 1.6vw, 2.6rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: #eed596; }
body {
  font-family: Figtree, system-ui, sans-serif;
  /* Soft sky-to-paddock wash, taken from the banner's colours */
  background: linear-gradient(180deg, #d3f0f4 0%, #e8f6f5 28%, #f7f5ea 58%, #f4e6bd 85%, #eed596 100%) fixed;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
[hidden] { display: none !important; }

button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Top bar — kept minimal */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 6px clamp(12px, 2vw, 28px); }
.brand { color: inherit; text-decoration: none; min-height: 48px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 12px 8px; font-size: 0.95rem; }
.icon-btn { background: none; border: 0; padding: 10px; color: var(--muted); min-width: 48px; min-height: 48px; border-radius: var(--radius); }
.icon-btn:hover { background: #eceae4; }

.screen { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(12px, 2vw, 32px); display: flex; flex-direction: column; }

/* End vote — in the top bar while voting */
.end-btn { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.end-btn:hover { background: #eceae4; }

/* Buttons */
.btn { border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 20px; font-weight: 600; min-height: 48px; background: var(--card); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #333; }
.btn.secondary:hover, .btn.ghost:hover { background: #eceae4; }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.big { min-height: var(--tap); font-size: clamp(1.2rem, 0.9rem + 1vw, 2rem); padding: 0 40px; }

/* Banner — welcome screen only, shown whole so the title is never cropped */
.banner { display: block; margin-bottom: 12px; }
.banner img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
body.on-home .brand { display: none; }

/* Home: a slim banner strip with the search box beside it (the top bar floats over its corner) */
body.on-home .topbar { position: absolute; top: 0; right: 0; z-index: 2; padding: 2px clamp(12px, 2vw, 28px); }
.hero { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); }
.hero .banner { margin: 0; flex: 0 1 auto; min-width: 0; }
.hero .banner img { height: clamp(110px, 19vh, 180px); width: auto; max-width: 100%; object-fit: cover; object-position: left bottom;
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.hero .search-wrap { flex: 1 1 300px; margin: 0 0 clamp(4px, 1vh, 12px); }
@media (max-width: 760px) {
  body.on-home .topbar { padding: 0 12px; }
  body.on-home #aboutBtn { background: rgba(255, 255, 255, 0.8); padding: 6px 10px; margin-top: 14px; }
  #chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; }
  .chip { flex: none; }
  .hero { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .banner img { width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
  .hero .search-wrap { flex: none; margin: 0; }
}
#home { gap: clamp(10px, 1.6vh, 18px); padding-top: clamp(8px, 1.2vh, 16px); }
.home-tools { display: flex; flex-direction: column; gap: 14px; }
.search-wrap { position: relative; display: block; }
.search-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap input { width: 100%; min-height: 64px; padding: 0 20px 0 56px; font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem); border: 2px solid var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 48px; padding: 0 18px; border: 2px solid var(--line); background: var(--card); border-radius: var(--radius); font-weight: 600; font-size: 1rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toggle.small { margin: 0; }
.switches { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.setup-line { margin: 0; color: var(--muted); }
.link-btn.inline { padding: 8px 4px; color: var(--ink); font-weight: 600; }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.q-card { text-align: left; display: flex; flex-direction: column; gap: 8px; min-height: 128px; padding: 16px 18px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); }
.q-card:hover { background: var(--accent-soft); }
.q-card:active { transform: scale(0.99); }
.q-topic { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.q-text { font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.4rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.voted { margin-top: auto; align-self: flex-start; font-size: 0.85rem; font-weight: 600; padding: 3px 10px; background: #e3f0e7; color: #245c3b; border-radius: var(--radius); }
.empty { color: var(--muted); font-size: 1.2rem; }
.link-btn.back { align-self: flex-start; padding: 10px 0; color: var(--ink); font-weight: 600; text-decoration: none; }

/* AttoKit promo: side card on home, small card on the voting screen */
.home-body { display: grid; gap: clamp(14px, 1.6vw, 24px); }
.home-main { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); min-width: 0; }
@media (min-width: 1100px) {
  .home-body { grid-template-columns: minmax(0, 1fr) 250px; align-items: start; }
  .ak-card { position: sticky; top: 16px; }
}
.ak-card a { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.ak-card a:hover { border-color: #192ec9; }
.ak-card img { width: 150px; height: auto; }
.ak-card strong { font-size: 1.1rem; line-height: 1.25; }
.ak-card span { color: var(--muted); font-size: 0.95rem; }
.ak-card .ak-btn { margin-top: 4px; align-self: flex-start; padding: 10px 14px; background: #192ec9; color: #fff; font-weight: 600; border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center; }
.ak-mini { margin-left: auto; align-self: flex-end; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; background: rgba(255, 255, 255, 0.85); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: 0.85rem; font-weight: 600; max-width: 190px; }
.ak-mini:hover { border-color: #192ec9; color: var(--ink); }
.ak-mini img { width: 96px; height: auto; }
@media (max-width: 900px) { .ak-mini { display: none; } }

/* Setup */
#setup h1 { font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); margin: 8px 0 20px; }
.mode-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.mode-card { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: var(--tap); background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); }
.mode-card strong { font-size: 1.4rem; }
.mode-card span { color: var(--muted); }
.mode-card[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
select, input { min-height: 56px; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 1.1rem; }
.classcode { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 18px 8px; margin: 0 0 20px; background: var(--card); }
.classcode legend { font-weight: 600; padding: 0 6px; }
.hint { color: var(--muted); margin: 0 0 12px; font-size: 0.95rem; }
.code-row { display: flex; gap: 12px; flex-wrap: wrap; }
.code-row input { width: 10ch; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 800; font-size: 1.4rem; text-align: center; }
.code-msg { min-height: 1.4em; margin: 8px 0; font-weight: 600; }
.toggle { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; min-height: 48px; cursor: pointer; }
.toggle input { width: 28px; height: 28px; min-height: 0; accent-color: var(--ink); }
#setupForm .btn.big { align-self: flex-start; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Voting */
#vote { gap: clamp(10px, 1.8vh, 24px); padding-top: clamp(4px, 1vh, 16px); padding-bottom: clamp(8px, 1.4vh, 20px); }
.question-wrap { display: flex; flex-direction: column; gap: clamp(8px, 2vh, 28px); }
.q-meta { margin: 0; color: var(--muted); font-weight: 600; font-size: clamp(0.95rem, 0.8rem + 0.4vw, 1.3rem); }
.question { font-size: var(--q-size); line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 24px); }
.options.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .options, .options.three { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: center; gap: clamp(12px, 1.4vw, 24px);
  min-height: clamp(60px, 11vh, 150px); padding: 10px clamp(14px, 1.6vw, 28px);
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  font-size: var(--opt-size); font-weight: 600; text-align: left;
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.2s ease;
}
.opt:hover:not(:disabled) { background: var(--accent-soft); }
.opt:active:not(:disabled) { transform: scale(0.98); }
.badge { flex: none; display: grid; place-items: center; width: 1.8em; height: 1.8em; background: var(--ink); color: #fff; font-weight: 800; border-radius: var(--radius); font-size: 0.85em; }
.opt:disabled { cursor: default; }
.opt.chosen { background: var(--accent); border-color: var(--ink); }
.opt.faded { opacity: 0.35; }

.after { display: flex; gap: 16px; flex-wrap: wrap; }

/* Pass — skip a question without voting */
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.pass-btn { flex: none; min-height: 48px; padding: 0 24px; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.4rem); border-color: var(--line); background: rgba(255, 255, 255, 0.7); color: var(--muted); }
.pass-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }

/* Magpie + speech bubble */
.magpie-row { display: flex; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 4px; }
.magpie { width: clamp(64px, min(11vw, 17vh), 170px); height: auto; flex: none; transform-origin: bottom center; }
.magpie.hop { animation: hop 0.45s ease; }
@keyframes hop { 0%,100% { transform: translateY(0) } 40% { transform: translateY(-14px) rotate(-4deg) } }
.bubble {
  position: relative; background: var(--card); border: 3px solid var(--ink); border-radius: 18px;
  padding: clamp(10px, 1.2vw, 20px) clamp(14px, 1.6vw, 26px);
  font-size: clamp(1.05rem, 0.8rem + 0.9vw, 2rem); font-weight: 600; max-width: 900px; margin-bottom: clamp(8px, 3vh, 60px);
}
.bubble::before { content: ''; position: absolute; left: -16px; bottom: 14px; border: 14px solid transparent; border-right-color: var(--ink); border-left: 0; }
.bubble::after { content: ''; position: absolute; left: -10px; bottom: 17px; border: 11px solid transparent; border-right-color: var(--card); border-left: 0; }
.bubble:empty { display: none; }
.bubble p { margin: 0; }
.bubble p + p { margin-top: 6px; color: var(--muted); }

/* Results */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(10px, 1vw, 16px); }
.r-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.r-card h2 { margin: 0 0 2px; font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.5rem); }
.r-total { color: var(--muted); margin: 0 0 8px; font-size: 0.95rem; }
.r-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; margin-bottom: 6px; font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.25rem); }
.r-row .r-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.r-row .badge { width: 1.6em; height: 1.6em; font-size: 0.8em; }
.r-row .r-pct { font-weight: 800; }
.r-bar { grid-column: 1 / -1; height: 14px; background: #eceae4; border-radius: var(--radius); overflow: hidden; }
.r-bar span { display: block; height: 100%; background: var(--bar, var(--ink)); width: 0; transition: width 0.7s ease; }
/* One colour per answer, taken from the banner: sky, wattle, gum leaf, rust */
.r-row.o0 { --bar: #2f7fc1; }
.r-row.o1 { --bar: #e3a21a; }
.r-row.o2 { --bar: #3d8f5f; }
.r-row.o3 { --bar: #c4562f; }
/* Pie / Bar switch */
.chart-switch { flex: none; display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.chart-switch button { min-height: 44px; min-width: 72px; padding: 0 16px; border: 0; background: transparent; font-weight: 600; }
.chart-switch button + button { border-left: 2px solid var(--ink); }
.chart-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Pie charts */
.pie { width: clamp(60px, min(8vw, 14vh), 150px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto 8px; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--ink); }
.pies .r-row { grid-template-columns: auto 1fr auto; }
.pies .r-row .badge { display: none; }
.pies .r-row::before { content: ''; width: 14px; height: 14px; border-radius: 3px; background: var(--bar); }

.r-row.mine .r-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--bar); }
.r-empty { color: var(--muted); margin: 0; }

/* Teacher bar (shared screen) */
.teacher-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; border-top: 2px solid var(--line); padding-top: 8px; }
.tb-label { font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.tb-code { font-weight: 800; letter-spacing: 0.15em; margin-right: auto; }

/* Done */
#done { align-items: center; justify-content: center; text-align: center; gap: 8px; }
.big-magpie { width: 200px; }

/* Small phones: drop the name beside the top-left magpie so the bar fits on one line */
/* Top-left logo: 54px tall (1.5x the old one); a little smaller on phones so the bar still fits */
.brand img { height: 54px; width: auto; display: block; }
#aboutBtn .short { display: none; }
.end-btn { white-space: nowrap; }
@media (max-width: 480px) {
  .brand img { height: 38px; }
  #aboutBtn .long { display: none; }
  #aboutBtn .short { display: inline; }
  .topbar-actions { gap: 2px; }
  .topbar { padding: 8px 8px 8px 12px; gap: 6px; }
  .end-btn { padding: 8px 10px; }
  .icon-btn { padding: 8px; min-width: 44px; }
  #aboutBtn { padding: 12px 4px; }
}

/* Footer — AttoKit credit on every page */
.site-footer { display: flex; justify-content: center; padding: 4px clamp(12px, 2vw, 28px) 8px; }
.attokit-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-size: 0.9rem; min-height: 44px; }
.attokit-link img { height: 24px; width: auto; }
.attokit-link:hover { color: var(--ink); }

/* World card → country breakdown */
.r-world { cursor: pointer; }
.r-world:hover { border-color: var(--ink); }
.r-more { margin-top: 4px; min-height: 40px !important; padding: 6px 12px; width: 100%; min-height: 44px; font-size: 0.95rem; background: var(--ink); color: #fff; }
.r-more:hover { background: #333; }
.countries-dlg { width: min(760px, 94vw); max-height: 88vh; }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cd-head h2 { margin: 0; }
.cd-head .btn { white-space: nowrap; }
.cd-q { margin: 6px 0 12px; font-weight: 600; color: var(--muted); }
.cd-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; font-size: 0.95rem; }
.cd-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cd-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.cd-list { display: flex; flex-direction: column; gap: 12px; }
.cd-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.cd-name { font-weight: 600; }
.cd-row.mine .cd-name { text-decoration: underline; text-underline-offset: 4px; }
.cd-votes { color: var(--muted); font-size: 0.9rem; }
.cd-bar { grid-column: 1 / -1; display: flex; height: 26px; border-radius: var(--radius); overflow: hidden; background: #eceae4; }
.cd-bar span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }

/* About dialog */
dialog { border: 3px solid var(--ink); border-radius: var(--radius); max-width: 620px; padding: 24px 28px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
dialog li { margin-bottom: 6px; }

/* ---- Fit each voting screen on one screen ---- */
/* With results showing, the question and answers shrink so the charts fit underneath */
#vote:has(#results:not([hidden])) { --q-size: clamp(1.5rem, 0.9rem + 2vw, 3rem); }
#vote:has(#results:not([hidden])) .opt { min-height: clamp(48px, 7vh, 72px); font-size: clamp(1.05rem, 0.8rem + 0.9vw, 1.6rem); }
/* After a vote on the shared screen, answers tighten a little to make room for Next voter */
#vote:has(#after:not([hidden])) .opt { min-height: clamp(56px, 9vh, 130px); font-size: clamp(1.1rem, 0.8rem + 1.2vw, 2.2rem); padding-block: 6px; }
#vote:has(#results:not([hidden])) .after .btn.big { min-height: clamp(52px, 7vh, 80px); }
#vote:has(#results:not([hidden])) { gap: clamp(8px, 1.2vh, 20px); }
#vote:has(#results:not([hidden])) .bubble { margin-bottom: 6px; }
.teacher-bar .btn { min-height: 44px; padding: 8px 16px; }
#vote:has(#results:not([hidden])) .magpie { width: clamp(56px, min(9vw, 13vh), 140px); }
#vote:has(#results:not([hidden])) .bubble { font-size: clamp(1rem, 0.8rem + 0.7vw, 1.7rem); }
.results:not(.pies) .r-row { row-gap: 2px; margin-bottom: 4px; }
/* Results: all cards in one row on wider screens; pies sit beside their key when the cards are wide enough */
@media (min-width: 700px) {
  .results { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); container-type: inline-size; }
}
.r-bar { height: 10px; }
@container (min-width: 752px) { .results.pies:not(:has(.r-card:nth-child(4))) .r-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-content: start; } }
@container (min-width: 1008px) { .results.pies:not(:has(.r-card:nth-child(5))) .r-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-content: start; } }
@container (min-width: 1264px) { .results.pies .r-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-content: start; } }
.results.pies .r-card > h2, .results.pies .r-card > .r-total, .results.pies .r-card > .r-more, .results.pies .r-card > .r-empty { grid-column: 1 / -1; }
.results.pies .r-card > .pie { grid-row: span 4; align-self: center; }
.results.pies .r-card > .r-row { grid-column: 2; }

/* Voting screen: the small AttoKit card replaces the footer on wide screens */
@media (min-width: 901px) { body[data-screen="vote"] .site-footer { display: none; } }

/* Setup: tighter, with the class code and switches side by side on wide screens */
#setup { padding-top: clamp(4px, 1vh, 16px); }
#setup h1 { margin: 2px 0 clamp(10px, 2vh, 20px); }
.mode-pick { margin-bottom: clamp(12px, 2vh, 24px); }
.mode-card { padding: 14px 20px; min-height: 64px; }
.fields { margin-bottom: clamp(12px, 2vh, 20px); }
.toggles .toggle { margin-bottom: 8px; }
.classcode { padding: 8px 16px 4px; }
.hint { margin: 0 0 8px; }
.code-msg { margin: 4px 0; }
@media (min-width: 900px) {
  #setupForm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "f f" "c t" "c a"; column-gap: 24px; align-items: start; }
  #setupForm .fields { grid-area: f; }
  #setupForm .classcode { grid-area: c; margin-bottom: 0; }
  #setupForm .toggles { grid-area: t; padding-top: 10px; }
  #setupForm .setup-actions { grid-area: a; align-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
