:root {
  --ink: #173847;
  --ink-deep: #0b3443;
  --teal: #087b7b;
  --teal-light: #e0f2ef;
  --mint: #eff8f6;
  --gold: #e8b764;
  --gold-light: #fff6e5;
  --line: #dbe8e8;
  --muted: #6d8289;
  --page: #f7fbfa;
  --white: #ffffff;
  --danger: #b95454;
  --shadow: 0 18px 50px rgba(27, 70, 75, 0.08);
  --radius: 18px;
  --display: "Plus Jakarta Sans", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 15px/1.55 var(--body);
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.ambient-one { width: 430px; height: 430px; top: -260px; right: 7%; background: rgba(215, 241, 235, 0.55); }
.ambient-two { width: 300px; height: 300px; top: 45%; left: -220px; background: rgba(250, 232, 193, 0.35); }
.app-shell { min-height: 100vh; }
.topbar {
  height: 82px; padding: 0 max(28px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; gap: 38px;
  background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(219,232,232,.8); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, #0c8990, #0d4c5b); color: white; font: 800 11px var(--display); letter-spacing: -.02em; box-shadow: 0 7px 14px rgba(8, 123, 123, .18); }
.brand strong { display: block; font: 800 15px var(--display); letter-spacing: -.04em; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.top-nav { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.nav-link { border: 0; background: transparent; color: #769096; padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: 13px; }
.nav-link:hover, .nav-link.is-active { color: var(--teal); background: var(--teal-light); }
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 9px; background: #cce9e4; color: var(--teal); font-size: 10px; }
.pilot-button { display: inline-flex; gap: 9px; align-items: center; padding: 11px 16px; border-radius: 9px; background: var(--ink-deep); color: white; font-weight: 700; font-size: 12px; transition: transform .2s, box-shadow .2s; }
.pilot-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11,52,67,.18); }
main { width: min(1240px, calc(100% - 56px)); margin: 0 auto; }
.loading-state { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.loader { width: 32px; height: 32px; border: 3px solid #dbeceb; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-panel { min-height: 275px; margin-top: 25px; padding: 31px 45px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; overflow: hidden; position: relative; border-radius: 22px; color: white; background: radial-gradient(circle at 90% 5%, #2f7880 0, transparent 35%), linear-gradient(125deg, #0a3d4d, #115e68 68%, #16787d); box-shadow: var(--shadow); }
.hero-panel:after { content: ""; position: absolute; width: 200px; height: 200px; left: -130px; bottom: -140px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero-copy { position: relative; z-index: 2; max-width: 580px; }
.eyebrow { color: #9ed9ce; text-transform: uppercase; font: 700 10px var(--display); letter-spacing: .14em; }
.eyebrow.teal { color: var(--teal); }
.eyebrow-dot { width: 7px; height: 7px; display: inline-block; vertical-align: 1px; margin-right: 7px; border-radius: 50%; background: #86ddae; box-shadow: 0 0 0 5px rgba(134,221,174,.12); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.055em; }
.hero-panel h1 { margin: 10px 0 10px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.02; }
.hero-panel h1 em { color: #9be0d1; font-style: normal; }
.hero-lede { max-width: 520px; color: #c2dcdd; font-size: 13px; line-height: 1.5; }
.hero-actions { display: flex; gap: 20px; align-items: center; margin-top: 16px; }
.primary-button, .outline-button, .text-button { border: 0; border-radius: 9px; padding: 13px 18px; font-weight: 700; font-size: 12px; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { color: var(--ink-deep); background: #effaf5; box-shadow: 0 8px 20px rgba(1, 30, 39, .12); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 23px rgba(1, 30, 39, .2); }
.primary-button span, .outline-button span { margin-left: 10px; font-size: 16px; vertical-align: -1px; }
.text-button { padding-left: 0; color: #d3ece8; background: transparent; }
.text-button:hover { color: white; }
.hero-caption { margin-top: 13px; color: #8dbec0; font-size: 10px; }
.mini-spark { color: var(--gold); padding-right: 6px; }
.hero-visual { min-height: 210px; position: relative; }
.orbit { position: absolute; top: 50%; left: 50%; width: 340px; height: 155px; border: 1px solid rgba(155,224,209,.32); border-radius: 50%; transform: translate(-50%, -50%) rotate(-24deg); }
.orbit-two { width: 350px; height: 190px; transform: translate(-50%, -50%) rotate(44deg); opacity: .65; }
.orbit-three { width: 215px; height: 215px; border-color: rgba(232,183,100,.2); transform: translate(-50%, -50%) rotate(55deg); }
.hero-seal { position: absolute; top: 50%; left: 50%; width: 126px; height: 126px; display: grid; place-content: center; text-align: center; transform: translate(-50%, -50%); border: 1px solid rgba(214,245,238,.45); border-radius: 50%; background: rgba(9,61,75,.55); box-shadow: 0 0 0 18px rgba(104,188,183,.08); }
.hero-seal span { font: 800 27px var(--display); letter-spacing: -.08em; }
.hero-seal small { margin-top: 3px; color: #abd6d1; font: 700 7px var(--display); letter-spacing: .16em; line-height: 1.4; }
.floating-card { position: absolute; display: flex; gap: 10px; align-items: center; min-width: 155px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.floating-card b, .floating-card small { display: block; }
.floating-card b { font-size: 11px; }
.floating-card small { margin-top: 2px; color: #aed1d2; font-size: 9px; }
.card-top { top: 24px; right: 0; }
.card-bottom { bottom: 24px; left: 0; }
.check-mark, .bar-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--ink-deep); background: #a7dfd0; font-weight: 800; }
.bar-icon { color: #a7dfd0; background: rgba(167,223,208,.13); }

.notice-banner { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; padding: 14px 18px; border: 1px solid #efdbad; border-radius: 12px; color: #80632d; background: var(--gold-light); font-size: 12px; }
.notice-banner p { margin: 0; }
.notice-icon { flex: 0 0 auto; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #d7af60; border-radius: 50%; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { padding: 20px 21px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.86); box-shadow: 0 6px 20px rgba(27,70,75,.035); }
.metric-card small { display: block; color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; margin: 5px 0 1px; color: var(--ink-deep); font: 800 28px var(--display); letter-spacing: -.07em; }
.metric-card span { color: var(--teal); font-size: 10px; font-weight: 600; }
.dashboard-pulse { display: grid; grid-template-columns: 1.4fr .85fr; gap: 14px; margin: 22px 0 50px; }
.pulse-card { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 6px 20px rgba(27,70,75,.035); }
.pulse-card h2 { margin: 8px 0 5px; font-size: 20px; }
.pulse-help { color: var(--muted); font-size: 10px; }
.subject-mix-layout { display: grid; grid-template-columns: 185px 1fr; gap: 22px; align-items: center; margin-top: 20px; }
.donut-wrap { display: grid; justify-items: center; gap: 8px; }
.donut-chart { width: 175px; height: 175px; display: grid; place-items: center; border-radius: 50%; background: #e2efec; transform: rotate(-3deg); }
.donut-hole { width: 104px; height: 104px; display: grid; place-content: center; border-radius: 50%; background: white; text-align: center; transform: rotate(3deg); box-shadow: 0 4px 13px rgba(27,70,75,.07); }
.donut-hole strong { display: block; color: var(--ink-deep); font: 800 28px var(--display); letter-spacing: -.08em; line-height: 1; }
.donut-hole small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.donut-caption { color: var(--muted); font-size: 9px; text-align: center; }
.subject-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; max-height: 176px; overflow: auto; padding-right: 3px; }
.subject-legend-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; width: 100%; padding: 6px 5px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; text-align: left; }
.subject-legend-item:hover { background: var(--mint); }
.legend-swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--swatch); }
.subject-legend-copy { min-width: 0; }
.subject-legend-copy b, .subject-legend-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-legend-copy b { font: 700 9px var(--display); }
.subject-legend-copy small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.subject-legend-item > strong { color: var(--teal); font: 800 9px var(--display); white-space: nowrap; }
.recall-pulse-card { color: white; background: linear-gradient(145deg, #0b3d4b, #126e73); }
.recall-pulse-card .eyebrow { color: #a7e0d4; }
.recall-pulse-card h2 { font-size: 24px; }
.recall-pulse-card p { margin: 10px 0 22px; color: #b7d5d3; font-size: 12px; line-height: 1.6; }
.recall-pulse-card .outline-button { border-color: rgba(255,255,255,.26); color: white; background: rgba(255,255,255,.08); }
.recall-pulse-card .outline-button:hover { background: rgba(255,255,255,.15); }
.recall-pulse-stats { display: flex; gap: 25px; margin-bottom: 22px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.16); }
.recall-pulse-stats strong, .recall-pulse-stats small { display: block; }
.recall-pulse-stats strong { font: 800 22px var(--display); letter-spacing: -.07em; }
.recall-pulse-stats small { margin-top: 2px; color: #a4c9c7; font-size: 9px; }
.section-block { margin: 60px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 8px 0 0; font-size: 30px; }
.section-intro { max-width: 690px; margin: 10px 0 25px; color: var(--muted); font-size: 13px; }
.outline-button { border: 1px solid var(--line); color: var(--teal); background: white; }
.outline-button:hover { border-color: #9cd4cb; background: var(--teal-light); }
.outline-button:disabled { opacity: .45; cursor: not-allowed; }
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.track-card { min-height: 164px; padding: 19px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.88); transition: transform .2s, border-color .2s, box-shadow .2s; }
.track-card:hover { transform: translateY(-3px); border-color: #9bd8cf; box-shadow: 0 12px 25px rgba(27,70,75,.08); }
.track-card-head { display: flex; justify-content: space-between; gap: 12px; }
.track-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-light); font-size: 15px; }
.track-card h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.track-card p { margin: 12px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.track-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.track-weight { color: var(--teal); font-size: 10px; font-weight: 700; }
.track-weight b { color: var(--ink-deep); font: 800 18px var(--display); letter-spacing: -.06em; }
.track-open { color: #65858a; font-size: 10px; font-weight: 700; }
.institute-callout { display: grid; grid-template-columns: auto 1fr auto; gap: 21px; align-items: center; margin: 30px 0 70px; padding: 28px 31px; border-radius: 18px; color: white; background: var(--ink-deep); box-shadow: 0 14px 35px rgba(11,52,67,.13); }
.callout-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(155,224,209,.35); border-radius: 14px; color: var(--gold); font-size: 21px; }
.institute-callout h2 { margin: 7px 0 5px; font-size: 20px; }
.institute-callout p { max-width: 650px; margin: 0; color: #b5d0d1; font-size: 12px; }
.primary-button.compact { white-space: nowrap; padding: 12px 15px; }

.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 52px 0 27px; }
.back-link { display: block; padding: 0; margin-bottom: 22px; border: 0; color: var(--teal); background: transparent; font-size: 12px; font-weight: 700; }
.page-heading h1 { margin: 7px 0 7px; font-size: 41px; }
.page-heading p { margin: 0; color: var(--muted); }
.performance-heading { align-items: center; }
.progress-ring-wrap { min-width: 190px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.progress-ring-wrap strong { display: block; font: 800 22px var(--display); letter-spacing: -.07em; }
.progress-ring-wrap small { color: var(--muted); font-size: 10px; }
.ring-line { height: 5px; overflow: hidden; margin-top: 10px; border-radius: 5px; background: #e6f0ee; }
.ring-line span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .3s; }
.filter-bar { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.search-wrap { flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: #8ca0a4; }
.search-wrap input, .select-wrap select { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.select-wrap { min-width: 225px; padding: 10px 13px; border-left: 1px solid var(--line); }
.practice-layout { display: grid; grid-template-columns: 1fr 280px; gap: 25px; margin: 26px 0 70px; }
.results-heading { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; color: var(--ink-deep); font: 700 12px var(--display); }
.results-heading .muted { color: var(--muted); font: 400 11px var(--body); }
.case-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.case-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; transition: transform .2s, border-color .2s, box-shadow .2s; }
.case-card:hover, .case-card.is-selected { border-color: #8fcfc5; box-shadow: 0 10px 25px rgba(27,70,75,.07); }
.case-card:hover { transform: translateY(-2px); }
.case-card-open { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.case-card-top { display: flex; justify-content: space-between; gap: 10px; }
.case-number { color: var(--teal); font: 700 10px var(--display); letter-spacing: .04em; }
.bookmark-button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; color: #91a4a7; background: #f1f7f6; }
.bookmark-button.is-saved { color: #ad761d; background: #fff1d4; }
.case-card h3 { min-height: 42px; margin: 13px 0 10px; font-size: 15px; line-height: 1.4; }
.case-card p { min-height: 49px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.case-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #edf3f1; }
.tag { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 5px; color: #5c777c; background: #eff7f5; font-size: 9px; font-weight: 700; }
.case-open { color: var(--teal); font-size: 10px; font-weight: 700; }
.practice-aside { display: grid; align-content: start; gap: 14px; }
.aside-card { padding: 21px; border-radius: 15px; color: white; background: var(--ink-deep); }
.aside-card h3 { margin: 11px 0 6px; font-size: 18px; }
.aside-card p { margin: 0; color: #b5d1d1; font-size: 11px; line-height: 1.55; }
.aside-card.light { color: var(--ink); background: #edf7f4; }
.aside-card.light .eyebrow { color: var(--teal); }
.aside-progress { height: 6px; overflow: hidden; margin-top: 20px; border-radius: 6px; background: rgba(255,255,255,.17); }
.aside-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #97dccd; transition: width .3s; }
.aside-foot { display: flex; justify-content: space-between; margin-top: 8px; color: #8fb6b6; font-size: 10px; }
.aside-foot span:first-child { color: white; font-weight: 700; }
.feature-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 11px; color: #527277; font-size: 11px; }
.feature-list span { display: inline-block; width: 18px; color: var(--teal); font-weight: 800; }

.performance-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0 0 22px; }
.performance-stat { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.performance-stat small { display: block; color: var(--muted); font-size: 10px; }
.performance-stat strong { display: block; margin-top: 6px; color: var(--ink-deep); font: 800 26px var(--display); letter-spacing: -.07em; }
.performance-stat span { display: block; margin-top: 3px; color: var(--teal); font-size: 10px; font-weight: 600; }
.performance-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin-bottom: 70px; }
.analytics-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.compact-heading { align-items: start; }
.compact-heading h2 { margin: 8px 0 0; font-size: 22px; }
.analytics-intro { margin: 9px 0 22px; color: var(--muted); font-size: 12px; }
.track-performance { display: grid; gap: 14px; }
.performance-row { display: grid; grid-template-columns: minmax(155px, 1fr) minmax(150px, 1.25fr) 65px 95px; gap: 15px; align-items: center; padding-top: 2px; }
.performance-row-label b { display: block; font: 700 11px var(--display); }
.performance-row-label small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.performance-track { height: 9px; overflow: hidden; border-radius: 9px; background: #e7f1ef; }
.performance-track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #69c8b2, var(--teal)); transition: width .3s; }
.performance-accuracy { color: var(--teal); font: 800 15px var(--display); text-align: right; }
.performance-count { color: var(--muted); font-size: 9px; text-align: right; }
.analytics-side { display: grid; align-content: start; gap: 14px; }
.insight-card { color: white; background: var(--ink-deep); }
.insight-card .eyebrow { color: #9ed9ce; }
.insight-card h3 { margin: 11px 0 7px; font-size: 20px; }
.insight-card p { margin: 0; color: #b6d1d1; font-size: 11px; line-height: 1.6; }
.legend-card .feature-list { margin-top: 17px; }
.legend-card .feature-list li { display: flex; align-items: flex-start; gap: 4px; }
.legend-dot { flex: 0 0 auto; width: 9px !important; height: 9px; margin: 4px 7px 0 0; border-radius: 50%; }
.teal-dot { background: var(--teal); }
.green-dot { background: #36a974; }
.gold-dot { background: var(--gold); }

.builder-badge { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid #cde6e1; border-radius: 12px; color: var(--teal); background: white; font-size: 11px; }
.builder-badge span { color: var(--gold); font-size: 19px; }
.builder-badge b { font: 700 11px var(--display); line-height: 1.35; }
.mock-builder-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; margin-bottom: 70px; }
.builder-main { display: grid; gap: 14px; }
.builder-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.builder-step { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.builder-step > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--teal); background: var(--teal-light); font: 800 10px var(--display); }
.builder-step h2 { margin: 7px 0 0; font-size: 19px; }
.builder-select-label { display: block; margin-bottom: 7px; color: #557277; font-size: 11px; font-weight: 600; }
.builder-select { width: 100%; padding: 13px 14px; border: 1px solid #c5dfda; border-radius: 10px; outline: 0; color: var(--ink); background: #fbfefd; font-size: 13px; }
.builder-select:focus { border-color: #6dbcae; box-shadow: 0 0 0 3px rgba(109,188,174,.13); }
.builder-helper { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.choice-grid { display: grid; gap: 9px; }
.length-grid { grid-template-columns: repeat(3, 1fr); }
.difficulty-grid { grid-template-columns: repeat(4, 1fr); }
.choice-card { display: block; position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: block; padding: 14px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfefd; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice-card span:hover { border-color: #9bd5ca; }
.choice-card input:checked + span { border-color: #7bc7b9; background: #edf9f5; box-shadow: 0 0 0 2px rgba(123,199,185,.15); }
.choice-card b, .choice-card small { display: block; }
.choice-card b { color: var(--ink-deep); font: 800 17px var(--display); letter-spacing: -.04em; }
.choice-card small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.demo-label { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #8b7447; font-size: 10px; }
.demo-label span { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid #d7b875; border-radius: 50%; font-weight: 700; }
.topic-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.text-button.dark { padding: 0; color: var(--teal); }
.topic-actions > span { margin-left: auto; color: var(--muted); font-size: 10px; }
.topic-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.topic-check { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e0ece9; border-radius: 8px; color: #527177; background: #fbfefd; font-size: 10px; cursor: pointer; }
.topic-check:hover { border-color: #9bd5ca; }
.topic-check input { accent-color: var(--teal); }
.topic-check:has(input:checked) { color: var(--teal); border-color: #93d1c6; background: #edf9f5; }
.build-button { justify-self: start; margin-top: 1px; color: var(--ink-deep); background: #d4f0e8; }
.build-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.builder-aside { display: grid; align-content: start; gap: 14px; }
.builder-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin-top: 20px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.13); }
.builder-stat strong { font: 800 26px var(--display); letter-spacing: -.07em; }
.builder-stat span { color: #9fbfc0; font-size: 10px; text-align: right; }

.mock-test-shell { max-width: 940px; margin: 45px auto 70px; }
.mock-test-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 22px; }
.mock-test-header h1 { margin: 8px 0 5px; font-size: 35px; }
.mock-test-header p { margin: 0; color: var(--muted); font-size: 12px; }
.mock-test-status { min-width: 180px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: right; }
.mock-test-status strong { display: block; font: 800 20px var(--display); letter-spacing: -.06em; }
.mock-test-status small { color: var(--muted); font-size: 10px; }
.mock-test-status strong.is-warning { color: #c3644d; }
.mock-question-card { padding: 28px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
.mock-question-card h2 { margin: 10px 0 22px; font-size: 21px; line-height: 1.4; }
.mock-context { margin: 0 0 18px; padding: 14px 16px; border-left: 3px solid var(--gold); border-radius: 0 9px 9px 0; color: #587278; background: #fffaf0; font-size: 12px; line-height: 1.55; }
.mock-nav { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 14px; }
.mock-nav .muted { color: var(--muted); font-size: 10px; }
.mock-results { display: grid; gap: 17px; }
.mock-results-hero { display: flex; align-items: center; gap: 22px; padding: 27px; border-radius: 17px; color: white; background: var(--ink-deep); }
.score-circle { width: 100px; height: 100px; display: grid; place-content: center; flex: 0 0 auto; border: 7px solid #8ed8c9; border-radius: 50%; text-align: center; }
.score-circle strong { font: 800 25px var(--display); letter-spacing: -.07em; }
.score-circle small { color: #a7d0ca; font-size: 9px; }
.mock-results-hero h1 { margin: 0 0 5px; font-size: 27px; }
.mock-results-hero p { margin: 0; color: #b7d2d2; font-size: 12px; }
.submission-label { display: inline-block; margin-top: 9px; color: #9ed9ce; font-size: 10px; font-weight: 700; }
.mock-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock-result-stat { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.mock-result-stat small { display: block; color: var(--muted); font-size: 10px; }
.mock-result-stat strong { display: block; margin-top: 5px; font: 800 24px var(--display); letter-spacing: -.07em; }
.mock-area-results { display: grid; gap: 9px; }
.mock-area-row { display: grid; grid-template-columns: 1fr 1.5fr 45px; gap: 10px; align-items: center; font-size: 10px; }
.mock-area-row b { font: 700 10px var(--display); }
.mock-area-row .performance-track { height: 7px; }
.mock-area-row span { color: var(--teal); font-weight: 700; text-align: right; }
.detail-sources { max-width: 950px; margin-top: 22px; color: #6d888b; font-size: 10px; }
.detail-sources > strong { display: block; margin-bottom: 5px; }
.compact-heading-title { margin: 8px 0 18px; font-size: 20px; }

.scenario-detail { padding: 45px 0 70px; }
.scenario-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 19px; }
.scenario-top h1 { max-width: 820px; margin: 8px 0 0; font-size: clamp(28px, 4vw, 43px); line-height: 1.08; }
.scenario-top-actions { display: flex; gap: 9px; }
.scenario-top-actions button { white-space: nowrap; }
.case-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.case-meta .tag { background: var(--teal-light); color: var(--teal); }
.scenario-vignette { max-width: 950px; margin: 23px 0 30px; padding: 25px 28px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; color: #3f6269; background: #fffaf0; font-size: 16px; line-height: 1.7; }
.recall-card { max-width: 950px; margin: 0 0 30px; padding: 24px 26px; border: 1px solid #b8dfd5; border-radius: 16px; background: linear-gradient(145deg, #effaf6, #ffffff); box-shadow: 0 8px 22px rgba(27,70,75,.045); }
.recall-card-header { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.recall-card h2 { margin: 8px 0 0; font-size: 21px; }
.recall-badge { padding: 6px 9px; border-radius: 7px; color: var(--teal); background: #d9f1eb; font-size: 9px; font-weight: 700; white-space: nowrap; }
.recall-instruction { margin: 17px 0 12px; color: #45656b; font-size: 13px; line-height: 1.6; }
.recall-textarea { width: 100%; min-height: 102px; resize: vertical; padding: 13px 14px; border: 1px solid #c5dfda; border-radius: 10px; outline: 0; color: var(--ink); background: white; font: 13px/1.6 var(--body); }
.recall-textarea:focus { border-color: #6dbcae; box-shadow: 0 0 0 3px rgba(109,188,174,.13); }
.recall-textarea::placeholder { color: #99abad; }
.recall-actions { display: flex; gap: 10px; align-items: center; margin-top: 11px; }
.recall-actions .primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.recall-reveal { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 17px; }
.recall-model, .recall-key-points { padding: 15px; border-radius: 10px; background: white; }
.recall-model strong, .recall-key-points strong, .recall-rating > strong { display: block; margin-bottom: 7px; color: var(--teal); font: 700 10px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.recall-model p { margin: 0; color: #426269; font-size: 12px; line-height: 1.55; }
.recall-key-points ul { padding-left: 17px; margin: 0; color: #58767a; font-size: 11px; line-height: 1.55; }
.recall-reveal .source-box { grid-column: 1 / -1; margin: 0; padding: 13px 15px; border: 0; border-radius: 10px; background: white; }
.recall-rating { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #cde7e1; }
.rating-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rating-button { padding: 8px 11px; border: 1px solid #c2dfd9; border-radius: 8px; color: #527278; background: white; font-size: 10px; font-weight: 700; }
.rating-button:hover, .rating-button.is-selected { border-color: #65b8aa; color: var(--teal); background: #dff4ed; }
.rating-status { display: block; margin-top: 9px; color: var(--teal); font-size: 10px; font-weight: 700; }
.recall-disclaimer { margin: 15px 0 0; color: #789095; font-size: 9px; }
.case-recall-status { display: block; margin-top: 9px; color: #7e999b; font-size: 9px; font-weight: 700; }
.review-queue-list { display: grid; gap: 13px; margin-bottom: 70px; }
.review-queue-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; border: 1px solid #c8e2dd; border-radius: 14px; background: white; }
.review-queue-card h2 { margin: 7px 0 6px; font-size: 17px; }
.review-queue-card p { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.review-queue-actions { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.review-status { padding: 6px 8px; border-radius: 6px; color: #916b26; background: var(--gold-light); font-size: 9px; font-weight: 700; white-space: nowrap; }
.recall-empty { margin-bottom: 70px; }
.recall-empty-icon { margin-bottom: 8px; color: var(--gold); font-size: 26px; }
.recall-empty h2 { margin: 0 0 7px; font-size: 21px; }
.recall-empty p { margin: 0 auto 18px; max-width: 500px; font-size: 12px; }
.question-stack { display: grid; gap: 14px; max-width: 950px; }
.question-card { padding: 23px 25px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 5px 18px rgba(27,70,75,.03); }
.question-label { color: var(--teal); font: 700 10px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.question-card h2 { margin: 9px 0 17px; font-size: 17px; line-height: 1.45; letter-spacing: -.035em; }
.option-list { display: grid; gap: 8px; }
.option-button { width: 100%; display: flex; align-items: flex-start; gap: 11px; padding: 12px 13px; border: 1px solid #dce9e6; border-radius: 9px; color: #385a61; background: #fbfefd; text-align: left; font-size: 12px; line-height: 1.45; }
.option-button:hover { border-color: #8bcbbf; background: #f2fbf8; }
.option-button.is-selected { border-color: #75c4b6; color: var(--teal); background: #eaf8f4; box-shadow: 0 0 0 2px rgba(117,196,182,.12); }
.option-button.is-selected .option-letter { color: white; background: var(--teal); }
.option-letter { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; margin-top: -2px; border-radius: 6px; color: #59757b; background: #eaf3f1; font-size: 10px; font-weight: 800; }
.option-button.is-correct { border-color: #89ccb2; color: #1f644b; background: #edf9f1; }
.option-button.is-correct .option-letter { color: white; background: #269a6b; }
.option-button.is-wrong { border-color: #e8abab; color: #8e4444; background: #fff3f2; }
.option-button.is-wrong .option-letter { color: white; background: #bf6767; }
.answer-note { display: flex; gap: 9px; align-items: center; margin-top: 12px; color: #258159; font-size: 11px; font-weight: 700; }
.answer-note.wrong { color: var(--danger); }
.rationale-box { margin-top: 15px; padding: 15px 16px; border-radius: 10px; background: #f4faf8; }
.rationale-box strong { display: block; margin-bottom: 4px; color: var(--teal); font: 700 10px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.rationale-box p { margin: 0; color: #4d6b70; font-size: 12px; line-height: 1.6; }
.source-box { margin-top: 13px; padding-top: 12px; border-top: 1px solid #deebe8; }
.source-box strong { display: block; margin-bottom: 5px; color: #6d888b; font-size: 10px; }
.source-box ul { padding-left: 17px; margin: 0; color: #58757a; font-size: 10px; line-height: 1.55; }
.competency-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.competency { padding: 3px 6px; border-radius: 4px; color: #718589; background: #f2f6f5; font-size: 9px; }
.scenario-complete { display: flex; align-items: center; gap: 10px; max-width: 950px; margin-top: 17px; padding: 14px 17px; border-radius: 10px; color: #21664f; background: #eaf8ef; font-size: 12px; font-weight: 700; }
.complete-icon { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: white; background: #2c9a6c; }
.empty-state { padding: 40px; border: 1px dashed #bfd8d4; border-radius: 15px; color: var(--muted); background: rgba(255,255,255,.5); text-align: center; }

.footer { display: flex; justify-content: space-between; gap: 25px; padding: 24px max(28px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); color: #83979a; background: white; font-size: 10px; }
.footer div { display: flex; flex-wrap: wrap; gap: 12px; }
.footer strong { color: var(--ink); }
.footer a { color: var(--teal); font-weight: 700; }

@media (max-width: 900px) {
  .topbar { gap: 14px; padding: 0 20px; }
  .brand { min-width: auto; margin-right: auto; }
  .top-nav { order: 3; position: absolute; left: 0; right: 0; bottom: -47px; justify-content: center; padding: 6px; overflow-x: auto; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
  .pilot-button { padding: 9px 11px; font-size: 10px; }
  main { width: min(100% - 36px, 720px); margin-top: 47px; }
  .hero-panel { grid-template-columns: 1fr; padding: 28px 30px 19px; }
  .hero-visual { min-height: 180px; }
  .hero-panel h1 { font-size: 34px; }
  .track-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-pulse { grid-template-columns: 1fr; }
  .practice-layout { grid-template-columns: 1fr; }
  .practice-aside { grid-template-columns: repeat(2, 1fr); }
  .performance-summary { grid-template-columns: repeat(3, 1fr); }
  .performance-grid, .mock-builder-layout { grid-template-columns: 1fr; }
  .builder-aside { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .topbar { height: 72px; }
  .brand small { display: none; }
  .pilot-button { font-size: 0; padding: 10px 12px; }
  .pilot-button span { font-size: 16px; margin: 0; }
  main { width: calc(100% - 28px); }
  .hero-panel { margin-top: 20px; padding: 25px 22px 15px; border-radius: 18px; }
  .hero-panel h1 { font-size: 31px; }
  .hero-lede { font-size: 14px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 13px; }
  .hero-visual { min-height: 165px; transform: scale(.78); transform-origin: top center; margin-bottom: -40px; }
  .notice-banner { font-size: 11px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 23px; }
  .section-block { margin: 42px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading h2 { font-size: 26px; }
  .outline-button { padding: 10px 13px; }
  .track-grid, .case-list { grid-template-columns: 1fr; }
  .subject-mix-layout { grid-template-columns: 1fr; justify-items: center; }
  .subject-legend { width: 100%; }
  .recall-reveal { grid-template-columns: 1fr; }
  .recall-reveal .source-box, .recall-rating { grid-column: auto; }
  .review-queue-card { align-items: start; flex-direction: column; }
  .review-queue-actions { width: 100%; justify-content: space-between; }
  .institute-callout { grid-template-columns: auto 1fr; padding: 22px; }
  .institute-callout .primary-button { grid-column: 1 / -1; justify-self: start; }
  .page-heading { align-items: start; flex-direction: column; padding-top: 35px; }
  .page-heading h1 { font-size: 35px; }
  .progress-ring-wrap { width: 100%; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .select-wrap { padding: 10px 12px; border-top: 1px solid var(--line); border-left: 0; }
  .practice-aside { grid-template-columns: 1fr; }
  .performance-heading { align-items: start; }
  .performance-summary { grid-template-columns: repeat(2, 1fr); }
  .performance-grid { margin-bottom: 45px; }
  .performance-row { grid-template-columns: 1fr 1fr 52px; gap: 8px; }
  .performance-row .performance-count { grid-column: 1 / -1; text-align: left; margin-top: -5px; }
  .builder-badge { align-self: start; }
  .mock-builder-layout { margin-bottom: 45px; }
  .builder-aside { grid-template-columns: 1fr; }
  .length-grid, .difficulty-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-check-grid { grid-template-columns: 1fr; }
  .topic-actions { flex-wrap: wrap; }
  .topic-actions > span { width: 100%; margin-left: 0; }
  .mock-test-shell { margin-top: 32px; }
  .mock-test-header { align-items: stretch; flex-direction: column; }
  .mock-test-status { text-align: left; }
  .mock-question-card { padding: 19px; }
  .mock-results-hero { align-items: start; flex-direction: column; }
  .mock-result-grid { grid-template-columns: 1fr; }
  .scenario-detail { padding-top: 35px; }
  .scenario-top { flex-direction: column; }
  .scenario-top h1 { font-size: 31px; }
  .scenario-vignette { padding: 19px; font-size: 14px; }
  .question-card { padding: 19px; }
  .recall-card { padding: 20px; }
  .recall-card-header { flex-direction: column; }
  .recall-actions { align-items: stretch; flex-direction: column; }
  .recall-actions button { width: 100%; }
  .footer { align-items: start; flex-direction: column; padding: 22px 14px; }
}
