[hidden]{display:none!important}
/* VOICE: playful neighborhood-watch for holiday egg nog; quick to read, quick to report.
   IDEA: a phone-first, Waze-style live map of the dairy case: pins that say "nog here / low / gone".
   PICTURE: a MapLibre street map (OpenFreeMap tiles) with color-coded store pins filling the screen, with a bottom sheet for stores and reports.
   COLOUR and TYPE: egg nog yellow bar, near-black ink, nutmeg accent; Lilita One + Inter.
   LAYOUT: mobile first: bar, map, bottom sheet (peek / full). From 900px: map left, sheet becomes a side panel. */
:root{color-scheme:light dark;
--bg:light-dark(#fffdf7,#16130e);--ink:light-dark(#1d1a14,#f4efe2);--mute:light-dark(#6b6457,#b3ab9b);
--nog:light-dark(#f6d77a,#4a3c14);--nogInk:light-dark(#1d1a14,#fbe7a6);--nut:light-dark(#8a4b1f,#e0a36f);
--card:light-dark(#ffffff,#211d16);--line:light-dark(#e7dfcc,#3a3328);
--land:light-dark(#fffaf0,#2a251c);--land2:light-dark(#f1ebdd,#211d16);--water:light-dark(#d9e8ee,#0f1b22);--border:light-dark(#c9bfa8,#4d4536);
--in:#1d8a4a;--low:#e39a00;--out:#c62828;--none:light-dark(#a49d8f,#6f685c);
--urban:light-dark(#f4e7c6,#33291b);--road:light-dark(#e2a066,#8a6440);--road2:light-dark(#e9d6bb,#4b4134);
--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px)}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.45 Inter,system-ui,sans-serif;overflow:hidden;overscroll-behavior:none}
h1,h2,h3{font-family:"Lilita One",Inter,sans-serif;font-weight:400;line-height:1.05;margin:0;text-wrap:balance}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--nut);outline-offset:2px}
.app{position:fixed;inset:0;display:flex;flex-direction:column}
.top{flex:none;background:var(--nog);color:var(--nogInk);padding:calc(var(--sat) + 8px) 14px 8px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.top h1{font-size:26px;white-space:nowrap}
.stats{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.stat{flex:none;background:var(--card);color:var(--ink);border-radius:999px;padding:4px 10px 4px 8px;font-weight:700;font-size:15px;display:flex;align-items:center;white-space:nowrap}
.stat em{font-style:normal;font-weight:400;color:var(--mute);font-size:13px;margin-left:4px;display:none}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;flex:none}
.mapbox{position:relative;flex:1 1 auto;overflow:hidden;min-height:150px;isolation:isolate}
#map{position:absolute;inset:0;background:var(--water);font:inherit}
.ctrls,.legend{z-index:5}
.ctrls{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:6px}
.ctrls button{display:grid;place-items:center;color:var(--ink);width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-size:22px;font-weight:700;box-shadow:0 1px 3px #0002}
.legend{position:absolute;left:10px;bottom:30px;background:var(--card);border-radius:999px;padding:5px 12px;font-size:12px;display:flex;gap:10px;box-shadow:0 1px 3px #0002;max-width:calc(100% - 20px);overflow:hidden}
.legend span{display:flex;align-items:center;white-space:nowrap}
.ring{display:inline-block;width:10px;height:10px;border-radius:50%;border:2px solid var(--mute);margin-right:6px}
.sheet{flex:none;height:44dvh;background:var(--bg);border-radius:18px 18px 0 0;margin-top:-18px;position:relative;z-index:2;box-shadow:0 -4px 16px #0000001f;display:flex;flex-direction:column;transition:height .25s ease}
.sheet[data-size=full]{height:calc(100dvh - var(--sat) - 150px)}
.handle{flex:none;height:28px;border:0;background:none;display:grid;place-items:center;width:100%}
.handle i{width:44px;height:5px;border-radius:3px;background:var(--border)}
.body{flex:1;overflow:auto;padding:0 16px calc(var(--sab) + 16px);overscroll-behavior:contain}
.note{font-size:13px;color:var(--mute)}
.banner{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--nut);border-radius:10px;padding:8px 12px;font-size:13px;margin-bottom:10px}
.banner:empty{display:none}
.search{width:100%;height:46px;border:1px solid var(--line);border-radius:12px;background:var(--card);padding:0 14px;font-size:16px}
.chips{display:flex;gap:6px;overflow-x:auto;margin:10px -16px 4px;padding:0 16px;scrollbar-width:none}
.chip{flex:none;border:1px solid var(--line);background:var(--card);border-radius:999px;padding:0 14px;height:40px;font-size:14px}
.chip[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.list{list-style:none;margin:4px 0 0;padding:0}
.list li button{width:100%;display:grid;grid-template-columns:12px 1fr auto;gap:12px;align-items:center;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:10px 2px;min-height:58px}
.list .t{font-weight:600}
.list .s{font-size:13px;color:var(--mute)}
.list .age{font-size:13px;color:var(--mute);white-space:nowrap;text-align:right}
.about{margin-top:16px;font-size:13px;color:var(--mute)}
.about summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}
.back{background:none;border:0;padding:0;color:var(--nut);font-weight:600;min-height:44px}
.detail h2{font-size:28px}
.addr{color:var(--mute);margin:4px 0 12px;font-size:15px}
.addr a{color:var(--nut)}
.now{border-radius:16px;padding:12px 14px;color:#fff;margin-bottom:14px;font-size:15px}
.now b{font:400 26px/1.1 "Lilita One",sans-serif;display:block}
.now.none{background:var(--card);color:var(--ink);border:1px dashed var(--border)}
.form h3{font-size:21px;margin:2px 0 8px}
.big{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.big button{border:3px solid transparent;border-radius:14px;padding:10px 4px;min-height:64px;font-weight:700;color:#fff;font-size:16px}
.big button[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 3px var(--bg) inset}
.dir{display:inline-flex;align-items:center;min-height:44px;color:var(--nut);font-weight:600}
.txt{width:100%;height:46px;border:1px solid var(--line);border-radius:12px;background:var(--card);padding:0 12px;font-size:16px}
.sendbar{position:sticky;bottom:calc(-16px - var(--sab));margin:10px -16px 0;padding:10px 16px calc(var(--sab) + 12px);background:var(--bg);border-top:1px solid var(--line)}
.send{width:100%;min-height:52px;border:0;border-radius:14px;background:var(--nut);color:#fff;font-weight:700;font-size:17px}
.send:disabled{opacity:.45;cursor:not-allowed}
.msg{font-size:14px;margin-top:6px}.msg:empty{display:none}
.hist{list-style:none;padding:0;margin:6px 0 0}
.hist li{display:grid;grid-template-columns:12px 1fr auto;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.hist .age{color:var(--mute);white-space:nowrap}
.tag{font-size:11px;border:1px solid var(--border);border-radius:6px;padding:0 5px;margin-left:6px;color:var(--mute);font-weight:400}
@media(min-width:900px){
  .app{display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:auto minmax(0,1fr)}
  .top{grid-column:1/-1;padding:12px 24px}.top h1{font-size:34px}.stat em{display:inline}
  .mapbox{grid-row:2}
  .sheet,.sheet[data-size=full]{grid-row:2;height:auto;margin:0;border-radius:0;box-shadow:none;border-left:1px solid var(--line)}
  .handle{display:none}.body{padding-top:16px}
  .legend{bottom:22px}
}
@media(prefers-reduced-motion:reduce){.sheet{transition:none}}
.dot.in{background:var(--in)}.dot.low{background:var(--low)}.dot.out{background:var(--out)}.dot.none{background:var(--none)}
.ctrls button[aria-pressed=true]{color:#2563eb}
.maplibregl-ctrl-attrib{font-size:10px}
.dist{font-size:13px;color:var(--mute);white-space:nowrap}
.auth{margin-top:10px;font-size:14px;color:var(--mute)}
.auth button{background:none;border:0;padding:0;color:var(--nut);font-weight:600;min-height:44px;text-decoration:underline}
.mine{background:none;border:0;padding:0;color:var(--mute);font-size:13px;text-decoration:underline;min-height:32px}
@media(max-width:899px){.app:has(.sheet[data-size=full]) .legend,.app:has(.sheet[data-size=full]) .ctrls{display:none}}
/* ---- round 2: menu, welcome, nearby, pages ---- */
.top{justify-content:flex-start}
.top .stats{margin-left:auto}
.menubtn{flex:none;width:44px;height:44px;margin-left:-8px;border:0;background:none;color:var(--nogInk);display:grid;place-items:center;border-radius:12px}
.scrim{position:fixed;inset:0;background:#0007;z-index:20}
.drawer{position:fixed;top:0;bottom:0;left:0;width:min(84vw,320px);background:var(--bg);z-index:21;padding:calc(var(--sat) + 10px) 16px calc(var(--sab) + 16px);display:flex;flex-direction:column;gap:2px;box-shadow:4px 0 24px #0003;overflow:auto}
.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.drawer-head b{font:400 24px "Lilita One",sans-serif}
.drawer a,.drawer>button{display:flex;align-items:center;min-height:48px;padding:0 6px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);text-decoration:none;font-weight:600;font-size:16px;text-align:left}
.drawer-foot{margin-top:auto;padding-top:16px}
.x{width:44px;height:44px;border:0;background:none;font-size:20px;color:var(--ink)}
.acct{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:8px;font-size:14px}
.acct b{display:block;font-size:15px;margin-bottom:6px}
.gbtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;border:1px solid var(--border);border-radius:12px;background:#fff;color:#1f1f1f;font-weight:600;font-size:15px}
.linkbtn{background:none;border:0;color:var(--nut);font-weight:600;min-height:44px;text-decoration:underline;padding:0 4px}
.welcome{position:fixed;inset:0;z-index:30;background:var(--nog);display:grid;place-items:center;padding:calc(var(--sat) + 16px) 16px calc(var(--sab) + 16px);overflow:auto}
.wcard{width:min(100%,420px);background:var(--bg);border-radius:24px;padding:24px 20px;text-align:center;box-shadow:0 10px 40px #0002}
.wcard h2{font-size:32px;margin:10px 0 14px}
.wlist{list-style:none;padding:0;margin:0 0 18px;text-align:left;display:grid;gap:10px;font-size:15px}
.wlist li{display:grid;grid-template-columns:14px 1fr;gap:10px;align-items:baseline}
.wcard .send{margin-bottom:10px}
#wsign:not(:empty){margin-bottom:6px}
.nearcard{background:var(--card);border:2px solid var(--nut);border-radius:16px;padding:12px 14px;margin-bottom:12px}
.nearcard b{font:400 20px/1.1 "Lilita One",sans-serif;display:block;margin-bottom:4px}
.nearcard button{margin-top:8px;width:100%;min-height:46px;border:0;border-radius:12px;background:var(--nut);color:#fff;font-weight:700;font-size:16px}
.gate{background:var(--card);border:1px dashed var(--border);border-radius:12px;padding:10px 12px;font-size:14px;margin-top:10px}
.gate.ok{border:1px solid var(--in);color:var(--ink)}
.gate button{margin-top:6px}
.captcha{position:fixed;left:50%;bottom:calc(var(--sab) + 12px);transform:translateX(-50%);z-index:40}
/* static pages */
body.page{overflow:auto;height:auto}
.page .top{position:sticky;top:0;z-index:2}
.page .top a{color:var(--nogInk);font-weight:600;text-decoration:none;margin-left:auto;min-height:44px;display:flex;align-items:center}
.page main{max-width:680px;margin:0 auto;padding:24px 18px calc(var(--sab) + 40px)}
.page main h2{font-size:30px;margin:28px 0 10px}
.page main h2:first-child{margin-top:4px}
.page main p,.page main li{font-size:17px;line-height:1.6}
.page main a{color:var(--nut)}
