:root {
  color-scheme: light;
  --bg: #f3f4f1;
  --surface: #ffffff;
  --surface-2: #e9ede8;
  --ink: #19201b;
  --muted: #59665e;
  --faint: #77837b;
  --line: #d4dbd5;
  --line-strong: #b9c4bc;
  --green: #147a49;
  --green-soft: #dff0e6;
  --dark: #19201b;
  --warm: #9a5b2e;
  --warm-soft: #f5e9de;
  --red: #a7463e;
  --red-soft: #f7e6e4;
  --blue: #376986;
  --blue-soft: #e5eef4;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(22, 36, 26, .075);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141915;
  --surface: #1f2621;
  --surface-2: #283029;
  --ink: #eff3ef;
  --muted: #b8c3bb;
  --faint: #8d9a90;
  --line: #374139;
  --line-strong: #526057;
  --green: #7dce9e;
  --green-soft: #253b2e;
  --dark: #eff3ef;
  --warm: #e0b081;
  --warm-soft: #423326;
  --red: #efa8a2;
  --red-soft: #472a28;
  --blue: #a8cce1;
  --blue-soft: #293b46;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 46%, transparent); outline-offset: 3px; }
.report-container { width: min(calc(100% - 48px), 1220px); margin: 0 auto; }
.report-nav { position: sticky; top: 0; z-index: 50; height: 70px; border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); }
.report-nav .report-container { height: 100%; display: flex; align-items: center; gap: 22px; }
.report-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 760; }
.report-brand img { width: 32px; height: 32px; border-radius: 8px; }
.report-links { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.report-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.report-links a:hover { color: var(--ink); }
.report-theme { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; }
.report-theme:hover { border-color: var(--line-strong); }

.report-hero { padding: 88px 0 82px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--green); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); align-items: end; gap: 70px; }
.report-hero h1 { max-width: 830px; margin: 0; font-size: clamp(48px, 7.2vw, 88px); line-height: .96; letter-spacing: -.065em; text-wrap: balance; }
.report-hero h1 span { color: var(--green); }
.hero-copy { max-width: 60ch; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.78; }
.hero-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.score-number { text-align: center; }
.score-number small { display: block; color: var(--faint); font-size: 11px; font-weight: 700; }
.score-number strong { display: block; margin-top: 9px; font-size: 50px; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.score-number.before strong { color: var(--warm); }
.score-number.after strong { color: var(--green); }
.score-arrow { color: var(--faint); font-size: 24px; }
.score-note { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; line-height: 1.55; text-align: center; }

.report-section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; margin-bottom: 42px; }
.section-number { color: var(--green); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 750; }
.section-copy h2 { max-width: 800px; margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.03; letter-spacing: -.05em; text-wrap: balance; }
.section-copy p { max-width: 68ch; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.summary-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.summary-card { min-height: 230px; grid-column: span 4; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.summary-card.wide { grid-column: span 8; }
.summary-card.green { background: var(--green-soft); }
.summary-card.warm { background: var(--warm-soft); }
.summary-card small { color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: .08em; }
.summary-card strong { margin-top: auto; font-size: 26px; letter-spacing: -.035em; }
.summary-card p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.summary-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; margin-top: auto; padding: 0; list-style: none; }
.summary-list li { padding-top: 11px; border-top: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)); color: var(--muted); font-size: 13px; line-height: 1.5; }
.summary-list b { color: var(--ink); }

