:root {
  --bg: #f5f0e6;
  --bg-deep: #ebe2d2;
  --surface: rgba(255, 252, 247, 0.94);
  --surface-strong: rgba(255, 252, 247, 0.98);
  --surface-soft: rgba(40, 52, 64, 0.03);
  --line: rgba(72, 58, 38, 0.12);
  --line-strong: rgba(72, 58, 38, 0.2);
  --text: #1f2933;
  --muted: #5f6872;
  --gold: #9c6b2e;
  --gold-soft: rgba(156, 107, 46, 0.1);
  --cyan: #3b7f89;
  --cyan-soft: rgba(59, 127, 137, 0.08);
  --blue: #345b84;
  --blue-soft: rgba(52, 91, 132, 0.08);
  --red: #9e4b43;
  --red-soft: rgba(158, 75, 67, 0.1);
  --green: #2f6d57;
  --green-soft: rgba(47, 109, 87, 0.1);
  --amber: #a56f1e;
  --amber-soft: rgba(165, 111, 30, 0.1);
  --shadow: 0 12px 30px rgba(61, 45, 28, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

body.auth-locked {
  overflow: hidden;
}

body.auth-checking .auth-gate {
  display: none;
}

body.auth-checking .app-shell {
  display: block;
}

body::selection {
  background: rgba(245, 185, 79, 0.26);
  color: var(--text);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient__orb {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.18;
  animation: floatOrb 18s ease-in-out infinite;
}

.ambient__orb--gold {
  top: -12rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(245, 185, 79, 0.7) 0%, rgba(245, 185, 79, 0.08) 60%, transparent 72%);
}

.ambient__orb--cyan {
  right: -10rem;
  top: 4rem;
  background: radial-gradient(circle, rgba(111, 229, 221, 0.58) 0%, rgba(111, 229, 221, 0.1) 58%, transparent 70%);
  animation-duration: 22s;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
  opacity: 0.45;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.app-shell.is-auth-hidden {
  display: none;
}

.auth-gate {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px 40px;
}

.auth-gate.is-hidden {
  display: none;
}

.auth-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(59, 127, 137, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(156, 107, 46, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(248, 244, 236, 0.62), rgba(235, 226, 210, 0.32));
}

.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 18px;
  padding: 26px 28px 24px;
  align-items: center;
  animation: riseIn 0.6s ease both;
}

.masthead__brand h1 {
  margin: 0;
  font: 700 clamp(2.7rem, 4.7vw, 4.6rem) / 0.96 "Newsreader", serif;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.lede {
  max-width: 54rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.74;
}

.masthead__controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.auth-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.masthead__engine-toggle {
  margin: 0;
  flex-wrap: nowrap;
}

.status-chip,
.action,
.modebar__button,
.chip,
.tag,
.archive-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 252, 247, 0.86);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.82rem 1.02rem;
  color: var(--muted);
}

.status-chip--account {
  max-width: min(320px, 72vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-chip::before,
.probability-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

.action {
  cursor: pointer;
  padding: 0.88rem 1.08rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.action:hover,
.modebar__button:hover,
.archive-pill:hover {
  border-color: var(--line-strong);
}

.action:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

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

.action--primary {
  border-color: rgba(34, 66, 102, 0.16);
  background: linear-gradient(180deg, #2e5b86 0%, #284c6d 100%);
  color: #f6f7f8;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(46, 91, 134, 0.18);
}

.modebar {
  display: inline-flex;
  gap: 10px;
  margin-top: 18px;
  padding: 8px;
  animation: riseIn 0.72s ease both;
}

.auth-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 26px 28px;
  animation: riseIn 0.36s ease both;
  width: min(560px, 100%);
}

.auth-panel__copy {
  display: grid;
  gap: 10px;
}

.auth-panel__copy h2 {
  margin: 0;
  font: 700 clamp(1.55rem, 2.7vw, 2rem) / 1.08 "Newsreader", serif;
}

.auth-panel__copy .section-copy {
  margin-bottom: 0;
  max-width: 34rem;
}

.auth-modebar {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  width: fit-content;
}

.auth-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.auth-form--gate {
  grid-template-columns: 1fr;
  gap: 14px;
}

.auth-step-hint {
  grid-column: 1 / -1;
  margin-top: 0;
  font-size: 0.92rem;
}

.auth-action-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-otp-input {
  text-align: center;
  letter-spacing: 0.14em;
  font-size: 1.08rem;
  font-weight: 700;
}

.form-error {
  grid-column: 1 / -1;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(158, 75, 67, 0.16);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 600;
}

.modebar__button {
  cursor: pointer;
  padding: 0.8rem 1.06rem;
  color: var(--muted);
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.modebar__button.is-active {
  color: var(--text);
  border-color: rgba(52, 91, 132, 0.18);
  background: linear-gradient(180deg, rgba(52, 91, 132, 0.08), rgba(255, 255, 255, 0.4));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(260px, 0.8fr));
  gap: 18px;
  margin-top: 22px;
}

.hero-grid > .hero-stack {
  grid-column: span 2;
}

.practice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.practice-hero__primary {
  min-height: 280px;
}

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.practice-panel {
  padding: 24px;
}

.practice-panel--compact {
  padding: 22px;
}

.practice-panel--empty-drill {
  min-height: 0;
}

.practice-empty-compact {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed rgba(156, 107, 46, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.practice-empty-compact strong {
  color: var(--text);
}

.practice-empty-compact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.active-recall-arena {
  margin-top: 18px;
  border-color: rgba(31, 69, 101, 0.14);
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 109, 115, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 241, 0.92));
}

.personal-mentor-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  border-color: rgba(47, 109, 115, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 69, 101, 0.1), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 241, 0.94));
}

.personal-mentor-panel__main,
.personal-mentor-panel__tasks {
  display: grid;
  gap: 14px;
}

.personal-mentor-panel h2 {
  margin: 0;
  font: 800 clamp(1.7rem, 3vw, 2.6rem)/1.02 "Newsreader", serif;
  letter-spacing: -0.04em;
}

.personal-mentor-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.mentor-focus-grid > div,
.mentor-task {
  padding: 14px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.mentor-focus-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mentor-focus-grid strong {
  color: var(--text);
  line-height: 1.35;
}

.mentor-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mentor-task span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.mains-answer-lab {
  margin-top: 18px;
  border-color: rgba(156, 107, 46, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(156, 107, 46, 0.12), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 250, 241, 0.95));
}

.mains-answer-lab__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  margin-top: 16px;
}

.mains-answer-lab__question,
.mains-answer-lab__writer,
.mains-eval-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.mains-answer-lab__question h3 {
  margin: 0;
  font: 750 1.3rem/1.25 "Newsreader", serif;
}

.text-label {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mains-answer-input {
  min-height: 230px;
}

.mains-answer-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.file-input {
  max-width: 230px;
  color: var(--muted);
}

.mains-answer-result {
  margin-top: 16px;
}

.mains-eval-card__head {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 16px;
  align-items: center;
}

.mains-eval-card__head h3 {
  margin: 0;
  font: 850 3rem/0.9 "Newsreader", serif;
  color: var(--blue);
}

.mains-eval-meter {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: rgba(31, 69, 101, 0.12);
}

.mains-eval-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.mains-eval-verdict {
  margin: 0;
  color: var(--text);
  font-weight: 750;
  line-height: 1.55;
}

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

.mains-rubric-chip,
.mains-feedback-block,
.mains-model-answer,
.mains-line-edit {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.mains-rubric-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.mains-rubric-chip strong {
  color: var(--text);
  font-size: 1.1rem;
}

.mains-feedback-block,
.mains-model-answer {
  display: grid;
  gap: 8px;
}

.mains-feedback-block b,
.mains-model-answer b {
  color: var(--text);
}

.mains-feedback-block p,
.mains-model-answer p,
.mains-line-edit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.mains-line-edit strong {
  color: var(--text);
}

.mains-line-edit span {
  color: var(--blue);
  line-height: 1.55;
}

.mains-mentor-teaching {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 69, 101, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(31, 69, 101, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 241, 230, 0.92));
}

.mains-mentor-teaching--rescue {
  border-color: rgba(156, 107, 46, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(225, 174, 45, 0.18), transparent 16rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 255, 255, 0.86));
}

