:root {
  --bg:
    radial-gradient(circle at top left, rgba(230, 235, 241, 0.98) 0%, rgba(230, 235, 241, 0) 34%),
    radial-gradient(circle at top right, rgba(243, 246, 249, 0.94) 0%, rgba(243, 246, 249, 0) 28%),
    linear-gradient(180deg, #e0e5eb 0%, #cdd5de 40%, #bac4d0 72%, #a9b5c3 100%);
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --surface-dark: #21313d;
  --ink: #20303e;
  --muted: rgba(32, 48, 62, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #111111;
  --accent-dark: #111111;
  --accent-soft: rgba(255, 255, 255, 0.12);
  --gold: #8a6b2d;
  --success: #1d6b4f;
  --danger: #8b2f2a;
  --shadow: 0 18px 40px rgba(33, 49, 61, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f5f5f7;
  min-height: 100vh;
}

body.home-page {
  background: var(--bg);
  background-attachment: fixed;
}

body.exam-mode-active {
  overflow: hidden;
  overscroll-behavior: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 32px 16px;
  border-bottom: 1px solid rgba(225, 227, 232, 0.9);
  background: #f5f5f7;
}

.brand-link {
  display: inline-block;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  color: #171717;
}

.brand-subtitle {
  color: #969ba3;
  font-size: 0.8rem;
  font-weight: 460;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.inline-nav-form {
  margin: 0;
}

.top-nav a {
  padding: 8px 0;
  color: var(--muted);
}

.nav-link {
  font-weight: 500;
}

.nav-link-disabled {
  opacity: 0.56;
  cursor: default;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px !important;
  border-radius: 999px;
  border: 1px solid #d2ddd9;
  background: #ffffff;
  color: #1f2f38 !important;
  font-weight: 550;
  cursor: pointer;
  font: inherit;
}

.nav-button-muted {
  background: #f6f7f5;
}

.nav-button-disabled,
.button-disabled {
  opacity: 0.56;
  cursor: default;
  pointer-events: none;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 28px 72px;
}

body.home-page .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

body.home-page .brand-name {
  color: rgba(24, 37, 48, 0.96);
}

body.home-page .brand-subtitle {
  color: rgba(28, 44, 58, 0.54);
}

body.home-page .top-nav a {
  color: rgba(27, 42, 54, 0.7);
}

body.home-page .nav-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #21313d !important;
}

body.home-page .nav-button-muted {
  background: rgba(255, 255, 255, 0.04);
}

body.home-page .page-shell {
  padding-top: 24px;
}

.hero-card,
.exam-card,
.frame-card,
.lane-card,
.question-card,
.student-card,
.result-panel,
.review-card,
.paper-sidebar,
.section-block.compact,
.exam-banner,
.sidebar-panel,
.analysis-strip article,
.auth-panel,
.auth-sidecard,
.payment-card,
.simple-stats div,
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  padding: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card h1,
.section-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.apple-home-shell {
  display: grid;
  gap: 34px;
}

.apple-home-hero-card {
  display: block;
  padding: 8px 12px 0;
}

.hero-benefits-card {
  padding: 0 2px 4px;
}

.practice-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 34px;
  margin-top: 18px;
}

.flow-step {
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.flow-step-number {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(33, 49, 61, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.flow-step h3 {
  margin: 0 0 8px;
  color: #314454;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 560;
}

.flow-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.5;
}

.apple-home-hero {
  max-width: 760px;
  padding: 8px 6px 6px;
  position: relative;
  z-index: 1;
}

.section-rule-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 6px 2px 0;
  color: rgba(32, 48, 62, 0.66);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-rule-title::before,
.section-rule-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
}

.section-rule-title span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.apple-home-hero h1 {
  margin: 0;
  font-family: "SF Pro Display", "Helvetica Neue", "Arial", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.04em;
  min-height: 4.6em;
}

.hero-line {
  display: block;
}

.hero-line-soft {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  color: rgba(244, 247, 250, 0.94);
  font-weight: 430;
  letter-spacing: -0.03em;
}

.hero-line-strong {
  margin-top: 0.24em;
  font-size: clamp(2.5rem, 5vw, 4.15rem);
  color: rgba(38, 52, 66, 0.9);
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.apple-home-hero .lead {
  margin: 12px 0 0;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(38, 52, 66, 0.62);
}

.apple-home-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.apple-panel {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.apple-panel::before {
  display: none;
}

.apple-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.32rem, 1.65vw, 1.68rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #314454;
  font-weight: 560;
}

.apple-panel p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.55;
}

.panel-footer {
  margin-top: 16px;
  margin-top: auto;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: rgba(33, 49, 61, 0.78);
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-metrics {
  display: grid;
  gap: 16px;
}

.hero-metrics div,
.banner-stats div {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-strong);
}

.hero-metrics strong,
.banner-stats strong,
.analysis-strip strong,
.simple-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.micro-note,
.submit-note,
.simple-stats span,
.step-card p,
.inline-meta,
.micro-copy,
.section-heading p,
.timer-card span,
.flash,
.stat-row,
.review-card p {
  color: var(--muted);
}

.section-block {
  margin-top: 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.with-kicker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.simple-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.simple-stats div,
.step-card,
.exam-card,
.frame-card,
.lane-card,
.result-panel,
.section-block.compact {
  padding: 18px 20px;
}

.steps-grid,
.studio-grid,
.system-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.step-number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.step-card h3,
.frame-card h2,
.lane-card h3,
.exam-card h3,
.result-panel h2,
.student-card h2,
.sidebar-panel h2 {
  margin-top: 0;
}

.exam-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.simple-card {
  border-radius: 16px;
}

.card-topline,
.student-card-head,
.question-head,
.tag-row,
.stat-row,
.submit-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.inline-meta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.95rem;
}

.paper-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 24px;
}

.paper-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  padding: 24px;
}

.sidebar-panel {
  margin-top: 18px;
  padding: 18px;
}

.question-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-map span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.92rem;
}

