:root {
  --ink: #142033;
  --muted: #657186;
  --line: #d9e3ee;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --navy: #0e3148;
  --green: #13795f;
  --red: #b8323b;
  --amber: #bc7a20;
  --blue: #2d6fba;
  --warm: #fff6e6;
  --mint: #e8f6f1;
  --sky: #edf6fb;
  --page-gutter: clamp(16px, 3.5vw, 52px);
  --shadow: 0 22px 58px rgba(16, 31, 48, 0.15);
  --soft-shadow: 0 12px 28px rgba(16, 31, 48, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fbfc 0, var(--soft) 420px),
    var(--soft);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 var(--page-gutter);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  font-weight: 900;
}

.brand span:last-child {
  display: grid;
  gap: 1px;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #1d6b67);
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(18, 56, 85, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  background: #f3f7fa;
}

.nav a.active {
  color: var(--navy);
  border-color: rgba(45, 111, 186, 0.2);
  background: #eef6fb;
}

.nav-cta {
  color: white !important;
  background: var(--navy);
  padding: 9px 14px !important;
  box-shadow: 0 8px 18px rgba(14, 49, 72, 0.18);
}

.nav-cta:hover {
  background: #174b69 !important;
}

.hero,
.page-header,
.auth-layout,
.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 8vw, 86px) var(--page-gutter);
  background: var(--paper);
}

.hero {
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(135deg, rgba(238, 247, 245, 0.88), rgba(255, 249, 238, 0.9)),
    var(--paper);
}

.home-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  min-height: min(720px, calc(100svh - 210px));
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(9, 28, 44, 0.92) 0%, rgba(13, 49, 72, 0.78) 42%, rgba(13, 49, 72, 0.28) 72%, rgba(13, 49, 72, 0.12) 100%),
    url("../img/hero-study.png") center / cover no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 170px;
  background: linear-gradient(180deg, rgba(9, 28, 44, 0), rgba(9, 28, 44, 0.3));
}

.home-hero-copy {
  max-width: 740px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.22);
}

.home-hero .lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow.light {
  color: #9fe7d4;
}

.light-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #2ca27e, #2d6fba);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.light-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-stats,
.login-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 30px 0 0;
}

.hero-stats div,
.login-highlights div {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
}

.hero-stats dt,
.login-highlights dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stats dd,
.login-highlights dd {
  margin: 4px 0 0;
  color: white;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.05;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.trust-strip span,
.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(22, 122, 90, 0.22);
  border-radius: 8px;
  color: var(--green);
  background: rgba(234, 247, 241, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.hero-actions,
.action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(18, 56, 85, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.button.primary {
  color: white;
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--navy), #1a5b66);
}

.button.secondary {
  color: var(--navy);
  background: #eef6fb;
}

.button.light-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #2ca27e, #2d6fba);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.button.light-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.button.muted {
  color: var(--red);
  background: #fff3f3;
}

.button.full {
  width: 100%;
  margin-top: 18px;
}

.exam-preview {
  width: 100%;
  max-width: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: var(--shadow);
}

.premium-preview {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #1d6b67);
}

.preview-topline div:first-child {
  display: grid;
  gap: 2px;
}

.preview-topline span,
.source-mini span,
.progress-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.timer-chip {
  display: grid;
  place-items: center;
  min-width: 82px;
  min-height: 42px;
  border-radius: 8px;
  color: var(--navy);
  background: white;
  font-size: 20px;
  font-weight: 900;
}

.progress-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-row span {
  color: var(--muted);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8edf3;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.preview-header,
.preview-result,
.solution-head,
.row-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.preview-header {
  padding: 12px 14px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
}

.preview-question {
  display: flex;
  gap: 14px;
  margin: 4px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.question-number,
.solution-head span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-weight: 800;
}

.preview-options {
  display: grid;
  gap: 10px;
}

.preview-options span {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.preview-options .selected {
  border-color: rgba(22, 122, 90, 0.35);
  background: #eaf7f1;
}

.soft-options span {
  box-shadow: 0 2px 10px rgba(20, 32, 48, 0.04);
}

.source-mini {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(193, 116, 22, 0.25);
  border-radius: 8px;
  background: var(--warm);
}

.source-mini div {
  display: grid;
  gap: 2px;
}

.source-mini span {
  color: #8a5a1a;
}

.source-mini strong {
  color: var(--ink);
}

.source-count {
  white-space: nowrap;
  font-weight: 900;
}

.preview-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #fff7e8;
}

.band,
.content-section,
.split-section,
.admin-nav,
.question-stack,
.flash-wrap {
  padding: clamp(32px, 6vw, 64px) var(--page-gutter);
}

.band {
  background: #eef4f1;
}

.value-band {
  background:
    linear-gradient(180deg, #ffffff 0, #eef7f4 100%);
}

.content-section.tight {
  padding-top: 34px;
}

.exam-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 24px;
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 72px) var(--page-gutter);
}

.exam-detail-intro {
  align-self: stretch;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(14, 49, 72, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #edf7f5 100%);
  box-shadow: var(--soft-shadow);
}

.exam-detail-intro h1 {
  max-width: 600px;
  margin-bottom: 12px;
}

.exam-detail-intro p:not(.eyebrow) {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.exam-detail-summary div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.exam-detail-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exam-detail-summary dd {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.exam-detail-summary small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.exam-detail-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(14, 49, 72, 0.1);
  border-radius: 8px;
  background: white;
}

.exam-bank-note {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.exam-detail-footer form {
  flex: 0 0 auto;
}

.exam-detail-footer .button {
  min-width: 208px;
}

.section-head {
  margin-bottom: 22px;
}

.section-copy {
  max-width: 720px;
  color: var(--muted);
}

.feature-grid,
.pricing-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.price-card,
.list-card,
.form-panel,
.solution-card,
.question-card,
.table-wrap,
.summary-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.feature-grid article,
.price-card,
.list-card,
.form-panel,
.solution-card,
.question-card,
.summary-grid div {
  padding: 22px;
}

.feature-card,
.price-card,
.list-card,
.solution-card,
.question-card {
  box-shadow: var(--soft-shadow);
}

.feature-card {
  display: grid;
  gap: 10px;
  border-color: rgba(14, 49, 72, 0.09);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 900;
}

.source-section {
  padding: clamp(32px, 5vw, 54px) var(--page-gutter);
  background: var(--paper);
}

.source-section.compact-source {
  padding-top: 26px;
  padding-bottom: 0;
  background: var(--soft);
}

.source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(193, 116, 22, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.88), rgba(234, 247, 241, 0.72)),
    white;
  box-shadow: var(--soft-shadow);
}

.source-card p {
  max-width: 720px;
  color: var(--muted);
}

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

.source-metrics div {
  padding: 16px;
  border: 1px solid rgba(18, 56, 85, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.source-metrics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-metrics dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.price {
  margin: 18px 0 4px;
  font-size: 34px;
  font-weight: 900;
}

.price-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
}

.home-price-card {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-price-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 111, 186, 0.28);
  box-shadow: 0 18px 38px rgba(16, 31, 48, 0.12);
}

.highlight-plan {
  border-color: rgba(19, 121, 95, 0.36);
  background:
    linear-gradient(180deg, rgba(232, 246, 241, 0.9), rgba(255, 255, 255, 0.96) 42%),
    white;
}

.highlight-plan .plan-badge {
  color: white;
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), #2d6fba);
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(19, 121, 95, 0.12);
}

.workflow-section,
.comparison-section {
  padding: clamp(34px, 6vw, 68px) var(--page-gutter);
}

.workflow-section {
  background: white;
}

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

.workflow-grid article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(14, 49, 72, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f7fbfc);
  box-shadow: var(--soft-shadow);
}

