/* ===== V87: login-style clear glass everywhere + Abacus redesign (Light = login look, Dark = a little darker) ===== */
html.wl-dark #wallbg,html.wl-dark.wl-deep #wallbg{filter:none!important;transform:none!important}
html.wl-dark.wl-lm #wallbg{filter:saturate(1.12) brightness(1.1)!important}
html.wl-dark.wl-dm #wallbg::after{content:"";position:absolute;inset:0;background:rgba(2,5,22,.32)}
html.wl-dark{--bg:rgba(4,8,44,.34)!important;--card:rgba(8,14,66,.22)!important;--ink:#f4f6ff!important;--mute:rgba(235,240,255,.82)!important;--line:rgba(255,255,255,.25)!important;--soft:rgba(4,8,44,.38)!important;--sh:0 10px 24px -16px rgba(0,0,0,.5)!important}
html.wl-dark body{text-shadow:0 1px 2px rgba(0,0,40,.3)}
html.wl-dark #dl,html.wl-dark #hubBox{background:rgba(4,8,40,.16)!important;-webkit-backdrop-filter:blur(4px)!important;backdrop-filter:blur(4px)!important}
html.wl-dark .pop-bg{background:rgba(2,4,24,.28);-webkit-backdrop-filter:none;backdrop-filter:none}
html.wl-dark .pop-card{background:rgba(8,14,66,.34)!important}

html.wl-dark :is(section,.si,.kv,.erow,.jc,.bzb,.lvc,.cc-hero,.cc-res,.ech,.gpc){background:rgba(8,14,66,.22)!important;border:1px solid rgba(255,255,255,.25)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 24px -16px rgba(0,0,0,.5)!important}
html.wl-dark :is(input,select,textarea){background:rgba(4,8,44,.34)!important;border-color:rgba(255,255,255,.25)!important;color:#fff}

html.wl-dark .tile:not([data-wa]){background:rgba(8,14,66,.22)!important;background-image:none!important;border:1px solid rgba(255,255,255,.25)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 24px -16px rgba(0,0,0,.5)!important}
html.wl-dark .tile:not([data-wa]) .tt{color:#fff!important;text-shadow:0 1px 3px rgba(0,0,50,.6)!important}
/* Abacus screen */
#app .cat{--c:#ffb454;color:color-mix(in srgb,var(--c) 45%,#fff);letter-spacing:.16em;text-shadow:0 1px 3px rgba(0,0,50,.6)}
#app .cat::after{background:linear-gradient(90deg,var(--c),transparent);height:1.5px}
#app h3.cat:nth-of-type(2){--c:#a78bfa}#app h3.cat:nth-of-type(3){--c:#2dd4bf}#app h3.cat:nth-of-type(4){--c:#ff5a5f}
#app .sech h2{font:800 18px var(--font)}
#rates .row{flex-wrap:nowrap;gap:8px;height:56px;padding:0;border-bottom:1px solid var(--line)}
#rates .row>span:first-child.ptag,.ptag{width:70px;height:36px;flex:none;display:flex;align-items:center;justify-content:center;gap:1px;padding:0!important;border-radius:12px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 30%,transparent),color-mix(in srgb,var(--c) 12%,transparent))!important;border:1px solid color-mix(in srgb,var(--c) 55%,transparent);font-family:"Inter Display",var(--font);font-variant-numeric:tabular-nums;color:#fff}
.ptag sup{font:600 12px var(--font);opacity:.8;align-self:flex-start;margin-top:5px}.ptag b{font:800 19px var(--font);letter-spacing:-.3px}.ptag sub{font:600 12px var(--font);opacity:.75;align-self:flex-end;margin-bottom:5px}
.strip{flex:1;min-width:0;height:20px;border-radius:10px;background:rgba(4,8,44,.4);display:flex;align-items:center;justify-content:space-between;padding:0 4px;gap:2px;box-shadow:inset 0 1px 4px rgba(0,0,0,.45)}
.strip .b{flex:1;max-width:11px;aspect-ratio:1;border-radius:50%;background:rgba(255,255,255,.22);box-shadow:inset 0 -1px 2px rgba(0,0,0,.3)}
.strip .b.on{background:radial-gradient(circle at 34% 28%,#fff,var(--c,#fbbf24) 45%,color-mix(in srgb,var(--c,#fbbf24) 55%,#000));box-shadow:0 0 8px color-mix(in srgb,var(--c,#fbbf24) 70%,transparent),inset 0 -1px 2px rgba(0,0,0,.3)}
#rates .step,.cbd .step{gap:6px;flex:none}
#rates .step b,.cbd .step b{min-width:18px;font:800 22px var(--font);color:var(--c,#fbbf24);text-align:center}
#rates .step button,.cbd .step button{width:36px;height:36px;border-radius:13px;font-size:22px;box-shadow:none}
#rates .step button[data-d="1"],.cbd .step button[data-n="1"]{background:linear-gradient(135deg,color-mix(in srgb,var(--c,#fbbf24) 85%,#fff),color-mix(in srgb,var(--c,#fbbf24) 70%,#000));color:#fff;border:0;box-shadow:0 6px 12px -5px var(--c,#fbbf24)}
/* hours */
#hrs,#ext,#cn{position:absolute!important;opacity:0;pointer-events:none;width:1px!important;height:1px!important;padding:0!important;border:0!important;overflow:hidden}
#hrs+.hbd,.hbd{display:flex;gap:5px;justify-content:space-between;margin-top:4px;--c:#a78bfa}
.hb{width:30px;height:30px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.22);color:rgba(255,255,255,.85);font:700 12px var(--font);box-shadow:inset 0 -1px 2px rgba(0,0,0,.3)}
.hb.on{background:radial-gradient(circle at 34% 28%,#fff,#a78bfa 45%,#5b3fc7);color:#fff;box-shadow:0 0 10px rgba(167,139,250,.75)}
.xcp{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}
.xc{padding:9px 13px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.12);color:#fff;font:700 13px var(--font)}
.xc.on{background:linear-gradient(135deg,#c4b1fd,#6d4be0);border:0;box-shadow:0 6px 12px -5px #a78bfa}
section label{font-weight:700}
.cbd{display:flex;align-items:center;gap:8px;margin-top:8px;--c:#f6c453}.cbd .strip{--c:#f6c453}
/* result */
#out.note{white-space:normal;font:14px var(--font)}
#out .wt{display:block!important;text-align:center;padding:4px 0 12px!important;margin:0!important;border:0!important}
#out .wt>div{display:block!important;border:0!important;padding:0!important;margin:0!important}
#out .wt .orn{margin:8px 0 2px!important}
#out .wt .k{font:600 11px var(--font);letter-spacing:5px;color:var(--mute)}
#out .wt h2{font:700 34px "Caladea","Bitstream Charter",Georgia,serif;letter-spacing:.5px;margin:2px 0 0;background:linear-gradient(180deg,#ffe49a,#e0a02c 60%,#a9680f);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 2px 3px rgba(40,10,0,.55))}
#out .wt .nm{font:700 24px "Caladea",Georgia,serif;letter-spacing:7px;text-transform:uppercase;margin-top:2px}
#out .wt .orn{color:#ffd36b}
#out .wt .dd{font-size:12px;color:var(--mute)}
#out .grp{display:block;border-radius:18px;margin-top:10px;padding:12px 14px 6px;background:rgba(4,8,44,.38)!important;border:0;border-left:4px solid var(--c)}
#out .gh{display:flex!important;align-items:center;gap:9px;border:0!important;padding:0 0 4px!important;margin:0!important}
#out .gh i{width:24px;height:24px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:13px;background:color-mix(in srgb,var(--c) 45%,transparent)}
#out .gh b{flex:1;font:800 12px var(--font);letter-spacing:2px;color:color-mix(in srgb,var(--c) 42%,#fff)}
#out .gh em{font:800 16px ui-monospace,Menlo,monospace;font-style:normal;color:#fff}
#out .rw{display:flex!important;justify-content:space-between;gap:10px;padding:6px 0!important;margin:0!important;border:0!important;border-top:1px dashed rgba(255,255,255,.2)!important;font-size:13px}
#out .rw span{color:var(--mute)}#out .rw b{font:800 13px ui-monospace,Menlo,monospace;color:#fff}
#out .sub{display:flex!important;justify-content:space-between;align-items:center;margin:10px 0 0!important;padding:11px 14px!important;border-radius:14px;border:2px dashed #ff7a80!important;background:rgba(120,10,30,.28);font:800 12px var(--font);letter-spacing:2px;color:#ffb3b6}
#out .sub b{font:800 20px ui-monospace,Menlo,monospace;color:#fff}
#out .gt{display:flex!important;justify-content:space-between;align-items:center;margin:12px 0 0!important;padding:14px 16px!important;border-radius:18px;background:linear-gradient(135deg,#ff6468,#c4162a 70%,#9a0f20);color:#fff;border:0!important;box-shadow:0 10px 22px -10px #c4162a}
#out .gt small{font:800 12px var(--font);letter-spacing:2px;line-height:1.3}#out .gt b{font:800 30px ui-monospace,Menlo,monospace}
#out .mix{display:flex!important;height:8px;border-radius:6px;overflow:hidden;margin:12px 0 0!important;padding:0!important;border:0!important;gap:2px}#out .mix i{display:block;min-width:0}
.resS .rh{display:none}

/* new-feature dot */
.ndot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#ff3b4a;box-shadow:0 0 0 2px rgba(255,255,255,.85),0 0 10px rgba(255,59,74,.8);margin-left:7px;vertical-align:middle}
#ice-gear{position:relative}
html.nd-on #ice-gear::after{content:"";position:absolute;top:-3px;right:-3px;width:13px;height:13px;border-radius:50%;background:#ff3b4a;box-shadow:0 0 0 2px #fff,0 0 10px rgba(255,59,74,.85)}
/* stronger red / highlight: Subtotal, Total due (cash), Grand total */
#out .sub{background:linear-gradient(135deg,rgba(255,70,80,.55),rgba(170,15,35,.6))!important;border:2px solid #ff6a72!important;color:#fff!important;box-shadow:0 0 16px rgba(255,70,80,.55),inset 0 1px 0 rgba(255,255,255,.35);text-shadow:0 1px 2px rgba(60,0,10,.6)}
#out .sub b{font-size:22px}
#out .grp.cash{background:linear-gradient(135deg,rgba(246,196,83,.34),rgba(200,120,10,.3))!important;border:2px solid #f6c453;border-left-width:5px;box-shadow:0 0 16px rgba(246,196,83,.45),inset 0 1px 0 rgba(255,255,255,.3)}
#out .grp.cash .gh b{color:#ffe29a}#out .grp.cash .gh em{color:#fff;font-size:19px}
#out .grp.cash .rw:last-child b{color:#ffe29a;font-size:16px}
#out .gt{background:linear-gradient(135deg,#ff4d55,#d4121f 60%,#a00d1c)!important;border:2px solid #ff8a90!important;box-shadow:0 0 22px rgba(255,60,70,.65),inset 0 1px 0 rgba(255,255,255,.4)!important}
#out .gt b{font-size:34px;text-shadow:0 2px 4px rgba(70,0,10,.5)}

/* V90: no Settings button inside other menus */
html.no-gear #ice-gear{display:none!important}

/* V92: result labels are written in normal case (so they can be translated) and shown in capitals only in English */
#out .wt .k,#out .gh b,#out .sub span,#out .gt small{text-transform:uppercase}
#out .gt small{max-width:86px}
html[lang]:not([lang=en]) #out :is(.wt .k,.gh b,.sub span,.gt small){text-transform:none;letter-spacing:0}
/* V92: numbers, prices and dates keep their own direction inside right-to-left languages */
[dir="rtl"] :is(.ptag,.step b,.rw b,.gh em,#out .sub b,#out .gt b,.cashbig,.hb,.xc,.tag b){direction:ltr;unicode-bidi:isolate}
[dir="rtl"] #out .wt .dd{unicode-bidi:plaintext}
[dir="rtl"] #dt{unicode-bidi:plaintext}

/* V125: the bottom bar always has its own solid ground, so Back / Home / Forward can be read over ANY screen (it was white on white on the Orders Together and Management hub screens) */








/* V125: full pages (Management hub, Orders together, Receipt scanner) hide the main screen behind them, so no tile shows through */
html.wl-dark #dl,html.wl-dark #hubBox{background:rgba(8,12,28,.88)!important}
html.wl-light #dl,html.wl-light #hubBox{background:rgba(247,248,253,.9)!important}
/* V128: Dark mode on a LIGHT wallpaper = the picture is darkened; Light mode on a DARK wallpaper = the picture is lightened (so text always reads) */
html.wl-dark.wl-mis #wallbg{filter:brightness(.8) saturate(1.12)!important}
html.wl-dark.wl-mis #wlpv .pvi{filter:brightness(.8) saturate(1.12)}
html.wl-dark.wl-mis.wl-deep #wallbg{filter:blur(22px) brightness(.34) saturate(1)!important;transform:scale(1.1)!important}
html.wl-light.wl-mis #wallbg{filter:brightness(1.2) saturate(.85)!important}
html.wl-light.wl-mis #wlpv .pvi{filter:brightness(1.2) saturate(.85)}
html.wl-light.wl-mis.wl-deep #wallbg{filter:blur(22px) brightness(1.6) saturate(.5)!important;transform:scale(1.1)!important}

/* V131: driving screen shows the order money, delivery price and paid amount as colour-coded chips next to COLLECT */

/* V131: readable red Edit buttons (was a pale red on pale pink in light mode) */
.edtb{color:#b91c1c}
html[data-theme="dark"] .edtb{color:#ffa3a3}
.edtb{background:#fee2e2;color:#991b1b;border-color:#dc2626}
html[data-theme="dark"] .edtb{background:rgba(127,29,29,.92);color:#ffe4e4;border-color:#fca5a5}

/* V132: current order text always fits: sizes scale with the screen height AND with --ds{gap:2px;padding-top:0;overflow:hidden;justify-content:center}
.dmc.mm.cash{background:#ffe3b8;color:#8a4600}.dmc.mm.card{background:#c8f3ee;color:#0b5d57}
html.wl-dark .dmc.mm.cash,html[data-theme="dark"] .dmc.mm.cash{background:#5a3300;color:#ffd08a}html.wl-dark .dmc.mm.card,html[data-theme="dark"] .dmc.mm.card{background:#0b4743;color:#8cf0e6}
/* V132: same buttons and Next orders list{padding:3px 6px;max-height:40px;overflow:hidden}

/* V134: Dark mode = every option background dark; the pale red / green status buttons get dark versions */

/* V134: the THEME colours the buttons (dock, clock, accents) and the WALLPAPER only changes the background: with a wallpaper the theme colour is no longer lost */







/* V134: Settings = opaque full page (nothing of the main screen shows through) */
html .pop:has(>.pop-card.setpg){background:#f3f4f8!important}
html.wl-dark .pop:has(>.pop-card.setpg),html[data-theme=dark] .pop:has(>.pop-card.setpg){background:#0d1220!important}
html .pop-card.setpg{background:#f3f4f8!important;background-image:none!important;opacity:1!important}
html.wl-dark .pop-card.setpg,html[data-theme=dark] .pop-card.setpg{background:#0d1220!important}
html .pop-card.setpg::before,html .pop-card.setpg::after{display:none!important}

/* V134: wallpaper picker: selected option is clearly different + live preview strip */
#wl_i .chip:not(.on),#wl_g .chip:not(.on){background:var(--soft)!important;color:var(--ink)!important;box-shadow:none!important;border:1px solid var(--line)!important}
#wl_i .chip.on,#wl_g .chip.on{outline:3px solid rgba(255,255,255,.7);outline-offset:-3px}
#wlpv{position:sticky;top:0;z-index:5;height:150px;border-radius:22px;overflow:hidden;margin:4px 0 8px;display:flex;gap:10px;align-items:center;justify-content:center;padding:0 10px;box-shadow:0 6px 18px rgba(0,0,0,.25)}
#wlpv .pvi{position:absolute;background-size:cover;background-position:center;z-index:0}
#wlpv .tile{position:relative;z-index:1;min-height:0;height:112px;flex:1;max-width:100px;padding:8px 4px}
#wlpv .tile .tt{font-size:11px}

/* V134: Glass and Icon colour options now work in the preview strip only; the big home tiles stay clear */
html:not(#z)[data-glass]:not([data-glass=auto]) #wlpv .tile[data-wa]{background-image:var(--wa-grain),linear-gradient(var(--wa-bg),var(--wa-bg))!important;background-color:transparent!important;border:1px solid var(--wa-bd)!important;border-radius:30px!important;box-shadow:0 10px 26px rgba(0,0,0,.22),inset 0 1.5px 0 var(--wa-hl)!important;-webkit-backdrop-filter:blur(var(--wa-blur,26px)) saturate(1.6)!important;backdrop-filter:blur(var(--wa-blur,26px)) saturate(1.6)!important}
html:not(#z)[data-glass]:not([data-glass=auto]) #wlpv .tile[data-wa] .tt{color:var(--wa-lab)!important}
html:not(#z)[data-icons=white] #wlpv .tile[data-wa] .ti{filter:grayscale(1) brightness(1.7) contrast(.95) drop-shadow(0 1px 3px rgba(0,0,0,.4))!important}
html:not(#z)[data-icons=color] #wlpv .tile[data-wa] .ti{filter:saturate(1.6) contrast(1.08)!important}


/* V134: bottom bar = Driving | Home | Back, styled like the Driving Mode button */







/* V134: Route planner: the buttons take the least room, the planned orders are the star */
html .s-route .db,html .s-route .db.big{min-height:0!important;padding:8px 12px!important;font-size:14px!important;border-radius:16px!important}
html .s-route .db.drvgo{padding:9px 12px!important;font-size:15px!important}
html .s-route .db.drvgo small{display:none!important}
html .s-route .db.drvgo img,html .s-route .db.drvgo .ic{width:22px!important;height:22px!important}
html #dlRet{padding:7px 12px!important}
html #dlRet .ric{width:24px!important;height:24px!important;flex:0 0 24px}
html #dlPlan{display:none!important}
html #dlAct .bnr{display:none!important}
html #dlAct{display:flex!important;flex-wrap:wrap;gap:6px}html #dlAct>.db.drive{flex:1 1 100%}html #dlAct .r{display:contents!important}html #dlAct .r .db{flex:1 1 22%;min-width:0;margin:0!important;white-space:normal}
html #dlAct .r .db{font-size:12px!important;padding:7px 4px!important;line-height:1.15}
html #dlAct>.db.drive{font-size:13px!important}
html #dlCur,html #dlSeq{display:none!important}
html .s-route{padding:8px 10px!important;margin-bottom:8px!important}
html #dlShopNote{font-size:11px!important;margin:2px 0 4px!important}
.tdm{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.tdm i{font:800 10px/1 var(--font);font-style:normal;padding:4px 7px;border-radius:99px;letter-spacing:.2px}
.tdm .mo{background:#dbeafe;color:#1e40af}.tdm .md{background:#ede9fe;color:#5b21b6}.tdm .mp{background:#dcfce7;color:#166534}.tdm .mu{background:#fee2e2;color:#991b1b}.tdm .mm.cash{background:#fef3c7;color:#92400e}.tdm .mm.card{background:#e0e7ff;color:#3730a3}
html.wl-dark .tdm .mo{background:rgba(59,130,246,.3);color:#dbeafe}html.wl-dark .tdm .md{background:rgba(139,92,246,.32);color:#ede9fe}html.wl-dark .tdm .mp{background:rgba(34,197,94,.3);color:#dcfce7}html.wl-dark .tdm .mu{background:rgba(239,68,68,.35);color:#fee2e2}html.wl-dark .tdm .mm.cash{background:rgba(245,158,11,.32);color:#fef3c7}html.wl-dark .tdm .mm.card{background:rgba(99,102,241,.35);color:#e0e7ff}
html:not(#z)[data-icons=plates] #wlpv .tile[data-wa]{background-image:var(--wa-plate)!important;background-color:transparent!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:30px!important}

/* V136 SPEED: dozens of live background-blur layers (every row, button, input) made scrolling heavy on a phone. Blur stays only on the few big, single surfaces (bar, clock, pop-ups). */
html.wl :is(section,.si,.kv,.erow,.jc,.bzb,.lvc,.lk,.dpop,#dlTools,.tabs2 button,.chip,.seg,input,select,textarea,.cc-hero,.cc-res,.step button,.chg-q button,.ech,.gpc,.pchip button,.tile,.thm,.chg,.cashtile),
html.lk-glass :is(.tile,.cc-hero,.chg,.si,.cashtile,.thm),html.fx-glass :is(section,.tile,.jc),
html.wl #dl,html.wl #hubBox,html.wl #dev{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.wl #dl,html.wl #hubBox,html.wl #dev{background-color:color-mix(in srgb,var(--bg,#f4f5f9) 95%,transparent)}
html.wl :is(section,.si,.kv,.erow,.jc,.lk,.cc-hero,.cc-res,.chg){background-color:color-mix(in srgb,var(--card) 86%,transparent)}
#wallbg{will-change:auto;transform:translateZ(0)}

/* V136: hour beads: 8 per row, big and easy to tap (6 to 16 hours were squeezed into tiny dots) */
html #hrs+.hbd,html .hbd{display:grid!important;grid-template-columns:repeat(8,1fr);gap:9px;justify-content:stretch;margin-top:8px}
html .hbd .hb{width:100%!important;height:auto!important;aspect-ratio:1/1;font-size:16px;font-weight:800;min-width:0}

.pnb{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px}.pnb .db{flex:1;padding:9px 6px!important;font-size:14px!important}.pnb span{font:700 13px var(--font);color:var(--mute);min-width:48px;text-align:center}.pnb .db:disabled{opacity:.35}

details.mrx{margin-top:14px;border-top:1px solid var(--line);padding-top:6px}
details.mrx>summary{cursor:pointer;font:800 15px var(--font);padding:10px 2px;list-style:none;color:var(--acc,#6d4be0)}
details.mrx>summary::-webkit-details-marker{display:none}
details.mrx>summary::after{content:" ▾"}details.mrx[open]>summary::after{content:" ▴"}
/* V136: readable hour beads and extra-time buttons that are not selected */
html #hbd .hb:not(.on),html #ext button:not(.on),html #ext .chip:not(.on){color:var(--ink,#1e1b3a)!important;text-shadow:none!important;background:rgba(255,255,255,.75)!important;border:1px solid rgba(80,70,140,.28)!important}
html #xcp .xc:not(.on){color:var(--ink,#1e1b3a)!important;text-shadow:none!important;background:rgba(255,255,255,.75)!important;border:1px solid rgba(80,70,140,.28)!important}
/* V138: Driving button in the bar = clear background, just the steering-wheel picture */


/* V138: all three bar buttons share ONE look, coloured by the chosen theme (--acc) */








/* V139: the three bar buttons look the same and follow the theme (accent colour) */




/* ===== V141: the LAYOUT never mirrors in right-to-left languages =====
   Buttons, the bottom bar, the top bar, the tiles and the button rows keep exactly the same places as in English
   (Back stays on the right, Driving on the left). Only the TEXT reads right-to-left, and the lists inside Settings. */
html[dir="rtl"] #ice-top,html[dir="rtl"] .btns,html[dir="rtl"] .pa,html[dir="rtl"] .tiles,html[dir="rtl"] .chpick,html[dir="rtl"] .sechh,html[dir="rtl"] .dc-b,html[dir="rtl"] .dcb,html[dir="rtl"] #home .tiles,html[dir="rtl"] .devt{direction:ltr}
html[dir="rtl"] #ice-top{flex-direction:row}

html[dir="rtl"] .btns button,html[dir="rtl"] .pa .btn,html[dir="rtl"] .chip,html[dir="rtl"] .tiles button,html[dir="rtl"] .tile .tt{unicode-bidi:plaintext;text-align:center}



/* ===== V141: the logo and the clock share ONE row on the main screens (less empty space on top) ===== */
html:not(#z) main#home,html:not(#z) #dev{padding-top:calc(env(safe-area-inset-top,0px) + 8px)!important}
html:not(#z) :is(#home,#dev) h1.lgh{margin:0 0 8px;min-height:60px;padding-right:128px;box-sizing:border-box}
html:not(#z) :is(#home,#dev) h1.lgh img.lgfull{height:64px;max-width:100%}
html.nd-on:not(#z) :is(#home,#dev) h1.lgh::after{top:0;left:48px}
html #dlAct:empty{display:none!important}

/* V141: mini screen (picture-in-picture) */
#pipmini{display:none}
html.ice-mini body>*:not(#pipmini):not(script){display:none!important}
html.ice-mini #pipmini{display:flex!important;position:fixed;inset:0;z-index:99999;flex-direction:column;justify-content:center;gap:2px;padding:6px 10px;background:#0f3d2e;color:#fff;font-family:-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}
#pipmini .pm-h{font-size:11px;font-weight:700;color:#8fe3c0;letter-spacing:.04em}
#pipmini .pm-s{font-size:16px;font-weight:800;line-height:1.15}
#pipmini .pm-c{font-size:22px;font-weight:800;color:#5eead4}
#pipmini .pm-p{font-size:12px;font-weight:700;color:#fcd34d}
#pipmini .pm-f{font-size:10px;color:#d1fae5}
#pipmini .pm-b{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}#pipmini .pm-b button{min-height:44px;border:0;border-radius:12px;background:#1f6f55;color:#fff;font-weight:800;font-size:14px}#pipmini .pm-b [data-a=done]{background:#16a34a}

/* V141: server screens (plans, sign-up, phone move) */
.srvov{position:fixed;inset:0;z-index:100000;background:rgba(8,12,24,.78);display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:max(16px,env(safe-area-inset-top)) 14px 24px}
.srvc{width:100%;max-width:440px;background:#fff;color:#111;border-radius:20px;padding:18px;margin:auto 0;display:flex;flex-direction:column;gap:10px;box-shadow:0 14px 50px rgba(0,0,0,.45)}
.srvc h2{margin:0;font-size:22px}.srvs{margin:0;font-size:14px;opacity:.8}.srvm{margin:0;min-height:18px;font-size:14px;font-weight:700;color:#16a34a}.srvm.bad{color:#dc2626}
.srvc input[type=text],.srvc input[type=email],.srvc input[type=password],.srvc input:not([type]){width:100%;padding:13px;border-radius:12px;border:1px solid rgba(128,128,128,.4);font-size:16px;background:transparent;color:inherit;box-sizing:border-box}
.srvt{display:flex;gap:8px;align-items:center;font-size:14px}
.srvp{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:12px;border-radius:14px;border:1px solid rgba(128,128,128,.35)}
.srvp.on{border-color:#16a34a;background:rgba(22,163,74,.1)}.srvpr{font-weight:800;font-size:18px}.srvpr small{font-size:11px;opacity:.7}
.srvp button,.srva{min-height:44px;padding:0 16px;border:0;border-radius:12px;background:#2563eb;color:#fff;font-weight:800;font-size:15px}.srvp button:disabled{opacity:.5}
.srva.alt{background:rgba(128,128,128,.25);color:inherit}.srvbig{font-size:38px;font-weight:900}.srvbig small{font-size:14px;font-weight:600;opacity:.7}
#lz_sign{margin-top:8px}
html[data-theme=dark] .srvc,html.dark .srvc{background:#161d33;color:#f3f4f6}
@media (prefers-color-scheme:dark){html:not([data-theme=light]) .srvc{background:#161d33;color:#f3f4f6}}
.srvt{justify-content:flex-start;text-align:left;color:inherit}.srvt input{width:auto!important;flex:none}
.svd .btns{display:flex;flex-wrap:wrap;gap:6px}.svd .btns .chip{flex:1 1 auto;white-space:nowrap}

/* ===== V142: full-width logo banner at the very top + one thin time/date line under it (no clock at the top right) ===== */
html:not(#z) #home h1.lgh{display:flex;justify-content:center;align-items:center;direction:ltr;padding:0!important;margin:0 -16px 0!important;min-height:0;height:84px;width:auto;
  background:linear-gradient(180deg,color-mix(in srgb,var(--acc,#d4a64a) 14%,transparent),transparent);border-bottom:1px solid color-mix(in srgb,var(--acc,#d4a64a) 30%,transparent)}
html:not(#z) #home h1.lgh img.lgfull{height:78px;width:auto;max-width:92%;filter:drop-shadow(0 0 3px rgba(255,255,255,.55)) drop-shadow(0 2px 5px rgba(0,0,0,.4))}
html:not(#z) #home .ice-strip{direction:ltr;display:flex;justify-content:center;align-items:baseline;gap:10px;margin:0 0 8px;padding:2px 0;font:600 12px/1.2 var(--font);color:var(--mute);letter-spacing:.02em}
html:not(#z) .ice-strip .st{font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
html:not(#z) .ice-strip .sd{font-style:normal}
html.nd-on:not(#z) #home h1.lgh::after{left:calc(50% - 130px);top:6px}
html:not(#z) #home .ice-strip{width:max-content;max-width:94%;margin:6px auto 8px;padding:3px 14px;border-radius:12px;background:color-mix(in srgb,var(--card,#fff) 82%,transparent);border:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html:not(#z) .ice-strip,html:not(#z) .ice-strip .st{color:var(--ink)}

/* V142b: the logo fills the whole width, edge to edge */
html:not(#z) #home h1.lgh{height:auto!important;margin:0 -14px 0!important;padding:0!important;display:block}
html:not(#z) #home h1.lgh img.lgfull{width:100%!important;max-width:none!important;height:auto!important;display:block}
html.nd-on:not(#z) #home h1.lgh::after{left:calc(50% - 150px);top:20px}

/* V142c: the big banner + time line are for the MAIN screen only; Driving keeps the small logo */
html:not(#z) #dev h1.lgh{display:flex!important;justify-content:flex-start;height:auto!important;min-height:60px;margin:0 0 8px!important;padding:0!important;background:none!important;border:0!important}
html:not(#z) #dev h1.lgh img.lgfull{width:auto!important;height:64px!important;max-width:100%!important;filter:drop-shadow(0 3px 6px rgba(0,0,0,.35))}
html:not(#z) #dev .ice-strip{display:none!important}

/* other screens (Driving etc.): the small logo as before, no banner, no time line */
html:not(#z) #dev h1.lgh{padding-right:0!important;margin:0 0 8px;min-height:60px;height:auto;display:flex;justify-content:flex-start}
html:not(#z) #dev h1.lgh img.lgfull{height:64px;max-width:100%}
/* V142d: Driving Mode is clean: nothing of the main screen (logo, time line{visibility:hidden!important}