.paper-form,
.choices-grid,
.review-stack,
.auth-form {
  display: grid;
  gap: 14px;
}

.unified-auth-shell {
  max-width: 960px;
}

.unified-auth-panel {
  max-width: 560px;
}

.auth-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f8f7;
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.auth-tab.active {
  background: #ffffff;
  color: #1f2f38;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.captcha-row,
.verification-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.captcha-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #d3dfdb;
  background: #f4fbf8;
  color: #1f2f38;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.inline-button {
  min-height: 48px;
}

.student-card,
.question-card {
  padding: 24px;
}

.question-head p,
.stat-row,
.meta-list,
.plain-list {
  margin: 0;
}

.meta-list,
.plain-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.choice-option {
  display: block;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fffdf8;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.choice-option:hover {
  transform: translateY(-1px);
  border-color: #d2d0c8;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.choice-option input {
  margin-right: 10px;
}

.chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.82rem;
}

.chip-muted {
  background: #efeee8;
  color: var(--muted);
}

.button-primary {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #111111;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

.button-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button-secondary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  font-size: 1rem;
}

.timer-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-strong);
}

.timer-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  color: var(--accent-dark);
}

.exam-banner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 22px;
}

.banner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flash-stack {
  margin-bottom: 20px;
}

.flash {
  padding: 14px 18px;
  border-radius: 14px;
  background: #f5f7f4;
  border: 1px solid #d9dfd8;
}

.review-card.correct {
  border-left: 6px solid var(--success);
}

.review-card.incorrect {
  border-left: 6px solid var(--danger);
}

.insight-block + .insight-block {
  margin-top: 18px;
}

.analysis-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.analysis-strip article {
  padding: 18px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 24px;
}

.auth-panel,
.auth-sidecard {
  padding: 28px;
}

.payment-card {
  padding: 18px;
  margin-bottom: 18px;
}

.hidden {
  display: none !important;
}

.inside-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 4px 0 16px;
}

.exam-start-panel,
.exam-player,
.question-stem-panel,
.question-options-panel,
.next-panel {
  background: linear-gradient(180deg, #f4fbf8 0%, #edf5fb 100%);
  border: 1px solid #d7e6e3;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(65, 96, 118, 0.08);
}

.exam-start-panel {
  max-width: 760px;
  margin: 48px auto;
  padding: 32px;
}

.exam-player {
  position: fixed;
  inset: 0;
  z-index: 60;
  min-height: 100vh;
  padding: 12px;
  overflow: hidden;
  overscroll-behavior: none;
}

.exam-player-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  height: 68px;
}

.exam-status-card {
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d7e6e3;
}

.align-right {
  text-align: right;
}

.status-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.exam-player-body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: stretch;
  height: calc(100vh - 90px);
}

.exam-main-column {
  display: grid;
  min-height: 0;
}

.exam-question-screen {
  display: grid;
  gap: 10px;
  grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
  min-height: 0;
}

.question-stem-panel,
.question-options-panel,
.next-panel {
  padding: 16px;
}

.question-stem-panel {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.question-options-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.question-stem-head,
.options-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
}

.question-stem-panel h2 {
  margin: 0;
  font-size: clamp(1.22rem, 1.6vw, 1.5rem);
  line-height: 1.5;
}

.stem-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
  height: calc(100% - 42px);
}

.stem-layout-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  height: calc(100% - 42px);
}

.stem-copy {
  display: flex;
  align-items: flex-start;
}

.stem-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  max-height: 190px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d6e1e0;
}

.stem-image-box-wide {
  min-height: 138px;
  max-height: 168px;
}

