:root {
  --bg: #f7f3ee;
  --card: #ffffff;
  --ink: #1f1a17;
  --muted: #7a6f66;
  --line: #e8dfd5;
  --accent: #c8402b;
  --accent-ink: #ffffff;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.narrow { max-width: 520px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 200px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
input, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 10px;
  padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; display: inline-block;
}
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pill.open { background: #e3f3e9; color: var(--ok); }
.pill.closed { background: #fcefd9; color: var(--warn); }
.pill.revealed { background: #fbe3df; color: var(--accent); }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ok); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dot.on { background: var(--ok); }
.msg { padding: 10px 14px; border-radius: 10px; margin: 10px 0; }
.msg.err { background: #fbe3df; color: #8a2a1c; }
.msg.ok { background: #e3f3e9; color: #1f5a37; }
.hidden { display: none !important; }
code { background: #f1ebe4; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
