/*
 * RIA Recycling — resident pages (signup.html, my.html, live.html).
 *
 * The look RIA approved in the build outline (the phone's own font since 24 Oct), navy ink on a grey-green
 * ground, an amber strip for anything about the truck, green for done, red for
 * "not this". Deliberately not the dark fleet-dashboard theme of index.html:
 * these pages are RIA's, for residents; the live map is the operators'.
 *
 * Tokens first; components below use only tokens, so the dark theme is just
 * the token block again.
 */

:root {
  --ground: #EDF0EE;
  --surface: #FFFFFF;
  --surface-2: #F6F8F6;
  --ink: #10231A;
  --ink-2: #3C4F5C;
  --muted: #4A5560;
  --line: #DCE1DE;
  --line-soft: #E3E8E5;
  --signal: #F2B209;
  --signal-ink: #3F2E00;
  --yes: #1F7A55;
  --yes-soft: #E1F0E8;
  --no: #B8382C;
  --no-soft: #F7E3E0;
  --check: #A8650F;
  --check-soft: #FBEEDB;
  --board: #33709E;
  --on-color: #FFFFFF;
  --focus: #33709E;
  --shadow: 0 1px 2px rgba(16, 35, 26, .06), 0 8px 24px rgba(16, 35, 26, .07);
  --radius: 14px;
  /* The phone's own font, as the app uses (24 Oct): San Francisco on iPhone, Roboto on Android. */
  --f-sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --link: #1F5F99;
  --danger: #B3261E;
  /* The status card, one colour per meaning (docs/CARD_STATES.md). */
  --tone-evening: #0F2233;
  --tone-working: #24578F;
  --tone-act: #F2B209;
  --tone-street: #FFF1C2;
  --tone-done: #1F7A55;
  --tone-problem: #8F560C;
  --tone-off: #3E4A55;
  --card-ink: #0F2233;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0D1620;
    --surface: #15202A;
    --surface-2: #1A2631;
    --ink: #E6ECEF;
    --ink-2: #BAC6CD;
    --muted: #8B9AA3;
    --line: #2B3A46;
    --line-soft: #23313C;
    --signal: #F2B209;
    --signal-ink: #2A1E00;
    --yes: #45AE80;
    --yes-soft: rgba(69, 174, 128, .14);
    --no: #E36C60;
    --no-soft: rgba(227, 108, 96, .14);
    --check: #E0A04E;
    --check-soft: rgba(224, 160, 78, .14);
    --board: #6DA3CC;
    --link: #7FB3E0;
    --danger: #F2867C;
    --focus: #6DA3CC;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--board); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Frame ──────────────────────────────────────────────────────────────── */
.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
.app.no-nav { padding-bottom: 24px; }

.app-bar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.logo-dot {
  width: 34px; height: 34px; border-radius: 8px; flex: none; overflow: hidden;
  background: #10231A;
}
.logo-dot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-bar .title { display: flex; flex-direction: column; min-width: 0; }
.app-bar .title b { font-size: 15px; font-weight: 700; }
.app-bar .title span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar .right { margin-left: auto; display: flex; gap: 6px; }

.page { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* ── Bottom navigation ──────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 600;
  display: flex;
  justify-content: center;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav .inner { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; max-width: 560px; }
.bottom-nav a {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 4px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ── Surfaces ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card.flat { box-shadow: none; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Buttons & inputs ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.danger { color: var(--no); border-color: var(--no); background: transparent; }
.btn.small { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.link { border: 0; background: none; padding: 6px 0; min-height: 0; color: var(--board); font-weight: 600; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 17px;
}
.input.code { letter-spacing: .4em; font-size: 24px; font-weight: 600; text-align: center; }
.hint { font-size: 13.5px; color: var(--muted); }

/* ── Messages ───────────────────────────────────────────────────────────── */
.notice { border-radius: 12px; padding: 12px 14px; font-size: 15px; border: 1px solid var(--line); background: var(--surface-2); }
.notice.error { background: var(--no-soft); border-color: var(--no); color: var(--ink); }
.notice.warn { background: var(--check-soft); border-color: var(--check); }
.notice.ok { background: var(--yes-soft); border-color: var(--yes); }
.notice.test { background: var(--check-soft); border: 1px dashed var(--check); font-size: 14px; }
.notice b { font-weight: 700; }

.status-strip {
  display: flex; gap: 10px; align-items: center;
  border-radius: 12px; padding: 11px 13px;
  background: var(--signal); color: var(--signal-ink);
}
.status-strip.done { background: var(--yes); color: var(--on-color); }
.status-strip.quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.status-strip.late { background: var(--check); color: var(--on-color); }
.status-strip svg { width: 22px; height: 22px; flex: none; }
.status-strip b { display: block; font-weight: 700; font-size: 15px; }
.status-strip span { font-size: 13.5px; }

/* ── Timeline rows ──────────────────────────────────────────────────────── */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; gap: 10px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px;
}
.row:last-child { border-bottom: 0; }
.row .tag { margin-left: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.row .tag.done { color: var(--yes); font-weight: 600; }
.row .tag.wait { color: var(--check); font-weight: 600; }
.row .tag.bad { color: var(--no); font-weight: 600; }

/* ── Map ────────────────────────────────────────────────────────────────── */
.map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-2);
  z-index: 1;
}
.map.tall { height: 380px; }
.map-caption { font-size: 13px; color: var(--muted); }

/* ── Status panel (My street, live page) ───────────────────────────────── */
.hero {
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.hero-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: .8; }
.hero-title { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.hero-sub { font-size: 15px; line-height: 1.45; opacity: .92; max-width: 46ch; }
.hero[data-tone="active"] { background: var(--signal); color: var(--signal-ink); border-color: transparent; }
.hero[data-tone="good"] { background: var(--yes); color: var(--on-color); border-color: transparent; }
.hero[data-tone="warn"] { background: var(--check); color: var(--on-color); border-color: transparent; }
.hero-progress { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13.5px; font-weight: 600; }
.hero-progress .meter { flex: 1; height: 8px; border-radius: 99px; background: rgba(16, 35, 26, .14); overflow: hidden; }
.hero[data-tone="good"] .meter, .hero[data-tone="warn"] .meter { background: rgba(255, 255, 255, .28); }
.hero-progress .meter i { display: block; height: 100%; border-radius: 99px; background: currentColor; transition: width .6s ease; }
.hero-progress span { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Live map ───────────────────────────────────────────────────────────── */
.street-view { display: flex; flex-direction: column; gap: 12px; }
.map-wrap { position: relative; }
.map-tall { height: min(62vh, 520px); min-height: 340px; }
@media (max-width: 560px) {
  .map-wrap { margin-inline: -16px; }
  .map-wrap .map { border-radius: 0; border-left: 0; border-right: 0; }
}
.map-badge {
  position: absolute; top: 12px; left: 12px; z-index: 450;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px 5px 9px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.map-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.map-badge.live i { background: var(--yes); box-shadow: 0 0 0 0 rgba(31, 122, 85, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31, 122, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 122, 85, 0); } }
.map-btn {
  position: absolute; top: 12px; right: 12px; z-index: 450;
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer;
}
.map-btn.second { top: 60px; }
.map-btn svg { width: 21px; height: 21px; }
.map-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.map-key span { display: inline-flex; align-items: center; gap: 7px; }
.map-key i { display: inline-block; flex: none; }
.key-street { width: 20px; height: 6px; border-radius: 3px; background: var(--signal); box-shadow: 0 0 0 1.5px rgba(16, 35, 26, .35); }
.key-home { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.key-area { width: 16px; height: 12px; border: 2px dashed rgba(16, 35, 26, .7); border-radius: 3px; background: rgba(242, 178, 9, .18); }
.truck-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.truck-list li { display: grid; grid-template-columns: 14px auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.truck-list li:last-child { border-bottom: 0; }
.truck-list i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.truck-list b { font-weight: 700; }
.truck-list span { color: var(--muted); font-size: 14px; }
.key-trail { width: 22px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgba(31, 122, 85, .2), #1F7A55); }

.leaflet-container { font-family: var(--f-sans); background: var(--surface-2); }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 10px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--ink) !important; background: var(--surface) !important; border-color: var(--line-soft) !important; }
.leaflet-control-attribution { font-size: 10.5px; background: rgba(255, 255, 255, .78) !important; }

.truck-icon, .home-pin { background: none; border: 0; }
.truck-pin { position: relative; display: block; width: 40px; height: 40px; }
.truck-pin b {
  position: absolute; inset: 5px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c, #1F7A55); color: #fff; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(16, 35, 26, .35);
}
.truck-pin b svg { width: 17px; height: 17px; }
.truck-dir { position: absolute; inset: 0; }
.truck-dir::before {
  content: ""; position: absolute; left: 50%; top: -3px; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 9px solid var(--c, #1F7A55);
  filter: drop-shadow(0 0 1.5px #fff);
}
.truck-pin.stale b { filter: grayscale(.9); opacity: .65; }
.home-pin { display: grid !important; place-items: center; }
.home-pin svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #10231A; color: #fff; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(16, 35, 26, .35); }
.leaflet-tooltip.truck-label {
  background: #10231A; color: #fff; border: 0; border-radius: 7px; font-size: 12px; font-weight: 700;
  padding: 3px 8px; box-shadow: 0 2px 6px rgba(16, 35, 26, .3); white-space: nowrap;
}
.leaflet-tooltip.truck-label::before { border-top-color: #10231A; }
/* Tap a trail: "RIA9 passed here at 09:42". Same dark bubble as the truck labels. */
.leaflet-popup.trail-pop .leaflet-popup-content-wrapper { background: #10231A; color: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(16, 35, 26, .35); }
.leaflet-popup.trail-pop .leaflet-popup-content { margin: 7px 11px; font-size: 13px; line-height: 1.3; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.leaflet-popup.trail-pop .leaflet-popup-content i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff; }
.leaflet-popup.trail-pop .leaflet-popup-content time { font-weight: 700; }
.leaflet-popup.trail-pop .leaflet-popup-tip { background: #10231A; }

/* ── Timeline ───────────────────────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.panel-title { font-size: 17px; margin-bottom: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: -2px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); position: relative; z-index: 1; }
.step.done .step-dot { background: var(--yes); border-color: var(--yes); }
.step.done .step-dot::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}
.step.now .step-dot { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 4px rgba(242, 178, 9, .25); }
.step.warn .step-dot { border-color: var(--check); background: var(--check); }
.step.done::before { background: var(--yes); }
.step-title { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.step-title time { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; }
.step.done .step-title time { color: var(--yes); }
.step.next .step-title { color: var(--ink-2); font-weight: 500; }
.step-note { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .map-badge.live i { animation: none; } .hero-progress .meter i { transition: none; } }

/* ── Sign-up: what the messages look like ────────────────────────────────── */
.preview { background: #E9E4DA; border-radius: 12px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.preview-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #3C4F5C; margin-bottom: 2px; }
.preview-avatar { width: 22px; height: 22px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; padding: 2px; }
.preview-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bubble {
  align-self: flex-start; max-width: 88%; background: #FFFFFF; color: #111B21; border-radius: 0 10px 10px 10px;
  padding: 6px 9px 4px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13); position: relative;
}
.bubble p { font-size: 14px; line-height: 1.35; }
.bubble time { display: block; text-align: right; font-size: 11px; color: #667781; margin-top: 1px; }
@media (prefers-color-scheme: dark) { .preview { background: #1A2631; } .preview-head { color: var(--ink-2); } }

/* ── Search results ─────────────────────────────────────────────────────── */
.results { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.results button {
  text-align: left; border: 0; border-bottom: 1px solid var(--line-soft);
  background: var(--surface); padding: 12px 14px; cursor: pointer; font-size: 15px;
}
.results button:last-child { border-bottom: 0; }
.results button span { display: block; font-size: 13px; color: var(--muted); }

/* ── Street choice ──────────────────────────────────────────────────────── */
.street-card { border-left: 5px solid var(--signal); }
.street-card .name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.street-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 15px; }
.street-card dt { color: var(--muted); }
.street-card dd { margin: 0; font-weight: 600; }

/* ── Toggles ────────────────────────────────────────────────────────────── */
.toggles { display: flex; flex-direction: column; }
.toggle {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.toggle:last-child { border-bottom: 0; }
.toggle b { display: block; font-weight: 600; }
.toggle span { display: block; font-size: 13.5px; color: var(--muted); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s;
}
.switch input:checked + i { background: var(--yes); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--focus); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--yes); }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps { display: flex; gap: 5px; }
.steps i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--ink); }

/* ── Tabs & lists ───────────────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
/* The street chips under the status panel: one row, scrolls sideways when there are many. */
.street-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0; scrollbar-width: none; }
.street-chips::-webkit-scrollbar { display: none; }
.street-chips .chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px var(--surface); flex: none; }
.chip[aria-pressed="true"] .chip-dot { box-shadow: 0 0 0 2px var(--ink); }

.alert-list { display: flex; flex-direction: column; }
.alert-day { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; }
.alert-day:first-child { padding-top: 0; }
.alert-item { position: relative; padding: 11px 0 12px 20px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.alert-item::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--line)); }
.alert-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.alert-top b { font-size: 14px; font-weight: 700; }
.alert-top time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; }
.alert-top b { flex: none; }
.alert-street { font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-item p { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.alert-item a { font-weight: 600; }
.alert-state { font-size: 12.5px; font-weight: 600; color: var(--check); }
.alert-state.ok { color: var(--yes); }
.alert-item.unsent p { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

/* ── Sheet (settings) ───────────────────────────────────────────────────── */
dialog.sheet {
  border: 0; padding: 0; width: 100%; max-width: 560px;
  margin: auto auto 0; border-radius: 18px 18px 0 0;
  background: var(--surface); color: var(--ink);
  max-height: 88dvh;
}
dialog.sheet::backdrop { background: rgba(16, 35, 26, .45); }
dialog.sheet .sheet-head {
  position: sticky; top: 0; background: var(--surface); z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px; border-bottom: 1px solid var(--line-soft);
}
dialog.sheet .sheet-body {
  padding: 14px 14px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px;
  background: var(--ground);
}
/* Each part of the sheet is a card, like the panels on My street. */
dialog.sheet section {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
dialog.sheet section h3 { font-size: 17px; margin: 0; }
dialog.sheet section p { margin: 0; }
dialog.sheet #set-number { font-weight: 600; }
/* Several streets (15 Oct): the rows in Settings, and a name of their own for a street. */
.street-rows { display: flex; flex-direction: column; }
.street-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.street-row:first-child { padding-top: 0; }
.street-row:last-child { border-bottom: 0; padding-bottom: 0; }
.street-row b { font-weight: 700; }
.street-label { font-weight: 600; color: var(--ink-2); }
.street-label::before { content: "· "; color: var(--muted); font-weight: 400; }
.street-main { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--yes); margin-left: 6px; }
.rename-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.rename-row .input { min-width: 0; min-height: 42px; font-size: 16px; }
.btn.disabled { opacity: .5; pointer-events: none; }
dialog.sheet .toggles { margin: -4px 0; }
.pause-row, .search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.pause-row .input, .search-row .input { min-width: 0; }
.confirm { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.sheet-foot { text-align: center; margin: 4px 0 0; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); z-index: 2000;
  background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: 10px; font-size: 14.5px; max-width: calc(100% - 32px);
  box-shadow: var(--shadow);
}

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .switch i, .switch i::after { transition: none; }
}

/* ── Recycling guide (guide.html) ───────────────────────────────────────── */
/* Three verdicts, three colours: green yes, amber check first, red never.   */
.guide { display: flex; flex-direction: column; gap: 14px; }
.guide-hero { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.guide-hero h1, .guide-title { font-size: 28px; }
.guide-lead { color: var(--ink-2); font-size: 16px; max-width: 52ch; }
.guide-h { font-size: 17px; margin-top: 6px; }

.guide-search { position: relative; }
.guide-search svg { position: absolute; left: 15px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.guide-search .input { padding-left: 48px; min-height: 56px; border-radius: 14px; border-width: 1.5px; box-shadow: var(--shadow); -webkit-appearance: none; appearance: none; }

.guide-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--on-color); }
.guide-dot svg { width: 18px; height: 18px; }
.guide-dot.yes { background: var(--yes); }
.guide-dot.check { background: var(--check); }
.guide-dot.never { background: var(--no); }

.guide-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide-tiles.wide { grid-template-columns: 1fr; }
.guide-tiles:empty { display: none; }
.guide-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; align-content: center;
  min-height: 78px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.guide-tile .guide-dot { grid-row: 1 / span 2; }
.guide-tile b { font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.guide-tile > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.3; }
.guide-tile.check { background: var(--check-soft); border-color: var(--check); }
.guide-tile.never { background: var(--no-soft); border-color: var(--no); }
.guide-tile.check > span:last-child, .guide-tile.never > span:last-child { color: var(--ink-2); }

.guide-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 11px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.guide-list li:last-child .guide-row { border-bottom: 0; }
.guide-row:active { background: var(--surface-2); }
.guide-row .guide-dot { width: 26px; height: 26px; }
.guide-row .guide-dot svg { width: 15px; height: 15px; }
.guide-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.guide-row-text b { font-weight: 600; font-size: 16px; line-height: 1.3; }
.guide-row-text span { font-size: 13.5px; color: var(--muted); }
.guide-chev { color: var(--muted); flex: none; }
.guide-chev svg { width: 18px; height: 18px; display: block; }

.guide-back { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; min-height: 40px; margin: -4px 0 -8px -4px; padding: 4px; color: var(--board); font-weight: 600; text-decoration: none; }
.guide-back svg { width: 20px; height: 20px; }

.guide-verdict { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); color: var(--on-color); }
.guide-verdict.yes { background: var(--yes); }
.guide-verdict.check { background: var(--check); }
.guide-verdict.never { background: var(--no); }
.guide-verdict .guide-dot { width: 46px; height: 46px; background: rgba(255, 255, 255, .22); color: inherit; }
.guide-verdict .guide-dot svg { width: 27px; height: 27px; }
.guide-verdict b { display: block; font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.guide-verdict div > span { display: block; font-size: 14.5px; opacity: .92; margin-top: 2px; }

.guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.guide-steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: start; font-size: 16px; line-height: 1.45; }
.guide-steps li::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; margin-top: -2px;
}

.guide-notthis { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--no-soft); border: 1px solid var(--no); }
.guide-notthis > svg { width: 22px; height: 22px; flex: none; color: var(--no); margin-top: 1px; }
.guide-notthis b { display: block; color: var(--no); margin-bottom: 2px; }
.guide-notthis p + p, .guide-why p + p, .guide-never p + p { margin-top: 8px; }
.guide-why { padding: 2px 2px 0; }
.guide-why p { color: var(--ink-2); }

.guide-photo { margin: 0; }
.guide-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }

.guide-never { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--no); border-radius: var(--radius); scroll-margin-top: 80px; }
.guide-never .guide-dot { width: 26px; height: 26px; margin-top: 1px; }
.guide-never .guide-dot svg { width: 15px; height: 15px; }
.guide-never h2 { font-size: 17px; margin-bottom: 4px; }
.guide-never p { font-size: 15px; color: var(--ink-2); }
.guide-never .guide-where { margin-top: 6px; color: var(--ink); }
.guide-flash { animation: guide-flash 1.8s ease 1; }
@keyframes guide-flash { 0%, 45% { box-shadow: 0 0 0 3px var(--no); } 100% { box-shadow: 0 0 0 0 transparent; } }

.guide-news { gap: 6px; color: var(--ink); text-decoration: none; }
.guide-news b { font-size: 18px; line-height: 1.25; }
.guide-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.guide-pin { background: var(--ink); color: var(--surface); border-radius: 99px; padding: 1px 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.guide-sponsor { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.guide-excerpt { font-size: 15px; color: var(--ink-2); }
.guide-post { display: flex; flex-direction: column; gap: 10px; }
.guide-post p { font-size: 16.5px; line-height: 1.6; }
.guide-none p { color: var(--ink-2); }

@media (prefers-color-scheme: dark) {
  /* White on the dark theme's lighter verdict colours is too faint: dark ink instead. */
  .guide-verdict, .guide-dot { color: #0D1620; }
  .guide-verdict .guide-dot { background: rgba(13, 22, 32, .14); }
}


/* ══ The redesign of 24 Oct: the same blocks as the app (docs/redesign/web/*.png) ══ */

/* Header: the app's icon, the name, "<street> · <day>s", Settings with its name. */
.app-head {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
/* The mark is a full-bleed square with its own forest ground: the tile only rounds it. */
.app-head .mark { width: 44px; height: 44px; border-radius: 12px; flex: none; overflow: hidden; background: #10231A; }
.app-head .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-head .title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-head .title b { font-size: 18px; font-weight: 800; }
.app-head .title span { font-size: 14.5px; color: var(--muted); }
.head-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none;
}
.head-btn svg { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--link); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 16px; }

/* The status card. */
.status-card { border-radius: 22px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; color: #FFFFFF; }
.status-card .eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.status-card .headline { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.status-card[data-tone="act"] .headline { font-size: 31px; line-height: 1.15; }
.status-card .detail { margin: 0; font-size: 17px; line-height: 1.38; }
.status-card[data-tone="quiet"] { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.status-card[data-tone="quiet"] .eyebrow, .status-card[data-tone="quiet"] .detail { color: var(--ink-2); }
.status-card[data-tone="evening"] { background: var(--tone-evening); }
.status-card[data-tone="working"] { background: var(--tone-working); }
.status-card[data-tone="act"] { background: var(--tone-act); color: var(--card-ink); }
.status-card[data-tone="street"] { background: var(--tone-street); color: var(--card-ink); border: 3px solid var(--tone-act); }
.status-card[data-tone="done"] { background: var(--tone-done); }
.status-card[data-tone="problem"] { background: var(--tone-problem); }
.status-card[data-tone="off"] { background: var(--tone-off); }
.card-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 16px;
  border-radius: 14px; border: 0; background: #FFFFFF; color: var(--card-ink); font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none;
}
.card-btn svg { width: 20px; height: 20px; }
.status-card[data-tone="act"] .card-btn, .status-card[data-tone="street"] .card-btn, .status-card[data-tone="quiet"] .card-btn { background: #10231A; color: #FFFFFF; }
.status-card[data-tone="act"] .card-btn svg, .status-card[data-tone="street"] .card-btn svg { display: none; }
.card-note { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.35; padding: 0 2px; }

/* The progress line: the area's figure filled, the truck on it, the home where the street usually comes. */
.progress-line { padding-top: 2px; }
.progress-line .track { position: relative; height: 30px; margin: 0 15px; }
.progress-line .bar, .progress-line .fill { position: absolute; top: 12px; height: 6px; border-radius: 3px; left: -15px; }
.progress-line .bar { right: -15px; background: rgba(255, 255, 255, .35); }
.progress-line .fill { background: #FFFFFF; }
.progress-line .marker {
  position: absolute; top: 0; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid #FFFFFF; background: #FFFFFF; color: var(--tone-working);
}
.progress-line .marker.home { background: transparent; color: #FFFFFF; }
.progress-line .marker.faded { opacity: .55; }
.progress-line .marker svg { width: 15px; height: 15px; }
.progress-line .labels { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-top: 8px; }
.status-card[data-tone="act"] .progress-line .bar, .status-card[data-tone="street"] .progress-line .bar { background: rgba(15, 34, 51, .22); }
.status-card[data-tone="act"] .progress-line .fill, .status-card[data-tone="street"] .progress-line .fill { background: var(--card-ink); }
.status-card[data-tone="act"] .marker, .status-card[data-tone="street"] .marker { border-color: var(--card-ink); background: var(--card-ink); color: var(--tone-act); }
.status-card[data-tone="act"] .marker.home, .status-card[data-tone="street"] .marker.home { background: transparent; color: var(--card-ink); }
.status-card[data-tone="done"] .marker { color: var(--tone-done); }
.status-card[data-tone="problem"] .marker { color: var(--tone-problem); }
.status-card[data-tone="done"] .marker.home, .status-card[data-tone="problem"] .marker.home { color: #FFFFFF; }

/* The "Today" steps. */
.steps-card { background: var(--surface); border-radius: 22px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.steps-card h2 { font-size: 19px; }
.steps-card ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps-card li { display: flex; gap: 12px; align-items: flex-start; }
.steps-card .dot { width: 13px; height: 13px; border-radius: 50%; flex: none; margin-top: 6px; }
.steps-card .done .dot { background: var(--tone-done); }
.steps-card .now .dot { background: var(--tone-act); }
.steps-card .problem .dot { background: var(--tone-problem); }
.steps-card .next .dot { border: 2px solid var(--muted); }
.steps-card .t { margin: 0; font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.steps-card .t time, .steps-card .t .w { font-weight: 400; color: var(--muted); margin-left: 6px; }
.steps-card .n { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* The short map, its badge and its key. */
.short-map { position: relative; height: 190px; border-radius: 20px; overflow: hidden; background: var(--line-soft); }
.short-map.closeup { height: 170px; border-radius: 14px; border: 1px solid rgba(15, 34, 51, .25); }
.short-map .map { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.short-map.greyed .map { filter: grayscale(1) opacity(.7); }
.short-map .badge {
  position: absolute; top: 10px; left: 10px; z-index: 450; display: inline-flex; align-items: center; gap: 8px;
  background: #FFFFFF; color: #0F2233; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700;
}
.short-map .badge i { width: 9px; height: 9px; border-radius: 50%; background: #8A9590; }
.short-map .badge.live i { background: var(--tone-done); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .k-street { width: 18px; height: 4px; border-radius: 2px; background: var(--signal); }
.legend .k-home { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--ink); }
.legend .k-area { width: 15px; height: 0; border-top: 3px dashed var(--ink); }
.legend .k-route { width: 18px; height: 3px; border-radius: 2px; background: #5E9E7E; }

/* A row that goes somewhere, the offline bar, compact cards for several streets. */
.link-row {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 16px; border-radius: 22px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; border: 0; width: 100%; cursor: pointer; text-align: left;
}
.link-row svg { width: 22px; height: 22px; flex: none; }
.link-row .ico { color: var(--link); }
.link-row span { flex: 1; }
.offline-bar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 16px; background: #DFE3E1; color: var(--ink-2); font-size: 15.5px; }
.offline-bar svg { width: 20px; height: 20px; flex: none; }
.offline-bar span { flex: 1; }
.offline-bar button { background: none; border: 0; font-weight: 800; color: var(--ink); min-height: 44px; cursor: pointer; font-size: 15.5px; }
.compact-card {
  display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 16px; border-radius: 22px; width: 100%;
  border: 0; text-align: left; cursor: pointer; color: #FFFFFF; font: inherit;
}
.compact-card .eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.compact-card .headline { margin: 2px 0 0; font-size: 20px; font-weight: 800; line-height: 1.25; }
.compact-card div { flex: 1; }
.compact-card svg { width: 22px; height: 22px; flex: none; }
.compact-card[data-tone="quiet"] { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.compact-card[data-tone="evening"] { background: var(--tone-evening); }
.compact-card[data-tone="working"] { background: var(--tone-working); }
.compact-card[data-tone="act"] { background: var(--tone-act); color: var(--card-ink); }
.compact-card[data-tone="street"] { background: var(--tone-street); color: var(--card-ink); border: 3px solid var(--tone-act); }
.compact-card[data-tone="done"] { background: var(--tone-done); }
.compact-card[data-tone="problem"] { background: var(--tone-problem); }
.compact-card[data-tone="off"] { background: var(--tone-off); }
.add-street { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }

/* Big buttons and the alert choices (sign-up and Settings). */
.big-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 18px; border-radius: 14px; border: 0; background: #10231A; color: #FFFFFF; font-weight: 700; font-size: 18px; cursor: pointer; text-decoration: none; }
.big-btn.outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.big-btn[disabled] { opacity: .5; cursor: not-allowed; }
.text-link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--link); font-weight: 700; font-size: 17px; cursor: pointer; text-align: left; }
.preset { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.preset[aria-checked="true"] { border: 2.5px solid var(--tone-done); background: #EEF5F1; }
.preset .radio { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--muted); flex: none; display: grid; place-items: center; }
.preset[aria-checked="true"] .radio { border: 0; background: var(--tone-done); }
.preset[aria-checked="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #FFFFFF; }
.preset b { display: block; font-size: 18px; }
.preset span.d { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.3; }
.choices { display: flex; flex-direction: column; gap: 12px; }
.own-row { display: flex; align-items: center; gap: 8px; min-height: 48px; border-top: 1px solid var(--line-soft); padding-top: 8px; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; font: inherit; }
.own-row b { flex: 1; color: var(--link); font-size: 17px; text-align: left; }
.own-row span { color: var(--muted); font-size: 17px; }
.chip.pause { min-height: 44px; }
.section-card { background: var(--surface); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.section-card h3 { font-size: 20px; }

/* The alerts list. */
.alerts-day { margin: 6px 0 0; color: var(--muted); font-weight: 800; font-size: 14.5px; letter-spacing: .07em; text-transform: uppercase; }
.alerts-card { background: var(--surface); border-radius: 22px; padding: 0 16px; }
.alert-line { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.alert-line:first-child { border-top: 0; }
.alert-line .ico { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.alert-line .ico svg { width: 18px; height: 18px; }
.alert-line .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.alert-line .top { display: flex; align-items: baseline; gap: 10px; }
.alert-line .top b { flex: 1; font-size: 17.5px; font-weight: 800; }
.alert-line .top time { color: var(--muted); font-size: 15.5px; }
.alert-line .kind { font-size: 13.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.alert-line p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.35; }
.alert-line .held { color: #8F560C; font-weight: 700; font-size: 15px; }
.alert-line[data-kind="night_before"] .ico { background: #E3E8EE; color: #0F2233; }
.alert-line[data-kind="area_started"] .ico, .alert-line[data-kind="second_truck"] .ico { background: #E1EAF4; color: #24578F; }
.alert-line[data-kind="nearby"] .ico, .alert-line[data-kind="in_street"] .ico { background: #FDEFC4; color: #7A5A00; }
.alert-line[data-kind="running_late"] .ico { background: #F4E6D4; color: #8F560C; }
.alert-line[data-kind="area_finished"] .ico { background: #E1F0E8; color: #1F7A55; }
.alert-line[data-kind="service_notice"] .ico { background: #E1EAF4; color: #1F5F99; }
.alert-line[data-kind="night_before"] .kind { color: #0F2233; }
.alert-line[data-kind="area_started"] .kind, .alert-line[data-kind="second_truck"] .kind { color: #24578F; }
.alert-line[data-kind="nearby"] .kind, .alert-line[data-kind="in_street"] .kind { color: #7A5A00; }
.alert-line[data-kind="running_late"] .kind { color: #8F560C; }
.alert-line[data-kind="area_finished"] .kind { color: #1F7A55; }
.alert-line[data-kind="service_notice"] .kind { color: #1F5F99; }
@media (prefers-color-scheme: dark) {
  .offline-bar { background: var(--surface-2); }
  .preset[aria-checked="true"] { background: rgba(69, 174, 128, .12); }
  .status-card[data-tone="quiet"] .card-btn { background: var(--ink); color: var(--ground); }
}
/* On a computer: the phone-width column, centred (p_desktop: a proper layout later). */
@media (min-width: 700px) {
  .app { max-width: 480px; }
}
/* "Follow it live" on the web: the short map grows and can be moved (my.js openFullMap). */
.short-map.full { height: min(72vh, 620px); border-radius: 20px; }
.short-map:not(.full) .leaflet-control-zoom { display: none; }
.short-map .map-done { position: absolute; top: 10px; right: 10px; z-index: 460; }

/* Sign-up on the web, in the app's order (u_welcome, u_find, u_confirm, u_alerts, u_phone). */
.app-head .dashes { display: flex; gap: 4px; }
.app-head .dashes i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.app-head .dashes i.on { background: var(--ink); }
.step-heading { font-size: 28px; line-height: 1.2; }
.lead { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.38; }
.welcome { padding-top: 24px; gap: 20px; }
.welcome-top { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.welcome-icon { width: 88px; height: 88px; border-radius: 22px; border: 1px solid var(--line); background: #FFFFFF; display: grid; place-items: center; overflow: hidden; }
.welcome-top h1 { font-size: 30px; }
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.benefits li { display: flex; align-items: center; gap: 14px; font-size: 17.5px; }
.benefits svg { width: 22px; height: 22px; color: var(--tone-done); flex: none; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 14px; min-height: 54px; }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font-size: 18px; min-height: 50px; }
.results-card { background: var(--surface); border-radius: 20px; padding: 0 16px; display: flex; flex-direction: column; }
.results-card button { text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); padding: 14px 0; min-height: 56px; cursor: pointer; font: inherit; color: var(--ink); font-size: 18px; font-weight: 700; }
.results-card button:first-child { border-top: 0; color: var(--link); }
.results-card .results-credit { margin: 0; padding: 8px 0 10px; border-top: 1px solid var(--line, #E3E8E5); color: var(--muted); font-size: 12px; text-align: right; }
.results-card button span { display: block; color: var(--muted); font-weight: 400; font-size: 15.5px; }
.signup-map { height: 210px; border-radius: 20px; }
.signup-map.confirm { height: 190px; }
.section-card .name { margin: 0; font-size: 20px; font-weight: 800; }
.section-card .fact { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 17px; color: var(--muted); }
.section-card .fact b { color: var(--ink); }
.text-link.center { text-align: center; width: 100%; }
/* Cloudflare's human check (signup.js); empty and taking no room unless Turnstile asks something. */
.human-check:empty { display: none; }
.human-check { display: flex; justify-content: center; }
.number-box { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 16px; min-height: 56px; }
.number-box input { flex: 1; border: 0; outline: 0; background: none; font-size: 20px; letter-spacing: .02em; min-height: 52px; }
.number-box .ok { color: var(--tone-done); display: none; }
.number-box.valid { border-color: var(--tone-done); }
.number-box.valid .ok { display: block; }
.number-box.invalid { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: 15.5px; }

/* The guide's home (g_overview): a picture per type of packaging, Never with its badge. */
.guide-tiles.pics { grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-tile.pic { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 92px; padding: 14px; border-radius: 20px; background: var(--surface); border: 0; text-decoration: none; color: var(--ink); }
.guide-tile.pic b { font-size: 16.5px; }
.pic-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--yes-soft); color: var(--tone-done); display: grid; place-items: center; }
.pic-ico svg { width: 24px; height: 24px; }
.never-card { background: var(--surface); border-radius: 22px; padding: 0 16px; display: flex; flex-direction: column; }
.never-row { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.never-row:first-child { border-top: 0; }
.never-top { display: flex; align-items: center; gap: 10px; }
.never-top b { flex: 1; font-size: 17.5px; font-weight: 800; }
.never-badge { border-radius: 999px; padding: 4px 12px; background: var(--danger); color: #FFFFFF; font-size: 14px; font-weight: 800; }
.never-why { color: var(--ink-2); font-size: 16px; line-height: 1.38; }