.workflow-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
  font-weight: 900;
}

.workflow-grid p,
.comparison-copy p {
  margin: 0;
  color: var(--muted);
}

.comparison-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  background:
    linear-gradient(135deg, #eef7f4, #f8fbfc);
}

.comparison-copy {
  display: grid;
  gap: 12px;
}

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

.comparison-grid div {
  padding: 20px;
  border: 1px solid rgba(14, 49, 72, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.comparison-grid ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.comparison-grid li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.comparison-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(45, 111, 186, 0.1);
}

.faq-section {
  padding: clamp(34px, 6vw, 70px) var(--page-gutter);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1360px;
}

.faq-list details {
  border: 1px solid rgba(14, 49, 72, 0.12);
  border-radius: 8px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 16px 48px 16px 18px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--sky);
  font-size: 20px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
  color: white;
  background: var(--green);
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.plan-badge {
  justify-self: start;
  margin-bottom: 6px;
}

.auth-layout {
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(135deg, rgba(238, 247, 245, 0.82), rgba(255, 249, 238, 0.88)),
    white;
}

.friendly-auth {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
}

.auth-copy {
  max-width: 760px;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.auth-benefits div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(18, 56, 85, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.auth-benefits strong {
  color: var(--ink);
}

.auth-benefits span,
.form-header p,
.form-footnote {
  color: var(--muted);
  font-size: 14px;
}

.form-panel {
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.96);
}

.form-panel h2 {
  margin: 0;
  font-size: 24px;
}

.form-header {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.form-header p,
.form-footnote {
  margin: 0;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(38px, 6vw, 76px) var(--page-gutter);
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 111, 186, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fbfc 0%, #edf6fb 46%, #f4f7f8 100%);
}

.login-visual {
  position: relative;
  display: grid;
  align-content: end;
  min-height: min(620px, calc(100vh - 150px));
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(180deg, rgba(10, 32, 50, 0.18) 0%, rgba(10, 32, 50, 0.82) 100%),
    url("../img/hero-study.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.login-visual h1 {
  max-width: 620px;
  font-size: clamp(34px, 5vw, 58px);
}

.login-visual .lead {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.84);
}

.login-panel {
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
  border-color: rgba(14, 49, 72, 0.12);
}

.login-panel .button {
  min-height: 48px;
  margin-top: 4px;
}

.login-panel .form-footnote {
  text-align: center;
}

.login-panel .form-footnote a {
  color: var(--blue);
  font-weight: 900;
}

.login-highlights dd {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.12;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(45, 111, 186, 0.12);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid rgba(45, 111, 186, 0.28);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

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

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-line input {
  width: 18px;
  min-height: 18px;
}

.flash-wrap {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 0;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.flash-success {
  border-color: #bfe5d6;
  background: #edf9f4;
}

.flash-danger {
  border-color: #f0c0c5;
  background: #fff1f2;
}

.flash-warning {
  border-color: #f3d39f;
  background: #fff8e8;
}

.page-header {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 168px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 245, 0.9)),
    white;
}

.page-header h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
}

.status-pill {
  justify-self: end;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.status-pill.ok {
  color: var(--green);
  background: #eaf7f1;
}

.status-pill.locked {
  color: var(--amber);
  background: #fff7e8;
}

.dashboard-header {
  min-height: 180px;
  padding-top: clamp(30px, 5vw, 54px);
  padding-bottom: clamp(30px, 5vw, 54px);
}

.dashboard-header h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.dashboard-header p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-summary-section {
  padding-top: 24px;
  padding-bottom: 12px;
}

.dashboard-summary {
  gap: 12px;
}

.dashboard-summary div {
  min-height: 96px;
  padding: 18px;
}

.dashboard-summary dt {
  font-size: 12px;
}

.dashboard-summary dd {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.exam-list {
  display: grid;
  gap: 14px;
}

.list-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.list-card p,
.price-card p,
.feature-grid p,
.solution-card p {
  color: var(--muted);
}

.list-card span,
.price-card span,
.source-line {
  color: var(--muted);
  font-size: 14px;
}

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

.dashboard-product-card {
  display: grid;
  align-content: space-between;
  align-items: stretch;
  min-height: 250px;
  padding: 18px;
}

.dashboard-product-card > div {
  display: grid;
  gap: 8px;
}

.dashboard-product-card h3 {
  font-size: 20px;
  line-height: 1.18;
}

.dashboard-product-card p {
  margin: 0;
}

.dashboard-product-card .button {
  width: 100%;
  margin-top: 16px;
}

.product-badge {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--green) !important;
  background: #eaf7f1;
  font-size: 11px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: start;
}

.split-section > *,
.review-layout > *,
.payment-checkout > * {
  min-width: 0;
}

.split-section.wide-left {
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.mobile-activity-list {
  display: none;
}

.mobile-activity-card,
.mobile-empty-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.mobile-activity-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mobile-card-head {
  display: grid;
  gap: 4px;
}

.mobile-card-head span,
.mobile-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mobile-card-head strong {
  font-size: 16px;
  line-height: 1.25;
}

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

.mobile-meta div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(18, 56, 85, 0.08);
  border-radius: 8px;
  background: #fbfcfd;
}

.mobile-meta dd {
  margin: 2px 0 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mobile-empty-card {
  padding: 14px;
  color: var(--muted);
  font-weight: 800;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td a {
  color: var(--blue);
  font-weight: 800;
}

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

.summary-grid dt,
.summary-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-grid dd,
.summary-list dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.payment-header {
  align-items: start;
  padding-top: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.payment-heading {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.payment-heading h1,
.payment-heading p {
  margin: 0;
}

.payment-heading > p {
  max-width: 700px;
  color: var(--muted);
}

.payment-kicker-row,
.payment-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-kicker-row .eyebrow {
  margin-right: 4px;
}

.gateway-brand-badge,
.gateway-environment,
.payment-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.gateway-brand-badge {
  color: white;
  border-color: #54237a;
  background: #54237a;
}

.gateway-brand-badge.large {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 15px;
}

.gateway-environment {
  color: var(--amber);
  border-color: #efd5aa;
  background: #fff8e8;
}

.gateway-environment.is-production {
  color: var(--green);
  border-color: #b9ddcf;
  background: #edf8f3;
}

.payment-trust-row {
  margin-top: 4px;
}

.payment-trust-row span {
  color: #3f5367;
  background: rgba(255, 255, 255, 0.72);
}

.payment-summary {
  min-width: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.payment-summary dd {
  max-width: 210px;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 17px;
  line-height: 1.25;
}

.payment-content-section {
  max-width: 1440px;
  margin: 0 auto;
}

.payment-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 350px);
  gap: 24px;
  align-items: start;
}

.payment-gateway {
  align-content: start;
  min-height: 480px;
  padding: clamp(20px, 3vw, 32px);
  border-top: 4px solid var(--green);
  box-shadow: var(--soft-shadow);
}

.payment-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.payment-step-heading.compact {
  padding-bottom: 12px;
}

.payment-step-heading > div {
  min-width: 0;
}

.payment-step-heading h2,
.payment-step-heading p {
  margin: 0;
}

.payment-step-heading p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.payment-step-number {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-size: 17px;
  font-weight: 900;
}

.izipay-buyer-form {
  display: grid;
  gap: 18px;
  margin-top: 4px;
}

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

.payment-buyer-grid {
  gap: 14px;
}

.payment-field-wide {
  grid-column: 1 / -1;
}

.payment-primary-action {
  min-height: 50px;
}

.payment-form-note {
  margin: -6px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.izipay-status {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: var(--sky);
  font-size: 14px;
  font-weight: 800;
}

.izipay-status.is-success,
.izipay-status.is-ready {
  color: var(--green);
  border-color: #b9ddcf;
  background: #edf8f3;
}

.izipay-status.is-error {
  color: var(--red);
  border-color: #efc3c7;
  background: #fff1f2;
}

.izipay-checkout-shell {
  display: grid;
  gap: 14px;
}

.izipay-checkout-shell[hidden],
.izipay-status[hidden],
.izipay-buyer-form[hidden] {
  display: none !important;
}

.izipay-embed {
  width: 100%;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.izipay-embed iframe {
  display: block;
  width: 100% !important;
  min-height: 650px;
  border: 0;
}

.payment-unavailable,
.payment-result-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 660px;
  padding: 12px 0;
}

.payment-unavailable h2,
.payment-unavailable p,
.payment-result-state h2,
.payment-result-state p {
  margin: 0;
}

.payment-unavailable > p:not(.eyebrow),
.payment-result-state > p:not(.eyebrow) {
  color: var(--muted);
}

.payment-unavailable-mark,
.payment-result-mark {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  color: white;
  background: var(--amber);
  font-weight: 900;
}

.payment-result-state.is-approved .payment-result-mark {
  background: var(--green);
}

.gateway-config-list {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 14px;
  border: 1px solid #efd5aa;
  border-radius: 8px;
  background: #fffaf0;
  font-size: 13px;
}

.gateway-config-list span::before {
  content: "- ";
}

.gateway-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(18, 56, 85, 0.12);
  border-radius: 8px;
  border-top: 4px solid #54237a;
  background: white;
  box-shadow: var(--soft-shadow);
}

.gateway-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gateway-sidebar-header p,
.gateway-sidebar h2 {
  margin: 0;
}

.gateway-sidebar h2 {
  font-size: 30px;
}

.gateway-order-summary dd {
  max-width: 170px;
  text-align: right;
  font-size: 15px;
  line-height: 1.3;
}

.gateway-security-note {
  padding: 14px;
  border: 1px solid #b9ddcf;
  border-radius: 8px;
  background: #edf8f3;
}

.gateway-security-note p {
  margin: 4px 0 0;
  color: #486557;
  font-size: 12px;
}

.gateway-admin-status {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.gateway-admin-status span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.gateway-admin-status b {
  color: var(--muted);
}

.mini-copy,
.cell-note {
  color: var(--muted);
  font-size: 13px;
}

.cell-note {
  display: block;
  margin-top: 4px;
}

.payment-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.payment-approved {
  color: var(--green);
  background: #eaf7f1;
}

.payment-review {
  color: var(--amber);
  background: #fff7e8;
}

.payment-pending {
  color: var(--blue);
  background: #eef6fb;
}

.payment-rejected {
  color: var(--red);
  background: #fff1f2;
}

.review-header,
.review-hero {
  align-items: start;
}

.review-hero {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 245, 0.88)),
    white;
}

.review-hero h1 {
  font-size: clamp(34px, 4.3vw, 48px);
}

.review-hero p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
}

.review-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  min-width: min(100%, 560px);
}

.review-search input {
  min-height: 46px;
  background: #fbfcfd;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) var(--page-gutter);
}

.review-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(18, 56, 85, 0.12);
  border-radius: 8px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.review-sidebar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.review-sidebar-head .eyebrow {
  margin: 0;
}

.review-sidebar-head .button {
  min-height: 34px;
}

.review-sidebar .summary-list dd {
  font-size: 20px;
}

.voice-controls {
  display: grid;
  gap: 12px;
}

.voice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.voice-panel summary,
.review-answer-detail summary,
.review-source-detail summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.voice-panel summary::-webkit-details-marker,
.review-answer-detail summary::-webkit-details-marker,
.review-source-detail summary::-webkit-details-marker {
  display: none;
}

.voice-panel summary {
  min-height: 40px;
  padding: 10px 36px 10px 12px;
  color: var(--navy);
}

.voice-panel summary::after,
.review-answer-detail summary::after,
.review-source-detail summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--green);
  background: #eaf7f1;
  transform: translateY(-50%);
}

.voice-panel[open] summary::after,
.review-answer-detail[open] summary::after,
.review-source-detail[open] summary::after {
  content: "-";
}

.voice-panel .voice-controls {
  padding: 0 12px 12px;
}

.voice-controls label {
  gap: 6px;
}

.voice-controls select {
  min-height: 40px;
  font-size: 13px;
}

.voice-controls input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--blue);
}

