:root {
  --ink: #172126;
  --muted: #66747b;
  --line: #d9e0e3;
  --surface: #f3f6f6;
  --teal: #087f73;
  --yellow: #9a6400;
  --yellow-soft: #fff5d9;
  --green: #217653;
  --green-soft: #e6f5ed;
  --blue: #2166a5;
  --blue-soft: #e8f2fb;
  --gray: #526068;
  --gray-soft: #edf1f2;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); font-size: 14px; line-height: 1.65; letter-spacing: 0; }
a { color: var(--teal); text-underline-offset: 3px; }
.report-nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 58px; padding: 0 max(24px, calc((100% - 980px) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.report-nav > div { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.report-nav > a { color: var(--ink); text-decoration: none; font-weight: 700; }
.download { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--teal); border-radius: 5px; text-decoration: none; font-weight: 700; }
.report-document { width: min(940px, calc(100% - 32px)); margin: 34px auto; background: white; box-shadow: 0 18px 55px rgba(30,50,58,.14); }
.cover, .report-section { padding: 54px 62px; border-bottom: 1px solid var(--line); }
.cover { min-height: 740px; display: flex; flex-direction: column; }
.cover-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.cover-top > p { color: var(--teal); font-size: 12px; font-weight: 800; }
.report-brand { display: flex; align-items: center; gap: 12px; }
.report-brand > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 5px; color: white; background: var(--ink); font-weight: 800; font-size: 12px; }
.report-brand strong, .report-brand small { display: block; }
.report-brand small { color: var(--muted); font-size: 11px; }
.cover-title { margin: auto 0; }
.cover-title p { margin: 0; color: var(--teal); font-size: 13px; font-weight: 800; }
.cover-title h1 { margin: 7px 0 9px; font-size: 43px; line-height: 1.15; letter-spacing: 0; }
.cover-title span { color: var(--muted); font-size: 17px; }
.metadata { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 30px; border-top: 1px solid var(--line); }
.metadata div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.metadata div:nth-child(odd) { padding-right: 24px; }
.metadata div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
dt { color: var(--muted); font-size: 11px; }
dd { margin: 0; }
.demo-notice { padding: 18px; border-left: 4px solid var(--yellow); background: var(--yellow-soft); color: #674400; }
.demo-notice p { margin: 4px 0 0; }
.section-label { color: var(--teal); font-size: 11px; font-weight: 800; }
.report-section h2 { max-width: 700px; margin: 6px 0 14px; font-size: 29px; line-height: 1.25; letter-spacing: 0; }
.report-section > p { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); margin: 28px 0 32px; border: 1px solid var(--line); }
.metric-grid.five { grid-template-columns: repeat(5, 1fr); }
.metric-grid div { padding: 20px; }
.metric-grid div + div { border-left: 1px solid var(--line); }
.metric-grid strong, .metric-grid span, .metric-grid small { display: block; }
.metric-grid strong { font-size: 30px; }
.metric-grid span { font-weight: 800; }
.metric-grid small { color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 12px; }
th { color: var(--muted); font-size: 10px; text-align: left; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
table code { font-size: .82em; overflow-wrap: normal; word-break: normal; }
td:first-child code { white-space: nowrap; }
td:first-child { white-space: nowrap; }
.tag { display: inline-block; min-width: 38px; padding: 2px 6px; border-radius: 3px; text-align: center; font-weight: 800; font-size: 10px; }
.tag.yellow { color: var(--yellow); background: var(--yellow-soft); }
.tag.green { color: var(--green); background: var(--green-soft); }
.fine-print { font-size: 11px; }
.finding { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 5px; break-inside: avoid; }
.finding.provided { border-left-color: var(--blue); }
.finding.provided .finding-index b { color: var(--blue); }
.finding.verified { border-left-color: var(--green); }
.finding.verified .finding-index b { color: var(--green); }
.finding.unknown { border-left-color: var(--gray); }
.finding.unknown .finding-index b { color: var(--gray); }
.finding.na { border-left-color: #7c858a; background: #fafbfb; }
.finding.na .finding-index b { color: #626c71; }
.finding-index { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.finding-index b { color: var(--yellow); }
.finding h3 { margin: 7px 0 5px; font-size: 18px; }
.finding > p { margin: 0; color: var(--muted); }
.finding-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.finding-grid dl { margin: 0; }
.source-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.source-layout ul { padding-left: 18px; }
.source-layout li { margin-bottom: 9px; }
.source-layout aside { padding: 22px; border-left: 4px solid var(--teal); background: #eaf4f2; color: #28504d; }
.source-layout aside p:last-child { margin-bottom: 0; }
.report-footer { width: min(940px, calc(100% - 32px)); margin: 0 auto 40px; color: var(--muted); text-align: center; font-size: 10px; }

@media (max-width: 700px) {
  .report-nav { padding: 0 14px; }
  .report-nav span { display: none; }
  .report-document { width: 100%; margin: 0; box-shadow: none; }
  .cover, .report-section { padding: 36px 20px; }
  .cover { min-height: 680px; }
  .cover-title h1 { font-size: 32px; }
  .metadata { grid-template-columns: 1fr; }
  .metadata div:nth-child(odd), .metadata div:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .report-section h2 { font-size: 24px; }
  .metric-grid div { padding: 13px 9px; }
  .metric-grid.five { grid-template-columns: repeat(2, 1fr); }
  .metric-grid.five div { border-bottom: 1px solid var(--line); }
  .metric-grid strong { font-size: 24px; }
  .metric-grid span { font-size: 11px; }
  .metric-grid small { display: none; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .finding { padding: 18px; }
  .finding-grid, .source-layout { grid-template-columns: 1fr; }
  .finding-grid { gap: 8px; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: white; font-size: 10pt; }
  .no-print { display: none !important; }
  .report-document { width: 100%; margin: 0; box-shadow: none; }
  .cover, .report-section { padding: 12mm 10mm; }
  .cover { min-height: 250mm; break-after: page; }
  .report-section { break-before: page; }
  .finding { break-inside: avoid; }
  .report-footer { display: none; }
  .metric-grid.five { grid-template-columns: repeat(5, 1fr); }
}
