:root {
  --navy: #062c59;
  --navy-2: #0b3d73;
  --blue: #0c7ce5;
  --blue-bright: #18aef0;
  --blue-soft: #eaf5ff;
  --green: #27b66d;
  --orange: #f08b22;
  --red: #d84545;
  --violet: #7d4ae8;
  --ink: #13233a;
  --muted: #617086;
  --line: #dfe8f2;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --shadow: 0 18px 50px rgba(7, 48, 91, 0.12);
  --shadow-soft: 0 10px 28px rgba(7, 48, 91, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content: 1180px;
  --bottom-nav-height: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 12%, rgba(24,174,240,.16), transparent 35%),
    radial-gradient(circle at 85% 4%, rgba(39,182,109,.10), transparent 30%);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 4px solid rgba(24,174,240,.35); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--navy);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 74px;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(216,230,242,.9);
  backdrop-filter: blur(18px);
}
.site-header__inner {
  width: min(var(--content), calc(100% - 28px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 44px; height: 44px; flex: 0 0 auto; }
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand__text small { color: var(--muted); font-size: .72rem; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.class-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  min-height: 42px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}
.portal-link {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
}
.jarvis-button {
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b7d9f5;
  border-radius: 999px;
  background: #f0f8ff;
  color: var(--navy);
  font-weight: 850;
  white-space: nowrap;
}
.jarvis-button__orb {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8092a4;
  box-shadow: 0 0 0 4px rgba(128,146,164,.13);
}
.jarvis-button.is-enabled { color: #075683; background: #e8f8ff; border-color: #75c9ed; }
.jarvis-button.is-enabled .jarvis-button__orb { background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(24,174,240,.15), 0 0 15px rgba(24,174,240,.7); }
.jarvis-button.is-speaking .jarvis-button__orb { animation: jarvis-pulse 1s ease-in-out infinite; }
.jarvis-button:disabled { display: none; }
@keyframes jarvis-pulse { 50% { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(24,174,240,.12), 0 0 22px rgba(24,174,240,.85); } }

.app-shell {
  width: min(var(--content), calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 calc(var(--bottom-nav-height) + 36px);
}
.initial-content { max-width: 820px; padding: 30px; border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-soft); }
.initial-content p { margin-bottom: 0; font-size: 1.05rem; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.55rem); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 14px; }
h2 { font-size: clamp(1.35rem, 3vw, 2.2rem); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 10px; }
h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.02em; }
p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.status-chip, .points-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: inherit;
  font-weight: 800;
  font-size: .78rem;
}
.points-chip { background: var(--blue-soft); color: var(--navy); border-color: #cce7ff; }

.primary-button, .secondary-button, .danger-button, .danger-outline-button, .card-button, .text-button, .icon-button {
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  box-shadow: 0 12px 28px rgba(12,124,229,.27);
}
.primary-button:hover, .card-button:hover { transform: translateY(-2px); }
.secondary-button { color: var(--navy); background: #fff; border: 1px solid var(--line); }
.secondary-button.compact { min-height: 42px; padding: 9px 14px; }
.danger-button { color: #fff; background: var(--red); }
.danger-outline-button { color: #b92e2e; background: #fff; border: 1px solid #f0b2b2; width: 100%; }
.text-button { background: transparent; color: var(--blue); padding-inline: 0; min-height: 40px; }
.icon-button { width: 46px; padding: 0; display: grid; place-items: center; color: var(--navy); background: #fff; border: 1px solid var(--line); font-size: 1.3rem; }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: var(--navy);
}
.hero-card--cover { min-height: 370px; }
.hero-card--cover > img { width: 100%; height: 100%; min-height: 370px; object-fit: cover; }
.hero-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 24px 26px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(3,35,69,.92));
}
.hero-card__overlay h1 { max-width: 700px; margin-bottom: 8px; }
.hero-card__overlay p { color: rgba(255,255,255,.86); margin: 0; font-size: 1.05rem; }
.hero-card__overlay .eyebrow { color: #8edcff; }

.section-heading, .page-heading, .welcome-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 42px 0 18px;
}
.section-heading h2, .page-heading h1, .welcome-row h1 { margin-bottom: 4px; }
.section-heading p, .page-heading p, .welcome-row p { margin-bottom: 0; }
.page-heading { align-items: start; margin-top: 4px; }
.welcome-row { align-items: center; margin-top: 4px; }

.class-grid, .mode-grid, .metric-grid, .topic-grid, .settings-grid {
  display: grid;
  gap: 16px;
}
.class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.class-card {
  position: relative;
  min-height: 230px;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.class-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(4,35,69,.92)); }
.class-card img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; transition: transform .3s ease; }
.class-card:hover img { transform: scale(1.025); }
.class-card__content { position: absolute; z-index: 2; inset: auto 18px 17px; color: #fff; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.class-card__icon { grid-row: 1 / span 2; font-size: 1.7rem; }
.class-card__content strong { font-size: 1.28rem; }
.class-card__content small { color: rgba(255,255,255,.8); }

.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: var(--radius-xl);
  padding: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--class-color) 70%, white), transparent 30%),
    linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--class-color) 65%, var(--navy)));
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.dashboard-hero::after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; right: -90px; top: -100px; }
.dashboard-hero__copy { position: relative; z-index: 2; max-width: 640px; }
.dashboard-hero h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 14px 0 8px; }
.dashboard-hero p { color: rgba(255,255,255,.82); max-width: 560px; }
.dashboard-hero .primary-button { background: #fff; color: var(--navy); box-shadow: none; }
.qualification-notice { margin-top: 18px; padding: 18px; display: flex; align-items: flex-start; gap: 14px; border: 1px solid #e8c36d; border-radius: 20px; background: #fff9e9; box-shadow: var(--shadow-soft); }
.qualification-notice__icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: #ffe7a8; font-size: 1.45rem; }
.qualification-notice h3 { margin: 0 0 5px; }
.qualification-notice p { margin: 0; color: #5d4a21; }
.safety-symbol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.safety-symbol-card { min-height: 120px; padding: 14px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.safety-symbol-card img { width: 72px; height: 72px; flex: 0 0 auto; }
.safety-symbol-card h3 { margin: 0 0 4px; font-size: 1rem; }
.safety-symbol-card p { margin: 0; font-size: .86rem; }
.readiness-ring {
  --progress: 0;
  position: relative;
  z-index: 2;
  width: 144px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#fff calc(var(--progress) * 1%), rgba(255,255,255,.18) 0);
  box-shadow: 0 0 0 9px rgba(255,255,255,.1);
}
.readiness-ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--navy); }
.readiness-ring span { position: relative; z-index: 1; font-size: 2rem; font-weight: 900; }
.readiness-ring small { font-size: .9rem; }
.readiness-ring--large { width: 170px; color: #fff; background: conic-gradient(var(--blue) calc(var(--progress) * 1%), #dfeaf5 0); }
.readiness-ring--large::before { background: #fff; }
.readiness-ring--large span { color: var(--navy); }

.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.metric-card {
  min-height: 140px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.metric-card__icon { grid-column: 2; grid-row: 1 / span 3; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-soft); }
.metric-card > span:not(.metric-card__icon) { color: var(--muted); font-weight: 750; font-size: .82rem; }
.metric-card strong { font-size: 2rem; line-height: 1; color: var(--navy); }
.metric-card small { color: var(--muted); }

.mode-grid { grid-template-columns: 1fr; }
.mode-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.mode-card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; background: var(--blue-soft); }
.mode-card--exam .mode-card__icon { background: #e9f8ee; }
.mode-card--weakness .mode-card__icon { background: #fff1df; }
.mode-card.is-locked { border-color: #e7cf98; background: linear-gradient(145deg, #fff, #fffaf0); }
.mode-card.is-locked .card-button { background: #fff2c9; }
.mode-card p { min-height: 48px; }
.card-button { width: 100%; display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); color: var(--navy); }

.category-progress-list { display: grid; gap: 12px; }
.category-progress {
  padding: 17px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.category-progress__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.category-progress__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft); }
.category-progress__top div { display: grid; }
.category-progress__top small { color: var(--muted); }
.category-progress__top b { color: var(--navy); }
.progress-track { height: 9px; margin-top: 13px; border-radius: 99px; overflow: hidden; background: #e6edf5; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-bright), var(--blue)); }

.page-hero {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff, #eaf5ff);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.page-hero--split { min-height: 270px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; }
.page-hero--split > div { padding: 32px; }
.page-hero--split > img { width: 100%; height: 270px; object-fit: cover; }
.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-card { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); text-align: left; }
.topic-card img { width: 100%; height: 150px; object-fit: cover; }
.topic-card span { display: grid; padding: 15px; }
.topic-card small { color: var(--muted); margin-top: 4px; }

.stats-summary, .settings-card, .readiness-panel, .history-item, .empty-panel, .review-item {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.stats-summary { padding: 20px; border-radius: var(--radius-xl); }
.readiness-panel { border-radius: 22px; padding: 22px; display: flex; align-items: center; gap: 24px; }
.readiness-panel p { margin-bottom: 0; }
.history-list { display: grid; gap: 10px; }
.history-item { border-radius: 17px; padding: 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.history-item small { grid-column: 1 / -1; color: var(--muted); margin-top: 4px; }
.history-item__result { font-weight: 850; }
.history-item.is-passed .history-item__result { color: #178b4d; }
.history-item.is-failed .history-item__result { color: var(--red); }
.empty-panel { border-radius: 22px; padding: 30px; text-align: center; }
.empty-panel > span { font-size: 2.2rem; }

.settings-grid { grid-template-columns: 1fr; }
.settings-card { border-radius: 22px; padding: 22px; }
.settings-card--danger { border-color: #f3caca; }
.field-label { display: block; font-weight: 800; margin-bottom: 7px; }
.text-input { width: 100%; min-height: 50px; border-radius: 13px; border: 1px solid #cdd9e5; padding: 11px 13px; margin-bottom: 14px; color: var(--ink); background: #fff; }
.selected-class { display: flex; align-items: center; gap: 15px; padding: 12px; border-radius: 16px; background: var(--surface-2); margin-bottom: 14px; }
.selected-class img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.selected-class div { display: grid; }
.selected-class span { color: var(--muted); }
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-row input { width: 22px; height: 22px; }
.toggle-row span { display: grid; }
.toggle-row small { color: var(--muted); }
.toggle-stack { display: grid; gap: 16px; }
.voice-card { background: linear-gradient(145deg, #fff, #eef9ff); border-color: #bfe6f8; }
.voice-card__heading { display: flex; align-items: center; gap: 12px; }
.voice-orb { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; background: radial-gradient(circle at 35% 30%, #b9f0ff, var(--blue-bright) 38%, var(--navy) 100%); box-shadow: 0 0 0 6px rgba(24,174,240,.1); }
.select-input { width: 100%; min-height: 48px; margin-top: 7px; padding: 10px 12px; border: 1px solid #cdd9e5; border-radius: 13px; color: var(--ink); background: #fff; }
.voice-test-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.compatibility-note { margin: 12px 0 0; font-size: .82rem; }
.portal-account-card { align-content: start; gap: 13px; background: linear-gradient(145deg, #fff, #eef8ff); border-color: #b9ddf5; }
.portal-account-card p { margin: 0; }

.funding-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}
.funding-panel--compact { margin-top: 26px; }
.funding-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 15px;
}
.funding-card--support { background: linear-gradient(145deg, #fff, #edf8ff); border-color: #b9ddf5; }
.funding-card--pro { background: linear-gradient(145deg, #fff, #fff7df); border-color: #eed39a; }
.funding-card--updates{grid-column:1/-1;background:linear-gradient(145deg,#fff,#f0faf6);border-color:#b9ddce}.funding-card--updates>.notification-choice,.funding-card--updates>.secondary-button{grid-column:1/-1}.notification-choice{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.notification-choice small{color:var(--muted);line-height:1.45}.notification-choice .funding-note,.notification-choice .funding-check{flex:1 1 260px}.notification-choice .text-button{margin-left:auto}
.funding-card__icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #fff; box-shadow: 0 7px 18px rgba(7,48,91,.11); font-size: 1.4rem; }
.funding-card h2 { margin: 2px 0 7px; }
.funding-card p { margin: 0; color: var(--ink); }
.funding-card > .primary-button,
.funding-card > .secondary-button,
.funding-card > .funding-note,
.funding-card > .funding-check,
.funding-card > .payment-order,
.funding-card > .payment-order-start { grid-column: 1 / -1; }
.funding-card > a { text-align: center; }
.funding-status { display: inline-flex; width: fit-content; margin-top: 12px; padding: 6px 10px; border-radius: 999px; background: #edf2f7; color: #506477; font-size: .75rem; font-weight: 850; }
.funding-status--active { background: #e5f8ed; color: #08733e; }
.funding-note, .funding-check { padding: 11px 13px; border-radius: 13px; background: rgba(255,255,255,.72); color: #526274; font-size: .82rem; }
.funding-check { color: #08733e; font-weight: 850; }
.funding-admin-link { grid-column: 1 / -1; justify-self: end; color: var(--blue); font-weight: 850; }
.payment-order,.payment-order-start{display:grid;gap:13px;padding:15px;border:1px solid #e5c878;border-radius:16px;background:rgba(255,255,255,.82)}
.payment-order__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.payment-order__head strong{display:block;margin-top:3px;color:var(--navy)}
.payment-order__status{padding:6px 9px;border-radius:999px;background:#fff0c9;color:#79580d;font-size:.72rem;font-weight:900;text-transform:uppercase}
.payment-order__details{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.payment-order__details>div{min-width:0;padding:10px;border-radius:11px;background:#fff}.payment-order__details dt{margin-bottom:4px;color:var(--muted);font-size:.7rem;font-weight:850;text-transform:uppercase}.payment-order__details dd{margin:0;color:var(--navy);font-weight:800;overflow-wrap:anywhere}.payment-order__details code{font-size:.82rem}.payment-order__details button{display:inline-flex;margin:7px 0 0;padding:7px 9px;border:1px solid #c8d5df;border-radius:8px;background:#f5f8fa;color:var(--blue);font-size:.74rem;font-weight:850}.payment-order__purpose{grid-column:1/-1;border:2px solid #e6c873!important}.payment-order__purpose code{display:block;font-size:clamp(.9rem,2.5vw,1.05rem);letter-spacing:.045em}.payment-order__notice,.payment-order__warning,.payment-order-start p,.payment-order-start small{margin:0!important;line-height:1.5}.payment-order__notice{padding:11px 12px;border-radius:11px;background:#fff7dc;color:#5d4b1f!important;font-size:.78rem}.payment-order__warning{padding:11px 12px;border-radius:11px;background:#fff0c9;color:#74540d!important}.payment-order>a{justify-self:start}.payment-order-start code{font-weight:850}.payment-order-start .primary-button{width:100%}.payment-order-start small{color:var(--muted)}
.payment-order-confirm{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid #e1cb8e;border-radius:11px;background:#fff9e9;color:#544721;font-size:.82rem;line-height:1.45}.payment-order-confirm input{width:21px;height:21px;margin:1px 0 0;flex:0 0 auto;accent-color:var(--blue)}
.learning-notice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;margin:18px 0;padding:18px;border:1px solid #b8d9cf;border-left:6px solid #1d8f78;border-radius:17px;background:#f2fbf7;box-shadow:var(--shadow-soft)}.learning-notice>span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#1d8f78;color:#fff;font-size:1.25rem;font-weight:950}.learning-notice h2{margin:3px 0 6px;font-size:1.15rem}.learning-notice p{margin:0;white-space:pre-line;line-height:1.55}.learning-notice small{display:block;margin-top:8px;color:var(--muted)}.learning-notice--pricing{border-left-color:#c88920;background:#fff9e8}.learning-notice--pricing>span{background:#c88920}.learning-notice--service{border-left-color:#2d6fa3;background:#eef7ff}.learning-notice--service>span{background:#2d6fa3}

.question-screen { max-width: 1120px; margin: 0 auto; }
.question-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.question-toolbar > div:nth-child(2) { display: grid; }
.question-toolbar span { color: var(--muted); font-size: .8rem; }
.timer { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line); padding: 10px 13px; box-shadow: var(--shadow-soft); color: var(--navy); }
.question-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #dbe7f2; margin-bottom: 18px; }
.question-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-bright), var(--blue)); }
.question-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.question-card { padding: 18px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.question-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 15px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.difficulty-chip { display: inline-flex; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: #eef5fb; color: #496277; font-size: .68rem; letter-spacing: .02em; }
.question-meta__group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.speak-question-button { min-height: 38px; padding: 7px 11px; border: 1px solid #b7d9f5; border-radius: 999px; background: #eef8ff; color: #075683; font-weight: 850; }
.speak-question-button:hover { background: #def3ff; }
.question-card h1 { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.24; margin: 18px 0 8px; letter-spacing: -.025em; }
.selection-hint { font-size: .9rem; }
.question-image-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #eef6fd; }
.question-image-button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.question-image-button span { position: absolute; right: 10px; bottom: 10px; border-radius: 999px; padding: 7px 10px; background: rgba(4,35,69,.82); color: #fff; font-size: .78rem; }
.answer-list { display: grid; gap: 10px; margin-top: 18px; }
.answer-option { min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 16px; border: 2px solid #e1e9f1; background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.answer-option:hover { border-color: #9dd3ff; transform: translateY(-1px); }
.answer-option.is-selected { border-color: var(--blue); background: #eff8ff; }
.answer-option.is-correct { border-color: #47bc79; background: #effbf4; }
.answer-option.is-wrong { border-color: #e06d6d; background: #fff1f1; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-letter { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #edf3f8; font-weight: 900; color: var(--navy); }
.answer-option.is-selected .answer-letter { color: #fff; background: var(--blue); }
.answer-option.is-correct .answer-letter { background: var(--green); color: #fff; }
.answer-option.is-wrong .answer-letter { background: var(--red); color: #fff; }
.answer-state { font-size: 1.4rem; font-weight: 900; }
.feedback-panel { margin-top: 16px; border-radius: 17px; padding: 16px; border: 1px solid; }
.feedback-panel.is-correct { background: #f0fbf5; border-color: #9dd8b8; }
.feedback-panel.is-wrong { background: #fff5ea; border-color: #f2c38d; }
.feedback-panel__title { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.feedback-panel__title span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-weight: 900; }
.feedback-panel p { color: var(--ink); margin-bottom: 8px; }
.feedback-panel small { color: var(--muted); }
.question-actions { margin-top: 18px; }
.sticky-action { width: 100%; }
.exam-action-row { display: grid; gap: 10px; }
.exam-navigator { padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.question-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0; }
.question-dot { min-height: 42px; border-radius: 11px; border: 1px solid var(--line); background: #f5f8fb; color: var(--navy); font-weight: 850; }
.question-dot.is-answered { background: #eaf8f0; border-color: #83d6a7; }
.question-dot.is-current { box-shadow: 0 0 0 3px rgba(12,124,229,.2); border-color: var(--blue); }
.question-dot.is-marked::after { content: "★"; color: var(--orange); margin-left: 3px; }
.demo-note { margin: 14px 0 0; border-radius: 14px; padding: 12px; background: #fff7e9; color: #6d4c1d; font-size: .82rem; }
.demo-note--wide { max-width: 800px; margin: 22px auto 0; }

.result-screen { max-width: 980px; margin: 0 auto; }
.result-hero { text-align: center; border-radius: var(--radius-xl); padding: 34px 20px; color: #fff; box-shadow: var(--shadow); }
.result-hero.is-passed { background: linear-gradient(135deg, #087841, #31bd72); }
.result-hero.is-failed { background: linear-gradient(135deg, #6b3e16, #e28b27); }
.result-hero .eyebrow, .result-hero p { color: rgba(255,255,255,.85); }
.result-icon { display: block; font-size: 3rem; margin-bottom: 8px; }
.result-actions { display: grid; gap: 10px; margin-top: 18px; }
.review-list { display: grid; gap: 10px; }
.review-item { border-radius: 16px; overflow: hidden; }
.review-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 15px; }
.review-item summary::-webkit-details-marker { display: none; }
.review-item summary > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; }
.review-item.is-correct summary > span { background: var(--green); }
.review-item.is-wrong summary > span { background: var(--red); }
.review-item summary small { color: var(--muted); }
.review-item > div { border-top: 1px solid var(--line); padding: 15px; }
.review-item > div p:last-of-type { color: var(--ink); }

.app-footer { margin-top: 44px; border-radius: 24px; padding: 22px; color: #fff; background: linear-gradient(135deg, var(--navy), #084e8d); box-shadow: var(--shadow); }
.app-footer > div { display: flex; align-items: center; gap: 12px; }
.app-footer > div span { display: grid; }
.app-footer small { color: rgba(255,255,255,.7); }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 13px; margin: 18px 0 8px; }
.app-footer nav a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.app-footer p { color: rgba(255,255,255,.68); margin: 0; font-size: .82rem; }

.mobile-nav {
  position: fixed;
  z-index: 40;
  left: 0; right: 0; bottom: 0;
  height: var(--bottom-nav-height);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 35px rgba(7,48,91,.1);
}
.mobile-nav button { border: 0; background: transparent; color: #647386; border-radius: 13px; display: grid; place-items: center; align-content: center; gap: 2px; font-size: .68rem; font-weight: 800; }
.mobile-nav button span { font-size: 1.25rem; line-height: 1; }
.mobile-nav button.is-active { color: var(--blue); background: #edf7ff; }

.image-dialog { width: min(980px, calc(100% - 24px)); border: 0; border-radius: 22px; padding: 0; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.image-dialog::backdrop { background: rgba(3,22,43,.72); backdrop-filter: blur(4px); }
.image-dialog img { width: 100%; max-height: 80vh; object-fit: contain; background: #edf5fc; }
.image-dialog__bar { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 14px; background: #fff; }
.image-dialog__bar p { margin: 0; color: var(--ink); font-weight: 750; }
.image-dialog__bar button { border: 0; border-radius: 10px; width: 40px; height: 40px; background: var(--surface-2); font-size: 1.2rem; }

.seo-overview { border-top: 1px solid var(--line); background: #fff; }
.seo-overview__inner { width: min(var(--content), calc(100% - 28px)); margin: 0 auto; padding: 56px 0 120px; }
.seo-overview__inner > p { max-width: 850px; font-size: 1.02rem; }
.seo-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 42px; }
.seo-feature-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }
.seo-feature-grid article > span { display: block; margin-bottom: 12px; font-size: 1.8rem; }
.seo-feature-grid h3 { margin-bottom: 7px; }
.seo-feature-grid p { margin-bottom: 0; }
.seo-faq { max-width: 850px; }
.seo-faq details { border-bottom: 1px solid var(--line); }
.seo-faq summary { min-height: 52px; padding: 14px 4px; color: var(--navy); font-weight: 850; cursor: pointer; }
.seo-faq details p { padding: 0 4px 16px; margin: 0; }

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