:root {
  --paper: #fffdf8;
  --wash: #f3ecdf;
  --ink: #241f1a;
  --muted: #5e574c;
  --gold: #7a5b2e;
  --line: #d7c7a4;
  --soft: #f7f1e6;
  --ok: #276749;
  --focus: #6b4e24;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body { min-height: 100vh; }
a { color: var(--focus); }
a:hover { color: var(--gold); }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }
.topbar, .foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 16px 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
}
.brand img {
  height: 48px;
  width: auto;
  display: block;
}
.topbar span, .foot { color: var(--muted); font-size: .86rem; }
.wrap { width: min(880px, calc(100% - 28px)); margin: 0 auto 40px; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid #c4a265;
  padding: 22px 18px 26px;
}
h1 { font-size: 1.85rem; line-height: 1.25; margin: 0 0 8px; font-weight: 650; }
h2 { font-size: 1.2rem; margin: 0 0 8px; }
.lede, .fine { color: var(--muted); }
.fine { font-size: .92rem; }
.steps { display: flex; gap: 8px; padding: 0; margin: 18px 0; list-style: none; flex-wrap: wrap; }
.steps li {
  flex: 1 1 140px;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 10px 12px;
  min-height: 44px;
}
.steps b { display: block; color: var(--gold); font-size: .78rem; letter-spacing: .08em; }
label { display: block; font-weight: 650; margin: 14px 0 6px; }
input[type="text"], input[type="url"], input[type="password"], input[type="file"], select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  border-radius: 0;
}
.choices { display: grid; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: #fff;
  font-weight: 500;
}
.choice input { width: 20px; height: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 4px; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  background: var(--gold);
  color: #fffdf8;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
button.ghost, .button.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.error, .banner {
  background: var(--soft);
  border-left: 4px solid var(--gold);
  padding: 10px 12px;
  margin: 12px 0;
}
.banner.ok { border-left-color: var(--ok); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.status-live { font-size: 1.05rem; }
.cards { display: grid; gap: 10px; margin-top: 14px; }
.card {
  display: block;
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.card small { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 650; }
.prose h1, .prose h2, .prose h3 { margin: 1rem 0 .4rem; }
.prose a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 800px) {
  .panel { padding: 32px 36px 36px; }
  .choices { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.2rem; }
}
@media (max-width: 720px) {
  table, thead, tbody, tr, th, td { display: block; }
  th { display: none; }
  td { border-bottom: 0; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
