:root {
  color-scheme: light;
  --ink: #172536;
  --ink-soft: #34495d;
  --muted: #667b8d;
  --line: #d7e5ed;
  --line-strong: #b9ceda;
  --page: #f1f7fa;
  --surface: #ffffff;
  --surface-soft: #f7fbfd;
  --surface-accent: #edf5fc;
  --accent: #2f6fa8;
  --accent-hover: #275e8e;
  --accent-strong: #1f4e76;
  --blue: #2f6fa8;
  --blue-soft: #eef5fc;
  --gold: #8a5a0a;
  --gold-soft: #fff7e8;
  --red: #a12f35;
  --red-soft: #fff0f1;
  --green: #176b4b;
  --green-soft: #ecf8f2;
  --shadow-sm: 0 1px 2px rgba(23, 43, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 43, 58, 0.09);
  --radius: 8px;
  --content: 1180px;
  --content-wide: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: #215b8c;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(47, 113, 170, 0.25);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 12px;
  color: #fff;
  background: var(--accent-strong);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0 24px;
}

.surface-admin .wrap {
  width: min(100%, var(--content-wide));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent-strong);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav-shell {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.primary-nav > a,
.nav-overflow > summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.primary-nav > a:hover,
.nav-overflow > summary:hover {
  color: var(--accent-strong);
  background: var(--surface-accent);
}

.primary-nav > a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--surface-accent);
}

.primary-nav .nav-cta {
  margin-left: 5px;
  color: #fff;
  background: var(--accent);
}

.primary-nav .nav-cta:hover {
  color: #fff;
  background: var(--accent-hover);
}

.nav-overflow {
  position: relative;
}

.nav-overflow > summary {
  list-style: none;
}

.nav-overflow > summary::-webkit-details-marker {
  display: none;
}

.nav-overflow-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.nav-overflow-menu a {
  border-radius: 5px;
  padding: 9px 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.nav-overflow-menu a:hover,
.nav-overflow-menu a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--surface-accent);
}

main {
  min-height: calc(100vh - 132px);
}

main > .wrap {
  padding-top: 28px;
  padding-bottom: 48px;
}

