:root {
  --ink: #102a43;
  --muted: #627d98;
  --line: #d9e2ec;
  --soft: #f5f8fb;
  --navy: #0b3b5a;
  --blue: #177eaa;
  --teal: #0f8b8d;
  --gold: #e99c20;
  --mint: #1f9d77;
  --danger: #c8553d;
  --white: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #edf3f7;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #edf3f7; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid #df9c31;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.36); border-radius: 11px; color: #ffcf73; font-weight: 800; letter-spacing: .03em; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-header .eyebrow { color: #b9d6e5; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(20px, 2.5vw, 27px); line-height: 1.2; }
h2 { margin-bottom: 0; font-size: 20px; line-height: 1.25; }
h3 { margin-bottom: 6px; font-size: 15px; }
.header-note { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #dbeaf2; font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #50d1a2; box-shadow: 0 0 0 4px rgba(80,209,162,.14); }

.app-shell { width: min(1320px, calc(100% - 36px)); margin: 26px auto 44px; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; margin-bottom: 18px; border: 1px solid #f3d89d; border-left: 4px solid var(--gold); border-radius: 10px; background: #fff8e8; color: #614a17; font-size: 14px; line-height: 1.65; }
.notice p { margin: 0; }
.notice-icon { display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #d99316; color: #fff; font-weight: 800; font-size: 13px; }

.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 126px; padding: 18px; border: 1px solid #d8e4eb; border-top: 3px solid var(--navy); border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(26,57,77,.04); }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin: 11px 0 6px; color: var(--navy); font-size: 30px; line-height: 1; }
.metric-card small { font-size: 12px; line-height: 1.35; }
.metric-blue { border-top-color: var(--blue); }.metric-blue strong { color: var(--blue); }
.metric-orange { border-top-color: var(--gold); }.metric-orange strong { color: #bb7605; }
.metric-mint { border-top-color: var(--mint); }.metric-mint strong { color: var(--mint); }

.cohort-panel { margin-bottom: 18px; padding: 20px 22px; border: 1px solid #cfe2eb; border-radius: 12px; background: #f8fcfd; box-shadow: 0 5px 16px rgba(26,57,77,.035); }.cohort-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }.cohort-panel-heading .eyebrow { color: var(--teal); }.cohort-panel-heading h2 { color: var(--navy); }.cohort-status { flex: 0 0 auto; padding: 6px 8px; border-radius: 6px; background: #e6f6f3; color: #08765f; font-size: 11px; font-weight: 800; }.cohort-summary { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; color: #47677b; font-size: 12px; line-height: 1.5; }.cohort-summary strong { color: #163f58; font-size: 14px; }.cohort-years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.cohort-year { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid #d9e8ee; border-radius: 8px; background: #fff; }.cohort-year small { color: #6d8999; font-size: 11px; }.cohort-year strong { color: #173f59; font-size: 19px; }.cohort-year span { min-height: 18px; color: #52748a; font-size: 11px; line-height: 1.4; }.cohort-year em { color: #207393; font-size: 11px; font-style: normal; }.cohort-year a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }.cohort-formula { margin-top: 11px; padding: 11px 12px; border-left: 3px solid var(--teal); background: #edf8f7; color: #456d75; font-size: 12px; line-height: 1.6; }.cohort-formula strong { display: block; color: #1d5b63; }.cohort-formula code { display: block; margin-top: 3px; overflow-wrap: anywhere; color: #176373; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }.cohort-formula p { margin: 6px 0 0; }.capacity-factor { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; margin-top: 11px; padding: 12px; border: 1px solid #d7e4ef; border-radius: 8px; background: #f7faff; }.capacity-factor strong { display: block; color: #28516d; font-size: 13px; }.capacity-factor span { color: #6a8599; font-size: 11px; }.capacity-factor > b { padding: 6px 8px; border-radius: 6px; background: #e6f0f8; color: #18668e; font-size: 13px; white-space: nowrap; }.capacity-factor p { grid-column: 1 / -1; margin: 3px 0 0; color: #57748a; font-size: 12px; line-height: 1.55; }.capacity-factor small { grid-column: 1 / -1; color: #7b91a5; font-size: 11px; line-height: 1.5; }.cohort-note { margin: 10px 0 0; color: #6b8898; font-size: 11px; line-height: 1.55; }.cohort-empty { display: grid; gap: 4px; padding: 12px; border-radius: 8px; background: #f1f5f8; color: #607d91; font-size: 12px; line-height: 1.55; }.cohort-empty strong { color: #456276; }.cohort-result, .capacity-result { margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.6; }.cohort-result { border: 1px solid #cde6dd; background: #f0faf7; color: #467566; }.cohort-result strong { color: #16785d; }.capacity-result { border: 1px solid #d4e2ee; background: #f5f9fc; color: #56738a; }.capacity-result strong { color: #256a92; }.capacity-result span { color: #728b9d; }

.workspace { display: grid; grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.7fr); gap: 18px; align-items: start; }
.query-panel, .result-panel, .data-section, .method-section { border: 1px solid #d7e2e9; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(26,57,77,.045); }
.query-panel, .result-panel { padding: 24px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading .eyebrow { color: var(--blue); }
.step-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #e8f2f7; color: var(--blue); font-size: 12px; font-weight: 800; }
.field-group { margin-bottom: 18px; }
.field-group > label { display: block; margin-bottom: 8px; color: #334e68; font-size: 13px; font-weight: 750; }
.field-hint { margin: 6px 0 0; color: #7b91a5; font-size: 12px; line-height: 1.45; }
.exam-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.exam-tab { min-height: 36px; padding: 7px 8px; border: 1px solid #cbdbe5; border-radius: 7px; background: #fff; color: #486581; font-size: 13px; transition: .18s ease; }
.exam-tab:hover { border-color: #76a9c3; background: #f4fbff; }
.exam-tab.is-active { border-color: var(--blue); background: #e5f4fb; color: #075f8d; font-weight: 800; }
select, input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #bfcfda; border-radius: 7px; outline: none; color: var(--ink); background: #fff; font-size: 14px; }
select:focus, input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,126,170,.12); }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.is-hidden { display: none !important; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; box-shadow: 0 7px 12px rgba(23,126,170,.18); transition: transform .16s ease, background .16s ease; }
.primary-button:hover { background: #116a92; transform: translateY(-1px); }
.primary-button span { font-size: 20px; }
.secondary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 43px; margin-top: 10px; padding: 0 15px; border: 1px solid #78acc5; border-radius: 8px; background: #fff; color: #146b93; font-size: 14px; font-weight: 800; transition: background .16s ease, transform .16s ease; }.secondary-button:hover { background: #eaf7fb; transform: translateY(-1px); }.secondary-button span { font-size: 19px; }
.query-tip { margin-top: 20px; padding: 14px; border-radius: 8px; background: #f2f8fa; color: #486581; font-size: 12px; line-height: 1.6; }
.query-tip strong { display: block; margin-bottom: 4px; color: var(--navy); }.query-tip p { margin: 0; }

.text-button { padding: 5px 0; border: 0; border-bottom: 1px solid currentColor; color: #427a98; background: none; font-size: 13px; }
.empty-state { display: grid; min-height: 410px; place-content: center; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 17px; }
.empty-symbol { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: #eaf4f7; color: var(--blue); font-size: 23px; }
.result-top { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px; border: 1px solid #d6e3e8; border-radius: 10px; background: #f8fbfc; }
.result-badge { display: grid; place-items: center; min-width: 86px; height: 58px; padding: 0 10px; border-radius: 9px; color: #fff; font-size: 17px; font-weight: 800; }
.band-safe { background: var(--mint); }.band-target { background: var(--blue); }.band-rush { background: var(--gold); }.band-low { background: var(--danger); }.band-none { background: #829ab1; }
.result-title { margin: 0 0 3px; color: var(--ink); font-size: 18px; }.result-description { margin: 0; color: #526f86; font-size: 13px; line-height: 1.55; }
.input-assessment { margin-top: 14px; padding: 10px 13px; border-left: 3px solid var(--blue); background: #f4f9fb; color: #486581; font-size: 13px; line-height: 1.6; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.line-card { padding: 13px; border: 1px solid #dde7ec; border-radius: 9px; }.line-card small { display: block; color: #627d98; font-size: 12px; }.line-card strong { display: block; margin: 6px 0 4px; color: var(--ink); font-size: 21px; }.line-card span { color: #7b91a5; font-size: 11px; }.line-card.rush { border-top: 3px solid var(--gold); }.line-card.target { border-top: 3px solid var(--blue); }.line-card.safe { border-top: 3px solid var(--mint); }
.result-meta { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 10px; }.meta-cell { padding: 12px; border-radius: 8px; background: #f7fafc; }.meta-cell small { display: block; margin-bottom: 4px; color: #7b91a5; font-size: 11px; }.meta-cell strong { font-size: 13px; color: #334e68; }.rank-line { display: block; margin-top: 4px; color: #5f7b90; font-size: 11px; font-style: normal; line-height: 1.55; }
.plan-preview { margin-top: 18px; padding: 15px; border: 1px solid #dce8ee; border-radius: 9px; background: #fbfdfe; }.plan-preview h3 { margin: 0 0 11px; color: #334e68; font-size: 14px; }.plan-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.plan-year { position: relative; padding: 9px 10px; border-radius: 7px; background: #edf5f8; }.plan-year:not(:last-child)::after { position: absolute; right: -11px; top: 50%; z-index: 1; color: #7893a6; content: "→"; font-size: 15px; transform: translateY(-50%); }.plan-year small { display: block; color: #6d879a; font-size: 11px; }.plan-year strong { display: block; margin-top: 3px; color: #173f59; font-size: 16px; }.plan-change-row { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 10px; color: #607c90; font-size: 12px; line-height: 1.5; }.plan-expand { color: #12815c; }.plan-shrink { color: #bb7201; }.plan-neutral { color: #647f94; }.plan-chip { display: inline-block; max-width: 130px; padding: 4px 7px; border-radius: 5px; background: #f1f5f8; font-size: 11px; font-weight: 700; line-height: 1.4; }
.history-preview { margin-top: 18px; border-top: 1px solid #e2eaf0; padding-top: 16px; }.history-preview h3 { margin: 0 0 10px; color: #334e68; font-size: 14px; }.history-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.history-item { padding: 11px; border-radius: 7px; background: #f8fbfc; }.history-item span { display: block; color: #7b91a5; font-size: 11px; }.history-item strong { display: block; margin-top: 3px; color: #334e68; font-size: 13px; }.history-item em { display: block; margin-top: 4px; color: #6c879a; font-size: 11px; font-style: normal; line-height: 1.45; }
.source-note { margin: 17px 0 0; color: #7b91a5; font-size: 11px; line-height: 1.6; }
.recommendation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px; border: 1px solid #d7e8ef; border-radius: 9px; background: #f7fbfc; }.recommendation-header .eyebrow { color: #1380a9; }.recommendation-header h3 { margin: 0 0 5px; color: #173f59; font-size: 17px; }.recommendation-header p { margin: 0; color: #607c90; font-size: 12px; }.recommendation-count { flex: 0 0 auto; padding: 7px 9px; border-radius: 6px; background: #e4f2f7; color: #176b8f; font-size: 12px; font-weight: 800; }.recommendation-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }.recommendation-group { min-width: 0; padding: 12px; border: 1px solid #dce7ec; border-top-width: 3px; border-radius: 9px; background: #fff; }.recommendation-group.band-safe { border-top-color: var(--mint); }.recommendation-group.band-target { border-top-color: var(--blue); }.recommendation-group.band-rush { border-top-color: var(--gold); }.recommendation-group-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }.recommendation-group-heading strong { color: #334e68; font-size: 13px; }.recommendation-group-heading small { margin-left: auto; color: #7890a1; font-size: 11px; }.recommendation-band { display: inline-block; padding: 4px 7px; border-radius: 5px; color: #fff; font-size: 11px; font-weight: 800; }.recommendation-list { display: grid; gap: 8px; }.recommendation-card { padding: 10px; border: 1px solid #e0e9ed; border-radius: 7px; background: #fbfdfe; }.recommendation-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }.recommendation-card .row-button { padding: 4px 6px; font-size: 10px; }.recommendation-card h4 { margin: 9px 0 3px; color: #173f59; font-size: 14px; }.recommendation-category { margin: 0; color: #71899a; font-size: 11px; line-height: 1.45; }.recommendation-reference { display: grid; gap: 3px; margin-top: 8px; color: #58758a; font-size: 11px; line-height: 1.4; }.recommendation-capacity { margin: 8px 0 0; padding-top: 7px; border-top: 1px dashed #d8e5ec; color: #59758a; font-size: 11px; line-height: 1.5; }.recommendation-capacity b { color: #246e95; }.recommendation-capacity span { color: #7c91a0; }.recommendation-plan { margin: 8px 0 0; color: #6a8292; font-size: 11px; line-height: 1.45; }.recommendation-empty { margin: 0; padding: 10px 0 2px; color: #8297a6; font-size: 12px; line-height: 1.55; }

.data-section { min-width: 0; margin-top: 18px; padding: 24px; overflow: hidden; }.section-heading-wide { align-items: center; }.subtle { margin: 7px 0 0; color: #6f879b; font-size: 13px; }.data-toolbar { display: flex; align-items: center; gap: 12px; }.search-field { display: flex; align-items: center; width: 238px; height: 38px; padding: 0 10px; gap: 6px; border: 1px solid #cbdbe5; border-radius: 7px; color: #658398; }.search-field input { height: 34px; padding: 0; border: 0; background: transparent; font-size: 13px; }.search-field input:focus { box-shadow: none; }.table-count { color: #6b8799; font-size: 12px; white-space: nowrap; }
.table-wrap { width: 100%; max-width: 100%; contain: inline-size; overflow-x: auto; border: 1px solid #e0e9ee; border-radius: 8px; } table { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 13px; } th { padding: 12px 13px; background: #edf5f8; color: #46657c; font-size: 12px; text-align: left; white-space: nowrap; } td { padding: 12px 13px; border-top: 1px solid #e5edf1; color: #334e68; vertical-align: middle; } tbody tr:hover { background: #f7fbfd; }.muted-cell { color: #829ab1; font-size: 12px; }.major-cell strong { display: block; color: var(--ink); font-size: 13px; }.major-cell small { display: block; margin-top: 3px; color: #6f879b; font-size: 11px; }.confidence { display: inline-block; padding: 4px 7px; border-radius: 99px; background: #e9f8f1; color: #16825f; font-size: 11px; font-weight: 700; white-space: nowrap; }.confidence.low { background: #fff2df; color: #b76e00; }.confidence.none { background: #edf2f7; color: #627d98; }.row-button { padding: 6px 9px; border: 1px solid #b9d2df; border-radius: 6px; background: #fff; color: #17698f; font-size: 12px; font-weight: 700; }.row-button:hover { background: #eaf6fb; }

.method-section { display: grid; grid-template-columns: .8fr 2.2fr; gap: 28px; margin-top: 18px; padding: 24px; background: #eff6f8; }.method-section h2 { color: var(--navy); }.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }.method-index { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 9px; border-radius: 6px; background: #d9edf3; color: #126e8d; font-size: 11px; font-weight: 800; }.method-grid p { margin-bottom: 0; color: #5d788c; font-size: 13px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 16px; width: min(1320px, calc(100% - 36px)); margin: 0 auto 28px; color: #688198; font-size: 12px; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 980px) { .overview-grid { grid-template-columns: repeat(2, 1fr); }.cohort-years { grid-template-columns: repeat(3, 1fr); }.workspace { grid-template-columns: 1fr; }.empty-state { min-height: 220px; }.method-section { grid-template-columns: 1fr; }.method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .app-header { align-items: flex-start; padding: 18px; }.header-note { display: none; }.app-shell, footer { width: min(100% - 24px, 1320px); }.app-shell { margin-top: 14px; }.notice { padding: 12px; font-size: 13px; }.overview-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { min-height: 110px; padding: 14px; }.metric-card strong { font-size: 25px; }.cohort-panel { padding: 16px; }.cohort-panel-heading { display: grid; }.cohort-status { justify-self: start; }.cohort-summary { display: grid; gap: 3px; }.cohort-years { grid-template-columns: 1fr; }.query-panel, .result-panel, .data-section, .method-section { padding: 17px; border-radius: 9px; }.exam-tabs { grid-template-columns: repeat(2, 1fr); }.input-grid, .result-grid, .result-meta, .history-list, .method-grid { grid-template-columns: 1fr; }.data-toolbar { width: 100%; justify-content: space-between; }.section-heading-wide { align-items: flex-start; flex-direction: column; }.search-field { width: min(100%, 260px); }.method-grid { gap: 14px; } footer { flex-direction: column; margin-bottom: 20px; }.result-top { align-items: flex-start; }
  .plan-flow { gap: 5px; }.plan-year { padding: 8px 6px; }.plan-year:not(:last-child)::after { right: -9px; }.plan-year strong { font-size: 14px; }.plan-change-row { display: grid; gap: 5px; }.plan-chip { max-width: none; }.recommendation-header { display: grid; }.recommendation-count { justify-self: start; }.recommendation-groups { grid-template-columns: 1fr; }
  table { min-width: 0; table-layout: fixed; font-size: 11px; } th, td { padding: 8px 6px; white-space: normal; overflow-wrap: anywhere; } th:nth-child(1), td:nth-child(1), th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4), th:nth-child(6), td:nth-child(6), th:nth-child(8), td:nth-child(8) { display: none; } .major-cell small, .muted-cell { font-size: 10px; }.row-button { padding: 5px 6px; font-size: 11px; } }
