:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --card: #f8fafc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --fg: #e5e7eb; --muted: #94a3b8; --line: #1f2937;
    --accent: #60a5fa; --accent-soft: #111c33; --card: #111827;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --fg: #e5e7eb; --muted: #94a3b8; --line: #1f2937;
  --accent: #60a5fa; --accent-soft: #111c33; --card: #111827;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.55; word-break: keep-all;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 96px; }
h1 { font-size: 1.5rem; margin: 0 0 6px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
p.lead { color: var(--muted); margin: 0 0 20px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 96px; resize: vertical; }
button, .btn {
  display: inline-block; width: 100%; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 12px; padding: 14px 16px; margin-top: 16px;
  text-align: center; text-decoration: none;
}
button.secondary, .btn.secondary { background: var(--accent-soft); color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 16px; }
.muted { color: var(--muted); font-size: .92rem; }
.out { white-space: pre-wrap; font-size: .95rem; }
.band {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 16px; font-size: .88rem; display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.band a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.list { display: grid; gap: 12px; }
.list a.item { display: block; text-decoration: none; color: inherit; }
.list .item .t { font-weight: 700; }
.list .item .d { color: var(--muted); font-size: .92rem; }
.tag { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-right: 6px; }
