:root {
  --bg: #0f1419;
  --bg-elev: #1a222d;
  --surface: #243041;
  --ink: #f4f7fb;
  --muted: #9aa8b8;
  --accent: #5eb8ff;
  --accent-ink: #061824;
  --warn: #f5c542;
  --border: #334155;
  --danger: #f07178;
  --ok: #3dd68c;
  --radius: 14px;
  --tap: 44px;
  --max: 640px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100dvh;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

header.app-bar,
footer.site-foot,
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem;
}

header.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.brand:hover { text-decoration: none; color: var(--accent); }

.tag {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

h1 {
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.65rem;
}

.lead {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

code {
  font-size: 0.85em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.disclaimer {
  background: #2a2416;
  border: 1px solid #5c4a1f;
  color: #f0e2b8;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.panel-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--muted);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.note {
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 10px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}

#progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  transition: width 0.2s ease;
}

.progress-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.stack { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  min-height: var(--tap);
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; }

.supply-grid {
  display: grid;
  gap: 0.55rem;
}

.supply-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  min-height: var(--tap);
}
.supply-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.supply-link strong { font-size: 0.95rem; }
.supply-link span {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.room {
  margin-bottom: 1rem;
}

.room-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.room-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.room-count {
  color: var(--muted);
  font-size: 0.8rem;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.task {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
}
.task:hover { border-color: #475569; }
.task.done {
  opacity: 0.72;
  border-color: #1f4d3a;
}
.task.done .task-text { text-decoration: line-through; color: var(--muted); }

.task input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--ok);
}

.task-text { font-size: 0.95rem; }

.tip-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.tip-list li { margin-bottom: 0.45rem; }

footer.site-foot {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: 2rem;
}
footer.site-foot p { margin: 0.25rem 0; }
