:root {
  color-scheme: light;
  --paper: #f5f6f2;
  --panel: #fff;
  --ink: #192a24;
  --muted: #52645d;
  --line: #d5ded8;
  --accent: #17604b;
  --wash: #eaf4ed;
  font: 16px/1.6 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.header-content, main.wide { width: min(100% - 48px, 1000px); margin-inline: auto; }
.header-content, .brand, .section-head, .data-row, .actions, .copy-row { display: flex; align-items: center; gap: 12px; }
.header-content { min-height: 64px; justify-content: space-between; }
.brand { font-weight: 750; font-size: 17px; }
.brand-mark { display: block; position: relative; width: 21px; height: 21px; background: var(--accent); border-radius: 6px; }
.brand-mark::after { content: ""; position: absolute; inset: 6px; border: 1.5px solid white; border-radius: 2px; }
main.wide { padding: 40px 0 64px; }
main.narrow { width: min(100% - 32px, 540px); margin: clamp(32px, 8vh, 85px) auto; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: 19px; line-height: 1.4; }
.page-intro { margin-bottom: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.section-head, .data-row { justify-content: space-between; padding: 18px 24px; }
.data-row { border-top: 1px solid var(--line); gap: 18px; }
.row-summary { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.row-summary strong { font-size: 16px; }
.version { color: var(--muted); font-size: 13px; font-weight: 500; margin-inline-start: 6px; }
.details, .digest, .section-label { font-size: 13px; color: var(--muted); }
.digest summary { width: fit-content; cursor: pointer; }
code { font: 12px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.status { font-size: 13px; color: var(--muted); }
.status.pending { color: #885707; }
.status.approved { color: var(--accent); }
.status.rejected, .error { color: #933c31; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: 7px 13px; min-height: 40px; line-height: 1.5; font-family: inherit; font-size: 14px; font-weight: 620; cursor: pointer; white-space: nowrap; text-decoration: none; background: var(--accent); color: white; }
button[hidden] { display: none; }
button:hover, .button:hover { filter: brightness(.93); }
.secondary { background: var(--panel); color: var(--accent); border-color: var(--line); }
.plain { color: var(--muted); background: transparent; }
:focus-visible { outline: 3px solid #44937a; outline-offset: 3px; }
.empty { margin: 0; color: var(--muted); padding: 8px 24px 24px; font-size: 14px; }
.form-panel, .claim-result { padding: clamp(22px, 4vw, 36px); }
.form-panel h1 { margin-bottom: 22px; }
.form-panel p, .claim-result p { color: var(--muted); margin: 10px 0 18px; }
.stack { display: grid; gap: 10px; }
.stack button { margin-top: 8px; }
label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
input:not([type=hidden]) { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
input[readonly] { font-family: ui-monospace, monospace; font-size: 14px; }
.copy-row { align-items: stretch; gap: 8px; }
.copy-status:not(:empty) { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.claim-result { border-color: #a9c8b8; background: var(--wash); }
.metadata { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0 0 20px; padding-block: 16px; border-block: 1px solid var(--line); }
.metadata dt { font-size: 14px; color: var(--muted); }
.metadata dd { margin: 0; overflow-wrap: anywhere; }
.alert { padding: 12px 16px; background: #fff1ed; border: 1px solid #edc2bb; border-radius: 10px; margin-bottom: 16px; }
@media (max-width: 620px) {
  .header-content, main.wide { width: calc(100% - 28px); }
  main.wide { padding-block: 26px 42px; }
  .section-head, .data-row { padding: 15px 16px; }
  .data-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .actions { justify-content: flex-start; }
  .empty { padding: 6px 16px 20px; }
}
