:root {
  --forest-950: #0b2118;
  --forest-900: #102f21;
  --forest-800: #173d2a;
  --forest-700: #23553b;
  --forest-100: #e3eee7;
  --navy-900: #142a42;
  --navy-700: #2c526f;
  --scarlet-700: #9e2433;
  --scarlet-600: #b12b3c;
  --gold-600: #a9791d;
  --gold-500: #c09a4a;
  --gold-100: #f5ecd7;
  --ink-900: #17231d;
  --ink-700: #3f5047;
  --ink-600: #5a6a61;
  --ink-500: #748079;
  --line-300: #cdd8d1;
  --line-200: #dde5e0;
  --line-100: #ebf0ed;
  --canvas: #f2f5f3;
  --surface: #ffffff;
  --success: #237046;
  --warning: #8b5a0d;
  --danger: #a02835;
  --blue: #2b668e;
  --rail-width: 260px;
  --topbar-height: 72px;
  --shadow-sm: 0 1px 2px rgba(15, 34, 25, .06), 0 5px 18px rgba(15, 34, 25, .04);
  --shadow-md: 0 16px 40px rgba(9, 29, 20, .12);
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink-900); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { letter-spacing: -.035em; }
h2, h3 { letter-spacing: -.02em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 2000; padding: 11px 16px; background: var(--surface); color: var(--forest-900); border-radius: 0 0 8px 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template: var(--topbar-height) 1fr auto / var(--rail-width) 1fr; }
.topbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 100; display: flex; align-items: center; min-width: 0; height: var(--topbar-height); padding: 0 26px 0 20px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line-200); box-shadow: 0 1px 0 rgba(16, 47, 33, .03); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-logo-frame { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--line-200); border-radius: 9px; }
.brand-logo-frame img { width: 46px; height: 46px; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; min-width: 0; line-height: 1.2; }
.brand-copy strong { color: var(--forest-900); font-family: Georgia, "Times New Roman", serif; font-size: 18px; letter-spacing: -.01em; }
.brand-copy small { color: var(--ink-600); font-size: 12px; font-weight: 600; letter-spacing: .025em; }
.global-search-trigger { width: min(420px, 34vw); height: 42px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; margin-left: clamp(24px, 5vw, 78px); padding: 0 9px 0 8px; color: var(--ink-600); background: #f5f8f6; border: 1px solid var(--line-300); border-radius: 8px; font-size: 11px; text-align: left; }
.global-search-trigger:hover { color: var(--forest-800); background: #fff; border-color: #adbbb2; }
.global-search-icon { width: 26px; height: 26px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-100); border-radius: 6px; font-size: 15px; font-weight: 800; }
.global-search-trigger kbd, .search-guidance kbd { padding: 3px 6px; color: var(--ink-500); background: #fff; border: 1px solid var(--line-200); border-bottom-color: var(--line-300); border-radius: 4px; font-family: inherit; font-size: 8px; font-weight: 750; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.system-chip, .free-chip, .private-badge, .review-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.system-chip { background: #edf4ef; color: var(--forest-700); border: 1px solid #d7e4db; }
.system-chip.degraded { background: #fff7e7; color: var(--warning); border-color: #ead9b2; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(35, 112, 70, .12); }
.system-chip.degraded .status-dot { background: #bd7913; box-shadow: 0 0 0 3px rgba(189, 121, 19, .12); }
.free-chip { color: #694b0c; background: var(--gold-100); border: 1px solid #e4d1a5; }
.icon-button { width: 42px; height: 42px; margin-right: 9px; display: grid; place-content: center; gap: 4px; background: transparent; border: 0; border-radius: 8px; }
.icon-button span { display: block; width: 20px; height: 2px; background: var(--forest-900); border-radius: 2px; }
.mobile-only { display: none; }

.app-rail { grid-row: 2; position: sticky; top: var(--topbar-height); height: calc(100vh - var(--topbar-height)); display: flex; flex-direction: column; padding: 20px 14px 16px; overflow-y: auto; background: var(--forest-950); color: #fff; border-right: 1px solid rgba(255,255,255,.05); }
.rail-nav { display: grid; gap: 4px; }
.rail-label { margin: 0 10px 8px; color: #8fa99a; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.rail-label-secondary { margin-top: 20px; }
.rail-link { position: relative; min-height: 44px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid transparent; border-radius: 8px; color: #cadaD0; text-decoration: none; font-size: 14px; font-weight: 650; transition: background .15s, color .15s, border-color .15s; }
.rail-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.rail-link.active { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(192,154,74,.28); box-shadow: inset 3px 0 0 var(--gold-500); }
.rail-icon { width: 25px; height: 25px; display: grid; place-items: center; color: #aebfb5; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; font-size: 13px; font-weight: 800; }
.rail-link.active .rail-icon { color: #f3d994; border-color: rgba(192,154,74,.45); }
.rail-count { min-width: 24px; padding: 2px 6px; text-align: center; color: #9db2a5; background: rgba(255,255,255,.06); border-radius: 999px; font-size: 10px; }
.rail-card { margin-top: auto; padding: 16px; background: linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.1); border-top: 2px solid var(--gold-500); border-radius: 10px; }
.rail-card-kicker { display: block; margin-bottom: 7px; color: #d8bd7d; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rail-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.rail-card p { margin: 7px 0 0; color: #aabcb1; font-size: 11px; line-height: 1.55; }
.rail-scrim { display: none; }
.rail-scrim[hidden] { display: none !important; }

.workspace { grid-row: 2; grid-column: 2; min-width: 0; min-height: calc(100vh - var(--topbar-height)); }
.view { display: none; min-height: 100%; }
.view.active { display: block; }
.content-wrap { width: min(1420px, calc(100% - 64px)); margin: 0 auto; }

.command-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(410px, .85fr); gap: 52px; align-items: center; min-height: 385px; padding: 50px max(32px, calc((100% - 1356px) / 2)); overflow: hidden; color: #fff; background: linear-gradient(112deg, var(--forest-950) 0%, var(--forest-800) 58%, #28543c 100%); }
.command-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,.025) 48% 48.15%, transparent 48.15%), radial-gradient(circle at 86% 22%, rgba(192,154,74,.19), transparent 25%); pointer-events: none; }
.command-banner::after { content: ""; position: absolute; right: -100px; bottom: -130px; width: 430px; height: 430px; border: 1px solid rgba(192,154,74,.15); border-radius: 50%; box-shadow: 0 0 0 50px rgba(192,154,74,.035), 0 0 0 100px rgba(192,154,74,.025); pointer-events: none; }
.command-copy, .readiness-panel { position: relative; z-index: 1; }
.eyebrow, .panel-kicker { display: block; color: #d6b76e; font-size: 10px; font-weight: 800; letter-spacing: .145em; text-transform: uppercase; }
.eyebrow.dark, .panel-kicker { color: var(--gold-600); }
.command-copy h1 { max-width: 680px; margin: 12px 0 18px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 68px); font-weight: 600; line-height: .99; letter-spacing: -.045em; }
.command-copy p { max-width: 690px; margin: 0; color: #c8d7ce; font-size: 17px; line-height: 1.62; }
.command-actions { display: flex; gap: 10px; margin-top: 27px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .rail-link:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(50,126,180,.28); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--scarlet-600); border-color: #c74958; box-shadow: 0 5px 15px rgba(86,7,20,.2); }
.button-primary:hover { background: var(--scarlet-700); }
.button-secondary { color: var(--forest-800); background: #fff; border-color: var(--line-300); }
.button-secondary:hover { border-color: #9daeA4; background: #f8faf8; }
.button-secondary-on-dark { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
.button-secondary-on-dark:hover { background: rgba(255,255,255,.13); }
.button-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.22); }
.button-ghost-dark { color: var(--ink-700); background: transparent; border-color: transparent; }
.button[disabled] { cursor: not-allowed; opacity: .55; transform: none; }

.readiness-panel { padding: 25px; background: rgba(255,255,255,.965); color: var(--ink-900); border: 1px solid rgba(255,255,255,.65); border-radius: var(--radius-md); box-shadow: 0 24px 60px rgba(4,20,13,.27); }
.readiness-header, .panel-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.readiness-header h2, .panel-header h2 { margin: 5px 0 0; font-size: 20px; }
.private-badge { color: #506b5b; background: #edf3ef; border: 1px solid #d8e4dc; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0; border: 1px solid var(--line-200); border-radius: 8px; overflow: hidden; }
.metric { min-width: 0; padding: 14px 12px; border-right: 1px solid var(--line-200); }
.metric:last-child { border: 0; }
.metric strong { display: block; color: var(--forest-800); font-size: 20px; font-variant-numeric: tabular-nums; }
.metric span { display: block; margin-top: 2px; color: var(--ink-600); font-size: 10px; line-height: 1.35; }
.progress-label { display: flex; justify-content: space-between; color: var(--ink-700); font-size: 11px; font-weight: 650; }
progress { width: 100%; height: 8px; overflow: hidden; appearance: none; border: 0; border-radius: 999px; background: var(--line-100); }
progress::-webkit-progress-bar { background: var(--line-100); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--forest-700), #438161); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--forest-700), #438161); border-radius: 999px; }
.progress-block progress { margin-top: 7px; }
.snapshot-note { margin: 14px 0 0; padding-top: 13px; color: var(--ink-600); border-top: 1px solid var(--line-100); font-size: 11px; }

.dashboard-wrap { padding-top: 48px; padding-bottom: 58px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.section-heading h2 { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 600; color: var(--forest-900); }
.section-heading > p { max-width: 530px; margin: 0; color: var(--ink-600); font-size: 13px; }
.section-heading.compact { align-items: center; margin-bottom: 16px; }
.section-heading.compact h2 { font-size: 23px; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.module-card { position: relative; min-height: 350px; display: flex; flex-direction: column; padding: 25px 23px 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-200); border-top: 3px solid var(--forest-700); border-radius: 9px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.module-card:hover { transform: translateY(-3px); border-color: #bdcbc2; box-shadow: var(--shadow-md); }
.module-featured { border-top-color: var(--scarlet-600); }
.module-index { position: absolute; right: 16px; top: 9px; color: #edf1ee; font-family: Georgia, serif; font-size: 58px; font-weight: 700; line-height: 1; }
.module-icon { position: relative; z-index: 1; width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 20px; color: var(--forest-700); background: var(--forest-100); border: 1px solid #d2e1d7; border-radius: 8px; font-family: Georgia, serif; font-weight: 800; }
.module-featured .module-icon { color: var(--scarlet-700); background: #f8e8ea; border-color: #eed3d6; }
.icon-book::before { content: ""; width: 19px; height: 23px; border: 2px solid currentColor; border-radius: 2px; box-shadow: inset 5px 0 0 rgba(0,0,0,.07); }
.icon-check::before { content: "✓"; font-size: 23px; }
.module-tag { color: var(--gold-600); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.module-card h3 { margin: 8px 0 10px; color: var(--forest-900); font-family: Georgia, "Times New Roman", serif; font-size: 21px; }
.module-card > p { margin-bottom: 20px; color: var(--ink-600); font-size: 12px; line-height: 1.65; }
.module-meta { display: flex; gap: 14px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line-100); color: var(--ink-500); font-size: 10px; font-weight: 650; }
.module-meta span::before { content: "•"; margin-right: 5px; color: var(--gold-500); }
.text-action { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; padding: 0; color: var(--forest-700); background: none; border: 0; font-size: 12px; font-weight: 750; text-align: left; }
.text-action span { font-size: 18px; transition: transform .15s; }
.text-action:hover span { transform: translateX(3px); }
.dashboard-lower { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr); gap: 15px; margin-top: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.next-panel { padding: 24px; }
.action-list { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-100); }
.action-list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-100); }
.action-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.action-number { width: 31px; height: 31px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-100); border-radius: 50%; font-size: 11px; font-weight: 800; }
.action-list strong { color: var(--ink-900); font-size: 13px; }
.action-list p { margin: 2px 0 0; color: var(--ink-600); font-size: 11px; }
.action-list button, .link-button { padding: 5px 2px; color: var(--blue); background: none; border: 0; font-size: 11px; font-weight: 750; }
.source-confidence { position: relative; padding: 24px; overflow: hidden; background: linear-gradient(150deg, #fff 0%, #f6f8f6 100%); }
.confidence-mark { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 25px; color: #fff; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 7px #e5f0e9; font-size: 20px; }
.source-confidence h2 { margin: 6px 0 10px; font-family: Georgia, serif; font-size: 22px; }
.source-confidence p { color: var(--ink-600); font-size: 12px; line-height: 1.65; }
.source-confidence .button { margin-top: 5px; }

.page-head { min-height: 190px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 42px; padding-bottom: 34px; border-bottom: 1px solid var(--line-200); }
.page-head h1 { margin: 8px 0 8px; color: var(--forest-900); font-family: Georgia, serif; font-size: clamp(36px, 4vw, 50px); font-weight: 600; }
.page-head p { max-width: 760px; margin: 0; color: var(--ink-600); font-size: 14px; }
.page-head + .content-wrap { padding-top: 28px; padding-bottom: 60px; }
.page-stat { flex: 0 0 auto; padding: 15px 19px; text-align: right; background: var(--surface); border: 1px solid var(--line-200); border-left: 3px solid var(--gold-500); border-radius: 8px; box-shadow: var(--shadow-sm); }
.page-stat strong { display: block; color: var(--forest-800); font-size: 22px; line-height: 1.05; }
.page-stat span { color: var(--ink-600); font-size: 10px; }
.toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(190px, 260px); gap: 12px; margin-bottom: 13px; padding: 12px; background: var(--surface); border: 1px solid var(--line-200); border-radius: 10px; box-shadow: var(--shadow-sm); }
.toolbar-wide { grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(150px, .55fr)); }
.toolbar-ranks { grid-template-columns: repeat(2, minmax(220px, 320px)); }
.toolbar-leaders { grid-template-columns: minmax(280px, 1fr) minmax(250px, 340px); }
.search-field { position: relative; display: block; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-500); font-size: 19px; }
.search-field input { width: 100%; height: 43px; padding: 0 14px 0 40px; color: var(--ink-900); background: #f8faf8; border: 1px solid var(--line-300); border-radius: 7px; }
.search-field input::placeholder { color: #87948d; }
.select-field { display: flex; align-items: center; gap: 8px; }
.select-field > span { flex: 0 0 auto; color: var(--ink-600); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.select-field select { width: 100%; height: 43px; padding: 0 31px 0 12px; color: var(--ink-900); background: #f8faf8; border: 1px solid var(--line-300); border-radius: 7px; }
.result-summary { margin: 13px 2px 14px; color: var(--ink-600); font-size: 11px; font-weight: 650; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic-card { min-height: 245px; display: flex; flex-direction: column; padding: 21px; text-align: left; background: var(--surface); border: 1px solid var(--line-200); border-radius: 9px; box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s, box-shadow .15s; }
.topic-card:hover { transform: translateY(-2px); border-color: #b7c7bd; box-shadow: 0 11px 30px rgba(13,38,25,.1); }
.topic-card.reviewed { border-color: #a9c9b6; box-shadow: inset 0 3px 0 var(--success), var(--shadow-sm); }
.topic-card-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.topic-category { color: var(--gold-600); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.reviewed-chip { color: var(--success); font-size: 9px; font-weight: 750; }
.topic-card h2 { margin: 12px 0 9px; color: var(--forest-900); font-family: Georgia, serif; font-size: 20px; }
.topic-card p { margin-bottom: 18px; color: var(--ink-600); font-size: 12px; line-height: 1.6; }
.topic-card-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line-100); color: var(--ink-500); font-size: 10px; }
.empty-state { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--ink-600); background: var(--surface); border: 1px dashed var(--line-300); border-radius: 10px; }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: baseline; margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-left-width: 4px; border-radius: 7px; font-size: 11px; }
.notice strong { font-size: 11px; }
.notice-info { color: #294d65; background: #edf5fa; border-color: #c8dce9; border-left-color: var(--blue); }
.notice-warning { color: #66460d; background: #fff8e9; border-color: #ead8ac; border-left-color: #b47715; }
.notice-neutral { color: var(--ink-700); background: #f8faf8; border-color: var(--line-200); border-left-color: var(--gold-500); }
.exam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.exam-grid.single-column { grid-template-columns: 1fr; }
.exam-card { position: relative; min-height: 250px; display: flex; flex-direction: column; padding: 23px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-200); border-radius: 10px; box-shadow: var(--shadow-sm); }
.exam-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--scarlet-600); }
.exam-card.asvab::before { background: var(--blue); }
.exam-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.exam-badge { padding: 4px 7px; color: var(--ink-600); background: #f0f4f1; border: 1px solid var(--line-200); border-radius: 4px; font-size: 9px; font-weight: 750; }
.exam-card h2 { margin: 15px 0 9px; color: var(--forest-900); font-family: Georgia, serif; font-size: 23px; }
.exam-card p { color: var(--ink-600); font-size: 12px; line-height: 1.6; }
.exam-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line-100); }
.exam-last { color: var(--ink-500); font-size: 10px; }
.history-panel { margin-top: 17px; padding: 23px; }
.history-empty { padding: 28px 0 10px; text-align: center; color: var(--ink-500); font-size: 12px; }
.history-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 11px; }
.history-table th { padding: 9px 8px; color: var(--ink-500); border-bottom: 1px solid var(--line-200); font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.history-table td { padding: 11px 8px; color: var(--ink-700); border-bottom: 1px solid var(--line-100); }
.score-small { font-weight: 800; color: var(--forest-700); }

.split-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; }
.strategy-panel { padding: 24px; }
.strategy-panel h2 { margin: 6px 0 17px; font-family: Georgia, serif; font-size: 23px; }
.strategy-list { margin: 0; padding: 0; list-style: none; }
.strategy-list li { display: grid; grid-template-columns: 29px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-100); }
.strategy-list li > span { width: 27px; height: 27px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-100); border-radius: 50%; font-size: 10px; font-weight: 800; }
.strategy-list strong { font-size: 12px; }
.strategy-list p { margin: 2px 0 0; color: var(--ink-600); font-size: 10px; }
.official-link { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 15px; color: var(--blue); border-top: 1px solid var(--line-100); font-size: 11px; font-weight: 750; text-decoration: none; }
.domain-section { margin-top: 35px; }
.domain-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.domain-card { padding: 15px; background: var(--surface); border: 1px solid var(--line-200); border-radius: 8px; box-shadow: var(--shadow-sm); }
.domain-code { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 11px; color: #fff; background: var(--navy-700); border-radius: 6px; font-size: 10px; font-weight: 800; }
.domain-card h3 { margin: 0 0 6px; color: var(--forest-900); font-size: 12px; }
.domain-card p { margin: 0; color: var(--ink-600); font-size: 9px; line-height: 1.5; }

.mos-list { display: grid; gap: 9px; }
.mos-card { background: var(--surface); border: 1px solid var(--line-200); border-radius: 9px; box-shadow: var(--shadow-sm); }
.mos-card[open] { border-color: #b8c9bf; box-shadow: 0 8px 26px rgba(14,37,26,.08); }
.mos-card summary { position: relative; display: grid; grid-template-columns: 72px 1fr auto 18px; gap: 16px; align-items: center; padding: 17px 19px; cursor: pointer; list-style: none; }
.mos-card summary::-webkit-details-marker { display: none; }
.mos-code { width: 62px; height: 43px; display: grid; place-items: center; color: var(--forest-800); background: var(--forest-100); border: 1px solid #cfdfd4; border-radius: 7px; font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.mos-title-block h2 { margin: 0 0 3px; color: var(--forest-900); font-family: Georgia, serif; font-size: 18px; }
.mos-title-block p { margin: 0; color: var(--ink-600); font-size: 10px; }
.mos-family { padding: 5px 8px; color: var(--ink-600); background: #f2f5f3; border-radius: 5px; font-size: 9px; font-weight: 700; }
.mos-chevron { color: var(--ink-500); font-size: 17px; transition: transform .15s; }
.mos-card[open] .mos-chevron { transform: rotate(90deg); }
.mos-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 28px; padding: 0 19px 20px 107px; border-top: 1px solid var(--line-100); }
.mos-detail-main { padding-top: 17px; }
.mos-detail h3 { margin: 0 0 8px; color: var(--ink-700); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.mos-overview { color: var(--ink-700); font-size: 12px; line-height: 1.65; }
.mos-examples { display: grid; gap: 7px; margin-top: 17px; }
.mos-example { padding: 10px 12px; background: #f8faf8; border: 1px solid var(--line-100); border-radius: 6px; }
.mos-example strong { color: var(--forest-800); font-size: 11px; }
.mos-example span { color: var(--ink-500); font-size: 9px; }
.mos-example p { margin: 3px 0 0; color: var(--ink-600); font-size: 10px; }
.prep-list { margin: 0; padding-left: 17px; color: var(--ink-600); font-size: 10px; line-height: 1.7; }
.mos-source-note { margin-top: 18px; padding-top: 12px; color: var(--ink-500); border-top: 1px solid var(--line-100); font-size: 9px; }
.mos-source-note a { color: var(--blue); font-weight: 750; text-decoration: none; }
.mos-record-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 17px; }
.mos-record-meta span { padding: 10px; color: var(--ink-700); background: #f6f8f6; border: 1px solid var(--line-100); border-radius: 6px; font-size: 10px; }
.mos-record-meta strong { display: block; margin-bottom: 3px; color: var(--ink-500); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }

.rank-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rank-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line-200); border-radius: 10px; box-shadow: var(--shadow-sm); }
.rank-insignia-wrap { height: 180px; display: grid; place-items: center; padding: 22px; background: linear-gradient(145deg, #f8faf8, #eef3ef); border-bottom: 1px solid var(--line-200); }
.rank-insignia { display: block; max-width: 100%; max-height: 136px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(11,31,21,.12)); }
.rank-no-insignia { width: 100%; height: 100%; display: grid; place-content: center; gap: 6px; padding: 15px; color: var(--ink-500); border: 1px dashed var(--line-300); border-radius: 8px; text-align: center; }
.rank-no-insignia strong { color: var(--forest-800); font-family: Georgia, serif; font-size: 17px; }
.rank-no-insignia span { font-size: 9px; line-height: 1.45; }
.rank-card-body { padding: 16px 17px 18px; }
.rank-service { color: var(--ink-500); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.rank-heading { display: flex; align-items: baseline; gap: 9px; margin: 7px 0 5px; }
.rank-heading h2 { min-width: 0; margin: 0; color: var(--forest-900); font-family: Georgia, serif; font-size: 17px; line-height: 1.25; }
.rank-grade { flex: 0 0 auto; color: var(--gold-700); font-size: 11px; font-weight: 850; }
.rank-card-body p { min-height: 28px; margin: 0 0 10px; color: var(--ink-600); font-size: 9px; line-height: 1.5; }
.rank-status, .leader-status { display: inline-block; padding: 4px 7px; color: var(--success); background: #edf5ef; border: 1px solid #d5e6da; border-radius: 5px; font-size: 8px; font-weight: 800; text-transform: uppercase; }

.commission-grid { display: grid; gap: 15px; }
.commission-card { position: relative; padding: 25px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-200); border-left: 4px solid var(--gold-500); border-radius: 10px; box-shadow: var(--shadow-sm); }
.commission-card header { display: grid; grid-template-columns: 62px 1fr auto; gap: 16px; align-items: center; }
.path-number { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--forest-800); border-radius: 9px; font-family: Georgia, serif; font-size: 24px; }
.commission-audience { color: var(--ink-500); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.commission-card h2 { margin: 5px 0 0; color: var(--forest-900); font-family: Georgia, serif; font-size: 25px; }
.commission-overview { margin: 19px 0; color: var(--ink-700); font-size: 12px; line-height: 1.7; }
.path-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.path-detail-grid > div { padding: 13px 14px; background: #f7f9f7; border: 1px solid var(--line-100); border-radius: 7px; }
.path-detail-grid span, .history-sources > span { color: var(--forest-700); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.path-detail-grid p { margin: 5px 0 0; color: var(--ink-600); font-size: 10px; line-height: 1.55; }
.subprogram-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.subprogram-row strong { margin-right: 4px; color: var(--ink-600); font-size: 9px; }
.subprogram-row span { padding: 5px 8px; color: var(--forest-800); background: var(--forest-100); border-radius: 5px; font-size: 9px; font-weight: 700; }
.path-checklist { margin-top: 14px; border-top: 1px solid var(--line-100); }
.path-checklist summary { padding: 13px 0 4px; color: var(--blue); cursor: pointer; font-size: 10px; font-weight: 800; }
.path-checklist ol { margin: 8px 0 0 20px; padding: 0; color: var(--ink-650); font-size: 10px; line-height: 1.7; }
.card-sources { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line-100); }
.card-sources a { color: var(--blue); font-size: 9px; font-weight: 750; text-decoration: none; }

.history-grid { display: grid; gap: 11px; }
.history-chapter { overflow: hidden; background: var(--surface); border: 1px solid var(--line-200); border-radius: 10px; box-shadow: var(--shadow-sm); }
.history-chapter[open] { border-color: #b8c9bf; box-shadow: 0 10px 30px rgba(14,37,26,.08); }
.history-chapter > summary { display: grid; grid-template-columns: 110px minmax(0, 1fr) 180px 18px; gap: 16px; align-items: center; padding: 19px 21px; cursor: pointer; list-style: none; }
.history-chapter > summary::-webkit-details-marker { display: none; }
.history-era { color: var(--gold-700); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.history-title strong { display: block; color: var(--forest-900); font-family: Georgia, serif; font-size: 19px; }
.history-title small { display: block; margin-top: 4px; color: var(--ink-600); font-size: 9px; line-height: 1.5; }
.history-range { color: var(--ink-700); font-size: 11px; font-weight: 800; text-align: right; }
.history-range small { display: block; margin-top: 4px; color: var(--ink-500); font-size: 8px; font-weight: 600; }
.history-chevron { color: var(--ink-500); font-size: 18px; transition: transform .15s; }
.history-chapter[open] .history-chevron { transform: rotate(90deg); }
.history-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; padding: 22px 24px 25px 150px; background: #fbfcfb; border-top: 1px solid var(--line-100); }
.timeline { position: relative; display: grid; gap: 15px; }
.timeline::before { content: ""; position: absolute; left: 87px; top: 7px; bottom: 7px; width: 1px; background: #c9d8ce; }
.timeline-event { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; }
.timeline-event::before { content: ""; position: absolute; left: 83px; top: 5px; width: 9px; height: 9px; background: var(--gold-500); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #b9994c; }
.timeline-event time { color: var(--forest-700); font-size: 9px; font-weight: 850; text-align: right; }
.timeline-event h3 { margin: 0 0 4px; color: var(--ink-900); font-family: Georgia, serif; font-size: 15px; }
.timeline-event p { margin: 0; color: var(--ink-600); font-size: 10px; line-height: 1.6; }
.history-sources { align-self: start; display: grid; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line-200); border-radius: 7px; }
.history-sources a { color: var(--blue); font-size: 9px; font-weight: 700; line-height: 1.4; text-decoration: none; }

.leader-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.leader-card { display: flex; flex-direction: column; padding: 20px; background: var(--surface); border: 1px solid var(--line-200); border-top: 3px solid var(--forest-700); border-radius: 9px; box-shadow: var(--shadow-sm); }
.leader-top { display: grid; grid-template-columns: 47px 1fr auto; gap: 12px; align-items: center; }
.leader-number { width: 45px; height: 45px; display: grid; place-items: center; color: var(--gold-700); background: #f8f5ec; border: 1px solid #e7dcc1; border-radius: 50%; font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.leader-series { color: var(--ink-500); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.leader-card h2 { margin: 4px 0 0; color: var(--forest-900); font-family: Georgia, serif; font-size: 19px; }
.leader-tenure { display: flex; justify-content: space-between; gap: 15px; margin: 15px 0 11px; padding: 8px 10px; color: var(--ink-600); background: #f5f8f6; border-radius: 6px; font-size: 9px; font-weight: 700; }
.leader-card > p { margin: 0; color: var(--ink-700); font-size: 11px; line-height: 1.65; }
.leader-card > ul { margin: 12px 0 0; padding-left: 17px; color: var(--ink-600); font-size: 9px; line-height: 1.6; }
.leader-card .card-sources { margin-top: auto; }

.question-image-wrap { min-height: 170px; display: grid; place-items: center; margin: 0 0 22px; padding: 20px; background: #f5f8f6; border: 1px solid var(--line-200); border-radius: 8px; }
.question-image { display: block; max-width: min(100%, 300px); max-height: 220px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(11,31,21,.14)); }
.answer-rank-image { display: block; max-width: 120px; max-height: 100px; margin: 12px 0; padding: 8px; object-fit: contain; background: #f5f8f6; border: 1px solid var(--line-200); border-radius: 6px; }

.governance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 16px; }
.governance-card { position: relative; min-height: 170px; padding: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-200); border-top: 3px solid var(--gold-500); border-radius: 9px; box-shadow: var(--shadow-sm); }
.governance-number { position: absolute; right: 13px; top: 4px; color: #eef2ef; font-family: Georgia, serif; font-size: 53px; font-weight: 700; }
.governance-card h2 { position: relative; margin: 15px 0 7px; font-family: Georgia, serif; font-size: 20px; }
.governance-card p { position: relative; margin: 0; color: var(--ink-600); font-size: 11px; line-height: 1.6; }
.source-panel { padding: 23px; }
.review-chip { color: var(--success); background: #edf5ef; border: 1px solid #d5e6da; }
.source-list { margin-top: 16px; border-top: 1px solid var(--line-200); }
.source-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(160px, .6fr) minmax(160px, .55fr) auto; gap: 18px; align-items: center; padding: 15px 3px; border-bottom: 1px solid var(--line-100); }
.source-row h3 { margin: 0 0 3px; color: var(--forest-900); font-size: 13px; }
.source-row p { margin: 0; color: var(--ink-500); font-size: 9px; }
.source-meta { color: var(--ink-600); font-size: 10px; }
.source-status { display: inline-flex; margin-top: 3px; padding: 3px 6px; color: var(--success); background: #edf5ef; border-radius: 4px; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.source-open { color: var(--blue); font-size: 10px; font-weight: 750; text-decoration: none; }

.about-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 16px; }
.about-primary { padding: 30px; }
.about-primary h2 { margin: 7px 0 16px; color: var(--forest-900); font-family: Georgia, serif; font-size: 30px; }
.about-primary > p { color: var(--ink-700); font-size: 13px; line-height: 1.75; }
.about-primary h3 { margin: 27px 0 10px; color: var(--forest-800); font-size: 14px; }
.check-list, .boundary-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.check-list li, .boundary-list li { position: relative; padding-left: 25px; color: var(--ink-700); font-size: 12px; }
.check-list li::before, .boundary-list li::before { position: absolute; left: 0; top: 0; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 800; }
.check-list li::before { content: "✓"; color: #fff; background: var(--success); }
.boundary-list li::before { content: "!"; color: var(--warning); background: #fff2d5; }
.about-side { display: grid; align-content: start; gap: 16px; }
.identity-panel, .privacy-panel { padding: 26px; text-align: center; }
.about-logo { width: min(240px, 80%); margin: 0 auto 18px; }
.identity-panel h2, .privacy-panel h2 { margin: 7px 0 9px; color: var(--forest-900); font-family: Georgia, serif; font-size: 23px; }
.identity-panel p, .privacy-panel p { color: var(--ink-600); font-size: 11px; line-height: 1.6; }
.identity-panel .button { margin-top: 7px; }
.privacy-panel { text-align: left; border-top: 3px solid var(--blue); }

.exam-workspace { min-height: calc(100vh - var(--topbar-height)); background: #edf1ee; }
.exam-topbar { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 12px 28px; color: #fff; background: var(--forest-950); border-bottom: 2px solid var(--gold-500); }
.exam-identity { display: grid; text-align: center; }
.exam-identity strong { font-family: Georgia, serif; font-size: 17px; }
.exam-clock { justify-self: end; display: grid; text-align: right; }
.exam-clock span { color: #9fb3a6; font-size: 9px; text-transform: uppercase; }
.exam-clock strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.exam-layout { width: min(1250px, calc(100% - 48px)); display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 20px; margin: 25px auto 50px; }
.question-navigator { align-self: start; padding: 18px; background: var(--surface); border: 1px solid var(--line-200); border-radius: 9px; box-shadow: var(--shadow-sm); }
.question-nav-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.question-nav-head strong { font-size: 12px; }
.question-nav-head span { color: var(--ink-500); font-size: 9px; }
.question-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.question-jump { position: relative; aspect-ratio: 1; display: grid; place-items: center; color: var(--ink-600); background: #f6f8f6; border: 1px solid var(--line-200); border-radius: 5px; font-size: 10px; font-weight: 700; }
.question-jump.answered { color: var(--forest-800); background: #e5f0e9; border-color: #b9d2c2; }
.question-jump.current { color: #fff; background: var(--forest-700); border-color: var(--forest-700); box-shadow: 0 0 0 2px rgba(35,85,59,.15); }
.question-jump.flagged::after { content: ""; position: absolute; right: 2px; top: 2px; width: 5px; height: 5px; background: #d49b2e; border-radius: 50%; }
.question-key { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line-100); color: var(--ink-500); font-size: 8px; }
.question-key span { display: flex; align-items: center; gap: 5px; }
.question-key i { width: 9px; height: 9px; border-radius: 2px; }
.key-current { background: var(--forest-700); }
.key-answered { background: #d8eadf; border: 1px solid #afd0bb; }
.key-flagged { background: #d49b2e; border-radius: 50% !important; }
.question-stage { min-width: 0; }
.question-stage-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--ink-600); font-size: 11px; font-weight: 700; }
.flag-button { padding: 6px 9px; color: var(--ink-600); background: transparent; border: 1px solid var(--line-300); border-radius: 6px; font-size: 10px; }
.flag-button.active { color: var(--warning); background: #fff7e7; border-color: #dfc58d; }
.question-card { min-height: 440px; padding: 32px 36px; background: var(--surface); border: 1px solid var(--line-200); border-top: 3px solid var(--forest-700); border-radius: 10px; box-shadow: var(--shadow-sm); }
.question-domain { display: inline-flex; padding: 4px 8px; color: var(--navy-700); background: #edf4f8; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.question-card h2 { max-width: 900px; margin: 18px 0 24px; color: var(--ink-900); font-family: Georgia, serif; font-size: clamp(21px, 2.5vw, 28px); font-weight: 600; line-height: 1.35; }
.choice-list { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.choice { position: relative; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; cursor: pointer; background: #fbfcfb; border: 1px solid var(--line-200); border-radius: 8px; transition: border .15s, background .15s; }
.choice:hover { border-color: #a9bcb0; background: #f7faf8; }
.choice:has(input:checked) { background: #edf5ef; border-color: var(--forest-700); box-shadow: inset 3px 0 0 var(--forest-700); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-letter { width: 29px; height: 29px; display: grid; place-items: center; color: var(--ink-600); background: #fff; border: 1px solid var(--line-300); border-radius: 50%; font-size: 10px; font-weight: 800; }
.choice:has(input:checked) .choice-letter { color: #fff; background: var(--forest-700); border-color: var(--forest-700); }
.choice-text { color: var(--ink-700); font-size: 13px; }
.question-controls { display: flex; justify-content: space-between; margin-top: 13px; }

.results-hero { color: #fff; background: linear-gradient(115deg, var(--forest-950), var(--forest-700)); border-bottom: 3px solid var(--gold-500); }
.results-hero-inner { min-height: 245px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.results-hero h1 { margin: 8px 0; font-family: Georgia, serif; font-size: 46px; font-weight: 600; }
.results-hero p { margin: 0; color: #c5d4cb; }
.score-card { width: 165px; height: 165px; flex: 0 0 165px; display: grid; place-content: center; text-align: center; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.5); border-radius: 50%; box-shadow: 0 0 0 9px rgba(255,255,255,.045); }
.score-card span { color: #edd38f; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.score-card strong { font-size: 41px; line-height: 1.05; }
.score-card small { color: #cad8d0; font-size: 10px; }
.results-content { padding-top: 23px; padding-bottom: 60px; }
.results-actions { display: flex; gap: 9px; margin-bottom: 17px; }
.domain-report { padding: 23px; }
.domain-results { display: grid; gap: 12px; margin-top: 17px; }
.domain-result { display: grid; grid-template-columns: minmax(170px, .45fr) 1fr 75px; align-items: center; gap: 15px; }
.domain-result strong { color: var(--ink-700); font-size: 11px; }
.domain-result span { color: var(--ink-500); font-size: 10px; text-align: right; }
.review-section { margin-top: 30px; }
.answer-review { display: grid; gap: 9px; }
.answer-card { padding: 19px; background: var(--surface); border: 1px solid var(--line-200); border-left: 4px solid var(--success); border-radius: 8px; box-shadow: var(--shadow-sm); }
.answer-card.incorrect { border-left-color: var(--danger); }
.answer-card-head { display: flex; justify-content: space-between; gap: 15px; }
.answer-card-head h3 { margin: 0; color: var(--ink-900); font-family: Georgia, serif; font-size: 16px; }
.answer-status { flex: 0 0 auto; color: var(--success); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.answer-card.incorrect .answer-status { color: var(--danger); }
.answer-lines { display: grid; gap: 4px; margin: 12px 0; padding: 10px 12px; background: #f8faf8; border-radius: 6px; font-size: 10px; }
.answer-lines strong { color: var(--ink-600); }
.answer-explanation { margin: 0; color: var(--ink-700); font-size: 11px; line-height: 1.65; }
.answer-source { display: inline-block; margin-top: 10px; color: var(--blue); font-size: 9px; font-weight: 750; text-decoration: none; }

.topic-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 50px); padding: 0; overflow: hidden; color: var(--ink-900); background: var(--surface); border: 0; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.topic-dialog::backdrop { background: rgba(6,20,13,.68); backdrop-filter: blur(2px); }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 24px 27px 18px; border-bottom: 1px solid var(--line-200); }
.dialog-head h2 { margin: 7px 0 0; color: var(--forest-900); font-family: Georgia, serif; font-size: 28px; }
.dialog-close { width: 37px; height: 37px; color: var(--ink-600); background: #f3f6f4; border: 1px solid var(--line-200); border-radius: 50%; font-size: 23px; line-height: 1; }
.dialog-body { max-height: calc(100vh - 230px); padding: 23px 27px; overflow-y: auto; }
.dialog-summary { color: var(--ink-700); font-size: 13px; line-height: 1.7; }
.dialog-meta { display: flex; gap: 8px; margin-bottom: 23px; }
.dialog-meta span { padding: 4px 7px; color: var(--ink-600); background: #f1f4f2; border-radius: 4px; font-size: 9px; font-weight: 700; }
.dialog-body h3 { margin: 22px 0 10px; color: var(--forest-800); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.keypoint-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.keypoint-list li { position: relative; padding-left: 22px; color: var(--ink-700); font-size: 12px; line-height: 1.6; }
.keypoint-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; background: var(--gold-500); transform: rotate(45deg); }
.dialog-source { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 12px; background: #f8faf8; border: 1px solid var(--line-100); border-radius: 6px; text-decoration: none; }
.dialog-source + .dialog-source { margin-top: 6px; }
.dialog-source strong { display: block; color: var(--forest-800); font-size: 10px; }
.dialog-source small { color: var(--ink-500); font-size: 8px; }
.dialog-source span { color: var(--blue); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 27px; background: #f7f9f7; border-top: 1px solid var(--line-200); }
.search-dialog { width: min(780px, calc(100% - 30px)); max-height: min(760px, calc(100vh - 42px)); padding: 0; overflow: hidden; color: var(--ink-900); background: var(--surface); border: 0; border-radius: 12px; box-shadow: 0 34px 100px rgba(0,0,0,.4); }
.search-dialog::backdrop { background: rgba(5,21,13,.72); backdrop-filter: blur(3px); }
.search-dialog-head { display: grid; grid-template-columns: 33px 1fr 36px; align-items: center; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--line-200); }
.search-dialog-head label { min-width: 0; }
.search-dialog-head input { width: 100%; height: 42px; padding: 0; color: var(--ink-900); background: transparent; border: 0; outline: 0; font-size: 15px; }
.search-dialog-head input::placeholder { color: #8a9690; }
.search-dialog-head > button { width: 34px; height: 34px; color: var(--ink-500); background: #f3f6f4; border: 1px solid var(--line-200); border-radius: 50%; font-size: 22px; line-height: 1; }
.search-guidance { display: flex; justify-content: space-between; gap: 20px; padding: 9px 17px; color: var(--ink-500); background: #f8faf8; border-bottom: 1px solid var(--line-100); font-size: 9px; }
.global-search-results { max-height: min(620px, calc(100vh - 165px)); overflow-y: auto; }
.search-result-group { padding: 10px 15px 3px; color: var(--gold-600); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.search-result { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: start; padding: 12px 16px; color: var(--ink-900); background: #fff; border: 0; border-top: 1px solid var(--line-100); text-align: left; }
.search-result:hover, .search-result:focus-visible { background: #f4f8f5; }
.search-result-kind { width: 36px; height: 36px; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-100); border-radius: 7px; font-size: 9px; font-weight: 850; }
.search-result h3 { margin: 0 0 3px; color: var(--forest-900); font-family: Georgia, serif; font-size: 14px; }
.search-result p { margin: 0; color: var(--ink-600); font-size: 9px; line-height: 1.5; }
.search-result small { display: block; margin-top: 4px; color: var(--ink-500); font-size: 8px; }
.search-result-arrow { align-self: center; color: var(--blue); font-size: 15px; }
.search-empty { padding: 42px 25px; color: var(--ink-500); text-align: center; font-size: 11px; line-height: 1.7; }
.search-empty strong { display: block; margin-bottom: 4px; color: var(--forest-800); font-family: Georgia, serif; font-size: 18px; }
.toast { position: fixed; right: 23px; bottom: 23px; z-index: 1200; max-width: 350px; padding: 13px 16px; color: #fff; background: var(--forest-900); border-left: 4px solid var(--gold-500); border-radius: 7px; box-shadow: var(--shadow-md); font-size: 11px; font-weight: 650; }
.site-footer { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 22px; padding: 18px 25px; color: #91a398; background: #081b13; border-top: 1px solid rgba(255,255,255,.07); font-size: 9px; }
.site-footer a { color: #c2d0c7; text-decoration: none; }

/* Visual field guide */
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding-bottom: 64px; }
.lesson-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line-200); border-radius: 11px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.lesson-card:hover { transform: translateY(-3px); border-color: #b6c6bc; box-shadow: var(--shadow-md); }
.lesson-card > button { width: 100%; height: 100%; display: grid; grid-template-rows: 205px 1fr; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; }
.lesson-card-visual { display: block; overflow: hidden; background: var(--forest-900); border-bottom: 3px solid var(--gold-500); }
.lesson-card-visual img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s; }
.lesson-card:hover .lesson-card-visual img { transform: scale(1.025); }
.lesson-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #d9c17e; font-family: Georgia, serif; font-size: 42px; }
.lesson-card-copy { display: flex; flex-direction: column; padding: 20px; }
.lesson-card-copy h2 { margin: 9px 0 9px; color: var(--forest-900); font-family: Georgia, serif; font-size: 20px; line-height: 1.15; }
.lesson-card-copy p { margin: 0; color: var(--ink-600); font-size: 11px; line-height: 1.65; }
.lesson-card-copy > strong { margin-top: 17px; color: var(--forest-700); font-size: 11px; }
.lesson-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 18px; }
.lesson-card-meta span { padding: 4px 7px; color: var(--ink-600); background: #f1f5f2; border-radius: 4px; font-size: 8px; font-weight: 750; }
.lesson-dialog { width: min(1080px, calc(100% - 34px)); max-height: calc(100vh - 34px); padding: 0; overflow: hidden; color: var(--ink-900); background: #fff; border: 0; border-radius: 13px; box-shadow: 0 34px 110px rgba(0,0,0,.42); }
.lesson-dialog::backdrop { background: rgba(5,20,12,.78); backdrop-filter: blur(3px); }
.lesson-dialog-head { position: relative; display: flex; justify-content: space-between; gap: 30px; padding: 38px 42px 32px; color: #fff; background: linear-gradient(120deg, var(--forest-950), var(--forest-700)); border-bottom: 3px solid var(--gold-500); }
.lesson-dialog-head h2 { max-width: 850px; margin: 8px 0 10px; color: #fff; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.lesson-dialog-head p { max-width: 850px; margin: 0; color: #c7d7cd; font-size: 13px; line-height: 1.65; }
.dialog-close.light { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.lesson-dialog-body { max-height: calc(100vh - 245px); padding: 34px 42px 50px; overflow-y: auto; }
.lesson-objectives { margin-bottom: 36px; padding: 24px 26px; background: #f4f7f5; border: 1px solid var(--line-200); border-left: 4px solid var(--scarlet-600); border-radius: 9px; }
.lesson-objectives h3 { margin: 7px 0 13px; color: var(--forest-900); font-family: Georgia, serif; font-size: 20px; }
.lesson-objectives ul, .lesson-keypoints ul, .lesson-steps ol { display: grid; gap: 7px; margin: 0; padding-left: 21px; color: var(--ink-700); font-size: 12px; line-height: 1.55; }
.lesson-section { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 33px 0; border-top: 1px solid var(--line-200); }
.lesson-section-number { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--forest-800); border-radius: 8px; font-size: 12px; font-weight: 850; }
.lesson-section-content > h3 { margin: 0 0 13px; color: var(--forest-900); font-family: Georgia, serif; font-size: 26px; }
.lesson-section-content > p { color: var(--ink-700); font-size: 13px; line-height: 1.78; }
.lesson-section figure { margin: 24px 0; overflow: hidden; background: #eef3ef; border: 1px solid var(--line-200); border-radius: 10px; }
.lesson-section figure img { width: 100%; display: block; }
.lesson-section figcaption { padding: 12px 15px; color: var(--ink-700); background: #fff; font-size: 10px; font-weight: 700; }
.lesson-section figcaption small { display: block; margin-top: 3px; color: var(--ink-500); font-weight: 500; }
.lesson-keypoints, .lesson-steps { margin-top: 18px; padding: 18px 20px; background: #f7f9f7; border-radius: 8px; }
.lesson-keypoints > strong, .lesson-steps > strong { display: block; margin-bottom: 9px; color: var(--scarlet-700); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.instructor-note { display: grid; grid-template-columns: 120px 1fr; gap: 15px; margin-top: 16px; padding: 13px 16px; color: #fff; background: var(--forest-800); border-radius: 7px; font-size: 11px; line-height: 1.55; }
.instructor-note strong { color: #e1c47c; text-transform: uppercase; font-size: 9px; letter-spacing: .08em; }
.lesson-references { margin-top: 38px; padding-top: 28px; border-top: 2px solid var(--forest-800); }
.lesson-references h3 { margin: 7px 0 15px; color: var(--forest-900); font-family: Georgia, serif; font-size: 24px; }

/* Fitness performance center */
.fitness-hero { color: #fff; background: radial-gradient(circle at 82% 20%, rgba(192,154,74,.22), transparent 28%), linear-gradient(120deg, var(--forest-950), #1c4d35); border-bottom: 3px solid var(--gold-500); }
.fitness-hero-inner { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); align-items: center; gap: 55px; padding-top: 48px; padding-bottom: 48px; }
.fitness-hero h1 { max-width: 780px; margin: 10px 0 18px; color: #fff; font-family: Georgia, serif; font-size: clamp(44px, 5vw, 66px); line-height: 1; letter-spacing: -.035em; }
.fitness-hero p { max-width: 730px; margin: 0; color: #c8d9cf; font-size: 16px; line-height: 1.65; }
.fitness-hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 11px; }
.fitness-hero-metrics div { padding: 23px 15px; border-right: 1px solid rgba(255,255,255,.13); }
.fitness-hero-metrics div:last-child { border: 0; }
.fitness-hero-metrics strong { display: block; color: #f0d58f; font-size: 28px; }
.fitness-hero-metrics span { display: block; margin-top: 4px; color: #bfd0c5; font-size: 9px; line-height: 1.35; }
.fitness-content { padding-top: 36px; padding-bottom: 70px; }
.fitness-calculator { margin-top: 18px; padding: 28px; scroll-margin-top: 90px; }
.fitness-section-head { display: flex; justify-content: space-between; gap: 28px; }
.fitness-section-head h2 { margin: 6px 0 7px; color: var(--forest-900); font-family: Georgia, serif; font-size: 28px; }
.fitness-section-head p { margin: 0; color: var(--ink-600); font-size: 11px; }
.privacy-pill { height: fit-content; padding: 6px 9px; color: var(--success); background: #e8f2eb; border: 1px solid #cfe2d4; border-radius: 999px; font-size: 9px; font-weight: 800; }
.fitness-profile { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 24px 0 18px; padding: 16px; background: #f5f7f5; border: 1px solid var(--line-200); border-radius: 8px; }
.fitness-profile label:not(.check-control), .fitness-input-card { display: grid; gap: 6px; }
.fitness-profile label > span, .fitness-input-label { color: var(--ink-600); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.fitness-profile select, .fitness-input-card select, .fitness-value-wrap input { width: 100%; min-height: 42px; padding: 8px 10px; color: var(--ink-900); background: #fff; border: 1px solid var(--line-300); border-radius: 6px; font: inherit; font-size: 12px; }
.check-control { display: flex; align-items: center; gap: 9px; align-self: end; min-height: 42px; padding: 8px 10px; background: #fff; border: 1px solid var(--line-300); border-radius: 6px; }
.check-control input { width: 17px; height: 17px; accent-color: var(--scarlet-600); }
.check-control span { color: var(--ink-700); font-size: 10px; font-weight: 700; }
.combat-policy { display: grid; grid-template-columns: 220px 1fr; gap: 16px; margin-bottom: 17px; padding: 13px 16px; color: #fff; background: var(--scarlet-700); border-radius: 7px; font-size: 10px; line-height: 1.5; }
.combat-policy strong { color: #f2d999; }
.fitness-event-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fitness-input-card { padding: 16px; background: #fff; border: 1px solid var(--line-200); border-top: 3px solid var(--forest-700); border-radius: 8px; }
.fitness-input-card > strong { min-height: 42px; display: flex; align-items: center; color: var(--forest-900); font-family: Georgia, serif; font-size: 16px; }
.fitness-value-wrap { position: relative; display: block; }
.fitness-value-wrap input { padding-right: 52px; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.fitness-value-wrap em { position: absolute; right: 10px; top: 15px; color: var(--ink-500); font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.fitness-input-card > small { color: var(--ink-500); font-size: 8px; line-height: 1.45; }
.fitness-score-output { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 12px; margin-top: 13px; }
.fitness-score-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 115px; color: var(--ink-500); background: #f7f9f7; border: 1px dashed #c7d2cb; border-radius: 8px; text-align: center; }
.fitness-score-empty strong { align-self: end; color: var(--forest-800); font-family: Georgia, serif; font-size: 18px; }
.fitness-score-empty span { align-self: start; font-size: 10px; }
.fitness-score-events { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line-200); border-radius: 8px; }
.fitness-score-events div { padding: 15px; border-right: 1px solid var(--line-200); }
.fitness-score-events div:last-child { border: 0; }
.fitness-score-events span, .fitness-score-events small { display: block; color: var(--ink-500); font-size: 8px; }
.fitness-score-events strong { display: block; margin: 4px 0 2px; color: var(--forest-800); font-size: 27px; }
.fitness-score-total { display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; color: #fff; background: var(--scarlet-700); border-radius: 8px; }
.fitness-score-total.qualified { background: var(--forest-700); }
.fitness-score-total > span { color: #f2d999; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.fitness-score-total > strong { margin: 3px 0; font-size: 36px; line-height: 1; }
.fitness-score-total > strong small { font-size: 12px; }
.fitness-score-total > em { color: rgba(255,255,255,.8); font-size: 9px; font-style: normal; }
.fitness-section { margin-top: 48px; scroll-margin-top: 90px; }
.fitness-event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.fitness-event-card { overflow: hidden; background: #fff; border: 1px solid var(--line-200); border-radius: 9px; box-shadow: var(--shadow-sm); }
.fitness-event-card button { width: 100%; height: 100%; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; }
.fitness-event-image { height: 150px; display: block; overflow: hidden; background: var(--forest-900); border-bottom: 2px solid var(--gold-500); }
.fitness-event-image img { width: 100%; height: 100%; object-fit: cover; }
.fitness-event-copy { display: block; padding: 16px; }
.fitness-event-copy > span { color: var(--scarlet-600); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.fitness-event-copy h3 { margin: 7px 0; color: var(--forest-900); font-family: Georgia, serif; font-size: 18px; }
.fitness-event-copy p { min-height: 48px; color: var(--ink-600); font-size: 10px; line-height: 1.55; }
.fitness-event-copy strong { color: var(--forest-700); font-size: 10px; }
.fitness-plan-grid { display: grid; gap: 10px; }
.fitness-plan-card { overflow: hidden; background: #fff; border: 1px solid var(--line-200); border-radius: 9px; box-shadow: var(--shadow-sm); }
.fitness-plan-card summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 23px; cursor: pointer; list-style: none; }
.fitness-plan-card summary::-webkit-details-marker { display: none; }
.fitness-plan-card summary small { display: block; margin-bottom: 5px; color: var(--gold-600); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.fitness-plan-card summary strong { color: var(--forest-900); font-family: Georgia, serif; font-size: 20px; }
.plan-toggle { color: var(--forest-700); font-size: 24px; }
.fitness-plan-card[open] .plan-toggle { transform: rotate(45deg); }
.fitness-plan-body { padding: 0 23px 23px; border-top: 1px solid var(--line-100); }
.fitness-plan-body > p { color: var(--ink-600); font-size: 11px; line-height: 1.65; }
.plan-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.plan-phases section { padding: 15px; background: #f6f8f6; border-top: 3px solid var(--forest-600); border-radius: 7px; }
.plan-phases span { color: var(--scarlet-600); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.plan-phases h3 { margin: 6px 0 10px; color: var(--forest-900); font-family: Georgia, serif; font-size: 15px; }
.plan-phases ul { display: grid; gap: 6px; margin: 0; padding-left: 16px; color: var(--ink-600); font-size: 9px; line-height: 1.45; }
.safety-panel { margin-top: 40px; padding: 25px; background: linear-gradient(140deg, #fff, #f7f3e8); border-top: 3px solid var(--gold-500); }
.safety-panel h2 { margin: 6px 0 15px; color: var(--forest-900); font-family: Georgia, serif; }
.safety-panel ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; margin: 0; padding-left: 18px; color: var(--ink-700); font-size: 10px; line-height: 1.55; }
.fitness-event-dialog { width: min(930px, calc(100% - 32px)); max-height: calc(100vh - 42px); padding: 0; overflow: hidden; color: var(--ink-900); background: #fff; border: 0; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.fitness-event-dialog::backdrop { background: rgba(5,20,12,.72); backdrop-filter: blur(3px); }
.fitness-dialog-figure { margin: 17px 0; overflow: hidden; border: 1px solid var(--line-200); border-radius: 9px; }
.fitness-dialog-figure img { width: 100%; display: block; }
.fitness-dialog-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fitness-dialog-columns section { padding: 14px; background: #f6f8f6; border-radius: 7px; }
.fitness-dialog-columns h3 { margin-top: 0; }
.fitness-dialog-columns ul, .fitness-dialog-columns ol { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: var(--ink-700); font-size: 10px; line-height: 1.5; }

/* Recruiter and OSO finder */
.recruiting-content { padding-bottom: 70px; }
.recruiting-search-panel { display: grid; grid-template-columns: minmax(250px, .65fr) minmax(550px, 1.35fr); align-items: end; gap: 28px; padding: 25px; margin-bottom: 15px; }
.recruiting-search-panel h2 { margin: 6px 0; color: var(--forest-900); font-family: Georgia, serif; font-size: 24px; }
.recruiting-search-panel p { margin: 0; color: var(--ink-600); font-size: 10px; line-height: 1.55; }
.recruiting-search-panel form { display: grid; grid-template-columns: 1fr 210px auto; gap: 9px; align-items: end; }
.recruiter-query { min-height: 42px; }
.recruiting-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.recruiting-card { display: flex; flex-direction: column; min-height: 270px; padding: 19px; background: #fff; border: 1px solid var(--line-200); border-top: 3px solid var(--forest-700); border-radius: 9px; box-shadow: var(--shadow-sm); }
.recruiting-card-top { display: flex; justify-content: space-between; gap: 8px; }
.recruiting-card-top > div { display: flex; flex-wrap: wrap; gap: 4px; }
.recruiting-card-top > strong { color: var(--scarlet-600); font-size: 11px; white-space: nowrap; }
.office-type { padding: 4px 7px; color: var(--forest-700); background: var(--forest-100); border-radius: 4px; font-size: 8px; font-weight: 800; }
.recruiting-card h2 { margin: 12px 0 8px; color: var(--forest-900); font-family: Georgia, serif; font-size: 20px; line-height: 1.2; }
.recruiting-card address { color: var(--ink-600); font-size: 11px; font-style: normal; line-height: 1.6; }
.recruiting-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.recruiting-actions .button { flex: 1; min-width: 105px; padding-left: 10px; padding-right: 10px; font-size: 9px; }
.loading-card { grid-column: 1 / -1; padding: 50px; color: var(--ink-500); background: #fff; border: 1px dashed var(--line-300); border-radius: 9px; text-align: center; font-size: 12px; }

@media (max-width: 1180px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .module-card { min-height: 315px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: repeat(3, 1fr); }
  .rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolbar-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-wide .search-field { grid-column: 1 / -1; }
  .command-banner { grid-template-columns: 1fr minmax(350px, .8fr); gap: 30px; }
  .source-row { grid-template-columns: minmax(0, 1.4fr) minmax(140px, .6fr) auto; }
  .source-row .source-meta:nth-of-type(2) { display: none; }
  .lesson-grid, .recruiting-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fitness-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fitness-profile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --topbar-height: 66px; }
  .app-shell { grid-template-columns: 1fr; }
  .mobile-only { display: grid; }
  .topbar { padding-left: 9px; }
  .global-search-trigger { width: min(310px, 38vw); margin-left: 18px; }
  .global-search-trigger kbd { display: none; }
  .brand-logo-frame { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-logo-frame img { width: 40px; height: 40px; }
  .app-rail { position: fixed; z-index: 500; left: 0; top: var(--topbar-height); width: min(290px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 45px rgba(0,0,0,.25); }
  .app-rail.open { transform: translateX(0); }
  .rail-scrim { position: fixed; z-index: 450; inset: var(--topbar-height) 0 0; display: block; background: rgba(5,20,12,.58); }
  .workspace { grid-column: 1; }
  .content-wrap { width: min(100% - 38px, 1420px); }
  .command-banner { grid-template-columns: 1fr; padding: 45px 28px; }
  .command-copy h1 { font-size: clamp(42px, 8vw, 60px); }
  .readiness-panel { max-width: 620px; }
  .split-layout, .about-layout { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-body { grid-template-columns: 1fr; padding-left: 24px; }
  .leader-grid { grid-template-columns: 1fr; }
  .exam-layout { grid-template-columns: 1fr; }
  .question-navigator { order: 2; }
  .question-stage { order: 1; }
  .question-palette { grid-template-columns: repeat(10, 1fr); }
  .question-key { grid-template-columns: repeat(3, auto); }
  .site-footer { grid-column: 1; }
  .fitness-hero-inner, .recruiting-search-panel { grid-template-columns: 1fr; }
  .recruiting-search-panel form { grid-template-columns: 1fr 220px auto; }
  .fitness-dialog-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { padding-right: 12px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 10px; }
  .global-search-trigger { width: 42px; grid-template-columns: 1fr; flex: 0 0 42px; margin-left: auto; padding: 7px; }
  .global-search-trigger > span:not(.global-search-icon) { display: none; }
  .global-search-trigger .global-search-icon { width: 26px; }
  .topbar-actions { margin-left: 7px; }
  .system-chip { display: none; }
  .free-chip { padding: 6px 8px; font-size: 9px; }
  .content-wrap { width: min(100% - 26px, 1420px); }
  .command-banner { min-height: 0; padding: 36px 20px 30px; }
  .command-copy h1 { font-size: 42px; }
  .command-copy p { font-size: 14px; }
  .command-actions { flex-direction: column; align-items: stretch; }
  .readiness-panel { padding: 20px; }
  .readiness-header { display: block; }
  .private-badge { margin-top: 8px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line-200); }
  .dashboard-wrap { padding-top: 35px; }
  .section-heading, .page-head { display: block; }
  .section-heading > p { margin-top: 8px; }
  .module-grid, .topic-grid, .exam-grid, .governance-grid, .dashboard-lower { grid-template-columns: 1fr; }
  .module-card { min-height: 300px; }
  .page-head { min-height: 0; padding-top: 33px; padding-bottom: 27px; }
  .page-head h1 { font-size: 37px; }
  .page-stat { display: inline-block; margin-top: 18px; text-align: left; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar-wide, .toolbar-ranks, .toolbar-leaders { grid-template-columns: 1fr; }
  .toolbar-wide .search-field { grid-column: auto; }
  .select-field { display: grid; grid-template-columns: auto 1fr; }
  .notice { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-grid { grid-template-columns: 1fr; }
  .rank-insignia-wrap { height: 165px; }
  .mos-card summary { grid-template-columns: 58px 1fr 15px; gap: 11px; padding: 14px; }
  .mos-code { width: 52px; height: 39px; font-size: 15px; }
  .mos-family { display: none; }
  .mos-detail { grid-template-columns: 1fr; gap: 15px; padding: 0 14px 17px; }
  .mos-record-meta, .path-detail-grid { grid-template-columns: 1fr; }
  .commission-card { padding: 19px; }
  .commission-card header { grid-template-columns: 52px 1fr; }
  .commission-card header .rank-status { grid-column: 2; justify-self: start; }
  .path-number { width: 48px; height: 48px; font-size: 20px; }
  .history-chapter > summary { grid-template-columns: 1fr 18px; gap: 8px; padding: 16px; }
  .history-era, .history-title, .history-range { grid-column: 1; text-align: left; }
  .history-chevron { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .history-body { padding: 18px 15px; }
  .timeline::before { left: 7px; }
  .timeline-event { grid-template-columns: 1fr; gap: 4px; padding-left: 25px; }
  .timeline-event::before { left: 3px; }
  .timeline-event time { text-align: left; }
  .leader-top { grid-template-columns: 42px 1fr; }
  .leader-status { grid-column: 2; justify-self: start; }
  .leader-number { width: 40px; height: 40px; }
  .source-row { grid-template-columns: 1fr auto; gap: 9px; }
  .source-row .source-meta { display: none; }
  .about-primary { padding: 22px; }
  .exam-topbar { grid-template-columns: auto 1fr auto; padding: 10px 12px; }
  .exam-topbar .button { min-height: 36px; padding: 6px 9px; font-size: 10px; }
  .exam-identity strong { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .exam-layout { width: calc(100% - 20px); margin-top: 12px; }
  .question-card { min-height: 420px; padding: 23px 18px; }
  .question-palette { grid-template-columns: repeat(8, 1fr); }
  .question-controls { gap: 10px; }
  .question-controls .button { flex: 1; }
  .results-hero-inner { min-height: 320px; padding-top: 30px; padding-bottom: 30px; flex-direction: column; justify-content: center; text-align: center; }
  .results-hero h1 { font-size: 39px; }
  .results-actions { display: grid; }
  .domain-result { grid-template-columns: 1fr 60px; gap: 7px; }
  .domain-result progress { grid-row: 2; grid-column: 1 / -1; }
  .answer-card-head { display: block; }
  .answer-status { display: block; margin-top: 5px; }
  .dialog-head, .dialog-body, .dialog-actions { padding-left: 18px; padding-right: 18px; }
  .dialog-actions .button { flex: 1; }
  .search-dialog-head { grid-template-columns: 30px 1fr 34px; padding: 10px; }
  .search-dialog-head input { font-size: 12px; }
  .search-guidance span { max-width: 250px; }
  .search-result { grid-template-columns: 34px 1fr 12px; padding: 11px 12px; }
  .lesson-grid, .fitness-event-grid, .recruiting-results { grid-template-columns: 1fr; }
  .lesson-card > button { grid-template-rows: 180px 1fr; }
  .lesson-dialog-head { padding: 28px 20px 24px; }
  .lesson-dialog-body { padding: 24px 18px 40px; }
  .lesson-section { grid-template-columns: 1fr; gap: 11px; }
  .lesson-section-content > h3 { font-size: 22px; }
  .instructor-note { grid-template-columns: 1fr; }
  .fitness-hero-inner { min-height: 0; padding-top: 38px; padding-bottom: 38px; }
  .fitness-hero h1 { font-size: 42px; }
  .fitness-hero-metrics { grid-template-columns: 1fr; }
  .fitness-hero-metrics div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .fitness-profile, .fitness-event-inputs, .fitness-score-output, .fitness-score-events, .plan-phases, .safety-panel ul { grid-template-columns: 1fr; }
  .fitness-score-events div { border-right: 0; border-bottom: 1px solid var(--line-200); }
  .combat-policy { grid-template-columns: 1fr; }
  .recruiting-search-panel form { grid-template-columns: 1fr; }
  .recruiting-search-panel .select-field { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
