:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2a2522;
  --muted: #6f655d;
  --line: #e7dfd4;
  --accent: #b5452f;
  --accent-text: #ffffff;
  --ok: #2f7a4a;
  --warn-bg: #fff4d6;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --surface: #26221f;
    --text: #f1ebe4;
    --muted: #a99e93;
    --line: #3a342f;
    --accent: #e0765e;
    --accent-text: #1c1917;
    --ok: #74c494;
    --warn-bg: #3b3220;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.top nav { display: flex; gap: 16px; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
h1 { font-size: 1.6rem; margin: 8px 0 4px; }
h2 { font-size: 1.2rem; margin: 24px 0 8px; }
.muted { color: var(--muted); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 12px 0;
}
.narrow { max-width: 520px; margin: 32px auto; }
.flash { padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); }
.flash.error { border-left: 4px solid var(--accent); }
.btn, button {
  display: inline-block; font: inherit; cursor: pointer; text-decoration: none;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
}
.btn.primary, button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.small, button.small { padding: 4px 10px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.items { list-style: none; padding: 0; margin: 0; }
.item {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin: 10px 0;
}
.item img, .item .noimg {
  width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: var(--bg);
}
.item .noimg { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.item .meta { color: var(--muted); font-size: 0.9rem; }
.item.claimed { opacity: 0.6; }
.pill {
  display: inline-block; font-size: 0.8rem; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.hot { color: var(--accent); border-color: var(--accent); }
form.inline { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 0; }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 0.95rem; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 4px 0; }
input[type=text], input[type=url], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
form.inline input[type=text] { width: 12em; }
form.inline input[type=number] { width: 5em; }
textarea { min-height: 70px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.banner { background: var(--warn-bg); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tabs a { text-decoration: none; }
.tabs a.current { font-weight: 700; text-decoration: underline; }
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .item { grid-template-columns: 72px 1fr; }
  .item img, .item .noimg { width: 72px; height: 72px; }
}
fieldset { border: 1px solid var(--line); border-radius: var(--radius); }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; margin: 0; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick img, .pick span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 96px; height: 96px; object-fit: contain; border-radius: 8px;
  border: 2px solid var(--line); background: var(--bg); font-weight: 400; font-size: 0.85rem;
}
.pick input:checked + img, .pick input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pick input:focus-visible + img, .pick input:focus-visible + span { outline: 2px solid var(--text); }
.brand img { width: 24px; height: 24px; vertical-align: -5px; margin-right: 6px; }
pre.code { white-space: pre-wrap; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 0.8rem; }
ol.steps li { margin: 6px 0; }
