:root {
  font: 15px/1.55 "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #193331;
  background: #f3f6f5;
  --ink:#193331; --quiet:#506763; --line:#dce6e2; --paper:#fff;
  --accent:#176351; --wash:#e6f2ed; --warning:#934720; --alert:#8e393b;
}
* { box-sizing:border-box; }
body { margin:0; min-width:0; }
button,input,select,textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { border-radius:8px; }
button { border:1px solid var(--line); background:var(--paper); color:var(--ink); cursor:pointer; padding:.45rem .75rem; min-height:38px; }
button:hover { background:var(--wash); }
button:disabled { opacity:.55; cursor:wait; }
button.primary { background:var(--accent); color:white; border-color:var(--accent); font-weight:600; }
button.primary:hover { background:#104c3d; }
button[aria-pressed="true"], button[aria-current="page"] { background:var(--wash); color:#104c3d; border-color:#acd0c2; font-weight:650; }
:focus-visible { outline:2px solid #176351; outline-offset:2px; }
a { color:var(--accent); }
input:not([type=checkbox]):not([type=radio]), textarea, select { border:1px solid #b9cbc5; background:white; color:var(--ink); min-width:0; padding:.47rem .62rem; width:100%; }
input[type=file] { padding:.4rem; }
textarea { min-height:78px; resize:vertical; }
label { display:grid; gap:.26rem; color:var(--quiet); font-weight:600; min-width:0; }
label.check { display:flex; align-items:center; gap:.45rem; font-weight:400; }
h1,h2,h3,p { margin:0; overflow-wrap:anywhere; }
h1 { font-size:1.72rem; line-height:1.2; letter-spacing:-.025em; }
h2 { font-size:1.15rem; line-height:1.35; }
h3 { font-size:1rem; }
small,.muted { color:var(--quiet); }
.warning,.flag { color:var(--warning); }
.danger { color:var(--alert); }
.stack { display:grid; gap:1rem; align-content:start; min-width:0; }
.compact { gap:.55rem; }
.row { display:flex; align-items:center; gap:.55rem; flex-wrap:wrap; min-width:0; }
.spread { justify-content:space-between; }
.fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr)); gap:.65rem; align-items:end; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr)); gap:1rem; }
.card { border:1px solid var(--line); border-radius:12px; background:var(--paper); padding:1rem; min-width:0; }
.hero { background:#e7f0eb; border-color:#d3e5dd; padding:1.2rem; }
.onboarding { background:#e7f0eb; border-color:#cedfd8; }
.onboarding input[type=file] { max-width:42rem; }
.migration-summary { padding:.75rem; border-radius:8px; background:#edf4f1; display:grid; gap:.35rem; }
.migration-summary ul,.migration-steps { margin:.2rem 0; padding-left:1.35rem; }
.migration-steps li+li { margin-top:.45rem; }
.status { border:1px dashed #becfc9; border-radius:9px; padding:.7rem; color:var(--quiet); }
.brand { display:flex; align-items:center; gap:.65rem; font-weight:700; letter-spacing:.01em; }
.brand img { width:35px; height:35px; }
.brand span { display:block; }
.brand small { display:block; font-size:.74rem; font-weight:500; }
.layout { min-height:100vh; display:grid; grid-template-columns:215px minmax(0,1fr); }
aside { position:sticky; top:0; height:100vh; align-content:start; display:grid; gap:1.4rem; padding:1.35rem .9rem; border-right:1px solid var(--line); background:#fcfdfc; }
nav { display:grid; gap:.35rem; }
nav button { text-align:left; border-color:transparent; white-space:nowrap; }
main { width:100%; max-width:1290px; padding:1.6rem clamp(1rem,3.3vw,3rem) 2.5rem; margin:0 auto; min-width:0; }
.lock-shell { min-height:100svh; display:grid; place-items:center; padding:1rem; }
.lock-card { max-width:430px; width:100%; padding:1.35rem; }
.top { min-height:46px; }
.toolbar { padding:.75rem; }
.list { display:grid; gap:.45rem; }
.list > * + * { border-top:1px solid var(--line); padding-top:.45rem; }
.report-table { border:1px solid var(--line); border-radius:11px; background:white; overflow:hidden; }
.report-table summary { font-weight:700; cursor:pointer; padding:.55rem .7rem; background:#edf4f1; }
.test-row { display:grid; grid-template-columns:minmax(125px,1.42fr) repeat(var(--columns),minmax(0,1fr)); border-top:1px solid var(--line); align-items:stretch; }
.cols-three { --columns:3; }
.cols-six { --columns:6; }
.test-row > * + * { border-left:1px solid var(--line); }
.test-row button,.test-row > span { border-radius:0; border-block:0; border-right:0; padding:.4rem .45rem; min-width:0; overflow-wrap:anywhere; text-align:left; }
.test-row button:first-child { border-left:0; }
.test-name { color:#14574a; font-size:.91rem; font-weight:650; }
.test-cell strong { display:block; line-height:1.25; font-variant-numeric:tabular-nums; }
.test-cell small { display:block; line-height:1.3; margin-top:.14rem; }
.date { white-space:nowrap; }
.archive-line,.issue { border:1px solid var(--line); border-radius:8px; padding:.7rem; overflow-wrap:anywhere; }
.issue[open] summary { margin-bottom:.55rem; }
.original { background:#f5f8f7; padding:.55rem; border-radius:7px; }
pre,output { white-space:pre-wrap; overflow-wrap:anywhere; }
pre { margin:0; max-height:51vh; overflow:auto; background:#f4f7f6; padding:.7rem; border-radius:8px; font-size:.8rem; }
dialog { width:min(740px,calc(100% - 1.2rem)); max-height:calc(100% - 1.5rem); padding:0; border:1px solid var(--line); border-radius:13px; color:var(--ink); overscroll-behavior:contain; }
dialog::backdrop { background:#1329278c; }
.dialog-head { background:white; padding:.65rem .85rem; position:sticky; top:0; z-index:1; border-bottom:1px solid var(--line); }
.dialog-head button { font-size:1.22rem; }
.dialog-body { padding:.9rem; }
.preview canvas,.preview img { display:block; margin:0 auto; width:auto; max-width:100%; max-height:70vh; object-fit:contain; }
.chart { width:100%; height:clamp(165px,42vw,225px); border:1px solid var(--line); border-radius:8px; margin-top:.5rem; background:#fbfdfc; }
.chart text { font-family:system-ui,sans-serif; fill:#405b55; font-size:13px; }
#notice { position:fixed; z-index:3; right:.8rem; bottom:.8rem; max-width:min(420px,calc(100% - 1.6rem)); border-radius:8px; background:#183f33; color:white; overflow-wrap:anywhere; }
#notice:not(:empty) { padding:.55rem .8rem; }
.doc-title { overflow-wrap:anywhere; }
.mini { font-size:.83rem; }
.lock-note { padding:.55rem 0 0; }
.empty-cell { color:#7b8d89; }
.filter-panel summary { cursor:pointer; font-weight:650; }
.filter-panel[open] summary { margin-bottom:.55rem; }
@media (max-width:850px) {
  .cols-six { --columns:3; }
  .test-row > :nth-child(n+5) { display:none; }
}
@media (max-width:690px) {
  :root { font-size:14px; }
  .layout { display:block; }
  aside { position:static; height:auto; border:0; border-bottom:1px solid var(--line); padding:.6rem .8rem; display:flex; justify-content:space-between; align-items:center; gap:.4rem; }
  aside nav { position:fixed; inset:auto 0 0; z-index:2; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.15rem; background:#fcfdfc; border-top:1px solid var(--line); padding:.3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); }
  nav button { text-align:center; overflow-wrap:anywhere; white-space:normal; padding:.25rem .12rem; font-size:.81rem; }
  main { padding:.8rem .65rem calc(4rem + env(safe-area-inset-bottom)); }
  .test-row { grid-template-columns:minmax(80px,1.25fr) repeat(var(--columns),minmax(0,1fr)); }
  .test-row button,.test-row > span { padding:.35rem .28rem; }
  .test-cell small { font-size:.71rem; }
  .test-name { font-size:.84rem; }
  .brand img { width:29px; height:29px; }
  #notice { bottom:calc(3.6rem + env(safe-area-inset-bottom)); }
}
@media print {
  :root { background:white; color:black; }
  aside, .nonprint, #notice { display:none !important; }
  .layout { display:block; }
  main { padding:0; max-width:none; }
  .test-row { break-inside:avoid; }
  .test-row > :nth-child(n+5) { display:block; }
  .cols-six { --columns:6; }
  .test-row button { background:white; color:black; }
  body:has(dialog[open]) .layout { display:none; }
  dialog[open] { position:static; width:100%; max-height:none; border:none; }
  .dialog-head button { display:none; }
}