.mains-mentor-teaching__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.mains-mentor-teaching__head h4 {
  margin: 2px 0 0;
  font: 800 1.25rem/1.18 "Newsreader", serif;
  color: var(--text);
}

.mains-mentor-teaching__head > span,
.mains-next-attempt {
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 69, 101, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue);
  font-weight: 850;
}

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

.mains-mentor-grid article,
.mains-teaching-section,
.mains-teaching-story {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.mains-mentor-grid b,
.mains-teaching-section > span,
.mains-teaching-story > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mains-mentor-grid p,
.mains-teaching-story p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.mains-teaching-section ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.3rem;
}

.mains-teaching-section li {
  color: var(--muted);
  line-height: 1.58;
}

.mains-teaching-section--path li,
.mains-teaching-section--rewrite li {
  color: var(--text);
}

.mains-next-attempt {
  border-radius: 16px;
  color: var(--text);
  line-height: 1.5;
}

.mains-feedback-block--risk {
  border-color: rgba(182, 78, 62, 0.18);
  background: rgba(255, 235, 231, 0.72);
}

.active-recall-arena__grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.active-recall-score,
.active-recall-coach,
.active-recall-due {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
}

.active-recall-score strong {
  font: 800 2.4rem/1 "Newsreader", serif;
  color: var(--blue);
}

.active-recall-score span,
.active-recall-coach p,
.active-recall-due small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.active-recall-memory-line {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(156, 107, 46, 0.16);
  background: rgba(255, 243, 220, 0.66);
}

.active-recall-memory-line--good {
  border-color: rgba(47, 109, 115, 0.16);
  background: rgba(47, 109, 115, 0.08);
}

.active-recall-memory-line--focus {
  border-color: rgba(31, 69, 101, 0.14);
  background: rgba(31, 69, 101, 0.07);
  color: var(--text);
}

.active-recall-due__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.active-recall-due__item strong {
  color: var(--gold);
}

.active-recall-due__item small {
  grid-column: 1 / -1;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
}

.hero-card--student {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-card--student-secondary {
  min-height: 0;
}

.hero-student-strip {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(59, 127, 137, 0.18);
  background:
    linear-gradient(180deg, rgba(59, 127, 137, 0.08), rgba(255, 255, 255, 0.78)),
    rgba(59, 127, 137, 0.04);
  color: var(--text);
  line-height: 1.62;
}

.hero-actions {
  margin-top: 0;
}

.hero-card::after,
.event-card::after,
.cluster-card::after,
.topic-preview::after,
.weak-card::after,
.revision-card::after,
.overlay-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(163, 130, 84, 0.04), transparent 26%);
  opacity: 1;
  pointer-events: none;
}

.hero-card--primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
  gap: 18px;
  border-top: 3px solid rgba(156, 107, 46, 0.22);
}

.hero-number {
  margin: 0;
  font: 700 clamp(4rem, 11vw, 7rem) / 0.92 "Newsreader", serif;
  letter-spacing: -0.04em;
}

.hero-number span {
  font-size: 0.58em;
}

.hero-copy {
  color: var(--muted);
  line-height: 1.72;
  max-width: 46rem;
}

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

.metric-chip {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.metric-chip strong {
  display: block;
  font-size: 1.34rem;
  font-weight: 700;
}

.metric-chip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.signal-callout {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(52, 91, 132, 0.14);
  background: linear-gradient(180deg, rgba(52, 91, 132, 0.06), rgba(255, 255, 255, 0.52));
}

.mission-callout {
  align-content: start;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.92rem);
  line-height: 1.16;
}

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

.mission-row__copy {
  display: grid;
  gap: 6px;
}

.signal-callout__label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-callout h3,
.hero-card h3,
.section-heading h2,
.event-card h3,
.overlay-title,
.cluster-card h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  letter-spacing: -0.025em;
}

.signal-callout h3 {
  font-size: 1.6rem;
  line-height: 1.08;
}

.signal-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.heat-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.heat-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.heat-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.heat-bar {
  position: relative;
  overflow: hidden;
  height: 11px;
  border-radius: 999px;
  background: rgba(56, 67, 78, 0.08);
}

.heat-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(52, 91, 132, 0.88), rgba(86, 112, 86, 0.82), rgba(156, 107, 46, 0.82));
}

.heat-score {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.hero-stack .hero-card {
  min-height: 0;
}

.micro-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.82fr);
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.content-stack,
.side-stack {
  display: grid;
  gap: 20px;
}

.section-shell {
  display: grid;
  gap: 18px;
  animation: riseIn 0.68s ease both;
}