.stem-image-box img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.options-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "a b"
    "c d"
    "e quit";
  gap: 10px;
  margin-top: 8px;
  min-height: 0;
  flex: 1 1 auto;
}

.option-tile {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  padding: 10px 14px;
  border: 1.5px solid #c9dcda;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.choice-slot-a {
  grid-area: a;
}

.choice-slot-b {
  grid-area: b;
}

.choice-slot-c {
  grid-area: c;
}

.choice-slot-d {
  grid-area: d;
}

.choice-slot-e {
  grid-area: e;
}

.choice-slot-quit {
  grid-area: quit;
}

.option-tile:hover {
  transform: translateY(-1px);
  border-color: #86b2b5;
}

.option-tile.selected {
  background: #d8eee4;
  border-color: #1d6b4f;
  box-shadow: inset 0 0 0 2px #1d6b4f;
}

.option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e8f1f3;
  color: #28556c;
  font-weight: 700;
}

.option-tile.selected .option-key {
  background: #1d6b4f;
  color: #ffffff;
}

.option-tile-pass {
  border-color: #d8d4cb;
  background: rgba(255, 250, 244, 0.82);
}

.option-tile-pass:hover {
  border-color: #b58b72;
}

.option-tile-pass .option-key {
  background: #efe5d8;
  color: #7a5130;
}

.option-text {
  color: #1f2f38;
  font-size: 1.08rem;
  line-height: 1.24;
}

.math-inline {
  display: inline-block;
}

.math-frac {
  display: inline-grid;
  grid-template-rows: auto 1px auto;
  align-items: center;
  justify-items: center;
  vertical-align: middle;
  margin: 0 0.1em;
}

.math-frac-top,
.math-frac-bottom {
  font-size: 0.88em;
  line-height: 1.1;
}

.math-frac-bar {
  width: 100%;
  min-width: 1.2em;
  height: 1px;
  background: currentColor;
  margin: 0.1em 0;
}

.exam-side-column {
  display: grid;
  min-height: 0;
}

.next-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  min-height: 100%;
}

.next-panel h3 {
  margin: 8px 0 10px;
  font-size: 1.1rem;
}

.next-button {
  width: 100%;
  margin-top: auto;
}

.next-panel .micro-copy {
  line-height: 1.5;
}

.next-panel .micro-copy p {
  margin: 0 0 14px;
}

.next-panel .micro-copy p:last-child {
  margin-bottom: 0;
}

.next-panel .micro-copy strong {
  color: #1d6b4f;
  font-weight: 700;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.workspace-sidebar,
.workspace-main,
.status-stack,
.paper-list {
  display: grid;
  gap: 16px;
}

.workspace-section {
  margin-top: 8px;
}

.sidebar-card,
.paper-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.sidebar-card {
  padding: 18px;
}

.status-row,
.paper-row,
.paper-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.paper-row {
  padding: 18px;
}

.paper-row-main {
  flex: 1;
}

.paper-row-main h3 {
  margin: 0;
}

.paper-row-main p {
  margin: 8px 0 0;
  color: var(--muted);
}

.paper-row-action {
  display: flex;
  align-items: center;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .site-header,
  .question-head,
  .submit-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card,
  .paper-layout,
  .exam-banner,
  .section-heading.with-kicker,
  .auth-shell,
  .workspace-grid,
  .home-info-grid,
  .apple-home-panels,
  .practice-flow-grid,
  .inside-hero,
  .exam-player-body,
  .exam-player-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .apple-home-hero-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .paper-sidebar {
    position: static;
  }

  .banner-stats,
  .dashboard-grid,
  .simple-stats,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stem-layout-grid {
    grid-template-columns: 1fr;
  }

  .options-stack {
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e"
      "quit";
  }

  .apple-home-hero {
    margin-top: 0;
    padding-top: 8px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 18px 20px 12px;
  }

  .page-shell {
    padding: 28px 16px 44px;
  }

  body.home-page .page-shell {
    padding-top: 18px;
  }

  .hero-card,
  .exam-card,
  .frame-card,
  .lane-card,
  .question-card,
  .student-card,
  .result-panel,
  .review-card,
  .paper-sidebar,
  .exam-banner,
  .auth-panel,
  .auth-sidecard,
  .payment-card,
  .simple-stats div,
  .step-card {
    border-radius: 16px;
  }

  .banner-stats,
  .dashboard-grid,
  .simple-stats,
  .steps-grid,
  .two-up {
    grid-template-columns: 1fr;
  }

  .exam-player {
    padding: 12px;
  }

  .exam-player-header {
    height: auto;
  }

  .exam-player-body {
    height: calc(100vh - 180px);
  }

  .question-stem-panel,
  .question-options-panel,
  .next-panel,
  .exam-start-panel {
    padding: 18px;
  }
}
