:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --text: #1b1f23;
  --muted: #5f6b76;
  --line: #d9dee3;
  --accent: #1d70b8;
  --accent-text: #ffffff;
  --error: #b42318;
  --ok: #1e7b34;
  --bin-white: #f6f6f6;
  --bin-blue: #1d70b8;
  --bin-green: #2e7d32;
  --bin-black: #222222;
  --bin-brown: #7a4a1e;
  --bin-food: #7a4a1e;
  --bin-garden: #6b8e23;
  --bin-other: #9aa4ad;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111417;
    --card: #1a1f24;
    --text: #e8ecef;
    --muted: #9aa6b1;
    --line: #2f373f;
    --accent: #5aa9ea;
    --accent-text: #0b1218;
    --error: #ff8a80;
    --ok: #7bd88f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}
.card.narrow { max-width: 440px; }

.brand { margin: 0 0 8px; font-weight: 700; color: var(--accent); font-size: 14px; letter-spacing: .02em; }
.brand a { color: inherit; text-decoration: none; }
h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
h2 { margin: 28px 0 12px; font-size: 18px; }
.lede { margin: 0 0 24px; color: var(--muted); }

label { display: block; font-weight: 600; margin: 16px 0 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input { flex: 1 1 200px; }

input, select, button {
  font: inherit;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
}
input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.row input { width: auto; }
input:focus, select:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }

button {
  border: 0;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  cursor: pointer;
  padding: 10px 18px;
}
button:disabled { opacity: .6; cursor: progress; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.actions { margin-top: 16px; }

.status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); font-weight: 600; }

.collections { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.collections li { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.collections .when { font-weight: 600; }
.collections .when.soon { color: var(--accent); }
.collections .bins { display: flex; flex-direction: column; gap: 4px; }
.bin { display: flex; align-items: center; gap: 8px; }
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--muted); background: var(--bin-other); }
.dot.white { background: var(--bin-white); }
.dot.blue { background: var(--bin-blue); }
.dot.green { background: var(--bin-green); }
.dot.black { background: var(--bin-black); }
.dot.brown { background: var(--bin-brown); }
.dot.food { background: var(--bin-food); }
.dot.garden { background: var(--bin-garden); }

.fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
a { color: var(--accent); }

@media (max-width: 480px) {
  body { padding: 16px; }
  .card { padding: 20px 16px; }
  h1 { font-size: 24px; }
  .collections li { grid-template-columns: 1fr; }
  .row button { width: 100%; }
}

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin-top: 16px; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

.cookie-banner { background: var(--card); border-bottom: 1px solid var(--line); margin: -32px -16px 24px; padding: 16px; }
.cookie-inner { max-width: 560px; margin: 0 auto; }
.cookie-banner h2 { margin: 0 0 6px; font-size: 17px; }
.cookie-banner p { margin: 0 0 12px; font-size: 14px; }
.cookie-banner .row { align-items: center; }
.cookie-banner .row a { font-size: 14px; margin-left: 4px; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
table.data th { font-weight: 600; }
footer p { margin: 0 0 6px; }

@media (max-width: 480px) {
  .cookie-banner { margin: -16px -16px 16px; }
  .cookie-banner .row button { width: auto; flex: 1; }
}

.info { margin-top: 32px; }
.bin-guide { list-style: none; margin: 0; padding: 0; }
.bin-guide li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bin-guide .dot { margin-top: 5px; }
.bin-guide em { color: var(--muted); font-style: normal; }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }
