:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #61706a;
  --line: #d7dfd9;
  --surface: #ffffff;
  --surface-2: #f6f8f4;
  --accent: #b43b47;
  --accent-dark: #8d2430;
  --teal: #1f7a75;
  --gold: #b97d15;
  --green: #2e7d4f;
  --green-soft: #edf8f1;
  --green-line: #9bd1ae;
  --red: #b3263b;
  --red-soft: #fff1f2;
  --red-line: #efb7bf;
  --teal-soft: #e9f6f4;
  --gold-soft: #fff7e6;
  --shadow: 0 12px 36px rgba(23, 32, 28, 0.1);
  --font-sans: "Aptos", "Segoe UI", Arial, sans-serif;
  --font-display: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
}

*,
*::before,
*::after {
  font-family: inherit;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8faf7 0%, #eef4f0 45%, #f7faf7 100%);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--accent-dark);
  overflow-wrap: anywhere;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
}

h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 430;
  font-size: 1.25rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.trust-note {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px 36px 48px;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  min-height: 94px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-value {
  display: block;
  color: var(--accent-dark);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}

.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.source-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-settings-panel {
  align-items: center;
}

.settings-toggle {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-toggle input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.settings-toggle span {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.admin-login-panel,
.admin-workspace-header,
.analytics-panel,
.user-card {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.06);
}

.admin-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.admin-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-analytics-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

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

.analytics-panel h2 {
  margin-bottom: 12px;
}

.analytics-list {
  display: grid;
  gap: 8px;
}

.analytics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analytics-row.stacked {
  display: grid;
  align-items: start;
}

.analytics-row span,
.analytics-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.analytics-row strong {
  color: var(--accent-dark);
}

.user-toolbar {
  grid-template-columns: minmax(220px, 1fr) auto;
}

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

.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.source-panel > div {
  min-width: 0;
}

.status-line {
  margin: 8px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.field-label,
label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.short-input {
  width: 112px;
}

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

textarea {
  resize: vertical;
}

button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(31, 122, 117, 0.35);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

button:disabled:hover {
  transform: none;
}

.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(180, 59, 71, 0.18);
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

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

.secondary-button:hover {
  border-color: var(--teal);
}

.danger-button {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 22px rgba(179, 38, 59, 0.16);
}

.danger-button:hover {
  background: #8d1d2d;
  border-color: #8d1d2d;
  transform: translateY(-1px);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.icon-button {
  width: 40px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.tab {
  flex: 0 0 auto;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.tab.is-active {
  color: #fff;
  background: var(--teal);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(180px, 260px) minmax(130px, 160px) minmax(130px, 160px) minmax(220px, 1fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-polish-panel,
.bulk-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.05);
}

.review-polish-panel {
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  align-items: start;
}

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

.coverage-item {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.coverage-item > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.coverage-item strong,
.coverage-item span,
.coverage-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.coverage-item span,
.coverage-item small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.coverage-bar {
  height: 8px;
  overflow: hidden;
  background: #e8eee9;
  border-radius: 999px;
}

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

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

.bulk-toolbar strong,
.bulk-toolbar span {
  display: block;
}

.bulk-toolbar span {
  color: var(--muted);
  font-size: 0.9rem;
}

.question-list,
.segment-list,
.audit-list {
  display: grid;
  gap: 12px;
}

.question-card,
.segment-card,
.audit-item,
.taxonomy-item {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.question-card[data-status="approved"] {
  border-left: 5px solid var(--green);
}

.question-card[data-status="needs_review"],
.question-card[data-status="draft"] {
  border-left: 5px solid var(--gold);
}

.question-card[data-status="rejected"],
.question-card[data-status="retired"] {
  border-left: 5px solid var(--accent);
}

.question-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.question-title {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.question-meta,
.source-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.approved {
  background: #edf8f1;
  border-color: #badbc6;
}

.pill.warning {
  background: var(--gold-soft);
  border-color: #edcf8e;
}

.pill.error {
  background: var(--red-soft);
  border-color: #efb9c0;
}

.options-list {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.options-list li {
  overflow-wrap: anywhere;
  padding: 9px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.options-list li.correct {
  background: var(--teal-soft);
  border-color: #a4d7d0;
  font-weight: 700;
}

.explanation {
  margin: 0 0 12px;
  color: #34423b;
}

.issue-list {
  margin: 10px 0 12px;
  padding: 10px 12px;
  color: #6e1722;
  background: var(--red-soft);
  border: 1px solid #efb9c0;
  border-radius: 6px;
}

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

.published-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.segment-card p {
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}

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

.taxonomy-item ul {
  margin: 0;
  padding-left: 20px;
}

.audit-item {
  display: grid;
  gap: 4px;
}

.audit-time {
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed #b7c4bd;
  border-radius: 8px;
  text-align: center;
}

.edit-dialog {
  width: min(900px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.edit-dialog::backdrop {
  background: rgba(23, 32, 28, 0.35);
}

.edit-dialog form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-password-dialog {
  width: min(560px, calc(100% - 24px));
}

.admin-password-dialog form {
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 250, 0.98) 50%, rgba(255, 247, 230, 0.98));
}

.admin-password-dialog-header {
  align-items: flex-start;
}

.admin-password-dialog-header h2 {
  margin: 2px 0 6px;
}

.admin-password-dialog .privacy-note {
  margin: 0;
}

.admin-remove-dialog {
  width: min(620px, calc(100% - 24px));
}

.admin-remove-dialog form {
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 230, 0.98) 48%, rgba(255, 242, 244, 0.98));
}

.admin-remove-dialog-header {
  align-items: flex-start;
}

.admin-remove-dialog-header h2 {
  margin: 2px 0 6px;
}

.admin-remove-dialog .danger-note {
  margin: 0;
  border-color: rgba(179, 38, 59, 0.35);
  background: rgba(255, 242, 244, 0.86);
  color: #6f1321;
}

.admin-permanent-remove-button {
  background: #6f1321;
  border-color: #6f1321;
}

.admin-permanent-remove-button:hover {
  background: #50101a;
  border-color: #50101a;
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100% - 40px));
  padding: 12px 14px;
  color: #fff;
  background: #26322d;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none !important;
}

.public-page {
  background: #f4f6f1;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 52px);
  background: #fff;
  border-bottom: 1px solid rgba(215, 223, 217, 0.85);
  box-shadow: 0 10px 30px rgba(23, 32, 28, 0.09);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  width: 112px;
  height: 56px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.brand-leaf {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.public-nav a {
  padding: 9px 11px;
  color: #31423a;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.public-nav a:hover {
  background: #eaf1eb;
}

.public-nav a[aria-current="page"] {
  color: #fff;
  background: var(--accent-dark);
  box-shadow: 0 10px 18px rgba(141, 36, 48, 0.18);
}

.public-nav a.discover-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #17201c;
  background: linear-gradient(135deg, #ffe7a3, #aee6df);
  border: 1px solid rgba(200, 138, 18, 0.42);
  box-shadow: 0 12px 22px rgba(200, 138, 18, 0.18);
}

.public-nav a.discover-nav-link::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--accent);
  clip-path: polygon(50% 0, 61% 35%, 96% 35%, 67% 55%, 78% 90%, 50% 68%, 22% 90%, 33% 55%, 4% 35%, 39% 35%);
}

.public-nav a.discover-nav-link:hover,
.public-nav a.discover-nav-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, #1f8a83, #8d2430);
  border-color: rgba(31, 138, 131, 0.5);
  box-shadow: 0 14px 28px rgba(31, 138, 131, 0.24);
}

.public-nav a.discover-nav-link:hover::before,
.public-nav a.discover-nav-link[aria-current="page"]::before {
  background: #ffe7a3;
}

.public-nav a.live-exam-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, #b3263b, #7a1f2a);
  box-shadow: 0 12px 24px rgba(179, 38, 59, 0.28);
}

.public-nav a.live-exam-nav::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #ffd36b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 211, 107, 0.22);
}

.public-nav a.live-exam-nav:hover {
  background: linear-gradient(135deg, #cf3348, #8d2430);
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.account-create-button {
  min-width: 136px;
  min-height: 48px;
  padding: 11px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: rgba(141, 36, 48, 0.72);
  box-shadow: 0 14px 28px rgba(180, 59, 71, 0.28);
  font-size: 1.02rem;
  font-weight: 900;
}

.account-create-button:hover,
.account-cta-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #d63a4b, #8d2430);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(180, 59, 71, 0.34);
}

.account-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 190px;
  padding: 6px 10px 6px 7px;
  color: var(--ink);
  background: var(--teal-soft);
  border: 1px solid #b9ddd8;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.account-summary:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 20px rgba(31, 122, 117, 0.12);
  transform: translateY(-1px);
}

.account-summary strong {
  display: block;
  color: var(--ink);
  line-height: 1.1;
}

.account-summary small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(23, 32, 28, 0.12);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.profile-avatar-initials {
  isolation: isolate;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 25%),
    linear-gradient(135deg, #171c19 0%, #651a24 42%, #d71f2d 100%);
  border-color: #111;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.86),
    0 10px 24px rgba(141, 36, 48, 0.25);
}

.profile-avatar-initials::before {
  position: absolute;
  inset: 12%;
  z-index: -1;
  content: "";
  background-color: rgba(255, 255, 255, 0.52);
  clip-path: polygon(
    50% 0%,
    57% 18%,
    72% 8%,
    69% 27%,
    88% 23%,
    77% 40%,
    100% 46%,
    76% 53%,
    84% 72%,
    62% 65%,
    60% 100%,
    50% 80%,
    40% 100%,
    38% 65%,
    16% 72%,
    24% 53%,
    0% 46%,
    23% 40%,
    12% 23%,
    31% 27%,
    28% 8%,
    43% 18%
  );
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
  transform: rotate(-4deg);
}

.profile-avatar-initials::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 36%);
  pointer-events: none;
}

.avatar-initials {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.42);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(620px, 1.18fr);
  gap: clamp(16px, 2.6vw, 34px);
  align-items: start;
  min-height: min(760px, calc(100vh - 68px));
  padding: clamp(18px, 4vw, 42px) clamp(12px, 4vw, 46px) clamp(34px, 6vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid rgba(31, 122, 117, 0.14);
}

body.dashboard-route .practice-hero,
body.dashboard-route .public-band,
body.dashboard-route .value-showcase,
body.dashboard-route .home-how-section,
body.dashboard-route .sample-section {
  display: none;
}

body.result-route .practice-hero,
body.result-route .public-band,
body.result-route .value-showcase,
body.result-route .home-how-section,
body.result-route .sample-section,
body.result-route .dashboard-shell,
body.result-route .simulator-setup-shell,
body.result-route .test-shell,
body.result-route .completed-shell,
body.result-route .simulator-access-panel {
  display: none !important;
}

body.dashboard-route .dashboard-shell {
  margin-top: 0;
}

body.dashboard-route .simulator-setup-shell,
body.dashboard-route .test-shell,
body.dashboard-route .result-shell,
body.dashboard-route .completed-shell,
body.dashboard-route .simulator-access-panel {
  display: none !important;
}

body.simulator-page .practice-hero,
body.simulator-page .public-band,
body.simulator-page .value-showcase,
body.simulator-page .home-how-section,
body.simulator-page .sample-section,
body.simulator-page .dashboard-shell {
  display: none;
}

body.simulator-page main {
  padding: clamp(8px, 1.6vw, 18px) clamp(22px, 4vw, 46px) clamp(22px, 4vw, 46px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(249, 250, 246, 0.98) 0%, rgba(249, 250, 246, 0.9) 30%, rgba(249, 250, 246, 0.52) 58%, rgba(249, 250, 246, 0.08) 100%),
    linear-gradient(180deg, rgba(14, 34, 29, 0.08), rgba(14, 34, 29, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.practice-hero .interface-showcase {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(900px, 100%);
  align-self: start;
  margin-top: 0;
  backdrop-filter: blur(18px);
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  color: var(--teal);
  background: rgba(233, 246, 244, 0.9);
  border: 1px solid rgba(164, 215, 208, 0.9);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.practice-hero h1 {
  max-width: 590px;
  margin-bottom: 12px;
  color: #14231e;
  font-size: clamp(1.75rem, 3.25vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 12px;
  color: #30413a;
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
}

.hero-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 660px;
  margin: 0 0 16px;
  font-family: var(--font-sans);
}

.hero-feature-list div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(179, 38, 59, 0.2);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.06);
}

.hero-feature-list span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #1556b3;
  background: #eef5ff;
  border: 1px solid rgba(21, 86, 179, 0.28);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.hero-feature-list strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: #1e2c26;
  font-size: clamp(0.84rem, 1vw, 0.93rem);
  line-height: 1.2;
}

.hero-actions,
.result-actions,
.test-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-cta-button {
  min-width: 230px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 20px rgba(180, 59, 71, 0.22);
}

.result-dashboard-button,
.result-start-simulator-button {
  color: #fff;
  border-color: transparent;
}

.result-dashboard-button:hover,
.result-start-simulator-button:hover {
  color: #fff;
}

.result-dashboard-button {
  background: linear-gradient(135deg, var(--accent-dark), #8d2032);
}

.large-button {
  min-height: 48px;
  padding: 12px 18px;
  font-size: 1rem;
}

.hero-note {
  max-width: 680px;
  margin: 12px 0 0;
  color: #52625c;
  font-size: 0.9rem;
}

.public-band {
  padding: 18px clamp(16px, 6vw, 72px) 28px;
  background: #17201c;
}

.public-band-header {
  max-width: 1180px;
  margin: 0 auto 14px;
}

.public-band-header .section-kicker {
  color: #a9e5df;
}

.public-band-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 500;
}

.public-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.public-metric {
  min-height: 92px;
  padding: 18px;
  background: #202c27;
}

.public-metric span {
  display: block;
  color: #fff;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
}

.public-metric .metric-word {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.public-metric p {
  margin: 8px 0 0;
  color: #c9d6d0;
}

.value-showcase {
  display: block;
  padding: clamp(40px, 7vw, 76px) clamp(16px, 6vw, 72px);
  background:
    linear-gradient(135deg, #f8faf7 0%, #ecf6f3 48%, #fff8ea 100%);
  border-top: 1px solid rgba(31, 122, 117, 0.1);
  border-bottom: 1px solid rgba(185, 125, 21, 0.14);
}

.value-content,
.interface-showcase {
  min-width: 0;
}

.value-content {
  max-width: 1180px;
  margin: 0 auto;
}

.value-content h2,
.showcase-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.08;
}

.value-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.04rem;
}

@media (min-width: 980px) {
  .value-showcase .value-intro {
    max-width: none;
    white-space: nowrap;
  }
}

.language-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--teal) 0%, #267f65 46%, var(--accent) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(31, 122, 117, 0.18);
}

.language-highlight span {
  display: block;
  margin-bottom: 4px;
  color: #fff7e6;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-highlight strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
}

.language-highlight p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.hero-language-highlight {
  align-items: start;
  flex-direction: column;
  max-width: 610px;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, #17201c 0%, var(--accent-dark) 56%, var(--accent) 100%);
  box-shadow: 0 14px 34px rgba(23, 32, 28, 0.16);
}

.hero-language-highlight strong {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-language-highlight p {
  max-width: none;
  font-size: 0.9rem;
}

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

.feature-tile {
  min-height: 176px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-tile:hover {
  border-color: rgba(31, 122, 117, 0.28);
  box-shadow: 0 18px 34px rgba(23, 32, 28, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.feature-tile:nth-child(2) .feature-icon {
  background: var(--accent);
}

.feature-tile:nth-child(3) .feature-icon {
  background: var(--gold);
}

.feature-tile:nth-child(4) .feature-icon {
  background: var(--green);
}

.feature-tile p {
  margin-bottom: 0;
  color: var(--muted);
}

.home-how-section,
.sample-section,
.dashboard-shell {
  padding: clamp(8px, 1vw, 10px) clamp(16px, 6vw, 72px) clamp(40px, 7vw, 76px);
  background: var(--surface);
  border-bottom: 1px solid rgba(31, 122, 117, 0.1);
}

.home-how-section {
  padding-top: clamp(34px, 5vw, 56px);
  background:
    linear-gradient(180deg, rgba(245, 250, 247, 0.9), rgba(255, 255, 255, 0.98));
}

.pricing-section {
  padding: clamp(36px, 6vw, 68px) clamp(16px, 6vw, 72px);
  background:
    linear-gradient(135deg, #17201c 0%, #3b2023 42%, #8d2430 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(31, 122, 117, 0.14);
}

.pricing-intro,
.pricing-grid,
.pricing-includes,
.simulator-access-panel > *,
.upgrade-panel {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-intro {
  margin-bottom: 18px;
  color: #fff;
}

.pricing-intro .section-kicker {
  color: #aee6df;
}

.pricing-intro h2 {
  max-width: 780px;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.1;
}

.pricing-intro p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

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

.pricing-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 250px;
  padding: clamp(18px, 3vw, 26px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 250, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  box-shadow: 0 20px 46px rgba(23, 32, 28, 0.16);
}

.pricing-card strong {
  color: var(--accent-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.pricing-plan-name {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-pricing-card {
  border-color: rgba(255, 211, 107, 0.86);
  box-shadow:
    0 22px 52px rgba(23, 32, 28, 0.2),
    inset 0 0 0 2px rgba(185, 125, 21, 0.14);
}

.best-value-badge {
  justify-self: start;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #8a5d12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-includes {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 24px);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.pricing-includes h2 {
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
}

.pricing-includes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.practice-upgrade-card {
  border-color: rgba(141, 36, 48, 0.22);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff7e6 48%, #fff1f2 100%);
}

.practice-upgrade-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.practice-upgrade-plans span {
  display: grid;
  gap: 3px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(179, 38, 59, 0.18);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.practice-upgrade-plans strong {
  color: var(--accent-dark);
}

.pricing-card-note {
  align-self: end;
  justify-self: start;
  margin-top: 6px;
  padding: 7px 10px;
  color: var(--accent-dark);
  background: var(--red-soft);
  border: 1px solid rgba(179, 38, 59, 0.18);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.upgrade-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: clamp(16px, 3vw, 22px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 32, 28, 0.98), rgba(141, 36, 48, 0.9)),
    var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(23, 32, 28, 0.14);
}

.upgrade-panel .section-kicker {
  color: #aee6df;
}

.upgrade-panel h2,
.upgrade-panel h3 {
  margin-bottom: 6px;
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 500;
}

.upgrade-panel p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.simulator-access-panel {
  padding: clamp(8px, 1.6vw, 18px) 0 0;
}

.home-how-section > .section-header,
.home-how-section > .how-steps,
.sample-section > .section-header,
.sample-section > .value-intro,
.sample-question-list,
.dashboard-shell > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.home-how-section > .section-header h2 {
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.1;
}

.sample-question-list {
  display: block;
  margin-top: 22px;
}

.sample-question-card,
.dashboard-card {
  min-width: 0;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.06);
}

.sample-question-header {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sample-question-card h3 {
  font-size: 1rem;
  line-height: 1.28;
}

.sample-question-card ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sample-question-card li {
  padding: 8px 10px;
  color: #34423b;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
}

.sample-carousel-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(118px, auto) minmax(130px, 1fr) auto;
  max-width: 920px;
  min-height: 560px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  background:
    linear-gradient(135deg, #ffffff 0%, #edf8f6 48%, #fff5df 100%);
  border: 2px solid rgba(31, 122, 117, 0.22);
  box-shadow: 0 24px 60px rgba(23, 32, 28, 0.13);
}

.sample-carousel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--accent));
}

.sample-carousel-top,
.sample-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sample-carousel-card .sample-question-header {
  margin-bottom: 0;
}

.sample-carousel-card .sample-question-header .pill:first-child {
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: 0 10px 22px rgba(180, 59, 71, 0.18);
}

.sample-progress-text {
  display: grid;
  place-items: center;
  min-width: 76px;
  min-height: 76px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(180, 59, 71, 0.22);
}

.sample-carousel-card h3 {
  max-width: 760px;
  margin: 26px 0 20px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.sample-option-list {
  align-self: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sample-carousel-card .sample-option-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(31, 122, 117, 0.2);
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.06);
}

.sample-option-list li span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.sample-option-list li:nth-child(2) span {
  background: var(--accent);
}

.sample-option-list li:nth-child(3) span {
  background: var(--gold);
}

.sample-option-list li:nth-child(4) span {
  background: var(--green);
}

.sample-option-list li strong {
  font-size: 1rem;
  font-weight: 700;
}

.sample-carousel-controls {
  align-self: end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 122, 117, 0.16);
}

.sample-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sample-dots span {
  width: 10px;
  height: 10px;
  background: #c7d7d2;
  border-radius: 50%;
}

.sample-dots span.is-active {
  width: 30px;
  background: var(--teal);
  border-radius: 999px;
}

.dashboard-shell {
  background:
    linear-gradient(135deg, #f8faf7 0%, #eef8f6 55%, #fff8ea 100%);
}

.dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(14px, 2.4vw, 20px);
  margin-bottom: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 32, 28, 0.98), rgba(141, 36, 48, 0.9)),
    var(--ink);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(23, 32, 28, 0.16);
}

.dashboard-hero h2 {
  max-width: none;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.08;
}

.dashboard-hero p {
  max-width: none;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.35;
}

.dashboard-hero .section-kicker {
  color: #aee6df;
}

.dashboard-hero-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-hero-actions .button-link {
  text-decoration: none;
}

.dashboard-hero-actions .primary-button {
  background: #fff;
  color: var(--accent-dark);
  border-color: #fff;
  box-shadow: 0 14px 30px rgba(23, 32, 28, 0.18);
}

.dashboard-hero-actions .primary-button:hover {
  background: #fff7f1;
  border-color: #fff7f1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.dashboard-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dashboard-card strong {
  display: block;
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: keep-all;
}

.dashboard-attempt-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.dashboard-attempt-counts strong {
  margin: 0;
  padding: 9px 10px;
  background: rgba(31, 122, 117, 0.08);
  border: 1px solid rgba(31, 122, 117, 0.18);
  border-radius: 8px;
}

.dashboard-attempt-counts b {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1;
}

.dashboard-attempt-counts small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-card.clickable-card {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-card.clickable-card:hover,
.dashboard-card.clickable-card:focus-visible {
  border-color: rgba(31, 122, 117, 0.38);
  box-shadow: 0 18px 38px rgba(23, 32, 28, 0.12);
  transform: translateY(-2px);
}

.dashboard-card.clickable-card:focus-visible {
  outline: 3px solid rgba(31, 122, 117, 0.28);
  outline-offset: 3px;
}

.dashboard-readiness-panel {
  margin-top: 14px;
  padding: clamp(16px, 3vw, 22px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 122, 117, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 28, 0.07);
}

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

.readiness-panel-header h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
}

.final-readiness-score {
  min-width: 170px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--accent-dark));
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(31, 122, 117, 0.18);
}

.final-readiness-score span {
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.final-readiness-score strong {
  display: block;
  margin-top: 3px;
  font-size: 2rem;
  line-height: 1;
}

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

.readiness-row,
.readiness-empty {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.readiness-empty {
  grid-column: 1 / -1;
}

.readiness-empty p {
  margin: 5px 0 0;
  color: var(--muted);
}

.readiness-row-main,
.readiness-score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.readiness-row h4 {
  margin: 0;
  font-size: 1rem;
}

.readiness-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.readiness-row-main span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.readiness-score-line {
  margin-top: 12px;
}

.readiness-bar {
  flex: 1 1 auto;
  height: 10px;
  overflow: hidden;
  background: #edf2ef;
  border-radius: 999px;
}

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

.readiness-score-line strong {
  min-width: 48px;
  color: var(--ink);
  text-align: right;
}

.readiness-strong .readiness-row-main span {
  color: var(--green);
  background: var(--green-soft);
}

.readiness-moderate .readiness-row-main span {
  color: #8a5b00;
  background: var(--gold-soft);
}

.readiness-weak .readiness-row-main span {
  color: var(--red);
  background: var(--red-soft);
}

.readiness-strong .readiness-bar span {
  background: var(--green);
}

.readiness-moderate .readiness-bar span {
  background: var(--gold);
}

.readiness-weak .readiness-bar span {
  background: var(--red);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.dashboard-tab-group {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: rgba(233, 246, 244, 0.86);
  border: 1px solid rgba(31, 122, 117, 0.18);
  border-radius: 8px;
}

.dashboard-tab-group button {
  min-height: 42px;
  padding: 10px 16px;
  color: #31443d;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-tab-group button:hover,
.dashboard-tab-group button.is-active {
  color: #fff;
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(162, 31, 48, 0.18);
}

.weak-area-action-button {
  margin-left: auto;
  min-height: 48px;
  padding: 12px 18px;
  color: #10241f;
  background: linear-gradient(135deg, #f8dd8f, #74d2c8);
  border: 1px solid rgba(31, 122, 117, 0.34);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(31, 122, 117, 0.18);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
}

.weak-area-action-button:hover {
  background: linear-gradient(135deg, #ffe9a8, #4cbdb2);
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(31, 122, 117, 0.24);
}

.dashboard-history-panel,
.dashboard-mistake-panel {
  margin-top: 16px;
  padding: clamp(16px, 3vw, 22px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 122, 117, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 28, 0.07);
}

.dashboard-history-panel .section-header,
.dashboard-mistake-panel .section-header {
  margin-bottom: 12px;
}

.mistake-topic-filter {
  display: grid;
  gap: 5px;
  min-width: min(260px, 100%);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mistake-topic-filter select {
  min-height: 40px;
  padding: 8px 36px 8px 12px;
  color: #17201c;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 122, 117, 0.22);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: none;
}

.mistake-topic-filter select:disabled {
  opacity: 0.72;
}

.history-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.history-filter button {
  min-height: 38px;
  padding: 8px 12px;
  color: #31443d;
  background: rgba(233, 246, 244, 0.9);
  border: 1px solid rgba(31, 122, 117, 0.18);
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.history-filter button:hover,
.history-filter button.is-active {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(162, 31, 48, 0.16);
}

.dashboard-history-panel h3,
.dashboard-mistake-panel h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
}

.dashboard-history-list,
.dashboard-mistake-list {
  display: grid;
  gap: 10px;
}

.history-row,
.history-empty {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-empty {
  display: block;
}

.history-empty p {
  margin: 5px 0 0;
  color: var(--muted);
}

.mistake-row {
  display: grid;
  gap: 10px;
  padding: 15px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8faf7 58%, #fff5f6 100%);
  border: 1px solid rgba(179, 38, 59, 0.18);
  border-radius: 8px;
}

.mistake-row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mistake-row h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

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

.mistake-answer-grid p {
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mistake-answer-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mistake-answer-grid strong {
  color: var(--ink);
}

.mistake-explanation {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.history-score {
  display: grid;
  place-items: center;
  min-height: 64px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
}

.history-score strong {
  font-size: 1.3rem;
  line-height: 1;
}

.history-score span {
  font-size: 0.78rem;
  font-weight: 800;
}

.history-main h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.history-main p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.history-main div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.simulator-setup-shell {
  padding: clamp(8px, 1vw, 10px) clamp(16px, 6vw, 72px) clamp(34px, 6vw, 64px);
  background:
    linear-gradient(135deg, #ffffff 0%, #eef8f6 52%, #fff8ea 100%);
  border-bottom: 1px solid rgba(31, 122, 117, 0.14);
}

.simulator-setup-shell > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.setup-topbar,
.setup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.setup-topbar {
  display: none;
}

.setup-topbar h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 400;
}

.compact-step-counter {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.compact-step-counter > div {
  display: none;
}

.setup-progress {
  height: 8px;
  margin-top: 0;
  overflow: hidden;
  background: rgba(31, 122, 117, 0.12);
  border-radius: 999px;
}

.setup-progress span {
  display: block;
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  border-radius: inherit;
  transition: width 220ms ease;
}

.setup-panel {
  --setup-panel-padding: clamp(20px, 4vw, 34px);
  --setup-panel-icon-left: clamp(16px, 3vw, 28px);
  position: relative;
  display: none;
  margin-top: 24px;
  padding: var(--setup-panel-padding) var(--setup-panel-padding) var(--setup-panel-padding) clamp(76px, 8vw, 96px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 28, 0.08);
}

.setup-panel.is-active {
  display: block;
}

.setup-panel h3 {
  max-width: min(100%, 780px);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.setup-step-intro {
  max-width: min(100%, 920px);
  margin: 0 0 18px;
  color: #17201c;
  font-size: 1rem;
  line-height: 1.45;
}

.setup-panel-controls {
  position: absolute;
  top: var(--setup-panel-padding);
  right: var(--setup-panel-padding);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 0;
  z-index: 2;
}

.setup-panel-controls #setupStepCounter {
  min-height: 44px;
  padding: 9px 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31, 122, 117, 0.96), rgba(179, 38, 59, 0.92));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(141, 36, 48, 0.18);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.setup-actions {
  margin-top: 18px;
}

.setup-actions-top {
  justify-content: flex-end;
  margin-top: 0;
}

.setup-panel-controls .setup-actions {
  margin-top: 0;
}

.setup-stage-icon {
  --icon-accent: var(--red);
  --icon-accent-dark: var(--red-dark);
  --icon-soft: #fff1f3;
  position: absolute;
  top: var(--setup-panel-padding);
  left: var(--setup-panel-icon-left);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--icon-accent-dark);
  background: var(--icon-soft);
  border: 2px solid color-mix(in srgb, var(--icon-accent) 42%, #ffffff);
  border-radius: 50%;
  box-shadow: none;
}

.setup-stage-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setup-stage-icon-welcome,
.setup-stage-icon-startTest {
  --icon-accent: #b3263b;
  --icon-accent-dark: #8f1f30;
  --icon-soft: #ffe8ec;
}

.setup-stage-icon-privacyTerms,
.setup-stage-icon-rules {
  --icon-accent: #1f7a75;
  --icon-accent-dark: #0f4f4b;
  --icon-soft: #e2f4f2;
}

.setup-stage-icon-mockSignIn,
.setup-stage-icon-identityConfirm,
.setup-stage-icon-faceCheck,
.setup-stage-icon-facePhoto {
  --icon-accent: #1e64c8;
  --icon-accent-dark: #184b92;
  --icon-soft: #e8f1ff;
}

.setup-stage-icon-emailLink {
  --icon-accent: #c47a00;
  --icon-accent-dark: #865100;
  --icon-soft: #fff3d8;
}

.setup-stage-icon-camera,
.setup-stage-icon-lightingCheck,
.setup-stage-icon-mockId {
  --icon-accent: #d1452f;
  --icon-accent-dark: #9b2f20;
  --icon-soft: #ffece7;
}

.setup-choice-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px;
  background: var(--teal-soft);
  border: 1px solid #a9dcd7;
  border-radius: 8px;
}

.setup-choice-actions p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.consent-list,
.check-list {
  display: grid;
  align-content: start;
  align-self: start;
  grid-auto-rows: max-content;
  gap: 6px;
  margin-top: 12px;
}

.consent-list label,
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-item {
  align-items: flex-start;
  min-height: 0;
  padding: 7px 10px;
  line-height: 1.3;
  font-weight: 800;
}

.check-item.good {
  color: #0f4f4b;
  background: #eef8f6;
  border-color: #a9dcd7;
}

.check-item.warning {
  color: #6d4b12;
  background: #fff7e6;
  border-color: #ead19e;
}

.check-item.neutral {
  color: var(--muted);
}

.check-icon {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.check-item.good .check-icon {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.check-item.warning .check-icon {
  color: #ffffff;
  background: #c47a00;
  border-color: #c47a00;
}

.consent-list .consent-select-all {
  color: #17201c;
  background: linear-gradient(135deg, #eef8f6, #fff7e6);
  border-color: rgba(31, 122, 117, 0.28);
  font-weight: 900;
}

.consent-list input {
  width: auto;
  min-height: auto;
  margin-top: 0;
}

.mock-detail-grid,
.camera-setup-grid,
.mock-id-layout,
.mock-link-panel,
.mock-email-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}

.mock-link-panel,
.mock-email-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mock-email-card {
  grid-template-columns: minmax(0, 1fr);
}

.mock-detail-grid + .privacy-note,
.camera-setup-grid + .privacy-note,
.mock-id-layout + .privacy-note,
.mock-link-panel + .privacy-note,
.mock-email-card + .privacy-note {
  margin-top: 12px;
}

.mock-id-layout {
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 0.85fr);
}

.mock-id-camera-panel {
  display: grid;
  gap: 12px;
}

.mock-id-camera-tips {
  padding: 12px 14px 12px 32px;
  color: #4f5f59;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 246, 0.88));
  border: 1px solid rgba(31, 122, 117, 0.18);
  border-radius: 8px;
  font-size: 0.95rem;
}

.id-position-example {
  margin: 0 0 14px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(31, 122, 117, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.08);
}

.id-position-example img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
}

.id-position-example figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

[data-setup-step="camera"] .camera-setup-grid,
[data-setup-step="lightingCheck"] .camera-setup-grid,
[data-setup-step="faceCheck"] .camera-setup-grid,
[data-setup-step="facePhoto"] .camera-setup-grid,
[data-setup-step="mockId"] .mock-id-layout {
  grid-template-columns: minmax(320px, 640px) minmax(260px, 1fr);
  align-items: start;
}

.mock-detail-grid div,
.practice-detail-field,
.camera-status-panel,
.mock-id-guidance {
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mock-detail-grid span,
.practice-detail-field span,
.mock-link-panel span,
.mock-email-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mock-detail-grid strong,
.mock-link-panel strong,
.mock-email-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.practice-detail-field {
  display: grid;
  gap: 8px;
}

.practice-detail-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.practice-detail-field input.is-invalid {
  background: var(--red-soft);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(179, 38, 59, 0.12);
}

.practice-detail-field small {
  color: var(--muted);
  font-weight: 700;
}

.detail-validation-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #1d5d58;
  background: var(--teal-soft);
  border: 1px solid #a9dcd7;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.detail-validation-note.is-error {
  color: #7a1421;
  background: var(--red-soft);
  border-color: var(--red-line);
}

.camera-live-box {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #101a17;
  border: 1px solid rgba(23, 32, 28, 0.2);
  border-radius: 8px;
}

[data-setup-step="camera"] .camera-live-box,
[data-setup-step="lightingCheck"] .camera-live-box,
[data-setup-step="faceCheck"] .camera-live-box,
[data-setup-step="facePhoto"] .camera-live-box,
[data-setup-step="mockId"] .camera-live-box {
  width: min(100%, 640px);
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.camera-live-box video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transform: scaleX(-1);
}

[data-setup-step="camera"] .camera-live-box video,
[data-setup-step="lightingCheck"] .camera-live-box video,
[data-setup-step="faceCheck"] .camera-live-box video,
[data-setup-step="facePhoto"] .camera-live-box video,
[data-setup-step="mockId"] .camera-live-box video {
  min-height: 0;
}

#cameraPlaceholder,
.face-frame {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  color: #d8e5df;
  border: 2px dashed rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  text-align: center;
}

.face-frame {
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.72);
}

.camera-status-panel {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 10px;
}

.camera-feedback-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  color: #17201c;
  background: linear-gradient(135deg, #eef8f6, #fff7e6);
  border: 1px solid rgba(31, 122, 117, 0.28);
  border-radius: 8px;
  font-weight: 900;
}

.camera-feedback-option input {
  width: auto;
  min-height: auto;
}

.camera-skip-note {
  margin: 0;
  padding: 10px 12px;
  color: #6d4b12;
  background: var(--gold-soft);
  border: 1px solid #ead19e;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.mock-id-guidance {
  align-self: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 246, 0.98));
}

.mock-id-guidance h4 {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.rules-list,
.mock-id-layout ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.environment-monitor-badge {
  justify-self: end;
  padding: 8px 10px;
  color: #0f4f4b;
  background: #e3f3f1;
  border: 1px solid rgba(31, 122, 117, 0.28);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.environment-report {
  margin-top: 18px;
  padding: clamp(18px, 4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 28, 0.08);
}

.environment-report-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.environment-report-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.environment-report-item.warning {
  background: var(--gold-soft);
  border-color: #edcf8e;
}

.environment-report-item.good {
  background: var(--green-soft);
  border-color: var(--green-line);
}

.environment-report-item.neutral {
  background: #eef8f7;
  border-color: rgba(31, 122, 117, 0.2);
}

.environment-icon {
  width: 34px;
  height: 34px;
  color: #1f7a75;
  background: #e8f6f4;
}

.environment-report-item.warning .environment-icon {
  color: #8a5a09;
  background: #fff1c8;
}

.environment-report-item.good .environment-icon {
  color: #1f7a4f;
  background: #e7f6ee;
}

.environment-report-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.environment-report-item strong {
  display: block;
  margin-top: 7px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.environment-report-time {
  display: block;
  margin-top: 10px;
  padding-top: 9px;
  color: #6d4b12;
  border-top: 1px solid rgba(196, 122, 0, 0.22);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.35;
  text-transform: none;
}

.environment-report-time-note,
.environment-time-row {
  display: block;
}

.environment-report-time-note {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}

.environment-time-row {
  padding: 8px 0;
}

.environment-time-row + .environment-time-row {
  margin-top: 6px;
  border-top: 1px solid rgba(196, 122, 0, 0.18);
}

.environment-time-row span {
  display: block;
}

.environment-time-row span:first-child {
  margin-bottom: 3px;
  color: #17201c;
  font-weight: 900;
}

.environment-timeline {
  margin-top: 18px;
}

.environment-timeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.environment-timeline-card,
.environment-timeline-empty {
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faf7 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.environment-timeline-card h3 {
  margin: 4px 0 12px;
  font-size: 1.15rem;
}

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

.environment-event-row,
.environment-timeline-empty,
.environment-recommendation-list li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.environment-event-row {
  padding: 12px;
  background: var(--gold-soft);
  border: 1px solid #edcf8e;
  border-radius: 8px;
}

.environment-event-time {
  min-width: 52px;
  padding: 5px 8px;
  color: #ffffff;
  background: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.environment-event-row strong,
.environment-timeline-empty strong {
  display: block;
  margin-bottom: 4px;
}

.environment-event-row p,
.environment-event-row small,
.environment-timeline-empty p {
  display: block;
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.environment-event-row small + small {
  margin-top: 4px;
}

.environment-recommendation-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.environment-recommendation-list li {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
  background: #eef8f7;
  border: 1px solid rgba(31, 122, 117, 0.2);
  border-radius: 8px;
  font-weight: 700;
}

.interface-showcase {
  align-self: start;
  padding: clamp(16px, 3vw, 24px);
  background:
    linear-gradient(145deg, #17201c 0%, #203a35 54%, #5e2530 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(23, 32, 28, 0.24);
}

.showcase-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: #fff;
}

.showcase-header .section-kicker {
  color: #91d6d1;
}

.showcase-dots {
  display: flex;
  gap: 7px;
  padding-top: 6px;
}

.showcase-dot {
  width: 11px;
  height: 11px;
  min-height: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  border: 0;
  border-radius: 50%;
}

.showcase-dot.is-active {
  width: 28px;
  background: #fff;
  border-radius: 999px;
}

.showcase-frame {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 247, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.practice-hero .showcase-frame {
  min-height: clamp(390px, 42vw, 500px);
}

.showcase-frame::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--accent));
  transform-origin: left center;
  animation: showcaseProgress 3.6s linear infinite;
}

.interface-showcase:hover .showcase-frame::after,
.interface-showcase:focus-within .showcase-frame::after {
  animation-play-state: paused;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: stretch;
  padding: clamp(16px, 3vw, 22px);
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}

.showcase-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.screenshot-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  height: 100%;
  margin: 0;
}

.screenshot-window {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #f8faf7;
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(23, 32, 28, 0.18);
}

.screenshot-window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.screenshot-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.screenshot-card figcaption {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(215, 223, 217, 0.9);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 28, 0.08);
}

.screenshot-card figcaption span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screenshot-card figcaption strong {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.25;
}

.practice-hero .showcase-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.practice-hero .showcase-slide {
  padding: clamp(12px, 2vw, 18px);
}

.practice-hero .screenshot-card {
  gap: 0;
}

.practice-hero .screenshot-card figcaption {
  padding: 14px;
}

@keyframes showcaseProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mock-browser-bar span {
  width: 9px;
  height: 9px;
  background: #d6ddd8;
  border-radius: 50%;
}

.mock-browser-bar span:first-child {
  background: var(--accent);
}

.mock-browser-bar span:nth-child(2) {
  background: var(--gold);
}

.mock-browser-bar span:nth-child(3) {
  background: var(--green);
}

.mock-browser-bar strong {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.mock-stepper span {
  min-height: 70px;
  padding: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

.mock-stepper .is-complete {
  color: #276845;
  background: var(--green-soft);
  border-color: var(--green-line);
}

.mock-stepper .is-active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.camera-preview {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.camera-face {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 37%, #f7d6bd 0 15%, transparent 16%),
    radial-gradient(circle at 50% 76%, #315348 0 25%, transparent 26%),
    linear-gradient(135deg, #dff0ec, #f8fbf8);
  border: 8px solid #ecf2ee;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #b7d9d4;
}

.camera-preview p,
.mock-review-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.mock-test-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mock-test-top p {
  margin-bottom: 4px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
}

.mock-test-top strong {
  align-self: start;
  min-width: 92px;
  padding: 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-size: 1.35rem;
  text-align: center;
}

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

.mock-options span {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.mock-options .is-selected {
  border-color: var(--teal);
  box-shadow: inset 4px 0 0 var(--teal);
}

.mock-review-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mock-badge {
  padding: 7px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.mock-badge.is-correct {
  color: var(--green);
  background: var(--green-soft);
}

.mock-badge.is-incorrect {
  color: var(--red);
  background: var(--red-soft);
}

.mock-score-card {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 28px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--accent-dark));
  border-radius: 8px;
}

.mock-score-card p,
.mock-score-card span {
  margin: 0;
  font-weight: 800;
}

.mock-score-card strong {
  font-size: clamp(3.2rem, 8vw, 5rem);
  line-height: 1;
}

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

.mock-progress-list span {
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.test-shell,
.result-shell,
.completed-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 52px;
}

.test-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.test-status-bar h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.test-status-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.return-welcome-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: rgba(141, 36, 48, 0.72);
  box-shadow: 0 10px 20px rgba(180, 59, 71, 0.2);
  white-space: nowrap;
}

.return-welcome-button .button-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.return-welcome-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #d63a4b, #8d2430);
}

.test-camera-preview {
  position: relative;
  width: 100%;
  margin-top: 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, #17201c, #30413a);
  border: 1px solid rgba(31, 122, 117, 0.24);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(23, 32, 28, 0.08);
}

.test-camera-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.test-camera-preview span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #d9eee9;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.timer-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 120px;
  padding: 10px 14px;
  color: #fff;
  background: #26322d;
  border-radius: 8px;
  text-align: center;
}

.timer-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: #c9e9e4;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timer-box span {
  display: block;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.1;
}

.timer-box small {
  color: #c9d6d0;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.test-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
}

.question-map,
.active-question,
.result-hero,
.insight-panel,
.answer-review,
.completed-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.question-map {
  align-self: start;
  padding: 16px;
}

.question-map-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.map-button {
  width: 100%;
  min-height: 42px;
  padding: 0;
  color: #34423b;
  background: #f2f5f1;
  border-color: #d5ded8;
}

.map-button.is-current {
  color: #fff;
  background: var(--teal);
}

.map-button.is-answered {
  border-color: #9ccdbd;
  box-shadow: inset 0 -3px 0 #2e7d4f;
}

.active-question {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: clamp(18px, 4vw, 34px);
}

.active-question .test-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 122, 117, 0.12);
}

.active-question .test-controls button {
  min-width: 118px;
}

.question-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.active-question h2 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.answer-options {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.active-question .answer-options {
  flex: 1 1 auto;
}

.answer-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 58px;
  padding: 16px;
  background: #f8faf7;
  border: 1px solid #d7dfd9;
  border-radius: 8px;
  cursor: pointer;
}

.answer-option:hover {
  background: var(--teal-soft);
  border-color: #91cbc3;
}

.answer-option.is-selected {
  background:
    linear-gradient(90deg, rgba(31, 122, 117, 0.18), rgba(233, 246, 244, 0.98));
  border: 2px solid var(--teal);
  box-shadow:
    0 0 0 4px rgba(31, 122, 117, 0.14),
    inset 6px 0 0 var(--teal);
}

.answer-option.is-selected span {
  color: #10261f;
  font-weight: 850;
}

.answer-option input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.answer-option span {
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.submit-button {
  margin-left: auto;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 168px;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  margin-bottom: 14px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 82% 24%, rgba(248, 221, 143, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.96));
  box-shadow: 0 18px 42px rgba(23, 32, 28, 0.07);
}

.result-copy {
  min-width: 0;
}

.result-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
}

.result-hero #resultMessage {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.result-attempt-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 10px;
  max-width: 820px;
  margin: 16px 0 18px;
}

.result-attempt-meta div {
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8faf7, #fff7e6);
  border: 1px solid rgba(31, 122, 117, 0.18);
  border-radius: 10px;
}

.result-attempt-meta dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}

.result-attempt-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
}

.result-hero .result-actions {
  gap: 8px;
}

.result-hero .result-actions button {
  min-height: 42px;
  padding: 9px 14px;
}

.result-illustration {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  justify-self: end;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f6f4, #fff7e6);
  border: 1px solid rgba(31, 122, 117, 0.18);
  box-shadow: 0 18px 42px rgba(23, 32, 28, 0.1);
}

.result-illustration svg {
  width: 92px;
  height: 92px;
  fill: none;
  stroke: #1f7a75;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-illustration.result-good {
  background: linear-gradient(135deg, #e7f6ee, #fff7d5);
}

.result-illustration.result-good svg {
  stroke: #1f7a4f;
}

.result-illustration.result-practice {
  background: linear-gradient(135deg, #fff2d8, #fff7ef);
}

.result-illustration.result-practice svg {
  stroke: var(--accent-dark);
}

.score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  min-height: 118px;
  padding: 18px 16px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(179, 38, 59, 0.22);
}

.result-good .score-display {
  background: linear-gradient(135deg, #1f7a4f, #0e5f3a);
  box-shadow: 0 14px 30px rgba(31, 122, 79, 0.22);
}

.result-steady .score-display {
  background: linear-gradient(135deg, #1f7a75, #174f4b);
  box-shadow: 0 14px 30px rgba(31, 122, 117, 0.22);
}

.score-display span:first-child {
  font-size: 3.15rem;
  font-weight: 900;
  line-height: 0.9;
}

.score-display span:last-child {
  font-size: 1.08rem;
  font-weight: 800;
}

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

.insight-panel {
  min-height: 210px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.94));
  box-shadow: 0 14px 34px rgba(23, 32, 28, 0.06);
}

.insight-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.08rem;
}

.panel-title-icon,
.area-icon,
.coach-action-icon,
.environment-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
}

.panel-title-icon {
  width: 38px;
  height: 38px;
}

.strong-panel .panel-title-icon {
  color: #1f7a4f;
  background: #e7f6ee;
}

.review-panel .panel-title-icon {
  color: #9a2031;
  background: #fff0f2;
}

.coach-panel .panel-title-icon {
  color: #8a5a09;
  background: #fff1c8;
}

.panel-title-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight-list {
  display: grid;
  gap: 8px;
}

.area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.area-topic {
  flex: 1;
  min-width: 0;
}

.area-icon {
  width: 34px;
  height: 34px;
  color: #1f7a75;
  background: #e8f6f4;
}

.area-icon svg,
.coach-action-icon svg,
.environment-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-strong .area-icon {
  color: #1f7a4f;
  background: #e7f6ee;
}

.area-review .area-icon {
  color: #9a2031;
  background: #fff0f2;
}

.area-empty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(31, 122, 117, 0.18);
  border-radius: 8px;
}

.area-empty p {
  margin: 0;
}

.coach-panel {
  background: #fff7e6;
  border-color: #edcf8e;
}

.coach-headline {
  margin-bottom: 8px;
  color: #6b430c;
  font-weight: 850;
}

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

.coach-panel li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.coach-action-icon {
  width: 30px;
  height: 30px;
  color: #8a5a09;
  background: #fff1c8;
}

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

.answer-review {
  padding: clamp(18px, 4vw, 28px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

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

.review-item {
  padding: 16px;
  background: #fafbf8;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
}

.review-item.is-correct {
  border-left-color: var(--green);
}

.review-item.is-incorrect {
  border-left-color: var(--accent);
}

.review-heading {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.result-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.is-correct .result-dot {
  background: var(--green);
}

.review-number {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.review-answer-grid div {
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-status {
  align-self: start;
  min-width: 84px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.review-status.answer-correct {
  color: var(--green);
  background: var(--green-soft);
}

.review-status.answer-incorrect {
  color: var(--red);
  background: var(--red-soft);
}

.review-answer-grid .review-answer-card {
  position: relative;
  background: #fff;
}

.review-answer-grid .answer-correct {
  background: var(--green-soft);
  border-color: var(--green-line);
  box-shadow: inset 4px 0 0 var(--green);
}

.review-answer-grid .answer-correct span {
  color: #276845;
}

.review-answer-grid .answer-incorrect {
  background: var(--red-soft);
  border-color: var(--red-line);
  box-shadow: inset 4px 0 0 var(--red);
}

.review-answer-grid .answer-incorrect span {
  color: var(--red);
}

.review-answer-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-answer-grid .review-answer-text {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.completed-shell {
  padding: clamp(22px, 4vw, 34px);
}

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

.confirm-dialog,
.account-dialog,
.contact-dialog,
.contact-success-dialog,
.question-report-dialog {
  width: min(520px, calc(100% - 24px));
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(23, 32, 28, 0.82);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(23, 32, 28, 0.28);
}

.account-dialog {
  width: min(840px, calc(100% - 24px));
  font-family: var(--font-sans);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 230, 0.96) 46%, rgba(255, 241, 242, 0.98) 100%);
}

.profile-dialog {
  width: min(820px, calc(100% - 24px));
}

.confirm-dialog::backdrop,
.account-dialog::backdrop,
.contact-dialog::backdrop,
.contact-success-dialog::backdrop,
.question-report-dialog::backdrop {
  background: rgba(23, 32, 28, 0.58);
}

.confirm-dialog form,
.account-dialog form,
.contact-dialog form,
.question-report-dialog form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
}

.question-report-dialog {
  width: min(680px, calc(100% - 24px));
  font-family: var(--font-sans);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 230, 0.96) 52%, rgba(255, 241, 242, 0.98));
}

.question-report-form,
.question-report-dialog form {
  gap: 0;
}

.question-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: calc(clamp(18px, 3vw, 28px) * -1) calc(clamp(18px, 3vw, 28px) * -1) 0;
  padding: clamp(14px, 2.4vw, 22px) clamp(18px, 3vw, 28px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 32, 28, 0.98), rgba(141, 36, 48, 0.9)),
    var(--ink);
}

.question-report-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.question-report-logo {
  flex: 0 0 auto;
  width: 88px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
}

.question-report-header h2 {
  margin: 0 0 4px;
  color: #fff;
}

.question-report-header p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.question-report-header .section-kicker {
  color: #aee6df;
}

.question-report-body {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.question-report-body > p {
  margin: 0;
  color: var(--muted);
}

.question-report-body blockquote {
  margin: 0;
  padding: 12px 14px;
  color: #17201c;
  background: rgba(31, 122, 117, 0.08);
  border: 1px solid rgba(31, 122, 117, 0.22);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  font-weight: 400;
  line-height: 1.45;
}

.question-report-body label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 400;
}

.question-report-body textarea::placeholder {
  font-weight: 400;
}

.question-report-body textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.question-report-actions {
  margin-top: 2px;
}

.setup-warning-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 14px 12px 34px;
  color: #6b3d00;
  background: #fff7e8;
  border: 1px solid #f3c36f;
  border-radius: 8px;
}

.contact-dialog {
  width: min(720px, calc(100% - 24px));
}

.contact-popup-form .dialog-header {
  align-items: center;
  margin: calc(clamp(18px, 3vw, 28px) * -1) calc(clamp(18px, 3vw, 28px) * -1) 0;
  padding: clamp(14px, 2.4vw, 22px) clamp(18px, 3vw, 28px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 32, 28, 0.98), rgba(141, 36, 48, 0.9)),
    var(--ink);
}

.contact-dialog-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.contact-popup-form .dialog-header h2 {
  margin-bottom: 4px;
  color: #fff;
}

.contact-popup-form .dialog-header p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.contact-success-dialog {
  width: min(520px, calc(100% - 24px));
}

.contact-success-form {
  position: relative;
  justify-items: center;
  gap: 10px;
  padding: clamp(28px, 5vw, 42px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 250, 0.98) 48%, rgba(255, 244, 245, 0.98));
  border-radius: 16px;
}

