:root {
  --bg: #f6f4ef; --panel: #ffffff; --ink: #1d2422; --muted: #5d6965; --line: #d9d5cb;
  --accent: #1f6f5c; --accent-ink: #ffffff; --good: #1f6f5c; --bad: #a63a2b; --soft: #eef3f0;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141917; --panel: #1c2321; --ink: #e9eeeb; --muted: #9aa8a3; --line: #2f3a37; --accent: #4fbf9f; --accent-ink: #0d1614; --good: #4fbf9f; --bad: #f08a78; --soft: #222c29; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 680px; margin: 0 auto; padding: 56px 20px 40px; }
.eyebrow { margin: 0 0 6px; font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 38px); line-height: 1.15; letter-spacing: -.01em; }
.lede { margin: 0 0 28px; color: var(--muted); font-size: 17px; max-width: 56ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
[hidden] { display: none !important; }

.drop { border-style: dashed; border-width: 2px; text-align: center; padding: 52px 24px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); background: var(--soft); outline: none; }
.drop-title { margin: 0; font-size: 20px; font-weight: 600; }
.drop-sub { margin: 6px 0 0; color: var(--muted); }
.link { color: var(--accent); text-decoration: underline; }

.status { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.status.good { color: var(--good); } .status.bad { color: var(--bad); }
.bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
#fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .2s; }
.hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 0 0 20px; }
.totals div { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.totals dt { color: var(--muted); font-size: 13px; }
.totals dd { margin: 2px 0 0; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.primary, .secondary { display: inline-block; font: inherit; font-weight: 600; border-radius: 10px; padding: 11px 18px; cursor: pointer; text-decoration: none; }
.primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.primary:hover { filter: brightness(1.08); } .secondary:hover { border-color: var(--accent); }
.text { margin-top: 16px; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; color: var(--accent); text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#notes { margin-top: 22px; }
#notes h2 { margin: 18px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
#notes ul { margin: 0; padding-left: 20px; } #notes li { margin: 2px 0; }

.info { margin-top: 28px; }
summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 28px; margin-top: 8px; }
.cols h2 { font-size: 15px; margin: 8px 0 4px; } .cols ul { margin: 0; padding-left: 20px; color: var(--muted); }
footer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 6px; } footer a { color: inherit; }
