:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #5b6675;
  --line: #e3e6ea;
  --accent: #1f4e79;
  --paper: #fbfaf7;
  --surface: #fff;
  --good: #2d6656;
  --improve: #87580d;
  --severe: #a33630;
  --focus: #376f9f;
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1:focus, #main:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; font-weight: 650; }
p { color: var(--muted); }
.wrap { width: 100%; max-width: 1040px; padding: 0 28px; margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 88px; gap: 24px; }
.wordmark { color: var(--ink); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; text-decoration: none; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 40px; color: var(--muted); font-size: .875rem; }
.footer-inner { display: flex; gap: 32px; justify-content: space-between; }
.footer-inner > span { font-weight: 650; color: var(--ink); }
.footer-inner p { max-width: 520px; }
.skip-link { position: absolute; top: 10px; left: 16px; z-index: 10; background: var(--paper); padding: 12px 16px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow, .section-eyebrow { color: var(--accent); font-size: .875rem; letter-spacing: .08em; font-weight: 650; margin-bottom: 20px; }
.hero-title { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.35; letter-spacing: -.025em; white-space: pre-line; }
.lede { font-size: 1.125rem; line-height: 1.8; max-width: 680px; margin-top: 24px; }
.meta { font-size: .875rem; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid transparent; border-radius: 6px; padding: 10px 22px; font-size: 1rem; font-weight: 600; text-decoration: none; line-height: 1.5; transition: background-color .15s ease, border-color .15s ease; }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover { background: #173c5e; border-color: #173c5e; text-decoration: none; }
.button-secondary { color: var(--ink); background: transparent; border-color: #bdc5ce; }
.button-secondary:hover { background: #f0f2f3; border-color: #909cab; text-decoration: none; }
.button-quiet { color: var(--accent); background: transparent; padding-left: 8px; padding-right: 8px; }
.button-quiet:hover { text-decoration: underline; }
.check-hero { padding: 76px 0 56px; max-width: 820px; }
.check-form { margin-top: 36px; }
.check-form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 10px; }
.input-row { display: flex; gap: 12px; max-width: 760px; }
input { min-width: 0; width: 100%; min-height: 52px; border: 1px solid #aeb8c4; border-radius: 6px; padding: 12px 16px; background: var(--surface); color: var(--ink); }
input::placeholder { color: #788390; opacity: 1; }
input[aria-invalid="true"] { border-color: var(--severe); }
.input-row .button { flex: 0 0 auto; min-height: 52px; padding: 12px 28px; }
.form-note { margin-top: 14px; font-size: .9375rem; }
.check-form > .meta { margin-top: 4px; }
.input-error { color: var(--severe); font-size: .9375rem; margin-top: 12px; }
.intro-angles { padding: 36px 0; border-top: 1px solid var(--line); }
.intro-angles > h2 { font-size: 1.25rem; margin-bottom: 28px; }
.angle-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.intro-angle { padding-right: 8px; }
.angle-rule { display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: 16px; }
.intro-angle h3 { font-size: 1.125rem; margin-bottom: 8px; }
.intro-angle p { font-size: 1rem; }
.sampling-note { margin-top: 24px; }
.method-section { border-top: 1px solid var(--line); }
.method-details { border-bottom: 1px solid var(--line); }
.method-details > summary { cursor: pointer; padding: 18px 24px 18px 0; font-size: .9375rem; font-weight: 550; }
.method-content { padding: 0 20px 24px 0; max-width: 800px; }
.method-content p + p { margin-top: 12px; }
.method-content p { font-size: .9375rem; }
.no-script { padding-top: 48px; padding-bottom: 48px; }
.progress-panel { max-width: 700px; margin: 0 auto; padding: 72px 0 32px; min-height: 650px; }
.progress-domain { color: var(--ink); margin: 28px 0 24px; overflow-wrap: anywhere; }
.progress-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.progress-step { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 62px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step-mark { display: block; height: 11px; width: 11px; margin-left: 3px; border: 1px solid #a8b2bd; border-radius: 50%; }
.step-name { color: var(--muted); }
.step-state { color: var(--muted); font-size: .875rem; }
.is-current .step-mark { border: 3px solid var(--accent); width: 13px; height: 13px; margin-left: 2px; animation: breathe 1.8s ease-in-out infinite; }
.is-current .step-name, .is-current .step-state { color: var(--accent); font-weight: 650; }
.is-complete .step-mark { background: var(--good); border-color: var(--good); }
.is-complete .step-name { color: var(--ink); }
.progress-detail { min-height: 52px; margin-top: 20px; font-size: .9375rem; }
.progress-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; }
@keyframes breathe { 50% { opacity: .45; } }
.report-header { padding: 56px 0 32px; }
.report-title { font-size: clamp(1.875rem, 4.7vw, 2.75rem); line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.report-metadata { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; }
.report-metadata p { font-size: .875rem; }
.report-summary { color: var(--ink); max-width: 820px; font-size: 1.125rem; line-height: 1.8; margin-top: 24px; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.report-actions .button { font-size: .9375rem; min-height: 44px; }
.share-feedback { font-size: .875rem; color: var(--accent); margin-top: 10px; }
.share-feedback:empty { display: none; }
.share-fallback { max-width: 720px; margin-top: 12px; }
.share-fallback input { font-size: .875rem; }
.cache-note { padding: 12px 16px; margin-top: 20px; font-size: .875rem; border-left: 2px solid var(--accent); background: #f0f3f6; }
.report-overview { padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scores { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 36px; }
.total-score { border-right: 1px solid var(--line); padding: 4px 24px 6px 0; }
.score-label { color: var(--ink); font-weight: 600; font-size: .9375rem; }
.score-number-row { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.score-number { font-size: 4.5rem; line-height: 1.1; font-weight: 650; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.score-unavailable { font-size: 2rem; letter-spacing: 0; padding: 16px 0; }
.score-unit { color: var(--muted); font-size: .9375rem; }
.score-grade { color: var(--ink); font-size: 1rem; margin-top: 8px; }
.total-score .meta { margin-top: 6px; max-width: 150px; }
.score-angles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-top: 4px; }
.angle-score-label { color: var(--ink); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.angle-score-number { font-size: 2.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.angle-score > .meta { margin-top: 8px; }
.coverage-text { margin-top: 16px; font-size: .875rem; }
.cap-note { margin-top: 6px; font-size: .8125rem; color: var(--improve); }
.coverage-summary { font-size: .875rem; margin-top: 24px; max-width: 850px; }
.grading-note { margin-top: 8px; }
.report-section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .next-section h2 { font-size: 1.5rem; }
.section-heading > p { margin-top: 8px; font-size: .9375rem; }
.priority-list { list-style: none; padding: 0; margin: 0; }
.priority-item { padding: 24px 0; border-top: 1px solid var(--line); }
.priority-item:first-child { border-top: 0; padding-top: 0; }
.priority-item:last-child { padding-bottom: 0; }
.priority-item > h3 { font-size: 1.125rem; }
.priority-path { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 18px 0 0; }
.priority-path dt { font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.priority-path dd { color: var(--muted); font-size: .9375rem; margin: 0; }
.evidence-details { margin-top: 16px; }
.evidence-details > summary { display: list-item; cursor: pointer; width: fit-content; max-width: 100%; color: var(--accent); font-size: .875rem; padding: 6px 0; }
.evidence-body { margin-top: 8px; padding: 16px 20px; background: #f1f2f1; border-left: 2px solid #c4cdd4; }
.evidence-item + .evidence-item { border-top: 1px solid #dce1e4; margin-top: 16px; padding-top: 16px; }
.evidence-label { font-size: .875rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.source-link { font-size: .875rem; overflow-wrap: anywhere; }
.evidence-item > .meta { margin-top: 4px; }
blockquote { margin: 10px 0 0; }
blockquote p { font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; color: #485360; }
.quiet-note { border-left: 2px solid var(--good); padding: 12px 20px; font-size: .9375rem; }
.angle-detail + .angle-detail { margin-top: 32px; }
.angle-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding: 14px 0; }
.angle-detail-header h3 { font-size: 1.125rem; }
.angle-detail-header .meta { margin-top: 4px; }
.angle-detail-score { font-size: 1.75rem; line-height: 1.2; font-weight: 600; }
.check-row { border-top: 1px solid var(--line); }
.check-row:last-child { border-bottom: 1px solid var(--line); }
.check-row > summary { list-style: none; display: grid; grid-template-columns: minmax(0,1fr) auto 14px; align-items: start; gap: 20px; padding: 20px 0; cursor: pointer; }
.check-row > summary::-webkit-details-marker { display: none; }
.check-main { display: block; }
.check-title { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 7px; }
.check-finding { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.check-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .8125rem; margin-top: 8px; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; font-size: .8125rem; font-weight: 500; line-height: 1.5; }
.status-good { color: var(--good); background: #eaf2ed; }
.status-improve { color: var(--improve); background: #f7efdf; }
.status-severe { color: var(--severe); background: #faeae6; }
.status-manual, .status-untested { color: var(--muted); background: #eceff1; }
.disclosure-mark { width: 8px; height: 8px; margin-top: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
.check-row[open] > summary .disclosure-mark { transform: rotate(225deg); margin-top: 13px; }
.check-body { padding: 0 34px 24px 0; }
.check-body .evidence-details { margin-top: 0; }
.check-action { font-size: .9375rem; margin-bottom: 14px; max-width: 840px; }
.check-action strong { color: var(--ink); font-weight: 600; }
.limitations-list { padding-left: 22px; margin: 16px 0 0; color: var(--muted); font-size: .875rem; }
.limitations-list li + li { margin-top: 8px; }
.sampled-pages { list-style: none; padding: 0; margin: 0 0 24px; }
.sampled-pages > li { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.page-role { color: var(--ink); font-size: .875rem; }
.page-url { overflow-wrap: anywhere; margin-top: 3px; font-size: .8125rem; }
.failed-pages { padding: 0 0 20px 20px; margin: 0; }
.failed-pages li + li { margin-top: 12px; }
.scope-section > .method-details:last-child { border-bottom: 0; }
.small-heading { font-size: .9375rem; margin-top: 24px; margin-bottom: 12px; }
.integration-list { margin: 0; }
.integration-list > div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 16px; margin-bottom: 10px; font-size: .875rem; }
.integration-list dt { color: var(--ink); }
.integration-list dd { margin: 0; color: var(--muted); }
.next-section { border-bottom: 0; padding: 48px 0 8px; max-width: 800px; }
.next-section .eyebrow { margin-bottom: 14px; }
.next-explanation { margin-top: 20px; margin-bottom: 16px; line-height: 1.8; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin: 24px 0 16px; }
.email-link { font-size: 1rem; text-decoration: none; }
.email-link:hover { text-decoration: underline; }
.loading-report, .error-panel { padding: 88px 0; min-height: 450px; max-width: 720px; }
.loading-report h1, .error-panel h1 { font-size: 2rem; margin-bottom: 20px; }
.loading-report p { font-size: 1rem; }
body[data-page="home"] .wrap { max-width: 880px; padding: 0 24px; }
.home-hero { padding: 88px 0 64px; }
.home-hero h1 { font-size: clamp(2rem,5vw,3rem); line-height: 1.15; margin: 0 0 20px; font-weight: 700; }
.home-lead { font-size: 1.1875rem; max-width: 640px; }
.home-zh { font-size: 1.0625rem; margin-top: 12px; }
.home-section { padding: 48px 0; border-top: 1px solid var(--line); }
.home-section .section-eyebrow { text-transform: uppercase; letter-spacing: .1em; margin-bottom: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 28px; }
.service-grid h3 { font-size: 1.125rem; margin: 0 0 8px; }
.home-contact > a { color: var(--accent); font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.home-contact > p { margin-bottom: 8px; }
.home-check { display: flex; gap: 28px; align-items: center; justify-content: space-between; padding: 32px 0; border-top: 1px solid var(--line); }
.home-check h2 { font-size: 1.125rem; margin-bottom: 8px; }
.home-check p { font-size: .9375rem; }
.home-check > .button { flex: 0 0 auto; }
body[data-page="home"] .site-footer { margin-top: 0; }
@media (max-width: 850px) {
  .scores { grid-template-columns: 180px minmax(0,1fr); gap: 24px; }
  .score-angles { gap: 16px; }
  .angle-score-label { font-size: .9375rem; }
  .angle-score-number { font-size: 2rem; }
  .priority-path { gap: 20px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .header-inner { min-height: 76px; }
  .wordmark { font-size: 1.1875rem; }
  .site-header nav a { font-size: .875rem; }
  .check-hero { padding-top: 48px; padding-bottom: 40px; }
  .hero-title { font-size: clamp(1.875rem,7.4vw,2.25rem); }
  .lede { font-size: 1rem; margin-top: 20px; }
  .check-form { margin-top: 28px; }
  .input-row { flex-direction: column; gap: 12px; }
  .input-row .button { width: 100%; }
  .angle-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro-angle { position: relative; padding-left: 18px; }
  .angle-rule { width: 2px; height: 28px; position: absolute; left: 0; top: 1px; }
  .intro-angle h3 { font-size: 1rem; }
  .intro-angle p { font-size: .9375rem; }
  .intro-angles { padding-top: 28px; }
  .intro-angles > h2 { font-size: 1.125rem; }
  .site-footer { margin-top: 48px; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .progress-panel { padding-top: 48px; min-height: 600px; }
  .report-header { padding-top: 40px; padding-bottom: 24px; }
  .report-title { font-size: 1.875rem; }
  .report-metadata { flex-direction: column; }
  .report-summary { font-size: 1rem; margin-top: 20px; }
  .scores { display: block; }
  .total-score { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; }
  .score-label { grid-column: 1; grid-row: 1; }
  .score-number-row { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .score-number { font-size: 3.75rem; }
  .score-unavailable { font-size: 1.75rem; }
  .score-grade { grid-column: 1; grid-row: 2; margin-top: 6px; }
  .total-score .meta { grid-column: 1; grid-row: 3; max-width: none; }
  .score-angles { display: block; padding-top: 16px; }
  .angle-score { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 16px; padding: 12px 0; }
  .angle-score-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .angle-score-label { font-size: 1rem; margin: 0; }
  .angle-score-number { font-size: 1.75rem; }
  .angle-score > .meta { grid-column: 1; margin-top: 4px; }
  .angle-score .coverage-text { grid-column: 2; margin-top: 4px; }
  .cap-note { grid-column: 1 / -1; }
  .coverage-summary { margin-top: 12px; }
  .report-section { padding: 32px 0; }
  .section-heading h2, .next-section h2 { font-size: 1.3125rem; }
  .priority-path { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .priority-path > div { display: grid; grid-template-columns: 98px minmax(0,1fr); gap: 14px; }
  .priority-path dt { margin: 0; }
  .evidence-body { padding: 14px; }
  .check-row > summary { gap: 10px; grid-template-columns: minmax(0,1fr) auto 10px; }
  .check-main { grid-column: 1; }
  .status { font-size: .75rem; padding: 3px 7px; }
  .check-title { font-size: .9375rem; }
  .check-finding { font-size: .875rem; }
  .check-meta { font-size: .8125rem; gap: 4px 12px; }
  .check-body { padding-right: 0; }
  .sampled-pages > li { grid-template-columns: 70px minmax(0,1fr); gap: 14px; }
  .integration-list > div { grid-template-columns: 120px minmax(0,1fr); }
  .contact-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .next-section { padding-top: 40px; }
  .home-hero { padding: 56px 0 48px; }
  .home-check { flex-direction: column; align-items: flex-start; gap: 20px; }
  .home-section { padding: 36px 0; }
  .loading-report, .error-panel { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.priority-finding { margin: 0 0 20px; max-width: 72ch; color: var(--ink); }

/* Scoring tuning panel (/check?tune=1) */
.tune-panel { border: 2px dashed #1f4e79; border-radius: 8px; padding: 20px; margin: 24px 0 40px; background: #fff; }
.tune-head h2 { margin: 0 0 4px; font-size: 20px; }
.tune-head p, .tune-hint, .tune-note { color: #5b6675; font-size: 14px; margin: 4px 0; }
.tune-total { font-size: 22px; font-weight: 700; margin: 12px 0; }
.tune-globals { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 8px 0 16px; font-size: 14px; }
.tune-globals input { width: 64px; }
.tune-panel input[type=number], .tune-panel select { font: inherit; padding: 4px 6px; border: 1px solid #c9ced6; border-radius: 4px; }
.tune-angle { margin: 18px 0; overflow-x: auto; }
.tune-angle h3 { font-size: 17px; margin: 0 0 8px; }
.tune-angle table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tune-angle th, .tune-angle td { border-bottom: 1px solid #e3e6ea; padding: 6px 8px; text-align: left; vertical-align: top; }
.tune-angle th { font-weight: 600; color: #5b6675; white-space: nowrap; }
.tune-angle td.num { text-align: right; white-space: nowrap; }
.tune-weight { width: 60px; }
.tune-finding { display: block; color: #5b6675; font-size: 13px; margin-top: 2px; max-width: 520px; }
.tune-severe td:nth-child(2) { color: #a4262c; font-weight: 600; }
.tune-improve td:nth-child(2) { color: #8a5a00; }
.tune-good td:nth-child(2) { color: #2c6e49; }
.tune-manual td, .tune-untested td { color: #8b939e; }
.tune-json { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 12px; margin-top: 8px; }
.tune-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tune-panel input[type=number] { height: auto; min-height: 0; width: 64px; padding: 3px 6px; font-size: 14px; }
.tune-panel select { height: auto; min-height: 0; padding: 3px 6px; font-size: 14px; }