.contact-success-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-success-close:hover {
  color: var(--accent-dark);
  background: rgba(179, 38, 59, 0.08);
}

.contact-success-logo {
  width: 122px;
  height: 70px;
  margin-bottom: 8px;
  filter: drop-shadow(0 14px 26px rgba(141, 36, 48, 0.2));
}

.contact-success-form h2 {
  margin: 0 0 8px;
  color: #292f7d;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2rem);
  line-height: 1.1;
}

.contact-success-form p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.42;
}

.contact-success-button {
  min-width: 150px;
  margin-top: 12px;
}

.account-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -28px -28px 0;
  padding: clamp(10px, 1.8vw, 16px) clamp(18px, 3vw, 28px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 32, 28, 0.98), rgba(141, 36, 48, 0.9)),
    var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.account-dialog-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-dialog-logo {
  flex: 0 0 auto;
  width: 92px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.account-dialog-header h2 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  line-height: 1.15;
}

.account-dialog-header p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.25;
}

.account-dialog-header .section-kicker {
  margin-bottom: 4px;
  color: #aee6df;
}

.close-button {
  flex: 0 0 auto;
  width: 42px;
  min-height: 42px;
  color: #fff;
  background: rgba(179, 38, 59, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(85, 11, 22, 0.28);
  font-size: 1.2rem;
  font-weight: 900;
}

.close-button:hover {
  background: #8d2430;
  transform: translateY(-1px);
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(179, 38, 59, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.account-tab {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.account-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 24px rgba(179, 38, 59, 0.24);
}

.account-panel {
  display: none;
}

.account-panel.is-active {
  display: grid;
  gap: 14px;
  padding: 2px;
}

.profile-panel {
  display: grid;
  gap: 8px;
  padding: 2px;
}

.profile-dialog form {
  gap: 10px;
  padding-bottom: 14px;
}

.profile-dialog .account-status:empty {
  min-height: 0;
}

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

.field-grid.one-column {
  grid-template-columns: 1fr;
}

.privacy-note {
  margin: 0;
  padding: 10px 12px;
  color: #5a4930;
  background: var(--gold-soft);
  border: 1px solid #ead19e;
  border-radius: 8px;
  font-size: 0.92rem;
}

.privacy-note + .privacy-note {
  margin-top: 12px;
}

.privacy-note + p,
p + .privacy-note {
  margin-top: 12px;
}

.terms-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  color: #26322d;
  background: #fff;
  border: 1px solid rgba(179, 38, 59, 0.28);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.06);
}

.terms-check input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.profile-editor {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-avatar-column {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(179, 38, 59, 0.18);
  border-radius: 8px;
}

.profile-avatar-preview .profile-avatar {
  width: 92px;
  height: 92px;
  border-width: 4px;
  font-size: 1.7rem;
}

.profile-upload-button {
  width: 100%;
  cursor: pointer;
}

.profile-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-avatar-column > button {
  width: 100%;
}

#profileEmail[readonly] {
  color: var(--muted);
  background: #eef3ef;
  cursor: not-allowed;
}

.profile-password-box {
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 122, 117, 0.18);
  border-radius: 8px;
}

