:root { --bg: #fafaf8; --fg: #1d1d1b; --muted: #6b6b66; --line: #e3e2dc; --accent: #2f6f5e; --card: #fff; }
@media (prefers-color-scheme: dark) { :root { --bg: #151514; --fg: #ecebe6; --muted: #a3a29b; --line: #2f2e2b; --accent: #6fbfa6; --card: #1d1d1b; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, Segoe UI, sans-serif; }
header, main { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { margin: 8px 0 4px; font-size: 1.6rem; }
.lede { margin: 0 0 8px; }
.privacy { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: .92rem; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { position: relative; aspect-ratio: 3 / 4; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--card);
  display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; overflow: hidden; }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.slot.filled img { display: block; } .slot.filled span { display: none; }
.slot small { color: var(--muted); }
#progress { margin: 16px 0; } .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; } .msg { color: var(--muted); font-size: .9rem; }
#result { margin-top: 20px; } .total { font-size: 3.2rem; font-weight: 700; } .total small { font-size: 1rem; color: var(--muted); margin-left: 4px; }
.part { display: grid; grid-template-columns: 1fr 2fr 3ch; gap: 10px; align-items: center; margin: 6px 0; font-size: .95rem; }
.meter { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--accent); }
details { margin: 14px 0; } details label { display: block; margin: 6px 0; } input[type=range] { width: 100%; }
.fine { color: var(--muted); font-size: .85rem; } #error { color: #b3261e; }
@media (max-width: 520px) { .part { grid-template-columns: 1fr; gap: 2px; } .total { font-size: 2.6rem; } }
