:root {
  --ink: #16323b;
  --muted: #61747a;
  --teal: #087f8c;
  --teal-2: #16a6a3;
  --teal-soft: #e6f5f3;
  --navy: #123a4a;
  --coral: #ef6d62;
  --gold: #e8a83d;
  --paper: #fffdf8;
  --canvas: #f3f8f6;
  --line: #dce8e4;
  --shadow: 0 18px 55px rgba(17, 64, 71, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(22, 166, 163, .10), transparent 28rem),
    linear-gradient(180deg, #fbfdfb 0, var(--canvas) 100%);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-link { padding: 0; border: 0; color: var(--teal); background: transparent; font-weight: 800; }
.strength-card, .matrix-item { color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.strength-card:focus-visible, .matrix-item:focus-visible, .score:focus-visible, .btn:focus-visible, .page-dot:focus-visible { outline: 3px solid rgba(8,127,140,.32); outline-offset: 3px; }
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(220, 232, 228, .9);
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  max-width: 1160px; height: 72px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--ink); padding: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  color: white; background: linear-gradient(145deg, var(--teal-2), var(--teal)); box-shadow: 0 8px 24px rgba(8,127,140,.22);
}
.brand-copy { display: grid; text-align: left; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.nav-status { font-size: 13px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.page { max-width: 1160px; margin: 0 auto; padding: 42px 24px 80px; }
.hero {
  position: relative; overflow: hidden; min-height: 460px; padding: 56px;
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 36px;
  border: 1px solid var(--line); border-radius: 34px; background: rgba(255,253,248,.92); box-shadow: var(--shadow);
}
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -160px; top: -180px; background: linear-gradient(145deg, rgba(22,166,163,.22), rgba(232,168,61,.13)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.hero h1 { margin: 12px 0 14px; font-size: clamp(42px, 6vw, 72px); line-height: 1.05; letter-spacing: -.06em; color: var(--navy); }
.hero p { max-width: 670px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { border: 0; border-radius: 14px; min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; transition: .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--teal), var(--teal-2)); box-shadow: 0 10px 24px rgba(8,127,140,.22); }
.btn-secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
.btn-danger { color: #9e302b; background: #fff0ef; border: 1px solid #f5c6c2; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; }
.compass { width: min(290px, 72vw); aspect-ratio: 1; position: relative; border-radius: 50%; border: 1px solid rgba(8,127,140,.20); background: radial-gradient(circle, white 0 28%, var(--teal-soft) 29% 52%, white 53% 100%); box-shadow: inset 0 0 0 22px rgba(255,255,255,.55), 0 25px 60px rgba(8,127,140,.15); }
.compass::before, .compass::after { content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(8,127,140,.28); border-radius: 50%; }
.compass::after { inset: 42%; background: var(--teal); border: 8px solid white; box-shadow: 0 0 0 1px var(--line); }
.needle { position: absolute; left: 50%; top: 11%; width: 5px; height: 40%; border-radius: 99px; background: linear-gradient(var(--coral) 0 48%, var(--navy) 49% 100%); transform-origin: 50% 98%; transform: translateX(-50%) rotate(28deg); }
.facts { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact, .info-card, .notice, .panel { background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: var(--radius); }
.fact { padding: 20px; }
.fact strong { display: block; color: var(--teal); font-size: 28px; line-height: 1; }
.fact span { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; }
.section { margin-top: 52px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; }
.section-head p { margin: 7px 0 0; color: var(--muted); }
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info-card { padding: 22px; min-height: 170px; }
.info-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; font-weight: 900; }
.info-card h3 { margin: 0 0 8px; }
.info-card p { margin: 0; color: var(--muted); font-size: 14px; }
.c-executing { --domain: #7652d6; --domain-soft: #f0ebff; }
.c-influencing { --domain: #d88a12; --domain-soft: #fff3dc; }
.c-relationship { --domain: #258fbd; --domain-soft: #e8f6fc; }
.c-thinking { --domain: #18896f; --domain-soft: #e3f6ef; }
.info-icon, .domain-badge { color: var(--domain); background: var(--domain-soft); }
.notice { margin-top: 42px; padding: 24px 26px; }
.notice h3 { margin: 0 0 8px; font-size: 18px; }
.notice p { margin: 0; color: var(--muted); font-size: 14px; }
.footer { border-top: 1px solid var(--line); padding: 28px 24px 36px; color: var(--muted); font-size: 12px; }
.footer-inner { max-width: 1160px; margin: auto; display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }

.exam-wrap { max-width: 940px; margin: auto; }
.progress-panel { position: sticky; top: 84px; z-index: 30; padding: 16px 18px; background: rgba(255,253,248,.94); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 28px rgba(18,58,74,.08); backdrop-filter: blur(16px); }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; }
.progress-track { margin-top: 11px; height: 9px; overflow: hidden; border-radius: 99px; background: #dcebe7; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); border-radius: 99px; transition: width .25s; }
.pages { display: flex; gap: 7px; overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: none; }
.page-dot { flex: 0 0 34px; height: 34px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 800; }
.page-dot.active { color: white; background: var(--teal); }
.page-dot.done { color: var(--teal); background: var(--teal-soft); }
.question-list { margin-top: 20px; display: grid; gap: 16px; }
.question-card { padding: 22px; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 5px 18px rgba(18,58,74,.04); }
.question-card.answered { border-color: #b9dcd5; }
.q-number { color: var(--muted); font: 700 12px/1.2 ui-monospace, monospace; padding-bottom: 13px; border-bottom: 1px solid #edf2f0; }
.q-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; margin-top: 15px; }
.choice-copy { min-height: 76px; display: flex; gap: 10px; align-items: flex-start; padding: 15px; color: var(--ink); border: 1px solid #e5ece9; border-radius: 17px; background: #fbfcfb; font-weight: 700; text-align: left; }
.choice-copy.active-left { border-color: rgba(239,109,98,.55); background: #fff1ef; }
.choice-copy.active-right { border-color: rgba(24,137,111,.50); background: #eaf8f3; }
.letter { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 900; }
.letter-a { color: #b9433b; background: #ffe0dd; }
.letter-b { color: #087259; background: #d8f3e9; }
.scale { display: flex; gap: 10px; align-items: center; }
.scale-wrap { display: grid; gap: 5px; }
.scale-hints { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; }
.score { width: 42px; height: 42px; padding: 0; border-radius: 50%; background: white; border: 2px solid #d8e2df; transition: .16s ease; }
.score:nth-child(1), .score:nth-child(2) { border-color: #f39a93; }
.score:nth-child(4), .score:nth-child(5) { border-color: #65bca7; }
.score:nth-child(1), .score:nth-child(5) { width: 50px; height: 50px; }
.score.selected { transform: scale(.9); box-shadow: inset 0 0 0 8px white; }
.score.selected.left { background: var(--coral); }
.score.selected.middle { background: var(--navy); }
.score.selected.right { background: #1c9b7d; }
.exam-nav { position: sticky; bottom: 14px; z-index: 20; margin-top: 20px; padding: 13px; display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.96); box-shadow: 0 18px 45px rgba(18,58,74,.14); backdrop-filter: blur(14px); }

.result-wrap { max-width: 1040px; margin: auto; }
.result-hero { padding: 32px 36px; display: flex; flex-direction: column; align-items: stretch; gap: 24px; border: 1px solid #dcebe7; border-radius: 20px; background: #f0f8f5; }
.result-hero h1 { margin: 14px 0 12px; font-size: clamp(26px,3vw,36px); line-height: 1.35; letter-spacing: -.025em; }
.result-strengths { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.result-strength-name { display: inline-flex; align-items: center; gap: 20px; white-space: nowrap; }
.result-strength-name + .result-strength-name::before { content: ""; width: 1px; height: .7em; background: #bdd6cf; }
.result-hero p { margin: 0; color: var(--muted); }
.result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.result-actions .btn { min-height: 44px; border-radius: 11px; font-size: 14px; }
.result-restart { min-height: 44px; margin-left: auto; padding: 0 4px; border: 0; color: var(--muted); background: transparent; font-size: 13px; }
.result-restart span { margin-left: 5px; }
.result-restart:hover { color: var(--teal); }
.report-downloads { margin-top: 28px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 20px; background: #f0f8f5; }
.report-downloads h2 { margin: 0 0 6px; font-size: 22px; }
.report-downloads p { margin: 0; color: var(--muted); font-size: 13px; }
.download-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  .report-downloads { padding: 22px 18px; flex-direction: column; align-items: stretch; }
  .download-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
  .download-actions .btn { padding: 0 8px; font-size: 13px; }
}
.result-restart:focus-visible { outline: 3px solid rgba(8,127,140,.32); outline-offset: 3px; border-radius: 4px; }
.top-five { display: grid; grid-template-columns: 1fr; gap: 14px; }
.top-five .strength-card { grid-column: 1 / -1; display: grid; grid-template-columns: 150px minmax(0,1fr); grid-template-rows: auto 1fr; column-gap: 26px; min-height: 0; cursor: default; padding: 24px; box-shadow: 0 6px 18px rgba(18,58,74,.035); }
.top-five .strength-card:nth-last-child(-n+2) { grid-column: 1 / -1; }
.strength-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.strength-heading .domain-badge { margin-top: 0; }
.top-five .strength-card h3 { grid-column: 1; margin: 12px 0 0; font-size: 26px; }
.strength-explanation { grid-column: 2; grid-row: 1 / 3; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-content: center; }
.strength-explanation > div { border-left: 1px solid #e5eeea; padding-left: 20px; }
.strength-explanation > div + div { border-top: 0; padding-top: 0; }
.strength-explanation dt { color: var(--domain); font-size: 12px; font-weight: 800; margin-bottom: 5px; }
.strength-explanation dd { margin: 0; color: #445f65; font-size: 14px; line-height: 1.75; }
@media (max-width: 760px) {
  .top-five .strength-card { display: flex; flex-direction: column; padding: 22px; }
  .top-five .strength-card h3 { margin: 12px 0 18px; }
  .strength-explanation { grid-template-columns: 1fr; gap: 14px; }
  .strength-explanation > div { border-left: 0; padding-left: 0; }
  .strength-explanation > div + div { border-top: 1px solid #edf2f0; padding-top: 12px; }
}
.strength-card { position: relative; min-height: 215px; padding: 18px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: 0 8px 22px rgba(18,58,74,.06); }
.strength-card:first-child { border-color: #e8bd63; background: linear-gradient(180deg, #fffaf0, white); }
.rank { font-weight: 900; color: var(--gold); }
.strength-card h3 { margin: 22px 0 6px; font-size: 22px; }
.strength-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.domain-badge { display: inline-flex; width: fit-content; margin-top: auto; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.domain-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.domain-stat { padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.domain-stat-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; }
.domain-stat { padding: 20px; }
.domain-stat-head { align-items: center; }
.domain-percent { color: var(--domain); font-size: 24px; line-height: 1.2; }
.domain-description { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.domain-leading { border-color: color-mix(in srgb, var(--domain) 32%, white); background: var(--domain-soft); }
.domain-caption { min-height: 24px; margin-top: 12px; display: flex; align-items: center; color: #6c7f83; font-size: 11px; }
.domain-leading-badge { color: var(--domain); font-weight: 800; }
.domain-leading-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: middle; border-radius: 50%; background: var(--domain); }
.domain-footnote { margin: 12px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.mini-track { height: 8px; margin-top: 14px; border-radius: 99px; background: #edf2f0; overflow: hidden; }
.mini-track span { display: block; height: 100%; border-radius: inherit; background: var(--domain); }
.ai-section { position: relative; }
.ai-section-head { align-items: flex-end; }
.ai-kicker { display: block; margin-bottom: 5px; color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.ai-generated-badge { flex: none; padding: 7px 11px; border: 1px solid #b9ddd5; border-radius: 999px; color: #0d7666; background: #eef9f6; font-size: 12px; font-weight: 900; }
.ai-report-shell { overflow: hidden; border: 1px solid #cfe3de; border-radius: 24px; background: white; box-shadow: 0 12px 34px rgba(18,58,74,.07); }
.ai-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 9px; border-bottom: 1px solid #deebe7; background: #f2f8f6; }
.ai-tab { min-height: 46px; padding: 8px 10px; border: 0; border-radius: 13px; color: #587076; background: transparent; font-weight: 800; line-height: 1.35; }
.ai-tab:hover { color: var(--teal); background: rgba(255,255,255,.72); }
.ai-tab.active { color: white; background: var(--teal); box-shadow: 0 7px 16px rgba(8,127,140,.2); }
.ai-tab:disabled { cursor: wait; opacity: .66; }
.ai-tab:focus-visible, .pill:focus-visible, .search:focus-visible, .text-link:focus-visible { outline: 3px solid rgba(8,127,140,.32); outline-offset: 3px; }
.ai-content-block p { max-width: 75ch; }
.ai-report-content { line-height: 1.85; }
.ranking tbody tr:last-child td { border-bottom: 0; }
.ranking tbody tr:hover { background: #f3f8f6; }
.ranking td:last-child { color: #526b70; line-height: 1.8; }
.ai-report-content { min-height: 250px; padding: 28px 30px; }
.ai-content-block + .ai-content-block { margin-top: 25px; padding-top: 23px; border-top: 1px solid #e8efed; }
.ai-content-block h3, .ai-management-card h3 { margin: 0 0 10px; color: #153d47; font-size: 18px; }
.ai-content-block p, .ai-content-block li, .ai-management-card p { color: #445f65; line-height: 1.85; white-space: pre-line; }
.ai-content-block p { margin: 0; }
.ai-content-block ul { margin: 0; padding-left: 1.35em; }
.ai-content-block li + li { margin-top: 9px; }
.ai-labels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ai-label { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #edf9f6, #f8fbfa); }
.ai-label strong { color: #087f75; font-size: 17px; }
.ai-label span { color: #526b70; line-height: 1.7; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ai-chips span { padding: 4px 9px; border-radius: 999px; color: #087f75; background: #e8f7f3; font-size: 12px; font-weight: 800; }
.ai-linkage-list { display: grid; gap: 12px; }
.ai-linkage { padding: 15px 17px; border: 1px solid #deebe7; border-radius: 15px; background: #fbfdfc; }
.ai-linkage p { margin: 5px 0 0; color: #445f65; line-height: 1.8; }
.ai-job-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ai-job-group + .ai-job-group { margin-top: 28px; }
.ai-group-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ai-group-title h3 { margin: 0; }
.ai-group-title > span { padding: 5px 9px; border-radius: 999px; color: #087f75; background: #e8f7f3; font-size: 12px; font-weight: 800; }
.ai-job-card { padding: 20px; border: 1px solid #d9e9e5; border-radius: 18px; background: #fbfdfc; }
.ai-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ai-card-head h4 { margin: 0; color: #153d47; font-size: 19px; }
.ai-card-head > span { flex: none; padding: 5px 8px; border-radius: 999px; color: #087f75; background: #e8f7f3; font-size: 12px; font-weight: 800; }
.ai-job-card p { margin: 8px 0 0; color: #526b70; line-height: 1.72; }
.ai-job-card p strong { color: #284e56; }
.ai-search-words { margin-top: 13px; }
.ai-search-words > strong { color: #284e56; font-size: 14px; }
.ai-search-words .ai-chips { margin: 7px 0 0; }
.ai-management-list { display: grid; gap: 13px; }
.ai-management-card { padding: 18px 20px; border: 1px solid #dceae6; border-radius: 17px; background: #fbfdfc; }
.ai-management-card p { margin: 7px 0 0; }
.ai-management-card p strong { color: #284e56; }
.ai-week-list { display: grid; gap: 16px; margin: 24px 0; }
.ai-week-card { padding: 22px; border: 1px solid #d9e9e5; border-radius: 19px; background: #fbfdfc; }
.ai-week-title { display: flex; align-items: baseline; gap: 12px; }
.ai-week-title > span { color: #087f75; font-weight: 900; }
.ai-week-title h3 { margin: 0; color: #153d47; font-size: 19px; }
.ai-week-meta { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin: 16px 0; }
.ai-week-meta span { padding: 11px 13px; border-radius: 12px; color: #526b70; background: #eef7f4; line-height: 1.55; }
.ai-week-meta strong { display: block; margin-bottom: 2px; color: #284e56; font-size: 12px; }
.ai-week-card h4 { margin: 16px 0 7px; color: #284e56; }
.ai-week-card ol { margin: 0; padding-left: 1.4em; color: #445f65; line-height: 1.8; }
.ai-week-card > p { color: #445f65; line-height: 1.75; }
.ai-route-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 22px 0 6px; padding: 5px; border-radius: 14px; background: #eaf4f1; }
.ai-route-switch button { min-height: 42px; padding: 8px 18px; border: 0; border-radius: 10px; color: #587076; background: transparent; font-weight: 900; }
.ai-route-switch button.active { color: white; background: var(--teal); box-shadow: 0 5px 12px rgba(8,127,140,.2); }
.ai-plan-route { display: none; }
.ai-plan-route[hidden] { display: none !important; }
.ai-plan-route.active { display: block; }
.ai-state { min-height: 195px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.ai-state strong { color: #173f48; font-size: 18px; }
.ai-state p { max-width: 560px; margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.ai-loading { flex-direction: row; gap: 17px; text-align: left; }
.ai-loader { width: 38px; height: 38px; flex: none; border: 4px solid #d7ebe6; border-top-color: var(--teal); border-radius: 50%; animation: ai-spin .85s linear infinite; }
.ai-error .btn { margin-top: 16px; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.matrix { display: grid; grid-template-columns: 1fr; gap: 0; }
.matrix-column { padding: 24px 0; display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: start; gap: 24px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.matrix-column:last-child { border-bottom: 0; }
.matrix-title { padding: 12px 0; color: var(--ink); background: transparent; font-size: 15px; font-weight: 800; text-align: left; white-space: nowrap; }
.matrix-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--domain); vertical-align: middle; }
.matrix-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px 14px; margin-top: 0; }
.matrix-item { min-height: 44px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; border: 0; border-radius: 7px; background: transparent; }
.matrix-item.top { color: var(--domain); background: var(--domain-soft); }
.matrix-item small { order: 2; color: var(--muted); font-size: 11px; font-weight: 400; }
.matrix-item strong { font-size: 14px; font-weight: 500; }
.matrix-item.top strong { font-weight: 800; }
.matrix-item:hover { background: var(--domain-soft); }
.table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; }
.table-tools { padding: 16px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { border: 1px solid var(--line); border-radius: 999px; background: white; padding: 7px 11px; font-size: 12px; font-weight: 800; color: var(--muted); }
.pill.active { color: white; background: var(--navy); border-color: var(--navy); }
.search { width: 240px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; color: var(--ink); background: #fbfcfb; }
.ranking { width: 100%; border-collapse: collapse; }
.ranking th:nth-child(1) { width: 72px; }
.ranking th:nth-child(2) { width: 90px; }
.ranking th:nth-child(3) { width: 130px; }
.ranking td:nth-child(1), .ranking td:nth-child(2), .ranking td:nth-child(3) { white-space: nowrap; }
.ranking td .domain-badge { margin-top: 0; }
.ranking th, .ranking td { padding: 13px 16px; border-bottom: 1px solid #edf2f0; text-align: left; vertical-align: top; }
.ranking th { color: var(--muted); background: #f6f9f8; font-size: 12px; }
.ranking td { font-size: 14px; }
.ranking tr.top-row { background: #f4fbf9; }
.score-number { font: 800 13px ui-monospace, monospace; }
.empty { padding: 70px 24px; text-align: center; border: 1px solid var(--line); border-radius: 26px; background: white; }
.empty h1 { margin: 8px 0; }
.empty p { color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(9,31,37,.55); }
.modal.open { display: flex; }
.modal-card { width: min(560px, 100%); max-height: min(760px, 88vh); overflow: auto; position: relative; padding: 28px; border-radius: 26px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-card h2 { margin: 6px 0 10px; font-size: 30px; }
.modal-card p { color: var(--muted); }
.modal-card .detail-intro { font-size: 13px; margin: 0 0 20px; }
.detail-explanation { display: grid; gap: 12px; margin: 0; }
.detail-explanation > div { padding: 16px 18px; border-radius: 12px; background: #f3f8f6; }
.detail-explanation dt { color: var(--domain); font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.detail-explanation dd { margin: 0; color: #445f65; font-size: 15px; line-height: 1.8; }
.modal-card .detail-note { margin: 18px 0 0; font-size: 12px; line-height: 1.7; }
.close { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf3f1; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; color: white; background: var(--navy); border-radius: 999px; box-shadow: var(--shadow); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 40px; }
  .hero-visual { display: none; }
  .top-five { grid-template-columns: 1fr; }
  .domain-grid, .domain-bars { grid-template-columns: repeat(2, 1fr); }
  .q-body { grid-template-columns: 1fr; }
  .scale-wrap { order: 3; }
  .scale { justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar-inner { height: 64px; padding: 0 16px; }
  .brand-copy small, .nav-status { display: none; }
  .page { padding: 24px 14px 64px; }
  .hero { min-height: 0; padding: 30px 22px; border-radius: 25px; }
  .hero h1 { font-size: 43px; }
  .hero p { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px; }
  .domain-grid, .domain-bars, .matrix, .top-five { grid-template-columns: 1fr; }
  .domain-bars { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .domain-stat { min-width: 0; padding: 16px 13px; border-radius: 16px; }
  .domain-stat-head { font-size: 14px; gap: 6px; }
  .domain-percent { font-size: 21px; }
  .domain-description { font-size: 12px; }
  .question-card { padding: 17px; }
  .choice-copy { min-height: 0; }
  .scale { gap: 8px; }
  .score { width: 38px; height: 38px; }
  .score:nth-child(1), .score:nth-child(5) { width: 46px; height: 46px; }
  .exam-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .exam-nav .btn:last-child { grid-column: 1 / -1; }
  .result-hero { padding: 22px 18px 16px; gap: 20px; border-radius: 16px; }
  .result-hero h1 { margin: 12px 0; font-size: 18px; letter-spacing: 0; }
  .result-strengths { gap: 7px; }
  .result-strength-name { display: inline-block; padding: 5px 8px; border: 1px solid #d7e8e2; border-radius: 8px; background: rgba(255,255,255,.8); }
  .result-strength-name + .result-strength-name::before { content: none; }
  .result-hero p { font-size: 13px; line-height: 1.75; }
  .result-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
  .result-actions .btn { padding: 0 8px; font-size: 13px; }
  .result-restart { grid-column: 1 / -1; justify-self: center; margin: 0; min-height: 36px; }
  .ai-section-head { align-items: flex-start; }
  .ai-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .ai-tabs::-webkit-scrollbar { display: none; }
  .ai-tab { min-width: 0; font-size: 13px; }
  .ai-tab:last-child { grid-column: 1 / -1; }
  .ai-report-content { min-height: 285px; padding: 22px 18px; }
  .ai-labels { grid-template-columns: 1fr; }
  .ai-job-list { grid-template-columns: 1fr; }
  .ai-route-switch { display: grid; width: 100%; }
  .ai-route-switch button { padding-inline: 10px; }
  .ai-week-meta { grid-template-columns: 1fr; }
  .ai-job-card, .ai-week-card { padding: 17px; }
  .ai-loading { align-items: center; }
  .table-tools { flex-direction: column; }
  .search { width: 100%; }
  .table-panel { overflow-x: auto; }
  .ranking { min-width: 0; display: block; }
  .ranking thead { display: none; }
  .ranking tbody { display: block; }
  .ranking tbody tr { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; padding: 15px; gap: 8px; border-bottom: 1px solid var(--line); }
  .ranking td { padding: 0; border: 0; min-width: 0; }
  .ranking td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .ranking td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .ranking td:nth-child(3) { grid-column: 3; grid-row: 1; }
  .ranking td:nth-child(4) { grid-column: 2 / -1; grid-row: 2; font-size: 13px; }
  .matrix { gap: 0; }
  .matrix-column { padding: 18px 0; grid-template-columns: minmax(0,1fr); gap: 10px; }
  .matrix-title { padding: 0; }
  .matrix-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .matrix-item { padding: 10px 8px; gap: 4px; }
}
@media print {
  .topbar, .footer, .result-actions, .table-tools, .matrix-section, .toast { display: none !important; }
  body { background: white; }
  .page { max-width: none; padding: 0; }
  .result-hero, .strength-card, .domain-stat, .table-panel { break-inside: avoid; box-shadow: none; }
}
