:root {
  --paper: #f7f2e7;
  --paper-deep: #efe7d0;
  --card: #fffdf4;
  --ink: #221d33;
  --ink-soft: #5d5670;
  --accent: #4b3a8f;
  --accent-soft: #6a58b8;
  --gold: #d9a441;
  --line: #ddd2b4;
  --good: #3f7a3a;
  --hard: #b8860b;
  --again: #a33327;
  --easy: #2f6690;
  --shadow: 0 2px 10px rgba(43, 36, 84, .14);
  --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.55;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; margin: 0; }

/* ---------- top bar ---------- */
.topbar {
  background: linear-gradient(180deg, #1b1633, #26204a);
  color: #f3ecd9;
  border-bottom: 4px solid var(--gold);
  position: sticky; top: 0; z-index: 20;
}
.topbar-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  font-size: 26px; font-family: Georgia, serif; font-weight: 700; color: var(--gold); border: 2px solid var(--gold);
  border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; flex: none;
}
.brand h1 { font-size: 22px; letter-spacing: .4px; }
.tagline { margin: 0; font-size: 12.5px; color: #d8d2f2; font-style: italic; }

.mainnav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-btn {
  background: transparent; color: #e9e2c8; border: 1px solid #57507e;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px;
}
.nav-btn:hover { background: #322a5e; }
.nav-btn.active { background: var(--gold); color: #26204a; border-color: var(--gold); font-weight: 700; }
.account-area { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-email { font-size: 13.5px; color: #d8d2f2; margin-right: 2px; }

/* ---------- layout ---------- */
main { max-width: 960px; margin: 0 auto; padding: 22px 16px 40px; }
.view { display: none; }
.view.active { display: block; }
.hidden { display: none !important; }
.section-title { font-size: 21px; margin: 26px 0 12px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.section-lede { max-width: 700px; font-size: 16px; color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- buttons & stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 10px; text-align: center; box-shadow: var(--shadow);
}
.stat-num { font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--ink-soft); }

.cta-row { margin: 22px 0 4px; text-align: center; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-note { color: var(--ink-soft); font-size: 14px; max-width: 560px; margin: 10px auto 0; text-align: center; }

.btn {
  font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); padding: 9px 18px; font-size: 15px;
}
.btn:hover { filter: brightness(.97); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fdf6e3; font-weight: 700; }
.btn-primary:hover { background: var(--accent-soft); }
.btn-big { font-size: 18px; padding: 14px 30px; border-radius: 999px; }
.btn-ghost { background: transparent; }
.btn-small { padding: 5px 12px; font-size: 13px; }
.btn-danger { background: #fff; border-color: var(--again); color: var(--again); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:disabled:hover { filter: none; }

.progress-track { background: var(--paper-deep); border: 1px solid var(--line); border-radius: 999px; height: 12px; overflow: hidden; flex: 1; }
.progress-fill { background: linear-gradient(90deg, var(--gold), var(--accent-soft)); height: 100%; width: 0; transition: width .4s ease; }

.period-bar-row { margin-bottom: 10px; }
.period-bar-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 3px; }
.period-bar-head .pname { font-weight: 700; }
.period-bar-head .ppct { color: var(--ink-soft); }

/* ---------- home: level card & banners ---------- */
.level-card {
  background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.level-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.level-card-title { font-size: 26px; font-weight: 700; font-family: Georgia, serif; color: var(--accent); }
.level-card-sub { color: var(--ink-soft); font-size: 14.5px; max-width: 520px; }
.level-card-nums { font-size: 16px; color: var(--ink-soft); white-space: nowrap; }
.level-card-nums span { font-weight: 700; color: var(--ink); font-size: 20px; }
.level-card-note { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; }
.level-banner {
  background: #fdf3d7; border: 1.5px solid var(--gold); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.level-banner p { margin: 0 0 6px; font-size: 16px; }

/* ---------- study ---------- */
.session-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.session-head .progress-track { height: 10px; }

.study-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 26px 24px; min-height: 300px;
  display: flex; flex-direction: column;
}
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft); letter-spacing: .3px;
}
.chip.type { background: var(--accent); border-color: var(--accent); color: #fdf6e3; font-weight: 700; }
.chip.due { background: #f3e8c7; }
.card-q { font-size: 21px; line-height: 1.45; margin: 4px 0 10px; }
.card-word { font-size: 44px; font-family: Georgia, serif; font-weight: 700; color: var(--accent); text-align: center; margin: 18px 0 2px; }
.card-pos { text-align: center; color: var(--ink-soft); font-style: italic; font-size: 16px; margin-bottom: 8px; }
.card-prompt { text-align: center; color: var(--ink-soft); font-size: 15px; }
.card-hint { color: var(--ink-soft); font-size: 14px; font-style: italic; margin-top: auto; }
.card-a {
  border-top: 2px dashed var(--line); margin-top: 16px; padding-top: 16px;
  font-size: 17.5px;
}
.card-a .context { display: block; margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); font-style: italic; }
.card-a .syns { display: block; margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }
.card-a .enc-line { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.parts-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14.5px; }
.parts-list li { padding: 3px 0; }
.parts-list .part-name { font-weight: 700; color: var(--accent); }
.parts-list .part-origin { color: var(--hard); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.hint-box {
  margin-top: 12px; background: #fdf3d7; border: 1px solid var(--gold); border-radius: 10px;
  padding: 10px 14px; font-size: 15px;
}
.hint-box .hint-label { font-weight: 700; color: var(--hard); display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; }

.reveal-row { text-align: center; margin-top: 20px; }

.grade-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.grade-row.three { grid-template-columns: repeat(3, 1fr); }
.grade-btn {
  font: inherit; cursor: pointer; border-radius: 10px; padding: 12px 6px; font-weight: 700; font-size: 16px;
  border: 2px solid; background: var(--card);
}
.grade-btn small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.grade-again { border-color: var(--again); color: var(--again); }
.grade-hard { border-color: var(--hard); color: var(--hard); }
.grade-good { border-color: var(--good); color: var(--good); }
.grade-easy { border-color: var(--easy); color: var(--easy); }
.grade-btn:hover { filter: brightness(.95); }

.options-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.option-btn {
  font: inherit; text-align: left; cursor: pointer; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 16px;
}
.option-btn:hover:not(:disabled) { border-color: var(--gold); }
.option-btn:disabled { cursor: default; opacity: .92; }
.option-btn.correct { border-color: var(--good); background: #e9f3e4; }
.option-btn.wrong { border-color: var(--again); background: #f9e7e2; }
.option-btn .opt-letter { font-weight: 700; color: var(--accent); margin-right: 8px; }
.feedback {
  margin-top: 14px; border-radius: 10px; padding: 12px 14px; font-size: 15.5px;
  border: 1px solid var(--line); background: var(--paper);
}
.feedback.good { border-color: var(--good); }
.feedback.bad { border-color: var(--again); }
.feedback .verdict { font-weight: 700; display: block; margin-bottom: 4px; }
.feedback.good .verdict { color: var(--good); }
.feedback.bad .verdict { color: var(--again); }
.feedback .fb-def { display: block; margin-top: 4px; }
.next-row { text-align: center; margin-top: 16px; }

.sentence-input {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; min-height: 84px; resize: vertical; margin-top: 10px;
}
.sentence-input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.checklist { list-style: none; margin: 12px 0 0; padding: 0; }
.checklist li { padding: 6px 0; font-size: 15.5px; }
.checklist input { margin-right: 8px; transform: scale(1.15); }
.model-sentence { font-style: italic; color: var(--ink-soft); }

.summary-body {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); font-size: 16.5px;
}
.summary-body ul { margin: 8px 0; padding-left: 20px; }

/* ---------- quiz & placement ---------- */
.quiz-intro { color: var(--ink-soft); font-size: 15.5px; max-width: 640px; }
.quiz-progress { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }

/* ---------- time-boxed sessions ---------- */
.plan-mode { color: var(--accent); font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.time-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; border-radius: 999px; }
.time-chips.pulse { animation: chip-pulse 1s ease; }
@keyframes chip-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0); }
  30% { box-shadow: 0 0 0 4px rgba(217, 164, 65, .55); }
  100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0); }
}
.time-chip {
  font: inherit; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px;
}
.time-chip:hover { border-color: var(--gold); }
.time-chip.selected { background: var(--accent); border-color: var(--accent); color: #fdf6e3; font-weight: 700; }
.time-custom { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; }
.time-custom input {
  font: inherit; font-size: 16px; width: 92px; padding: 8px 10px;
  border-radius: 8px; border: 1.5px solid var(--line); background: #fff;
}
.time-custom input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.plan-preview {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.plan-text { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.plan-note { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 4px; }
.plan-note:empty { display: none; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.plan-actions .btn-big { font-size: 16px; padding: 11px 22px; }

.timebar { display: flex; align-items: center; gap: 12px; margin: -6px 0 14px; font-size: 13px; }
.timebar-label { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.timebar-track { height: 7px; }
.timebar.over .timebar-label { color: var(--again); font-weight: 700; }
.timebar.over .progress-fill { background: var(--again); }

/* ---------- browse ---------- */
.search-input {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card); margin-bottom: 18px;
}
.browse-period { margin-bottom: 26px; }
.browse-period > h3 { font-size: 19px; color: var(--accent); }
.browse-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 8px; font-size: 15px;
}
.browse-item .bq { font-weight: 700; font-size: 16.5px; }
.browse-item .bpos { color: var(--ink-soft); font-style: italic; font-weight: 400; font-size: 13.5px; margin-left: 6px; }
.browse-item .ba { color: var(--ink-soft); margin-top: 3px; }
.browse-item .bex { color: var(--ink-soft); font-style: italic; margin-top: 2px; font-size: 14px; }
.browse-item .bstatus { font-size: 12px; color: var(--accent); float: right; text-align: right; }

/* ---------- settings ---------- */
.settings-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.settings-box h3 { margin-top: 22px; }
.settings-box h3:first-child { margin-top: 0; }
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.file-label { display: inline-block; }
.settings-msg { color: var(--good); font-size: 14.5px; min-height: 1.2em; }
.profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 10px; }
.profile-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.profile-form input, .profile-form select {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; font-weight: 400;
  padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff;
}
.profile-form input:focus, .profile-form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* ---------- redeem ---------- */
.redeem-block { margin-top: 6px; }
.redeem-form { display: flex; gap: 10px; align-items: stretch; margin-top: 8px; }
.redeem-form input {
  flex: 1; font: inherit; font-size: 16px; padding: 10px 12px;
  border-radius: 8px; border: 1.5px solid var(--line); background: #fff;
  text-transform: uppercase;
}
.redeem-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.wall-card .redeem-form { max-width: 420px; margin-left: auto; margin-right: auto; }
.wall-card .redeem-block h3 { font-size: 17px; }

/* ---------- leaderboard ---------- */
.lb-sub { color: var(--ink-soft); font-size: 15px; margin: -6px 0 14px; }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px;
  box-shadow: var(--shadow); font-size: 15.5px;
}
.lb-row.lb-me { border: 2px solid var(--gold); background: #fdf6e3; }
.lb-rank { font-weight: 700; color: var(--accent); min-width: 34px; }
.lb-name { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-level { color: var(--ink-soft); font-size: 13.5px; white-space: nowrap; }
.lb-streak { white-space: nowrap; min-width: 44px; text-align: right; }
.lb-mins { font-weight: 700; white-space: nowrap; min-width: 64px; text-align: right; }
.lb-divider {
  margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .6px;
}

/* ---------- landing ---------- */
.landing-hero { text-align: center; padding: 34px 8px 4px; }
.hero-kicker {
  margin: 0 0 12px; font-size: 13px; font-weight: 700;
  letter-spacing: 2.2px; text-transform: uppercase; color: var(--accent);
}
.landing-title { font-size: 44px; line-height: 1.12; color: var(--ink); }
.landing-title .title-punch { color: var(--accent); }
.landing-sub { max-width: 700px; margin: 18px auto 0; font-size: 17.5px; color: var(--ink-soft); }
.landing-sub strong { color: var(--ink); }
.hero-price { margin: 18px 0 0; font-size: 16px; color: var(--ink-soft); }
.hero-price strong { color: var(--accent); }
.hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.hero-cta-row .btn { text-decoration: none; display: inline-block; }
#signup-card, #how-it-works { scroll-margin-top: 96px; }

.fix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fix-card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.fix-card h3 { font-size: 19px; margin-bottom: 8px; }
.fix-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.ladder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.ladder-step {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14.5px; box-shadow: var(--shadow);
}
.ladder-step strong { color: var(--accent); }
.ladder-step .ladder-n { color: var(--ink-soft); font-size: 13px; }
.ladder-arrow { color: var(--gold); font-weight: 700; }

.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.research-card {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.research-card h3 { font-size: 18px; color: var(--accent); margin-bottom: 8px; }
.research-card p { margin: 0 0 10px; font-size: 15px; color: var(--ink-soft); }
.research-card .research-cite { margin: 0; font-size: 13.5px; font-style: italic; color: var(--ink); }

.landing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; align-items: start; }
.price-card, .charge-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.price-card { border-top: 5px solid var(--gold); }
.price-amount { font-size: 42px; font-weight: 700; color: var(--accent); line-height: 1; }
.price-per { font-size: 19px; color: var(--ink-soft); font-weight: 400; }
.price-note { color: var(--ink-soft); font-size: 15px; margin: 10px 0; }
.price-list { margin: 12px 0 4px; padding-left: 20px; font-size: 15px; }
.price-list li { margin-bottom: 5px; }

.charge-card h3 { color: var(--accent); font-size: 20px; margin-bottom: 6px; }
.charge-intro { margin: 0; font-size: 15px; color: var(--ink-soft); }

.auth-form { margin-top: 16px; }
.auth-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.auth-form input, .auth-form select {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; font-weight: 400;
  padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff;
}
.auth-form input:focus, .auth-form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.auth-form .btn-big { width: 100%; margin-top: 4px; }
.auth-switch { font-size: 14px; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }
.auth-switch a { color: var(--accent); font-weight: 700; }
.auth-error { color: var(--again); font-size: 14.5px; min-height: 1.2em; margin: 10px 0 0; }
.auth-fineprint { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; }
.auth-optional { border-top: 2px dashed var(--line); margin-top: 16px; padding-top: 12px; }
.auth-optional-title { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin: 0 0 10px; }
.auth-optional-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-note { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 6px; }

.landing-close { text-align: center; padding: 46px 12px 12px; }
.close-title { font-size: 40px; line-height: 1.1; color: var(--accent); }
.close-line { font-size: 18px; color: var(--ink-soft); max-width: 560px; margin: 14px auto 22px; }
.landing-close .btn { text-decoration: none; display: inline-block; }
.close-price { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- subscribe wall ---------- */
.wall-card {
  background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--gold);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  max-width: 620px; margin: 20px auto; text-align: center;
}
.wall-card .section-title { border-bottom: none; text-align: center; }
.wall-card p { font-size: 16px; color: var(--ink-soft); }
.wall-activating { color: var(--good); font-weight: 700; }
.wall-error { color: var(--again); font-size: 14.5px; min-height: 1.2em; }
.wall-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

.footer {
  max-width: 960px; margin: 0 auto; padding: 0 16px 30px;
  color: var(--ink-soft); font-size: 13px; text-align: center;
}
.footer-links a { color: var(--accent); }

/* ---------- fireworks celebration overlay ---------- */
/* Transparent canvas above the session summary (see launchFireworks
   in app.js). pointer-events:none keeps the summary readable and
   clickable; dismissal is handled by a document-level listener. */
.fireworks-canvas {
  position: fixed; inset: 0;
  z-index: 999;
  pointer-events: none;
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .fix-grid, .research-grid { grid-template-columns: 1fr; }
  .grade-row { grid-template-columns: repeat(2, 1fr); }
  .grade-row.three { grid-template-columns: repeat(3, 1fr); }
  .brand h1 { font-size: 19px; }
  .card-q { font-size: 19px; }
  .card-word { font-size: 34px; }
  .topbar-inner { justify-content: center; }
  .time-chip { padding: 9px 12px; font-size: 14px; }
  .plan-actions .btn { flex: 1 1 auto; }
  .landing-grid { grid-template-columns: 1fr; }
  .landing-title { font-size: 30px; }
  .close-title { font-size: 32px; }
  .hero-cta-row .btn { flex: 1 1 auto; }
  .account-area { justify-content: center; }
  .profile-form { grid-template-columns: 1fr; }
  .lb-level { display: none; }
  .redeem-form { flex-direction: column; }
  .auth-optional-row { grid-template-columns: 1fr; }
}

/* ---------- llm: curriculum module rows ---------- */
.module-row { display: flex; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.module-num { font-size: 22px; font-weight: 700; color: var(--accent); font-family: Georgia, serif; min-width: 32px; }
.module-row h3 { font-size: 17px; margin: 0; }
.module-row p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.module-count { margin-left: auto; color: var(--ink-soft); font-size: 13px; white-space: nowrap; padding-left: 10px; }