.profile-password-box .section-kicker {
  margin-bottom: 8px;
}

.profile-password-grid label:first-child {
  grid-column: 1 / -1;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.password-field:focus-within {
  border-color: rgba(31, 122, 117, 0.46);
  box-shadow: 0 0 0 3px rgba(31, 122, 117, 0.12);
}

.password-field input {
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.password-field input:focus {
  outline: 0;
  box-shadow: none;
}

.password-toggle {
  min-height: 34px;
  margin-right: 8px;
  padding: 7px 12px;
  color: var(--red-dark);
  background: rgba(184, 55, 70, 0.08);
  border: 1px solid rgba(184, 55, 70, 0.28);
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 900;
}

.password-toggle:hover {
  color: var(--red-dark);
  background: rgba(184, 55, 70, 0.16);
  border-color: rgba(184, 55, 70, 0.46);
  transform: none;
}

.account-switch-copy {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
}

.account-switch-copy button {
  min-height: auto;
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-switch-copy button:hover {
  color: var(--accent);
  transform: none;
}

.account-switch-copy a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-check span {
  font-weight: 700;
}

.full-button {
  width: 100%;
}

.verification-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.verification-box h3 {
  margin-bottom: 0;
}

.verification-box a {
  display: block;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92rem;
}

.account-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(16px, 6vw, 72px);
  color: #d9e3dc;
  background: #17201c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #c9d6d0;
  font-size: 0.95rem;
}

.site-footer .footer-copyright {
  margin-top: 6px;
  color: #aebdb6;
  font-size: 0.86rem;
}

.footer-brand {
  display: inline-flex;
  width: 112px;
  padding: 4px;
  background: #fff;
  border-radius: 8px;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 8px 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
}

.content-page {
  padding: clamp(8px, 1vw, 10px) clamp(16px, 6vw, 72px) clamp(34px, 6vw, 70px);
}

.content-hero {
  max-width: 900px;
  margin: 0 auto 26px;
}

.how-page .content-hero,
.faq-page .content-hero,
.privacy-page .content-hero,
.terms-page .content-hero,
.contact-page .content-hero,
.discover-page .content-hero {
  max-width: 1180px;
  margin-bottom: 22px;
  padding: clamp(14px, 2.4vw, 20px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 32, 28, 0.98), rgba(141, 36, 48, 0.9)),
    var(--ink);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(23, 32, 28, 0.16);
}

.content-hero h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
}

