:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1c2330;
  --muted: #667085;
  --accent: #1f6feb;
  --border: #e3e7ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --card: #171d2b;
    --text: #e8ecf4;
    --muted: #98a2b3;
    --accent: #6ea8fe;
    --border: #263045;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
header.site { padding: 28px 0 8px; }
header.site h1 { margin: 0 0 4px; font-size: 1.6rem; }
header.site p { margin: 0; color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
input[type="search"], textarea, select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
textarea { min-height: 96px; resize: vertical; }
.list { margin-top: 16px; display: grid; gap: 8px; }
.item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
}
.item:hover { border-color: var(--accent); text-decoration: none; }
.item small { color: var(--muted); }
.badge {
  font-size: .78rem; padding: 2px 8px; border-radius: 99px;
  background: var(--bg); border: 1px solid var(--border); color: var(--muted);
  white-space: nowrap;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-top: 14px;
}
.card h2 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; white-space: pre-line; }
.muted { color: var(--muted); }
.notice {
  margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  background: var(--card); border: 1px dashed var(--border); color: var(--muted);
  font-size: .92rem;
}
label { display: block; margin: 14px 0 4px; font-weight: 600; }
button {
  margin-top: 16px; padding: 10px 18px; font: inherit; font-weight: 600;
  color: #fff; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#msg { margin-top: 12px; font-weight: 600; }
footer { margin-top: 40px; font-size: .85rem; color: var(--muted); }