.proof-note { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: baseline; margin-bottom: 22px; padding: 14px 16px; border-left: 3px solid var(--green); background: color-mix(in srgb, var(--green) 7%, var(--surface)); color: var(--muted); font-size: 13px; line-height: 1.6; }
.proof-note strong { color: var(--ink); white-space: nowrap; }
.side-compare-card { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.side-compare-head { padding: 4px 4px 16px; }
.side-compare-head h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.side-compare-head p { max-width: 72ch; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.side-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.version-panel { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.before-panel { border-top: 5px solid var(--warm); }
.after-panel { border-top: 5px solid var(--green); }
.version-panel figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.version-panel figcaption span { padding: 8px 11px; border-radius: 7px; color: #fff; font-size: 13px; font-weight: 850; letter-spacing: .06em; }
.before-panel figcaption span { background: color-mix(in srgb, var(--warm) 88%, #000); }
.after-panel figcaption span { background: color-mix(in srgb, #137a49 88%, #000); }
.version-panel figcaption strong { color: var(--ink); font-size: 15px; }
.version-panel img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: #eef0ed; }
.version-panel ul { display: grid; gap: 7px; margin: 0; padding: 14px 18px 16px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.mobile-grid .version-panel { max-width: 430px; justify-self: center; width: 100%; }
.mobile-grid .version-panel img { aspect-ratio: 390 / 844; object-fit: contain; }

.compare-stack { display: grid; gap: 24px; }
.compare-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.compare-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 4px 4px 16px; }
.compare-head h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.compare-head p { max-width: 55ch; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.compare-legend { display: flex; gap: 12px; color: var(--faint); font-size: 11px; white-space: nowrap; }
.compare-legend span { display: inline-flex; align-items: center; gap: 6px; }
.compare-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); }
.compare-legend span:last-child i { background: var(--green); }
.compare-frame { --position: 50%; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #e6e9e5; aspect-ratio: 16 / 10; }
.compare-frame.mobile { aspect-ratio: 390 / 844; max-height: 760px; width: min(100%, 430px); margin-inline: auto; }
.compare-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--position); width: 2px; transform: translateX(-1px); background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); pointer-events: none; }
.compare-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: #172019; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-tag { position: absolute; top: 14px; z-index: 3; padding: 7px 9px; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 750; letter-spacing: .04em; pointer-events: none; }
.compare-tag.before { left: 14px; background: color-mix(in srgb, var(--warm) 88%, #000); }
.compare-tag.after { right: 14px; background: color-mix(in srgb, #137a49 88%, #000); }

.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.evidence-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.evidence-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.evidence-card.mobile img { aspect-ratio: 390 / 844; max-height: 620px; object-fit: contain; }
.evidence-copy { padding: 18px; }
.evidence-copy small { color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .08em; }
.evidence-copy h3 { margin: 8px 0 0; font-size: 19px; letter-spacing: -.025em; }
.evidence-copy p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.evidence-copy ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.motion-proof { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr); gap: 32px; align-items: end; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--dark); color: var(--bg); }
.motion-proof small { color: #8bd4a7; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 750; letter-spacing: .09em; }
.motion-proof h3 { margin: 10px 0 0; font-size: 28px; letter-spacing: -.04em; }
.motion-proof p { max-width: 58ch; margin: 10px 0 0; color: color-mix(in srgb, var(--bg) 68%, transparent); font-size: 13px; line-height: 1.65; }
.motion-proof dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: color-mix(in srgb, var(--bg) 18%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
.motion-proof dl div { padding: 15px; background: var(--dark); }
.motion-proof dt { color: color-mix(in srgb, var(--bg) 58%, transparent); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.motion-proof dd { margin: 7px 0 0; color: var(--bg); font-family: "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 750; }

.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.score-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.score-card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.score-card h3 { margin: 0; font-size: 16px; }
.score-values { display: flex; align-items: center; gap: 8px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.score-values .old { color: var(--warm); }
.score-values .new { color: var(--green); font-weight: 750; }
.score-track { position: relative; height: 12px; margin-top: 20px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.score-track .old-bar, .score-track .new-bar { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.score-track .old-bar { width: var(--old); background: color-mix(in srgb, var(--warm) 42%, var(--surface-2)); }
.score-track .new-bar { width: var(--new); height: 5px; top: auto; bottom: 0; background: var(--green); }
.score-card p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.change-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.change-table table { width: 100%; border-collapse: collapse; min-width: 850px; }
.change-table th, .change-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.change-table th { background: var(--surface-2); color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.change-table td { color: var(--muted); font-size: 12px; line-height: 1.6; }
.change-table td:first-child { color: var(--ink); font-weight: 700; }
.change-table tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border-radius: 99px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.badge.p0 { background: var(--red-soft); color: var(--red); }
.badge.p1 { background: var(--warm-soft); color: var(--warm); }
.badge.done { background: var(--green-soft); color: var(--green); }
.code-chip { display: inline-block; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--ink); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }

.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.process-card { min-height: 210px; padding: 22px; border-top: 2px solid var(--green); background: var(--surface); }
.process-card span { color: var(--green); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.process-card h3 { margin: 40px 0 0; font-size: 20px; letter-spacing: -.03em; }
.process-card p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.delivery-panel { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #19201b; color: #f2f5f2; }
html[data-theme="dark"] .delivery-panel { background: #0e120f; color: #f2f5f2; }
.delivery-panel h2 { max-width: 650px; margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.delivery-panel p { max-width: 58ch; margin: 18px 0 0; color: rgba(242, 245, 242, .72); font-size: 14px; line-height: 1.7; }
.delivery-links { display: grid; gap: 8px; align-content: end; }
.delivery-links a { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; border: 1px solid rgba(242, 245, 242, .22); border-radius: 9px; color: #f2f5f2; text-decoration: none; font-size: 13px; font-weight: 650; }
.delivery-links a:hover { background: rgba(242, 245, 242, .08); }

.report-footer { padding: 34px 0 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.report-footer .report-container { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 900px) {
  .report-links a { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .summary-card { grid-column: span 6; }
  .summary-card.wide { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr; }
  .delivery-panel { grid-template-columns: 1fr; }
  .motion-proof { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .proof-note { grid-template-columns: 1fr; gap: 4px; }
  .side-compare-card { padding: 10px; }
  .side-compare-grid { grid-template-columns: 1fr; }
  .version-panel figcaption { align-items: flex-start; flex-direction: column; }
  .report-container { width: min(calc(100% - 28px), 1220px); }
  .report-hero { padding: 58px 0 62px; }
  .report-hero h1 { font-size: 50px; }
  .hero-score { padding: 18px; }
  .score-number strong { font-size: 42px; }
  .report-section { padding: 68px 0; }
  .summary-card, .summary-card.wide { grid-column: 1 / -1; min-height: 210px; }
  .summary-list { grid-template-columns: 1fr; }
  .compare-card { padding: 10px; }
  .compare-head { align-items: flex-start; flex-direction: column; padding: 7px 7px 14px; }
  .evidence-grid, .score-grid { grid-template-columns: 1fr; }
  .motion-proof dl { grid-template-columns: 1fr 1fr; }
  .report-footer .report-container { flex-direction: column; }
}
@media (max-width: 440px) {
  .report-nav .report-container { width: calc(100% - 20px); }
  .report-brand span { display: none; }
  .report-hero h1 { font-size: 43px; }
  .compare-tag { top: 8px; padding: 5px 7px; }
  .compare-tag.before { left: 8px; }
  .compare-tag.after { right: 8px; }
  .compare-handle::after { width: 36px; height: 36px; }
}
@media print {
  .report-nav, .compare-range, .report-theme { display: none !important; }
  body { background: white; }
  .report-section, .report-hero { break-inside: avoid; }
  .compare-frame { --position: 50% !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