.how-page .content-hero h1,
.privacy-page .content-hero h1,
.terms-page .content-hero h1,
.contact-page .content-hero h1,
.discover-page .content-hero h1 {
  max-width: 100%;
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.08;
}

.how-page .content-hero h1,
.faq-page .content-hero h1,
.privacy-page .content-hero h1,
.terms-page .content-hero h1,
.contact-page .content-hero h1,
.discover-page .content-hero h1 {
  color: #fff;
}

.faq-page .content-hero h1 {
  max-width: 100%;
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.08;
}

.discover-page .content-hero h1 {
  max-width: 100%;
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.08;
}

.content-hero p:not(.section-kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.how-page .content-hero .section-kicker,
.faq-page .content-hero .section-kicker,
.privacy-page .content-hero .section-kicker,
.terms-page .content-hero .section-kicker,
.contact-page .content-hero .section-kicker,
.discover-page .content-hero .section-kicker {
  color: #aee6df;
}

.how-page .content-hero p:not(.section-kicker),
.faq-page .content-hero p:not(.section-kicker),
.privacy-page .content-hero p:not(.section-kicker),
.terms-page .content-hero p:not(.section-kicker),
.contact-page .content-hero p:not(.section-kicker),
.discover-page .content-hero p:not(.section-kicker) {
  max-width: none;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.35;
}

.discover-content {
  background:
    radial-gradient(circle at top left, rgba(174, 230, 223, 0.26), transparent 32rem),
    linear-gradient(180deg, #f4f6f1 0%, #fffaf0 100%);
}

.discover-source-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: clamp(16px, 2.2vw, 22px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 246, 244, 0.72));
  border: 1px solid rgba(143, 207, 198, 0.8);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(23, 32, 28, 0.08);
}

