/* Fixed shell + one answer scroller: never animate height, scrollTop or page layout. */
:root {
  color-scheme:light;
  --ink:#193347;
  --muted:#667e90;
  --blue:#206a9e;
  --blue-dark:#15527e;
  --blue-wash:#eaf4fb;
  --line:#dce5ec;
  --surface:#fff;
  --canvas:#f2f5f8;
  --green:#237653;
  --radius:16px;
  --shadow:0 6px 24px #203b5010;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
}
* {
  box-sizing:border-box;
}
html,body {
  margin:0;
  padding:0;
  height:100%;
  overflow:hidden;
}
body {
  font-family:var(--font);
  color:var(--ink);
  background:var(--canvas);
  font-size:16px;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
button,input {
  font:inherit;
}
button {
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
button:disabled {
  cursor:not-allowed;
  opacity:.48;
}
button:focus-visible,input:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible {
  outline:3px solid #4d9fce;
  outline-offset:3px;
}
h1:focus,h2:focus {
  outline:none;
}
[hidden] {
  display:none!important;
}
h1,h2,h3,p {
  margin:0;
}
button {
  color:inherit;
}
img {
  display:block;
  max-width:100%;
}
strong,b {
  font-weight:750;
}
.muted {
  color:var(--muted);
}
.app-shell {
  height:100vh;
  height:100svh;
  max-width:1280px;
  margin:0 auto;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  padding-top:env(safe-area-inset-top);
  padding-left:env(safe-area-inset-left);
  padding-right:env(safe-area-inset-right);
}
.app-header {
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 30px;
  border-bottom:1px solid var(--line);
  gap:12px;
}
.brand {
  display:flex;
  align-items:center;
  gap:8px;
}
.brand-mark {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
  background:var(--blue);
  color:#fff;
  font-size:18px;
  font-weight:800;
  letter-spacing:-1px;
}
.brand strong {
  font-size:16px;
  letter-spacing:.02em;
}
.version-label {
  border:1px solid #d7e3eb;
  border-radius:99px;
  background:#fff8;
  padding:6px 10px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.version-label b {
  color:var(--blue);
  margin-left:2px;
}
.app-main,.screen {
  min-height:0;
  min-width:0;
  height:100%;
}
.screen {
  display:flex;
  flex-direction:column;
}
.page-scroll {
  min-height:0;
  flex:1;
  overflow:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  overflow-anchor:none;
}
.card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
}
.eyebrow {
  color:var(--blue);
  font-size:11px;
  letter-spacing:.09em;
  font-weight:800;
}
.section-heading {
  margin-bottom:24px;
}
.section-heading h1 {
  font-size:26px;
  line-height:1.55;
  letter-spacing:-.04em;
  margin-top:7px;
}
.section-heading>p {
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
  margin-top:6px;
}
.intro-content {
  padding:30px;
  max-width:960px;
  margin:auto;
}
.intro-grid {
  display:block;
}
.intro-material {
  overflow:hidden;
}
.panel-bar {
  height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 15px;
  gap:12px;
  font-size:12px;
  font-weight:700;
  border-bottom:1px solid var(--line);
}
.panel-bar>.muted {
  font-size:11px;
  font-weight:500;
}
.mini-label {
  font-size:10px;
  color:var(--blue);
  margin-right:8px;
}
.image-button {
  display:block;
  border:0;
  padding:0;
  background:white;
  width:100%;
  position:relative;
  cursor:zoom-in;
  overflow:hidden;
}
.intro-image img {
  width:100%;
  height:auto;
  aspect-ratio:16/9;
}
.zoom-badge {
  position:absolute;
  bottom:10px;
  right:10px;
  font-size:11px;
  background:#1d425dd9;
  color:#fff;
  padding:6px 10px;
  border-radius:6px;
}
.intro-meta {
  display:flex;
  gap:24px;
  align-items:center;
  flex-wrap:wrap;
  padding:22px 0 15px;
  font-size:12px;
  color:var(--muted);
}
.intro-meta b {
  font-size:19px;
  color:var(--ink);
  padding-right:2px;
}
.privacy-note {
  font-size:11px;
  line-height:1.85;
  color:var(--muted);
  margin-top:12px;
}
.resume-note {
  font-size:12px;
  color:var(--blue);
  margin-top:12px;
}
.screen-footer {
  flex:none;
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid var(--line);
  background:var(--canvas);
  padding:14px 30px max(14px,env(safe-area-inset-bottom));
}
.button {
  border-radius:11px;
  min-height:48px;
  padding:12px 22px;
  font-size:15px;
  font-weight:750;
  line-height:1.4;
  border:1px solid transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  white-space:nowrap;
  transition:background-color .12s,border-color .12s;
}
.primary {
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}
.secondary {
  background:white;
  border-color:#cfdde7;
  color:#365e79;
}
.text-button,.small-button,.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:var(--blue);
  font-weight:700;
  min-height:44px;
  padding:6px 10px;
  border-radius:8px;
  line-height:1.4;
}
.text-button {
  font-size:13px;
}
.small-button {
  font-size:12px;
  min-height:36px;
  padding:4px 6px;
}
.icon-button {
  width:44px;
  height:44px;
  flex:none;
  font-size:23px;
  background:#eff5f9;
}
.footer-aside {
  font-size:12px;
  color:var(--muted);
}
.intro-footer .primary {
  min-width:300px;
}
.footer-status {
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.footer-status.done {
  color:var(--green);
}
.quiz-top {
  flex:none;
  padding:0 30px 8px;
}
.quiz-brand {
  display:none;
}
.quiz-top-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.quiz-top h1 {
  display:flex;
  gap:5px;
  align-items:baseline;
  font-size:20px;
  line-height:1.4;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.quiz-top h1>.muted {
  font-size:13px;
  font-weight:600;
}
.question-total {
  font-size:12px;
  color:#8194a4;
  font-weight:500;
}
.quiz-top-tools {
  display:flex;
  gap:6px;
}
.progress-row {
  display:flex;
  gap:16px;
  align-items:center;
  margin-top:0;
}
.progress-dots {
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:5px;
  flex:1;
}
.progress-segment {
  height:4px;
  border-radius:9px;
  background:#dce5ed;
}
.progress-segment.answered {
  background:#72a5c3;
}
.progress-segment.current {
  background:var(--blue);
  box-shadow:0 0 0 1px var(--blue);
}
.answered-count {
  font-size:11px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  color:var(--muted);
}
.quiz-workspace {
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.14fr) minmax(320px,1fr);
  gap:22px;
  padding:0 30px 18px;
}
.slide-panel {
  overflow:hidden;
  min-width:0;
  align-self:start;
}
.question-image {
  aspect-ratio:16/9;
}
.question-image img {
  width:100%;
  height:100%;
  object-fit:contain;
  aspect-ratio:16/9;
}
.desktop-slide-note {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  padding:16px;
  border-top:1px solid var(--line);
}
.answer-panel {
  min-height:0;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  overflow-anchor:none;
  scrollbar-gutter:stable;
  scroll-behavior:auto;
  outline-offset:-4px!important;
}
.question-panel {
  padding:23px;
}
.answer-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:12px;
}
.answer-heading h2 {
  min-width:0;
  flex:1;
  font-size:17px;
  line-height:1.5;
}
.point-label {
  flex:none;
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
  border-radius:5px;
  background:var(--canvas);
  padding:4px 6px;
}
.question-text {
  border-top:1px solid #e8eef3;
  margin-top:17px;
  font-size:14px;
}
.question-text summary {
  color:var(--muted);
  font-size:12px;
  cursor:pointer;
  min-height:36px;
  padding:12px 0 5px;
}
.question-text>p {
  line-height:1.8;
  padding-bottom:15px;
}
.choice-list {
  display:flex;
  flex-direction:column;
  gap:10px;
}
.choice {
  position:relative;
  min-height:55px;
  display:flex;
  align-items:center;
  gap:13px;
  border:1px solid #d5e1eb;
  border-radius:11px;
  padding:10px 13px;
  cursor:pointer;
  background:white;
  transition:background-color .12s,border-color .12s;
}
.choice input {
  flex:none;
  width:19px;
  height:19px;
  margin:0 0 0 auto;
  accent-color:var(--blue);
}
.choice-code {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  flex:none;
  background:#edf3f8;
  color:#486d86;
  border-radius:8px;
  font-weight:800;
  font-size:13px;
}
.choice-text {
  font-size:16px;
  line-height:1.5;
  font-weight:650;
}
.choice:has(input:checked) {
  background:var(--blue-wash);
  border-color:var(--blue);
}
.choice:has(input:checked) .choice-code {
  background:var(--blue);
  color:#fff;
}
.choice:has(input:focus-visible) {
  outline:3px solid #4d9fce;
  outline-offset:2px;
}
.answer-note {
  font-size:11px;
  line-height:1.8;
  color:var(--muted);
  padding:17px 0 0;
}
.match-instruction {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
  margin-bottom:16px;
}
.match-list {
  display:flex;
  flex-direction:column;
  gap:14px;
}
.match-row {
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  background:#f9fbfc;
}
.match-head {
  display:flex;
  align-items:start;
  gap:9px;
  margin-bottom:13px;
}
.match-code {
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:6px;
  color:var(--blue);
  background:#e7f0f7;
  font-size:12px;
  font-weight:800;
}
.match-title {
  font-size:14px;
  font-weight:650;
  line-height:1.65;
  flex:1;
}
.match-options {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:5px;
  border:0;
  margin:0;
  padding:0;
  min-width:0;
}
.match-choice {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px solid #d5e1eb;
  border-radius:8px;
  background:white;
  min-height:44px;
  cursor:pointer;
  padding:4px 2px;
  font-size:16px;
  line-height:1.4;
  white-space:nowrap;
}
.match-choice input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.match-choice:has(input:checked) {
  background:var(--blue);
  border-color:var(--blue);
  color:white;
}
.match-choice:has(input:focus-visible) {
  outline:3px solid #4d9fce;
  outline-offset:2px;
}
.match-state {
  font-size:10px;
  color:var(--muted);
  font-weight:500;
  flex:0 0 4em;
  text-align:right;
  margin-left:auto;
  white-space:nowrap;
  padding-top:3px;
}
.match-row.is-answered .match-state {
  color:var(--green);
}
.narrow-content {
  max-width:820px;
  margin:auto;
  padding:28px 30px 30px;
}
.review-list,.result-list {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.review-row {
  width:100%;
  display:flex;
  align-items:center;
  gap:15px;
  text-align:left;
  padding:17px 18px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  min-height:76px;
}
.review-number {
  width:42px;
  height:42px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#edf3f8;
  color:var(--blue);
  font-size:13px;
  font-weight:750;
}
.review-body {
  flex:1;
  min-width:0;
}
.review-body strong {
  display:block;
  font-size:14px;
  line-height:1.6;
}
.review-body p {
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
  margin-top:3px;
}
.review-arrow {
  color:var(--muted);
  font-size:22px;
}
.review-row.is-missing {
  border-color:#d8ac68;
  background:#fffaf2;
}
.review-row.is-missing .review-body p {
  color:#966526;
}
.inline-error {
  padding:14px;
  border:1px solid #dfb0ad;
  border-radius:10px;
  color:#963c37;
  background:#fff1f0;
  font-size:13px;
  line-height:1.7;
  margin-top:15px;
}
.score-card {
  border-radius:18px;
  background:#193f60;
  color:white;
  padding:28px 30px;
  position:relative;
  overflow:hidden;
}
.score-card .eyebrow {
  color:#99c8e7;
}
.score-card h1 {
  font-size:21px;
  line-height:1.6;
  margin-top:9px;
}
.score-number {
  display:flex;
  align-items:baseline;
  gap:10px;
  margin:10px 0;
}
.score-number>span:first-child {
  font-size:76px;
  line-height:1.2;
  letter-spacing:-.04em;
  font-weight:800;
}
.score-denominator {
  font-size:22px;
  color:#c5dbeb;
}
.score-card>p {
  font-size:13px;
  color:#c5dbeb;
  line-height:1.8;
}
.score-card .score-note {
  font-size:11px;
  color:#9cbed7;
  margin-top:8px;
}
.result-section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin:22px 0 12px;
}
.result-section-heading h2 {
  font-size:17px;
}
.result-row {
  border:1px solid var(--line);
  border-radius:12px;
  background:white;
  padding:18px;
}
.result-row-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:13px;
}
.result-row-head h3 {
  font-size:15px;
}
.result-badge {
  font-size:11px;
  font-weight:750;
  color:#8d6028;
  background:#fff1da;
  padding:6px 9px;
  border-radius:6px;
}
.result-badge.correct {
  color:var(--green);
  background:#e9f5ee;
}
.result-row>p {
  font-size:13px;
  line-height:1.8;
  color:#536e83;
}
.result-row .explanation {
  border-top:1px solid #edf1f5;
  padding-top:12px;
  margin-top:12px;
}
.result-match {
  font-size:13px;
  line-height:1.8;
  padding:9px 0;
  border-top:1px solid #edf1f5;
}
.result-match>strong {
  display:block;
  font-size:12px;
  font-weight:650;
  margin-bottom:4px;
}
.result-match .correct-mark {
  color:var(--green);
}
.result-match .wrong-mark {
  color:#966526;
}
.result-slide-link {
  margin-top:9px;
  padding-left:0;
  min-height:40px;
  font-size:12px;
}
dialog {
  color:var(--ink);
  background:white;
  border:1px solid var(--line);
  padding:0;
  box-shadow:0 20px 90px #102e5270;
  border-radius:16px;
  max-width:calc(100vw - 24px);
  max-height:90vh;
  max-height:90svh;
}
dialog::backdrop {
  background:#10273cbd;
}
.dialog-head {
  height:62px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 14px 8px 20px;
  border-bottom:1px solid var(--line);
  gap:12px;
}
.dialog-head h2 {
  font-size:15px;
  line-height:1.5;
}
.slide-dialog {
  width:1120px;
  height:88vh;
  height:88svh;
}
.slide-dialog[open] {
  display:flex;
  flex-direction:column;
}
.zoom-stage {
  flex:1;
  min-height:0;
  overflow:auto;
  background:#e9eef2;
  overscroll-behavior:contain;
  overflow-anchor:none;
  padding:12px;
  scrollbar-gutter:stable;
}
.zoom-stage img {
  max-width:none;
  height:auto;
  margin:0 auto;
  background:white;
  box-shadow:0 4px 15px #19334712;
}
.zoom-toolbar {
  display:flex;
  flex:none;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:9px 16px;
  border-top:1px solid var(--line);
}
.zoom-toolbar>span {
  font-size:11px;
  color:var(--muted);
  line-height:1.5;
}
.zoom-controls {
  display:flex;
  gap:6px;
  align-items:center;
}
.zoom-controls .text-button {
  min-width:52px;
  font-variant-numeric:tabular-nums;
}
.overview-dialog {
  width:460px;
  padding-bottom:18px;
}
.dialog-note {
  font-size:12px;
  color:var(--muted);
  padding:16px 20px 10px;
}
.overview-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  padding:0 20px;
}
.overview-item {
  border:1px solid var(--line);
  border-radius:10px;
  background:white;
  padding:12px;
  min-height:66px;
  display:flex;
  flex-direction:column;
  text-align:left;
  gap:5px;
}
.overview-item strong {
  font-size:14px;
}
.overview-item span {
  font-size:11px;
  color:var(--muted);
}
.overview-item.is-current {
  border-color:var(--blue);
  background:var(--blue-wash);
}
.overview-item.is-answered span {
  color:var(--green);
}
.overview-review {
  display:flex;
  width:calc(100% - 40px);
  margin:16px 20px 0;
}
.reset-dialog {
  width:440px;
  padding:24px;
}
.reset-dialog h2 {
  font-size:18px;
  line-height:1.6;
}
.reset-dialog p {
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
  margin-top:12px;
}
.dialog-actions {
  display:flex;
  gap:12px;
  margin-top:24px;
}
.dialog-actions .button {
  flex:1;
  padding-left:10px;
  padding-right:10px;
}
.toast {
  position:fixed;
  bottom:calc(92px + env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  background:#1d3d56;
  color:white;
  z-index:50;
  padding:12px 16px;
  border-radius:10px;
  box-shadow:0 6px 24px #0f2b4330;
  font-size:13px;
  line-height:1.6;
  text-align:center;
  max-width:calc(100vw - 32px);
  width:max-content;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s;
}
.toast.visible {
  opacity:1;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.noscript {
  position:fixed;
  inset:0;
  background:white;
  z-index:100;
  padding:40px;
  line-height:1.8;
}
@media(hover:hover) {
  .primary:not(:disabled):hover {
    background:var(--blue-dark);
  }
  .secondary:hover,.text-button:hover,.small-button:hover {
    background:var(--blue-wash);
  }
  .choice:hover {
    border-color:#9cbbd0;
  }
  .review-row:hover {
    border-color:#8db3cf;
  }
}
@media(max-width:760px) {
  .app-shell.is-quiz {
    grid-template-rows:minmax(0,1fr);
  }
  .is-quiz .app-header {
    display:none;
  }
  .quiz-brand {
    display:inline-grid;
    place-items:center;
    align-self:center;
    width:27px;
    height:27px;
    margin-right:3px;
    border-radius:7px;
    background:var(--blue);
    color:white;
    font-size:15px;
    font-weight:800;
  }
  .app-header {
    min-height:44px;
    padding:5px 12px;
  }
  .brand {
    gap:7px;
  }
  .brand-mark {
    width:30px;
    height:30px;
    font-size:17px;
    border-radius:8px;
  }
  .brand strong {
    font-size:14px;
  }
  .version-label {
    font-size:10px;
    padding:5px 8px;
  }
  .intro-content {
    padding:22px 15px;
  }
  .section-heading {
    margin-bottom:17px;
  }
  .section-heading h1 {
    font-size:21px;
    margin-top:5px;
  }
  .section-heading>p {
    font-size:12px;
  }
  .intro-meta {
    gap:12px 18px;
    padding:18px 0 5px;
    font-size:11px;
  }
  .intro-meta b {
    font-size:17px;
  }
  .screen-footer {
    min-height:74px;
    padding:11px 15px max(11px,env(safe-area-inset-bottom));
    gap:10px;
  }
  .button {
    min-height:48px;
    padding:11px 15px;
    font-size:14px;
    border-radius:10px;
    gap:8px;
  }
  .intro-footer .footer-aside {
    display:none;
  }
  .intro-footer .primary {
    width:100%;
    min-width:0;
  }
  .quiz-top {
    padding:2px 12px 6px;
  }
  .quiz-top h1 {
    font-size:19px;
    gap:4px;
  }
  .question-total {
    font-size:12px;
  }
  .quiz-top-tools {
    gap:2px;
  }
  .quiz-top-tools .text-button {
    font-size:13px;
    padding:6px 7px;
  }
  .progress-row {
    gap:13px;
    margin-top:0;
  }
  .answered-count {
    font-size:11px;
  }
  .quiz-workspace {
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:0 12px 6px;
  }
  .slide-panel {
    position:relative;
    width:100%;
    flex:none;
    border-radius:12px;
  }
  .panel-bar {
    height:34px;
    padding:0 12px;
    font-size:11px;
  }
  .small-button {
    min-height:32px;
  }
  .slide-panel>.panel-bar {
    position:absolute;
    top:4px;
    right:4px;
    z-index:1;
    height:44px;
    padding:0;
    border:0;
    border-radius:8px;
    background:#fffffff0;
  }
  #slideLabel {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .slide-panel .small-button {
    min-height:44px;
    padding:4px 9px;
    font-size:13px;
  }
  .question-image {
    aspect-ratio:16/9;
    height:auto;
    min-height:0;
  }
  .question-image img {
    width:100%;
    height:100%;
    object-fit:contain;
  }
  .desktop-slide-note {
    display:none;
  }
  .answer-panel {
    flex:1;
    width:100%;
    border-radius:12px;
  }
  .question-panel {
    padding:12px;
  }
  .answer-heading {
    margin-bottom:8px;
  }
  .answer-heading h2 {
    font-size:16px;
  }
  .question-text {
    margin-top:12px;
  }
  .question-text summary {
    font-size:12px;
    min-height:30px;
    padding:10px 0 5px;
  }
  .question-text>p {
    font-size:14px;
  }
  .choice-list {
    gap:8px;
  }
  .choice {
    min-height:54px;
    min-width:0;
    padding:9px 11px;
    gap:8px;
  }
  .choice-code {
    width:26px;
    height:26px;
    font-size:13px;
  }
  .choice-text {
    font-size:18px;
  }
  .choice input {
    width:20px;
    height:20px;
  }
  .category-choices {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .category-choices>.choice {
    min-height:64px;
  }
  .category-choices>.choice:last-child:nth-child(odd) {
    grid-column:1/-1;
  }
  .quiz-footer .primary {
    min-width:144px;
  }
  .quiz-footer .secondary {
    min-width:85px;
  }
  .footer-status {
    font-size:11px;
  }
  .quiz-footer {
    min-height:60px;
    padding:8px 12px max(8px,env(safe-area-inset-bottom));
  }
  .quiz-footer .button {
    min-height:48px;
    font-size:15px;
    padding-top:9px;
    padding-bottom:9px;
  }
  .answer-note {
    padding-top:13px;
  }
  .match-row {
    padding:12px;
  }
  .match-head {
    gap:7px;
  }
  .match-title {
    font-size:14px;
  }
  .match-state {
    font-size:10px;
  }
  .match-instruction {
    font-size:13px;
  }
  .match-options {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }
  .match-choice {
    min-height:50px;
    font-size:17px;
  }
  .narrow-content {
    padding:22px 15px;
  }
  .review-row {
    padding:14px 12px;
    gap:10px;
  }
  .review-number {
    width:36px;
    height:36px;
    font-size:12px;
  }
  .review-body strong {
    font-size:13px;
  }
  .review-body p {
    font-size:11px;
  }
  .score-card {
    padding:23px;
  }
  .score-card h1 {
    font-size:19px;
  }
  .score-number>span:first-child {
    font-size:68px;
  }
  .result-row {
    padding:16px;
  }
  .slide-dialog {
    width:100vw;
    height:100vh;
    height:100svh;
    max-width:none;
    max-height:none;
    border:0;
    border-radius:0;
    margin:0;
    padding-top:env(safe-area-inset-top);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .dialog-head {
    height:58px;
    padding-left:15px;
  }
  .dialog-head h2 {
    font-size:14px;
  }
  .zoom-toolbar {
    padding:8px 12px;
  }
  .zoom-toolbar>span {
    font-size:10px;
    max-width:140px;
  }
  .zoom-stage {
    padding:8px;
  }
  .overview-dialog {
    max-height:90svh;
    overflow:auto;
  }
  .reset-dialog {
    padding:21px;
  }
}
@media(max-width:360px) {
  .brand strong {
    font-size:13px;
  }
  .version-label {
    font-size:9px;
  }
  .question-panel {
    padding:10px;
  }
  .quiz-footer .primary {
    min-width:0;
    flex:1;
  }
  .footer-status {
    display:none;
  }
  .match-options {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .match-title {
    font-size:14px;
  }
  .button {
    font-size:13px;
  }
  .quiz-top-tools .text-button {
    font-size:13px;
    padding:6px;
  }
  .category-choices>.choice {
    min-height:60px;
    padding:8px;
    gap:6px;
  }
  .result-section-heading h2 {
    font-size:15px;
  }
  .result-section-heading .text-button {
    font-size:11px;
  }
}
@media(max-height:500px) and (min-width:600px) {
  .app-shell.is-quiz {
    grid-template-rows:minmax(0,1fr);
  }
  .is-quiz .app-header {
    display:none;
  }
  .quiz-brand {
    display:inline-grid;
    place-items:center;
    align-self:center;
    width:27px;
    height:27px;
    margin-right:3px;
    border-radius:7px;
    background:var(--blue);
    color:white;
    font-size:15px;
  }
  .app-header {
    min-height:42px;
    padding:4px 18px;
  }
  .brand-mark {
    width:30px;
    height:30px;
    font-size:17px;
  }
  .quiz-top {
    padding:0 18px 6px;
  }
  .quiz-top h1 {
    font-size:19px;
  }
  .progress-row {
    margin-top:0;
  }
  .quiz-workspace {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(280px,1fr);
    grid-template-rows:minmax(0,1fr);
    gap:14px;
    padding:0 18px 8px;
  }
  .slide-panel {
    display:flex;
    flex-direction:column;
    align-self:stretch;
    min-height:0;
  }
  .slide-panel .panel-bar {
    flex:none;
  }
  .question-image {
    flex:1;
    height:auto;
    aspect-ratio:auto;
    min-height:0;
  }
  .desktop-slide-note {
    display:none;
  }
  .screen-footer {
    min-height:60px;
    padding:6px 18px max(6px,env(safe-area-inset-bottom));
  }
  .button {
    min-height:44px;
  }
  .question-panel {
    padding:14px;
  }
  .overview-list {
    grid-template-columns:repeat(4,1fr);
  }
  .overview-dialog {
    width:650px;
  }
  .overview-item {
    padding:9px;
  }
  .dialog-note {
    padding-top:9px;
  }
  .dialog-head {
    height:50px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