.saved-shelf {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.feed-nav {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.feed-nav__copy h3 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Newsreader", serif;
  letter-spacing: -0.02em;
}

.feed-nav__copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.feed-nav__pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.feed-pill {
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0.76rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.72);
  color: var(--muted);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.feed-pill.is-active {
  color: var(--text);
  border-color: rgba(52, 91, 132, 0.18);
  background: linear-gradient(180deg, rgba(52, 91, 132, 0.08), rgba(255, 255, 255, 0.6));
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.section-heading h2 {
  font-size: 1.7rem;
}

.section-copy,
.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 18px;
}

.feature-stage__stack,
.stream-grid,
.cluster-grid,
.archive-grid,
.timeline,
.weak-list {
  display: grid;
  gap: 14px;
}

.support-preview-note {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
  background: linear-gradient(180deg, rgba(156, 107, 46, 0.04), rgba(255, 255, 255, 0.6));
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.support-preview-note strong {
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-preview-note span {
  line-height: 1.6;
  font-size: 0.94rem;
}

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

.event-card,
.cluster-card,
.topic-preview,
.weak-card,
.revision-card,
.overlay-section {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.event-card,
.cluster-card,
.topic-preview,
.weak-card,
.revision-card,
.source-timeline-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}

.event-card {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  background:
    radial-gradient(circle at top right, rgba(255, 205, 132, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 244, 0.9)),
    var(--surface-strong);
}

.event-card__topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.event-card__topbar .event-card__meta {
  margin-bottom: 0;
}

.event-rank-pill,
.save-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.68rem 0.92rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.82);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.event-rank-pill {
  color: var(--gold);
  background: rgba(156, 107, 46, 0.08);
}

.save-pill {
  cursor: pointer;
}

.save-pill.is-saved {
  color: var(--green);
  border-color: rgba(47, 109, 87, 0.2);
  background: rgba(47, 109, 87, 0.08);
}

.event-card:hover,
.cluster-card:hover,
.revision-card:hover,
.topic-preview:hover,
.weak-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 22px 48px rgba(82, 52, 17, 0.12);
  transform: translateY(-3px);
}

.event-card--featured {
  min-height: 340px;
  border-color: rgba(156, 107, 46, 0.16);
  background:
    linear-gradient(180deg, rgba(156, 107, 46, 0.05), rgba(255, 255, 255, 0) 22%),
    var(--surface-strong);
}

.event-card--secondary {
  min-height: 164px;
}

.event-card__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.event-card__rank {
  min-width: 44px;
  font: 700 2rem / 1 "IBM Plex Sans", sans-serif;
  color: var(--gold);
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.probability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0.95rem;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.probability-badge--high {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: rgba(245, 185, 79, 0.22);
}

.probability-badge--medium {
  color: var(--cyan);
  background: var(--cyan-soft);
  border-color: rgba(111, 229, 221, 0.2);
}

.probability-badge--low {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(255, 141, 128, 0.18);
}

.probability-badge--scan {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.68rem 0.88rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.event-card h3 {
  font-size: clamp(1.28rem, 2vw, 2.3rem);
  line-height: 1.05;
}

.event-card__summary {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-deck {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.story-deck--compact {
  grid-auto-columns: minmax(220px, 84%);
}

.story-deck--card,
.story-deck--saved {
  margin-top: 16px;
}

.story-card {
  scroll-snap-align: start;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(72, 58, 38, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 247, 238, 0.92)),
    var(--surface-strong);
  box-shadow: 0 12px 28px rgba(61, 45, 28, 0.08);
}

.story-card--spotlight {
  border-color: rgba(52, 91, 132, 0.18);
  background:
    linear-gradient(180deg, rgba(52, 91, 132, 0.12), rgba(255, 255, 255, 0.92)),
    var(--surface-strong);
}

.story-card--saved {
  background:
    linear-gradient(180deg, rgba(156, 107, 46, 0.1), rgba(255, 255, 255, 0.92)),
    var(--surface-strong);
}

.story-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.story-card__index {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.story-card__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card__body {
  display: grid;
  gap: 10px;
}

.story-card__saved-title {
  font: 700 1.08rem/1.45 "Newsreader", serif;
  color: var(--text);
}

.story-card__saved-summary {
  color: var(--muted);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.56rem 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
}

.chip--warning {
  color: var(--amber);
  border-color: rgba(255, 207, 115, 0.26);
  background: rgba(255, 207, 115, 0.12);
}

.chip--success {
  color: var(--green);
  border-color: rgba(139, 220, 166, 0.22);
  background: rgba(139, 220, 166, 0.12);
}

.event-card__footer,
.cluster-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.event-card__cta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.event-card__cta-note {
  font-size: 0.78rem;
  color: rgba(78, 73, 64, 0.88);
  letter-spacing: 0.01em;
}

.overlay-layout--student .overlay-column,
.overlay-stats--student {
  gap: 18px;
}

.overlay-hero--student {
  gap: 16px;
}

.overlay-action-row {
  margin-top: 4px;
}

.action--card-open {
  color: #fff8ef;
  border-color: rgba(120, 75, 24, 0.18);
  background: linear-gradient(180deg, #8b5b2e 0%, #734a24 100%);
  box-shadow: 0 12px 28px rgba(115, 74, 36, 0.18);
}

.action--card-open:hover {
  color: #fffdf8;
  border-color: rgba(120, 75, 24, 0.28);
  background: linear-gradient(180deg, #9a6737 0%, #7e5228 100%);
  box-shadow: 0 16px 30px rgba(115, 74, 36, 0.24);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.event-card__hover {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(245, 185, 79, 0.18);
  background: rgba(245, 185, 79, 0.05);
  color: var(--muted);
}

.event-card__logic {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(111, 229, 221, 0.16);
  background:
    linear-gradient(180deg, rgba(111, 229, 221, 0.1), rgba(255, 255, 255, 0.74)),
    rgba(111, 229, 221, 0.06);
}

.event-card__logic strong {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card__logic span {
  color: var(--text);
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__logic-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.cluster-card {
  min-height: 220px;
}

.cluster-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cluster-stack__item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cluster-stack__item span:first-child {
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.cluster-stack__item span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

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

.topic-lab {
  padding: 22px;
}

.field {
  display: grid;
  gap: 10px;
}

.field__label {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-input {
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
  border-color: rgba(52, 91, 132, 0.22);
  box-shadow: 0 0 0 4px rgba(52, 91, 132, 0.06);
}

.text-input--multiline {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.action-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.action-row--split {
  justify-content: space-between;
  align-items: center;
}

.topic-lab__output {
  margin-top: 18px;
}

.mentor-launch-card {
  gap: 12px;
}

.mentor-overlay-shell {
  display: grid;
  gap: 18px;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.mentor-overlay-shell--immersive {
  gap: 0;
  grid-template-rows: minmax(0, 1fr);
}

.mentor-overlay-shell__sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mentor-overlay-shell__hero {
  gap: 14px;
}

.mentor-overlay-shell__frame-wrap {
  overflow: hidden;
  min-height: 0;
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(72, 58, 38, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 247, 238, 0.94)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.mentor-overlay-shell__frame-wrap--full {
  border-radius: 0;
  border: 0;
  background: #faf8f3;
  box-shadow: none;
}

.mentor-overlay-shell__frame {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 220px);
  border: 0;
  display: block;
  background: #faf8f3;
}

.topic-preview__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-cycle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.mini-cycle__ring {
  --progress: 0.5turn;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    radial-gradient(closest-side, rgba(255, 252, 247, 0.96) 62%, transparent 64%),
    conic-gradient(from -90deg, rgba(156, 107, 46, 0.9) var(--progress), rgba(52, 91, 132, 0.12) 0turn);
}

.mini-cycle__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topic-preview__quote {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  line-height: 1.72;
}

.weak-list {
  margin-top: 18px;
}

.weak-card__top,
.revision-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.weak-card h3,
.revision-card h3 {
  margin: 0;
  font-size: 1rem;
}

.signal-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(56, 67, 78, 0.08);
  overflow: hidden;
  margin-top: 14px;
}

.signal-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(158, 75, 67, 0.9), rgba(165, 111, 30, 0.88));
}

.timeline {
  margin-top: 4px;
}

.revision-card {
  display: grid;
  gap: 14px;
}

.revision-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.72rem 0.92rem;
  border-radius: 999px;
  background: rgba(52, 91, 132, 0.08);
  border: 1px solid rgba(52, 91, 132, 0.14);
  color: var(--blue);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.archive-toolbar {
  display: grid;
  gap: 16px;
}

.archive-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-pill {
  cursor: pointer;
  padding: 0.72rem 0.94rem;
  color: var(--muted);
}

.archive-pill.is-active {
  color: var(--text);
  background: rgba(52, 91, 132, 0.08);
  border-color: rgba(52, 91, 132, 0.16);
}

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

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(53, 45, 35, 0.28);
  backdrop-filter: blur(4px);
}

.overlay__panel {
  position: relative;
  width: min(1320px, calc(100% - 32px));
  max-height: calc(100vh - 34px);
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(72, 58, 38, 0.12);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 24px 60px rgba(61, 45, 28, 0.14);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.3s ease;
  scrollbar-gutter: stable both-edges;
}

.overlay__panel:focus {
  outline: none;
}

.overlay.is-open .overlay__panel {
  transform: translateY(0) scale(1);
}

.overlay__panel--guru {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #faf8f3;
  box-shadow: none;
}

.overlay__panel--guru > .overlay__close {
  display: none;
}

.overlay__panel--guru #guruOverlayContent {
  height: 100%;
}

.guru-overlay-host {
  width: 100%;
  height: 100%;
}

.guru-overlay-host--immersive {
  display: block;
  padding: 0;
}

.overlay__panel--prompt {
  width: min(560px, calc(100% - 24px));
}

.overlay__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0.88rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.9);
  color: var(--text);
  cursor: pointer;
}

.overlay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.74fr);
  gap: 22px;
}

.overlay-layout--single {
  grid-template-columns: 1fr;
}

.overlay-layout--single .overlay-column {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.overlay-layout--focus {
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.64fr);
}

.overlay-column {
  display: grid;
  gap: 22px;
}

.overlay-title {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.95;
}

.overlay-title--prompt {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.overlay-subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.86;
  max-width: 54rem;
}

.overlay-subtitle--compact {
  max-width: 34rem;
}

.prompt-sheet {
  display: grid;
  gap: 16px;
}

.prompt-form {
  display: grid;
  gap: 16px;
}

.prompt-form__error {
  min-height: 1.2rem;
  color: var(--red);
  font-size: 0.88rem;
}

.overlay-hero {
  display: grid;
  gap: 18px;
}

.overlay-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.9);
  border: 1px solid rgba(157, 120, 71, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.overlay-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.overlay-mode-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 91, 132, 0.18);
}

.overlay-mode-tab.is-active {
  color: #fffaf2;
  background: linear-gradient(180deg, #8b5b2e 0%, #734a24 100%);
  border-color: rgba(120, 75, 24, 0.24);
  box-shadow: 0 10px 22px rgba(115, 74, 36, 0.18);
}

.overlay-section.is-mode-hidden {
  display: none;
}

.overlay-stats {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 20px;
}

.overlay-stats--compact {
  gap: 12px;
}

.overlay-insight-panel {
  display: grid;
  gap: 14px;
  padding: 20px 20px 22px;
  border-color: rgba(245, 185, 79, 0.18);
  background:
    linear-gradient(180deg, rgba(245, 185, 79, 0.12), rgba(126, 167, 255, 0.05)),
    var(--surface-strong);
}

.overlay-insight-panel__summary {
  font: 700 clamp(1.08rem, 2vw, 1.34rem) / 1.5 "Newsreader", serif;
  color: var(--text);
}

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

.stat-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.stat-card__label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-card__value {
  margin-top: 10px;
  font: 700 clamp(1.4rem, 2.5vw, 2.2rem) / 1 "IBM Plex Sans", sans-serif;
}

.metric-grid--compact {
  margin-top: 14px;
}

.metric-grid--compact .metric-chip {
  padding: 12px 14px;
}

.metric-grid--compact .metric-chip strong {
  font-size: 1.2rem;
}

.overlay-stats--compact .metric-grid--compact {
  grid-template-columns: 1fr;
}

.stat-dial {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 22px;
}

.stat-dial__ring {
  --progress: 0.5turn;
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, rgba(7, 13, 21, 0.96) 70%, transparent 71%),
    conic-gradient(from -90deg, rgba(245, 185, 79, 0.96) var(--progress), rgba(255, 255, 255, 0.08) 0turn);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.06), 0 22px 48px rgba(0, 0, 0, 0.3);
}

.stat-dial__ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-dial__content {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.stat-dial__value {
  font: 700 2.2rem / 1 "IBM Plex Sans", sans-serif;
}

.stat-dial__label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-meter {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.trust-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 141, 128, 0.94), rgba(245, 185, 79, 0.94), rgba(139, 220, 166, 0.96));
}

.overlay-section h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.overlay-copy,
.overlay-list {
  color: var(--muted);
  line-height: 1.82;
}

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

.overlay-list__item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.overlay-copy--lead {
  font-size: 1rem;
  color: var(--text);
}

.study-sheet {
  align-items: start;
}

.study-sheet__main,
.study-sheet__sidebar {
  gap: 18px;
}

.study-sheet__hero {
  gap: 16px;
}

.study-sheet__title {
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.study-sheet__summary {
  max-width: 56rem;
  font-size: 1rem;
  line-height: 1.8;
}

.study-sheet__decode {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(245, 185, 79, 0.2);
  background:
    linear-gradient(180deg, rgba(245, 185, 79, 0.12), rgba(255, 255, 255, 0.86)),
    var(--surface-strong);
  color: var(--text);
  font: 700 clamp(1rem, 1.9vw, 1.22rem)/1.66 "Newsreader", serif;
}

.study-layer {
  display: grid;
  gap: 18px;
}

.study-layer__head {
  display: grid;
  gap: 8px;
}

.study-layer__head .overlay-copy {
  max-width: 52rem;
}

.study-layer-grid {
  display: grid;
  gap: 14px;
}

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

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

.study-layer-card,
.study-answer-card,
.study-sidebar-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 247, 238, 0.92)),
    var(--surface-strong);
  box-shadow: 0 12px 26px rgba(61, 45, 28, 0.06);
}

