:root { --bg: #f4f4f2; --card: #fff; --text: #111; --muted: #5c5c5c; --line: #ddd; --accent: #111; --on-accent: #fff;
  --danger: #b3261e; --ok: #1e6b35; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --card: #1c1c1c; --text: #f2f2f2; --muted: #a8a8a8; --line: #333; --accent: #f2f2f2;
    --on-accent: #111; --danger: #ff8a80; --ok: #7bd88f; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, Roboto, Arial, sans-serif; }
main { max-width: 480px; margin: 0 auto; padding: 16px; display: grid; gap: 12px; }
h1 { font-size: 22px; margin: 4px 0; } h2 { font-size: 18px; margin: 0; }
.card { background: var(--card); border-radius: 14px; padding: 16px; display: grid; gap: 8px; }
.center { text-align: center; } .muted { color: var(--muted); font-size: 14px; }
.row { display: flex; justify-content: space-between; gap: 12px; } .row > :last-child { white-space: nowrap; text-align: right; }
.total { font-size: 20px; font-weight: 700; } hr { border: 0; border-top: 1px dashed var(--line); margin: 4px 0; width: 100%; }
.badge { display: inline-block; border: 2px solid var(--danger); color: var(--danger); font-weight: 700; padding: 2px 10px; border-radius: 8px; }
button, a.button { font: inherit; font-weight: 600; min-height: 48px; border-radius: 12px; border: 0; padding: 0 16px;
  background: var(--accent); color: var(--on-accent); cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; }
button.secondary, a.secondary { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
button.danger { background: transparent; color: var(--danger); min-height: 40px; }
.saved { color: var(--ok); font-weight: 600; text-align: center; }
.list button { background: var(--card); color: var(--text); text-align: left; display: grid; gap: 2px; padding: 12px 16px;
  justify-content: stretch; min-height: 64px; border: 1px solid var(--line); }
.note { color: var(--muted); font-size: 14px; text-align: center; }
.right { text-align: right; } .list { display: grid; gap: 8px; }
