:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-tint: #eef6ff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #18202b;
  --text-2: #4d5969;
  --muted: #7b8796;
  --line: #e7ebf0;
  --line-strong: #d8dee7;
  --primary: #2468e5;
  --primary-dark: #174fae;
  --primary-soft: #eaf2ff;
  --green: #16a37c;
  --green-soft: #e8f7f2;
  --purple: #7758d6;
  --purple-soft: #f0edff;
  --orange: #ef8b36;
  --orange-soft: #fff3e7;
  --shadow: 0 18px 50px rgba(23, 49, 83, 0.09);
  --header: 64px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d1118;
  --bg-soft: #121822;
  --bg-tint: #111d2e;
  --surface: #151c27;
  --surface-raised: #192230;
  --text: #edf2f8;
  --text-2: #b6c0cd;
  --muted: #8693a3;
  --line: #273140;
  --line-strong: #354153;
  --primary: #6aa2ff;
  --primary-dark: #96bcff;
  --primary-soft: #172b48;
  --green: #4fd1aa;
  --green-soft: #16342e;
  --purple: #ac94ff;
  --purple-soft: #292443;
  --orange: #ffad67;
  --orange-soft: #382719;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.page-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.reading-progress { position: fixed; z-index: 120; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--primary), var(--green)); transform: scaleX(0); transform-origin: left; }

