:root {
  color-scheme: dark;
  --bg: #07100d;
  --surface: #101d17;
  --line: #304238;
  --text: #e8f2ea;
  --muted: #a1b4a6;
  --green: #9fe870;
  --warm: #eac675;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); font: 15px/1.65 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
.wrap { width: min(100% - 48px, 1024px); margin-inline: auto; }
.site-header { border-top: 3px solid var(--green); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand b { display: block; font-size: 16px; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.nav nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 13px; }
.nav a:hover, .text-button:hover, footer a:hover { color: var(--green); }
.intro { padding: 32px 0 22px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.eyebrow { color: var(--green); font: 700 11px/1.5 ui-monospace, monospace; }
h1 { font-size: 28px; line-height: 1.3; margin: 8px 0 0; overflow-wrap: anywhere; }
.test-meta { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.progress-head { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
progress { display: block; width: 100%; height: 4px; appearance: none; border: 0; background: var(--line); margin-top: 10px; }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.question-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.question-context span:last-child { font-family: ui-monospace, monospace; color: var(--warm); }
.question-title { min-height: 116px; display: flex; align-items: center; padding: 20px 0; margin: 0; font-size: 25px; line-height: 1.6; font-weight: 650; overflow-wrap: anywhere; }
.question-title:focus, .result-code:focus { outline: none; }
.answer-scale { border: 0; padding: 12px 0 30px; margin: 0; min-width: 0; }
.answer-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: auto; }
.scale-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; text-align: center; min-width: 0; }
.scale-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.scale-number { display: grid; place-items: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; background: var(--surface); border: 1px solid #536b5b; font: 700 18px ui-monospace, monospace; transition: background .12s, color .12s; }
.scale-label { color: var(--muted); font-size: 14px; line-height: 1.6; text-wrap: balance; }
.scale-option:first-child .scale-number { border-color: var(--green); }
.scale-option:last-child .scale-number { border-color: var(--warm); }
.scale-option:hover .scale-number { background: #25382c; }
.scale-option input:checked + .scale-number { background: var(--green); border-color: var(--green); color: var(--bg); }
.scale-option input:checked ~ .scale-label { color: var(--text); }
.scale-option input:focus-visible + .scale-number { outline: 2px solid var(--warm); outline-offset: 5px; }
.quiz-actions { padding: 22px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.step-actions { display: flex; gap: 12px; }
.button { border: 1px solid #4b6554; border-radius: 4px; padding: 10px 22px; min-height: 44px; background: var(--surface); color: var(--text); font-weight: 650; }
.button.primary { min-width: 120px; background: var(--green); color: var(--bg); border-color: var(--green); }
.button:hover:not(:disabled) { filter: brightness(1.08); }
.text-button { border: 0; background: transparent; color: var(--muted); padding: 10px 0; min-height: 44px; }
.result-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding: 30px 0; border-top: 1px solid var(--line); }
.result-code { color: var(--green); font: 700 48px/1.2 ui-monospace, monospace; margin: 12px 0; }
.result-description { color: var(--muted); margin-bottom: 24px; }
.dimension-result { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.dimension-result:last-child { margin-bottom: 0; }
.dimension-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dimension-heading h3 { font-size: 16px; margin: 0; }
.dimension-score { color: var(--warm); font-size: 12px; }
.dimension-poles { display: flex; justify-content: space-between; margin: 12px 0 9px; font-size: 12px; color: var(--muted); }
.dimension-poles .is-active { color: var(--green); font-weight: 700; }
.dimension-meter { position: relative; height: 8px; margin-inline: 6px; background: linear-gradient(90deg, #466b37 0%, #314439 50%, #746237 100%); border-radius: 2px; }
.dimension-meter::before { content: ""; position: absolute; left: 50%; top: -4px; width: 1px; height: 16px; background: #a1b4a6; }
.dimension-marker { position: absolute; left: var(--position); top: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; border: 2px solid var(--text); background: var(--bg); border-radius: 50%; }
.dimension-description { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0 24px; }
.score-details { color: var(--muted); font-size: 13px; padding: 8px 0 24px; }
.score-details summary { cursor: pointer; color: var(--text); }
.score-details p { max-width: 760px; }
.page-footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 12px; }
.page-footer p { margin: 0 0 12px; }
.archive-links { display: flex; gap: 18px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 66px; gap: 12px; }
  .nav nav a:not(:last-child) { display: none; }
  .intro { display: block; padding: 24px 0 20px; }
  h1 { font-size: 24px; }
  .test-meta { margin-top: 8px; }
  .question-context { margin-top: 22px; }
  .question-title { font-size: 21px; min-height: 148px; padding: 18px 0; }
  .answer-choices { gap: 4px; }
  .scale-number { width: 44px; height: 44px; font-size: 16px; }
  .scale-label { font-size: 12px; min-height: 40px; max-width: 64px; }
  .answer-scale { padding: 4px 0 18px; }
  .quiz-actions { gap: 10px; padding: 18px 0; }
  .step-actions { gap: 8px; }
  .button { padding: 10px 16px; }
  .button.primary { min-width: 100px; }
  .text-button { font-size: 13px; }
  .result-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .result-code { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
