/* Poruch — extras.css: install/notification nudges, near-me, map, availability, order-now. */

/* nudges (floating card above the tab bar) */
.nudge{position:fixed;left:12px;right:12px;bottom:calc(var(--tabbar-h) + var(--sab) + 12px);z-index:50;max-width:536px;margin:0 auto;display:flex;gap:12px;align-items:flex-start;padding:14px 40px 14px 14px;background:var(--surface);border-radius:var(--radius);box-shadow:0 12px 40px -12px rgba(16,18,22,.35),0 1px 2px rgba(16,18,22,.06);animation:rise .3s ease}
.nudge p{margin:4px 0 10px;color:var(--muted);font-size:13px;line-height:1.4}
.nudge b{font-size:15px}
.nudge-ic{width:42px;height:42px;border-radius:13px;background:var(--brand-soft);color:var(--brand-strong);display:grid;place-items:center;flex:0 0 auto}
.nudge-ic svg{width:22px;height:22px}
.nudge-logo{width:44px;height:44px;border-radius:12px;flex:0 0 auto}
.nudge-acts{display:flex;gap:8px;flex-wrap:wrap}
.nudge-acts .btn{width:auto;padding:0 14px}
.nudge-x{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:22px;line-height:28px;padding:0}

/* near me + list/map switch */
.near-bar{display:flex;align-items:center;gap:10px;margin:12px 0 0}
.chip-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-weight:700;font-size:13px}
.chip-btn svg{width:16px;height:16px;color:var(--brand-strong)}
.chip-btn.on{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.chip-btn.on svg{color:var(--brand-ink)}
.seg-mini{margin-left:auto;display:flex;background:var(--surface-2);border-radius:10px;padding:3px}
.seg-mini button{border:0;background:transparent;font:inherit;font-weight:700;font-size:12.5px;color:var(--muted);padding:6px 12px;border-radius:8px}
.seg-mini button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(16,18,22,.08)}
.dist{font-weight:700;color:var(--text);font-size:12px}
.online-dot{width:9px;height:9px;border-radius:50%;background:var(--online);box-shadow:0 0 0 2px var(--surface);display:inline-block;flex:0 0 auto}
.ava-wrap{position:relative;display:inline-flex;flex:0 0 auto;align-self:center}
.online-dot.on-ava{position:absolute;right:1px;bottom:1px;width:12px;height:12px;box-shadow:0 0 0 2.5px var(--surface)}

/* map */
.map-box{height:calc(100dvh - 300px);min-height:320px;border-radius:var(--radius);overflow:hidden;background:var(--surface-2);box-shadow:var(--shadow);position:relative;z-index:0}
.map-load{display:grid;place-items:center;height:100%;color:var(--muted);font-weight:600}
.pin{border-radius:50%;background:var(--surface);border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.25);overflow:hidden;display:grid;place-items:center}
.pin img{width:100%;height:100%;object-fit:cover}
.pin span{font-weight:800;font-size:13px;color:var(--brand-ink);background:var(--brand-soft);width:100%;height:100%;display:grid;place-items:center}
.pin.on{border-color:var(--online)}
.pop{font:13px/1.4 var(--font)}
.pop a{color:var(--brand-strong);font-weight:700;text-decoration:none}
.leaflet-container{font-family:var(--font)}
.pulse-area{animation:pulse 2.4s ease-out infinite;transform-origin:center;transform-box:fill-box}
@keyframes pulse{0%{opacity:.9}70%{opacity:.25}100%{opacity:.9}}

