:root {
  color-scheme: dark;
  --background: #140b07;
  --text: #f6e8cf;
  --muted: #dbc4a4;
  --gold: #b68a52;
  --line: #68411f;
  --red: #842416;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.65 "Microsoft YaHei", system-ui, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 36px 24px; }
header { padding-bottom: 24px; }
.eyebrow { margin: 0; color: var(--gold); font-size: 14px; }
h1 { margin: 4px 0 14px; font-family: "Noto Serif SC", "SimSun", serif; font-size: 32px; line-height: 1.3; color: #f5d791; }
.origin-label { margin: 0; color: var(--muted); font-size: 14px; }
#origin { display: block; color: var(--text); overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
section { border-block: 1px solid var(--line); padding: 20px 0; }
.target { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; color: var(--muted); }
.target strong { color: var(--text); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--text);
  background: var(--red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button.primary { background: var(--gold); color: var(--background); }
button.quiet { background: transparent; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, summary:focus-visible { outline: 3px solid #f5d791; outline-offset: 4px; }
.hint { margin: 10px 0 18px; color: var(--muted); font-size: 13px; }
#status { min-height: 3.3em; margin: 0 0 10px; }
#status[data-phase="passed"] { color: #f5d791; }
#status[data-phase="failed"], .error { color: #ffb6a2; }
progress { display: block; width: 100%; height: 10px; border: 0; border-radius: 0; background: #392219; accent-color: var(--gold); }
progress::-webkit-progress-bar { background: #392219; }
progress::-webkit-progress-value { background: var(--gold); }
progress::-moz-progress-bar { background: var(--gold); }
.stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; margin: 16px 0 20px; }
.stats div { min-width: 0; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; overflow-wrap: anywhere; }
.stats dd { font-size: 17px; font-variant-numeric: tabular-nums; }
details { border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; color: var(--muted); min-height: 44px; }
.verification { margin: 0; }
.verification dd { margin: 3px 0 14px; font: 12px/1.7 ui-monospace, monospace; }
footer { color: var(--muted); font-size: 12px; padding-top: 12px; }
footer p { margin: 8px 0; }
@media (max-width: 420px) {
  main { padding: 24px 18px; }
  .actions button { flex: 1 1 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .bytes { grid-column: 1 / -1; }
}
