/* ShoppingConnect customer app — brand: emerald + mint (www.shoppingconnect.co.za) */
:root{--g:#0D9488;--gd:#0F766E;--gs:#14B8A6;--mint:#5EEAD4;--gl:#F0FDFA;--gl2:#CCFBF1;--deep:#0B2B2A;--cream:#FBF9F4;--bg:#F6F8F7;--card:#fff;--ink:#1E293B;--mut:#64748B;--line:#E2E8F0;
--or:#EA7A1E;--orl:#FFF4EA;--red:#DC2626;--redl:#FEF2F2;--blue:#2563EB;--bluel:#EFF6FF;--r:16px;--sh:0 1px 2px rgba(16,24,40,.04),0 6px 18px rgba(16,24,40,.05);--tab:68px;--top:58px;
--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.45;min-height:100vh;overscroll-behavior-y:none}
h1,h2,h3,.disp{font-family:'Space Grotesk',Inter,sans-serif;letter-spacing:-.01em;margin:0}
a{color:var(--gd);text-decoration:none}
button{font:inherit;color:inherit}
input,select,textarea{font:inherit;color:var(--ink)}
svg.i{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hide{display:none!important}
.mut{color:var(--mut)}.sm{font-size:.88rem}.xs{font-size:.78rem}.b{font-weight:650}.c{text-align:center}.ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row{display:flex;align-items:center;gap:10px}.sp{flex:1;min-width:0}.wrap{flex-wrap:wrap}.g6{gap:6px}.mt{margin-top:12px}.mt2{margin-top:20px}

/* ---------- shell ---------- */
#top{position:sticky;top:0;z-index:30;background:rgba(246,248,247,.92);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);padding-top:var(--safe-t);border-bottom:1px solid transparent;transition:border-color .2s}
#top.sc{border-bottom-color:var(--line)}
#top .in{height:var(--top);display:flex;align-items:center;gap:8px;padding:0 12px;max-width:1180px;margin:0 auto}
#top h1{font-size:1.15rem;font-weight:700;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand{display:flex;align-items:center;gap:8px;font-weight:700;font-family:'Space Grotesk',sans-serif;font-size:1.08rem;color:var(--deep)}
.brand .lg{width:32px;height:32px;border-radius:10px;background:var(--g);display:grid;place-items:center;color:#fff}
.brand .lg svg{width:18px;height:18px}
.ib{width:42px;height:42px;border-radius:12px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;position:relative;color:var(--ink)}
.ib:active{background:#E9EEEC}
.ib .dot{position:absolute;top:6px;right:6px;min-width:18px;height:18px;border-radius:9px;background:var(--red);color:#fff;font-size:.68rem;font-weight:700;display:grid;place-items:center;padding:0 5px;border:2px solid var(--bg)}
.av{width:36px;height:36px;border-radius:50%;background:var(--deep);color:#fff;display:grid;place-items:center;font-weight:700;font-size:.85rem;border:0;cursor:pointer}
#sync{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:14px;font-size:.75rem;font-weight:650;background:var(--gl);color:var(--gd);border:0;cursor:pointer}
#sync.off{background:#EEF0EF;color:#46524C}#sync.wait{background:var(--orl);color:#B45309}
#sync svg{width:14px;height:14px}
main{max-width:1180px;margin:0 auto;padding:12px 16px calc(var(--tab) + 28px + var(--safe-b))}
#view{min-height:60vh}
.view-enter{animation:vin .22s ease-out}
@keyframes vin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
#tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line);
 padding:0 6px var(--safe-b);display:flex;height:calc(var(--tab) + var(--safe-b))}
.tab{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.7rem;font-weight:600;color:var(--mut);cursor:pointer;position:relative;text-decoration:none}
.tab.on{color:var(--gd)}.tab.on svg{stroke-width:2.4}
.tab .dot{position:absolute;top:8px;left:calc(50% + 6px);min-width:16px;height:16px;border-radius:8px;background:var(--red);color:#fff;font-size:.62rem;display:grid;place-items:center;padding:0 4px}
.tab.fab{flex:0 0 78px}
.tab.fab span.f{width:52px;height:52px;border-radius:18px;background:var(--g);color:#fff;display:grid;place-items:center;box-shadow:0 8px 20px -6px rgba(13,148,136,.55);margin-top:-14px}
.tab.fab span.f svg{width:26px;height:26px;stroke-width:2.4}
#side{display:none}
#adminBar{background:var(--deep);color:#fff;font-size:.82rem;padding:8px 16px;display:flex;gap:10px;align-items:center;justify-content:center}
#adminBar button{background:#fff;color:var(--deep);border:0;border-radius:8px;padding:4px 10px;font-weight:650;cursor:pointer}
@media (min-width:960px){
 #tabs{display:none}
 body{padding-left:248px}
 #side{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:248px;background:#fff;border-right:1px solid var(--line);padding:18px 14px;z-index:35;gap:2px}
 #side .brand{padding:4px 8px 18px}
 #side a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:var(--ink);font-weight:550;position:relative}
 #side a:hover{background:var(--gl)}
 #side a.on{background:var(--gl);color:var(--gd);font-weight:700}
 #side a .dot{margin-left:auto;min-width:20px;height:20px;border-radius:10px;background:var(--red);color:#fff;font-size:.7rem;display:grid;place-items:center;padding:0 6px}
 #side .new{margin:6px 0 14px;justify-content:center;background:var(--g);color:#fff!important;font-weight:700}
 #side .new:hover{background:var(--gd)}
 #side .foot{margin-top:auto;font-size:.78rem;color:var(--mut);padding:10px 12px;line-height:1.7}
 #side .foot a{display:inline;padding:0;color:var(--mut);font-weight:500}
 #top .in{padding:0 24px}
 main{padding:20px 24px 40px}
 .hide-d{display:none!important}
}
@media (max-width:959px){.hide-m{display:none!important}}

/* ---------- building blocks ---------- */
.card{display:block;background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:16px;margin-bottom:12px;color:inherit;border:1px solid rgba(226,232,240,.6)}
a.card:active,.card.tap:active{transform:scale(.995)}
.card h3{font-size:1.02rem;font-weight:700}
.sec{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--mut);margin:22px 4px 10px;display:flex;align-items:center;gap:8px}
.sec a{margin-left:auto;text-transform:none;letter-spacing:0;font-size:.85rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 18px;border-radius:14px;border:0;font-weight:650;font-size:.98rem;cursor:pointer;background:var(--g);color:#fff;text-decoration:none;white-space:nowrap}
.btn:active{filter:brightness(.95)}
.btn.full{width:100%}.btn.sm{height:38px;padding:0 14px;font-size:.88rem;border-radius:11px}
.btn.sec2{background:#fff;color:var(--gd);border:1.5px solid var(--gl2)}
.btn.ghost{background:transparent;color:var(--gd)}
.btn.warn{background:var(--red)}
.btn.light{background:var(--gl);color:var(--gd)}
.btn[disabled]{opacity:.5;pointer-events:none}
.chip{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:17px;border:1px solid var(--line);background:#fff;font-size:.85rem;font-weight:600;color:var(--ink);cursor:pointer;white-space:nowrap}
.chip.on{background:var(--deep);border-color:var(--deep);color:#fff}
.chip .n{opacity:.7;font-weight:500}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}
.st{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;border-radius:12px;font-size:.74rem;font-weight:700;background:var(--gl);color:var(--gd);white-space:nowrap}
.st.or{background:var(--orl);color:#B45309}.st.red{background:var(--redl);color:var(--red)}.st.blue{background:var(--bluel);color:var(--blue)}.st.grey{background:#EEF0EF;color:#46524C}.st.solid{background:var(--g);color:#fff}
.ref{font-size:.76rem;color:var(--mut);font-weight:600;font-variant-numeric:tabular-nums}
.bar{height:8px;border-radius:4px;background:#E8EEEC;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--g),var(--gs));border-radius:4px;transition:width .4s}
.fld{display:block;margin-bottom:14px}
.fld>span{display:block;font-size:.82rem;font-weight:650;margin-bottom:6px;color:#334155}
.inp,.fld input,.fld select,.fld textarea{width:100%;height:48px;border:1.5px solid var(--line);border-radius:12px;padding:0 14px;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s;font-size:16px}
.fld textarea{height:auto;min-height:84px;padding:12px 14px;resize:vertical}
.inp:focus,.fld input:focus,.fld select:focus,.fld textarea:focus{border-color:var(--g);box-shadow:0 0 0 4px rgba(13,148,136,.12)}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.note{display:flex;gap:10px;padding:12px 14px;border-radius:12px;background:var(--gl);color:var(--gd);font-size:.88rem;align-items:flex-start;margin-bottom:12px}
.note.or{background:var(--orl);color:#9A3412}.note.grey{background:#EEF0EF;color:#46524C}.note.red{background:var(--redl);color:#991B1B}
.empty{text-align:center;padding:40px 20px;color:var(--mut)}
.empty .ic{width:64px;height:64px;border-radius:20px;background:var(--gl);color:var(--g);display:grid;place-items:center;margin:0 auto 14px}
.empty .ic svg{width:30px;height:30px}
.empty .ttl{font-weight:700;color:var(--ink);font-size:1.05rem;margin-bottom:4px}
.skel{height:84px;border-radius:var(--r);margin-bottom:12px;background:linear-gradient(90deg,#EDF1F0 25%,#F6F8F7 50%,#EDF1F0 75%);background-size:200% 100%;animation:sk 1.2s infinite}
@keyframes sk{to{background-position:-200% 0}}
.ic40{width:42px;height:42px;border-radius:13px;background:var(--gl);color:var(--gd);display:grid;place-items:center;flex:none}
.ic40.or{background:var(--orl);color:#C2410C}.ic40.red{background:var(--redl);color:var(--red)}.ic40.blue{background:var(--bluel);color:var(--blue)}.ic40.dk{background:var(--deep);color:#fff}
.grid2{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.grid2>.card{margin:0}
.lnk{display:flex;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid var(--line);color:var(--ink)}
.lnk:last-child{border-bottom:0}
.lnk .chev{color:#A0AEC0}

/* ---------- home ---------- */
.hello{font-family:'Space Grotesk',sans-serif;font-size:1.55rem;font-weight:700;margin:6px 2px 2px;letter-spacing:-.02em}
.hero{background:radial-gradient(120% 120% at 100% 0%,#14B8A6 0%,#0D9488 45%,#0B2B2A 120%);color:#fff;border-radius:22px;padding:20px;margin:14px 0;position:relative;overflow:hidden}
.hero h2{font-size:1.3rem;font-weight:700;margin:4px 0 6px}
.hero p{margin:0 0 16px;opacity:.9;font-size:.92rem}
.hero .btn{background:#fff;color:var(--gd)}
.hero .btn.out{background:rgba(255,255,255,.14);color:#fff}
.hero .bar{background:rgba(255,255,255,.25)}.hero .bar i{background:#fff}
.steps3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:4px}
.steps3 div{background:rgba(255,255,255,.12);border-radius:12px;padding:10px;font-size:.78rem;line-height:1.3}
.steps3 b{display:block;font-size:1.05rem;font-family:'Space Grotesk',sans-serif}
.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:4px 0}
.quick button,.quick a{background:#fff;border:1px solid rgba(226,232,240,.8);border-radius:16px;padding:12px 4px;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.74rem;font-weight:650;color:var(--ink);cursor:pointer;box-shadow:var(--sh);text-align:center}
.quick .ic40{width:38px;height:38px}
.live{display:inline-flex;align-items:center;gap:6px;font-size:.74rem;font-weight:700;color:var(--gd)}
.live:before{content:'';width:8px;height:8px;border-radius:50%;background:var(--g);box-shadow:0 0 0 0 rgba(13,148,136,.6);animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(13,148,136,.5)}70%{box-shadow:0 0 0 8px rgba(13,148,136,0)}100%{box-shadow:0 0 0 0 rgba(13,148,136,0)}}

/* ---------- requests ---------- */
.trk{display:flex;gap:4px;margin-top:12px}.trk i{flex:1;height:5px;border-radius:3px;background:#E3E9E7}.trk i.d{background:var(--g)}.trk i.n{background:var(--gs);animation:blink 1.4s infinite}
@keyframes blink{50%{opacity:.45}}
.tl{position:relative;margin:4px 0 0;padding:0}
.tl li{list-style:none;position:relative;padding:0 0 18px 34px}
.tl li:before{content:'';position:absolute;left:11px;top:22px;bottom:-2px;width:2px;background:#E3E9E7}
.tl li:last-child{padding-bottom:0}.tl li:last-child:before{display:none}
.tl .dt{position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid #D5DEDB;display:grid;place-items:center}
.tl .dt svg{width:13px;height:13px;stroke-width:3}
.tl li.d .dt{background:var(--g);border-color:var(--g);color:#fff}
.tl li.d:before{background:var(--g)}
.tl li.n .dt{border-color:var(--g);box-shadow:0 0 0 5px rgba(13,148,136,.15)}
.tl li.n .dt:after{content:'';width:8px;height:8px;border-radius:50%;background:var(--g)}
.tl .t{font-weight:650}.tl .s{font-size:.82rem;color:var(--mut)}
.it{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #EEF2F1}
.it:last-child{border-bottom:0}
.it .tk{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:none;background:#EEF2F1;color:#94A3B8}
.it .tk svg{width:16px;height:16px;stroke-width:2.6}
.it.basket .tk{background:var(--g);color:#fff}.it.substituted .tk{background:var(--blue);color:#fff}.it.not_found .tk,.it.unavailable .tk{background:var(--red);color:#fff}
.it .nm{font-weight:600}.it.not_found .nm,.it.unavailable .nm{text-decoration:line-through;color:var(--mut)}
.it.not_needed .tk{background:var(--mut);color:#fff}
.it.not_needed .nm{text-decoration:line-through;color:var(--mut)}
.it .sub{font-size:.8rem;color:var(--mut)}
.it.flash{animation:flash 1.6s ease-out}
@keyframes flash{0%{background:var(--gl2)}100%{background:transparent}}
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(210px,1fr);gap:12px;overflow-x:auto;padding-bottom:10px}
.col{background:#EEF3F1;border-radius:16px;padding:10px;min-height:200px}
.col h4{margin:2px 4px 10px;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);display:flex;gap:6px}
.col .card{margin-bottom:8px;padding:12px}

/* ---------- lists / editor ---------- */
.li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #EEF2F1}
.li:last-child{border-bottom:0}
.li .q{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:11px;height:38px;overflow:hidden;flex:none}
.li .q button{width:32px;height:100%;border:0;background:#fff;font-size:1.1rem;cursor:pointer;color:var(--gd)}
.li .q span{min-width:30px;text-align:center;font-weight:650;font-size:.9rem}
.x{width:34px;height:34px;border:0;background:none;color:#94A3B8;cursor:pointer;border-radius:10px;display:grid;place-items:center;flex:none;padding:0}.x:active{background:#EEF2F1}
.price{font-size:.78rem;font-weight:650;color:var(--gd)}
.price.na{color:#94A3B8;font-weight:500}
.add{position:relative}
.add .inp{padding-right:52px}
.add .go{position:absolute;right:5px;top:5px;width:38px;height:38px;border-radius:10px;border:0;background:var(--g);color:#fff;display:grid;place-items:center;cursor:pointer}
.sug{position:absolute;left:0;right:0;top:52px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px -12px rgba(15,23,42,.25);z-index:20;overflow:hidden}
.sug button{display:flex;width:100%;align-items:center;gap:10px;padding:11px 14px;border:0;background:#fff;text-align:left;cursor:pointer;border-bottom:1px solid #F1F5F4}
.sug button:hover,.sug button.on{background:var(--gl)}
.tot{display:flex;align-items:baseline;justify-content:space-between;padding:12px 0 2px;border-top:2px dashed #E3E9E7;margin-top:6px}
.tot b{font-size:1.25rem;font-family:'Space Grotesk',sans-serif}
.dock{position:fixed;left:0;right:0;bottom:calc(var(--tab) + var(--safe-b));z-index:35;padding:10px 16px;background:linear-gradient(180deg,rgba(246,248,247,0),rgba(246,248,247,.96) 30%)}
.dock .in{max-width:760px;margin:0 auto;display:flex;gap:8px}
.dock .btn{flex:1}
@media (min-width:960px){.dock{left:248px;bottom:0;padding:14px 24px}}
.stepper{display:flex;gap:6px;margin:4px 0 14px}
.stepper div{flex:1;text-align:center;font-size:.74rem;font-weight:650;color:var(--mut)}
.stepper div i{display:block;height:5px;border-radius:3px;background:#E3E9E7;margin-bottom:6px}
.stepper div.on{color:var(--gd)}.stepper div.on i{background:var(--g)}
.opt{display:flex;align-items:center;gap:12px;width:100%;padding:13px 12px;border:1.5px solid var(--line);border-radius:14px;background:#fff;margin-bottom:8px;cursor:pointer;text-align:left}
.opt.on{border-color:var(--g);background:var(--gl)}
.opt .rad{width:20px;height:20px;border-radius:50%;border:2px solid #CBD5E1;flex:none}
.opt.on .rad{border:6px solid var(--g)}
.seg{display:flex;background:#EAF0EE;border-radius:12px;padding:3px;gap:3px}
.seg button{flex:1;border:0;background:transparent;height:36px;border-radius:9px;font-weight:650;font-size:.85rem;color:var(--mut);cursor:pointer}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}

/* ---------- chat ---------- */
.chat{display:flex;flex-direction:column;gap:6px;padding:6px 0 90px}
.msg{max-width:82%;padding:9px 12px 6px;border-radius:16px;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.06);font-size:.94rem;white-space:pre-wrap;word-wrap:break-word;position:relative}
.msg.me{align-self:flex-end;background:#D9F7F0;border-bottom-right-radius:5px}
.msg.them{align-self:flex-start;border-bottom-left-radius:5px}
.msg .who{font-size:.74rem;font-weight:700;color:var(--gd);margin-bottom:2px}
.msg .tm{font-size:.68rem;color:#7C8B86;text-align:right;margin-top:2px;display:flex;justify-content:flex-end;gap:4px;align-items:center}
.msg .tm svg{width:14px;height:14px}
.msg.pend .tm{opacity:.6}
.day{align-self:center;font-size:.72rem;font-weight:650;color:var(--mut);background:#E8EEEC;border-radius:8px;padding:3px 10px;margin:8px 0}
.chatbar{position:fixed;left:0;right:0;bottom:calc(var(--tab) + var(--safe-b));z-index:36;background:#EEF3F1;padding:8px 10px;border-top:1px solid var(--line)}
.chatbar .in{max-width:760px;margin:0 auto;display:flex;gap:8px;align-items:flex-end}
.chatbar textarea{flex:1;border:0;border-radius:22px;padding:11px 16px;min-height:44px;max-height:120px;resize:none;outline:none;font-size:16px;line-height:1.35}
.chatbar button{width:44px;height:44px;border-radius:50%;border:0;background:var(--g);color:#fff;display:grid;place-items:center;cursor:pointer;flex:none}
@media (min-width:960px){.chatbar{left:248px;bottom:0}}
body.chatv{background:#EAF1EE}

/* ---------- pantry ---------- */
.pi{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #EEF2F1}
.pi:last-child{border-bottom:0}
.exp{font-size:.74rem;font-weight:700;padding:3px 8px;border-radius:8px;background:#EEF2F1;color:#46524C;white-space:nowrap}
.exp.soon{background:var(--orl);color:#B45309}.exp.gone{background:var(--redl);color:var(--red)}.exp.ok{background:var(--gl);color:var(--gd)}

/* ---------- calendar ---------- */
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cal .h{font-size:.7rem;font-weight:700;color:var(--mut);text-align:center;padding:4px 0;text-transform:uppercase}
.cal .d{aspect-ratio:1/1.05;border-radius:12px;background:#fff;border:1px solid #EDF1F0;padding:5px;display:flex;flex-direction:column;cursor:pointer;min-width:0}
.cal .d.o{opacity:.35}.cal .d.t{border-color:var(--g);box-shadow:inset 0 0 0 1px var(--g)}.cal .d.s{background:var(--gl)}
.cal .d b{font-size:.82rem;font-weight:650}
.cal .d .ds{display:flex;flex-wrap:wrap;gap:3px;margin-top:auto}
.cal .d .ds i{width:7px;height:7px;border-radius:50%;background:var(--g)}
.cal .d .ds i.p{background:var(--blue)}.cal .d .ds i.e{background:var(--or)}.cal .d .ds i.l{background:#8B5CF6}.cal .d .ds i.v{background:var(--deep)}
.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:.76rem;color:var(--mut);margin:10px 2px}
.legend span{display:inline-flex;align-items:center;gap:5px}.legend i{width:9px;height:9px;border-radius:50%;display:inline-block}

/* ---------- sheet + toast ---------- */
#scrim{position:fixed;inset:0;background:rgba(11,43,42,.38);z-index:60;opacity:0;pointer-events:none;transition:opacity .2s}
#scrim.on{opacity:1;pointer-events:auto}
#sheet{position:fixed;left:0;right:0;bottom:0;z-index:61;background:#fff;border-radius:24px 24px 0 0;padding:10px 18px calc(20px + var(--safe-b));max-height:90vh;overflow:auto;transform:translateY(105%);transition:transform .26s cubic-bezier(.2,.8,.2,1)}
#sheet.on{transform:none}
#sheet:before{content:'';display:block;width:40px;height:5px;border-radius:3px;background:#D7DEDC;margin:0 auto 14px}
#sheet h3{font-size:1.15rem;margin-bottom:4px}
@media (min-width:700px){#sheet{left:50%;right:auto;width:560px;margin-left:-280px;bottom:auto;top:50%;border-radius:22px;transform:translateY(-40%) scale(.97);opacity:0;pointer-events:none;transition:all .2s}
 #sheet.on{transform:translateY(-50%);opacity:1;pointer-events:auto}#sheet:before{display:none}}
#toast{position:fixed;left:50%;bottom:calc(var(--tab) + 18px + var(--safe-b));transform:translateX(-50%) translateY(20px);z-index:80;background:var(--deep);color:#fff;border-radius:14px;padding:12px 16px;font-size:.9rem;font-weight:550;
 display:flex;gap:12px;align-items:center;max-width:calc(100vw - 32px);opacity:0;pointer-events:none;transition:all .22s;box-shadow:0 12px 30px -10px rgba(0,0,0,.4)}
#toast.on{opacity:1;transform:translateX(-50%);pointer-events:auto}
#toast button{background:none;border:0;color:var(--mint);font-weight:700;cursor:pointer}
@media (min-width:960px){#toast{bottom:28px;margin-left:124px}}

/* ---------- sign in ---------- */
.auth{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--gl) 0%,var(--bg) 46%)}
.auth .box{width:100%;max-width:440px;margin:0 auto;padding:28px 20px 40px;flex:1;display:flex;flex-direction:column}
.auth .lg{width:58px;height:58px;border-radius:18px;background:var(--g);color:#fff;display:grid;place-items:center;box-shadow:0 14px 30px -12px rgba(13,148,136,.6)}
.auth .lg svg{width:30px;height:30px}
.auth h1{font-size:1.9rem;font-weight:700;margin:22px 0 8px;letter-spacing:-.03em;color:var(--deep)}
.auth p.lead{color:var(--mut);margin:0 0 22px}
.code{display:flex;gap:8px;margin:6px 0 16px}
.code input{width:100%;height:58px;text-align:center;font-size:1.5rem;font-weight:700;border:1.5px solid var(--line);border-radius:14px;outline:none;padding:0}
.code input:focus{border-color:var(--g);box-shadow:0 0 0 4px rgba(13,148,136,.12)}
.how{display:grid;gap:10px;margin:26px 0 10px}
.how div{display:flex;gap:12px;align-items:center;font-size:.9rem}
.how b{width:30px;height:30px;border-radius:10px;background:#fff;color:var(--gd);display:grid;place-items:center;flex:none;box-shadow:var(--sh);font-family:'Space Grotesk',sans-serif}
.foot{font-size:.8rem;color:var(--mut);text-align:center;padding:18px 16px 26px;line-height:1.9}
.foot a{color:var(--mut);margin:0 7px;font-weight:550}
.err{color:var(--red);font-size:.86rem;margin:-4px 0 12px;min-height:1px}
iframe.mail{width:100%;border:0;border-radius:12px;background:#fff;min-height:420px}
@media print{#top,#tabs,#side,.dock,.noprint{display:none!important}body{padding:0;background:#fff}main{padding:0}.card{box-shadow:none;border:1px solid #ddd}}

.ic40.big{width:84px;height:84px;border-radius:28px}.ic40.big svg{width:40px;height:40px;stroke-width:2.4}
/* ---------- 1.1 (2026-10-18) ---------- */
.grid2{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
.vstack{display:flex;flex-direction:column;gap:10px}
.auth .box.wide{max-width:760px}
.auth .box .lg.sm{width:34px;height:34px;border-radius:10px}
.info{line-height:1.6;font-size:.96rem;overflow-wrap:anywhere}.info h3{font-size:1.15rem;margin:14px 0 6px}.info h3:first-child{margin-top:0}.info h4{font-size:1rem;margin:12px 0 4px}.info p{margin:0 0 10px}.info ul,.info ol{padding-left:20px;margin:0 0 10px}.info li{margin:4px 0}.info a{color:var(--gd);font-weight:600}
.dnframe{background:#fff;border-radius:16px;box-shadow:0 1px 3px rgba(0,0,0,.06);overflow:hidden}.dnframe iframe{display:block;width:100%;min-height:420px;border:0}
.okc{width:64px;height:64px;border-radius:50%;margin:0 auto;background:var(--g);color:#fff;display:grid;place-items:center}.okc svg{width:34px;height:34px}
#instBar{position:fixed;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:60;max-width:560px;margin:0 auto;background:var(--deep,#0F766E);color:#fff;border-radius:16px;padding:12px;display:flex;align-items:center;gap:10px;box-shadow:0 12px 30px rgba(0,0,0,.25)}
#instBar .lg{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
#instBar button{border:0;border-radius:12px;height:38px;padding:0 12px;font-weight:700;flex:none;cursor:pointer}#instBar .go{background:#fff;color:var(--deep,#0F766E)}#instBar .no{background:transparent;color:#fff;opacity:.85}
@media (min-width:960px){#instBar{left:auto;right:24px;bottom:24px;width:420px}}
@media (max-width:959px){.desk-only{display:none!important}.board{display:none!important}}
/* phones: no squeezed rows, full button labels */
@media (max-width:420px){
 .btn{padding:0 14px;font-size:.94rem}.btn.sm{padding:0 10px}
 .row.wrap>.btn{flex:1 1 auto}
 h1#title{font-size:1.15rem}
 .card{padding:14px}
 .lnk{gap:10px}.lnk .sp{min-width:0}.lnk .sp b{overflow-wrap:anywhere}
 .tot{font-size:1rem}
}
@media (max-width:359px){.chip{padding:0 11px;font-size:.8rem}.btn{font-size:.9rem}}
/* list rows: one tidy line of detail; long references never squeeze the row */
.lnk>.sp{min-width:0}.lnk>.sp>.xs{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lnk>.c{flex:none;text-align:right}
.row.wrap>.note{flex:1 1 100%;margin-bottom:0}
@media (max-width:380px){.quick{gap:6px}.quick a,.quick button{font-size:.68rem;padding:10px 2px}.quick .ic40{width:34px;height:34px}}
#toast{width:max-content;max-width:min(520px,calc(100vw - 32px))}#toast>span,#toast .sp{min-width:0}
/* 1.2: start without an account */
.feat{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:12px}
.feat .card{margin:0;display:flex;flex-direction:column;gap:4px}.feat .ic40{margin-bottom:6px}
.foot-links{text-align:center;font-size:.82rem;color:var(--mut,#64748B);margin:22px 4px 10px;line-height:1.9}.foot-links a{color:inherit}
#top .btn.sm{height:36px;padding:0 14px;margin-right:4px}
a.card.row{display:flex;align-items:center;gap:12px}a.card.row .sp{min-width:0}
/* hero buttons: sized to their label on tablets and computers, full width only on phones */
@media (min-width:700px){.hero .btn,.hero .btn.full,.hero .btn.sp{width:auto;flex:0 0 auto;padding:0 28px;min-width:200px}.hero .row{justify-content:flex-start;gap:10px}}
@media (max-width:420px){.hero .row:has(> .btn + .btn){flex-wrap:wrap}.hero .row > .btn + .btn{flex:1 1 100%}.hero .row > .btn.sp{flex:1 1 100%}}
/* 1.3 profile: required marks, avatar, tall sheet for the address map */
.reqm{color:#DC2626;font-weight:700}
.av{overflow:hidden;padding:0}.av svg,.av .sck-av{width:100%;height:100%}
.avbtn{position:relative;border:0;background:none;padding:0;cursor:pointer;border-radius:50%;flex:none;margin-right:4px}
.avedit{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.2);display:grid;place-items:center;color:var(--gd)}
.avedit svg{width:14px;height:14px}
#sheet.tall{max-height:94vh}
@media (min-width:700px){#sheet.tall{max-height:92vh;overflow:auto}}
.fld .sck-err{font-weight:500}
.fld input.sck-bad,.fld textarea.sck-bad,.fld select.sck-bad{border-color:#DC2626;background:#FEF2F2}
/* 1.4: updates and sync */
#sync.bad{background:#FEE2E2;color:#B91C1C}
#updBar{position:fixed;left:12px;right:12px;top:calc(10px + env(safe-area-inset-top,0px));z-index:70;max-width:560px;margin:0 auto;background:#0B3B36;color:#fff;border-radius:16px;padding:10px 10px 10px 12px;display:flex;align-items:center;gap:10px;box-shadow:0 12px 30px rgba(0,0,0,.25)}
#updBar .lg{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.15);display:grid;place-items:center;flex:none}#updBar .lg svg{width:18px;height:18px}
#updBar .sp{min-width:0}#updBar .xs{opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#updBar button{border:0;border-radius:11px;height:36px;padding:0 11px;font-weight:700;flex:none;cursor:pointer;font-size:.85rem}#updBar .go{background:#fff;color:#0F766E}#updBar .no{background:transparent;color:#fff;text-decoration:underline;padding:0 4px}#updBar .x{background:transparent;color:#fff;font-size:1.3rem;padding:0 6px;opacity:.8}
@media (max-width:400px){#updBar .no{display:none}}
@media (min-width:960px){#updBar{left:auto;right:24px;top:auto;bottom:24px;width:440px}}
#updReq{position:fixed;inset:0;z-index:90;background:#F6F8F7;overflow:auto;display:grid;place-items:center;padding:24px;text-align:center}
#updReq .in{max-width:420px;width:100%}#updReq h2{font-size:1.5rem;margin-bottom:8px}
.relnotes{margin:8px 0 4px;padding-left:20px}.relnotes li{margin:4px 0;font-size:.92rem}
.qrow{display:flex;align-items:flex-start;gap:12px;padding:9px 0;border-top:1px solid var(--line)}.qrow:first-of-type{border-top:0}.qrow>b{white-space:nowrap}.qrow.tot{border-top:2px solid var(--ink,#0F172A);margin-top:2px}.qrow.tot b{font-size:1.05rem}
#qCard h3{white-space:nowrap}#qCard .row{flex-wrap:wrap;gap:6px}
/* ---------- 1.6 mobile refinement: one type scale, compact components, nothing squeezed ---------- */
:root{--tab:62px}
body{font-size:15px;line-height:1.45}
h3{font-size:1.05rem}
.hello{font-size:1.35rem;margin:4px 2px 0}
.hero{padding:18px;border-radius:20px}
.hero h2{font-size:1.15rem;line-height:1.3;margin:6px 0 6px}
.hero p{font-size:.88rem;margin-bottom:14px}
.hlab{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}.hlab .b{opacity:.9;text-transform:uppercase;letter-spacing:.08em}.hlab .href{opacity:.8;margin-left:auto;font-variant-numeric:tabular-nums}
@media (max-width:420px){.hlab .href{margin-left:0;flex-basis:100%}}
.btn{height:46px;font-size:.95rem}
.btn.sm{height:36px;font-size:.86rem}
/* forms: two fields side by side only when there is room */
.g2{grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
.fld>span{font-size:.8rem;margin-bottom:5px}
.fld input,.fld select,.inp{height:46px}
.fld{margin-bottom:12px}
/* profile card */
.pcard .pname{font-size:1.08rem;line-height:1.25;overflow-wrap:anywhere}
.custno{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:3px 10px;border-radius:10px;background:var(--gl);color:var(--gd);font-size:.78rem}
.custno b{font-family:'Space Grotesk',sans-serif;font-size:.9rem}
/* settings rows */
.lnk{padding:12px 2px}
.lnk .sp .xs{overflow-wrap:anywhere}
/* bottom navigation: shorter, the + does not crowd its neighbours */
.tab{font-size:.68rem;gap:2px}
.tab.fab{flex:0 0 64px}
.tab.fab span.f{width:46px;height:46px;border-radius:15px;margin-top:-10px}
.tab.fab span.f svg{width:22px;height:22px}
/* install prompt: one line, small */
#instBar{padding:8px 8px 8px 10px;gap:8px;border-radius:14px;bottom:calc(var(--tab) + 10px + env(safe-area-inset-bottom,0px))}
#instBar .lg{width:32px;height:32px}#instBar b{font-size:.9rem}#instBar .xs{opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#instBar button{height:34px;padding:0 12px;font-size:.85rem}#instBar .no{font-size:1.25rem;padding:0 8px}
#updBar{padding:8px 8px 8px 10px}
/* notes and cards */
.note{padding:10px 12px;font-size:.85rem}
.card{padding:14px}
.quick a,.quick button{font-size:.72rem}
@media (max-width:360px){.hello{font-size:1.2rem}.hero{padding:16px}.btn{padding:0 12px}}
body:has(.dock) #instBar{display:none}
.cal{gap:3px}.cal .d{padding:4px;border-radius:10px}
@media (max-width:360px){.cal .d b{font-size:.75rem}.cal .d .ds i{width:5px;height:5px}}
/* hero actions side by side: the main action takes the space, the second is compact */
@media (max-width:420px){.hero .row:has(> .btn + .btn){flex-wrap:nowrap}.hero .row > .btn + .btn{flex:0 0 auto}.hero .row > .btn.sp{flex:1 1 auto}}
@media (max-width:380px){.hero .btn.out{font-size:0;gap:0;width:46px;padding:0}.hero .btn.out svg{width:20px;height:20px}}

.addon-tag{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:9px;background:#FEF3C7;color:#92400E;font-size:.72rem;font-weight:700;vertical-align:middle}