/* executor availability */
.avail{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 14px}
.avail.on{background:#E9F8EF}
[data-theme="dark"] .avail.on{background:#12281B}

/* order now */
.now-info{padding:14px 16px;margin-bottom:12px}
.now-info p{margin:4px 0 0}
.hold{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;margin:10px 0 14px;border-radius:14px;background:var(--brand-soft);line-height:1.35}
.hold-ic{width:30px;height:30px;border-radius:10px;background:var(--brand);color:var(--brand-ink);display:grid;place-items:center;flex:0 0 auto}
.hold-ic svg{width:16px;height:16px}
.search-map{height:calc(100dvh - 380px);min-height:260px;margin:-4px 0 12px}
.search-card{padding:16px}
.search-card .hold{margin:12px 0 0}
.spinner{width:20px;height:20px;border-radius:50%;border:3px solid var(--brand-soft);border-top-color:var(--brand-strong);animation:spin .9s linear infinite;flex:0 0 auto}
@keyframes spin{to{transform:rotate(360deg)}}
.resp{display:flex;align-items:center;gap:12px;padding:10px 12px;margin-bottom:8px;border-radius:14px;background:#E9F8EF}
.resp .btn{width:auto;padding:0 14px}
@media (prefers-reduced-motion:reduce){.nudge{animation:none}.spinner{animation:none}.pulse-area{animation:none}}

/* feed: day strip (swipe), sections by date, filters */
.feed-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 10px}
.chip-btn .fc:not(:empty){background:var(--brand-ink);color:var(--brand);border-radius:999px;font-size:11px;min-width:18px;height:18px;line-height:18px;text-align:center;padding:0 5px}
.day-strip{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:2px 2px 10px;margin:0 -2px 4px;scrollbar-width:none}
.day-strip::-webkit-scrollbar{display:none}
.ds{flex:0 0 auto;min-width:52px;height:60px;border-radius:14px;border:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:inherit;color:var(--text);scroll-snap-align:start;position:relative;padding:0 10px;cursor:pointer}
.ds-w{font-size:11.5px;font-weight:700;color:var(--muted);text-transform:capitalize}
.ds-d{font-size:17px;font-weight:800}
.ds-w,.ds-d{line-height:1.15}
/* one-line chips (Усі, Будь-коли) sit in the middle, not on the number baseline */
.ds.solo{padding:0 14px}
.ds.solo .ds-d{font-size:15px}
.ds-cal{display:flex;align-items:center;justify-content:center;height:20px;color:var(--brand-strong)}
.ds-cal svg{width:19px;height:19px}
.ds.on .ds-cal{color:var(--brand-ink)}
.ds-n{position:absolute;top:-5px;right:-4px;min-width:18px;height:18px;border-radius:9px;background:var(--brand-strong);color:#fff;font-size:10.5px;font-weight:800;line-height:18px;padding:0 5px;border:2px solid var(--bg)}
.ds.on{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.ds.on .ds-w{color:var(--brand-ink)}
.day-strip.compact .ds{height:54px;min-width:56px}
.date-any{position:relative;overflow:hidden}
.date-any input{position:absolute;inset:0;opacity:0;cursor:pointer}
.date-any::after{content:none}
.feed-sec{display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:13.5px;margin:14px 2px 8px;color:var(--text)}
.feed-sec:first-child{margin-top:4px}

/* chat: read receipts + unread divider */
.chat-screen .bubble .tk.read{color:#1d6fd6;opacity:1;font-weight:800;letter-spacing:-3px;padding-right:3px}
.chat-row .tick.read{color:#1d6fd6;letter-spacing:-3px;padding-right:3px}
.unread-sep{display:flex;align-items:center;gap:10px;margin:12px 0 6px;color:var(--brand-strong);font-size:12px;font-weight:800}
.unread-sep::before,.unread-sep::after{content:'';flex:1;height:1px;background:var(--brand)}

/* brand logo on the welcome screen */
.onb-logo{width:132px;height:132px;margin:0 auto 8px;display:block;animation:float 4s ease-in-out infinite}
@keyframes float{50%{transform:translateY(-6px)}}
@media (prefers-reduced-motion:reduce){.onb-logo{animation:none}}

/* chats | notifications switch */
.chat-seg{margin:0 0 12px}
.chat-seg button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.seg-n{min-width:18px;height:18px;border-radius:9px;background:var(--brand-strong);color:#fff;font-size:10.5px;font-weight:800;line-height:18px;padding:0 5px}
.seg-n[hidden]{display:none}
/* notifications page */
.nf-filters{display:flex;gap:8px;margin:0 0 10px;overflow-x:auto;scrollbar-width:none}
.nf-filters::-webkit-scrollbar{display:none}
.nf-list{padding:0}
.nf-row{display:flex;gap:12px;align-items:flex-start;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;font:inherit;color:var(--text);position:relative;cursor:pointer}
.nf-row:last-child{border-bottom:0}
.nf-row .grow{min-width:0;display:flex;flex-direction:column;gap:2px}
.nf-row.read{opacity:.62}
.nf-row.active .strong{font-weight:800}
.nf-body{color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nf-kind{margin-top:2px}
.nf-missed{color:#c2410c;font-weight:700}
.nf-dot{position:absolute;right:12px;bottom:14px;width:9px;height:9px;border-radius:50%;background:var(--brand-strong)}
.nf-ic{flex:0 0 44px;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--brand-soft);color:var(--brand-strong)}
.nf-ic svg{width:22px;height:22px}
.nf-ic.k-order{background:#fff1e6;color:#c2410c}
.nf-ic.k-verify{background:#e3f6ec;color:#1d7a4c}
.nf-ic.k-news{background:#e8f0fe;color:#1d6fd6}
/* verification documents */
.doc-slot{display:flex;align-items:center;gap:12px;padding:14px;margin:0 0 10px;border:1.5px dashed var(--line);cursor:pointer}
.doc-slot .ds-ic{color:var(--brand-strong)}
.doc-slot.done{border-style:solid;border-color:var(--brand)}
.doc-slot.busy{opacity:.6;pointer-events:none}
[data-dtype] .dt-ck{opacity:0;color:var(--brand-strong)}
[data-dtype].on .dt-ck{opacity:1}
.info-note{padding:12px 14px;margin:0 0 6px;background:var(--brand-soft)}
.progress{height:8px;border-radius:999px;background:var(--line);overflow:hidden;margin-top:14px}
.progress span{display:block;height:100%;background:var(--brand-strong);width:0;transition:width .2s}
.progress[hidden]{display:none}

/* ---- direct orders (extras-d.js) ---- */
.deal-list{display:flex;flex-direction:column;gap:12px}
.deal-card{padding:14px 14px 12px;margin:0}
.deal-card.attn,.deal-bar.attn{box-shadow:inset 0 0 0 2px var(--brand)}
.dc-title{font-size:15.5px;line-height:1.3;word-break:break-word;min-width:0}
.dc-meta{margin-top:4px}
.dc-desc{margin:8px 0 0;color:var(--text);white-space:pre-wrap;word-break:break-word;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dc-who{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:4px 12px 4px 4px;border:0;border-radius:999px;background:var(--surface-2);color:var(--text);font:inherit;max-width:100%;min-width:0}
.dc-who .ava{flex:0 0 auto}
.dc-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;flex-wrap:wrap}
.dc-act{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.dc-act .btn,.db-act .btn{width:auto;white-space:nowrap}
.dc-act .btn svg,.db-act .btn svg{width:16px;height:16px;margin-right:4px}
.status-pill.off{background:#f1f2f4;color:var(--muted)}
.deal-bar{margin:8px 10px 0;padding:10px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--line);flex:0 0 auto}
#ex-deal .deal-bar{margin:0 0 18px}
#ex-deal:empty{display:none}
.deal-bar .db-top{display:flex;align-items:center;gap:10px;min-width:0}
.deal-bar .db-ic{width:36px;height:36px;border-radius:11px;background:var(--brand-soft);color:var(--brand-strong);display:grid;place-items:center;flex:0 0 auto}
.deal-bar .db-ic svg{width:19px;height:19px}
.deal-bar .grow{min-width:0;display:flex;flex-direction:column;gap:2px}
.deal-bar .db-title{font-size:14.5px}
.deal-bar .db-st{font-weight:700}
.db-st.new{color:#8a5a00}.db-st.work{color:#2556b8}.db-st.done{color:#1d7a4c}.db-st.off{color:var(--muted)}
.deal-bar .db-more{display:inline-flex;align-items:center;gap:2px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:700;padding:6px 2px;flex:0 0 auto}
.deal-bar .db-more svg{width:16px;height:16px}
.deal-bar .db-act{display:flex;gap:8px;margin-top:10px}
.deal-bar .db-act:empty{display:none}
.deal-bar .db-act .btn{flex:1}
.deal-bar.cta{display:flex;align-items:center;gap:8px;background:var(--brand-soft);border-color:transparent;padding:6px 6px 6px 12px}
.deal-bar.cta .db-main{flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--text);font:inherit;font-weight:600;font-size:14px;text-align:left;padding:6px 0}
.deal-bar.cta .db-main svg{width:18px;height:18px;color:var(--brand-strong);flex:0 0 auto}
.deal-bar.cta .btn{flex:0 0 auto}
.btn-row [data-order] svg{width:18px;height:18px;margin-right:6px}
button.mrow{width:100%;border:0;background:transparent;font:inherit;color:var(--text);text-align:left}
.mrow .mr-cta{font-size:13px;font-weight:700;color:var(--brand-strong);flex:0 0 auto}
.mrow .chev{color:var(--muted-2);display:grid;flex:0 0 auto}
.od-head{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;margin:0 0 16px;border:0;font:inherit;color:var(--text);text-align:left}
.od-head>svg{width:18px;height:18px;color:var(--muted-2);flex:0 0 auto}
.od-chips{display:flex;flex-wrap:wrap;gap:8px}
.od-chips .chip-btn.on{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.od-note{margin:2px 4px 14px;line-height:1.45}
.jobs-cta .seg-n{vertical-align:2px}

/* ---- maps, responses, alerts (extras-e.js) ---- */
.pin:not(.on){border-color:#fff;opacity:.92}
.map-legend{display:flex;gap:16px;justify-content:center;margin:8px 0 0;font-size:12px;color:var(--muted);font-weight:600}
.map-legend .lg{display:inline-block;width:12px;height:12px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line);background:var(--brand-soft);vertical-align:-2px;margin-right:6px}
.map-legend .lg.on{box-shadow:0 0 0 2px var(--online)}
.ord-bar{margin:0 0 10px}
.opin{display:flex!important;align-items:flex-end;justify-content:center}
.opin span{display:inline-block;max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 9px;border-radius:999px;background:var(--brand);color:var(--brand-ink);font:800 12px/1 var(--font);box-shadow:0 4px 12px rgba(0,0,0,.25);border:2px solid #fff;position:relative}
.opin span::after{content:"";position:absolute;left:50%;bottom:-6px;margin-left:-5px;border:5px solid transparent;border-top-color:#fff;border-bottom:0}
.opin.now span{background:#FF7A45;color:#fff}
.opin.mine span{background:#E9EBEF;color:var(--muted)}
.opin.done span{background:#E3F6EC;color:#1d7a4c}
.pop-btn{margin-top:8px;border:0;border-radius:999px;background:var(--brand);color:var(--brand-ink);font:800 12.5px/1 var(--font);padding:8px 14px;cursor:pointer}
.pop-btn.done{background:#E3F6EC;color:#1d7a4c}
.alert-cta{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 14px;margin:0 0 12px;background:var(--brand-soft)}
.alert-cta .cta-ic{font-size:18px}
.alert-cta .btn{width:auto;flex:0 0 auto}
.x-btn{border:0;background:transparent;color:var(--muted);font-size:20px;line-height:1;padding:4px 6px;flex:0 0 auto}
.rs-box{margin-top:12px;padding:10px 12px;border-radius:14px;background:var(--surface-2)}
.rs-h{font-size:12.5px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.02em;margin-bottom:6px}
.rs-row{display:flex;align-items:center;gap:8px;padding:6px 0}
.rs-row+.rs-row{border-top:1px solid var(--line)}
.rs-who{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;padding:0}
.rs-who .grow{display:flex;flex-direction:column;gap:1px}
.rs-row .btn{width:auto;flex:0 0 auto}
.btn-ic2{padding:0;width:36px;display:grid;place-items:center}
.btn-ic2 svg{width:18px;height:18px}
.deal-bar.pick{background:var(--brand-soft);border-color:transparent}
.deal-bar.pick .db-top .btn{width:auto;flex:0 0 auto}
.deal-bar.pick .db-more-row{margin-top:8px;padding-top:8px;border-top:1px solid rgba(0,0,0,.06)}
.alert-main{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 16px}
#alert-body.dim{opacity:.45;pointer-events:none}
.wa-card{display:flex;align-items:center;gap:10px;padding:12px 14px;margin:0}
.wa-card .wa-ic{color:var(--brand-strong);display:grid}
.wa-card .wa-ic svg{width:20px;height:20px}
.ok-mark{color:var(--online);display:grid}
.ok-mark svg{width:20px;height:20px}
.alert-row{display:block;width:100%;border:0;font:inherit;color:var(--text);text-align:left;padding:0}
.alert-row .mrow{display:flex;align-items:center;gap:12px}
