/* Local: the members' app for businesses inside a BID (Oct 2026).
   Light, calm, one column, thumb-reach bottom tabs. Brand: Geist for headings, the Local violet
   (#6B3FD4) for actions only. Red is kept for a genuine problem, same rule as PlaceManager. */
@font-face{font-family:"Geist";src:url(fonts/geist-sans-latin-600-normal.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Geist";src:url(fonts/geist-sans-latin-700-normal.woff2) format("woff2");font-weight:700;font-display:swap}
:root{
  --lc:#6B3FD4;--lc-deep:#5530B4;--lc-soft:#F0EBFC;--lc-ring:#B9A4F2;
  --ink:#16141F;--muted:#615C6E;--line:#E7E3EE;--paper:#F7F5FA;--card:#FFFFFF;
  --good:#0E7650;--good-soft:#E3F3EB;--warn-soft:#FFF4DC;--bad:#B42318;--bad-soft:#FDECEA;
  --tabh:64px;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
h1,h2,h3,.disp{font-family:"Geist",-apple-system,Arial,sans-serif;letter-spacing:-.03em;margin:0}
button{font:inherit;color:inherit}
a{color:var(--lc)}
:focus-visible{outline:3px solid var(--lc-ring);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)}

.lc-boot{min-height:100vh;display:grid;place-items:center}
.lc-boot-mark{width:56px;height:56px;border-radius:14px;background:url(icons/favicon.svg) center/cover;animation:lcPulse 1.2s ease-in-out infinite}
@keyframes lcPulse{50%{opacity:.5;transform:scale(.94)}}

/* Top bar */
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:calc(10px + var(--safe-t)) 16px 10px;background:rgba(247,245,250,.92);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid transparent}
.top.scrolled{border-bottom-color:var(--line)}
.top .brand{height:26px;width:auto;display:block}
.top .org{flex:1;min-width:0;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.bell{position:relative;flex:none;width:40px;height:40px;border:0;border-radius:12px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);display:grid;place-items:center;cursor:pointer}
.bell i{position:absolute;top:6px;right:6px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--lc);color:#fff;font:700 10.5px/17px Arial,sans-serif;font-style:normal}

main{padding:16px 16px calc(var(--tabh) + var(--safe-b) + 28px);max-width:640px;margin:0 auto}

/* Bottom tabs */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;display:flex;justify-content:space-around;align-items:flex-start;height:calc(var(--tabh) + var(--safe-b));padding:6px 6px var(--safe-b);background:rgba(255,255,255,.94);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid var(--line)}
.tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 0;border:0;background:none;color:var(--muted);font-size:11px;font-weight:600;cursor:pointer;position:relative}
.tabs button svg{width:24px;height:24px}
.tabs button.on{color:var(--lc)}
.tabs button .dot{position:absolute;top:3px;left:calc(50% + 7px);width:9px;height:9px;border-radius:50%;background:var(--lc);box-shadow:0 0 0 2px #fff}
.tabs .plus{flex:0 0 auto;margin:-18px 6px 0}
.tabs .plus span{display:grid;place-items:center;width:58px;height:58px;border-radius:20px;background:linear-gradient(180deg,#8460E6,var(--lc));color:#fff;box-shadow:0 10px 24px rgba(107,63,212,.38)}
.tabs .plus svg{width:28px;height:28px}

/* Cards and lists */
.card{background:var(--card);border-radius:20px;box-shadow:0 1px 0 var(--line),0 0 0 1px var(--line);padding:18px;margin-bottom:14px}
.hello h1{font-size:27px;line-height:1.1}
.hello p{margin:6px 0 0;color:var(--muted);font-size:14.5px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.stat{background:var(--card);border-radius:18px;box-shadow:0 0 0 1px var(--line);padding:16px;border:0;text-align:left;cursor:pointer}
.stat b{display:block;font:700 32px/1 "Geist",Arial,sans-serif;letter-spacing:-.04em}
.stat span{display:block;margin-top:6px;color:var(--muted);font-size:13.5px}
.stat.go b{color:var(--good)}
.cta{display:flex;align-items:center;gap:14px;width:100%;padding:18px;border:0;border-radius:20px;background:linear-gradient(135deg,#7B52E3,var(--lc-deep));color:#fff;text-align:left;cursor:pointer;margin-bottom:22px;box-shadow:0 14px 30px rgba(85,48,180,.28)}
.cta svg{flex:none;width:44px;height:44px;padding:10px;border-radius:14px;background:rgba(255,255,255,.18)}
.cta b{display:block;font:700 18px "Geist",Arial,sans-serif;letter-spacing:-.02em}
.cta span{font-size:13.5px;opacity:.85}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;margin:6px 2px 10px}
.sec-h h2{font-size:19px}
.sec-h button{border:0;background:none;color:var(--lc);font-weight:600;font-size:14px;cursor:pointer}
.list{background:var(--card);border-radius:20px;box-shadow:0 0 0 1px var(--line);overflow:hidden;margin-bottom:14px}
.row{display:flex;gap:12px;align-items:center;width:100%;padding:14px 16px;border:0;border-top:1px solid var(--line);background:none;text-align:left;cursor:pointer}
.row:first-child{border-top:0}
.row .ic{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--lc-soft);color:var(--lc)}
.row .ic.done{background:var(--good-soft);color:var(--good)}
.row .ic svg{width:20px;height:20px}
.row .tx{flex:1;min-width:0}
.row .tx b{display:block;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .tx small{display:block;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .chev{flex:none;color:#B5AFC0}
.pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700;background:var(--lc-soft);color:var(--lc-deep);white-space:nowrap}
.pill.done{background:var(--good-soft);color:var(--good)}
.pill.wait{background:var(--warn-soft);color:#020D19}
.empty{text-align:center;padding:34px 20px;color:var(--muted)}
.empty svg{width:44px;height:44px;color:var(--lc-ring);margin-bottom:8px}
.empty b{display:block;color:var(--ink);font:700 17px "Geist",Arial,sans-serif;margin-bottom:4px}

/* Segmented filter */
.seg{display:flex;gap:4px;padding:4px;margin-bottom:14px;border-radius:14px;background:#ECE8F2}
.seg button{flex:1;padding:9px 0;border:0;border-radius:10px;background:none;font-weight:600;font-size:14px;color:var(--muted);cursor:pointer}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(22,20,31,.12)}

/* Detail */
.back{display:inline-flex;align-items:center;gap:4px;margin:0 0 12px -4px;padding:6px 8px;border:0;background:none;color:var(--lc);font-weight:600;cursor:pointer}
.det-h h1{font-size:24px;line-height:1.15;margin:8px 0 4px}
.photos{display:flex;gap:8px;overflow-x:auto;margin:12px 0 0}
.photos img{width:120px;height:120px;object-fit:cover;border-radius:14px;flex:none;background:#eee}
.tl{list-style:none;margin:0;padding:0}
.tl li{position:relative;padding:0 0 18px 26px}
.tl li:before{content:"";position:absolute;left:6px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--lc)}
.tl li:after{content:"";position:absolute;left:10.5px;top:20px;bottom:0;width:1px;background:var(--line)}
.tl li:last-child{padding-bottom:0}
.tl li:last-child:after{display:none}
.tl li.status:before{background:var(--good)}
.tl b{display:block;font-weight:650}
.tl p{margin:4px 0 0;padding:10px 12px;border-radius:12px;background:var(--paper);white-space:pre-wrap}
.tl small{color:var(--muted);font-size:12.5px}

/* Forms */
.field{display:block;margin-bottom:14px}
.field>span{display:block;margin-bottom:6px;font-weight:650;font-size:14.5px}
.field input,.field textarea{width:100%;padding:13px 14px;border:1.5px solid var(--line);border-radius:14px;background:#fff;font:inherit;color:var(--ink)}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field textarea:focus{outline:0;border-color:var(--lc);box-shadow:0 0 0 3px var(--lc-soft)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{padding:10px 14px;border:1.5px solid var(--line);border-radius:999px;background:#fff;font-weight:600;font-size:14.5px;cursor:pointer}
.chips button.on{border-color:var(--lc);background:var(--lc-soft);color:var(--lc-deep)}
.shots{display:flex;gap:10px;flex-wrap:wrap}
.shot{position:relative;width:84px;height:84px;border-radius:14px;overflow:hidden;background:#eee}
.shot img{width:100%;height:100%;object-fit:cover}
.shot button{position:absolute;top:4px;right:4px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(22,20,31,.7);color:#fff;font-size:15px;line-height:26px;cursor:pointer}
.addshot{display:grid;place-items:center;width:84px;height:84px;border:1.5px dashed #CFC8DB;border-radius:14px;background:#fff;color:var(--muted);cursor:pointer}
.btn{display:block;width:100%;padding:15px;border:0;border-radius:16px;background:var(--lc);color:#fff;font-weight:700;font-size:16px;cursor:pointer}
.btn:active{background:var(--lc-deep)}
.btn[disabled]{opacity:.6}
.btn.ghost{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line)}
.btn.danger{background:#fff;color:var(--bad);box-shadow:inset 0 0 0 1.5px #F2C9C4}
.btn+.btn{margin-top:10px}
.err{color:var(--bad);font-size:14px;margin-top:10px;min-height:1px}
.hint{color:var(--muted);font-size:13.5px;margin:-6px 0 14px}

/* Success */
.done-card{text-align:center;padding:40px 20px}
.done-card .tick{display:grid;place-items:center;width:76px;height:76px;margin:0 auto 18px;border-radius:24px;background:var(--good-soft);color:var(--good);animation:lcPop .5s cubic-bezier(.2,.9,.3,1.3) both}
.done-card h1{font-size:26px;margin-bottom:8px}
@keyframes lcPop{from{transform:scale(.5);opacity:0}}

/* Sign in */
.auth{min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:calc(30px + var(--safe-t)) 22px 30px;max-width:440px;margin:0 auto}
.auth .logo{width:150px;height:auto;margin:0 0 26px}
.auth h1{font-size:30px;line-height:1.08;margin-bottom:8px}
.auth .lead{color:var(--muted);margin:0 0 24px}
.auth .link{display:block;margin:16px auto 0;border:0;background:none;color:var(--lc);font-weight:600;cursor:pointer}
.auth .fine{margin-top:28px;color:var(--muted);font-size:12.5px;text-align:center}

/* Chat */
.chat{display:flex;flex-direction:column;min-height:calc(100vh - 220px)}
.msgs{flex:1;display:flex;flex-direction:column;gap:8px;padding-bottom:12px}
.msg{max-width:82%;padding:10px 13px;border-radius:18px;background:#fff;box-shadow:0 0 0 1px var(--line);align-self:flex-start;word-wrap:break-word}
.msg.mine{align-self:flex-end;background:var(--lc);color:#fff;box-shadow:none}
.msg.urgent{box-shadow:0 0 0 2px var(--bad)}
.msg small{display:block;font-size:11.5px;opacity:.7;margin-bottom:2px}
.msg img{display:block;max-width:220px;border-radius:12px;margin-top:6px}
.msg .when{display:block;margin-top:3px;font-size:11px;opacity:.6;text-align:right}
.composer{position:sticky;bottom:calc(var(--tabh) + var(--safe-b) + 8px);display:flex;gap:8px;align-items:flex-end;padding:8px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--line),0 8px 24px rgba(22,20,31,.08)}
.composer textarea{flex:1;min-height:42px;max-height:120px;padding:10px 12px;border:0;resize:none;font:inherit;background:none}
.composer textarea:focus{outline:0}
.composer button{flex:none;width:42px;height:42px;border:0;border-radius:14px;background:var(--lc);color:#fff;display:grid;place-items:center;cursor:pointer}
.composer button.cam{background:var(--lc-soft);color:var(--lc)}
.readonly{padding:14px;border-radius:16px;background:var(--lc-soft);color:var(--lc-deep);font-size:14px;text-align:center}

/* Terms */
.terms ul{padding-left:20px;margin:12px 0}
.terms li{margin-bottom:8px}
.check{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:var(--paper);margin-bottom:10px}
.check input{width:20px;height:20px;margin-top:2px;accent-color:var(--lc)}

/* Notifications sheet */
.sheet-bg{position:fixed;inset:0;z-index:20;background:rgba(22,20,31,.35);display:flex;align-items:flex-end;animation:lcFade .2s both}
.sheet{width:100%;max-height:85vh;overflow:auto;background:var(--paper);border-radius:24px 24px 0 0;padding:10px 16px calc(20px + var(--safe-b));animation:lcUp .28s cubic-bezier(.2,.9,.3,1) both}
.sheet .grab{width:40px;height:5px;border-radius:3px;background:#D6D0DF;margin:0 auto 12px}
.notif.unread b:after{content:"";display:inline-block;width:8px;height:8px;margin-left:6px;border-radius:50%;background:var(--lc);vertical-align:middle}
@keyframes lcFade{from{opacity:0}}
@keyframes lcUp{from{transform:translateY(40px);opacity:0}}

.toast{position:fixed;left:50%;bottom:calc(var(--tabh) + var(--safe-b) + 16px);z-index:30;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:11px 16px;border-radius:14px;background:#16141F;color:#fff;font-size:14px;font-weight:600;transition:.25s;max-width:calc(100% - 32px)}
.toast.on{opacity:1;transform:translate(-50%,0)}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