.study-layer-card--clarity {
  border-color: rgba(245, 185, 79, 0.16);
}

.study-layer-card--mechanism,
.study-layer-card--testing {
  border-color: rgba(52, 91, 132, 0.16);
}

.study-layer-card--problem,
.study-layer-card--trap {
  border-color: rgba(255, 141, 128, 0.18);
}

.study-layer-card--governance,
.study-layer-card--answer {
  border-color: rgba(139, 220, 166, 0.18);
}

.study-layer-card--mentor,
.study-layer-card--shift,
.study-layer-card--pyq,
.study-sidebar-card {
  border-color: rgba(126, 167, 255, 0.16);
}

.study-layer-card__label,
.study-answer-card__label,
.study-sidebar-card__label {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-layer-card__value,
.study-answer-card__body,
.study-sidebar-card__value {
  color: var(--text);
  line-height: 1.78;
}

.study-layer-card__value {
  font: 700 1rem/1.7 "Newsreader", serif;
}

.study-layer-card__list,
.study-sidebar-stack {
  display: grid;
  gap: 10px;
}

.study-layer-card__list-item,
.study-sidebar-meta__row {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  line-height: 1.72;
}

.study-sidebar-card--compact {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.study-sidebar-meta {
  display: grid;
  gap: 10px;
}

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

.study-sidebar-meta__row span {
  color: var(--muted);
}

.study-sidebar-meta__row strong {
  color: var(--text);
}

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

.overlay-reading-flow {
  display: grid;
  gap: 18px;
}

.overlay-hook-card {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(245, 185, 79, 0.18);
  background:
    linear-gradient(180deg, rgba(245, 185, 79, 0.12), rgba(126, 167, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.overlay-hook-card__title {
  font: 700 clamp(1.16rem, 2.2vw, 1.72rem) / 1.45 "Newsreader", serif;
  color: var(--text);
}

.overlay-hook-card__summary {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.82;
}

.overlay-insight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip--insight {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 185, 79, 0.18);
  color: var(--amber);
}

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

.overlay-reading-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.overlay-reading-card--spotlight {
  border-color: rgba(126, 167, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(126, 167, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.overlay-reading-card--wide {
  grid-column: 1 / -1;
}

.overlay-reading-card__label,
.overlay-thinking-row__label {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.overlay-bullet-list__item {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.82;
}

.overlay-bullet-list__item::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 185, 79, 0.12);
}

.overlay-thinking-stack {
  display: grid;
  gap: 14px;
}

.overlay-thinking-row {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.overlay-deep-flow {
  display: grid;
  gap: 18px;
}

.overlay-deep-model {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(126, 167, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(126, 167, 255, 0.12), rgba(245, 185, 79, 0.05)),
    rgba(255, 255, 255, 0.03);
}

.overlay-deep-model__label,
.overlay-deep-card__label {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overlay-deep-model__formula {
  font: 700 clamp(1.08rem, 2vw, 1.38rem) / 1.45 "Newsreader", serif;
  color: var(--text);
}

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

.overlay-deep-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.overlay-deep-card--wide {
  grid-column: 1 / -1;
}

.overlay-section--flat {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.thinking-tab-shell {
  display: grid;
  gap: 18px;
}

.thinking-headline {
  border-color: rgba(52, 91, 132, 0.14);
  background:
    radial-gradient(circle at top right, rgba(111, 229, 221, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(52, 91, 132, 0.08), rgba(255, 255, 255, 0.92)),
    var(--surface-strong);
}

.thinking-headline__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
}

.thinking-headline__copy,
.thinking-headline__facts,
.thinking-fact-box,
.thinking-callout,
.thinking-step-card,
.answer-sheet {
  display: grid;
  gap: 12px;
}

.thinking-headline__statement {
  font: 700 clamp(1.24rem, 2.3vw, 1.92rem) / 1.45 "Newsreader", serif;
  color: var(--text);
}

.thinking-headline__insight {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(245, 185, 79, 0.2);
  background: rgba(245, 185, 79, 0.08);
  color: var(--text);
  line-height: 1.72;
}

.thinking-fact-box {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.thinking-fact-box__label,
.thinking-step-row__label,
.thinking-callout__label,
.answer-sheet__meta,
.thinking-step-card__label {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thinking-journey {
  display: grid;
  gap: 16px;
}

.thinking-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thinking-progress--stack {
  margin-top: 14px;
}

.thinking-progress__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.64rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 91, 132, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-deck--thinking-flow {
  grid-auto-columns: minmax(300px, 88%);
}

.thinking-step-card {
  scroll-snap-align: start;
  min-height: 100%;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(72, 58, 38, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 247, 238, 0.92)),
    var(--surface-strong);
  box-shadow: 0 14px 32px rgba(61, 45, 28, 0.08);
}

.thinking-step-card--mechanism {
  border-color: rgba(52, 91, 132, 0.16);
}

.thinking-step-card--trap {
  border-color: rgba(255, 141, 128, 0.18);
  animation: trapShake 7s ease-in-out infinite;
}

.thinking-step-card--edge {
  border-color: rgba(245, 185, 79, 0.18);
  background:
    linear-gradient(180deg, rgba(245, 185, 79, 0.1), rgba(255, 255, 255, 0.94)),
    var(--surface-strong);
}

.thinking-step-card--answer {
  border-color: rgba(139, 220, 166, 0.2);
  background:
    linear-gradient(180deg, rgba(139, 220, 166, 0.12), rgba(255, 255, 255, 0.94)),
    var(--surface-strong);
}

.thinking-step-card--trigger {
  border-color: rgba(111, 229, 221, 0.18);
}

.thinking-step-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.thinking-step-card__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(52, 91, 132, 0.1);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.thinking-step-card__lead,
.thinking-callout__value,
.answer-sheet__body {
  color: var(--text);
  line-height: 1.8;
}

.thinking-step-card__lead {
  font-size: 1rem;
}

.thinking-step-row {
  padding-top: 12px;
  border-top: 1px solid rgba(72, 58, 38, 0.08);
}

.thinking-chain {
  display: grid;
  gap: 10px;
}

.thinking-chain__item {
  position: relative;
  padding: 12px 14px 12px 36px;
  border-radius: 16px;
  border: 1px solid rgba(52, 91, 132, 0.1);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  line-height: 1.7;
}

.thinking-chain__item::before {
  content: ">";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--blue);
  font-weight: 800;
}

.thinking-callout {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(52, 91, 132, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.thinking-callout--mains {
  border-color: rgba(245, 185, 79, 0.18);
  background:
    linear-gradient(180deg, rgba(245, 185, 79, 0.08), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.8);
}

.mains-lab {
  display: grid;
  gap: 16px;
}

.mains-answer-shell {
  display: grid;
  gap: 14px;
}

.overlay-mode-tabs--sub {
  margin-bottom: 0;
}

.answer-sheet {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 247, 238, 0.92)),
    var(--surface-strong);
}

.authority-layout {
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.78fr);
  align-items: start;
}

.authority-layout .overlay-column,
.authority-sidebar {
  gap: 18px;
}

.authority-hero {
  gap: 0;
}

.authority-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.authority-hero__copy,
.authority-hero__panel {
  display: grid;
  gap: 14px;
}

.authority-hero__title {
  font-size: clamp(1.95rem, 3.1vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 17ch;
}

.authority-hero__subtitle {
  margin-top: 0;
  max-width: 46rem;
  font-size: 0.98rem;
  line-height: 1.68;
}

.authority-inline-meta {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.authority-inline-meta--soft {
  background: rgba(255, 248, 238, 0.68);
}

.authority-inline-meta__label,
.authority-chipline__label,
.authority-hero__panel-label,
.authority-note-card__label,
.authority-recall-card__label,
.authority-exam-card__label,
.authority-expander__hint {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authority-inline-meta__value {
  color: var(--text);
  font-weight: 600;
  line-height: 1.6;
}

.authority-inline-meta__value--ask {
  font: 700 1rem/1.45 "Newsreader", serif;
}

.authority-chipline {
  display: grid;
  gap: 10px;
}

.authority-chipline__chips {
  margin-top: 0;
}

.authority-hero__actions {
  margin-top: 2px;
}

.authority-hero__panel {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(245, 185, 79, 0.2);
  background:
    linear-gradient(180deg, rgba(245, 185, 79, 0.12), rgba(255, 255, 255, 0.88)),
    var(--surface-strong);
  box-shadow: 0 14px 32px rgba(61, 45, 28, 0.08);
}

.authority-hero__panel-copy {
  color: var(--text);
  font: 700 clamp(1rem, 1.7vw, 1.22rem)/1.58 "Newsreader", serif;
}

.authority-hero__panel-tags {
  margin-top: auto;
}

.authority-section {
  display: grid;
  gap: 16px;
}

.authority-section__head {
  display: grid;
  gap: 8px;
}

.authority-section__head .overlay-copy {
  max-width: 48rem;
}

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

.authority-note-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(61, 45, 28, 0.06);
}

.authority-note-card--lead {
  background:
    linear-gradient(180deg, rgba(126, 167, 255, 0.12), rgba(255, 255, 255, 0.9)),
    var(--surface-strong);
  border-color: rgba(52, 91, 132, 0.14);
}

.authority-note-card__value,
.authority-recall-card__value,
.authority-exam-card__value {
  color: var(--text);
  line-height: 1.7;
}

.authority-note-card__value {
  font-size: 0.98rem;
}

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

.authority-accordion {
  border-radius: 20px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.authority-accordion[open] {
  border-color: rgba(52, 91, 132, 0.16);
  box-shadow: 0 14px 28px rgba(61, 45, 28, 0.06);
}

.authority-accordion__summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.authority-accordion__summary::-webkit-details-marker,
.authority-expander__summary::-webkit-details-marker {
  display: none;
}

.authority-accordion__toggle {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.authority-accordion__body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

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

.authority-exam-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.authority-exam-card--trap {
  background:
    linear-gradient(180deg, rgba(255, 141, 128, 0.1), rgba(255, 255, 255, 0.88)),
    var(--surface-strong);
  border-color: rgba(255, 141, 128, 0.18);
}

.authority-exam-card__title {
  color: var(--text);
  font: 700 1.12rem/1.4 "Newsreader", serif;
}

.authority-exam-card__title--small,
.authority-exam-card__title--compact {
  font-size: 0.96rem;
}

.authority-exam-card__divider {
  height: 1px;
  background: rgba(72, 58, 38, 0.08);
}

.authority-expander {
  border-radius: 22px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.authority-expander[open] {
  box-shadow: 0 16px 32px rgba(61, 45, 28, 0.08);
}

.authority-expander__summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
}

.authority-expander__title {
  color: var(--text);
  font: 700 1.08rem/1.4 "Newsreader", serif;
}

.authority-expander__body {
  padding: 0 20px 20px;
}

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

.authority-utility-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.authority-utility-panel--wide {
  grid-column: 1 / -1;
}

.authority-recall-panel {
  display: grid;
  gap: 14px;
}

.authority-recall-panel__probability {
  color: var(--text);
  font: 700 1.24rem/1.3 "Newsreader", serif;
}

.authority-recall-grid {
  display: grid;
  gap: 12px;
}

.authority-recall-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(72, 58, 38, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.authority-recall-card--wide {
  min-height: 132px;
}

.authority-sidebar__actions .action-row {
  margin-top: 0;
}

.source-spotlight {
  display: grid;
  gap: 18px;
}

.source-spotlight__head {
  display: grid;
  gap: 14px;
}

.source-spotlight__body {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(126, 167, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(126, 167, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.source-spotlight__title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.55;
}

.source-preview {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.76;
}

.source-note {
  color: var(--muted);
  line-height: 1.72;
}

.source-note strong {
  color: var(--text);
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.source-timeline {
  display: grid;
  gap: 12px;
}

.source-timeline-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.source-timeline-card[open] {
  border-color: rgba(126, 167, 255, 0.24);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.source-timeline-card__summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  cursor: pointer;
}

.source-timeline-card__summary::-webkit-details-marker {
  display: none;
}

.source-timeline-card__index {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 700 1rem / 1 "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, rgba(245, 185, 79, 0.24), rgba(126, 167, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.source-timeline-card__copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.source-timeline-card__copy strong {
  font-size: 1rem;
  line-height: 1.58;
}

.source-timeline-card__hint {
  align-self: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}

.source-timeline-card__body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px 72px;
}

.chip--official {
  border-color: rgba(139, 220, 166, 0.24);
  background: rgba(139, 220, 166, 0.12);
  color: var(--green);
}

.chip--editorial {
  border-color: rgba(126, 167, 255, 0.24);
  background: rgba(126, 167, 255, 0.12);
  color: var(--blue);
}

.chip--global {
  border-color: rgba(111, 229, 221, 0.24);
  background: rgba(111, 229, 221, 0.12);
  color: var(--cyan);
}

.chip--wire {
  border-color: rgba(245, 185, 79, 0.24);
  background: rgba(245, 185, 79, 0.12);
  color: var(--gold);
}

.chip--soft {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

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

.trap-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 207, 115, 0.18);
  background: linear-gradient(180deg, rgba(255, 207, 115, 0.14), rgba(255, 255, 255, 0.03));
  animation: none;
}

.trap-card__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.trap-card__shield {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 207, 115, 0.18);
  color: var(--amber);
  font-size: 1.2rem;
}

.mcq-shell {
  display: grid;
  gap: 16px;
}

.mcq-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.mcq-progress__bar {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}

.mcq-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(126, 167, 255, 0.94), rgba(111, 229, 221, 0.94));
}

.mcq-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.mcq-question {
  font-weight: 800;
  line-height: 1.62;
}

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

.mcq-choice {
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.mcq-choice:hover:enabled {
  transform: translateY(-1px);
  border-color: rgba(126, 167, 255, 0.22);
}

.mcq-choice:disabled {
  cursor: default;
}

.mcq-choice.is-correct {
  color: var(--green);
  border-color: rgba(139, 220, 166, 0.28);
  background: var(--green-soft);
}

.mcq-choice.is-wrong {
  color: var(--red);
  border-color: rgba(255, 141, 128, 0.28);
  background: var(--red-soft);
}

.mcq-explanation {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  line-height: 1.7;
  filter: blur(8px);
  opacity: 0.4;
  transform: translateY(8px);
  transition: filter 0.26s ease, opacity 0.26s ease, transform 0.26s ease;
}

.mcq-explanation.is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

.mcq-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.empty-state,
.loading-state {
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
}

.state-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.state-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.state-copy p {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.7;
}

.state-art {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.state-art__ring,
.state-art__ring--inner {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(52, 91, 132, 0.18);
}

.state-art__ring {
  inset: 0;
}

.state-art__ring--inner {
  inset: 14px;
  border-color: rgba(156, 107, 46, 0.18);
}

.state-art__spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  animation: orbit 3s linear infinite;
}

.state-art--loading .state-art__ring {
  animation: pulseRing 1.8s ease-in-out infinite;
}

.state-art--loading .state-art__ring--inner {
  animation: pulseRing 1.8s ease-in-out infinite 0.18s;
}

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

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  gap: 12px;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  animation: riseIn 0.32s ease both;
}

.toast--success {
  border-color: rgba(139, 220, 166, 0.2);
}

.toast--warning {
  border-color: rgba(255, 207, 115, 0.22);
}

.toast--error {
  border-color: rgba(255, 141, 128, 0.22);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0.85;
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    opacity: 0.85;
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, 24px, 0) scale(1.04);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trapShake {
  0%,
  94%,
  100% {
    transform: translateX(0);
  }
  95% {
    transform: translateX(-1px);
  }
  97% {
    transform: translateX(2px);
  }
  99% {
    transform: translateX(-1px);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(36px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(36px) rotate(-360deg);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (max-width: 1240px) {
  .hero-grid,
  .practice-hero,
  .personal-mentor-panel,
  .mentor-focus-grid,
  .practice-grid,
  .active-recall-arena__grid,
  .mains-answer-lab__grid,
  .mains-mentor-grid,
  .main-grid,
  .overlay-layout,
  .feature-stage {
    grid-template-columns: 1fr;
  }

  .hero-grid > .hero-stack {
    grid-column: auto;
  }

  .metric-grid,
  .cluster-grid,
  .stream-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .hero-card--primary {
    grid-template-columns: 1fr;
  }

  .study-load-card {
    grid-template-columns: 1fr;
  }

  .overlay-stats {
    position: static;
  }

  .overlay-reading-grid {
    grid-template-columns: 1fr;
  }

  .overlay-deep-grid {
    grid-template-columns: 1fr;
  }

  .study-layer-grid--three,
  .study-layer-grid--two,
  .study-answer-grid {
    grid-template-columns: 1fr;
  }

  .thinking-headline__grid {
    grid-template-columns: 1fr;
  }

  .authority-hero__grid,
  .authority-exam-grid,
  .authority-utility-grid {
    grid-template-columns: 1fr;
  }

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

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

  .auth-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .auth-gate {
    padding: 16px 12px 28px;
  }

  .app-shell {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .masthead {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .masthead__controls {
    justify-content: flex-start;
  }

  .auth-cluster {
    width: 100%;
  }

  .modebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .modebar__button {
    text-align: center;
  }

  .stats-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .overlay__panel {
    width: calc(100% - 18px);
    max-height: calc(100vh - 18px);
    padding: 20px;
  }

  .saved-shelf {
    padding: 18px;
  }

  .event-card__topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .story-deck {
    grid-auto-columns: 86%;
  }

  .story-deck--thinking-flow {
    grid-auto-columns: 92%;
  }

  .story-deck--compact {
    grid-auto-columns: 82%;
  }

  .authority-summary-grid,
  .authority-exam-grid,
  .authority-utility-grid {
    grid-template-columns: 1fr;
  }

  .authority-hero__title {
    max-width: none;
  }

  .authority-expander__summary,
  .authority-accordion__summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .source-timeline-card__summary {
    grid-template-columns: auto 1fr;
  }

  .source-timeline-card__hint {
    grid-column: 2;
    justify-self: start;
  }

  .source-timeline-card__body {
    padding-left: 18px;
  }

  .study-sheet__decode {
    font-size: 1rem;
  }

  .auth-form {
    grid-template-columns: 1fr;
  }

  .auth-modebar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 580px) {
  .auth-panel {
    padding: 18px;
  }

  .hero-number {
    font-size: 3.8rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .study-sheet__title {
    font-size: 1.8rem;
  }

  .event-card,
  .cluster-card,
  .topic-preview,
  .weak-card,
  .revision-card,
  .overlay-section {
    padding: 18px;
  }

  .overlay-hook-card {
    padding: 18px;
  }

  .overlay-reading-card,
  .overlay-thinking-row,
  .overlay-deep-card,
  .overlay-deep-model {
    padding: 16px;
  }

  .story-card {
    padding: 16px;
  }

  .event-card__header {
    grid-template-columns: 1fr;
  }

  .event-card__rank {
    min-width: 0;
  }

  .event-card__footer,
  .cluster-card__footer,
  .mcq-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .event-card__cta {
    justify-items: stretch;
  }

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

  .source-timeline-card__summary {
    grid-template-columns: 1fr;
  }

  .source-timeline-card__index,
  .source-timeline-card__hint {
    grid-column: auto;
  }
}

/* Pro desk refresh: calmer student dashboard inspired by the mentor quality console. */
:root {
  --bg: #f3eadc;
  --bg-deep: #e5d7c0;
  --surface: rgba(255, 250, 241, 0.9);
  --surface-strong: rgba(255, 249, 239, 0.96);
  --surface-soft: rgba(83, 61, 31, 0.045);
  --line: rgba(83, 61, 31, 0.14);
  --line-strong: rgba(83, 61, 31, 0.24);
  --text: #221f1a;
  --muted: #695f51;
  --gold: #a36d1c;
  --gold-soft: rgba(163, 109, 28, 0.14);
  --cyan: #2f6d73;
  --cyan-soft: rgba(47, 109, 115, 0.11);
  --blue: #1f4565;
  --blue-soft: rgba(31, 69, 101, 0.11);
  --green: #2f6a50;
  --green-soft: rgba(47, 106, 80, 0.13);
  --red: #9a4132;
  --red-soft: rgba(154, 65, 50, 0.12);
  --amber: #986718;
  --amber-soft: rgba(152, 103, 24, 0.14);
  --shadow: 0 18px 50px rgba(63, 42, 19, 0.1);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(184, 126, 43, 0.2), transparent 32rem),
    radial-gradient(circle at 95% 8%, rgba(31, 69, 101, 0.15), transparent 36rem),
    linear-gradient(135deg, #fbf6ec 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

.ambient__grid {
  opacity: 0.36;
}

.app-shell {
  width: min(1500px, calc(100% - 40px));
}

.glass,
.event-card,
.cluster-card,
.topic-preview,
.weak-card,
.revision-card,
.overlay-section {
  backdrop-filter: blur(18px);
}

.masthead,
.modebar,
.feed-nav,
.student-desk-guide,
.hero-card,
.topic-lab,
.side-stack > .glass {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 250, 241, 0.84)),
    var(--surface);
}

.masthead {
  border-radius: 30px;
}

.masthead__brand h1 {
  max-width: none;
  letter-spacing: -0.045em;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: stretch;
}

.hero-grid > .hero-stack {
  grid-column: auto;
}

.hero-card {
  border-radius: 28px;
}

.hero-card--student {
  min-height: 0;
}

.hero-student-strip,
.study-sheet__decode,
.authority-hero__panel {
  border-color: rgba(163, 109, 28, 0.18);
  background:
    linear-gradient(180deg, rgba(163, 109, 28, 0.11), rgba(255, 255, 255, 0.76)),
    var(--surface-strong);
}

.main-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.content-stack {
  width: 100%;
}

.side-stack {
  display: none;
}

.modebar {
  width: min(760px, 100%);
  margin-inline: auto;
  justify-content: center;
}

.modebar__button {
  min-width: 120px;
}

.student-desk-guide {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.student-desk-guide__intro {
  display: grid;
  gap: 8px;
}

.student-desk-guide__intro h3 {
  margin: 0;
  font: 700 clamp(1.28rem, 2vw, 2rem) / 1.14 "Newsreader", serif;
  letter-spacing: -0.03em;
}

.student-desk-guide__intro p,
.student-desk-guide__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.student-desk-guide__card {
  display: grid;
  gap: 8px;
  min-height: 134px;
  padding: 16px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.student-desk-guide__card span,
.event-card__signal-box span,
.mentor-desk__hint {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.student-desk-guide__card strong {
  color: var(--text);
  font: 700 1.38rem/1.05 "Newsreader", serif;
}

.student-desk-guide__rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-desk-guide__rail span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
}

.student-plan-card {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
}

.student-plan-actions {
  margin-top: 16px;
}

.student-plan-steps,
.student-step-list {
  display: grid;
  gap: 10px;
}

.student-plan-steps div,
.student-step-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.student-plan-steps strong,
.student-step-list strong {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 0.82rem;
}

.student-plan-steps span,
.student-step-list span {
  color: var(--text);
  font-weight: 750;
  line-height: 1.45;
}

.study-load-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(163, 109, 28, 0.16);
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 185, 79, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.96), rgba(248, 240, 226, 0.88));
  box-shadow: 0 18px 44px rgba(61, 45, 28, 0.08);
}

.study-load-card h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

.study-load-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.study-load-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.study-load-steps div {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 104px;
  padding: 14px 10px;
  border: 1px solid rgba(83, 61, 31, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.study-load-steps strong {
  color: var(--navy);
  font: 800 2rem/1 "Newsreader", serif;
}

.study-load-steps span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.student-mentor-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
}

.student-mentor-card__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.event-card {
  isolation: isolate;
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 96% 0%, rgba(163, 109, 28, 0.13), transparent 17rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 241, 0.9)),
    var(--surface-strong);
}

.event-card::after {
  display: none;
}

.event-card__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, var(--gold), rgba(163, 109, 28, 0.18));
  opacity: 0.88;
}

.event-card--surface-support .event-card__accent {
  background: linear-gradient(180deg, var(--blue), rgba(31, 69, 101, 0.18));
}

.event-card--surface-scan .event-card__accent {
  background: linear-gradient(180deg, var(--cyan), rgba(47, 109, 115, 0.18));
}

.event-card--surface-coverage .event-card__accent {
  background: linear-gradient(180deg, var(--green), rgba(47, 106, 80, 0.16));
}

.event-card--surface-radar .event-card__accent {
  background: linear-gradient(180deg, var(--muted), rgba(105, 95, 81, 0.16));
}

.event-card--current {
  border-color: rgba(31, 69, 101, 0.34);
  box-shadow: 0 24px 56px rgba(31, 69, 101, 0.16);
}

.event-card--completed {
  border-color: rgba(47, 106, 80, 0.24);
}

.event-card--completed .event-card__accent {
  background: linear-gradient(180deg, var(--green), rgba(47, 106, 80, 0.18));
}

.event-card:hover,
.cluster-card:hover,
.revision-card:hover,
.topic-preview:hover,
.weak-card:hover {
  box-shadow: 0 24px 52px rgba(63, 42, 19, 0.13);
}

.event-card__topbar {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.event-card__body-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 0.32fr);
  gap: 16px;
  align-items: start;
}

.event-card__signal-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.event-card__signal-box strong {
  color: var(--text);
  font: 700 1.28rem/1.05 "Newsreader", serif;
}

.event-card__signal-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.event-rank-pill,
.save-pill,
.mini-pill,
.probability-badge,
.chip,
.tag {
  background: rgba(255, 255, 255, 0.56);
}

.event-card h3 {
  font-size: clamp(1.2rem, 1.75vw, 2rem);
  line-height: 1.12;
}

.event-card--featured h3 {
  font-size: clamp(1.72rem, 2.45vw, 2.7rem);
}

.event-card__summary {
  max-width: 66rem;
  font-size: 0.98rem;
}

.mini-pill--active {
  color: var(--blue);
  border-color: rgba(31, 69, 101, 0.24);
  background: var(--blue-soft);
}

.mini-pill--success {
  color: var(--green);
  border-color: rgba(47, 106, 80, 0.22);
  background: var(--green-soft);
}

.guided-study-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.28fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 69, 101, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(31, 69, 101, 0.11), transparent 18rem),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(63, 42, 19, 0.09);
}

.guided-study-strip__copy {
  display: grid;
  gap: 5px;
}

.guided-study-strip__copy h3,
.guided-study-strip__copy p {
  margin: 0;
}

.guided-study-strip__copy h3 {
  color: var(--text);
  font: 700 1.28rem/1.05 "Newsreader", serif;
}

.guided-study-strip__copy p {
  color: var(--muted);
  line-height: 1.5;
}

.guided-study-strip__progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(83, 61, 31, 0.1);
  overflow: hidden;
}

.guided-study-strip__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.guided-study-strip__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.study-layer--topper {
  border-color: rgba(31, 69, 101, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 109, 115, 0.1), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 241, 0.92));
}

.topper-lens-lab {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.topper-lens-lab__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  padding: 16px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.topper-lens-lab__head h4,
.topper-lens-lab__head p,
.topper-lens-prompt h4,
.topper-lens-prompt p {
  margin: 0;
}

.topper-lens-lab__head h4 {
  color: var(--text);
  font: 700 1.36rem/1.05 "Newsreader", serif;
}

.topper-lens-lab__head p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.5;
}

.topper-lens-prompts {
  display: grid;
  gap: 14px;
}

.topper-lens-prompt {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(83, 61, 31, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.topper-lens-prompt__label {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topper-lens-prompt h4 {
  color: var(--text);
  font: 700 1.2rem/1.1 "Newsreader", serif;
}

.topper-lens-prompt p {
  color: var(--muted);
  line-height: 1.55;
}

.topper-lens-prompt__input {
  min-height: 112px;
}

.topper-lens-prompt__result {
  display: grid;
  gap: 12px;
}

.topper-check-result {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 69, 101, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(31, 69, 101, 0.08), rgba(255, 255, 255, 0.72)),
    var(--surface-strong);
}

.topper-check-result__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.topper-check-result__head span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  font-weight: 850;
}

.topper-check-result__head strong {
  color: var(--text);
  line-height: 1.35;
}

.recall-scoreboard {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(31, 69, 101, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.recall-scoreboard__meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 69, 101, 0.12);
}

.recall-scoreboard__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.recall-scoreboard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recall-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 69, 101, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.recall-chip--level {
  color: var(--blue);
  background: var(--blue-soft);
}

.recall-pressure,
.recall-coach {
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.55;
}

.recall-pressure {
  border: 1px solid rgba(156, 107, 46, 0.2);
  background: rgba(255, 243, 220, 0.72);
  color: var(--text);
  font-weight: 750;
}

.recall-coach {
  border: 1px solid rgba(47, 109, 115, 0.16);
  background: rgba(47, 109, 115, 0.08);
  color: var(--muted);
}

.topper-check-result__block,
.topper-check-result__answer {
  display: grid;
  gap: 6px;
}

.topper-check-result__block b,
.topper-check-result__answer b {
  color: var(--text);
}

.topper-check-result__block p,
.topper-check-result__answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.news-mentor-card {
  gap: 14px;
}

.news-mentor-card__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip--button {
  cursor: pointer;
  font: inherit;
}

.chip--button:hover {
  border-color: rgba(31, 69, 101, 0.26);
  color: var(--blue);
  background: var(--blue-soft);
}

.story-card {
  border-color: rgba(83, 61, 31, 0.1);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.action--card-open,
.overlay-mode-tab.is-active {
  background: linear-gradient(135deg, #13263e, #244f74);
  border-color: rgba(19, 38, 62, 0.22);
  box-shadow: 0 14px 28px rgba(31, 69, 101, 0.18);
}

.overlay__backdrop {
  background: rgba(53, 45, 35, 0.22);
  backdrop-filter: blur(7px);
}

.overlay__panel {
  width: min(1500px, calc(100% - 28px));
  border-radius: 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(163, 109, 28, 0.09), transparent 26rem),
    rgba(255, 250, 241, 0.98);
}

.overlay-layout--focus {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.56fr);
}

.study-path {
  position: sticky;
  top: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(63, 42, 19, 0.09);
}

.study-path a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.study-path a:hover {
  color: var(--text);
  border-color: rgba(31, 69, 101, 0.2);
  background: var(--blue-soft);
}

.study-layer-card,
.study-answer-card,
.study-sidebar-card,
.authority-note-card,
.authority-exam-card,
.authority-recall-card,
.authority-utility-panel,
.overlay-list__item,
.source-spotlight__body,
.source-preview,
.source-timeline-card {
  border-color: rgba(83, 61, 31, 0.1);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.study-layer-card__value {
  font-size: 1.04rem;
}

.overlay-layout--focus.study-sheet {
  grid-template-columns: minmax(0, 1fr);
}

.study-sheet__main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.study-sheet .study-sheet__sidebar {
  display: none;
}

.study-sheet .overlay-section {
  padding: 26px 28px;
}

.study-sheet__hero {
  gap: 18px;
  text-align: left;
  background:
    radial-gradient(circle at 0% 0%, rgba(163, 109, 28, 0.11), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 241, 0.96));
}

.study-sheet__title {
  max-width: 1050px;
  font-size: clamp(2.05rem, 3.2vw, 3.65rem);
  line-height: 1.02;
}

.study-sheet__summary {
  max-width: 900px;
  margin-top: 4px;
  color: rgba(70, 61, 50, 0.86);
  font-size: 1.02rem;
  line-height: 1.7;
}

.study-sheet__decode {
  max-width: 940px;
  padding: 16px 18px 16px 20px;
  border-left: 4px solid rgba(163, 109, 28, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(163, 109, 28, 0.11), rgba(255, 255, 255, 0.78)),
    var(--surface-strong);
  font: 650 1.02rem/1.72 "IBM Plex Sans", sans-serif;
  text-align: left;
}

.study-mentor-strip {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(31, 69, 101, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 69, 101, 0.1), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(250, 245, 236, 0.92));
}

.study-mentor-strip__head {
  display: grid;
  gap: 6px;
}

.study-mentor-strip__head h3,
.study-mentor-strip__head p {
  margin: 0;
}

.study-mentor-strip__head h3 {
  color: var(--text);
  font: 800 clamp(1.35rem, 2vw, 1.8rem)/1.1 "Newsreader", serif;
}

.study-mentor-strip__head p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

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

.study-mentor-signal {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(83, 61, 31, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
}

.study-mentor-signal__label {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.study-mentor-signal__value {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.64;
}

.study-sheet .study-path {
  position: static;
  border-radius: 24px;
  box-shadow: none;
}

.study-layer__head {
  text-align: left;
  justify-items: start;
}

.study-layer__head .overlay-copy {
  max-width: 760px;
}

.study-layer-card,
.study-answer-card,
.study-sidebar-card {
  align-content: start;
  text-align: left;
}

.study-layer-card__value {
  font: 650 0.98rem/1.72 "IBM Plex Sans", sans-serif;
  text-align: left;
}

.study-answer-card__body,
.study-sidebar-card__value,
.study-layer-card__list-item {
  text-align: left;
}

.study-layer-card__list-item {
  padding: 12px 14px 12px 16px;
  border-left: 3px solid rgba(163, 109, 28, 0.24);
}

.study-layer-card--clarity {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 241, 0.94));
}

.study-layer-card--problem,
.study-layer-card--trap {
  background: linear-gradient(180deg, rgba(255, 247, 244, 0.9), rgba(255, 255, 255, 0.7));
}

.study-sheet__main .news-mentor-card {
  border-color: rgba(31, 69, 101, 0.16);
  background:
    linear-gradient(180deg, rgba(31, 69, 101, 0.08), rgba(255, 255, 255, 0.76)),
    var(--surface-strong);
}

.study-layer__head h3 {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .study-mentor-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .study-sheet .overlay-section,
  .study-mentor-strip {
    padding: 18px;
  }

  .study-mentor-strip__grid {
    grid-template-columns: 1fr;
  }

  .study-sheet__title {
    font-size: 1.82rem;
  }

  .study-sheet__decode {
    font-size: 0.96rem;
  }
}

.source-timeline-card[open] {
  box-shadow: 0 16px 34px rgba(63, 42, 19, 0.09);
}

.topic-lab {
  display: grid;
  gap: 14px;
  border-radius: 26px;
}

.topic-lab .section-copy {
  margin-bottom: 0;
}

.mentor-launch-card {
  display: grid;
  gap: 14px;
  border-color: rgba(31, 69, 101, 0.14);
  background:
    linear-gradient(180deg, rgba(31, 69, 101, 0.1), rgba(255, 255, 255, 0.68)),
    var(--surface-strong);
}

.mentor-launch-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.mentor-launch-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.overlay__panel--guru {
  background:
    radial-gradient(circle at 8% 0%, rgba(184, 126, 43, 0.17), transparent 32rem),
    linear-gradient(135deg, #fbf6ec 0%, var(--bg) 52%, var(--bg-deep) 100%);
}

.mentor-desk {
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: transparent;
}

.mentor-desk__bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 250, 241, 0.92)),
    var(--surface);
  box-shadow: 0 10px 28px rgba(63, 42, 19, 0.08);
}

.mentor-desk__brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.mentor-desk__avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  color: #241b0f;
  background: linear-gradient(135deg, #e0ad4f, #b77a22);
  box-shadow: inset 0 0 0 2px rgba(34, 31, 26, 0.08);
  font: 700 1.35rem/1 "Newsreader", serif;
}

.mentor-desk__brand h1 {
  margin: 0;
  color: var(--text);
  font: 700 clamp(1.18rem, 2vw, 1.75rem)/1.05 "Newsreader", serif;
  letter-spacing: -0.025em;
}

.mentor-desk__brand p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.mentor-desk__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.mentor-desk__hint {
  max-width: 460px;
  text-align: right;
}

.mentor-desk__frame-wrap {
  margin: 18px;
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.92);
  box-shadow: var(--shadow);
}

.mentor-desk .mentor-overlay-shell__frame {
  min-height: 0;
  height: 100%;
  background: #fbf6ec;
}

@media (max-width: 1240px) {
  .hero-grid,
  .main-grid,
  .student-plan-card,
  .student-mentor-card,
  .overlay-layout--focus {
    grid-template-columns: 1fr;
  }

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

  .event-card__body-grid {
    grid-template-columns: 1fr;
  }

  .event-card__signal-box {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .guided-study-strip {
    grid-template-columns: 1fr;
  }

  .guided-study-strip__actions {
    justify-content: flex-start;
  }

  .event-card__signal-box p {
    grid-column: 1 / -1;
  }

  .mentor-desk__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mentor-desk__actions {
    justify-content: flex-start;
  }

  .mentor-desk__hint {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .student-mentor-card__form {
    grid-template-columns: 1fr;
  }

  .study-load-steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 22px, 1500px);
  }

  .student-desk-guide__cards {
    grid-template-columns: 1fr;
  }

  .student-desk-guide,
  .event-card {
    padding: 16px;
    border-radius: 22px;
  }

  .study-path {
    position: static;
    border-radius: 22px;
  }

  .study-path a {
    flex: 1 1 42%;
    justify-content: center;
  }

  .mentor-desk__bar {
    padding: 14px;
  }

  .mentor-desk__avatar {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .mentor-desk__frame-wrap {
    margin: 10px;
    border-radius: 18px;
  }
}
