:root { color-scheme: light; --ink:#243044; --muted:#667085; --line:#e4e0d8; --paper:#fff; --bg:#f6f4ef; --navy:#1f3a5f; --gold:#8a6a38; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Songti SC", "Source Han Serif SC", serif; }
button, input, select { font: 15px/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; }
header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 28px; background: var(--paper); border-bottom: 3px solid var(--navy); }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
button, .link { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 4px; padding: 7px 12px; cursor: pointer; }
button[type="submit"], nav button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { max-width: 980px; margin: 24px auto; background: var(--paper); border: 1px solid var(--line); padding: 28px; }
.narrow { max-width: 460px; }
h1 { font-size: 28px; margin: 0 0 8px; color: var(--navy); }
h2 { font-size: 18px; margin: 22px 0 8px; }
.kicker { letter-spacing: .16em; color: var(--gold); font: 12px/1 sans-serif; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 16px; font-family: "PingFang SC", sans-serif; font-size: 14px; }
label { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; font-family: "PingFang SC", sans-serif; font-size: 14px; }
label.check { flex-direction: row; align-items: center; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; background: #fff; color: var(--ink); }
textarea { min-height: 90px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { width: auto; min-width: 140px; }
.error { color: #9c3b32; }
.ok { color: #3c6b52; }
.item { border-top: 1px solid var(--line); padding: 12px 0; }
.item button { margin-right: 8px; }
.muted { color: var(--muted); }
.hold { color: #9c3b32; }
.void { opacity: .55; }
pre { white-space: pre-wrap; font: 15px/1.7 "PingFang SC", sans-serif; }
.stack { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 720px) {
  header, .panel { padding-left: 16px; padding-right: 16px; }
  .filters input, .filters select { width: 100%; }
}