.discover-source-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 500;
}

.discover-source-panel p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.discover-source-actions,
.discover-reader-actions,
.discover-next-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.discover-reader-actions {
  flex-wrap: nowrap;
}

.reader-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(23, 32, 28, 0.12);
}

.reader-icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bookmark-reader-button {
  background: linear-gradient(135deg, #c88a12, #8d2430);
}

.bookmark-reader-button.is-selected {
  background: linear-gradient(135deg, #1f8a83, #0f615c);
}

.read-reader-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.pause-reader-button {
  background: linear-gradient(135deg, #365f91, #1f8a83);
}

.stop-reader-button {
  background: linear-gradient(135deg, #17201c, #8d2430);
}

.reader-icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(23, 32, 28, 0.18);
}

.reader-icon-button:disabled:not(.is-reading) {
  cursor: not-allowed;
  filter: saturate(0.45);
  opacity: 0.52;
  box-shadow: none;
}

.reader-icon-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.reader-icon-button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 9px);
  min-width: max-content;
  padding: 6px 9px;
  color: #fff;
  background: #17201c;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.reader-icon-button::before {
  content: "";
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 9px;
  height: 9px;
  background: #17201c;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 140ms ease, transform 140ms ease;
}

.reader-icon-button:hover::after,
.reader-icon-button:hover::before,
.reader-icon-button:focus-visible::after,
.reader-icon-button:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reader-icon-button:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.discover-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.discover-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
}