.voice-controls label:has(#voice-engine),
.voice-controls label:has(#tts-model),
#voice-engine,
#tts-model,
.voice-note {
  display: none !important;
}

.review-list {
  display: grid;
  gap: 18px;
}

.review-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.review-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.review-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.24;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-options {
  display: grid;
  gap: 10px;
}

.review-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.review-option span {
  line-height: 1.45;
}

.review-option strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--navy);
  background: #eef6fb;
}

.review-option.correct {
  border-color: rgba(22, 122, 90, 0.45);
  background: #eaf7f1;
}

.review-option.correct strong {
  color: white;
  background: var(--green);
}

.review-answer,
.review-source {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
}

.review-answer {
  border: 1px solid rgba(22, 122, 90, 0.18);
  background: #f2faf6;
}

.review-answer-detail summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 32px;
  padding-right: 34px;
}

.review-answer-detail summary strong {
  color: var(--green);
  font-size: 13px;
}

.review-answer-detail p {
  padding-top: 8px;
}

.review-answer p,
.review-source p {
  margin: 0;
}

.review-source {
  border: 1px solid rgba(45, 111, 186, 0.16);
  background: #f4f8fd;
}

.review-source-detail summary {
  min-height: 30px;
  padding-right: 34px;
  color: var(--blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.review-source-body {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.review-source h3 {
  margin: 0;
  font-size: 18px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 10px 0 0;
}

.pager span {
  color: var(--muted);
  font-weight: 800;
}

.inline-action {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 18px;
}

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.exam-toolbar {
  position: sticky;
  top: 72px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 18px;
  align-items: center;
  padding: 18px var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(20, 32, 48, 0.08);
}

.exam-toolbar h1 {
  font-size: 28px;
  line-height: 1.12;
}

.exam-toolbar-modern {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
  align-items: center;
}

.exam-title-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.exam-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exam-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(18, 56, 85, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.exam-progress {
  display: grid;
  gap: 8px;
}

.exam-progress strong {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf4;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 0.18s ease;
}

.exam-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer {
  display: grid;
  place-items: center;
  width: 150px;
  min-height: 56px;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.timer.danger {
  background: var(--red);
}

.question-stack {
  display: grid;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.question-stack.compact {
  padding: 0;
}

.exam-question-stack {
  gap: 16px;
  max-width: 1240px;
  background:
    linear-gradient(180deg, rgba(238, 247, 245, 0.72), rgba(245, 247, 242, 0)),
    var(--soft);
}

.question-card {
  display: grid;
  gap: 12px;
}

.question-legend {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.24;
}

.question-number {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.question-legend span:last-child {
  padding-top: 5px;
}

.option-list {
  display: grid;
  gap: 10px;
}

.question-card label,
.option-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.question-card label:hover {
  border-color: rgba(22, 122, 90, 0.32);
  background: #fbfefd;
  box-shadow: var(--soft-shadow);
}

.question-card input,
.option-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.option-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  cursor: pointer;
}

.option-row:has(input:checked) {
  border-color: rgba(22, 122, 90, 0.5);
  background: #eaf7f1;
  box-shadow: 0 0 0 3px rgba(22, 122, 90, 0.1);
}

.option-row:has(input:focus-visible) {
  outline: 3px solid rgba(45, 111, 186, 0.22);
  outline-offset: 2px;
}

.option-letter {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--navy);
  background: #eef6fb;
  font-weight: 900;
}

.option-row:has(input:checked) .option-letter {
  color: white;
  background: var(--green);
}

.option-text {
  min-width: 0;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.exam-question[hidden] {
  display: none;
}

.exam-question-nav {
  position: sticky;
  bottom: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px var(--page-gutter) 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.exam-question-nav strong {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.exam-page-position {
  display: grid;
  gap: 1px;
}

.exam-page-position small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.exam-question-nav .button {
  width: 100%;
}

.exam-question-nav .button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.result-hero {
  background: white;
}

.result-hero h1 {
  color: var(--green);
}

.result-hero.failed h1 {
  color: var(--red);
}

.solution-stack {
  gap: 14px;
  max-width: 1240px;
}

.solution-card {
  display: grid;
  gap: 16px;
  border-top: 4px solid var(--green);
}

.solution-card.solution-review {
  border-top-color: var(--amber);
}

.solution-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.24;
}

.solution-card .solution-head {
  align-items: center;
}

.solution-status {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: #eaf7f1;
  font-size: 12px;
}

.solution-review .solution-status {
  color: #8a5a1a;
  background: #fff7e8;
}

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

.solution-answer-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.solution-answer-box > span,
.solution-explanation h3 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.solution-answer-box.correct {
  border-color: rgba(19, 121, 95, 0.28);
  background: #f2faf6;
}

.solution-answer-box.incorrect {
  border-color: rgba(184, 50, 59, 0.22);
  background: #fff7f7;
}

.solution-answer-value {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.solution-answer-value strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--navy);
  background: #e8f0f6;
  font-size: 13px;
}

.solution-answer-box.correct .solution-answer-value strong {
  color: white;
  background: var(--green);
}

.solution-answer-box.incorrect .solution-answer-value strong {
  color: white;
  background: var(--red);
}

.solution-answer-value p,
.solution-explanation p,
.solution-source p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.solution-answer-value p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.solution-explanation {
  display: grid;
  gap: 7px;
  padding: 13px;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #f4f8fd;
}

.solution-explanation h3 {
  margin: 0;
}

.solution-explanation p {
  font-size: 14px;
  line-height: 1.5;
}

.solution-source {
  padding: 11px 13px;
  border: 1px solid rgba(45, 111, 186, 0.16);
  border-radius: 8px;
  background: #f8fbfe;
}

.solution-source summary {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.solution-source > div {
  display: grid;
  gap: 7px;
  padding-top: 10px;
}

.solution-source strong,
.solution-source p {
  font-size: 13px;
  line-height: 1.45;
}

.solution-pager {
  margin-top: 4px;
}

.answer-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.answer-review div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.answer-review span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.answer-review strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
}

.answer-review p {
  margin: 0;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
  background: #eef4f1;
}

.admin-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  font-weight: 800;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
  padding: clamp(38px, 6vw, 74px) var(--page-gutter);
  color: white;
  background:
    linear-gradient(135deg, rgba(14, 49, 72, 0.96), rgba(19, 121, 95, 0.86)),
    var(--navy);
}

.admin-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.admin-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.admin-hero-metric {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.admin-hero-metric span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-hero-metric strong {
  color: white;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

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

.admin-nav-modern a {
  display: grid;
  gap: 4px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.admin-nav-modern strong {
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.admin-nav-modern span {
  color: var(--muted);
  font-size: 13px;
}

.admin-summary-grid div span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter) clamp(28px, 5vw, 52px);
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(14, 49, 72, 0.1);
  border-radius: 8px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.admin-feed {
  display: grid;
  gap: 10px;
}

.admin-feed-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.admin-feed-row div:first-child,
.admin-feed-end {
  display: grid;
  gap: 3px;
}

.admin-feed-row span,
.admin-plan-list span {
  color: var(--muted);
  font-size: 13px;
}

.admin-feed-end {
  justify-items: end;
  text-align: right;
}

.admin-progress {
  display: grid;
  gap: 10px;
}

.admin-progress div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
}

.admin-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-mini-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.admin-mini-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-mini-grid dd {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 900;
}

.admin-plan-list {
  display: grid;
  gap: 10px;
}

.admin-plan-list div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-chip.ok {
  color: var(--green);
  background: #eaf7f1;
}

.status-chip.idle {
  color: var(--muted);
  background: #eef2f6;
}

.status-chip.admin {
  color: var(--blue);
  background: #eef6fb;
}

.admin-table-section {
  padding-top: 0;
}

.admin-table strong {
  display: block;
}

.admin-list-card {
  border-color: rgba(14, 49, 72, 0.1);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.meta-row span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfd;
  font-weight: 800;
}

.admin-pager {
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-question-card h2 {
  font-size: 18px;
  line-height: 1.28;
}

@media (max-width: 900px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
    font-size: 13px;
  }

  .nav a {
    min-width: 0;
    min-height: 36px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    background: #fbfcfd;
  }

  .nav .nav-cta {
    color: white !important;
    border-color: var(--navy);
    background: var(--navy) !important;
  }

  .hero,
  .page-header,
  .auth-layout,
  .login-page,
  .admin-hero,
  .admin-dashboard-grid,
  .result-hero,
  .split-section,
  .split-section.wide-left,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .home-hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(9, 28, 44, 0.94), rgba(13, 49, 72, 0.72)),
      url("../img/hero-study.png") 64% center / cover no-repeat;
  }

  .feature-grid,
  .pricing-grid,
  .faq-list,
  .workflow-grid,
  .comparison-section,
  .comparison-grid,
  .summary-grid,
  .form-grid,
  .form-grid.two,
  .auth-benefits,
  .answer-review,
  .source-card,
  .source-metrics,
  .payment-checkout,
  .gateway-methods {
    grid-template-columns: 1fr;
  }

  .exam-detail-page {
    grid-template-columns: 1fr;
  }

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

  .gateway-sidebar {
    position: static;
  }

  .payment-summary {
    width: 100%;
    min-width: 0;
  }

  .payment-checkout {
    gap: 18px;
  }

  .review-sidebar {
    position: static;
  }

  .login-panel {
    order: 1;
  }

  .login-visual {
    order: 2;
    min-height: 430px;
  }

  .review-search {
    grid-template-columns: 1fr;
  }

  .status-pill {
    justify-self: start;
  }

  .list-card {
    align-items: stretch;
    flex-direction: column;
  }

  .exam-detail-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .exam-toolbar {
    top: 105px;
    grid-template-columns: 1fr;
  }

  .exam-toolbar-modern {
    align-items: stretch;
  }

  .exam-progress strong {
    text-align: left;
  }

  .exam-actions {
    justify-content: space-between;
  }

  .timer {
    width: 160px;
  }

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

@media (max-width: 540px) {
  .topbar,
  .hero,
  .page-header,
  .admin-hero,
  .auth-layout,
  .result-hero,
  .band,
  .content-section,
  .faq-section,
  .workflow-section,
  .comparison-section,
  .admin-dashboard-grid,
  .split-section,
  .admin-nav,
  .question-stack,
  .flash-wrap,
  .exam-toolbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 30px;
  }

  .page-header h1 {
    font-size: 26px;
    line-height: 1.1;
  }

  .page-header {
    min-height: auto;
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .payment-header {
    gap: 18px;
  }

  .payment-kicker-row,
  .payment-trust-row {
    gap: 6px;
  }

  .payment-trust-row span {
    min-height: 26px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .payment-summary,
  .payment-gateway,
  .gateway-sidebar {
    padding: 16px;
  }

  .payment-gateway {
    min-height: 0;
  }

  .payment-step-heading {
    gap: 10px;
  }

  .payment-step-heading h2 {
    font-size: 20px;
  }

  .payment-step-number {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .payment-field-wide {
    grid-column: auto;
  }

  .izipay-embed,
  .izipay-embed iframe {
    min-height: 600px;
  }

  .exam-detail-page {
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .exam-detail-intro {
    padding: 18px;
  }

  .exam-detail-intro h1 {
    margin-bottom: 8px;
    font-size: 26px;
    line-height: 1.1;
  }

  .exam-detail-intro p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.42;
  }

  .exam-detail-summary {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .exam-detail-summary div {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
    gap: 2px 12px;
    align-items: center;
    min-height: 68px;
    padding: 10px 12px;
  }

  .exam-detail-summary dt {
    font-size: 10px;
  }

  .exam-detail-summary dd {
    margin: 0;
    font-size: 19px;
    text-align: right;
  }

  .exam-detail-summary small {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: 11px;
  }

  .exam-detail-footer {
    gap: 12px;
    padding: 14px;
  }

  .exam-bank-note {
    font-size: 13px;
    line-height: 1.4;
  }

  .exam-detail-footer form,
  .exam-detail-footer .button {
    width: 100%;
  }

  .dashboard-header {
    min-height: auto;
    padding-top: 26px;
    padding-bottom: 24px;
  }

  .dashboard-header h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .dashboard-header p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.45;
  }

  .dashboard-header .status-pill {
    padding: 8px 12px;
    font-size: 14px;
  }

  .dashboard-summary-section {
    padding-top: 18px;
    padding-bottom: 4px;
  }

  .dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-result .summary-grid,
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-result .summary-grid div,
  .admin-summary-grid div {
    min-height: 78px;
    padding: 11px;
  }

  .page-result .summary-grid dt,
  .admin-summary-grid dt {
    font-size: 10px;
  }

  .page-result .summary-grid dd,
  .admin-summary-grid dd {
    font-size: 18px;
    line-height: 1.12;
  }

  .admin-summary-grid div span {
    font-size: 11px;
    line-height: 1.3;
  }

  .dashboard-summary div {
    min-height: 84px;
    padding: 13px;
  }

  .dashboard-summary dt {
    font-size: 10px;
  }

  .dashboard-summary dd {
    font-size: 18px;
    line-height: 1.12;
  }

  .dashboard-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-product-card {
    min-height: 236px;
    padding: 12px;
  }

  .dashboard-product-card > div {
    gap: 7px;
  }

  .dashboard-product-card h3 {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.18;
  }

  .dashboard-product-card p,
  .dashboard-product-card span {
    font-size: 12px;
    line-height: 1.35;
  }

  .dashboard-product-card .button {
    min-height: 36px;
    margin-top: 10px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .product-badge {
    padding: 4px 7px;
    font-size: 10px !important;
  }

  .split-section {
    gap: 28px;
    padding-top: 24px;
  }

  .split-section .section-head {
    margin-bottom: 12px;
  }

  .split-section h2 {
    font-size: 24px;
  }

  .dashboard-table {
    display: none;
  }

  .mobile-activity-list {
    display: grid;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .brand {
    width: 100%;
  }

  .brand strong {
    font-size: 18px;
  }

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

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

  .topbar {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

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

  .nav-public .nav-cta {
    grid-column: auto;
  }

  .nav-auth {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  }

  .nav a {
    min-height: 34px;
    font-size: 11px;
    padding: 6px 4px;
  }

  .nav-auth .nav-cta {
    grid-column: 1 / -1;
  }

  .preview-header,
  .preview-result,
  .preview-topline,
  .source-mini,
  .solution-head,
  .row-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-strip {
    margin: 18px 0;
  }

  .source-count {
    white-space: normal;
  }

  .review-layout {
    padding-left: 12px;
    padding-right: 12px;
  }

  .login-page {
    grid-template-columns: 1fr;
    padding-left: 12px;
    padding-right: 12px;
  }

  .login-panel {
    order: 1;
  }

  .login-visual {
    order: 2;
    min-height: 280px;
  }

  .friendly-auth .form-panel {
    order: 1;
  }

  .friendly-auth .auth-copy {
    order: 2;
  }

  .review-card,
  .review-sidebar {
    padding: 16px;
  }

  .review-card-head {
    grid-template-columns: 1fr;
  }

  .exam-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .timer {
    width: 100%;
  }

  .option-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  /* During an attempt, the question is the primary mobile surface. */
  .exam-active-page .topbar {
    position: static;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .exam-active-page .brand {
    gap: 10px;
  }

  .exam-active-page .brand-mark {
    width: 38px;
    height: 38px;
  }

  .exam-active-page .brand small,
  .exam-active-page .nav {
    display: none;
  }

  .exam-toolbar,
  .exam-toolbar-modern {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "progress actions";
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .exam-title-block {
    display: none;
  }

  .exam-progress {
    grid-area: progress;
    gap: 5px;
  }

  .exam-progress strong {
    font-size: 15px;
    text-align: left;
  }

  .progress-track {
    height: 6px;
  }

  .exam-actions {
    grid-area: actions;
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .timer {
    width: auto;
    min-width: 78px;
    min-height: 38px;
    padding: 6px 8px;
    font-size: 18px;
  }

  .exam-actions .button {
    width: auto;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .exam-question-stack {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 16px;
    scroll-margin-top: 72px;
  }

  .exam-question {
    gap: 14px;
    padding: 14px;
    scroll-margin-top: 72px;
  }

  .question-legend {
    gap: 10px;
    margin-bottom: 2px;
    padding-bottom: 12px;
    font-size: 17px;
    line-height: 1.22;
  }

  .question-legend span:last-child {
    min-width: 0;
    padding-top: 3px;
  }

  .question-number {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .option-list {
    gap: 8px;
  }

  .question-card label,
  .option-row {
    min-height: 48px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.33;
  }

  .option-letter {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .exam-question-nav {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 9px 12px max(9px, env(safe-area-inset-bottom));
  }

  .exam-question-nav strong {
    font-size: 12px;
  }

  .exam-page-position small {
    font-size: 10px;
  }

  .exam-question-nav .button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .login-highlights {
    grid-template-columns: 1fr;
  }

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

  .hero-stats div {
    padding: 10px;
  }

  .hero-stats dt {
    font-size: 10px;
  }

  .hero-stats dd {
    font-size: 22px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-proof span {
    justify-content: center;
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .home-hero {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .feature-grid {
    gap: 8px;
  }

  .feature-grid .feature-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: start;
    padding: 12px;
  }

  .feature-card .feature-icon {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .feature-card h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
  }

  .feature-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.38;
  }

  .workflow-grid {
    gap: 8px;
  }

  .workflow-grid article {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 3px 10px;
    min-height: auto;
    padding: 12px;
  }

  .workflow-grid article > span {
    grid-row: 1 / 3;
    width: 38px;
    height: 32px;
    font-size: 12px;
  }

  .workflow-grid h3 {
    margin: 0;
    font-size: 15px;
  }

  .workflow-grid p {
    font-size: 13px;
    line-height: 1.38;
  }

  .login-visual {
    min-height: 280px;
    padding: 22px;
  }

  .admin-table-section .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table {
    display: block;
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 10px;
  }

  .admin-table tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--soft-shadow);
  }

  .admin-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 9px 11px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .admin-table td[colspan] {
    display: block;
  }

  .admin-table td[colspan]::before {
    display: none;
  }

  .admin-table .action-cell {
    align-items: center;
  }

  .admin-table .action-cell form,
  .admin-table .action-cell .button {
    width: 100%;
  }

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

  .admin-hero h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .admin-nav-modern a {
    padding: 13px;
  }

  .admin-nav-modern strong {
    font-size: 21px;
  }

  .admin-feed-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-feed-end {
    justify-items: start;
    text-align: left;
  }

  .review-hero {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 12px;
    gap: 10px;
  }

  .review-hero h1 {
    font-size: 24px;
    line-height: 1.08;
  }

  .review-hero p:not(.eyebrow) {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .review-search {
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
    min-width: 0;
  }

  .review-search label {
    gap: 5px;
    font-size: 12px;
  }

  .review-search input {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .review-search .button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .review-layout {
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .review-sidebar {
    gap: 9px;
    padding: 10px;
  }

  .review-sidebar-head {
    align-items: center;
  }

  .review-sidebar-head .button {
    width: auto;
    min-height: 30px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .review-sidebar .summary-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .review-sidebar .summary-list div {
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
  }

  .review-sidebar .summary-list dt {
    font-size: 10px;
  }

  .review-sidebar .summary-list dd {
    margin: 0;
    font-size: 16px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .voice-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .voice-panel summary {
    min-height: 36px;
    padding: 8px 34px 8px 10px;
    font-size: 12px;
  }

  .voice-panel .voice-controls {
    padding: 0 10px 10px;
  }

  .voice-controls label {
    gap: 4px;
    font-size: 11px;
  }

  .voice-controls label:first-child {
    grid-column: 1 / -1;
  }

  .voice-controls select {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .voice-controls input[type="range"] {
    min-height: 22px;
  }

  .review-list {
    gap: 12px;
  }

  .review-card {
    gap: 12px;
    padding: 14px;
  }

  .review-card-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .review-card-head .eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .review-card h2 {
    font-size: 17px;
    line-height: 1.22;
  }

  .review-card .question-number {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 14px;
  }

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

  .review-actions .button {
    min-height: 38px;
    padding: 8px 7px;
    font-size: 12px;
  }

  .review-options {
    gap: 8px;
  }

  .review-option {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .review-option strong {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .review-option span {
    font-size: 13px;
    line-height: 1.33;
  }

  .review-answer,
  .review-source {
    gap: 7px;
    padding: 11px;
  }

  .review-answer p,
  .review-source p,
  .review-source .source-line {
    font-size: 13px;
    line-height: 1.42;
  }

  .review-answer-detail summary {
    min-height: 30px;
    padding-right: 30px;
  }

  .review-answer-detail summary strong {
    font-size: 12px;
  }

  .review-source h3 {
    font-size: 15px;
    line-height: 1.2;
  }

  .review-source-detail summary {
    min-height: 26px;
    font-size: 11px;
  }

  .pager {
    gap: 8px;
  }

  .pager span {
    order: -1;
    width: 100%;
    text-align: center;
    font-size: 13px;
  }

  .pager .button {
    flex: 1 1 0;
    min-height: 40px;
    font-size: 13px;
  }

  .solution-header {
    min-height: auto;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .solution-header h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  .solution-stack {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .solution-card {
    gap: 12px;
    padding: 14px;
  }

  .solution-card .solution-head {
    align-items: center;
    flex-direction: row;
  }

  .solution-card h2 {
    font-size: 17px;
    line-height: 1.22;
  }

  .solution-comparison {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .solution-answer-box {
    gap: 6px;
    padding: 10px;
  }

  .solution-answer-box > span,
  .solution-explanation h3 {
    font-size: 10px;
  }

  .solution-answer-value p,
  .solution-explanation p {
    font-size: 13px;
    line-height: 1.42;
  }

  .solution-explanation {
    padding: 11px;
  }

  .solution-source {
    padding: 10px 11px;
  }

  .solution-source summary {
    font-size: 11px;
  }

  .solution-source strong,
  .solution-source p {
    font-size: 12px;
    line-height: 1.42;
  }
}