.site-footer {
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.footer-copy {
  max-width: 560px;
}

.footer-copy strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.footer-copy p {
  margin: 1px 0 0;
  font-size: 11px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

p {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.page-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.page-actions,
.button-row,
.home-actions,
.session-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: 14px;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.panel-header p {
  margin: 3px 0 0;
  color: var(--muted);
}

.next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-left: 4px solid var(--accent);
  background: var(--surface-accent);
}

.next-action p {
  max-width: 760px;
  margin-bottom: 0;
}

.next-action .button {
  flex: 0 0 auto;
}

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

.two {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
  align-items: start;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid > .item {
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.detail-grid > .item .kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-tile,
.grid .panel.metric {
  min-height: 112px;
  padding: 15px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: none;
}

.metric .label,
.metric-tile .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric .value,
.metric-tile .value {
  margin-top: 7px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.metric .detail,
.metric-tile .detail {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.queue-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.queue-meta .item {
  min-width: 0;
  padding: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.queue-meta .kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.queue-meta .title {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

.pill.warn {
  color: var(--gold);
  background: var(--gold-soft);
}

.pill.bad {
  color: var(--red);
  background: var(--red-soft);
}

.notice,
.success-message,
.error-message {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--surface);
}

.success-message {
  color: var(--green);
  border-left-color: var(--green);
  background: var(--green-soft);
}

.error-message {
  color: var(--red);
  border-left-color: var(--red);
  background: var(--red-soft);
}

.bar {
  width: 100%;
  min-width: 90px;
  height: 8px;
  overflow: hidden;
  background: #dce9f0;
  border-radius: 999px;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.button,
button.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.button:hover {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: #9eb8c7;
}

.button.primary,
button.button.primary,
.auth-card button[type="submit"],
.home-login-card button[type="submit"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover,
button.button.primary:hover,
.auth-card button[type="submit"]:hover,
.home-login-card button[type="submit"]:hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button.danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e4b7ba;
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

form:last-child {
  margin-bottom: 0;
}

label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 40px;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #91adbd;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 113, 170, 0.14);
}

input[type="checkbox"],
input[type="radio"] {
  min-height: auto;
  accent-color: var(--accent);
}

input[type="search"] {
  min-width: 280px;
  flex: 1;
}

.form-stack,
.simple-login-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
}

.checkbox-field input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 62px;
}

.password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 30px;
  cursor: pointer;
  border: 0;
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.password-toggle:hover {
  background: var(--blue-soft);
}

.compact-form {
  align-items: center;
}

.compact-form label {
  margin: 0;
}

.list-toolbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.list-toolbar .button-row {
  flex-wrap: nowrap;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.table-scroll table {
  border: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #f8fbfd;
}

tr.active td {
  background: var(--gold-soft);
}

.table-scroll form {
  min-width: max-content;
}

.home-simple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  min-height: 570px;
  gap: 72px;
  align-items: center;
  padding: 42px 0;
}

.home-intro {
  max-width: 640px;
}

.home-intro h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 40px;
  line-height: 1.16;
}

.home-lead {
  max-width: 590px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.learning-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 24px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
}

.learning-path span {
  display: inline-flex;
  align-items: center;
}

.learning-path span:not(:last-child)::after {
  margin: 0 11px;
  color: var(--line-strong);
  content: "→";
  font-weight: 400;
}

.subject-line {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.subject-line strong {
  color: var(--ink-soft);
}

.pilot-note {
  display: inline-block;
  margin: 18px 0 0;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.home-login-card,
.auth-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.home-login-card h2,
.auth-card h1 {
  margin-bottom: 5px;
}

.login-help,
.auth-help {
  margin-top: 15px;
  padding-top: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.login-help p,
.auth-help p {
  margin: 7px 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(320px, 0.52fr);
  gap: clamp(28px, 6vw, 70px);
  max-width: 960px;
  margin: 12px auto;
  align-items: start;
}

.auth-context {
  padding-top: 22px;
}

.auth-context h1 {
  font-size: 32px;
}

.auth-context ul {
  padding-left: 20px;
}

.auth-context li {
  margin: 8px 0;
}

.auth-card .button {
  width: 100%;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
}

.legal-page .legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.question-stem {
  margin: 12px 0 17px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.options {
  display: grid;
  gap: 9px;
}

.option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 12px;
  background: var(--surface);
  transition: border-color 120ms ease, background 120ms ease;
}

.option:hover {
  border-color: #8faeba;
  background: var(--surface-soft);
}

.option input {
  margin-top: 4px;
}

.option-copy {
  display: grid;
  gap: 5px;
}

.option-copy .muted {
  font-size: 12px;
  font-weight: 400;
}

.option.correct {
  border-color: #75b79b;
  background: var(--green-soft);
}

.option.bad {
  border-color: #d59da1;
  background: var(--red-soft);
}

.session-header {
  display: grid;
  gap: 11px;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  color: var(--muted);
  font-size: 12px;
}

.session-question {
  padding: 22px;
}

.timer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
}

.timer-panel p {
  margin: 2px 0 0;
  font-size: 12px;
}

.timer-panel .label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.timer-panel .value {
  min-width: 92px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.session-footer {
  position: sticky;
  bottom: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

ol,
ul {
  padding-left: 22px;
}

li {
  margin: 7px 0;
}

code {
  padding: 2px 4px;
  background: #eaf3f8;
  border-radius: 4px;
}

pre {
  max-height: 620px;
  overflow: auto;
  padding: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f7fa;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.empty-state {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 1080px) {
  .surface-admin .topbar {
    align-items: flex-start;
  }

  .surface-admin .nav-toggle {
    display: block;
  }

  .surface-admin .nav-shell {
    position: relative;
  }

  .surface-admin .nav-shell:not([open]) > .primary-nav {
    display: none;
  }

  .surface-admin .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .surface-admin .primary-nav > a {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .wrap {
    padding-right: 17px;
    padding-left: 17px;
  }

  .topbar {
    min-height: 62px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-shell {
    position: relative;
  }

  .nav-shell:not([open]) > .primary-nav {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .primary-nav > a,
  .nav-overflow > summary {
    justify-content: flex-start;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
  }

  .nav-overflow-menu {
    position: static;
    min-width: 0;
    margin: 3px 0 0 9px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  main > .wrap {
    padding-top: 22px;
    padding-bottom: 36px;
  }

  .grid,
  .two,
  .three,
  .detail-grid,
  .home-simple,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .queue-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-simple {
    min-height: 0;
    gap: 26px;
    padding: 20px 0 12px;
  }

  .home-intro h1 {
    font-size: 35px;
  }

  .home-login-card {
    max-width: 560px;
  }

  .page-header,
  .next-action,
  .timer-panel,
  .list-toolbar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-toolbar {
    padding: 10px 0;
  }

  .timer-panel .value {
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 6px 12px;
  }

  .footer-inner {
    min-height: 0;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .footer-copy p {
    display: none;
  }

  input[type="search"] {
    min-width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 18px;
  }

  .home-intro h1 {
    font-size: 30px;
  }

  .home-lead {
    font-size: 16px;
  }

  .panel,
  .home-login-card,
  .auth-card,
  .session-question {
    padding: 15px;
  }

  .grid,
  .queue-meta {
    grid-template-columns: 1fr;
  }

  .learning-path {
    gap: 7px 0;
    font-size: 14px;
  }

  .learning-path span:not(:last-child)::after {
    margin: 0 7px;
  }

  .metric .value,
  .metric-tile .value {
    font-size: 24px;
  }

  form {
    align-items: stretch;
  }

  form > select,
  form > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  form > .button {
    width: 100%;
  }

  .table-scroll form > .button {
    width: auto;
  }

  .session-footer {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .session-footer > div,
  .session-footer form,
  .session-footer .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