.discover-sidebar-card,
.discover-reader-card,
.discover-study-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 249, 0.94));
  border: 1px solid rgba(215, 223, 217, 0.95);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(23, 32, 28, 0.08);
}

.discover-sidebar-card {
  padding: 14px;
}

.discover-section-nav,
.discover-bookmarks {
  display: grid;
  gap: 8px;
}

.discover-section-nav a,
.discover-bookmarks a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: #17201c;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(215, 223, 217, 0.95);
  border-radius: 10px;
  font-weight: 400;
  text-decoration: none;
}

.discover-section-nav a span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.discover-bookmarks a .bookmark-link-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent-dark);
  background: linear-gradient(135deg, #fff7e6, #e9f6f4);
  border: 1px solid rgba(200, 138, 18, 0.34);
  border-radius: 50%;
}

.bookmark-link-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discover-section-nav a:hover,
.discover-bookmarks a:hover,
.discover-section-nav a[aria-current="page"] {
  border-color: rgba(180, 59, 71, 0.55);
  background: #fff4f3;
}

.discover-section-nav a[aria-current="page"] span {
  background: linear-gradient(135deg, var(--teal), var(--accent));
}

.discover-bookmarks p,
.discover-meta-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.discover-reader-card {
  padding: clamp(18px, 3vw, 28px);
}

