:root {
  --paper: #f3f0e8;
  --ink: #18231f;
  --muted: #66716b;
  --line: #d7d6cc;
  --green: #0d5b46;
  --green-2: #188064;
  --lime: #d9ef89;
  --orange: #ff7a45;
  --navy: #16272b;
  --white: #fffef8;
  --shadow: 0 20px 55px rgba(25, 38, 33, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.topbar {
  position: sticky; top: 0; z-index: 50; height: 76px;
  display: flex; align-items: center; gap: 42px; padding: 0 max(28px, calc((100vw - 1280px) / 2));
  background: rgba(243, 240, 232, .9); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24, 35, 31, .1);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark {
  width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50% 50% 45% 55%;
  color: var(--white); background: var(--green); font-family: serif; font-weight: 900;
}
.brand-mark.small { width: 29px; height: 29px; display: inline-grid; margin-right: 9px; }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
nav a:hover { color: var(--green); }
.version { color: var(--green); border: 1px solid rgba(13, 91, 70, .28); border-radius: 999px; padding: 5px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.hero {
  max-width: 1280px; min-height: 680px; margin: 0 auto; padding: 90px 28px 70px;
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 50px;
}
.eyebrow { margin: 0 0 14px; color: var(--green-2); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; max-width: 720px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(48px, 6vw, 78px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.hero-lead { max-width: 670px; margin: 30px 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; padding: 12px 21px; border-radius: 4px; font-size: 14px; font-weight: 750; text-decoration: none; }
.button.primary { color: white; background: var(--green); }
.button.ghost { color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.25); }
.hero-orbit { position: relative; width: min(460px, 42vw); aspect-ratio: 1; justify-self: center; }
.orbit-ring { position: absolute; border: 1px solid rgba(13,91,70,.24); border-radius: 50%; }
.ring-one { inset: 9%; }
.ring-two { inset: 25%; border-style: dashed; animation: spin 35s linear infinite; }
.orbit-core { position: absolute; inset: 34%; display: grid; place-content: center; text-align: center; border-radius: 50%; color: white; background: var(--green); box-shadow: 0 25px 80px rgba(13,91,70,.3); }
.orbit-core strong { font-family: Georgia, serif; font-size: 44px; line-height: 1; }
.orbit-core span, .orbit-note span { font-size: 11px; letter-spacing: .1em; margin-top: 7px; }
.orbit-note { position: absolute; width: 105px; height: 105px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); }
.orbit-note b { font-family: Georgia, serif; color: var(--green); font-size: 26px; line-height: 1; }
.note-a { top: 4%; right: 4%; }
.note-b { bottom: 8%; right: 0; background: var(--lime); }
.note-c { bottom: 5%; left: 2%; background: var(--orange); color: white; }
.note-c b { color: white; }
@keyframes spin { to { transform: rotate(360deg); } }

.stat-strip { max-width: 1280px; margin: 0 auto 100px; padding: 26px 28px; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip div { padding: 0 25px; border-right: 1px solid var(--line); }
.stat-strip div:first-child { padding-left: 0; }
.stat-strip div:last-child { border: 0; }
.stat-strip strong { display: block; font-family: Georgia, serif; color: var(--green); font-size: 29px; }
.stat-strip span { color: var(--muted); font-size: 12px; }

.section { max-width: 1280px; margin: 0 auto; padding: 40px 28px 120px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 80px; margin-bottom: 46px; }
.section-head h2 { max-width: 760px; margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(32px, 4vw, 52px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.section-head > p { width: 330px; margin: 0; color: var(--muted); font-size: 14px; }
.major-map { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 175px; gap: 12px; }
.major-card { position: relative; overflow: hidden; padding: 24px; border: 0; border-radius: 5px; text-align: left; cursor: pointer; color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px rgba(24,35,31,.06); transition: transform .25s, box-shadow .25s; }
.major-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.major-card:nth-child(1) { grid-column: span 4; background: #d9ef89; }
.major-card:nth-child(2) { grid-column: span 5; background: #0d5b46; color: white; }
.major-card:nth-child(3) { grid-column: span 3; background: #ffdfc6; }
.major-card:nth-child(4) { grid-column: span 6; background: #ff7a45; color: white; }
.major-card:nth-child(5) { grid-column: span 3; background: #c9e0d7; }
.major-card:nth-child(6) { grid-column: span 3; background: #173b3b; color: white; }
.major-card:nth-child(7) { grid-column: span 5; background: #e1ded3; }
.major-card:nth-child(8) { grid-column: span 7; background: #f9f7f0; }
.major-card .num { position: absolute; right: 18px; top: 12px; font-family: Georgia, serif; font-size: 55px; opacity: .13; }
.major-card h3 { max-width: 90%; margin: 0 0 16px; font-size: 17px; line-height: 1.45; }
.major-card .count { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; opacity: .75; }
.major-card .bar { position: absolute; left: 24px; bottom: 22px; height: 3px; background: currentColor; opacity: .5; }

.dark-section { max-width: none; padding: 100px max(28px, calc((100vw - 1224px) / 2)) 120px; background: var(--navy); color: white; }
.section-head.light > p { color: #9fb1ab; }
.crosswalk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 25px; align-items: stretch; }
.crosswalk-viz { min-height: 580px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; background: rgba(255,255,255,.025); overflow: hidden; }
.crosswalk-viz svg { width: 100%; height: 100%; min-height: 580px; display: block; }
.node-label { fill: #e9f0ed; font-size: 11px; }
.node-count { fill: #91a59e; font-size: 9px; }
.flow { fill: none; stroke: #70c6a6; stroke-opacity: .22; transition: stroke-opacity .2s; }
.flow:hover { stroke-opacity: .8; }
.legend-panel { padding: 30px; border-radius: 5px; background: #203538; }
.legend-panel h3 { margin: 0 0 28px; font-family: Georgia, serif; font-size: 24px; }
.grade-row { display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin: 16px 0; }
.grade { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #10201d; font-weight: 900; }
.grade-A { background: var(--lime); }
.grade-B { background: #8bd6bc; }
.grade-C { background: #ffb88f; }
.grade-D { background: #d8d8d2; }
.grade-row p { margin: 0; color: #aebdb8; font-size: 12px; }
.grade-row b { display: block; color: white; font-size: 13px; }
.grade-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.grade-summary div { text-align: center; }
.grade-summary b { display: block; font-family: Georgia, serif; font-size: 22px; }
.grade-summary span { color: #8fa19b; font-size: 9px; }

.browser-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 760px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.42); overflow: hidden; }
.category-rail { padding: 24px 16px; border-right: 1px solid var(--line); background: rgba(225,222,211,.35); }
.rail-title { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 18px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.rail-title button { border: 0; color: var(--green); background: none; font-size: 11px; cursor: pointer; }
.major-filter { width: 100%; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 8px; padding: 11px 9px; margin: 3px 0; border: 0; border-radius: 4px; text-align: left; color: var(--muted); background: transparent; cursor: pointer; }
.major-filter:hover, .major-filter.active { color: var(--green); background: var(--white); }
.major-filter .index { font-family: Georgia, serif; font-size: 18px; }
.major-filter .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.major-filter .total { font-size: 10px; }
.browser-main { padding: 24px; min-width: 0; }
.filters { display: grid; grid-template-columns: minmax(240px, 1fr) 145px 145px; gap: 10px; }
.search { display: flex; gap: 9px; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.search input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; }
select { height: 44px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--white); font-size: 12px; }
.browser-meta { display: flex; justify-content: space-between; margin: 25px 0 12px; color: var(--muted); font-size: 11px; }
#breadcrumb { color: var(--green); font-weight: 750; }
.occupation-list { border-top: 1px solid var(--line); }
.occupation-row { display: grid; grid-template-columns: 106px minmax(180px, 1.1fr) minmax(200px, .9fr) 115px; gap: 14px; align-items: center; min-height: 76px; padding: 13px 8px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.occupation-row:hover { background: var(--white); }
.occ-code { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.occ-title { font-size: 14px; font-weight: 800; }
.occ-path { margin-top: 3px; color: var(--muted); font-size: 10px; }
.us-match { color: var(--muted); font-size: 11px; }
.us-match b { display: block; color: var(--green); font-size: 12px; }
.us-match .unmatched-text { color: #8b5b48; }
.unmatched-pill { color: #775344; background: #eaded5; }
.detail-unmatched { border-left-color: #9f725f; background: #eee3dc; }
.badges { display: flex; justify-content: flex-end; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; background: #e7e4da; color: var(--muted); font-size: 9px; font-weight: 750; white-space: nowrap; }
.pill.ai-high { background: #ffd9c9; color: #a4360d; }
.pill.ai-medium { background: #fff0b8; color: #805e00; }
.pill.ai-low { background: #dcefdc; color: #286333; }
.load-more { display: block; width: 100%; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--green); background: transparent; cursor: pointer; }
.load-more[hidden] { display: none; }

.profiles-section { padding-top: 80px; }
.profile-search-panel { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.5); }
.profile-search-copy { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-bottom: 14px; }
.profile-search-copy b { font-family: Georgia, "Noto Serif SC", serif; font-size: 22px; }
.profile-search-copy span { color: var(--muted); font-size: 11px; }
.profile-search { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border: 1px solid #c9c8be; border-radius: 4px; background: var(--white); }
.profile-search input { min-width: 0; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.profile-search button { border: 0; color: var(--green); background: transparent; font-size: 11px; cursor: pointer; }
.profile-quick-terms { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.profile-quick-terms button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.profile-quick-terms button:hover { color: white; border-color: var(--green); background: var(--green); }
.profile-results-meta { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.profile-results-meta span { color: var(--green); font-weight: 750; }
.profile-results-meta b { font-weight: 600; }
.profile-feature { min-height: 390px; display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 6px; overflow: hidden; background: var(--green); color: white; }
.feature-copy { padding: 55px; }
.feature-copy .profile-code { color: var(--lime); }
.feature-copy h3 { margin: 10px 0 16px; font-family: Georgia, serif; font-size: 42px; }
.feature-copy > p { color: #c4d7d0; font-size: 16px; line-height: 1.8; }
.feature-meta { display: flex; gap: 8px; margin-top: 28px; }
.feature-meta .pill { background: rgba(255,255,255,.12); color: white; }
.feature-day { padding: 45px; background: #184c41; }
.feature-day h4 { margin: 0 0 25px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9fc4b7; }
.day-item { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.day-item time { color: var(--lime); font-family: ui-monospace, monospace; font-size: 11px; }
.day-item span { font-size: 13px; }
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.profile-card { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.45); cursor: pointer; transition: transform .2s, background .2s; }
.profile-card:hover { transform: translateY(-3px); background: var(--white); }
.profile-code { color: var(--green-2); font-family: ui-monospace, monospace; font-size: 10px; }
.profile-card h3 { margin: 16px 0 8px; font-family: Georgia, "Noto Serif SC", serif; font-size: 21px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.profile-path { margin-top: 12px; color: #84908a; font-size: 9px; }
.profile-card .card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 19px; }
.profile-empty { grid-column: 1 / -1; padding: 55px; border: 1px dashed var(--line); text-align: center; background: rgba(255,255,255,.35); }
.profile-empty h3 { margin: 0 0 8px; font-family: Georgia, serif; }
.profile-empty p { margin: 0; color: var(--muted); font-size: 12px; }

.method-section { max-width: none; padding: 90px max(28px, calc((100vw - 1224px) / 2)); background: #e8e3d6; }
.method-card h2 { max-width: 750px; margin: 0 0 45px; font-family: Georgia, serif; font-size: 46px; line-height: 1.2; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #cbc8bd; border: 1px solid #cbc8bd; }
.method-grid article { padding: 28px; background: #f3f0e8; }
.method-grid article > span { color: var(--orange); font-family: Georgia, serif; font-size: 28px; }
.method-grid h3 { margin: 24px 0 10px; font-size: 16px; }
.method-grid p { margin: 0; color: var(--muted); font-size: 12px; }
.source-note { margin: 28px 0 0; color: var(--muted); font-size: 11px; }
.source-tag { display: inline-flex; vertical-align: middle; margin-left: 6px; padding: 2px 6px; border-radius: 999px; font-family: Inter, sans-serif; font-size: 8px; font-weight: 750; letter-spacing: 0; }
.source-tag.official { color: #1c654d; background: #dcecdf; }
.source-tag.web { color: #80521c; background: #f4e3c8; }
.source-tag.generated { color: #53616b; background: #e0e4e5; }
.source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.source-link { display: flex; flex-direction: column; padding: 13px 15px; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.45); text-decoration: none; }
.source-link:hover { background: var(--white); }
.source-link b { font-size: 11px; }
.source-link span { margin-top: 4px; color: var(--muted); font-size: 9px; }

footer { min-height: 150px; display: flex; align-items: center; gap: 30px; padding: 35px max(28px, calc((100vw - 1224px) / 2)); color: #93a39e; background: #11211e; font-size: 11px; }
footer div { display: flex; align-items: center; color: white; }
footer p { margin-right: auto; }

dialog { width: min(980px, calc(100vw - 32px)); max-height: 90vh; padding: 0; border: 0; border-radius: 7px; color: var(--ink); background: var(--paper); box-shadow: 0 35px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(10,24,20,.72); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; float: right; top: 15px; right: 15px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; color: white; background: var(--green); font-size: 25px; cursor: pointer; }
.detail-hero { padding: 50px 55px 35px; background: var(--white); }
.detail-hero h2 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: 42px; }
.detail-summary { max-width: 760px; color: var(--muted); font-size: 16px; }
.detail-match { display: flex; gap: 12px; align-items: center; margin-top: 25px; padding: 16px; border-left: 3px solid var(--green); background: #eef2e8; }
.detail-match .arrow { color: var(--orange); font-size: 20px; }
.detail-body { padding: 35px 55px 55px; }
.detail-body h3 { margin: 34px 0 16px; font-family: Georgia, serif; font-size: 25px; }
.detail-body h3:first-child { margin-top: 0; }
.detail-day { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.detail-day div { min-height: 120px; padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.detail-day time { display: block; margin-bottom: 15px; color: var(--green); font-family: ui-monospace, monospace; font-size: 10px; }
.detail-day span { font-size: 11px; }
.ksav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.ksav-card { padding: 18px; color: white; background: var(--green); }
.ksav-card:nth-child(2) { background: #25785e; }
.ksav-card:nth-child(3) { background: #3b836d; }
.ksav-card:nth-child(4) { color: var(--ink); background: var(--lime); }
.ksav-letter { font-family: Georgia, serif; font-size: 34px; }
.ksav-card h4 { margin: 3px 0 13px; font-size: 12px; }
.ksav-card ul { margin: 0; padding-left: 15px; font-size: 10px; line-height: 1.75; }
.ai-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.meter { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.meter-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; }
.meter-track { height: 7px; margin-top: 12px; border-radius: 9px; background: #dfddd5; overflow: hidden; }
.meter-track i { display: block; height: 100%; background: var(--orange); }
.meter:nth-child(2) .meter-track i { background: var(--green-2); }
.task-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 25px; padding: 0; list-style: none; }
.task-list li { position: relative; padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.task-list li::before { content: "·"; position: absolute; left: 4px; color: var(--orange); font-weight: 900; }
.empty-detail { padding: 70px 55px; }

@media (max-width: 900px) {
  nav, .version { display: none; }
  .topbar { height: 66px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 60px; }
  .hero-orbit { width: min(420px, 90vw); }
  .stat-strip { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .section-head { display: block; }
  .section-head > p { width: auto; margin-top: 18px; }
  .major-map { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .major-card:nth-child(n) { grid-column: span 1; }
  .crosswalk-layout { grid-template-columns: 1fr; }
  .browser-shell { grid-template-columns: 1fr; }
  .category-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  #major-list { display: flex; overflow-x: auto; }
  .major-filter { min-width: 145px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search { grid-column: span 2; }
  .occupation-row { grid-template-columns: 90px 1fr 100px; }
  .us-match { display: none; }
  .profile-feature { grid-template-columns: 1fr; }
  .profile-search-copy { display: block; }
  .profile-search-copy span { display: block; margin-top: 6px; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid, .ksav-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-day { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  h1 { font-size: 44px; }
  .hero-orbit { margin-top: -10px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div { border-right: 0; padding: 0; }
  .section { padding-left: 18px; padding-right: 18px; }
  .major-map, .profile-grid { grid-template-columns: 1fr; }
  .browser-main { padding: 14px; }
  .filters { display: flex; flex-direction: column; }
  .occupation-row { grid-template-columns: 80px 1fr; }
  .badges { grid-column: 2; justify-content: flex-start; }
  .profile-feature { min-height: auto; }
  .profile-results-meta { display: block; }
  .profile-results-meta b { display: block; margin-top: 5px; }
  .feature-copy, .feature-day { padding: 30px; }
  .method-grid, .ksav-grid, .ai-meter, .task-list { grid-template-columns: 1fr; }
  .detail-hero, .detail-body { padding-left: 24px; padding-right: 24px; }
  .detail-day { grid-template-columns: 1fr; }
}
