:root {
  --bg: #efe6d6;
  --bg-2: #f7f1e6;
  --ink: #241c14;
  --muted: #6b5e50;
  --line: #e0d3bf;
  --card: #fffdf8;
  --teal: #0f5c54;
  --teal-2: #e4f2ef;
  --red: #8d2f2a;
  --red-2: #f8e7e3;
  --amber: #8a5610;
  --amber-2: #f8efd4;
  --ok: #1d6a3a;
  --ok-2: #e5f4ea;
  --shadow: 0 1px 0 rgba(36, 28, 20, 0.04), 0 16px 40px rgba(36, 28, 20, 0.05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #f6efe2 0%, transparent 60%),
    var(--bg);
  font-family: "WenQuanYi Micro Hei", "Droid Sans Fallback", "Noto Sans CJK SC", sans-serif;
  line-height: 1.55;
}
a { color: var(--teal); }
a:hover { text-decoration: none; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
}
.skip:focus { top: 12px; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header { padding: 22px 0 8px; }
.brand { display: flex; gap: 14px; align-items: center; }
.seal {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--teal);
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--card);
}
.brand h1 { margin: 0; font-size: 1.7rem; letter-spacing: 0.04em; }
.brand p { margin: 2px 0 0; color: var(--muted); }
.nav-inline, .nav-drawer nav { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 14px 0 8px; }
.nav-drawer { display: none; }
.nav-inline a, .nav-drawer a { text-decoration: none; color: var(--ink); }
.nav-inline a:hover, .nav-drawer a:hover { color: var(--teal); }
.logout { display: inline; }
.logout button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.stamp {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--amber-2);
  color: var(--amber);
}
.stamp-off { background: #ece7df; color: #5c5348; }
.stamp-bad { background: var(--red-2); color: var(--red); }
.stamp-wait { background: var(--amber-2); color: var(--amber); }
.stamp-ok { background: var(--ok-2); color: var(--ok); }
.stamp-example { background: var(--teal-2); color: var(--teal); }
main { padding-bottom: 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  margin-bottom: 16px;
}
h2, h3 { line-height: 1.3; }
h1 { margin-top: 0; }
.lead { font-size: 1.05rem; max-width: 68ch; }
.muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d9cbb8;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: white;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.button.quiet { background: transparent; color: var(--teal); }
.button.danger { background: var(--red); border-color: var(--red); }
.button.row { margin-right: 8px; }
.flash { padding: 10px 12px; border-radius: 10px; }
.flash-ok { background: var(--ok-2); color: var(--ok); }
.flash-bad { background: var(--red-2); color: var(--red); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks label { flex-direction: row; align-items: center; font-weight: 500; }
.checks input { width: auto; min-height: 0; }
.secret {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  background: #f6f1e8;
  padding: 10px;
  border-radius: 10px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f6f1e8;
  padding: 12px;
  border-radius: 10px;
  overflow-x: auto;
}
.site-footer { color: var(--muted); padding: 8px 0 28px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-inline { display: none; }
  .nav-drawer { display: block; }
  .wrap { width: min(1080px, calc(100% - 20px)); }
}