.discover-reader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(215, 223, 217, 0.95);
}

.discover-breadcrumb {
  color: var(--muted);
  font-weight: 800;
}

.discover-reader-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.discover-section-icon {
  --section-color: var(--accent);
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--section-color);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), rgba(255, 250, 240, 0.9)),
    color-mix(in srgb, var(--section-color) 12%, white);
  border: 1px solid color-mix(in srgb, var(--section-color) 38%, white);
  border-radius: 20px;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--section-color) 22%, transparent);
}

.discover-section-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discover-reader-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.discover-reader-heading p:not(.section-kicker) {
  max-width: none;
  color: var(--muted);
  font-size: 1.08rem;
}

.discover-reader-status {
  min-height: 42px;
  margin-bottom: 16px;
  padding: 10px 12px;
  color: #5a4930;
  background: var(--gold-soft);
  border: 1px solid #ead19e;
  border-radius: 10px;
  font-weight: 700;
}

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

.discover-study-card {
  padding: clamp(16px, 2.2vw, 20px);
}

.discover-study-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 800;
}

.discover-study-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.discover-study-card li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
}

.discover-study-card li::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 20px;
  height: 20px;
  background:
    radial-gradient(circle at center, var(--teal) 0 36%, transparent 38%),
    #e8f6f4;
  border: 1px solid rgba(31, 138, 131, 0.4);
  border-radius: 50%;
}

.discover-wide-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.discover-next-row {
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(215, 223, 217, 0.95);
}

.discover-reader-actions .reader-icon-button.is-reading,
.discover-reader-actions .reader-icon-button.is-reading:disabled {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--accent-dark));
  border-color: rgba(31, 138, 131, 0.65);
  box-shadow: 0 14px 28px rgba(31, 138, 131, 0.22);
  cursor: not-allowed;
  opacity: 1;
}

.discover-next-row .is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.policy-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.policy-card,
.contact-form,
.contact-panel {
  padding: clamp(18px, 3vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 28, 0.06);
}

.policy-card ul,
.contact-panel ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-card li,
.contact-panel li {
  margin-bottom: 8px;
}

.privacy-page .policy-layout,
.terms-page .policy-layout,
.contact-page .contact-layout {
  max-width: 1180px;
}

.privacy-page .policy-card,
.terms-page .policy-card,
.contact-page .contact-form,
.contact-page .contact-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 249, 0.94));
  border-color: rgba(215, 223, 217, 0.95);
  box-shadow: 0 16px 34px rgba(23, 32, 28, 0.08);
}

.privacy-page .policy-card:nth-child(even),
.terms-page .policy-card:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 246, 244, 0.72));
}

.privacy-page .policy-card h2,
.terms-page .policy-card h2,
.contact-page .contact-panel h2 {
  color: #17201c;
  font-weight: 500;
}

.how-steps {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.how-steps::before {
  content: "";
  position: absolute;
  top: 62px;
  bottom: 82px;
  left: 52px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--teal), var(--gold));
  border-radius: 999px;
}

.how-step {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: clamp(16px, 3vw, 22px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 249, 0.94));
  border: 1px solid rgba(215, 223, 217, 0.95);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 32, 28, 0.08);
}

.how-step:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 246, 244, 0.72));
}

.how-step-media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  background: #fff;
  border: 2px solid rgba(23, 32, 28, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 28, 0.09);
}

.how-step-media img {
  display: block;
  width: 82px;
  height: 82px;
}

.how-step-content span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.how-step-content h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 500;
}

.how-step-content p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.how-preview-note {
  margin-top: 4px;
  padding: 16px 18px;
  color: #5a4930;
  background: var(--gold-soft);
  border: 1px solid #ead19e;
  border-radius: 8px;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-page #contactMessage {
  min-height: 158px;
}

.contact-panel {
  align-self: start;
}

.contact-note {
  margin-top: 18px;
  padding: 14px;
  background: var(--teal-soft);
  border: 1px solid #b9ddd8;
  border-radius: 8px;
}

.contact-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(215, 223, 217, 0.96);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 28, 0.07);
}

.faq-item[open] {
  border-color: rgba(31, 122, 117, 0.28);
  box-shadow: 0 18px 42px rgba(23, 32, 28, 0.1);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 16px;
  align-items: center;
  padding: 20px clamp(18px, 3vw, 26px);
  color: #11241e;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary span {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent-dark);
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary {
  background: linear-gradient(135deg, rgba(233, 246, 244, 0.82), rgba(255, 247, 230, 0.64));
}

.faq-item[open] summary::after {
  content: "-";
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.faq-item div {
  padding: 0 clamp(18px, 3vw, 26px) 22px;
}

.faq-item p {
  max-width: none;
  margin-bottom: 10px;
  color: var(--muted);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-source-note {
  max-width: 980px;
  margin: 18px auto 0;
  padding: clamp(18px, 3vw, 24px);
  background: #17201c;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(23, 32, 28, 0.14);
}

.faq-source-note h2 {
  color: #fff;
}

.faq-source-note p {
  color: rgba(255, 255, 255, 0.8);
}

.faq-source-note div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.faq-source-note a {
  padding: 9px 11px;
  color: #17201c;
  background: #fff;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.faq-source-note a:hover {
  background: var(--gold-soft);
}

@media (max-width: 1120px) {
  .practice-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .practice-hero .interface-showcase {
    justify-self: stretch;
    width: 100%;
    margin-top: 12px;
  }

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

.dashboard-chart-panel,
.practice-mode-panel {
  width: 100%;
  max-width: 1180px;
  margin: 28px auto;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(23, 32, 28, 0.08);
}

.practice-page-shell {
  padding: clamp(8px, 1vw, 10px) clamp(16px, 6vw, 72px) clamp(46px, 7vw, 78px);
  background:
    linear-gradient(135deg, #f8faf7 0%, #eef8f6 55%, #fff8ea 100%);
}

.practice-page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  padding: clamp(14px, 2.4vw, 20px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 32, 28, 0.98), rgba(141, 36, 48, 0.9)),
    var(--ink);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(23, 32, 28, 0.16);
}

.dashboard-hero > div:first-child,
.practice-page-hero > div:first-child,
.simulator-page-hero > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.practice-page-hero h1 {
  max-width: none;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.08;
}

.practice-page-hero p {
  max-width: none;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.35;
}

.practice-page-hero .section-kicker {
  color: #aee6df;
}

.practice-page-hero .primary-button {
  flex: 0 0 auto;
  background: #fff;
  color: var(--accent-dark);
  border-color: #fff;
  text-decoration: none;
}

.simulator-page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: clamp(14px, 2.4vw, 20px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 32, 28, 0.98), rgba(141, 36, 48, 0.9)),
    var(--ink);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(23, 32, 28, 0.16);
}

.simulator-page-hero h1 {
  max-width: none;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 400;
  line-height: 1.08;
}

.simulator-page-hero p {
  max-width: none;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.35;
}

.simulator-page-hero .section-kicker {
  color: #aee6df;
}

.simulator-page-hero .secondary-button {
  flex: 0 0 auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: 1fr 220px 1.4fr;
  gap: 16px;
  margin-top: 16px;
}

.chart-card {
  min-height: 170px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf7 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.chart-card h4,
.practice-card h4 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.score-trend-chart {
  position: relative;
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 168px;
  padding: 20px 12px 10px;
  background:
    linear-gradient(180deg, rgba(31, 122, 117, 0.05), rgba(31, 122, 117, 0)),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.score-pass-line {
  position: absolute;
  right: 10px;
  left: 10px;
  bottom: calc(10px + (108px * 0.75));
  border-top: 1px dashed rgba(31, 122, 117, 0.52);
}

.score-pass-line span {
  position: absolute;
  top: -10px;
  right: 0;
  padding: 1px 7px;
  color: var(--teal);
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 900;
}

.score-trend-item {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1;
  gap: 6px;
  justify-items: center;
  min-width: 46px;
}

.score-trend-item strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1;
}

.score-trend-track {
  display: flex;
  align-items: end;
  width: 100%;
  max-width: 46px;
  height: 108px;
  padding: 3px;
  background: #fff;
  border: 1px solid rgba(215, 223, 217, 0.9);
  border-radius: 999px;
}

.score-trend-track span {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 999px;
}

.score-trend-item.is-pass .score-trend-track span {
  background: linear-gradient(180deg, var(--teal) 0%, #125f5a 100%);
}

.score-trend-item small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.practice-stat-ring {
  --accuracy: 0%;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--teal) var(--accuracy), #dce5df 0);
  border-radius: 50%;
}

.practice-stat-ring strong {
  display: block;
  font-size: 1.3rem;
}

.practice-stat-ring span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.topic-chart-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 1.3fr) 46px;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.92rem;
}

.practice-controls {
  display: grid;
  grid-template-columns: 1fr 180px 150px auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
}

.practice-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.practice-question-area {
  margin-top: 16px;
}

