:root {
  --bg: #fff4e6;
  --ink: #3a2e25;
  --accent: #e8590c;
  --pill: #ffd6a5;
  --roast: #ffec99;
  --resolve: #b2f2bb;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Comic Sans MS", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 4px solid var(--ink); background: #fff;
}
.logo { font-size: 22px; font-weight: 800; text-decoration: none; color: var(--ink); }
.topbar nav { display: flex; align-items: center; gap: 10px; }
.hi { opacity: .7; font-size: 14px; }
.container { max-width: 860px; margin: 24px auto; padding: 0 16px; }
.card {
  background: var(--card); border: 3px solid var(--ink);
  border-radius: 16px; padding: 16px; box-shadow: 4px 4px 0 var(--ink);
}
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 12px; padding: 6px 12px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
}
.btn-primary { background: var(--accent); color: #fff; width: 100%; padding: 10px; font-size: 16px; }
.btn-add { background: var(--pill); }
.btn-roast { background: var(--roast); }
.btn-resolve { background: var(--resolve); }
.btn-delete { background: #ffc9c9; }
.flashes { max-width: 860px; margin: 12px auto 0; padding: 0 16px; }
.flash { background: #ffe3e3; border: 2px solid #c92a2a; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.auth-card { max-width: 380px; margin: 40px auto; }
.auth-card h1 { margin-top: 0; }
.auth-card label { display: block; margin-bottom: 12px; font-weight: 700; }
.auth-card input { display: block; width: 100%; margin-top: 4px; padding: 8px; border: 2px solid var(--ink); border-radius: 10px; font-size: 15px; }
.muted { opacity: .7; }
.stats { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 160px; text-align: center; }
.stat-label { font-size: 13px; opacity: .7; }
.stat-value { font-size: 26px; font-weight: 800; }
.stat-value.cost { color: var(--accent); }
.section-title { margin: 18px 0 10px; }
.view-banner { background: var(--pill); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 16px; margin-bottom: 18px; font-weight: 800; text-align: center; }
.bottlenecks { display: flex; flex-direction: column; gap: 12px; }
.bottleneck { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bottleneck.resolved { opacity: .6; }
.bn-title { font-weight: 800; font-size: 17px; }
.bn-pill { display: inline-block; background: var(--pill); border-radius: 20px; padding: 2px 10px; font-size: 12px; margin-top: 4px; }
.bn-action { font-size: 12px; margin-top: 4px; }
.bn-reporter { font-size: 11px; margin-top: 4px; font-style: italic; }
.bn-metrics { text-align: center; min-width: 130px; }
.bn-timer { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bn-sub { font-size: 11px; }
.bn-actions { display: flex; flex-direction: column; gap: 6px; }
.badge-resolved { font-size: 12px; background: var(--resolve); border: 2px solid var(--ink); border-radius: 10px; padding: 3px 8px; text-align: center; }
.shame-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.shame-row { display: flex; justify-content: space-between; align-items: center; }
.shame-name { font-weight: 800; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery img { width: 100%; border-radius: 10px; display: block; }
