/* Garage Sale Central design system v2.
   Layout: desktop = list panel (440px) beside a full-height map; phone = one screen at a time (Map, List, Route, Post) with a bottom navigation bar. */
:root {
  --brand: #E8590C; --brand-ink: #FFFFFF; --brand-soft: #FDE8DC;
  --ink: #17201D; --muted: #5B6763; --canvas: #F4F5F2; --surface: #FFFFFF; --line: #DCE0DA; --fill: #ECEEE9;
  --land: #E9ECE5; --water: #CBE0E5; --road: #CFC7B6; --maplabel: #66706B;
  --open: #2B8A3E; --soon: #B35C00; --closed: #C92A2A; --focus: #1971C2;
  --t-garage: #F76707; --t-yard: #2F9E44; --t-estate: #D6336C; --t-neighborhood: #F59F00; --t-moving: #1C7ED6;
  --shadow: 0 8px 28px rgba(20, 28, 25, .16), 0 1px 3px rgba(20, 28, 25, .08);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --r-sm: 8px; --r-md: 14px; --navh: 64px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand: #FF8A4C; --brand-ink: #1A0E05; --brand-soft: #3A2417;
  --ink: #EEF2EF; --muted: #9DA9A4; --canvas: #121614; --surface: #1B201E; --line: #2C3431; --fill: #252C29;
  --land: #1C2220; --water: #0F252B; --road: #45402F; --maplabel: #8F9994;
  --open: #69DB7C; --soon: #FFB347; --closed: #FF8787; --focus: #74C0FC;
  --shadow: 0 8px 28px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4); color-scheme: dark } }
:root[data-theme="dark"] {
  --brand: #FF8A4C; --brand-ink: #1A0E05; --brand-soft: #3A2417;
  --ink: #EEF2EF; --muted: #9DA9A4; --canvas: #121614; --surface: #1B201E; --line: #2C3431; --fill: #252C29;
  --land: #1C2220; --water: #0F252B; --road: #45402F; --maplabel: #8F9994;
  --open: #69DB7C; --soon: #FFB347; --closed: #FF8787; --focus: #74C0FC;
  --shadow: 0 8px 28px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4); color-scheme: dark }

html, body { height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }

/* ---------- app frame ---------- */
.app { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.bar { display: flex; align-items: center; gap: 12px; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.logo { display: flex; align-items: center; gap: 8px; font: 800 19px/1 var(--display); letter-spacing: -0.015em; white-space: nowrap; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; }
.logo .mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--brand); color: var(--brand-ink); }
.logo .mark svg { width: 19px; height: 19px; stroke-width: 2.1; }
.logo em { font-style: normal; color: var(--brand); }
.place { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 340px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--fill); font-weight: 700; }
.place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place small { color: var(--muted); font-weight: 400; }
.topnav { margin-left: auto; display: flex; gap: 4px; }
.topnav button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 9px 12px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.topnav button[aria-current="page"] { color: var(--ink); background: var(--fill); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: 700 12px/1 var(--body); font-variant-numeric: tabular-nums; }
.badge:empty { display: none; }