/* Header */
.site-header { position: sticky; z-index: 100; top: 0; height: var(--header); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(16px); }
.nav-shell { width: min(1220px, calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 20px; font-weight: 900; letter-spacing: -0.04em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px 11px 14px 11px; background: linear-gradient(145deg, var(--primary), #43a1ff); color: #fff; font-size: 18px; box-shadow: 0 8px 20px rgba(36, 104, 229, 0.24); }
.search-trigger { width: 260px; height: 38px; padding: 0 10px 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--muted); text-align: left; }
.search-trigger > span { font-size: 20px; line-height: 1; }
.search-trigger em { flex: 1; overflow: hidden; white-space: nowrap; font-style: normal; font-size: 13px; }
kbd { padding: 3px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--muted); font: 11px/1.3 ui-monospace, monospace; }
.desktop-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.desktop-nav a { padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 650; transition: .2s; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.active { background: var(--bg-soft); color: var(--primary); }
.desktop-nav .vip-link { color: #8054cc; }
.nav-actions { display: flex; gap: 6px; }
.icon-button, .menu-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-size: 18px; }
.icon-button:hover, .menu-button:hover { background: var(--bg-soft); }
.menu-button { display: none; }
.mobile-nav { display: none; position: absolute; top: var(--header); left: 12px; right: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); box-shadow: var(--shadow); }
.mobile-nav a { display: block; padding: 12px; border-radius: 9px; font-weight: 650; }
.mobile-nav a:hover { background: var(--bg-soft); }
.mobile-nav.open { display: block; }

/* Generic components */
.button { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--primary); color: #fff; box-shadow: 0 12px 25px rgba(36, 104, 229, .2); }
.button.primary:hover { background: #185bd4; }
.button.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.button.full { width: 100%; }
.section-kicker { display: block; margin-bottom: 8px; color: var(--primary); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.section-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; }
.section-heading > a { color: var(--primary); font-size: 14px; font-weight: 750; }

/* Homepage */
.hero { min-height: 570px; padding: 72px 0 58px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--primary); font-size: 13px; font-weight: 800; }
.eyebrow i { width: 26px; height: 1px; background: var(--primary); }
.hero h1 { margin: 20px 0; font-size: clamp(48px, 6vw, 72px); line-height: 1.08; letter-spacing: -.065em; }
.hero h1 span { color: var(--primary); }
.hero-copy > p { max-width: 600px; margin: 0; color: var(--text-2); font-size: 18px; line-height: 1.85; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; }
.hero-tags { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.hero-clear { min-height: 520px; padding: 66px 0 52px; grid-template-columns: 1.08fr .92fr; gap: 68px; }
.hero-clear h1 { font-size: clamp(48px, 5.6vw, 68px); }
.hero-clear .hero-copy > p { max-width: 640px; }
.start-map { padding: 15px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 70px rgba(24, 58, 104, .11); }
.start-map-head { padding: 7px 8px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.start-map-head span { font-size: 13px; font-weight: 850; }
.start-map-head small { color: var(--muted); font-size: 10px; }
.start-map > a { padding: 17px 8px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.start-map > a:last-child { border-bottom: 0; }
.start-map > a:hover { background: var(--bg-soft); border-radius: 11px; }
.start-map > a > b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font: 800 10px ui-monospace, monospace; }
.start-map > a div { display: grid; gap: 4px; }
.start-map > a strong { font-size: 13px; }
.start-map > a p { margin: 0; color: var(--muted); font-size: 10px; }
.start-map > a > span { color: var(--primary); font-size: 9px; font-weight: 750; }
.stage-section { padding: 28px 0 76px; }
.stage-title { margin-bottom: 20px; }
.stage-title h2 { margin: 0; font-size: clamp(27px,3vw,36px); letter-spacing: -.04em; }
.stage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stage-grid > a { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: .2s; }
.stage-grid > a:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--primary) 38%,var(--line)); box-shadow: var(--shadow); }
.stage-grid span { color: var(--primary); font-size: 10px; font-weight: 850; }
.stage-grid h3 { margin: 18px 0 8px; font-size: 17px; }
.stage-grid p { min-height: 42px; margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.7; }
.stage-grid b { display: inline-block; margin-top: 18px; color: var(--primary); font-size: 10px; }
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 28px; z-index: -3; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 25%, transparent), transparent 67%); filter: blur(4px); }
.sun { position: absolute; top: 35px; right: 70px; z-index: -2; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(145deg, #ffe2a7, #fff4cf); opacity: .85; }
.mountain { position: absolute; z-index: -1; bottom: 28px; border-radius: 50% 50% 16% 16%; filter: blur(.3px); opacity: .8; }
.mountain.one { left: 25px; width: 290px; height: 180px; background: linear-gradient(160deg, #e2efff, #f4f8ff); clip-path: polygon(0 100%, 37% 15%, 53% 55%, 70% 27%, 100% 100%); }
.mountain.two { right: 8px; width: 270px; height: 150px; background: linear-gradient(160deg, #dff5ef, #eefaf6); clip-path: polygon(0 100%, 25% 48%, 42% 70%, 67% 12%, 100% 100%); }
.study-card { position: relative; width: min(430px, 88%); padding: 26px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 22px; background: color-mix(in srgb, var(--surface-raised) 94%, transparent); box-shadow: 0 28px 75px rgba(33, 74, 126, .16); backdrop-filter: blur(12px); transform: rotate(-1.5deg); }
.study-head { display: flex; justify-content: space-between; margin-bottom: 18px; }
.study-head span { font-weight: 850; }
.study-head em { padding: 4px 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-style: normal; font-weight: 800; }
.study-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.study-row > i { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 800; }
.study-row.done > i { border-color: transparent; background: var(--green); color: #fff; }
.study-row div { display: grid; gap: 4px; }
.study-row strong { font-size: 14px; }
.study-row small { color: var(--muted); }
.study-progress { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.study-progress > span { flex: 1; height: 7px; overflow: hidden; border-radius: 10px; background: var(--bg-soft); }
.study-progress > span i { display: block; width: 34%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #53a5ff); }
.study-progress b { color: var(--muted); font-size: 11px; }
.float-card { position: absolute; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); box-shadow: var(--shadow); }
.float-card.score { right: -10px; bottom: 73px; display: grid; gap: 3px; transform: rotate(3deg); }
.float-card.score span, .float-card.streak span { color: var(--muted); font-size: 11px; }
.float-card.score strong { font-size: 19px; }
.float-card.score i { color: var(--green); font-size: 10px; font-style: normal; }
.float-card.streak { top: 70px; left: 0; display: grid; text-align: center; transform: rotate(-5deg); }
.float-card.streak b { color: var(--orange); font-size: 20px; }
.feature-grid { padding: 8px 0 86px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: .2s; }
.feature-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 11px; font-size: 21px; font-weight: 900; }
.feature-icon.blue { background: var(--primary-soft); color: var(--primary); }
.feature-icon.green { background: var(--green-soft); color: var(--green); }
.feature-icon.purple { background: var(--purple-soft); color: var(--purple); }
.feature-grid h2 { margin: 0 0 10px; font-size: 18px; }
.feature-grid p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.75; }
.quick-section { padding: 76px 0; border-top: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card { position: relative; min-height: 116px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: .2s; }
.quick-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31, 64, 105, .07); }
.quick-card.featured { background: linear-gradient(135deg, var(--primary-soft), var(--surface)); }
.quick-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border-radius: 12px; background: var(--bg-soft); font-size: 21px; }
.quick-card div { min-width: 0; }
.quick-card strong { display: block; margin-bottom: 6px; font-size: 15px; }
.quick-card p { margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.quick-card em { position: absolute; top: 10px; right: 10px; padding: 3px 6px; border-radius: 5px; background: var(--bg-soft); color: var(--muted); font-size: 9px; font-style: normal; font-weight: 750; }
.quick-card em.vip { background: var(--purple-soft); color: var(--purple); }
.update-section { padding: 76px 0 90px; }
.update-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 20px; }
.update-list { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.update-list a { padding: 21px 22px; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.update-list a:last-child { border-bottom: 0; }
.update-list a:hover { background: var(--bg-soft); }
.update-list time { color: var(--muted); font: 12px ui-monospace, monospace; }
.update-list strong { display: block; margin-bottom: 5px; font-size: 14px; }
.update-list p { margin: 0; color: var(--muted); font-size: 12px; }
.update-list > a > span { padding: 4px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 750; }
.week-plan { padding: 26px; border-radius: 18px; background: linear-gradient(145deg, #1e64d9, #19499e); color: #fff; box-shadow: 0 18px 40px rgba(36, 104, 229, .2); }
.plan-title { display: flex; justify-content: space-between; font-size: 12px; }
.plan-title b { padding: 4px 7px; border-radius: 5px; background: rgba(255,255,255,.15); }
.week-plan h3 { margin: 36px 0 12px; font-size: 22px; }
.week-plan p { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.75; }
.week-plan a { display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 800; }
.credibility { margin-bottom: 90px; padding: 24px 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-soft); }
.credibility > div { display: grid; grid-template-columns: auto 1fr; column-gap: 13px; }
.credibility b { grid-row: span 2; color: var(--primary); font: 800 14px ui-monospace, monospace; }
.credibility strong { font-size: 13px; }
.credibility p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

/* Documentation */
.docs-body { overflow-x: hidden; }
.docs-grid { min-height: calc(100vh - var(--header)); display: grid; grid-template-columns: minmax(220px, calc((100vw - 1160px)/2 + 220px)) minmax(0, 760px) 220px 1fr; }
.docs-sidebar { position: sticky; top: var(--header); align-self: start; height: calc(100vh - var(--header)); padding: 28px 24px 60px max(24px, calc((100vw - 1160px)/2)); overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-soft); }
.docs-sidebar section { margin-bottom: 24px; }
.docs-sidebar section > button { width: 100%; padding: 0 7px 10px; display: flex; justify-content: space-between; border: 0; background: transparent; font-size: 13px; font-weight: 850; text-align: left; }
.docs-sidebar section > a { display: block; margin: 2px 0; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: 13px; }
.docs-sidebar section > a:hover, .docs-sidebar section > a.active { background: var(--surface); color: var(--primary); font-weight: 750; }
.docs-sidebar .nav-body { display: none; }
.docs-sidebar .nav-track.open > .nav-body, .docs-sidebar .nav-chapter.open > .nav-body { display: block; }
.docs-sidebar .nav-toggle { align-items: center; gap: 6px; cursor: pointer; color: var(--text); }
.docs-sidebar .nav-toggle span { font-weight: 700; color: var(--primary); font-size: 14px; }
.docs-sidebar .nav-toggle em { font-style: normal; margin-left: auto; margin-right: 4px; font-size: 11px; font-weight: 700; color: var(--text-3); }
.docs-sidebar .nav-chapter { margin: 4px 0 4px 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.docs-sidebar .nav-chapter > .nav-toggle { font-size: 12px; font-weight: 750; color: var(--text-2); padding: 5px 7px; }
.docs-sidebar .nav-chapter .nav-body a { padding-left: 14px; font-size: 12.5px; }
.docs-sidebar .nav-track > .nav-toggle { font-size: 13.5px; letter-spacing: .2px; }
.sidebar-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.sidebar-card span { color: var(--primary); font-size: 10px; font-weight: 800; }
.sidebar-card strong { display: block; margin-top: 7px; font-size: 13px; }
.sidebar-card p { margin: 5px 0 11px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.sidebar-card a { color: var(--primary); font-size: 11px; font-weight: 750; }
.docs-content { grid-column: 2; min-width: 0; padding: 54px 52px 100px; }
.prose { max-width: 720px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--primary); }
.prose h1 { margin: 0; font-size: clamp(36px, 5vw, 47px); letter-spacing: -.055em; }
.article-meta { margin: 16px 0 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; }
.article-meta em { padding: 4px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-style: normal; font-weight: 800; }
.prose .lead { color: var(--text-2); font-size: 18px; line-height: 1.9; }
.prose h2 { margin: 54px 0 18px; padding-top: 2px; font-size: 25px; letter-spacing: -.035em; }
.prose p { color: var(--text-2); font-size: 15px; line-height: 1.95; }
.callout { margin: 28px 0; padding: 18px; display: flex; gap: 14px; border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; background: var(--primary-soft); }
.callout > span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font: 800 13px serif; }
.callout strong { font-size: 13px; }
.callout p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; }
.concept-grid { margin: 25px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.concept-grid > div { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.concept-grid b { display: block; margin-bottom: 18px; color: var(--primary); font: 800 11px ui-monospace, monospace; }
.concept-grid strong { display: block; font-size: 14px; }
.concept-grid p { margin: 7px 0 0; font-size: 11px; line-height: 1.65; }
.tag-list { margin: 22px 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.tag-list li { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.tag-list span { min-width: 54px; padding: 5px 8px; border-radius: 7px; background: var(--bg-soft); color: var(--primary); font-size: 11px; font-weight: 800; text-align: center; }
.example-box { margin: 28px 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.example-label { margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 800; }
.example-box > p { margin: 0; font-size: 13px; }
.example-answer { margin-top: 16px; padding-top: 16px; display: grid; gap: 7px; border-top: 1px dashed var(--line-strong); }
.example-answer span { color: var(--green); font-size: 10px; font-weight: 800; }
.example-answer strong { color: var(--text); font-size: 13px; line-height: 1.65; }
.prose table { width: 100%; margin: 24px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.prose th, .prose td { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; line-height: 1.6; }
.prose th { background: var(--bg-soft); font-size: 12px; }
.prose tr:last-child td { border-bottom: 0; }
.prose th:last-child, .prose td:last-child { border-right: 0; }
.ability-flow { margin: 26px 0; padding: 22px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; }
.ability-flow > div { display: grid; text-align: center; gap: 5px; }
.ability-flow span { margin: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; }
.ability-flow strong { font-size: 13px; }
.ability-flow small { color: var(--muted); font-size: 10px; }
.ability-flow > i { color: var(--line-strong); font-style: normal; }
.steps { margin: 22px 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.steps li { padding: 16px; display: flex; gap: 15px; border: 1px solid var(--line); border-radius: 12px; }
.steps li > span { color: var(--primary); font: 800 11px ui-monospace, monospace; }
.steps strong { font-size: 14px; }
.steps p { margin: 5px 0 0; font-size: 12px; line-height: 1.65; }
.member-lock { position: relative; margin: 34px 0; min-height: 180px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--purple) 35%, var(--line)); border-radius: 15px; background: var(--purple-soft); }
.lock-preview { padding: 26px; filter: blur(5px); opacity: .35; user-select: none; }
.lock-content { position: absolute; inset: 0; padding: 20px 24px; display: flex; align-items: center; justify-content: center; gap: 13px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--purple-soft) 92%, transparent)); }
.lock-content > span { font-size: 23px; color: var(--purple); }
.lock-content div { max-width: 320px; }
.lock-content strong { font-size: 14px; }
.lock-content p { margin: 4px 0 0; font-size: 11px; }
.lock-content a { padding: 9px 12px; border-radius: 9px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.checklist { margin: 22px 0; padding: 8px 18px; border: 1px solid var(--line); border-radius: 13px; }
.checklist label { padding: 12px 0; display: flex; gap: 11px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.checklist label:last-child { border-bottom: 0; }
.checklist input { accent-color: var(--primary); }
.article-end { margin-top: 45px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.article-end button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.pager { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pager a { padding: 15px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 11px; }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--primary); }
.pager small { color: var(--muted); }
.pager strong { color: var(--primary); font-size: 12px; }
.toc { grid-column: 3; position: sticky; top: var(--header); align-self: start; max-height: calc(100vh - var(--header)); padding: 58px 25px; overflow-y: auto; }
.toc > strong { display: block; margin-bottom: 12px; font-size: 12px; }
.toc a { position: relative; display: block; padding: 6px 0 6px 13px; color: var(--muted); font-size: 11px; border-left: 1px solid var(--line); }
.toc a:hover, .toc a.active { color: var(--primary); }
.toc a.active::before { content: ""; position: absolute; left: -1px; top: 4px; bottom: 4px; width: 2px; background: var(--primary); }
.toc hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* Question bank */
.bank-page { padding: 58px 0 90px; }
.bank-hero { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.bank-hero h1, .member-hero h1, .dashboard-head h1 { margin: 4px 0 12px; font-size: clamp(34px, 4.5vw, 50px); letter-spacing: -.055em; }
.bank-hero p, .member-hero p, .dashboard-head p { margin: 0; color: var(--text-2); line-height: 1.7; }
.bank-stat { display: flex; gap: 10px; }
.bank-stat div { min-width: 112px; padding: 14px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 13px; text-align: center; background: var(--surface); }
.bank-stat strong { font-size: 22px; }
.bank-stat span { color: var(--muted); font-size: 10px; }
.subject-tabs { margin: 38px 0 22px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.subject-tabs button { flex: none; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 750; }
.subject-tabs button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.bank-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
.bank-sidebar { align-self: start; padding: 20px; display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.bank-sidebar > strong { font-size: 14px; }
.bank-sidebar > label:not(.switch-line) { display: grid; gap: 7px; color: var(--text-2); font-size: 11px; }
.bank-sidebar select { width: 100%; height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 12px; }
.switch-line { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-size: 11px; }
.switch-line input { accent-color: var(--primary); }
.mini-report { padding-top: 16px; display: grid; gap: 7px; border-top: 1px solid var(--line); }
.mini-report span, .mini-report small { color: var(--muted); font-size: 10px; }
.mini-report strong { font-size: 20px; }
.mini-report i { height: 6px; overflow: hidden; border-radius: 10px; background: var(--bg-soft); }
.mini-report i b { display: block; height: 100%; background: var(--primary); }
.practice-area { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 16px 45px rgba(27, 60, 103, .06); }
.practice-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.practice-top > div:first-child { display: flex; align-items: center; gap: 10px; }
.practice-top span { font-weight: 850; }
.practice-top em { padding: 4px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 10px; font-style: normal; font-weight: 750; }
.timer { color: var(--muted); font: 13px ui-monospace, monospace; }
.question-card { display: none; padding: 30px 4px 10px; }
.question-card.active { display: block; }
.question-tag { color: var(--primary); font-size: 11px; font-weight: 800; }
.question-card h2 { margin: 13px 0 25px; font-size: 20px; line-height: 1.65; }
.options { display: grid; gap: 10px; }
.options button { min-height: 51px; padding: 10px 14px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); text-align: left; font-size: 13px; }
.options button:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--primary-soft); }
.options button span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-soft); font-size: 11px; font-weight: 850; }
.options button.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.options button.correct { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.options button.wrong { border-color: #e05252; background: color-mix(in srgb, #e05252 11%, var(--surface)); color: #d74a4a; }
.explanation { margin-top: 20px; padding: 18px; border-radius: 12px; background: var(--bg-soft); }
.answer-line { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.answer-line strong { color: var(--green); }
.answer-line span { color: var(--muted); }
.explanation p { color: var(--text-2); font-size: 12px; line-height: 1.75; }
.explanation > a { color: var(--primary); font-size: 11px; font-weight: 750; }
.practice-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.question-dots { margin-top: 22px; display: flex; justify-content: center; gap: 7px; }
.question-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line-strong); }
.question-dots button.active { width: 22px; border-radius: 8px; background: var(--primary); }

/* Membership */
.member-page { padding-bottom: 90px; background: linear-gradient(180deg, var(--bg-tint), var(--bg) 500px); }
.member-hero { padding: 76px 0 48px; text-align: center; }
.member-hero p { max-width: 670px; margin-inline: auto; }
.member-pills { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; align-items: stretch; }
.price-card { position: relative; padding: 27px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.price-card.popular { border: 2px solid var(--primary); box-shadow: 0 22px 55px rgba(36,104,229,.13); transform: translateY(-8px); }
.recommend { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 13px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 850; white-space: nowrap; }
.plan-title { font-size: 19px; font-weight: 900; }
.price-card > p { min-height: 40px; margin: 8px 0; color: var(--muted); font-size: 12px; }
.price { margin: 23px 0; display: flex; align-items: end; gap: 7px; }
.price strong { font-size: 35px; letter-spacing: -.04em; }
.price span { padding-bottom: 5px; color: var(--muted); font-size: 11px; }
.price-card ul { margin: 22px 0 0; padding: 18px 0 0; display: grid; gap: 13px; border-top: 1px solid var(--line); list-style: none; font-size: 12px; color: var(--text-2); }
.price-card li.disabled { color: var(--muted); }
.compare-section { padding: 90px 0 20px; }
.compare-table { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.compare-row { padding: 15px 20px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 10px; border-bottom: 1px solid var(--line); font-size: 12px; text-align: center; }
.compare-row:last-child { border-bottom: 0; }
.compare-row span { text-align: left; }
.compare-row.head { background: var(--bg-soft); font-weight: 850; }
.compare-row b { color: var(--text-2); font-weight: 650; }
.faq { padding-top: 80px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 19px 0; font-size: 14px; font-weight: 800; cursor: pointer; }
.faq details p { margin: -5px 0 20px; color: var(--text-2); font-size: 13px; line-height: 1.75; }

/* Dashboard */
.dashboard { padding: 58px 0 90px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.checkin-button { min-width: 150px; padding: 14px; display: grid; grid-template-columns: 35px 1fr; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; box-shadow: 0 10px 25px rgba(24,50,80,.06); }
.checkin-button > span { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: 900; }
.checkin-button b { font-size: 13px; }
.checkin-button small { color: var(--muted); font-size: 9px; }
.checkin-button.done { border-color: var(--green); background: var(--green-soft); }
.metric-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.metric-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.metric-grid span, .metric-grid em { color: var(--muted); font-size: 10px; font-style: normal; }
.metric-grid strong { display: block; margin: 10px 0 5px; font-size: 28px; }
.metric-grid strong small { font-size: 11px; }
.metric-grid i { height: 5px; margin-top: 13px; display: block; overflow: hidden; border-radius: 10px; background: var(--bg-soft); }
.metric-grid i b { display: block; height: 100%; background: var(--primary); }
.metric-grid i.orange b { background: var(--orange); }
.dashboard-grid { margin-top: 14px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.panel-title { margin-bottom: 17px; display: flex; justify-content: space-between; align-items: start; }
.panel-title strong { display: block; font-size: 14px; }
.panel-title span { color: var(--muted); font-size: 9px; }
.panel-title > a { color: var(--primary); font-size: 10px; font-weight: 750; }
.task { padding: 13px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task input { accent-color: var(--green); }
.task span { display: grid; gap: 4px; }
.task b { font-size: 12px; }
.task small { color: var(--muted); font-size: 9px; }
.task > a { padding: 6px 9px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 800; }
.task.done { opacity: .65; }
.task.done > em { color: var(--green); font-style: normal; }
.bar-list { display: grid; gap: 14px; }
.bar-list span { display: flex; justify-content: space-between; color: var(--text-2); font-size: 10px; }
.bar-list i { height: 6px; margin-top: 6px; display: block; overflow: hidden; border-radius: 10px; background: var(--bg-soft); }
.bar-list i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #6fa6ff); }
.weak-tip { margin-top: 18px; padding: 12px; display: flex; gap: 10px; border-radius: 10px; background: var(--orange-soft); }
.weak-tip > span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; font-weight: 900; }
.weak-tip p { margin: 0; color: var(--text-2); font-size: 9px; line-height: 1.55; }
.weak-tip strong { display: block; color: var(--text); font-size: 10px; }
.history-panel { margin-top: 14px; }
.history-table { font-size: 10px; }
.history-row { padding: 12px 8px; display: grid; grid-template-columns: 1.7fr .7fr .6fr .7fr; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.history-row:last-child { border-bottom: 0; }
.history-row.head { color: var(--muted); }
.history-row > span:first-child { display: grid; gap: 3px; }
.history-row b { color: var(--text); font-size: 11px; }
.history-row small { color: var(--muted); }
.history-row .good { color: var(--green); font-weight: 800; }
.history-row .warn { color: var(--orange); font-weight: 800; }

/* Footer + modal */
.site-footer { padding-top: 52px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.site-footer.compact { padding-top: 0; margin-top: 30px; }
.footer-grid { padding-bottom: 42px; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 35px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid p { max-width: 260px; color: var(--muted); font-size: 12px; }
.footer-grid strong { margin-bottom: 5px; font-size: 12px; }
.footer-grid > div > a:not(.brand) { color: var(--muted); font-size: 11px; }
.footer-grid > div > a:hover { color: var(--primary); }
.footer-bottom { padding: 18px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.search-modal { position: fixed; z-index: 200; inset: 0; }
.search-backdrop { position: absolute; inset: 0; background: rgba(7, 13, 24, .5); backdrop-filter: blur(4px); }
.search-panel { position: relative; width: min(600px, calc(100% - 30px)); max-height: 70vh; margin: 11vh auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.search-input-wrap { padding: 13px 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.search-input-wrap > span { font-size: 22px; }
.search-input-wrap input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search-results { max-height: 52vh; padding: 8px; overflow-y: auto; }
.search-result { padding: 12px; display: flex; gap: 12px; border-radius: 10px; }
.search-result.selected, .search-result:hover { background: var(--primary-soft); }
.search-result > span { color: var(--primary); }
.search-result div { display: grid; gap: 3px; }
.search-result strong { font-size: 13px; }
.search-result small { color: var(--primary); font-size: 9px; }
.search-result p { margin: 0; color: var(--muted); font-size: 10px; }
.search-panel > p { margin: 0; padding: 9px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.search-empty { padding: 40px 20px; color: var(--muted); font-size: 12px; text-align: center; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 11px 16px; border-radius: 10px; background: #172033; color: #fff; font-size: 12px; box-shadow: 0 15px 45px rgba(0,0,0,.25); }
.modal-open { overflow: hidden; }

@media (max-width: 1050px) {
  .search-trigger { width: 210px; }
  .desktop-nav a { padding-inline: 7px; font-size: 12px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 25px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .docs-grid { grid-template-columns: 230px minmax(0, 1fr); }
  .docs-sidebar { padding-left: 20px; }
  .docs-content { grid-column: 2; }
  .toc { display: none; }
}

@media (max-width: 820px) {
  :root { --header: 108px; }
  .page-shell { width: min(100% - 30px, 680px); }
  .desktop-nav, .search-trigger { display: none; }
  .site-header { height: var(--header); }
  .nav-shell { height: 61px; }
  .menu-button { display: none !important; }
  .mobile-nav { position: absolute; top: 61px; left: 0; right: 0; height: 47px; padding: 0 max(15px,calc((100vw - 680px)/2)); display: flex; align-items: stretch; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb,var(--bg) 94%,transparent); box-shadow: none; overflow-x: auto; scrollbar-width: none; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { min-width: 68px; flex: 1; padding: 14px 9px 11px; border-radius: 0; color: var(--text-2); font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; }
  .mobile-nav a:hover, .mobile-nav a.active { background: transparent; color: var(--primary); border-bottom: 2px solid var(--primary); }
  .hero { min-height: auto; padding-top: 50px; grid-template-columns: 1fr; }
  .hero-clear { gap: 35px; padding-bottom: 38px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .hero-tags { justify-content: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-clear .hero-copy { text-align: left; }
  .hero-clear .eyebrow, .hero-clear .hero-actions, .hero-clear .hero-tags { justify-content: flex-start; }
  .hero-clear .hero-copy > p { margin-inline: 0; }
  .stage-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; }
  .float-card.streak { left: 3%; }
  .float-card.score { right: 2%; }
  .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .feature-grid { padding-bottom: 55px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .update-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .credibility { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-grid { display: block; }
  .docs-sidebar { position: fixed; z-index: 90; top: var(--header); bottom: 0; left: 0; width: 275px; height: auto; transform: translateX(-105%); transition: transform .25s; box-shadow: var(--shadow); }
  .docs-sidebar.open { transform: translateX(0); }
  .docs-content { padding: 42px 22px 80px; }
  .prose { max-width: 680px; margin: auto; }
  .bank-layout { grid-template-columns: 1fr; }
  .bank-sidebar { display: none; }
  .price-card.popular { transform: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .nav-shell { width: calc(100% - 24px); }
  .brand { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .start-map { padding: 11px; border-radius: 17px; }
  .start-map > a { grid-template-columns: 32px 1fr; padding: 15px 6px; }
  .start-map > a > span { display: none; }
  .stage-section { padding-bottom: 55px; }
  .hero-visual { min-height: 340px; }
  .study-card { width: 96%; padding: 19px; }
  .float-card { display: none !important; }
  .quick-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .section-heading > a { display: none; }
  .update-list a { grid-template-columns: 43px 1fr; }
  .update-list > a > span { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .concept-grid { grid-template-columns: 1fr; }
  .ability-flow { grid-template-columns: 1fr; }
  .ability-flow > i { transform: rotate(90deg); text-align: center; }
  .prose table { display: block; overflow-x: auto; }
  .lock-content { flex-direction: column; text-align: center; }
  .pager { grid-template-columns: 1fr; }
  .bank-hero, .dashboard-head { align-items: flex-start; flex-direction: column; }
  .bank-stat { width: 100%; }
  .bank-stat div { flex: 1; }
  .practice-area { padding: 18px; }
  .question-card h2 { font-size: 17px; }
  .practice-actions { flex-wrap: wrap; }
  .practice-actions .button { flex: 1; padding-inline: 10px; }
  .member-hero { text-align: left; }
  .member-pills { justify-content: flex-start; }
  .compare-table { overflow-x: auto; }
  .compare-row { min-width: 560px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .history-table { overflow-x: auto; }
  .history-row { min-width: 600px; }
}

/* Library pages */
.library-page { padding: 62px 0 100px; }
.library-hero { padding-bottom: 38px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.library-hero h1 { max-width: 760px; margin: 7px 0 14px; font-size: clamp(36px, 4.8vw, 54px); line-height: 1.16; letter-spacing: -.055em; }
.library-hero p { max-width: 650px; margin: 0; color: var(--text-2); line-height: 1.75; }
.library-actions { display: flex; gap: 10px; flex: none; }
.filter-panel { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filter-head > strong { font-size: 13px; }
.library-search { width: min(330px, 100%); height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.library-search span { color: var(--muted); }
.library-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.filter-chips { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chips button, .view-switch button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text-2); font-size: 11px; }
.filter-chips button:hover, .filter-chips button.active, .view-switch button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 750; }
.library-toolbar { margin: 28px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.library-toolbar > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.library-toolbar strong { font-size: 13px; }
.library-toolbar strong b { color: var(--primary); }
.library-toolbar span { color: var(--muted); font-size: 10px; }
.view-switch { display: flex; gap: 5px; }
.exam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.exam-card { min-width: 0; padding: 15px; display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: .2s; }
.exam-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 34%, var(--line)); }
.exam-cover { min-height: 126px; padding: 14px 10px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 11px; background: linear-gradient(155deg, #1b60d8, #56a8f8); color: white; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.exam-cover span { font: 800 11px ui-monospace, monospace; opacity: .8; }
.exam-cover b { font-size: 19px; }
.exam-cover small { font-size: 9px; opacity: .85; }
.exam-info { min-width: 0; }
.exam-info > em { color: var(--primary); font-size: 9px; font-style: normal; font-weight: 800; }
.exam-info h3 { height: 58px; margin: 8px 0; overflow: hidden; font-size: 13px; line-height: 1.5; }
.exam-info > div { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 9px; }
.exam-info > button { margin-top: 15px; padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 10px; font-weight: 800; }
.feature-strip { margin-top: 42px; padding: 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--bg-soft); }
.feature-strip > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.feature-strip span { grid-row: span 2; color: var(--primary); font: 800 11px ui-monospace, monospace; }
.feature-strip b { font-size: 12px; }
.feature-strip p { margin: 0; color: var(--muted); font-size: 9px; }
.empty-state { width: 100%; padding: 48px 20px; color: var(--muted); text-align: center; font-size: 12px; }

.essay-hero { align-items: center; }
.essay-count { min-width: 145px; padding: 18px; display: grid; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-align: center; }
.essay-count strong { color: var(--primary); font-size: 31px; }
.essay-count span { color: var(--muted); font-size: 10px; }
.essay-layout { margin-top: 22px; display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 17px; }
.essay-grid { display: grid; gap: 10px; }
.essay-card { position: relative; padding: 18px; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.essay-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.essay-year { display: grid; place-items: center; align-content: center; height: 70px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 20px; font-weight: 900; }
.essay-year small { margin-top: 3px; font-size: 9px; }
.essay-card > div:nth-child(2) > span { color: var(--muted); font-size: 9px; }
.essay-card h3 { margin: 6px 0; font-size: 14px; }
.essay-card p { margin: 0; color: var(--text-2); font-size: 10px; line-height: 1.6; }
.essay-card button { margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 10px; font-weight: 800; }
.essay-card > em { align-self: start; padding: 4px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 9px; font-style: normal; font-weight: 800; }
.essay-card > em.vip { background: var(--purple-soft); color: var(--purple); }
.essay-guide { align-self: start; position: sticky; top: calc(var(--header) + 20px); padding: 23px; border-radius: 17px; background: linear-gradient(150deg,#174fae,#2775ec); color: white; }
.essay-guide > span { font-size: 10px; opacity: .75; }
.essay-guide h2 { margin: 9px 0 25px; font-size: 23px; }
.essay-guide ol { padding: 0; display: grid; gap: 17px; list-style: none; }
.essay-guide li { display: grid; grid-template-columns: auto 1fr; gap: 9px; }
.essay-guide li b { font-size: 10px; }
.essay-guide li p { margin: 0; color: rgba(255,255,255,.75); font-size: 10px; line-height: 1.55; }
.essay-guide > a { display: inline-block; margin-top: 22px; font-size: 10px; font-weight: 800; }

/* App dialogs */
.app-dialog { position: fixed; z-index: 220; inset: 0; display: grid; place-items: center; padding: 18px; }
.app-dialog[hidden] { display: none; }
.dialog-backdrop { position: absolute; inset: 0; background: rgba(7,13,24,.55); backdrop-filter: blur(4px); }
.dialog-card { position: relative; width: min(560px,100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 30px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface-raised); box-shadow: 0 35px 100px rgba(0,0,0,.28); }
.app-dialog.wide .dialog-card { width: min(760px,100%); }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--bg-soft); color: var(--text-2); font-size: 20px; }
.dialog-kicker { color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.dialog-card h2 { margin: 10px 32px 8px 0; font-size: 23px; line-height: 1.35; }
.dialog-card > p { margin: 0; color: var(--text-2); font-size: 12px; }
.mode-grid { margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-grid label { padding: 15px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 12px; }
.mode-grid label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.mode-grid input { position: absolute; opacity: 0; }
.mode-grid b { font-size: 12px; }
.mode-grid small { color: var(--muted); font-size: 9px; }
.dialog-note { padding: 12px; border-radius: 9px; background: var(--bg-soft); color: var(--muted); font-size: 10px; line-height: 1.6; }
.dialog-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 9px; }
.dialog-title-line { display: flex; justify-content: space-between; gap: 20px; }
.dialog-title-line em { height: fit-content; padding: 5px 8px; border-radius: 7px; background: var(--purple-soft); color: var(--purple); font-size: 9px; font-style: normal; font-weight: 800; }
.essay-dialog-body { margin-top: 22px; display: grid; gap: 12px; }
.essay-dialog-body section { padding: 16px; border: 1px solid var(--line); border-radius: 11px; }
.essay-dialog-body strong { font-size: 12px; }
.essay-dialog-body p, .essay-dialog-body li { color: var(--text-2); font-size: 11px; line-height: 1.7; }
.essay-dialog-body ol { margin-bottom: 0; padding-left: 18px; }
.essay-dialog-body .answer-preview { background: var(--green-soft); border-color: color-mix(in srgb,var(--green) 25%,var(--line)); }

/* Tool hub */
.tools-body { background: var(--bg-soft); }
.tool-shell { min-height: calc(100vh - var(--header)); display: grid; grid-template-columns: minmax(230px,calc((100vw - 1160px)/2 + 230px)) minmax(0,930px) 1fr; }
.tool-sidebar { position: sticky; top: var(--header); height: calc(100vh - var(--header)); padding: 26px 22px 60px max(22px,calc((100vw - 1160px)/2)); overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); }
.tool-side-title { margin-bottom: 23px; display: grid; gap: 3px; }
.tool-side-title span { font-size: 16px; font-weight: 900; }
.tool-side-title small { color: var(--muted); font-size: 9px; }
.tool-sidebar section { margin-bottom: 22px; display: grid; gap: 3px; }
.tool-sidebar section > strong { margin: 0 8px 7px; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.tool-sidebar button { padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 11px; text-align: left; }
.tool-sidebar button:hover, .tool-sidebar button.active { background: var(--primary-soft); color: var(--primary); font-weight: 750; }
.tool-content { grid-column: 2; min-width: 0; padding: 48px 42px 100px; }
.tool-panel { min-height: 650px; }
.tool-panel[hidden] { display: none; }
.tool-heading { margin-bottom: 28px; }
.tool-heading > span { color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.tool-heading h1 { margin: 8px 0 10px; font-size: clamp(31px,4vw,43px); letter-spacing: -.05em; }
.tool-heading p { margin: 0; color: var(--text-2); font-size: 13px; }
.dictionary-search { padding: 13px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dictionary-search > div { height: 42px; flex: 1; padding: 0 13px; display: flex; align-items: center; gap: 9px; border-radius: 9px; background: var(--bg-soft); }
.dictionary-search input[type="text"], .dictionary-search > div input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.dictionary-search > label { flex: none; color: var(--text-2); font-size: 10px; }
.dictionary-search input[type="radio"] { accent-color: var(--primary); }
.dictionary-results { margin-top: 13px; display: grid; gap: 9px; }
.dictionary-results article { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.dictionary-results article div > span { color: var(--primary); font-size: 9px; font-weight: 800; }
.dictionary-results h3 { margin: 4px 0 5px; font-size: 17px; }
.dictionary-results p { margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.6; }
.dictionary-results button, .wordbook button { flex: none; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--primary); font-size: 9px; }
.word-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.word-mode-grid article { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.word-mode-grid article:first-child { border-color: var(--primary); box-shadow: 0 10px 25px rgba(36,104,229,.08); }
.word-mode-grid article > span { font-size: 24px; }
.word-mode-grid b { display: block; margin-top: 14px; font-size: 14px; }
.word-mode-grid p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.word-mode-grid em { position: absolute; top: 13px; right: 13px; color: var(--primary); font-size: 9px; font-style: normal; }
.word-quiz { margin-top: 15px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.word-quiz > small { color: var(--muted); }
.word-quiz h3 { margin: 15px 0 22px; font-size: 18px; line-height: 1.65; }
.word-quiz > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.word-quiz > div button { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.word-quiz button.correct { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.word-quiz button.wrong { border-color: #d95151; background: #fff0f0; color: #d95151; }
.word-quiz > p { min-height: 32px; color: var(--text-2); font-size: 11px; }
.word-quiz > p button { margin-left: 8px; border: 0; background: transparent; color: var(--primary); font-weight: 800; }
.highword-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.highword-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.highword-grid b { font-size: 17px; }
.highword-grid span { float: right; padding: 4px 6px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); font-size: 8px; }
.highword-grid p { margin: 16px 0 0; color: var(--text-2); font-size: 11px; line-height: 1.7; }
.wordbook { display: grid; gap: 9px; }
.wordbook article { padding: 16px; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.wordbook b { font-size: 14px; }
.wordbook p { margin: 0; color: var(--text-2); font-size: 10px; }
.timer-layout, .checkin-layout { display: grid; grid-template-columns: 1fr 220px; gap: 13px; }
.timer-card { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.timer-form { display: grid; grid-template-columns: .8fr 1.4fr .7fr; gap: 10px; }
.timer-form label, .checkin-form > label { display: grid; gap: 6px; color: var(--text-2); font-size: 9px; }
.timer-form input, .timer-form select, .checkin-form input, .checkin-form textarea, .checkin-form select, .math-toolbar select, .math-problems input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); outline: 0; }
.timer-form input, .timer-form select, .checkin-form input, .math-toolbar select { height: 39px; padding: 0 10px; }
.timer-display { padding: 46px 0 12px; display: grid; place-items: center; gap: 13px; }
.timer-display > span { color: var(--green); font-size: 10px; font-weight: 800; }
.timer-display > strong { font: 750 clamp(45px,7vw,68px) ui-monospace,monospace; letter-spacing: .03em; }
.timer-display > div { display: flex; gap: 9px; }
.timer-tips, .checkin-stats { padding: 21px; border-radius: 16px; background: linear-gradient(145deg,#174fae,#2d78eb); color: white; }
.timer-tips b { font-size: 13px; }
.timer-tips p { margin: 17px 0 0; color: rgba(255,255,255,.76); font-size: 10px; line-height: 1.65; }
.tool-subsection { margin-top: 25px; }
.tool-subsection > div:first-child { margin-bottom: 11px; display: flex; justify-content: space-between; align-items: end; }
.tool-subsection h2 { margin: 0; font-size: 16px; }
.tool-subsection > div > span { color: var(--muted); font-size: 9px; }
.timer-log { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; }
.timer-log > div:not(.empty-state) { padding: 13px 15px; display: grid; grid-template-columns: 1fr auto 90px; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.timer-log > div:last-child { border-bottom: 0; }
.timer-log span { display: grid; }
.timer-log b { font-size: 11px; }
.timer-log small, .timer-log time { color: var(--muted); font-size: 9px; }
.timer-log strong { font: 11px ui-monospace,monospace; }
.checkin-form { padding: 22px; display: grid; gap: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.checkin-form textarea { min-height: 120px; padding: 12px; resize: vertical; }
.checkin-form > label > div { display: flex; align-items: center; gap: 8px; }
.checkin-form > label > div input { max-width: 170px; }
.checkin-form fieldset { margin: 0; padding: 12px; display: flex; flex-wrap: wrap; gap: 10px 18px; border: 1px solid var(--line); border-radius: 10px; }
.checkin-form legend { color: var(--muted); font-size: 9px; }
.checkin-form fieldset label { color: var(--text-2); font-size: 10px; }
.checkin-form fieldset input { width: auto; height: auto; accent-color: var(--primary); }
.checkin-stats { display: grid; align-content: start; gap: 13px; }
.checkin-stats > div { padding-bottom: 13px; display: grid; border-bottom: 1px solid rgba(255,255,255,.16); }
.checkin-stats strong { font-size: 27px; }
.checkin-stats span { font-size: 9px; opacity: .7; }
.checkin-stats p { color: rgba(255,255,255,.75); font-size: 9px; line-height: 1.7; }
.checkin-log { display: grid; gap: 8px; }
.checkin-log article { padding: 14px; display: grid; grid-template-columns: 90px 1fr; gap: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.checkin-log time { color: var(--muted); font: 10px ui-monospace,monospace; }
.checkin-log b { font-size: 11px; }
.checkin-log p { margin: 4px 0 0; color: var(--text-2); font-size: 10px; }
.math-toolbar { margin-bottom: 12px; padding: 14px; display: flex; align-items: end; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.math-toolbar label { flex: 1; display: grid; gap: 6px; color: var(--text-2); font-size: 9px; }
.math-card { padding: 27px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.math-problems { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; }
.math-problems label { padding: 14px; display: grid; gap: 10px; border-radius: 11px; background: var(--bg-soft); text-align: center; }
.math-problems span { font: 700 14px ui-monospace,monospace; }
.math-problems input { height: 42px; text-align: center; font: 700 15px ui-monospace,monospace; }
.math-problems input.correct { border-color: var(--green); background: var(--green-soft); }
.math-problems input.wrong { border-color: #d95151; background: #fff0f0; }
.math-actions { margin-top: 18px; display: flex; align-items: center; gap: 16px; }
.math-actions strong { color: var(--text-2); font-size: 11px; }
.reading-search { height: 44px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.reading-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.reading-list { margin-top: 12px; display: grid; gap: 9px; }
.reading-list article { padding: 18px; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.reading-list time { color: var(--primary); font: 800 13px ui-monospace,monospace; }
.reading-list span { color: var(--primary); font-size: 8px; }
.reading-list h2 { margin: 4px 0; font-size: 14px; }
.reading-list p { margin: 0; color: var(--text-2); font-size: 10px; }
.reading-list button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--primary); font-size: 9px; }
.news-date { padding: 18px; display: flex; align-items: center; justify-content: center; gap: 25px; border-radius: 14px; background: linear-gradient(135deg,var(--primary),#5aa8f4); color: white; }
.news-date button { border: 0; background: transparent; color: white; font-size: 18px; }
.news-date div { display: grid; text-align: center; }
.news-date b { font-size: 16px; }
.news-date span { font-size: 9px; opacity: .75; }
.news-list { margin-top: 13px; display: grid; gap: 9px; }
.news-list article { padding: 18px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.news-list article > span { color: var(--primary); font: 800 11px ui-monospace,monospace; }
.news-list b { color: var(--primary); font-size: 9px; }
.news-list h2 { margin: 5px 0; font-size: 14px; }
.news-list p { margin: 0; color: var(--text-2); font-size: 10px; }
.brief-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.brief-grid article { min-height: 150px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.brief-grid span { color: var(--primary); font-size: 9px; font-weight: 800; }
.brief-grid h2 { margin: 22px 0 9px; font-size: 18px; }
.brief-grid p { margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.65; }
.hot-tabs { margin-bottom: 11px; display: flex; gap: 7px; }
.hot-tabs button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 10px; }
.hot-tabs button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.hot-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.hot-panel[hidden] { display: none; }
.hot-panel ol { margin: 0; padding: 0; list-style: none; }
.hot-panel li { padding: 17px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.hot-panel li:last-child { border-bottom: 0; }
.hot-panel li b { color: var(--primary); font: 800 12px ui-monospace,monospace; }
.hot-panel li span { font-size: 12px; }
.hot-panel li em { color: var(--muted); font-size: 9px; font-style: normal; }

@media (max-width: 1050px) {
  .exam-grid { grid-template-columns: repeat(2,1fr); }
  .tool-shell { grid-template-columns: 210px minmax(0,1fr); }
  .tool-sidebar { padding-left: 18px; }
  .tool-content { grid-column: 2; }
}
@media (max-width: 820px) {
  .library-hero { align-items: flex-start; flex-direction: column; }
  .exam-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: repeat(2,1fr); }
  .essay-layout { grid-template-columns: 1fr; }
  .essay-guide { position: static; }
  .tool-shell { display: block; }
  .tool-sidebar { position: static; width: auto; height: auto; padding: 15px; display: flex; gap: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-side-title { display: none; }
  .tool-sidebar section { margin: 0; display: flex; gap: 5px; }
  .tool-sidebar section > strong { display: none; }
  .tool-sidebar button { flex: none; padding: 8px 10px; border: 1px solid var(--line); }
  .tool-content { padding: 38px 20px 80px; }
  .timer-layout, .checkin-layout { grid-template-columns: 1fr; }
  .timer-form { grid-template-columns: 1fr 1fr; }
  .math-problems { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 560px) {
  .filter-head { align-items: stretch; flex-direction: column; }
  .library-search { width: 100%; }
  .library-toolbar span, .view-switch { display: none; }
  .exam-card { grid-template-columns: 74px 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .essay-card { grid-template-columns: 58px 1fr; }
  .essay-card > em { position: absolute; top: 12px; right: 12px; }
  .essay-year { height: 58px; font-size: 16px; }
  .mode-grid { grid-template-columns: 1fr; }
  .dialog-card { padding: 24px 18px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .dictionary-search { align-items: stretch; flex-wrap: wrap; }
  .dictionary-search > div { width: 100%; flex-basis: 100%; }
  .dictionary-results article { align-items: flex-start; flex-direction: column; }
  .word-mode-grid, .highword-grid, .brief-grid { grid-template-columns: 1fr; }
  .word-quiz { padding: 20px; }
  .word-quiz > div { grid-template-columns: 1fr; }
  .wordbook article { grid-template-columns: 1fr auto; }
  .wordbook p { grid-column: 1 / -1; grid-row: 2; }
  .timer-form { grid-template-columns: 1fr; }
  .timer-display > strong { font-size: 42px; }
  .math-problems { grid-template-columns: repeat(2,1fr); }
  .reading-list article { grid-template-columns: 55px 1fr; }
  .reading-list article button { grid-column: 2; justify-self: start; }
  .hot-panel li { grid-template-columns: 24px 1fr; }
  .hot-panel li em { grid-column: 2; }
}

/* Knowledge catalog, account and policy */
.catalog-page { padding: 70px 0 100px; }
.catalog-hero { max-width: 820px; text-align: center; margin: auto; }
.catalog-hero h1 { margin: 10px 0 16px; font-size: clamp(39px,5.8vw,62px); line-height: 1.12; letter-spacing: -.06em; }
.catalog-hero p { max-width: 690px; margin: 0 auto; color: var(--text-2); font-size: 15px; line-height: 1.8; }
.catalog-hero > div { margin-top: 27px; display: flex; justify-content: center; gap: 10px; }
.catalog-stats { margin: 55px 0 20px; padding: 21px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 17px; background: var(--bg-soft); }
.catalog-stats div { display: grid; gap: 4px; text-align: center; border-right: 1px solid var(--line); }
.catalog-stats div:last-child { border-right: 0; }
.catalog-stats strong { color: var(--primary); font-size: 23px; }
.catalog-stats span { color: var(--muted); font-size: 9px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.subject-card { --subject: var(--primary); padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.subject-card.green { --subject: var(--green); }
.subject-card.purple { --subject: var(--purple); }
.subject-card.orange { --subject: var(--orange); }
.subject-card.red { --subject: #d85262; }
.subject-card.cyan { --subject: #1a98a7; }
.subject-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.subject-head > span { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 13px; background: color-mix(in srgb,var(--subject) 12%,var(--surface)); font-size: 23px; }
.subject-head em { color: var(--subject); font-size: 8px; font-style: normal; font-weight: 800; }
.subject-head h2 { margin: 3px 0 0; font-size: 19px; }
.subject-head > b { padding: 5px 7px; border-radius: 7px; background: var(--bg-soft); color: var(--muted); font-size: 9px; }
.subject-card > p { margin: 18px 0; color: var(--text-2); font-size: 11px; line-height: 1.7; }
.subject-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.subject-card li { border-bottom: 1px solid var(--line); }
.subject-card li:last-child { border-bottom: 0; }
.subject-card li a { padding: 11px 2px; display: flex; align-items: center; justify-content: space-between; color: var(--text-2); font-size: 11px; }
.subject-card li a:hover { color: var(--subject); }
.subject-card li span { color: var(--muted); font-size: 8px; }
.path-section { margin-top: 70px; }
.path-section > div { margin-bottom: 18px; }
.path-section h2 { margin: 0; font-size: 29px; }
.path-section ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; list-style: none; }
.path-section li { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.path-section li b { color: var(--primary); font: 800 10px ui-monospace,monospace; }
.path-section li span { display: block; margin: 20px 0 7px; font-size: 13px; font-weight: 850; }
.path-section li p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.inline-links { margin-top: 16px; display: flex; gap: 8px; }
.inline-links a { padding: 6px 9px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 750; }
.account-strip { margin-bottom: 25px; padding: 13px 15px; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-soft); }
.account-strip > div { display: flex; align-items: center; gap: 10px; }
.account-strip span { padding: 4px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 850; }
.account-strip strong { font-size: 10px; }
.account-strip form { display: flex; gap: 7px; }
.account-strip input { width: 220px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 10px; }
.account-strip button { height: 34px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--primary); color: white; font-size: 9px; font-weight: 800; }
.checkout-price { margin: 22px 0; display: flex; align-items: end; gap: 10px; }
.checkout-price strong { font-size: 35px; }
.checkout-price span { padding-bottom: 6px; color: var(--muted); font-size: 9px; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.payment-methods label { padding: 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; }
.payment-methods label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.payment-methods input { accent-color: var(--primary); }
.fake-qr { width: 170px; height: 170px; margin: 22px auto; padding: 14px; display: grid; place-items: center; align-content: center; gap: 8px; border: 8px solid var(--text); background: repeating-conic-gradient(var(--text) 0 25%,var(--surface) 0 50%) 0/22px 22px; text-align: center; }
.fake-qr span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--primary); color: white; font-size: 20px; font-weight: 900; }
.fake-qr p { margin: 0; padding: 5px; background: var(--surface); color: var(--text); font-size: 8px; line-height: 1.4; }
.checkout-note { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; text-align: center; }
.legal-page { padding: 60px 0 100px; display: grid; grid-template-columns: 180px minmax(0,740px); justify-content: center; gap: 45px; }
.legal-page > aside { position: sticky; top: calc(var(--header) + 30px); align-self: start; padding: 12px; display: grid; border: 1px solid var(--line); border-radius: 12px; }
.legal-page > aside a { padding: 9px 10px; border-radius: 7px; color: var(--text-2); font-size: 10px; }
.legal-page > aside a:hover { background: var(--primary-soft); color: var(--primary); }

@media (max-width: 820px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .path-section ol { grid-template-columns: repeat(2,1fr); }
  .account-strip { align-items: stretch; flex-direction: column; }
  .legal-page { grid-template-columns: 1fr; }
  .legal-page > aside { position: static; grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 560px) {
  .catalog-hero { text-align: left; }
  .catalog-hero > div { flex-direction: column; }
  .catalog-stats { grid-template-columns: repeat(2,1fr); gap: 15px 0; }
  .catalog-stats div:nth-child(2) { border-right: 0; }
  .path-section ol { grid-template-columns: 1fr; }
  .account-strip form { flex-direction: column; }
  .account-strip input { width: 100%; }
  .legal-page > aside { grid-template-columns: repeat(2,1fr); }
}

/* Resources, updates and saved targets */
.target-panel { margin-bottom: 24px; padding: 16px; display: grid; grid-template-columns: 1fr 260px; gap: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.target-panel form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 9px; }
.target-panel label { display: grid; gap: 6px; color: var(--text-2); font-size: 9px; }
.target-panel select, .target-panel input { height: 37px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.target-panel form button { height: 37px; padding: 0 13px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 800; }
.target-panel > div { padding-left: 18px; display: grid; align-content: center; border-left: 1px solid var(--line); }
.target-panel > div > span, .target-panel > div > small { color: var(--muted); font-size: 9px; }
.target-panel > div > strong { font-size: 19px; }
.essay-draft { width: 100%; min-height: 110px; margin-top: 12px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); font: inherit; line-height: 1.7; }
.draft-save { margin-top: 9px; padding: 8px 11px; border: 0; border-radius: 8px; background: var(--primary); color: white; font-size: 9px; font-weight: 800; }
.resource-page, .update-page { padding: 68px 0 100px; }
.resource-hero { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.resource-hero h1, .update-hero h1 { max-width: 780px; margin: 8px 0 14px; font-size: clamp(38px,5vw,55px); line-height: 1.15; letter-spacing: -.055em; }
.resource-hero p, .update-hero p { max-width: 670px; margin: 0; color: var(--text-2); line-height: 1.75; }
.resource-badge { min-width: 180px; padding: 18px; display: flex; align-items: center; gap: 10px; border: 1px solid color-mix(in srgb,var(--green) 28%,var(--line)); border-radius: 14px; background: var(--green-soft); }
.resource-badge b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--green); color: white; }
.resource-badge span { color: var(--green); font-size: 10px; font-weight: 750; }
.resource-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.resource-grid article { padding: 18px; display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.file-icon { display: grid; place-items: center; width: 52px; height: 58px; border-radius: 8px 8px 13px 8px; background: var(--primary-soft); color: var(--primary); font: 900 11px ui-monospace,monospace; }
.file-icon.green { background: var(--green-soft); color: var(--green); }
.file-icon.purple { background: var(--purple-soft); color: var(--purple); }
.file-icon.orange { background: var(--orange-soft); color: var(--orange); }
.resource-grid span { color: var(--primary); font-size: 8px; font-weight: 800; }
.resource-grid h2 { margin: 5px 0; font-size: 14px; }
.resource-grid p { margin: 0; color: var(--text-2); font-size: 10px; line-height: 1.55; }
.resource-grid small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.resource-grid article > a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--primary); font-size: 9px; font-weight: 800; }
.resource-policy { margin-top: 35px; padding: 24px; display: flex; justify-content: space-between; gap: 35px; border-radius: 16px; background: linear-gradient(140deg,#184ea5,#2c79ed); color: white; }
.resource-policy h2 { margin: 0 0 7px; font-size: 18px; }
.resource-policy p { max-width: 500px; margin: 0; color: rgba(255,255,255,.73); font-size: 10px; line-height: 1.7; }
.resource-policy ol { margin: 0; padding: 0; display: flex; gap: 20px; list-style: none; }
.resource-policy li { display: grid; gap: 9px; }
.resource-policy li b { font: 800 9px ui-monospace,monospace; opacity: .55; }
.resource-policy li span { font-size: 10px; font-weight: 750; }
.update-hero { max-width: 820px; }
.update-columns { margin-top: 42px; display: grid; grid-template-columns: 1fr 330px; gap: 25px; }
.timeline { display: grid; }
.timeline article { padding: 0 0 36px; display: grid; grid-template-columns: 110px 1fr; gap: 25px; }
.timeline time { color: var(--muted); font: 10px ui-monospace,monospace; }
.timeline article > div { position: relative; padding: 0 0 0 25px; border-left: 1px solid var(--line); }
.timeline article > div::before { content: ""; position: absolute; top: 0; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.timeline span { color: var(--primary); font-size: 9px; font-weight: 800; }
.timeline h2 { margin: 7px 0 12px; font-size: 18px; }
.timeline ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 10px; line-height: 1.9; }
.feedback-card { align-self: start; position: sticky; top: calc(var(--header) + 25px); padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.feedback-card > span { color: var(--primary); font-size: 9px; font-weight: 850; }
.feedback-card h2 { margin: 7px 0; font-size: 20px; }
.feedback-card > p { color: var(--text-2); font-size: 10px; line-height: 1.6; }
.feedback-card form { margin-top: 18px; display: grid; gap: 13px; }
.feedback-card label { display: grid; gap: 6px; color: var(--text-2); font-size: 9px; }
.feedback-card select, .feedback-card textarea { border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); }
.feedback-card select { height: 38px; padding: 0 9px; }
.feedback-card textarea { min-height: 120px; padding: 10px; resize: vertical; }
.feedback-card > small { display: block; margin-top: 12px; color: var(--muted); font-size: 8px; }

@media (max-width: 820px) {
  .target-panel { grid-template-columns: 1fr; }
  .target-panel > div { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .resource-hero { align-items: flex-start; flex-direction: column; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-policy { flex-direction: column; }
  .update-columns { grid-template-columns: 1fr; }
  .feedback-card { position: static; }
}
@media (max-width: 560px) {
  .target-panel form { grid-template-columns: 1fr; }
  .resource-grid article { grid-template-columns: 48px 1fr; }
  .resource-grid article > a { grid-column: 2; justify-self: start; }
  .resource-policy ol { display: grid; grid-template-columns: repeat(2,1fr); }
  .timeline article { grid-template-columns: 1fr; gap: 8px; }
}

/* Reference-inspired homepage: clear hero, compact benefits and direct navigation */
.home-shell { width: min(1060px, calc(100% - 48px)); margin-inline: auto; }
.reference-home { padding-bottom: 88px; }
.reference-hero { min-height: 410px; padding: 48px 0 36px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.reference-title { margin-bottom: 14px; }
.reference-title strong { display: block; color: var(--primary); font-size: clamp(34px, 3.6vw, 46px); line-height: .95; letter-spacing: -.055em; }
.reference-title h1 { margin: 7px 0 0; font-size: clamp(37px, 4vw, 49px); line-height: 1.08; letter-spacing: -.055em; }
.reference-copy > p { max-width: 520px; margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.75; }
.pill-actions { margin-top: 22px; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; }
.pill-actions a { min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; transition: transform .18s, box-shadow .18s; }
.pill-actions a:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(35, 75, 125, .12); }
.pill-actions a.green { background: var(--green-soft); color: var(--green); }
.pill-actions a.pink { background: #ffedf1; color: #d85873; }
.pill-actions a.purple { background: var(--purple-soft); color: var(--purple); }
.mascot-zone { position: relative; min-height: 320px; display: grid; place-items: center; isolation: isolate; }
.mascot-glow { position: absolute; z-index: -1; width: 410px; height: 300px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(170, 216, 139, .5) 0%, rgba(198, 229, 176, .25) 42%, transparent 72%); filter: blur(5px); }
.mascot-zone img { width: min(330px, 82%); height: auto; display: block; filter: drop-shadow(0 16px 22px rgba(41, 70, 65, .12)); }
.mascot-zone > span { position: absolute; bottom: 8px; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--green) 18%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--green); font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.reference-features { padding: 14px 0 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-bottom: 1px solid var(--line); }
.reference-features article { min-height: 158px; padding: 20px; border: 1px solid color-mix(in srgb, var(--line) 72%, transparent); border-radius: 12px; background: var(--bg-soft); }
.reference-features article > span { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 15px; border-radius: 9px; background: var(--surface); color: var(--primary); font-size: 17px; box-shadow: 0 6px 16px rgba(39, 62, 91, .06); }
.reference-features article:nth-child(2) > span { color: var(--orange); }
.reference-features article:nth-child(3) > span { color: var(--purple); }
.reference-features h2 { margin: 0 0 7px; font-size: 14px; line-height: 1.35; }
.reference-features p { margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.65; }
.reference-quick { padding-top: 28px; }
.reference-section-title { margin-bottom: 17px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.reference-section-title h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.reference-section-title span { color: var(--muted); font-size: 11px; }
.tool-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-entry { min-width: 0; min-height: 132px; padding: 15px; display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: start; gap: 4px 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 7px 22px rgba(31, 56, 89, .045); transition: transform .18s, border-color .18s, box-shadow .18s; }
.tool-entry:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 32%, var(--line)); box-shadow: 0 12px 28px rgba(31, 56, 89, .09); }
.entry-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 20px; font-weight: 900; }
.entry-icon.lilac { background: var(--purple-soft); color: var(--purple); }
.entry-icon.yellow { background: #fff5d7; color: #bf8421; }
.entry-icon.rose { background: #ffedf1; color: #d45c76; }
.entry-icon.blue { background: var(--primary-soft); color: var(--primary); }
.entry-icon.brown { background: #f4ede8; color: #8c664d; }
.entry-icon.gray { background: #eef1f5; color: #5d6878; }
.tool-entry h3 { margin: 2px 0 5px; font-size: 14px; line-height: 1.25; }
.tool-entry p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.tool-entry em { grid-column: 1 / -1; align-self: end; margin-top: 8px; padding-top: 9px; display: flex; gap: 6px; border-top: 1px solid var(--line); font-style: normal; }
.tool-entry em i { padding: 4px 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 8px; font-style: normal; font-weight: 800; }

@media (max-width: 820px) {
  .home-shell { width: min(100% - 32px, 680px); }
  .reference-hero { min-height: 0; padding: 44px 0 28px; grid-template-columns: 1fr; gap: 16px; }
  .reference-copy { text-align: center; }
  .reference-copy > p { margin-inline: auto; }
  .pill-actions { justify-content: center; }
  .mascot-zone { min-height: 250px; }
  .mascot-glow { width: 330px; height: 230px; }
  .mascot-zone img { width: min(255px, 70vw); }
  .reference-features { grid-template-columns: 1fr; }
  .reference-features article { min-height: 0; display: grid; grid-template-columns: 36px 1fr; gap: 0 13px; }
  .reference-features article > span { grid-row: 1 / 3; margin: 0; }
  .reference-features h2 { align-self: end; }
  .tool-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .reference-home { padding-bottom: 56px; }
  .reference-hero { padding-top: 35px; }
  .reference-title strong { font-size: 32px; }
  .reference-title h1 { font-size: 37px; }
  .reference-copy > p { font-size: 14px; }
  .pill-actions { grid-template-columns: repeat(2, 1fr); }
  .pill-actions a { padding-inline: 10px; }
  .mascot-zone { min-height: 225px; }
  .mascot-zone > span { bottom: 0; }
  .reference-section-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .tool-card-grid { grid-template-columns: 1fr; }
}
.kb-sec { margin: 13px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.kb-sec > summary { padding: 12px 16px; cursor: pointer; font-weight: 750; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 9px; user-select: none; }
.kb-sec > summary::-webkit-details-marker { display: none; }
.kb-sec > summary::before { content: '▸'; color: var(--primary); font-size: 13px; flex: none; }
.kb-sec[open] > summary::before { content: '▾'; }
.kb-sec > summary:hover { background: var(--bg-soft); }
.kb-body { padding: 2px 16px 14px; }
.kb-body > p { margin: 9px 0; }
.kb-body > ul { margin: 9px 0; padding-left: 20px; }
.kb-body > ul > li { margin: 5px 0; }
.kb-sec .kb-sec { margin: 10px 0; background: var(--bg-soft); }
.kb-sec .kb-sec > summary { font-size: 14px; font-weight: 700; padding: 9px 14px; }
.kb-sec .kb-sec .kb-sec { background: var(--surface); }
