/* V143 shell: page 1, page 2, sub pages, new bottom bar */
.sh-pg{position:fixed;inset:0;z-index:99;overflow:auto;-webkit-overflow-scrolling:touch;background:var(--bg);background-image:radial-gradient(900px 520px at 105% -8%,color-mix(in srgb,var(--acc) 15%,transparent),transparent 70%),radial-gradient(760px 480px at -12% 4%,color-mix(in srgb,var(--acc2) 12%,transparent),transparent 70%);padding:calc(env(safe-area-inset-top,0px) + 8px) 12px calc(env(safe-area-inset-bottom,0px) + 24px);color:var(--ink)}
#pgx{z-index:100}
.sh-pg[hidden]{display:none}

html.pg1-on #ice-gear,html.pg2-on #ice-gear,html.pgx-on #ice-gear{display:none!important}
.sh-top{display:grid;grid-template-columns:30% 1fr;grid-template-rows:auto auto;gap:4px 10px;align-items:center;max-width:600px;margin:0 auto 10px}
.sh-set{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:58px;border-radius:16px;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font:700 15px var(--font);cursor:pointer}
.sh-set svg{width:26px;height:26px}
.sh-logo{height:58px;display:flex;align-items:center;justify-content:center}.sh-logo img{max-width:100%;max-height:58px;object-fit:contain}
.sh-dt{display:flex;flex-direction:column;font-size:15px;line-height:1.25;color:var(--mute);text-align:center}.sh-dt b{font-size:19px;color:var(--ink)}.sh-dt i{font-style:normal}
.sh-corner{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.sh-clogo{width:50px;height:50px;border-radius:14px;border:1.5px solid var(--line);background:var(--card);display:flex;align-items:center;justify-content:center}.sh-clogo img{width:36px;height:36px;object-fit:contain}
.sh-clogo .lg-l{display:none}.sh-clogo .lg-d{display:none}.sh-clogo .lg-l{display:block}
:root[data-theme=light] .sh-clogo .lg-d{display:none}:root[data-theme=light] .sh-clogo .lg-l{display:block}:root[data-theme=dark] .sh-clogo .lg-l{display:none}:root[data-theme=dark] .sh-clogo .lg-d{display:block}
.sh-list{max-width:600px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.sh-b{--c:#2563eb;display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:12px;text-align:left;min-height:62px;padding:10px 14px;border-radius:18px;border:2px solid var(--c);background:color-mix(in srgb,var(--c) 14%,var(--card));color:var(--ink);font:700 21px var(--font);cursor:pointer}
.sh-b i{grid-row:1/3;font-style:normal;font-size:38px;text-align:center}.sh-b b{font-weight:800}.sh-b small{font-size:15px;color:var(--mute);font-weight:600}
.b-cont{--c:#16a34a}.b-new{--c:#16a34a}.b-old{--c:#ea8a0c}.b-mon{--c:#db2777}.b-acc{--c:#dc2626}.b-mgr{--c:#7c3aed}.b-shr{--c:#0891b2}.b-abt{--c:#6b7280}.b-rs{--c:#2563eb}
.b-sub.no{--c:#dc2626}.b-sub.ok{--c:#16a34a}.sh-b.off{opacity:.38;filter:grayscale(.6)}
.sh-h{max-width:600px;margin:4px auto 10px;font:800 30px var(--font)}.sh-body{max-width:600px;margin:0 auto}
.sh-empty,.sh-note{color:var(--mute);text-align:center;padding:24px 10px;font-size:18px}
.sh-m{margin:18px 0 4px;font:800 22px var(--font)}.sh-d{margin:12px 0 6px;font:700 18px var(--font);color:var(--mute)}
.sh-oc{border:2px solid var(--c,var(--line));border-left-width:8px;border-radius:14px;padding:8px 12px;margin-bottom:8px;background:var(--card)}
.sh-oc.ok{--c:#16a34a;background:color-mix(in srgb,#16a34a 10%,var(--card))}.sh-oc.no{--c:#dc2626;background:color-mix(in srgb,#dc2626 10%,var(--card))}
.sh-oc .r1{display:flex;gap:10px;align-items:baseline}.sh-oc .no{font-size:25px;font-weight:800;color:var(--c,var(--ink))}.sh-oc .ec{margin-left:auto;font-weight:800;color:#2563eb}
.sh-oc .ad{font-size:18px;margin:2px 0}.sh-oc .r3{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:15px;color:var(--mute)}
.sh-os,.sh-ms{width:100%;display:flex;align-items:center;gap:10px;padding:14px;margin-bottom:8px;border-radius:14px;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font:600 18px var(--font);text-align:left;cursor:pointer}
.sh-os span,.sh-ms span{margin-left:auto;color:var(--mute)}.sh-ms b{font-size:21px}.sh-os i,.sh-ms i{font-style:normal;color:var(--acc)}
.sh-mg{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sh-mc{--c:#888;border:2px solid var(--c);border-radius:16px;padding:12px;background:color-mix(in srgb,var(--c) 12%,var(--card));display:flex;flex-direction:column;gap:2px}
.sh-mc:first-child{grid-column:1/3}.sh-mc i{font-style:normal;font-size:28px}.sh-mc span{font-size:15px;color:var(--mute);font-weight:700}.sh-mc b{font-size:30px}.sh-mc small{font-size:14px;color:var(--mute)}
/* bottom bar: big red Driving on the left, Redo/Undo (only where drawn) over Home/Back on the right */







.sh-b{align-content:center;row-gap:0}.sh-b i{align-self:center}


html:not(#z) .sh-pg{background-color:var(--bg)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html:not(#z):not(#y) body :is(#pg1,#pgx).sh-pg{background-color:var(--bg)!important;background-image:radial-gradient(900px 520px at 105% -8%,color-mix(in srgb,var(--acc) 15%,transparent),transparent 70%)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

html.pgx-on #pg1{visibility:hidden}
#vmic{display:none!important}

/* ---- V143 stage 2 ---- */

html.pgx-top #pgx{z-index:300}
#app #rs{display:none!important}







.sh-plogo{padding:0;cursor:pointer}
/* route planner */
.rp-g{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--g,#6b7280);color:#fff;font:800 19px var(--font);justify-self:center}
.rb{font-style:normal;margin-left:6px}
.rp-ov{position:fixed;inset:0;z-index:400;background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.rp-pop{position:absolute;padding:12px;border-radius:18px;border:3px solid var(--c);box-shadow:0 12px 40px rgba(0,0,0,.4);display:flex;flex-direction:column;gap:8px;color:#fff}
.rp-pop.ok{--c:#16a34a;background:#15803d}.rp-pop.no{--c:#dc2626;background:#b91c1c}
.rp-pop h4{margin:0 0 2px;font:800 21px var(--font);text-align:center}
.rp-pop button{height:44px;border-radius:12px;border:0;background:rgba(255,255,255,.95);color:#111;font:800 19px var(--font);cursor:pointer}
.gp{--g:#6b7280;margin-bottom:14px;padding:8px;border:1px solid var(--g);border-radius:16px}.gp h3{margin:0 0 6px;font:800 19px var(--font);display:flex;align-items:center;gap:8px}
/* scanner tiles */

/* form */
.fm{display:flex;flex-direction:column;gap:12px}
.fm-msg{min-height:18px;margin:0;font-size:16px;color:#b45309}.fm-btns{display:flex;gap:10px}.fm-btns button{flex:1;height:52px;border-radius:14px;border:0;font:800 21px var(--font)}
.fm-sv{background:#16a34a;color:#fff}.fm-cn{background:var(--card);color:var(--ink);border:2px solid var(--line)!important}
.sh-tgs{display:flex;flex-direction:column;gap:12px}.sh-tg{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700}.sh-tg input[type=number]{width:80px}

#wTop{position:fixed;z-index:96;left:0;right:0;top:0;padding:calc(env(safe-area-inset-top,0px) + 6px) 12px 4px;background:var(--bg,#fff)}#wTop[hidden]{display:none}#wTop .sh-top{margin-bottom:0}html.wal-col #app{padding-top:calc(env(safe-area-inset-top,0px) + 112px)!important}html.wal-col #app>h1.lgh,html.wal-col #app>.btns{display:none}
html:has(#dl:not([hidden])) #pg1{visibility:hidden}


/* ======================================================================
   V143b: EXACT LAYOUT FROM ELYAS'S DRAWINGS (19 Nov 2026)
   Everything is placed in % of the screen (safe areas excluded), as drawn.
   ====================================================================== */
:root{--y:env(safe-area-inset-top,0px);--fh:calc(100vh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}:root{--fh:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
html:not(#z):not(#y) body .sh-pg{position:fixed;left:0;right:0;top:var(--y);bottom:env(safe-area-inset-bottom,0px);padding:0!important;overflow:hidden}
/* top bar: Settings | logo, then date/time (left) and the corner buttons (right) */
.sh-top{display:contents}
.sh-set{position:absolute;left:3%;top:.5%;width:29%;height:10.5%;box-sizing:border-box}
.sh-logo{position:absolute;left:33.5%;top:.5%;width:63%;height:10.5%}
.sh-dt{position:absolute;left:3%;top:13%;width:49%;height:5.5%;flex-direction:column;justify-content:center;text-align:left;margin:0}
.sh-dt b{font-size:21px;line-height:1}.sh-dt i{font-size:15px}
.sh-corner{position:absolute;left:54%;right:3%;top:13%;height:12%;display:flex;justify-content:flex-end;gap:3%;align-items:stretch}
.sh-corner>*{flex:0 0 46%!important;width:auto!important;height:100%!important;box-sizing:border-box;border-radius:16px}
.sh-clogo img{width:62%!important;height:62%!important}
/* page 1 */
.sh-list{position:absolute;left:3%;right:3%;top:26%;bottom:2%;max-width:none;margin:0;display:flex;flex-direction:column;gap:1.1%}
.sh-b{flex:1 1 0;min-height:0;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4px 10px;border-radius:16px;font:700 25px/1.15 var(--font)}
.sh-b i{display:none}.sh-b b{font-weight:700}.sh-b small{font-size:15px}
/* sub pages */
.sh-h{position:absolute;left:3%;top:19.5%;width:52%;margin:0;font:800 24px/1.1 var(--font)}
.sh-body{position:absolute;left:3%;right:3%;top:26%;bottom:15.5%;max-width:none;margin:0;overflow:auto;-webkit-overflow-scrolling:touch}
#pgx[data-k=drop] .sh-h,#pgx[data-k=form] .sh-h{display:none}
/* bottom bar */













/* ---- Route Planner exactly as drawn ---- */
/* ---- Handwrite / Edit form exactly as drawn ---- */
#pgx[data-k=form] .sh-body{overflow:hidden}
.fm{height:100%;display:flex;flex-direction:column;gap:1.2%}
.fm-title{flex:0.9;display:flex;align-items:center;justify-content:center;border:2px solid #6b7280;border-radius:12px;background:color-mix(in srgb,#6b7280 12%,var(--card));font:600 25px var(--font);color:#6b7280}
.fm-r{display:flex;gap:1.2%;min-height:0}.fm-r.r-no,.fm-r.r-ec,.fm-r.r-cu,.fm-r.r-to,.fm-r.r-dc{flex:1.15}.fm-r.r-ad{flex:2.1}
.fm-l{flex:0 0 37%;display:flex;align-items:center;justify-content:center;text-align:center;border:2px solid #6b7280;border-radius:12px;background:color-mix(in srgb,#6b7280 12%,var(--card));font:600 19px/1.1 var(--font);color:#6b7280}
.r-to .fm-l,.r-dc .fm-l,.r-cu .fm-l{font-size:15px}
.fm-v{flex:1;min-width:0;display:flex;gap:2%}
.fm-v input,.fm-v textarea{min-width:0;box-sizing:border-box;height:100%;border-radius:12px;border:2px solid #3b82f6;background:color-mix(in srgb,#3b82f6 8%,var(--card));color:#2563eb;font:600 26px var(--font);text-align:center;padding:0 6px}
.fm-v input.v-b{flex:1}.r-to .fm-v input,.r-dc .fm-v input{flex:0 0 62%}
.fm-v .ek{flex:0 0 38%;color:#ea8a0c;border-color:#ea8a0c;background:color-mix(in srgb,#ea8a0c 10%,var(--card));text-transform:uppercase;letter-spacing:1px}
.fm-v .eu{flex:1;color:#dc2626;border-color:#dc2626;background:color-mix(in srgb,#dc2626 10%,var(--card));text-transform:uppercase;letter-spacing:1px}
.fm-v .hn{flex:0 0 36%;color:#dc2626;border-color:#dc2626;background:color-mix(in srgb,#dc2626 10%,var(--card));font-size:32px}
.fm-v .st{flex:1;resize:none;font-size:21px;line-height:1.2;padding:6px;display:flex}
.fm-v input.dk{background:color-mix(in srgb,#1e3a8a 14%,var(--card));border-color:#1e3a8a}
.fm-v:has(.fm-sv),.fm-v:has(.fm-cn){}
.fm-sv,.fm-cn{flex:1;min-width:0;border-radius:12px;border:0;font:800 18px var(--font)}.fm-sv{background:#16a34a;color:#fff}.fm-cn{background:var(--card);color:var(--ink);border:2px solid var(--line)}
.fm-msg{position:absolute;left:3%;right:3%;bottom:15.6%;margin:0;font-size:15px;color:#b45309;text-align:center}
/* ---- Wallet exactly as drawn ---- */
html:not(#z):not(#y) body #wTop{position:fixed;left:0;right:0;top:var(--y);height:var(--fh);padding:0;background:none;pointer-events:none;z-index:96}
#wTop[hidden]{display:none}#wTop>.sh-top>*{pointer-events:auto}





html.wal-col #app{position:fixed!important;left:3%!important;right:auto!important;width:94%!important;max-width:none!important;top:calc(var(--y) + var(--fh)*.26)!important;bottom:calc(env(safe-area-inset-bottom,0px) + var(--fh)*.155)!important;padding:0!important;margin:0!important;overflow:auto!important;transform:none!important}
html.wal-col #app>h1.lgh,html.wal-col #app>.btns,html.wal-col #app .lgh{display:none!important}
html.wal-col #wTop{display:block}

html:not(#z):not(#y) body #wTop{padding:0!important;background:none!important}


/* V143c: bigger, easier-to-read text (dyslexia friendly): larger sizes above, wider letter/word/line spacing{letter-spacing:.025em;word-spacing:.08em;line-height:1.3}
html:not(#z):not(#y) body #app{letter-spacing:.02em;word-spacing:.06em;line-height:1.5}
html:not(#z):not(#y) body #app{font-size:18px}
html.wal-col #app{font-size:19px!important}
/* ---- V143c: bigger, easier to read (dyslexia friendly) + big icons with the name underneath ---- */
body{letter-spacing:.025em;word-spacing:.12em}
.sh-b,[data-sh]{font-size:max(1em,22px)}
.sh-p1 button,#pg1 button{font-size:26px!important;line-height:1.15!important}
.sh-dt,.sh-dt *{font-size:1.15em}.sh-dt b{font-size:30px!important}
.sh-set,.sh-fin{font-size:18px!important}

.fm-l{font-size:19px!important}.r-to .fm-l,.r-dc .fm-l,.r-cu .fm-l{font-size:16px!important}
.fm-v input,.fm-v textarea{font-size:24px!important}.fm-v .st{font-size:21px!important}.fm-title{font-size:26px!important}
.fm-sv,.fm-cn,.fm-pay button{font-size:19px!important}

html.wal-col #app{font-size:118%}
#pgx .sh-body,#pgx .sh-body *{font-size:max(1em,17px)}
.fm-l{letter-spacing:0;word-spacing:0;font-size:17px!important}.r-to .fm-l,.r-dc .fm-l,.r-cu .fm-l{font-size:15px!important}

/* ---- V143e: bottom bar raised ~1 cm, Home/Back thicker, Driving bigger ---- */








html.wal-col #app{bottom:calc(env(safe-area-inset-bottom,0px) + var(--fh)*.215)!important}
html:not(#z):not(#y) body #pgx .sh-body{padding-bottom:calc(var(--fh)*.215)!important;box-sizing:border-box}
/* ---- V143f: bigger Settings + logo picture buttons at the very top ---- */
html:not(#z):not(#y) body .sh-set{top:.3%!important;height:12.4%!important;width:29%!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html:not(#z):not(#y) body .sh-set img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}
html:not(#z):not(#y) body .sh-logo{top:.3%!important;height:12.4%!important;left:33.5%!important;width:63.5%!important}
html:not(#z):not(#y) body .sh-logo img{max-height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}
/* ---- V143i: page 2 (no Undo/Redo) Home/Back full height; bigger Delivered/Undelivered/Previous/Next in Driving Mode ---- */

/* ---- V143j: old clock, named 3D icons, fixed frame with scrolling lists ---- */
html:not(#z):not(#y) body .sh-dt{position:absolute;left:3%;top:13%;width:50%;height:5.2%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;padding:5px 14px 6px;border-radius:18px;border:1px solid var(--line);background:color-mix(in srgb,var(--card) 78%,transparent);-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);box-shadow:var(--sh);line-height:1.1;box-sizing:border-box;min-height:50px}
html:not(#z):not(#y) body .sh-dt .st{display:block;font:800 24px var(--font)!important;letter-spacing:-.02em!important;word-spacing:0!important;font-variant-numeric:tabular-nums;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
html:not(#z):not(#y) body .sh-dt .st small{font-size:12px!important;opacity:.7;margin-left:2px;-webkit-text-fill-color:currentColor}
html:not(#z):not(#y) body .sh-dt .st .ap{display:inline-block;font:800 11px var(--font);margin-left:6px;padding:2px 6px;border-radius:7px;background:var(--soft);color:var(--ink);-webkit-text-fill-color:var(--ink);vertical-align:3px}
html:not(#z):not(#y) body .sh-dt .sd{display:block;font:650 11px var(--font)!important;letter-spacing:.06em!important;text-transform:uppercase;color:var(--mute);margin-top:2px;font-style:normal}





/* fixed frame: only the list area scrolls */
html:not(#z):not(#y) body #pgx{overflow:hidden!important}
html:not(#z):not(#y) body #pgx .sh-body{position:fixed;left:0;right:0;top:calc(var(--y) + var(--fh)*.255);bottom:calc(env(safe-area-inset-bottom,0px) + var(--fh)*.2);padding:0 3% 8px!important;overflow-y:auto!important;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;box-sizing:border-box}
html:not(#z):not(#y) body #pgx[data-k=drop] .sh-body{overflow:hidden!important;padding:0 2% 2px!important}
html:not(#z):not(#y) body #pgx .sh-h{display:none}
.fm-msg{pointer-events:none}
html:not(#z):not(#y) body .sh-dt .st{background:var(--grad,linear-gradient(135deg,#2563eb,#7c3aed));-webkit-background-clip:text;background-clip:text}

html:not(#z):not(#y) body #pgx{background:linear-gradient(var(--bg),var(--bg)),Canvas!important;z-index:160}
.sh-tgs .sh-tg{display:flex!important;justify-content:space-between;align-items:center;gap:14px;font-size:17px;margin:10px 0}
.sh-tgs .sh-tg span{flex:1;text-align:left}.sh-tgs .sh-tg input[type=checkbox]{width:28px;height:28px;flex:none;order:2}
.sh-tgs .sh-tg input[type=number]{width:90px;font-size:18px}
/* ---- V143k: pop-ups at the finger/button (no dimming), own pages hide what is behind, bigger Navigate, delivered boxes, icon boxes ---- */
.rp-ov{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.rp-pop{box-shadow:0 10px 34px rgba(0,0,0,.45),0 0 0 1px rgba(0,0,0,.15);animation:pvIn .16s ease-out;transform-origin:50% 20%}from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}
.pv-ov{position:fixed;inset:0;z-index:500;background:transparent}
.pv{position:absolute;padding:14px 16px 12px;border-radius:20px;background:#fff;color:#111827;border:1px solid rgba(0,0,0,.12);box-shadow:0 12px 40px rgba(0,0,0,.4);animation:pvIn .18s ease-out;box-sizing:border-box}
.pv.dk{background:#1f2937;color:#f9fafb;border-color:rgba(255,255,255,.18)}
.pv h4{margin:0 0 6px;font:800 18px var(--font)}
.pv .sh-tg{color:inherit}.pv .sh-tg span{color:inherit}
.pv-x{margin-top:10px;width:100%;height:44px;border-radius:12px;border:0;background:#2563eb;color:#fff;font:800 17px var(--font)}
html.pgx-on #app,html.pgx-on #dl,html.pgx-on #wTop{visibility:hidden!important}
html:has(#dl:not([hidden])) #pgx{visibility:hidden}
/* next-order boxes: edit + tip on the right{padding-right:38px!important}
/* icon boxes: round outline, no fill behind the big icon */

/* ---- V143l: clear (no box) big corner icons, better refresh, Driving buttons re-laid ---- */
html:not(#z):not(#y) body .sh-corner>.sh-clogo,html:not(#z):not(#y) body .sh-corner>.sh-ref{background:transparent!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important}
html:not(#z):not(#y) body .sh-clogo img{width:100%!important;height:100%!important;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.4))}


/* ---- V143n: old-app button look (light + dark) for the bottom bar and the permanent top icons ---- */
html{--bt-bg:linear-gradient(180deg,#dde5fd,#c9d4fa);--bt-bd:#93a7ee;--bt-lip:#a6b6f2;--bt-fg:#1a1a3a;--bt-ic:#3b5bdb;--pl-bg:#e8ebfd;--pl-bd:#c0c9f4;--bt-sh:0 6px 0}
html:not(.sb-light){--bt-bg:linear-gradient(145deg,#52639f,#343f73);--bt-bd:#6d7fc8;--bt-lip:#161b36;--bt-fg:#fff;--bt-ic:#fff;--pl-bg:#1b2140;--pl-bd:rgba(120,135,205,.6)}





/* top permanent icons: same buttons */
html:not(#z):not(#y) body .sh-set,html:not(#z):not(#y) body .sh-logo,html:not(#z):not(#y) body .sh-corner>.sh-clogo,html:not(#z):not(#y) body .sh-corner>.sh-ref{background:var(--bt-bg)!important;border:2px solid var(--bt-bd)!important;border-radius:24px!important;box-shadow:5px 0 0 transparent,0 5px 0 var(--bt-lip)!important;color:var(--bt-fg)!important;padding:3px!important}
html:not(#z):not(#y) body .sh-set img,html:not(#z):not(#y) body .sh-logo img,html:not(#z):not(#y) body .sh-clogo img{width:100%!important;height:100%!important;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
html:not(#z):not(#y) body .sh-top{margin-bottom:6px}



/* V143o: Home/Back same size on every page; Driving sits on the clear page background (pill starts after it) */





/* V143q: bar a little lower than V143o (about half a cm); Driving button always full size, same on every page */


/* V143r: leave room for the iPhone camera notch (WebView reports 0), pages shrink from the top; Driving outline white */
:root{--y:max(env(safe-area-inset-top,0px),52px);--fh:calc(100vh - max(env(safe-area-inset-top,0px),52px) - env(safe-area-inset-bottom,0px))}:root{--fh:calc(100dvh - max(env(safe-area-inset-top,0px),52px) - env(safe-area-inset-bottom,0px))}

/* V143s: Driving strip = same colour as Home/Back buttons (theme aware); Undo/Redo box separate from Home/Back box */
html{--bt-mid:#c9d4fa}
html:not(.sb-light){--bt-mid:#4a5a94}






/* V143t: clock/finish/page-logo row a bit lower; clear background (thin strip) for Settings + ICE logo; bigger clock text */
html:not(#z):not(#y) body .sh-corner{top:14.2%!important;height:11%!important}
html:not(#z):not(#y) body .sh-dt{top:14.2%!important;height:5.8%!important;padding:4px 14px!important}
html:not(#z):not(#y) body .sh-dt .st{font:800 32px var(--font)!important}
html:not(#z):not(#y) body .sh-dt .st small{font-size:17px!important}
html:not(#z):not(#y) body .sh-dt .st .ap{font-size:13px!important}
html:not(#z):not(#y) body .sh-dt .sd{font:650 14px var(--font)!important;margin-top:1px}
html:not(#z):not(#y) body .sh-set,html:not(#z):not(#y) body .sh-logo{background:transparent!important;box-shadow:none!important;border:3px solid var(--bt-mid)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html:not(.sb-light):not(#z):not(#y) body .sh-logo img,html:not(.sb-light):not(#z):not(#y) body .sh-set img{filter:drop-shadow(0 0 6px rgba(255,255,255,.55)) drop-shadow(0 2px 3px rgba(0,0,0,.35))!important}
html:not(#z):not(#y) body .sh-corner{top:13.8%!important;height:11.4%!important}
html:not(#z):not(#y) body .sh-dt{top:13.8%!important;height:6.6%!important;padding:3px 14px!important}
html:not(#z):not(#y) body .sh-dt .st{font:800 28px/1.05 var(--font)!important}
html:not(#z):not(#y) body .sh-dt .st small{font-size:15px!important}
html:not(#z):not(#y) body .sh-dt .sd{font:650 12.5px/1.1 var(--font)!important}
/* V143v: small gap under refresh / page-logo / Finish row */
html:not(#z):not(#y) body .sh-corner{top:13.6%!important;height:10.3%!important}
/* V143v: tiny gap between refresh/page-logo row and the boxes below */
html:not(#z):not(#y) body .sh-corner{height:10%!important}
.fm-r.r-ph,.fm-r.r-cf{flex:1.15}.fm-r[hidden]{display:none}
.fm-kd{flex:0 0 22%;display:flex;align-items:center;justify-content:center;font:700 14px var(--font);border-radius:12px;color:#6b7280}.fm-kd.private{color:#16a34a}.fm-kd.company{color:#d97706}
/* V143y: form layout: smaller grey names, Paid/Not paid beside the amounts, Save/Cancel at the bottom, contact number behind a small ... button */
.fm-l{flex:0 0 27%!important;font-size:14px!important;padding:0 2px}
.r-to .fm-l,.r-dc .fm-l,.r-cu .fm-l{font-size:13px!important}
.fm-r.r-ph,.fm-r.r-cf{display:none}
.fm-v .fm-pb{flex:0 0 36%;min-width:0;border-radius:12px;border:2px solid var(--line);background:var(--card);color:var(--ink);font:800 17px var(--font)}
.fm-v .fm-pb.on[data-p=paid]{background:#16a34a;border-color:#16a34a;color:#fff}
.fm-v .fm-pb.on[data-p=unpaid]{background:#dc2626;border-color:#dc2626;color:#fff}
.fm-v .fm-more{flex:0 0 15%;border-radius:12px;border:2px solid #6b7280;background:color-mix(in srgb,#6b7280 12%,var(--card));color:#6b7280;font:800 26px var(--font);line-height:1;padding:0}
.fm-v .fm-more.has{border-color:#16a34a;color:#16a34a}
.fm-btns{display:flex;gap:1.2%;flex:1.1;min-height:0}
.fm-btns button{flex:1;border-radius:12px;border:0;font:800 22px var(--font)}
.fm-btns .fm-sv{background:#16a34a;color:#fff}.fm-btns .fm-cn{background:var(--card);color:var(--ink);border:2px solid var(--line)}
.fm-cp{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.fm-cp input{height:46px;border-radius:12px;border:2px solid #3b82f6;padding:0 10px;font:700 20px var(--font);color:#2563eb;background:#fff;box-sizing:border-box;width:100%}
.fm-cp .fm-kd{flex:none;justify-content:flex-start;font-size:14px}.fm-cp input[hidden]{display:none}
html.tg-on #pgx,html.tg-on #wTop{visibility:hidden!important}

/* V143z4: no cover behind Undo/Redo/Home/Back in ANY mode (dark, light, Driving open) */


/* V144e: your own picture buttons for ICE logo, Refresh, Finish Shift: clear inside + square strip (follows light/dark) */
html:not(#z):not(#y) body :is(.sh-logo,.sh-ref,.sh-fin){background:transparent!important;border:3px solid var(--bt-mid)!important;border-radius:16px!important;box-shadow:none!important;padding:3px!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;display:flex!important;align-items:center;justify-content:center;overflow:hidden}
html:not(#z):not(#y) body :is(.sh-logo,.sh-ref,.sh-fin) img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain;display:block}
html.wl-dark:not(#z):not(#y) body :is(.sh-logo,.sh-ref,.sh-fin){box-shadow:0 0 8px rgba(255,255,255,.25)!important}

/* V144e: Driving button in the bottom bar: ALWAYS clear inside + strip, also when a dark wallpaper is on (wl-dark) */



/* V144h: corner picture (ICE icon, page icons): clear inside + the same strip as the other buttons */
html:not(#z):not(#y):not(#x) body :is(.sh-clogo,.sh-corner>.sh-clogo,.sh-plogo){background:transparent!important;background-image:none!important;border:3px solid var(--bt-mid)!important;border-radius:16px!important;box-shadow:none!important;padding:3px!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;display:flex!important;align-items:center;justify-content:center;overflow:hidden}
html:not(#z):not(#y):not(#x) body :is(.sh-clogo,.sh-plogo) img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain;display:block}
html.wl-dark:not(#z):not(#y):not(#x) body :is(.sh-clogo,.sh-plogo){box-shadow:0 0 8px rgba(255,255,255,.25)!important}

/* V144j: ONE colour code for orders everywhere, same as Driving mode (dark = exact Driving colours, light = deeper versions so they read on pale cards) */
:root{--oz-k:#d97706;--oz-u:#dc2626;--oz-h:#dc2626;--oz-s:#2563eb;--oz-a:var(--ink)}
html:not(.sb-light){--oz-k:#f59e0b;--oz-u:#ef4444;--oz-h:#ef4444;--oz-s:#60a5fa;--oz-a:var(--ink)}
.oz-k{color:var(--oz-k)!important;font-weight:900}.oz-u{color:var(--oz-u)!important;font-weight:900}.oz-h{color:var(--oz-h)!important;font-weight:900;font-size:1.1em}.oz-s{color:var(--oz-s)!important;font-weight:700}.oz-a{color:var(--oz-a)!important;font-weight:900}
.sh-oc .ec{font-size:21px;letter-spacing:.5px}.sh-oc .ad{font-weight:700}.sh-oc .r3{color:var(--mute)}.sh-oc .r3 b{color:var(--oz-a)!important}

/* V144k: Undo / Redo have their OWN colour (teal), not the same as Home / Back (indigo) */
html{--ur-bg:linear-gradient(180deg,#ccfbf1,#99f6e4);--ur-bd:#2dd4bf;--ur-lip:#5eead4;--ur-fg:#134e4a;--ur-ic:#0d9488}
html:not(.sb-light){--ur-bg:linear-gradient(145deg,#12a597,#0b6b63);--ur-bd:#2dd4bf;--ur-lip:#053b37;--ur-fg:#fff;--ur-ic:#fff}



.sh-tg select{height:42px;border-radius:10px;border:2px solid var(--line);background:var(--card);color:var(--ink);font:700 16px var(--font);padding:0 8px;max-width:190px}



/* V144n: the old developer / manager tiles and logo are gone; only the Management hub is shown */
#dev #tiles-pan,#dev .dv>h1.lgh{display:none!important}

/* V144p: hold a shift 5 s to delete it (the row slowly turns red while you hold) */
.sh-hint{margin:2px 4px 10px;font-size:14px;color:var(--mute);text-align:center}
.sh-os{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background-image:linear-gradient(90deg,rgba(220,38,38,.35),rgba(220,38,38,.35));background-repeat:no-repeat;background-size:0% 100%;transition:background-size .15s}
.sh-os.holding{background-size:100% 100%;transition:background-size 3s linear}

/* V144p: undo bar + recently deleted rows */

.sh-os.sh-del{opacity:.75;border-style:dashed}

/* V144r: no double-tap zoom anywhere */
html,body,*{touch-action:manipulation}

/* V144t: scanner progress banner */
.sc-ban{position:fixed;left:12px;right:12px;bottom:calc(var(--dkgap,92px) + 10px);z-index:100001;padding:11px 14px;border-radius:14px;background:#1e293b;color:#fff;border-left:5px solid #2dd4bf;font:700 15px var(--font);box-shadow:0 8px 24px rgba(0,0,0,.45);pointer-events:none}
.sc-ban.bad{border-left-color:#ef4444;background:#450a0a}

/* V145: the receipt photo in the Check receipt window shares the class "pv" with the preview popup: make it a normal picture again (it was a black box over the Eircode) */
html:not(#z) #dlm img.pv{position:static!important;display:block!important;width:100%!important;max-height:150px!important;padding:0!important;margin:0 0 6px!important;border:0!important;box-shadow:none!important;animation:none!important;background:#000!important;border-radius:8px!important;object-fit:contain!important}
html:not(#z) #dlm img.pv.big{max-height:none!important}

/* V145g: house number box wider so 4+ digits always show; address text smaller */
html:not(#z) #dlm .hrow{gap:6px}
html:not(#z) #dlm .hrow #ff_house{flex:0 0 36%!important;width:36%!important;min-width:0;padding-left:6px!important;padding-right:6px!important;font-size:clamp(18px,5.4vw,24px)!important;text-align:center;text-overflow:clip;border-left-width:3px!important}
html:not(#z) #dlm .hrow #ff_address{font-size:clamp(13px,3.7vw,15px)!important;line-height:1.3!important;padding-left:10px!important;padding-right:8px!important;border-left-width:3px!important}

/* V145: the old home page never shows (the new home is the only home) */
html:not(#z) #tiles-home,html:not(#z) #home>.lgh,html:not(#z) #home>#home-sub{display:none!important}
/* V148 Cash Check page: compact, fits the screen under the permanent top bar and above the bottom buttons */
#pgx[data-k=cash] .sh-h{display:none}
#pgx[data-k=cash] .sh-body{font-size:14px}
#pgx[data-k=cash] .chg{padding:8px;margin:0 0 6px}#pgx[data-k=cash] .chg h4{font-size:15px}
#pgx[data-k=cash] .chg select,#pgx[data-k=cash] .chg input{height:42px;font-size:16px;padding:0 10px;min-height:0}
#pgx[data-k=cash] .chg-row{display:grid;grid-template-columns:1fr 1.1fr;gap:8px;align-items:center;margin:6px 0}
#pgx[data-k=cash] .chg-due{display:block;margin:0}#pgx[data-k=cash] .chg-due small{display:block;font-size:11px}#pgx[data-k=cash] .chg-due b{font-size:24px}
#pgx[data-k=cash] .chg-q{gap:5px;margin:6px 0}#pgx[data-k=cash] .chg-q button{flex:1 1 20%;min-height:38px;font-size:14px;border-radius:11px}
#pgx[data-k=cash] h4{margin:8px 0 4px!important;font-size:15px}
#pgx[data-k=cash] .cc-hero{padding:8px}#pgx[data-k=cash] .cc-hero b{font-size:30px}
#pgx[data-k=cash] .cc-res{padding:8px;margin-top:6px}
#pgx[data-k=cash] .cc-step{margin:8px 0 2px}
#pgx[data-k=cash] .fl{font-size:13px;margin:4px 0 2px}
#pgx[data-k=cash] .cc-act{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 4px}
#pgx[data-k=cash] .cc-act button{height:46px;border-radius:14px;font-weight:800;font-size:15px}
#pgx[data-k=cash] #cg_mw .fl{display:none}
/* V150: Settings + full pages from Settings sit between the permanent top bar and the bottom buttons */
#sTop{display:none}
html:not(#z):not(#y) body #sTop{position:fixed;left:0;right:0;top:var(--y);height:var(--fh);padding:0;pointer-events:none;z-index:250;display:block}
#sTop[hidden]{display:none!important}#sTop>.sh-top>*{pointer-events:auto}
html:not(#z):not(#y) body #sTop::before{content:"";position:absolute;left:0;right:0;top:calc(var(--y)*-1);height:calc(var(--fh)*.255 + var(--y));background:var(--bg,#0b100d);pointer-events:none}
html:not(#z):not(#y) body #sTop>.sh-top{position:static}
html:not(#z):not(#y):not(#x) body .pop-card:is(.setpg,.full,.wide){position:fixed!important;left:0!important;right:0!important;margin:0!important;width:auto!important;max-width:none!important;top:calc(var(--y) + var(--fh)*.255)!important;bottom:calc(env(safe-area-inset-bottom,0px) + var(--fh)*.165)!important;height:auto!important;max-height:none!important;border-radius:20px!important;padding-top:6px!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
html:not(#z):not(#y):not(#x) body .pop-card:is(.setpg,.full,.wide) h3{font-size:20px!important;margin:2px 0 6px!important}

html:not(#z):not(#y):not(#x) body .pop-card.setpg>h3{display:none!important}
html:not(#z):not(#y):not(#x) body .pop-card.setpg{padding-top:10px!important}
html:not(#z):not(#y):not(#x) body .pop-card.setpg>h3{display:none!important}
/* V153: Driving button blacked out and faded while no shift is running (ended or paused) */


/* V154: Home and Back are the user's own gold buttons (pictures) */




#pvOv .sh-sub{margin:10px 0 2px;font-weight:800;opacity:.7;font-size:14px}

/* V159 Drop Planner: the usual top bar stays (its buttons have no background); the map runs behind it from the top of the page */
html.drop-on:not(#z):not(#y) body #sTop::before{display:none!important}
html.drop-on:not(#z):not(#y) body #pgx .sh-top>*{z-index:6!important}
html.drop-on:not(#z):not(#y) body #pgx .sh-body{z-index:1!important}
html.drop-on:not(#z):not(#y) body #pgx .sh-body{top:0!important;left:0!important;right:0!important;bottom:calc(env(safe-area-inset-bottom,0px) + var(--fh)*.172)!important;padding:0!important;overflow:hidden!important}


html.drop-pan:not(#z):not(#y) body #pgx .sh-top,html.drop-pan:not(#z):not(#y) body #sTop{visibility:hidden!important}

/* V173: everything opened from the Menu (left) panel opens as the same side page: same width, same top gap below the Dynamic Island, dock stays */
html.drop-side{--sdTop:calc(max(env(safe-area-inset-top,0px),56px) + 4px);--sdIn:10px;--sdBot:calc(env(safe-area-inset-bottom,0px) + 8px);--sdBg:#14161d;--sdFg:#eef0f6}
html.drop-side.sb-light,html.pg2-on.sb-light{--sdBg:#f4f6fb;--sdFg:#1b1f2a}
html.pg2-on{--sdTop:calc(max(env(safe-area-inset-top,0px),56px) + 4px);--sdIn:10px;--sdBot:calc(env(safe-area-inset-bottom,0px) + 8px);--sdBg:#14161d;--sdFg:#eef0f6}
html.drop-side .pop:not(.alertpop):not(.pop ~ .pop){inset:auto!important;left:0!important;top:var(--sdTop)!important;bottom:var(--sdBot)!important;width:90%!important;max-width:520px!important;z-index:320!important;display:block!important;animation:none!important;background:none!important}
html.drop-side .pop:not(.alertpop):not(.pop ~ .pop) .pop-bg{display:none!important}
html.drop-side .pop:not(.alertpop):not(.pop ~ .pop) .pop-card{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;border-radius:0 22px 22px 0!important;padding:var(--sdIn) 12px 16px!important;background:var(--sdBg)!important;color:var(--sdFg)!important;box-shadow:0 0 30px rgba(0,0,0,.5)!important;overflow:auto!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;animation:none!important;border:0!important}

html.drop-side #tgp:not([hidden]),html.pg2-on:not(#z):not(#y) body #pgx[data-k]:not([data-k=drop]):not([data-k=form]){position:fixed!important;inset:auto!important;left:0!important;top:var(--sdTop)!important;bottom:var(--sdBot)!important;width:90%!important;max-width:520px!important;height:auto!important;padding:var(--sdIn) 12px 16px!important;border-radius:0 22px 22px 0!important;background:var(--sdBg)!important;color:var(--sdFg)!important;box-shadow:0 0 30px rgba(0,0,0,.5)!important;overflow:auto!important;z-index:320!important}
html.pg2-on #pgx[data-k]:not([data-k=drop]):not([data-k=form]) .sh-top{display:none!important}
html.drop-side #pvOv{inset:auto!important;left:0!important;top:var(--sdTop)!important;bottom:var(--sdBot)!important;width:90%!important;max-width:520px!important;z-index:320!important}
html.drop-side #pvOv .pv{left:0!important;top:0!important;width:100%!important;height:100%!important;border-radius:0 22px 22px 0!important;padding:var(--sdIn) 14px 16px!important;background:var(--sdBg)!important;color:var(--sdFg)!important;overflow:auto!important;border:0!important;box-shadow:0 0 30px rgba(0,0,0,.5)!important}
html.drop-side.wal-col #app{left:0!important;width:90%!important;max-width:520px!important;top:var(--sdTop)!important;bottom:var(--sdBot)!important;padding:var(--sdIn) 12px 16px 12px!important;border-radius:0 22px 22px 0!important;background:var(--sdBg)!important;box-shadow:0 0 30px rgba(0,0,0,.5)!important;z-index:320!important}
html.drop-side.wal-col #wTop{display:none!important}

html.pg2-on:not(#z):not(#y) body #pgx[data-k]:not([data-k=drop]):not([data-k=form]) .sh-body{position:fixed!important;left:0!important;right:auto!important;width:min(90%,520px)!important;top:calc(var(--sdTop) + var(--sdIn) + 48px)!important;bottom:var(--sdBot)!important;padding:0 12px 16px!important;overflow-y:auto!important}
html.pg2-on:not(#z):not(#y) body #pgx[data-k]:not([data-k=drop]):not([data-k=form]) .sh-h{display:flex!important;align-items:center;gap:10px;position:fixed;left:12px;top:calc(var(--sdTop) + var(--sdIn));width:calc(min(90%,520px) - 24px);height:40px;margin:0;font:800 21px system-ui,sans-serif;color:var(--sdFg)}
html:not(.sb-light).pg2-on:not(#z) body #pgx[data-k=orders] .sh-oc .ad,html:not(.sb-light).pg2-on:not(#z) body #pgx[data-k=orders] .sh-oc .ad *{color:#9cc4ff!important}
/* V175: clock digits keep the same width (the AM/PM no longer shakes); smaller clock; top bar a little higher, closer to the Dynamic Island */
html:not(#z):not(#y) body .sh-dt .st,html:not(#z):not(#y) body .sh-dt .st *{font-variant-numeric:tabular-nums!important;font-feature-settings:"tnum" 1!important}
html:not(#z):not(#y) body .sh-dt .st small{display:inline-block;min-width:1.25em}
html:not(#z):not(#y) body .sh-dt .st .ch,html:not(#z):not(#y) body .sh-dt .st .cm,html:not(#z):not(#y) body .sh-dt .st .cs{display:inline-block;white-space:pre;font-variant-numeric:tabular-nums}
html:not(#z):not(#y) body .sh-dt .st .ap{display:inline-block;min-width:2.3em;text-align:center;box-sizing:border-box}
html:not(#z):not(#y) body .sh-dt .st .ap:empty{display:none}
html:not(#z):not(#y) body .sh-top .sh-dt{width:38%!important;height:5%!important;padding:2px 12px!important}
html:not(#z):not(#y) body .sh-top .sh-dt .st{font-size:22px!important}
html:not(#z):not(#y) body .sh-top .sh-dt .st small{font-size:12px!important}
html:not(#z):not(#y) body .sh-top .sh-dt .st .ap{font-size:11px!important}
html:not(#z):not(#y) body .sh-top .sh-dt .sd{font-size:11px!important}
html:not(#z):not(#y) body .sh-top>.sh-set,html:not(#z):not(#y) body .sh-top>.sh-logo,html:not(#z):not(#y) body .sh-top>.sh-dt,html:not(#z):not(#y) body .sh-top>.sh-corner{margin-top:-8px!important}
/* iPhone app full screen: our clock beside the Dynamic Island instead of the iOS clock */
html.ios-fs:not(#z):not(#y) body .sh-top .sh-dt{display:none!important}
html:not(#z):not(#y) body #fsClk{position:fixed!important;z-index:400;left:18px!important;top:max(4px,calc(env(safe-area-inset-top,44px)/2 - 19px))!important;width:auto!important;max-width:calc(50% - 74px);height:auto!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;pointer-events:none;align-items:flex-start}
html:not(#z):not(#y) body #fsClk .st{font-size:19px!important;line-height:1!important}
html:not(#z):not(#y) body #fsClk .st small{display:none!important}
html:not(#z):not(#y) body #fsClk .st .ap{font-size:10px!important;padding:1px 4px!important;margin-left:4px!important}
html:not(#z):not(#y) body #fsClk .sd{font-size:10px!important;margin-top:1px!important}
html:not(.ios-fs) #fsClk{display:none!important}
.mp-dps img{width:34px;height:34px;object-fit:contain;vertical-align:middle;margin-right:8px}
/* V175: the map waits behind pages opened from the Menu panel */
#mapPark{position:fixed;left:0;right:0;top:0;bottom:calc(env(safe-area-inset-bottom,0px) + var(--fh,800px)*.17);z-index:60;overflow:hidden}
html:not(.drop-park) #mapPark{display:none}
#mapPark #mapW{position:absolute!important;inset:0!important}
html.drop-park:not(#z):not(#y) body{background:#0b0f1a}

/* V175: nothing hides behind the bottom buttons: pop-ups, sheets and the Settings pages end just above them */



/* the catchable scroll bar */
#iceSB{position:fixed;z-index:100001;width:10px;border-radius:6px;background:rgba(124,92,255,.75);box-shadow:0 0 0 2px rgba(255,255,255,.35);touch-action:none}
#iceSB::before{content:"";position:absolute;left:-14px;right:-8px;top:-6px;bottom:-6px}
#iceSB.on{background:#7c5cff;width:12px}
#iceSB[hidden]{display:none}

/* V175: Keys / Features on their own page */
#hubBox.solo #dtabs>button{display:none!important}
#hubBox.solo #dtabs{gap:0!important;border:0!important;background:none!important}
html:not(#z):not(#y) body #fsClk .st{background:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.8),0 0 2px rgba(0,0,0,.9)}
html:not(#z):not(#y) body #fsClk .st .ap{background:rgba(0,0,0,.55)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html:not(#z):not(#y) body #fsClk .sd{color:#e8ecff!important;text-shadow:0 1px 3px rgba(0,0,0,.85)}

/* V177 icons: English = picture with its drawn label; other languages = symbol + translated text */
.ic-xx,.ic-xt{display:none!important}
html[lang]:not([lang=en]) .ic-en{display:none!important}
html[lang]:not([lang=en]) .ic-xx{display:block!important}
html[lang]:not([lang=en]) .ic-xt{display:block!important}
html:not(#z):not(#y) body .sh-set .ic-xx{width:auto!important;height:62%!important;max-width:88%!important;margin:0 auto;object-fit:contain}
html:not(#z):not(#y) body .sh-set .ic-xt{font:800 14px/1.1 var(--font);margin-top:2px;text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* V177: the Drop Planner picture has see-through gaps round the portrait; a dark disc behind the wheel keeps it looking the same on light and dark themes */

/* V177: the Handwrite / Edit order form is see-through; the parked map behind it (its bottom card and messages) showed through the fields, so it is hidden while the form is open */
html.drop-park:has(#pgx[data-k=form]:not([hidden])) #mapPark{visibility:hidden}
/* V177: the old tile pictures (tile-calc ...) are gone; the 4 sample tiles in the Wallpaper preview show their small icons instead of an empty square */
html:not(#z) #wlpv .tile .ti>*{display:block!important}
html:not(#z) #wlpv .tile .ti{background-image:none!important}

/* V177b: the bar stays on top of the guided tour (Back / Home close it) */


/* V177b: the Settings page (and every full / wide sheet) ends a small gap ABOVE the bottom buttons on every page; on page 1 the bar sits higher
   than on Drop Planner, so the sheet follows the measured top of the bar (--sdBotM = gap from the screen bottom to 8 px above the bar) */

/* V177b: page 1 uses the same top line below the Dynamic Island as the side pages */
html.pg1-on{--sdTop:calc(max(env(safe-area-inset-top,0px),56px) + 4px)}

/* V177b: the About sheet on page 1 keeps page 1 out of view too (like Settings) */
html:not(#z):has(.pop-card.abt) #pg1{visibility:hidden!important}

/* V177b: the Drop Planner bottom-card buttons (Undelivered / Delivered / Navigate) keep their words on one line inside the button in every language
   (map.js gives them a fixed 38 px height; a wrapped second line ran past the bottom edge) */
html:not(#z):not(#y) body .mp-cb button{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:clamp(11px,3.3vw,14px)!important;line-height:1.15!important;letter-spacing:-.2px;padding:0 3px!important}

/* V177b: the Management hub / Keys / Features page scrolls only down to a small gap above the bottom buttons (its content no longer runs under them) */


/* V177: while the Settings page is open, nothing of page 1 (Share App / About ...) may show between it and the dock */
html:not(#z):has(.pop-card.setpg) #pg1{visibility:hidden!important}

/* V180 - dock: Home and Back get the SAME strip as Drop Planner (a drawn border, so it follows dark and light mode); the pictures no longer carry their own lavender strip.
   The Drop Planner picture now fills its strip. */





/* V180 - iPhone app (full screen): Settings button on the LEFT of the Dynamic Island, logo on the RIGHT (no strips around them), the clock + date exactly under the island
   with the island's own size (29.2% of the width x 8.4% of the width = 125 x 37 pt on an iPhone 15 Pro Max). Side pages start below the clock. */
html.ios-fs{--sdTop:calc(19.8vw + 6px)}
html.ios-fs:not(#z):not(#y):not(#x) body .sh-set,html.ios-fs:not(#z):not(#y):not(#x) body .sh-logo{position:fixed!important;top:2vw!important;height:15vw!important;width:31.4vw!important;border:0!important;background:none!important;background-color:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important;display:flex!important;align-items:center;justify-content:center;overflow:visible!important}
html.ios-fs:not(#z):not(#y):not(#x) body .sh-set{left:2vw!important}
html.ios-fs:not(#z):not(#y):not(#x) body .sh-logo{left:66.6vw!important}
html.ios-fs:not(#z):not(#y):not(#x) body .sh-set img,html.ios-fs:not(#z):not(#y):not(#x) body .sh-logo img{height:100%!important;width:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
html.ios-fs:not(#z):not(#y):not(#x) body #fsClk{position:fixed!important;left:35.4vw!important;top:11.4vw!important;width:29.2vw!important;height:8.4vw!important;min-height:0!important;max-height:8.4vw!important;max-width:none!important;box-sizing:border-box!important;padding:0!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;background:#000!important;border:0!important;border-radius:18px!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;overflow:hidden!important}
html.ios-fs:not(#z):not(#y):not(#x) body #fsClk .st,html.ios-fs:not(#z):not(#y):not(#x) body #fsClk .sd{display:block!important;width:100%;text-align:center!important;white-space:nowrap!important}

html.ios-fs:not(#z):not(#y):not(#x) body #fsClk .st{font-size:15px!important;line-height:1!important}html.ios-fs:not(#z):not(#y):not(#x) body #fsClk .sd{font-size:8.5px!important;line-height:1!important;margin-top:1px!important}html.ios-fs:not(#z):not(#y):not(#x) body #fsClk .st .ap{font-size:8px!important;padding:1px 3px!important;margin-left:3px!important;vertical-align:1px!important}

.pv .pv-x{position:sticky;bottom:0}

/* V183 (iPhone app only): no live blur on the first page. Blur re-draws the wallpaper behind every tile on each frame and made the first page slow to open. */
html.ios-fs #pg1,html.ios-fs #pg1 *,html.ios-fs #home,html.ios-fs #home *,html.ios-fs #dl,html.ios-fs #hubBox,html.ios-fs .tile{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* V191 (iPhone app, Drop Planner map): Settings and the logo moved into the side panels (Settings = left Menu panel, logo = right Orders panel). The top of the map is free; only the clock + date sit LEFT of the Dynamic Island. */
html.ios-fs.drop-on:not(#z):not(#y):not(#x) body .sh-set,html.ios-fs.drop-on:not(#z):not(#y):not(#x) body .sh-logo{display:none!important}
html.ios-fs.drop-on:not(#z):not(#y):not(#x) body #fsClk{left:2vw!important;top:2.4vw!important;width:31.4vw!important;height:9vw!important;max-height:9vw!important;background:none!important;border-radius:0!important}
html.ios-fs.drop-on:not(#z):not(#y):not(#x) body #fsClk .st{font-size:25px!important;font-weight:800!important}
html.ios-fs.drop-on:not(#z):not(#y):not(#x) body #fsClk .sd{font-size:11px!important;margin-top:3px!important;letter-spacing:.06em}

/* V199/V200 (iPhone app, page 1): the picture is one piece from the very top (no extra colour strip above it). Below the Dynamic Island one row:
   Settings = 1/3 of the screen (big), the icE easyPlanner logo = from the right side of Settings to the right edge. The clock + date sit LEFT of the island, the same as on the map. */
html.ios-fs:not(#z):not(#y):not(#x) #pg1::before{content:"";position:fixed;left:0;right:0;top:0;height:var(--y);background:inherit;pointer-events:none;z-index:0}
html.ios-fs:not(.drop-on):not(#z):not(#y):not(#x) body .sh-set,html.ios-fs:not(.drop-on):not(#z):not(#y):not(#x) body .sh-logo{top:16vw!important;height:32vw!important}
html.ios-fs:not(.drop-on):not(#z):not(#y):not(#x) body .sh-set{left:1.5vw!important;width:31vw!important}
html.ios-fs:not(.drop-on):not(#z):not(#y):not(#x) body .sh-logo{left:32.5vw!important;width:66vw!important}
html.ios-fs:not(.drop-on):not(#z):not(#y):not(#x) body #fsClk{left:2vw!important;top:3.6vw!important;width:31.4vw!important;height:9vw!important;max-height:9vw!important;background:none!important;border-radius:0!important;color:#fff!important}
html.ios-fs:not(.drop-on):not(#z):not(#y):not(#x) body #fsClk .st{font-size:25px!important;font-weight:800!important;color:#fff!important;text-shadow:0 1px 6px rgba(10,14,40,.75),0 0 2px rgba(10,14,40,.9)}
html.ios-fs:not(.drop-on):not(#z):not(#y):not(#x) body #fsClk .sd{font-size:11px!important;margin-top:3px!important;letter-spacing:.06em;color:#ffd166!important;text-shadow:0 1px 4px rgba(10,14,40,.85)}

/* V213: close icons (the bottom bar is gone) */
.sh-x{position:fixed;z-index:102;right:max(10px,env(safe-area-inset-right,0px));top:calc(env(safe-area-inset-top,0px) + 8px);width:44px;height:44px;border-radius:50%;border:2px solid color-mix(in srgb,var(--ink) 35%,transparent);background:var(--card);color:var(--ink);font:800 20px/1 system-ui,sans-serif;display:flex;align-items:center;justify-content:center;padding:0;box-shadow:0 3px 10px rgba(0,0,0,.25)}
.sh-x:active{transform:scale(.94)}
.pop-x{position:sticky;top:0;float:right;z-index:3;width:38px;height:38px;margin:-4px -4px 0 8px;border-radius:50%;border:1.5px solid color-mix(in srgb,var(--ink) 30%,transparent);background:var(--card);color:var(--ink);font:800 17px/1 system-ui,sans-serif;display:flex;align-items:center;justify-content:center;padding:0}
.pop-x:active{transform:scale(.94)}
/* V213: no bottom bar any more: pages, side pages and the Wallet page run down to the bottom of the screen */
html.wal-col #app{bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important}
html:not(#z):not(#y) body #pgx .sh-body{bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important}
html.drop-on:not(#z):not(#y) body #pgx .sh-body{bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important}
html:not(#z):not(#y):not(#x) body .pop-card:is(.setpg,.full,.wide){bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 12px)!important}
html.drop-side #pvOv .pv{max-height:none!important}   /* V214: the Drop Planner settings page fills the same side panel */
html:not(#z):not(#y).drop-side,html:not(#z):not(#y).pg2-on{--sdTop:calc(max(env(safe-area-inset-top,0px),56px) + 4px);--sdBot:0px}   /* V214: every page opened from the Menu panel is exactly the size of the panel */

/* V219: Bin button on Old Shifts */
.sh-binrow{display:flex;justify-content:flex-end;margin:0 0 8px}.sh-bin{height:40px;padding:0 16px;border-radius:12px;border:1.5px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1);color:inherit;font:800 15px system-ui,sans-serif}