.body { display: grid; grid-template-columns: 440px minmax(0, 1fr); min-height: 0; }
.side { background: var(--surface); border-right: 1px solid var(--line); min-height: 0; overflow-y: auto; position: relative; display: flex; flex-direction: column; }
.screen { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mapzone { position: relative; min-height: 0; overflow: hidden; background: var(--water); }
.mapzone .mapel { position: absolute; inset: 0; }
.bottomnav { display: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); padding: 0 10px; }
.btn.block { width: 100%; min-height: 50px; font-size: 16px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.seg { display: flex; padding: 3px; gap: 2px; background: var(--fill); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.seg button, .seg label { flex: 1 0 auto; border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; cursor: pointer; position: relative; }
.seg [aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
.seg input[type="date"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 2px var(--surface); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13.5px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--canvas); font-weight: 400; font-size: 16px; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.toolbar { display: flex; gap: 8px; align-items: center; }
.toolbar .seg { flex: 1; min-width: 0; }
.filterbtn { position: relative; }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox .input { padding-left: 40px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1.title, h2.title { font: 800 22px/1.15 var(--display); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2.title.lg { font-size: 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--fill); }
.note.err { background: color-mix(in srgb, var(--closed) 14%, var(--surface)); }
.note.ok { background: color-mix(in srgb, var(--open) 14%, var(--surface)); }
.note.sample { background: color-mix(in srgb, var(--t-neighborhood) 16%, var(--surface)); display: flex; gap: 10px; align-items: center; justify-content: space-between; }

/* ---------- cards ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: left; }
.card:hover, .card.hot { border-color: var(--muted); }
.card .head { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.card .dot { margin-top: 5px; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.card .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--muted); padding-left: 22px; }
.card .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 22px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--muted); }
.status.open { color: var(--open); } .status.soon { color: var(--soon); } .status.closed { color: var(--closed); }
.status.open::before, .status.soon::before, .status.closed::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--muted); }
.tag.sample { background: color-mix(in srgb, var(--t-neighborhood) 28%, var(--fill)); color: var(--ink); }
.tag.verified { background: color-mix(in srgb, var(--open) 16%, var(--fill)); color: var(--open); }
.tag.found { background: color-mix(in srgb, var(--t-moving) 16%, var(--fill)); color: var(--t-moving); }
.add { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; white-space: nowrap; align-self: start; }
.add[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 32px 16px; border: 1px dashed var(--line); border-radius: var(--r-md); }
.empty svg { width: 32px; height: 32px; }
.empty b { color: var(--ink); font-size: 16px; }

/* ---------- map overlays ---------- */
.mapctl { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.mapctl button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.mapctl button span { font: 700 20px/1 var(--body); }
.maptop { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); right: 68px; top: 12px; display: none; gap: 8px; z-index: 2; }
.maptop .seg { box-shadow: var(--shadow); background: var(--surface); flex: 1; min-width: 0; }
.maptop .filterbtn { box-shadow: var(--shadow); }
.preview { position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; width: min(420px, calc(100% - 24px)); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 14px; z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.preview .x { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border: 0; background: var(--fill); border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.preview h3 { margin: 0 40px 0 0; font-size: 17px; line-height: 1.25; }
.preview .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.legend { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 180px); padding: 7px 11px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); font-size: 12px; z-index: 1; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .dot { width: 10px; height: 10px; }
.mapnote { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: 12px; font-size: 11px; color: var(--maplabel); background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 3px 8px; border-radius: 6px; z-index: 1; }
.pickbar { position: absolute; left: 50%; top: 68px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-weight: 700; box-shadow: var(--shadow); max-width: calc(100% - 24px); }
.pickbar button { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; min-height: 34px; padding: 0 12px; font-weight: 700; }

/* ---------- route bar ---------- */
.routebar { position: sticky; bottom: 12px; margin: auto 16px 12px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--r-md); background: var(--ink); color: var(--canvas); box-shadow: var(--shadow); }
.routebar b { font-size: 15px; }
.routebar .grow { flex: 1; min-width: 0; }
.routebar .small { opacity: .8; }

/* ---------- route screen ---------- */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.summary div { background: var(--fill); border-radius: 12px; padding: 10px 12px; }
.summary b { display: block; font: 800 20px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.summary span { font-size: 12.5px; color: var(--muted); }
.settingsline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.settingsline p { margin: 0; font-size: 14px; }
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 2px 12px; position: relative; padding-bottom: 16px; }
.timeline li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; border-left: 2px dashed var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 14px/1 var(--display); box-shadow: 0 0 0 3px var(--surface); }
.timeline .n.start { background: var(--ink); color: var(--canvas); border-radius: 9px; }
.timeline .t { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.timeline .leg { grid-column: 2 / 4; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.timeline h4 { margin: 6px 0 0; font-size: 15px; }
.dropped { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dropped li { font-size: 14px; display: flex; gap: 8px; }
.stickyact { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--surface) 24%); padding-top: 18px; margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

/* ---------- detail ---------- */
.detail { display: flex; flex-direction: column; gap: 14px; }
.back { align-self: flex-start; }
.kv { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px 10px; align-items: start; }
.kv svg { color: var(--muted); margin-top: 1px; }
.hours { font-variant-numeric: tabular-nums; }
.actions3 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions3 .primary { grid-column: 1 / -1; }

/* ---------- wizard ---------- */
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress i { height: 4px; border-radius: 4px; background: var(--fill); }
.progress i.on { background: var(--brand); }
.typecards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.typecard { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; font-weight: 700; }
.typecard[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dayrow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: end; }
.wizfoot { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; position: sticky; bottom: 0; background: var(--surface); padding-bottom: 4px; }
.wizfoot .btn { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.review { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; }

/* ---------- dialogs and sheets ---------- */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); border-radius: 20px; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(12, 16, 14, .55); }
.dlg { padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.dlg .x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--muted); }
.hero { display: flex; flex-direction: column; gap: 8px; }
.hero h2 { font: 800 30px/1.08 var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.counties { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cty { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; min-height: 58px; }
.cty b { font-size: 15px; }
.cty small { color: var(--muted); }
.cty.live small { color: var(--open); font-weight: 700; }
.cty[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cty[disabled] { cursor: default; background: var(--fill); }
.zipline { display: flex; gap: 8px; }
.zipline .input { flex: 1; min-width: 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.sheetfoot { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--surface); padding-top: 8px; }
.sheetfoot .btn { flex: 1; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; padding: 6px 0; }
.switch input { width: 46px; height: 28px; appearance: none; background: var(--fill); border: 1px solid var(--line); border-radius: 999px; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked { background: var(--brand); border-color: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); padding: 8px 0 4px; }
.foot button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; }

/* ---------- phones and tablets ---------- */
@media (max-width: 900px) {
  :root { --navh: 64px; }
  body { font-size: 16px; }
  .topnav { display: none; }
  .place { margin-left: auto; max-width: 60%; }
  .logo .word { display: none; }
  .body { grid-template-columns: minmax(0, 1fr); }
  .side { border-right: 0; padding-bottom: calc(var(--navh) + env(safe-area-inset-bottom, 0px)); }
  .mapzone { display: none; }
  .app[data-screen="map"] .mapzone { display: block; }
  .app[data-screen="map"] .side { display: none; }
  .app[data-screen="map"] .maptop { display: flex; }
  .app[data-screen="map"] .mapctl { top: 64px; }
  .mapzone { margin-bottom: calc(var(--navh) + env(safe-area-inset-bottom, 0px)); }
  .preview { bottom: 12px; }
  .legend { display: none; }
  .mapnote { top: auto; bottom: auto; top: 64px; left: max(12px, env(safe-area-inset-left, 0px)); right: auto; }
  .app[data-screen="map"] .mapnote { top: auto; bottom: 12px; }
  .routebar { position: fixed; left: 12px; right: 12px; margin: 0; bottom: calc(var(--navh) + 10px + env(safe-area-inset-bottom, 0px)); }
  .app[data-screen="map"] .routebar.withpreview { display: none; }
  .bottomnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); height: calc(var(--navh) + env(safe-area-inset-bottom, 0px)); }
  .bottomnav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); position: relative; }
  .bottomnav button[aria-current="page"] { color: var(--brand); }
  .bottomnav .badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  .stickyact { bottom: 0; }
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; max-height: 92%; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 420px) {
  .typecards, .settings { grid-template-columns: minmax(0, 1fr); }
  .dayrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .dayrow .date { grid-column: 1 / -1; }
  .summary b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 20; background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
@media (max-width: 900px) { .toast { bottom: calc(var(--navh) + 76px + env(safe-area-inset-bottom, 0px)); } }
.mapel canvas, canvas.mapel { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.topnav .badge { margin-left: 2px; }
.foot a { color: inherit; }

/* public-website additions */
.maplibregl-ctrl-attrib { font-family: var(--body); font-size: 11px; }
.maplibregl-ctrl-bottom-right { bottom: 4px; }
.mapnote:empty { display: none; }
@media (max-width: 900px) { .maplibregl-ctrl-bottom-right { bottom: 80px; } }

/* The artifact host adds this reset; the public site needs it too. */
[hidden] { display: none !important; }
