:root { --text:#1c3543; --muted:#52606c; --green:#007fa9; --canvas:#f3f6f8; --border:#d6e1e7; }
header { background:#15191c; color:white; border-bottom:3px solid #009bcf; }
.topwrap .brand img { display:block; object-fit:contain; width:72px; height:49px; }
.topwrap nav a { color:#e7edf0; }
.topwrap nav a.active,.topwrap nav a:hover { color:#66d5f8; }
.topwrap nav a.active:after { background:#2ebced; }
.langwrap select { background-color:white; color:#1c3543; border-radius:4px; padding-left:6px; }
.primary,.report-download { background:#007ba4; border-color:#006c92; color:white; }
.primary:hover,.report-download:hover { background:#006489; }
.eyebrow,.panel-heading .ico,.metricname .ico,.modes .ico,.metricname,.info-card p,.metric strong { color:var(--text); }
.eyebrow:before,.meter i { background:#009bcf; }
.seg button.selected,.tab[aria-pressed=true],.carton-option:has(input:checked),.live,.source-table tbody tr:last-child:has(th) { background:#e9f5fa; color:#075a79; border-color:#a9d8e6; }
.seg button.selected { box-shadow:inset 0 0 0 1px #91c9db; }
.boxedit,.tabs,th { background:#f3f6f8; }
.stage { background-color:#142d39; background-image:radial-gradient(circle,#769ca158 1px,transparent 1.3px),radial-gradient(ellipse at 38% 36%,#214753 0,transparent 75%); }
.result-signature { border-top:1px solid var(--border); padding-top:12px; color:var(--text); font-size:13px; }
.result-signature a { color:var(--green); text-underline-offset:2px; }
.intro #print { background:#fff; color:#006c92; border-color:#a0c9d8; }
#report-view { display:none; }
.report-open > :not(#report-view):not(script):not(link):not(style) { display:none!important; }
.report-open #report-view { display:block; background:#e8eef2; min-height:100vh; padding-bottom:22px; }
.report-bar { position:sticky; top:0; z-index:2; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:9px; padding:12px 16px; background:#fff; border-bottom:1px solid #c8d7dc; }
.report-bar button { border:1px solid #acbec7; background:#fff; color:#193948; padding:8px 14px; border-radius:6px; font-size:14px; font-weight:600; }
.report-bar button.report-download { background:#007ba4; color:white; border-color:#00719a; }
.report-bar [role=status] { font-size:13px; }
.report-paper { max-width:790px; margin:auto; }
.report-page { margin:15px 0 0; background:#fff; box-shadow:0 2px 8px #18323f24; }
.report-sheet { display:block; width:100%; height:auto; font-family:Arial,"Noto Sans CJK SC","PingFang SC","Microsoft YaHei",sans-serif; }
.report-missing { padding:1.5cm; }
@media(max-width:760px) {
  .intro #print span { display:inline; }
  .intro #print { max-width:116px; white-space:normal; }
  .topwrap .brand img { width:56px; height:38px; }
  .report-bar { gap:6px; padding:7px; }
  .report-bar button { padding:7px 9px; font-size:13px; }
  .report-page { margin-top:8px; }
}
@page { size:A4 portrait; margin:0; }
@media print {
  html,body { margin:0!important; padding:0!important; background:white!important; }
  body.print-report > :not(#report-view) { display:none!important; }
  .print-report #report-view,.print-report .report-paper { display:block!important; max-width:none; margin:0; padding:0; min-height:0; background:#fff; }
  .print-report .report-bar { display:none!important; }
  .report-page { width:210mm; height:296.8mm; margin:0; padding:0; box-shadow:none; break-inside:avoid; break-after:page; page-break-after:always; }
  .report-page:last-child { break-after:auto; page-break-after:auto; }
  .report-sheet { display:block; width:100%; height:100%; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