.practice-card {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(31, 122, 117, 0.08), transparent 36%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.practice-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.practice-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.practice-card-header .practice-card-top {
  flex: 1;
  margin-bottom: 0;
}

.practice-card-header + h3 {
  margin-top: 16px;
}

.practice-options {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.practice-options button {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.practice-options button.is-selected {
  color: #10261f;
  background:
    linear-gradient(90deg, rgba(31, 122, 117, 0.2), rgba(233, 246, 244, 0.98));
  border: 2px solid var(--teal);
  box-shadow:
    0 0 0 4px rgba(31, 122, 117, 0.14),
    inset 6px 0 0 var(--teal);
  font-weight: 850;
}

.practice-options button.is-correct {
  color: #174b30;
  background: var(--green-soft);
  border-color: var(--green-line);
}

.practice-options button.is-wrong {
  color: #7f1d2d;
  background: var(--red-soft);
  border-color: var(--red-line);
}

.practice-answer-action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.practice-answer-note {
  min-height: 1.2em;
  color: var(--accent-dark);
  font-weight: 850;
}

.practice-answer-note:empty {
  display: none;
}

.practice-feedback {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px 14px 18px;
  border-radius: 12px;
}

.practice-feedback p {
  margin: 0;
}

.practice-feedback.is-correct {
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}

.practice-feedback.is-wrong {
  background: var(--red-soft);
  border: 1px solid var(--red-line);
}

.report-question-link {
  justify-self: end;
  min-height: auto;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.report-question-link:hover {
  color: var(--accent-dark);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.practice-feedback .report-question-link {
  position: absolute;
  right: 12px;
  bottom: 8px;
}

.practice-report-card {
  display: grid;
  gap: 18px;
}

.practice-report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.practice-report-top h3 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.practice-report-top p {
  margin-bottom: 0;
  color: var(--muted);
}

.practice-report-score {
  min-width: 142px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 18px 34px rgba(179, 38, 59, 0.2);
}

.practice-report-score strong,
.practice-report-score span {
  display: block;
}

.practice-report-score strong {
  font-size: 2rem;
  line-height: 1;
}

.practice-report-score span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.practice-report-summary,
.practice-review-list {
  display: grid;
  gap: 12px;
}

.practice-review-item {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.practice-review-item.is-correct {
  border-color: var(--green-line);
  box-shadow: inset 5px 0 0 var(--green);
}

.practice-review-item.is-incorrect {
  border-color: var(--red-line);
  box-shadow: inset 5px 0 0 var(--red);
}

.practice-review-item h4 {
  margin: 10px 0 12px;
  font-size: 1.02rem;
  font-weight: 400;
}

.practice-review-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.practice-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.practice-nav-top {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
}

.practice-nav-top button {
  min-width: 112px;
}

.compact-button {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.9rem;
}

.report-card {
  border-left: 5px solid var(--gold);
}

@media (max-width: 980px) {
  .app-header,
  .source-panel {
    align-items: start;
    flex-direction: column;
  }

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

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

  .admin-login-panel,
  .analytics-layout,
  .review-polish-panel,
  .bulk-toolbar,
  .user-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .coverage-list {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-grid,
  .environment-timeline-grid,
  .practice-controls {
    grid-template-columns: 1fr;
  }

  .score-trend-chart {
    overflow-x: auto;
  }

  .score-trend-item {
    min-width: 54px;
  }

  .topic-chart-row {
    grid-template-columns: 1fr;
  }

  .practice-page-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .simulator-page-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-page-hero .primary-button,
  .simulator-page-hero .secondary-button {
    width: 100%;
  }

  .practice-report-top {
    align-items: stretch;
    flex-direction: column;
  }

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

  .practice-nav-top {
    justify-content: space-between;
  }

  .practice-nav-top button {
    flex: 1;
    min-width: 0;
  }

  .practice-answer-action {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-report-score {
    width: 100%;
  }

  .practice-hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(249, 250, 246, 0.97) 0%, rgba(249, 250, 246, 0.9) 52%, rgba(249, 250, 246, 0.35) 100%),
      linear-gradient(180deg, rgba(14, 34, 29, 0.08), rgba(14, 34, 29, 0.2));
  }

  .public-metrics,
  .insight-grid,
  .sample-question-list,
  .dashboard-grid,
  .dashboard-readiness-list,
  .discover-layout,
  .discover-study-grid,
  .mock-detail-grid,
  .camera-setup-grid,
  .mock-id-layout,
  .mock-link-panel,
  .mock-email-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    align-items: start;
    flex-direction: column;
  }

  .history-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .mistake-answer-grid {
    grid-template-columns: 1fr;
  }

  .history-row button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .sample-option-list {
    grid-template-columns: 1fr;
  }

  .sample-carousel-card {
    min-height: 620px;
  }

  .test-status-bar {
    grid-template-columns: 1fr;
  }

  .test-camera-preview {
    max-width: 320px;
  }

  .public-header {
    flex-wrap: wrap;
  }

  .discover-sidebar {
    position: static;
  }

  .discover-source-panel,
  .discover-reader-top {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer,
  .contact-layout {
    align-items: start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

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

  .how-steps::before {
    left: 38px;
  }

  .how-step {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .how-step-media {
    width: 76px;
    height: 76px;
  }

  .how-step-media img {
    width: 58px;
    height: 58px;
  }

  .account-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

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

  .question-map-grid {
    grid-template-columns: repeat(10, minmax(36px, 1fr));
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

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

  .score-display {
    width: min(100%, 180px);
  }
}

@media (max-width: 640px) {
  .app-header,
  .app-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .summary-band,
  .toolbar,
  .bulk-toolbar,
  .review-polish-panel,
  .coverage-list,
  .admin-analytics-band,
  .form-grid,
  .result-attempt-meta {
    grid-template-columns: 1fr;
  }

  .admin-workspace-header {
    align-items: stretch;
    flex-direction: column;
  }

  .question-header,
  .published-header {
    flex-direction: column;
    align-items: start;
  }

  .public-header {
    position: sticky;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
  }

  .brand-mark img {
    width: 92px;
    height: 46px;
  }

  .public-nav {
    display: grid;
    grid-auto-columns: max-content;
    grid-auto-flow: column;
    order: 3;
    width: calc(100vw - 24px);
    gap: 8px;
    padding: 2px 0 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .public-nav::-webkit-scrollbar {
    display: none;
  }

  .public-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    white-space: nowrap;
    background: #f4f8f5;
    border: 1px solid rgba(215, 223, 217, 0.95);
    border-radius: 999px;
    font-size: 0.86rem;
    box-shadow: 0 8px 18px rgba(23, 32, 28, 0.05);
  }

  .public-nav a[aria-current="page"] {
    box-shadow: 0 10px 22px rgba(141, 36, 48, 0.24);
  }

  .public-nav a.discover-nav-link {
    border-radius: 999px;
  }

  .account-actions {
    align-items: center;
    flex-direction: row;
    margin-left: auto;
  }

  .account-actions button,
  .account-summary {
    width: auto;
  }

  .account-create-button {
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 0.9rem;
  }

  .dashboard-actions,
  .dashboard-tab-group,
  .weak-area-action-button {
    width: 100%;
  }

  .weak-area-action-button {
    margin-left: 0;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-links a {
    width: 100%;
  }

  .practice-hero {
    min-height: auto;
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(249, 250, 246, 0.99) 0%, rgba(249, 250, 246, 0.94) 50%, rgba(249, 250, 246, 0.55) 100%);
  }

  .hero-actions,
  .test-controls,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-feature-list {
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .test-controls button,
  .result-actions button,
  .discover-source-actions a,
  .discover-next-row a {
    width: 100%;
  }

  .public-metrics,
  .pricing-grid,
  .pricing-includes ul,
  .practice-upgrade-plans,
  .insight-grid,
  .discover-layout,
  .discover-study-grid,
  .review-answer-grid,
  .field-grid,
  .account-tabs,
  .feature-grid,
  .sample-question-list,
  .dashboard-grid,
  .dashboard-readiness-list,
  .mock-detail-grid,
  .camera-setup-grid,
  .mock-id-layout,
  .mock-link-panel,
  .mock-email-card,
  .environment-report-list,
  .mock-stepper {
    grid-template-columns: 1fr;
  }

  .discover-reader-heading {
    grid-template-columns: 1fr;
  }

  .discover-reader-top,
  .discover-source-actions,
  .discover-next-row {
    align-items: stretch;
    flex-direction: column;
  }

  .discover-reader-actions {
    justify-content: flex-start;
  }

  [data-setup-step="camera"] .camera-setup-grid,
  [data-setup-step="lightingCheck"] .camera-setup-grid,
  [data-setup-step="faceCheck"] .camera-setup-grid,
  [data-setup-step="facePhoto"] .camera-setup-grid,
  [data-setup-step="mockId"] .mock-id-layout {
    grid-template-columns: 1fr;
  }

  .setup-topbar,
  .setup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-panel-controls {
    position: static;
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
  }

  .setup-actions button {
    width: 100%;
  }

  .setup-panel {
    padding-left: clamp(20px, 4vw, 34px);
  }

  .setup-stage-icon {
    position: static;
    margin: 0 0 12px;
  }

  .value-showcase {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .pricing-section {
    display: none !important;
  }

  .language-highlight {
    align-items: start;
    flex-direction: column;
  }

  .sample-carousel-top,
  .sample-carousel-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-carousel-card {
    display: block;
    min-height: auto;
  }

  .sample-progress-text {
    align-self: start;
  }

  .camera-preview,
  .mock-test-top,
  .mock-review-row {
    grid-template-columns: 1fr;
  }

  .mock-test-top {
    flex-direction: column;
  }

  .interface-showcase {
    padding: 12px;
    border-radius: 10px;
  }

  .showcase-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
  }

  .showcase-header h2 {
    font-size: 1.28rem;
  }

  .showcase-dots {
    gap: 5px;
    max-width: 100%;
    padding: 0 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .showcase-dots::-webkit-scrollbar {
    display: none;
  }

  .showcase-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
  }

  .showcase-dot.is-active {
    width: 24px;
  }

  .showcase-frame {
    min-height: 390px;
  }

  .practice-hero .showcase-frame {
    min-height: 360px;
  }

  .showcase-slide {
    padding: 8px;
  }

  .screenshot-card {
    gap: 12px;
  }

  .screenshot-window {
    min-height: 330px;
  }

  .practice-hero .screenshot-window {
    min-height: 318px;
  }

  .practice-hero .screenshot-window img {
    object-fit: cover;
    object-position: top center;
  }

  .screenshot-card figcaption {
    padding: 12px;
  }

  .mock-stepper span {
    min-height: 54px;
    padding: 10px;
  }

  .camera-preview {
    gap: 10px;
    padding: 12px;
  }

  .camera-face {
    width: min(112px, 100%);
  }

  .test-status-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .test-status-actions {
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
  }

  .timer-box {
    width: 100%;
  }

  .test-camera-preview {
    width: 100%;
    max-width: 320px;
  }

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

  .active-question {
    min-height: auto;
  }

  .submit-button {
    margin-left: 0;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .upgrade-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .upgrade-panel .button-link {
    width: 100%;
    text-align: center;
  }

  .review-heading {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .review-status {
    grid-column: 2;
    justify-self: start;
  }
}
