/* Kurir — mobile super-app look: white cards on a soft grey canvas, one orange
   primary action per screen, bottom tab bar, big touch targets. */
:root{
  --bg:#f4f5f7; --card:#fff; --line:#ebedf0; --txt:#14161a; --dim:#8a8f99;
  --accent:#ff6a00; --accent2:#1677ff; --warn:#fa8c16; --danger:#f5222d; --okc:#00b578;
  --walk:#f0883e; --bike:#1677ff; --motor:#00b578; --car:#9254de;
  --ev:#13c2c2; --minivan:#faad14; --pickup:#ff7a45; --truck:#722ed1; --moving:#eb2f96;
  --r:16px; --tabh:62px; --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:var(--txt); background:#e7eaee;
  display:flex; align-items:center; justify-content:center;
  min-height:100dvh; overflow:hidden; overscroll-behavior:none;
  -webkit-text-size-adjust:100%; -webkit-tap-highlight-color:transparent;
}
.hidden{display:none!important}
button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
h2{margin:0;font-size:16px;font-weight:700}
h3{margin:0;font-size:12px;color:var(--dim);font-weight:600;letter-spacing:.3px}
.strong{font-weight:700;font-size:13.5px}
.dim{color:var(--dim);font-size:11.5px}

#phone{
  position:relative; display:flex; flex-direction:column;
  width:100%; height:100dvh; max-width:430px; background:var(--bg); overflow:hidden;
}
@media (min-width:480px) and (min-height:640px){
  #phone{height:min(94dvh,920px); border-radius:30px; box-shadow:0 24px 60px rgba(16,24,40,.18)}
}

/* app bar */
.appbar{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:calc(9px + env(safe-area-inset-top)) 14px 9px;
  background:var(--card); border-bottom:1px solid var(--line); z-index:1200; flex:0 0 auto;
}
.brand{display:flex;align-items:center;gap:9px;min-width:0}
.logo{font-size:22px;line-height:1}
.brand strong{display:block;font-size:16px;letter-spacing:-.2px}
.brand small{display:block;color:var(--dim);font-size:10.5px}
.status{display:flex;align-items:center;gap:5px;color:var(--dim);font-size:11px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.dot{width:7px;height:7px;border-radius:50%;background:var(--dim);display:inline-block}
.dot.on{background:var(--okc)}
.dot.off{background:var(--danger)}
.sep{opacity:.4}

main{flex:1;display:flex;flex-direction:column;min-height:0;position:relative}
#map{flex:0 0 var(--maph,66%);min-height:220px;background:#e6eaee;z-index:1}
@media (max-height:720px){#map{flex:0 0 var(--maph,60%);min-height:200px}}
@media (min-width:480px) and (min-height:640px){#map{flex:0 0 var(--maph,60%);min-height:240px}}

/* pegangan di batas peta/panel: geser untuk atur tinggi peta, ketuk untuk
   buka-tutup peta besar */
#maphandle{
  position:absolute;left:50%;top:0;transform:translateX(-50%);
  width:64px;height:24px;z-index:1300;display:flex;align-items:center;justify-content:center;
  border:1px solid #98a2b3;border-radius:12px;background:#fff;
  box-shadow:0 2px 10px rgba(16,24,40,.28);cursor:grab;touch-action:none;
  -webkit-tap-highlight-color:transparent;
}
#maphandle span{display:block;width:26px;height:3px;border-radius:2px;background:#5b6470;
  transition:background .15s}
#maphandle.on,#maphandle:active{cursor:grabbing}
#maphandle.on span{background:var(--accent)}
#maphandle.up span{background:var(--accent)}

/* the sheet: rounded top edge over the map, scrolls under a fixed tab bar */
#panel{
  position:relative; z-index:600; flex:1; min-height:0; overflow-y:auto;
  overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  background:var(--bg); border-radius:18px 18px 0 0; margin-top:-16px;
  padding:12px 12px calc(var(--tabh) + 16px + env(safe-area-inset-bottom));
  box-shadow:0 -8px 22px rgba(16,24,40,.07);
  display:flex; flex-direction:column; gap:10px;
}
#panel::-webkit-scrollbar{width:0}

.tab{display:none;flex-direction:column;gap:10px}
.tab.active{display:flex}
.hint{margin:0;color:var(--dim);font-size:11.5px;font-weight:400}
.hint.small{font-size:11px;line-height:1.5;opacity:.9}

/* cards */
.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  padding:13px; display:flex; flex-direction:column; gap:11px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.cardhead{display:flex;align-items:baseline;justify-content:space-between;gap:8px;
  font-size:13.5px;font-weight:700}
.cardhead .hint{font-weight:400;text-align:right}

/* progress: 1 jemput -> 2 antar -> 3 kurir */
.steps{display:flex;gap:6px;list-style:none;padding:0;margin:0}
.step{flex:1;display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:11px;
  background:var(--card);border:1px solid var(--line);color:var(--dim);font-size:11.5px}
.step b{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;
  border-radius:50%;background:#eef0f3;color:var(--dim);font-size:10.5px}
.step.active{border-color:var(--accent);color:var(--accent);font-weight:700}
.step.active b{background:var(--accent);color:#fff}
.step.done{color:var(--txt)}
.step.done b{background:var(--okc);color:#fff;font-size:0}
.step.done b::after{content:'✓';font-size:10.5px}

/* form rows */
.field{display:flex;flex-direction:column;gap:5px;min-width:0}
.field label{font-size:11px;color:var(--dim);font-weight:500;letter-spacing:.2px}
.field .row{display:flex;gap:7px}
input[type=text],input[type=tel],input[type=time],input:not([type]){
  width:100%;background:#f7f8fa;border:1px solid #e6e8eb;color:var(--txt);
  border-radius:11px;padding:11px 12px;font:inherit;font-size:15px;min-width:0;
}
input[type=readonly]{color:#5b6470}
input::placeholder{color:#a9afb8}
input:focus{outline:none;border-color:var(--accent);background:#fff}
.mini{background:#f7f8fa;border:1px solid #e6e8eb;color:#5b6470;border-radius:11px;
  padding:0 13px;font-size:15px}

/* service tiles: icon on top, label under, three per row */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pill{
  background:#f7f8fa;border:1.5px solid #eceef1;color:#4b535e;border-radius:13px;
  padding:9px 6px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:5px;
  transition:background .12s,border-color .12s,color .12s;min-height:0;
}
.pill:hover{border-color:#d9dde2;color:var(--txt)}
.pill.active{background:#fff5ec;border-color:var(--accent);color:var(--accent);font-weight:700}
.tiles .pill{flex-direction:column;gap:3px;padding:10px 4px;font-size:11.5px;line-height:1.2}
.tiles .pill .ic{font-size:20px;line-height:1}
.tiles .pill .lb{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tiles .pill .meta{font-size:9.5px;color:var(--dim);font-weight:500}
.tiles .pill.active .meta{color:#c96a2a}

/* primary action */
button.primary{
  background:linear-gradient(135deg,#ff8f1f,#ff5f00);color:#fff;border:none;border-radius:14px;
  padding:13px 16px;font-size:15px;font-weight:700;
  box-shadow:0 6px 16px rgba(255,106,0,.26);transition:.15s;
}
button.primary:hover{filter:brightness(1.04)}
button.primary:disabled{background:#eceef1;color:#aeb4bd;box-shadow:none;cursor:not-allowed}
button.cta{width:100%;border-radius:26px;padding:15px 18px;font-size:15.5px}
button.ghost{background:#f7f8fa;border:1px solid #e6e8eb;color:var(--txt);
  border-radius:11px;padding:11px 13px;font-weight:600}
button.danger{background:#fff1f0;border:1px solid #ffccc7;color:var(--danger);
  border-radius:11px;padding:11px 13px;font-weight:600}
#goOnline.on{background:#fff1f0;color:var(--danger);border:1px solid #ffccc7;
  background-image:none;box-shadow:none}

/* fare preview */
.quote{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r);
  padding:12px 13px;display:flex;flex-direction:column;gap:7px;font-size:13px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.quote.empty{color:var(--dim);font-size:12.5px}
.quote .line{display:flex;justify-content:space-between;align-items:center;gap:10px}
.quote .line b{font-size:15px}
.quote .line:first-child{color:var(--dim);font-size:12px}
.quote .line:first-child b{font-size:12.5px;color:var(--txt)}
.tag{font-size:10.5px;padding:2px 7px;border-radius:999px;background:#f2f4f7;color:#6b7280;
  white-space:nowrap}
.tag.bad{background:#fff1f0;color:var(--danger)}
.tag.ok{background:#e8fff4;color:#00875a}
.bad{color:var(--danger)}

.jobstatus{font-size:12.5px;color:var(--dim);padding:0 3px}
.jobstatus.ok{color:#00875a}
.jobstatus.wait{color:#b45309}
.jrow{display:flex;justify-content:space-between;gap:8px;font-size:12.5px}

/* offers */
.offers{display:flex;flex-direction:column;gap:8px}
.offer{
  display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);padding:11px 12px;font-size:12px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.offer .who{font-weight:600;font-size:13.5px}
.offer .sub{color:var(--dim);font-size:11px}
.offer .right{text-align:right}
.offer .right b{font-size:14.5px;color:var(--accent)}
.offer .grow,.sub .grow{flex:1;min-width:0}
.badge{font-size:10px;padding:2px 7px;border-radius:999px;background:#f2f4f7;color:#6b7280}

.kv{display:flex;flex-direction:column;gap:7px;background:var(--card);
  border:1px solid var(--line);border-radius:var(--r);padding:12px 13px}
.kv div{display:flex;justify-content:space-between;font-size:12.5px}
.kv span{color:var(--dim)}
.kv b{font-weight:600;font-variant-numeric:tabular-nums}

.offercard{
  background:var(--card);border:1.5px solid var(--accent);border-radius:var(--r);
  padding:14px;display:flex;flex-direction:column;gap:11px;
  box-shadow:0 8px 22px rgba(255,106,0,.14);
}
.offercard .top{display:flex;justify-content:space-between;align-items:center}
.offercard .fare{font-size:24px;font-weight:800;color:var(--accent);letter-spacing:-.5px}
.offercard .timer{font-variant-numeric:tabular-nums;color:var(--warn);font-size:12.5px;font-weight:600}
.offercard .row{display:flex;gap:8px}
.offercard .row button{flex:1}
.myjob{border:1px solid var(--line);border-radius:var(--r);padding:13px;background:var(--card);
  display:flex;flex-direction:column;gap:10px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.myjob .head{display:flex;justify-content:space-between;font-weight:700;font-size:13.5px}
.myjob .steps{display:flex;flex-direction:column;gap:5px;font-size:12.5px;color:var(--dim)}
.myjob .steps .done{color:#00875a}
.myjob .actions{display:flex;gap:8px;flex-wrap:wrap}
.pickup{border-top:1px solid var(--line);padding-top:11px;display:flex;flex-direction:column;gap:7px}
.pickup label{font-size:11px;color:var(--dim)}
.preview{font-size:11px;color:var(--dim)}

/* pickup code */
.codebox{margin-top:4px;padding:12px;border-radius:13px;background:#f7f8fa;
  border:1px dashed var(--accent);text-align:center}
.codebox .code{font:700 30px/1.2 var(--mono);letter-spacing:.32em;color:var(--accent);margin:6px 0 4px}
.codebox .mini{min-height:32px}

/* chat */
.chat{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:9px}
.chatlog{
  display:flex;flex-direction:column;gap:6px;min-height:56px;max-height:210px;overflow-y:auto;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:10px;
}
.msg{font-size:12.5px;padding:7px 11px;border-radius:13px;max-width:85%;background:#f2f4f7;color:var(--txt)}
.msg.me{align-self:flex-end;background:#fff2e6;color:#8a3b00}
.msg .who{display:block;font-size:10px;color:var(--dim);margin-bottom:2px;opacity:.8}
.msg img{max-width:100%;max-height:180px;object-fit:contain;border-radius:9px;margin-top:6px;display:block}
.msg.pending{opacity:.55}
.chatform{display:flex;gap:7px}
.chatform input{border-radius:22px;padding:11px 14px}
.chatform button{background:var(--accent);border:none;color:#fff;border-radius:22px;
  min-height:44px;min-width:52px;font-weight:700;font-size:16px}
.upload{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;
  color:var(--dim);border:1px dashed #d6dae0;border-radius:12px;padding:10px;
  cursor:pointer;background:var(--card)}
.upload:hover{border-color:var(--accent2);color:var(--txt)}

/* courier identity */
.courierhead{display:flex;align-items:center;gap:11px}
.courierhead .strong{font-size:15px}
.courierhead .sub{font-size:11.5px;color:var(--dim)}
.courierhead .on{color:#00875a;font-weight:600}

/* switch row */
.row-switch{display:flex;align-items:center;gap:11px;width:100%;background:none;border:none;
  padding:2px;text-align:left;color:var(--txt)}
.rsw-ic{width:34px;height:34px;border-radius:10px;background:#fff3e6;color:var(--accent);
  display:inline-flex;align-items:center;justify-content:center;font-size:16px;flex:0 0 auto}
.rsw-txt{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.rsw-txt b{font-size:13.5px;font-weight:600}
.rsw-txt small{color:var(--dim);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.switch{width:44px;height:26px;border-radius:999px;background:#e3e6ea;position:relative;
  flex:0 0 auto;transition:background .15s}
.switch::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(16,24,40,.25);transition:transform .15s}
.row-switch.on .switch{background:var(--accent)}
.row-switch.on .switch::after{transform:translateX(18px)}
.row-switch.on .rsw-ic{background:var(--accent);color:#fff}

.subbody{margin-top:5px;display:flex;flex-direction:column;gap:9px;border-top:1px solid var(--line);
  padding-top:11px}
.subbody[hidden]{display:none}

/* schedule picker */
.subline{font-size:10.5px;text-transform:uppercase;letter-spacing:.5px;color:var(--dim);font-weight:600}
.daypills{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.daypills .pill{padding:8px 0;font-size:11px;border-radius:10px}
.courierchips{display:flex;gap:7px;overflow-x:auto;padding-bottom:2px}
.courierchips .pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 5px;
  border-radius:999px;white-space:nowrap;flex:0 0 auto}
.subsummary{display:flex;flex-direction:column;gap:2px;padding:10px 11px;border-radius:12px;
  background:#f7f8fa;border:1px dashed #dfe3e8;font-size:12px;color:var(--dim)}
.subsummary b{color:var(--txt);font-size:12.5px}
.subsummary.ok{background:#f0fff7;border:1px solid #b7ebd2}
.subs{display:flex;flex-direction:column;gap:7px}
.sub{display:flex;align-items:center;gap:9px;background:#fafbfc;border:1px solid var(--line);
  border-radius:13px;padding:9px 10px}
.sub .strong{font-size:13px}
.sub .sub{font-size:11px;color:var(--dim)}
.sub .right{display:flex;align-items:center;gap:6px}

/* avatars */
.avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:var(--sz,34px);height:var(--sz,34px);border-radius:50%;
  background:color-mix(in srgb, var(--c,#8a8f99) 14%, #fff);
  border:1.5px solid color-mix(in srgb, var(--c,#8a8f99) 50%, #fff);
  color:color-mix(in srgb, var(--c,#8a8f99) 65%, #14161a);
  font-weight:800;font-size:calc(var(--sz,34px) * .36);letter-spacing:.3px;line-height:1}
.avatar .badge{position:absolute;right:-3px;bottom:-3px;background:#fff;border:1px solid var(--line);
  border-radius:50%;width:calc(var(--sz,34px) * .52);height:calc(var(--sz,34px) * .52);
  display:flex;align-items:center;justify-content:center;font-size:calc(var(--sz,34px) * .32)}
.avatar .ini{transform:translateY(-1px)}

/* courier markers + popups */
.courier-dot{border-radius:50%;border:2px solid #fff;box-shadow:0 2px 6px rgba(16,24,40,.28)}
.courier-dot.walk{background:var(--walk)}
.courier-dot.bike{background:var(--bike)}
.courier-dot.motor{background:var(--motor)}
.courier-dot.car{background:var(--car)}
.courier-dot.ev{background:var(--ev)}
.courier-dot.minivan{background:var(--minivan)}
.courier-dot.pickup{background:var(--pickup)}
.courier-dot.truck{background:var(--truck)}
.courier-dot.moving{background:var(--moving)}
.pulse{animation:pulse 1.6s ease-out infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,106,0,.5)}100%{box-shadow:0 0 0 14px rgba(255,106,0,0)}}

/* checkpoint acak di peta: hijau = sudah dilewati, oranye = titik berikutnya */
.ck-pin{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:700;line-height:1;color:#fff;background:#f0883e;
  border:2px solid #0d1117;box-shadow:0 1px 6px rgba(0,0,0,.45)}
.ck-pin.ok{background:#2ea043}
.ck-pin.next{animation:ckpulse 1.8s ease-out infinite}
@keyframes ckpulse{0%{box-shadow:0 0 0 0 rgba(240,136,62,.55)}70%,100%{box-shadow:0 0 0 8px rgba(240,136,62,0)}}
.leaflet-popup-content-wrapper{border-radius:14px;box-shadow:0 8px 24px rgba(16,24,40,.18)}
.leaflet-popup-content{margin:9px 12px}
.pop{display:flex;align-items:center;gap:9px}
.pop .who{font-weight:700;font-size:12.5px}
.pop .dim{font-size:11px;color:var(--dim)}

/* verification */
.cam{position:relative;border-radius:14px;overflow:hidden;background:#0b0f14;
  border:1px solid var(--line);aspect-ratio:1/1}
#faceCam{width:100%;height:100%;object-fit:cover;display:block}
.camshot{position:absolute;inset:0;background-size:cover;background-position:center}
.camshot img{width:100%;height:100%;object-fit:cover}
.camshot.hidden{display:none}
.camhint{position:absolute;left:0;right:0;bottom:0;padding:8px 10px;font-size:11.5px;
  background:linear-gradient(transparent,rgba(0,0,0,.7));color:#e2e8f0}
.cambadge{position:absolute;top:9px;left:9px;padding:4px 10px;border-radius:999px;
  background:var(--okc);color:#fff;font-size:11px;font-weight:700}
.cambadge.hidden{display:none}
.verify-grid{display:flex;gap:10px;align-items:stretch}
.shot{flex:0 0 42%;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;
  border:1px dashed #d6dae0;border-radius:13px;padding:10px;text-align:center;
  font-size:11px;color:var(--dim);background:#fafbfc}
.shot:active{border-color:var(--accent)}
.shot input[type=file]{display:none}
.shotimg{width:100%;aspect-ratio:1/1;border-radius:9px;overflow:hidden;display:flex;
  align-items:center;justify-content:center;background:#f2f4f7;font-size:28px;
  background-size:cover;background-position:center}
.shotimg img{width:100%;height:100%;object-fit:cover}
.shotinfo{flex:1;font-size:11px;color:var(--dim);padding:9px 11px;border:1px dashed #e2e5ea;
  border-radius:13px;background:#fafbfc;line-height:1.5}
.ktp-result{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fafbfc;
  display:flex;flex-direction:column;gap:5px;font-size:12px}
.ktp-result.ok{border-color:#b7ebd2;background:#f0fff7}
.ktp-result.bad{border-color:#ffe0b2;background:#fffaf0}
.ktp-result.hidden{display:none}
.ktp-result .jrow b{font-family:var(--mono);letter-spacing:.04em}
.verify-status{padding:10px 12px;border-radius:12px;font-size:12.5px;font-weight:600;
  border:1px solid var(--line);background:#fafbfc;color:#b45309}
.verify-status.ok{border-color:#b7ebd2;background:#f0fff7;color:#00875a}
.verify-status.bad{border-color:#ffe0b2;background:#fffaf0;color:#b45309}

/* map controls */
.mapctl{display:flex;gap:6px;margin:0 0 10px 10px}
.mapctl button{font:12px/1.2 var(--mono);padding:6px 9px;border-radius:9px;
  background:rgba(255,255,255,.94);color:#3b434d;border:1px solid var(--line);
  cursor:pointer;backdrop-filter:blur(4px);box-shadow:0 2px 6px rgba(16,24,40,.1)}
.mapctl button:hover{border-color:var(--accent2);color:#111}
.mapctl button.on{background:#e8f1ff;border-color:var(--accent2);color:#0b57d0;font-weight:700}
#mapOffline{position:absolute;left:10px;bottom:10px;z-index:600;font:11px/1 var(--mono);
  padding:6px 8px;border-radius:8px;background:#fff7e6;border:1px solid #ffd591;color:#ad6800}
.map-offline{display:flex;align-items:center;justify-content:center;height:100%;
  color:var(--dim);font-size:12px;background:#eef1f4}

/* toasts */
#toasts{position:absolute;left:14px;right:14px;bottom:calc(var(--tabh) + 16px);display:flex;
  flex-direction:column;align-items:stretch;gap:6px;pointer-events:none;z-index:3000}
.toast{background:rgba(20,22,26,.92);color:#fff;font-size:12.5px;padding:10px 14px;
  border-radius:14px;box-shadow:0 8px 20px rgba(16,24,40,.25);animation:in .18s ease-out}
.toast.err{background:rgba(190,20,26,.95)}
.toast.ok{background:rgba(0,133,90,.95)}
@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* bottom tab bar */
.tabbar{
  display:grid;grid-template-columns:repeat(3,1fr);align-items:center;gap:2px;
  height:var(--tabh);padding-bottom:env(safe-area-inset-bottom);
  background:#fff;border-top:1px solid var(--line);z-index:1500;flex:0 0 auto;
  position:relative;
}
.tabbar .pill{flex-direction:column;gap:2px;background:none;border:none;border-radius:0;
  padding:6px 4px;font-size:10.5px;color:var(--dim);font-weight:500;min-height:0}
.tabbar .pill .ic{font-size:19px;line-height:1;filter:grayscale(1);opacity:.62}
.tabbar .pill.active{background:none;border:none;color:var(--accent);font-weight:700}
.tabbar .pill.active .ic{filter:none;opacity:1}

.meta{margin-top:2px;padding:4px 3px 6px;border-top:1px solid var(--line);color:#a2a8b1;
  font-size:10.5px;display:flex;flex-direction:column;gap:3px}
@media (max-height:680px){
  #map{flex:0 0 var(--maph,56%);min-height:150px}
}

/* posisi terakhir kurir (sisi pelanggan): cincin putus-putus biru, bukan pin
   tegas — beda dari pin checkpoint dan dari titik kurir live */
.last-pin{width:26px;height:26px;border-radius:50%;border:2px dashed #1f6feb;
  background:rgba(31,111,235,.12);display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 4px rgba(16,24,40,.25)}
.last-pin span{width:8px;height:8px;border-radius:50%;background:#1f6feb}
.lastpos{display:flex;gap:8px;align-items:flex-start;margin:8px 0 2px;padding:8px 9px;
  border:1px solid rgba(31,111,235,.35);border-radius:10px;background:rgba(31,111,235,.06)}
.lastpos .ldot{flex:0 0 auto;width:10px;height:10px;margin-top:4px;border-radius:50%;
  background:#1f6feb;box-shadow:0 0 0 3px rgba(31,111,235,.18)}
.lastpos .strong{font-size:12px;font-weight:700}
.lastpos .dim{font-size:11px;color:#8b949e}
.lastpos.wait{border-color:var(--line);background:none}
.lastpos.wait .ldot{background:#8b949e;box-shadow:none}

/* svg icons: sit on the text baseline, inherit colour */
.i{display:inline-block;vertical-align:-.16em;flex:0 0 auto}
.tiles .pill .ic{font-size:0;line-height:0;color:inherit}
.tiles .pill .ic svg{width:22px;height:22px}
.tiles .pill.active .ic svg{stroke-width:2}
.tabbar .pill .ic{font-size:0;line-height:0}
.tabbar .pill .ic svg{width:21px;height:21px}
.rsw-ic svg{width:17px;height:17px}
.mini svg{vertical-align:-.2em}
.chatform button{font-size:0;line-height:0;display:flex;align-items:center;justify-content:center}
.chatform button svg{width:18px;height:18px}
.upload [data-icon]{display:inline-block;vertical-align:-.2em}
.shotimg svg{width:34px;height:34px;color:#b6bcc4}
.logo{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border-radius:10px;background:#fff3e6;color:var(--accent)}
.logo svg{width:21px;height:21px}
.avatar .badge svg{width:12px;height:12px;stroke-width:2.2}
.offers .who svg{color:var(--warn)}

/* a lone trailing tile reads better as one wide row */
.tiles .pill[data-mode="any"]{grid-column:1/-1;flex-direction:row;gap:7px;padding:11px 12px;
  justify-content:flex-start;font-size:12.5px}
.tiles .pill[data-mode="any"] .ic svg{width:18px;height:18px}
.tiles .pill[data-mode="any"] .lb{white-space:normal;text-align:left}
.tiles .pill[data-mode="any"] .meta{margin-left:auto;font-size:10.5px}

/* ---------- basemap vektor sendiri (basemap.js): label kabupaten, kota, panel rute ---------- */
.bm-kab{background:none;border:0}
.bm-kab span{display:block;text-align:center;font:600 9.5px/1 system-ui,sans-serif;
  letter-spacing:.14em;color:#8d9aab;text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 4px #fff;
  white-space:nowrap;transform:translateY(-6px);pointer-events:none}
.bm-city{background:none;border:0}
.bm-city i{display:block;width:10px;height:10px;border-radius:50%;background:#ff6a00;
  border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.bm-citylb{background:none;border:0}
.bm-citylb span{display:block;font:700 11px/1 system-ui,sans-serif;color:#1b2530;
  text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 4px #fff;white-space:nowrap;pointer-events:none}
#routePanel{position:absolute;right:8px;bottom:8px;z-index:600;width:186px;
  background:rgba(255,255,255,.97);border:1px solid #dde3ea;border-radius:10px;
  box-shadow:0 6px 18px rgba(20,30,45,.14);overflow:hidden;
  font:12px/1.25 system-ui,sans-serif;color:#1b2530}
#routePanel .rp-head{display:flex;align-items:center;gap:6px;width:100%;padding:7px 9px;
  background:#fff;border:0;cursor:pointer;font:600 11.5px/1 system-ui,sans-serif;color:#1b2530}
#routePanel .rp-head small{color:#8d9aab;font-weight:500;font-size:10px}
#routePanel .rp-head i{margin-left:auto;font-style:normal;color:#8d9aab;transition:transform .15s}
#routePanel:not(.collapsed) .rp-head i{transform:rotate(180deg)}
#routePanel .rp-list{list-style:none;margin:0;padding:0 0 4px;max-height:156px;overflow:auto}
#routePanel.collapsed .rp-list{display:none}
#routePanel .rp-list li{display:flex;align-items:center;gap:5px;padding:4px 9px;cursor:pointer}
#routePanel .rp-list li:hover{background:#f4f7fa}
#routePanel .rp-list li.on{background:#fff3e9}
#routePanel .rp-list li i{width:8px;height:8px;border-radius:2px;flex:0 0 8px}
#routePanel .rp-list li span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
#routePanel .rp-list li b{font-weight:600;font-size:11px}
#routePanel .rp-list li small{color:#8d9aab;font-size:10px;min-width:38px;text-align:right}
.bm-town{background:none;border:0}
.bm-town span{display:block;font:500 10px/1 system-ui,sans-serif;color:#5b6b7c;
  text-shadow:0 0 3px #fff,0 0 3px #fff;white-space:nowrap;pointer-events:none}

/* nama jalan: teks diputar mengikuti arah segmen, halo putih biar kebaca di
   atas fill kabupaten maupun garis jalan */
.bm-roadlb{background:none;border:0;overflow:visible}
.bm-roadlb span{display:inline-block;white-space:nowrap;pointer-events:none;
  font:500 9.5px/1 system-ui,-apple-system,sans-serif;color:#54677c;
  letter-spacing:.01em;text-shadow:0 0 2px #fff,0 0 2px #fff,0 0 3px #fff,0 0 3px #fff}
@media (max-width:480px){#routePanel{width:150px;bottom:6px;right:6px}}

/* label alamat di atas pin jemput/antar */
.leaflet-tooltip.pin-lb {
  background: #fff; border: 1px solid #d8e0e8; border-radius: 6px;
  box-shadow: 0 1px 3px rgba(16,24,40,.12); color: #1b2530;
  font: 600 10.5px/1.25 system-ui, sans-serif; padding: 3px 6px;
  max-width: 168px; white-space: normal; text-align: center;
}
.leaflet-tooltip.pin-lb::before { display: none; }

/* titik "posisi kamu" (customer) */
.me-dot {
  width: 14px; height: 14px; margin: 3px; border-radius: 50%;
  background: #1677ff; border: 2.5px solid #fff;
  box-shadow: 0 0 0 6px rgba(22,119,255,.18), 0 1px 4px rgba(16,24,40,.35);
}
.leaflet-tooltip.me-lb { background: #1677ff; color: #fff; border-color: #1677ff; }

/* daftar saran tempat di bawah input jemput/antar */
.hits {
  margin-top: 4px; border: 1px solid #dde3ea; border-radius: 8px; overflow: hidden;
  background: #fff; box-shadow: 0 6px 16px rgba(16,24,40,.08); max-height: 190px; overflow-y: auto;
}
.hits .hit {
  display: block; width: 100%; text-align: left; padding: 6px 9px; border: 0;
  background: none; border-bottom: 1px solid #f0f3f7; cursor: pointer;
}
.hits .hit:last-child { border-bottom: 0; }
.hits .hit:active, .hits .hit:hover { background: #f4f8ff; }
.hits .hit b { display: block; font: 600 11.5px/1.3 system-ui, sans-serif; color: #1b2530; }
.hits .hit small { display: block; font: 400 10px/1.3 system-ui, sans-serif; color: #77869a; }

/* ── form detail: alamat panjang, kategori, checkpoint ─────────────────── */
textarea.detail{
  width:100%;background:#f7f8fa;border:1px solid #e6e8eb;color:var(--txt);
  border-radius:11px;padding:9px 12px;font:inherit;font-size:14px;line-height:1.4;
  resize:none;min-height:38px;overflow:hidden;margin-top:6px;
}
textarea.detail:focus,input:focus{outline:2px solid #cfe3ff;outline-offset:0;border-color:#9dc7ff}
.row.tight{margin-top:6px;display:flex;gap:7px}
.row.tight input{flex:1;min-width:0}

.catpills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}
.cat{
  background:#f7f8fa;border:1px solid #e6e8eb;color:#5b6470;border-radius:999px;
  padding:7px 12px;font-size:12.5px;font-weight:600;line-height:1;
}
.cat.active{background:#fff3e6;border-color:#ffc999;color:#c25300}

.ck{border-top:1px dashed var(--line);margin-top:8px;padding-top:9px}
.ckhead{font-size:12px;font-weight:700;color:#5b6470;display:flex;gap:6px;align-items:baseline}
.cklist{display:flex;flex-direction:column;gap:6px;margin:7px 0}
.cklist:empty{display:none}
.ckitem{display:flex;align-items:center;gap:8px;background:#f7f8fa;border:1px solid #e6e8eb;
  border-radius:11px;padding:7px 9px;font-size:12.5px}
.ckitem .n{width:20px;height:20px;border-radius:50%;background:var(--accent2);color:#fff;
  font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.ckitem .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3d444d}
.ckitem .x{background:none;border:none;color:var(--dim);font-size:16px;padding:0 2px;line-height:1}
.mini.wide{width:100%;padding:9px 0;font-size:13px;font-weight:600;color:var(--accent2);
  border-style:dashed;border-color:#b9d6ff}
#ckHint.on{color:var(--accent2)}
.courier-ck{font-size:12px;color:#5b6470;display:flex;flex-direction:column;gap:3px}
.courier-ck b{color:var(--txt)}

/* ── landing (splash) ─────────────────────────────────────────────────── */
.landing{
  position:fixed;inset:0;z-index:2000;background:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;padding:26px 26px calc(26px + env(safe-area-inset-bottom));
  transition:opacity .38s ease, visibility .38s ease;
}
.landing.gone{opacity:0;visibility:hidden;pointer-events:none}
.landing > *{max-width:360px;width:100%}
.lg-art{max-height:42dvh;width:auto;overflow:visible}
.lg-title{margin:0;font-size:34px;letter-spacing:-.6px;text-align:center;font-weight:800}
.lg-sub{margin:0;text-align:center;color:var(--dim);font-size:13.5px}
.lg-note{margin:0;text-align:center;color:#a9aeb8;font-size:11px;line-height:1.4}
.landing .cta{margin-top:2px}

/* urutan animasi: jalan → gedung → rute → pin → paket */
.lg-road{stroke-dasharray:420;stroke-dashoffset:420;animation:lgdraw .7s ease forwards}
.lg-road:nth-child(1){animation-delay:.05s}
.lg-road:nth-child(2){animation-delay:.15s}
.lg-road:nth-child(3){animation-delay:.25s}
.lg-road:nth-child(4){animation-delay:.1s}
.lg-road:nth-child(5){animation-delay:.2s}
.lg-road:nth-child(6){animation-delay:.3s}
.lg-bld{transform-box:fill-box;transform-origin:50% 100%;
  animation:lgpop .5s cubic-bezier(.2,1.4,.4,1) both}
.lg-bld:nth-child(1){animation-delay:.5s}
.lg-bld:nth-child(2){animation-delay:.58s}
.lg-bld:nth-child(3){animation-delay:.66s}
.lg-bld:nth-child(4){animation-delay:.74s}
.lg-bld:nth-child(5){animation-delay:.62s}
.lg-bld:nth-child(6){animation-delay:.7s}
.lg-bld:nth-child(7){animation-delay:.78s}
.lg-route{stroke-dasharray:540;stroke-dashoffset:540;animation:lgdraw 1.5s .85s cubic-bezier(.4,0,.2,1) forwards}
.lg-dash{opacity:0;animation:lgfade .5s 2.2s forwards}
.lg-pin{opacity:0;animation:lgfade .35s forwards}
.lg-pin-a{animation-delay:2.15s}
.lg-pin-b{animation-delay:2.3s}
.lg-pin circle:first-child{transform-box:fill-box;transform-origin:center;
  animation:lgping 2.4s ease-out infinite}
.lg-pin-b circle:first-child{animation-delay:1.2s}
.lg-parcel{opacity:0;animation:lgfade .4s 2.1s forwards}
.lg-title,.lg-sub,.lg-note,.landing .cta{opacity:0;animation:lgup .55s .15s ease forwards}
.lg-sub{animation-delay:.28s}
.landing .cta{animation-delay:.42s}
.lg-note{animation-delay:.55s}

@keyframes lgdraw{to{stroke-dashoffset:0}}
@keyframes lgfade{to{opacity:1}}
@keyframes lgpop{from{opacity:0;transform:scaleY(.2)}to{opacity:1;transform:scaleY(1)}}
@keyframes lgping{0%{transform:scale(.6);opacity:.45}70%{transform:scale(1.9);opacity:0}100%{opacity:0}}
@keyframes lgup{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  .lg-road,.lg-route,.lg-dash,.lg-pin,.lg-parcel,
  .lg-title,.lg-sub,.lg-note,.landing .cta{animation:none!important;opacity:1!important;stroke-dashoffset:0!important}
  .lg-bld{animation:none!important;opacity:1!important;transform:none!important}
  .lg-pin circle:first-child{animation:none!important}
}

/* detail order (alamat, penerima, isi paket, checkpoint) */
.jinfo{border-top:1px dashed var(--line);margin-top:7px;padding-top:7px;
  display:flex;flex-direction:column;gap:5px}
.jinfo .jrow{align-items:flex-start;color:var(--dim)}
.jinfo .jrow > span{flex:0 0 auto;text-transform:none}
.jinfo .jrow > b{flex:1;min-width:0;font-weight:600;font-size:12px;color:#3d444d;
  text-align:right;white-space:pre-wrap;word-break:break-word;line-height:1.35}
.offercard .jinfo{border-top-color:#ffe0c2}

/* ---------- checkpoints + zero-knowledge face modal ---------- */
.cklist{border-top:1px dashed var(--line);margin-top:7px;padding-top:7px;display:flex;flex-direction:column;gap:4px}
.cklist .ckrow{font-size:12px;color:var(--dim);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cklist .ckrow.ok{color:var(--ok,#178a55);font-weight:600}
.cklist .ckrow .mini{margin-left:auto}

.zkm{position:fixed;inset:0;z-index:9999;background:rgba(12,16,22,.72);
  display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(3px)}
.zkcard{background:#fff;border-radius:18px;width:100%;max-width:380px;padding:14px;
  display:flex;flex-direction:column;gap:10px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.zkhead{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:14px}
.zkx{cursor:pointer;font-size:22px;line-height:1;color:var(--dim);padding:0 4px}
.zkcard video{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;background:#0d1117}
.zkhint{font-size:12px;color:var(--dim);text-align:center}
.zknote{font-size:11px;line-height:1.45;color:var(--dim);background:#f7f8fa;border-radius:11px;padding:8px 10px}
.zkrow{display:flex;gap:8px}
.zkrow button{flex:1;padding:11px 0;font-size:13px;border-radius:12px}

/* ---------- tour / panduan ---------- */
.tour-help{
  position:absolute; right:12px; bottom:calc(var(--tabh) + 12px);
  width:34px; height:34px; border-radius:50%;
  background:var(--card); color:var(--dim); border:1px solid var(--line);
  font:700 15px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  box-shadow:0 4px 14px rgba(16,24,40,.12); z-index:1600;
  display:flex; align-items:center; justify-content:center;
}
.tour-help:active{transform:scale(.94)}

.tour{
  position:absolute; left:0; right:0; bottom:0; z-index:2600;
  padding:0 12px calc(var(--tabh) + 10px + env(safe-area-inset-bottom));
  pointer-events:none;
}
.tour-card{
  pointer-events:auto; background:var(--card); border:1px solid var(--line);
  border-radius:var(--r); padding:13px 14px 12px;
  box-shadow:0 18px 44px rgba(16,24,40,.22);
  animation:tourIn .18s ease-out;
}
@keyframes tourIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tour-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.tour-count{font:600 11px/1 var(--mono);color:var(--dim);letter-spacing:.4px}
.tour-skip{
  background:none;border:none;color:var(--dim);font-size:12.5px;font-weight:600;
  padding:4px 6px;margin:-4px -6px -4px 0;text-decoration:underline;text-underline-offset:2px;
}
.tour-card h4{margin:0 0 4px;font-size:14.5px;font-weight:700}
.tour-card p{margin:0;font-size:12.8px;line-height:1.45;color:#4b5058}
.tour-dots{display:flex;gap:5px;margin:10px 0 11px}
.tour-dots i{width:6px;height:6px;border-radius:50%;background:#dfe3e8;transition:background .15s}
.tour-dots i.on{background:var(--accent);width:16px;border-radius:3px}
.tour-actions{display:flex;gap:8px}
.tour-actions button{flex:1;min-height:38px;border-radius:10px;font-size:13.5px;font-weight:600}
.tour-actions .ghost{background:#f2f4f7;border:1px solid var(--line);color:#3a3f47}
.tour-actions .ghost[disabled]{opacity:.45}
.tour-actions .primary{background:var(--accent);color:#fff;border:none}

/* elemen yang sedang dijelaskan */
.tour-spot{
  position:relative; z-index:2550;
  box-shadow:0 0 0 3px rgba(255,106,0,.55), 0 0 0 8px rgba(255,106,0,.16);
  border-radius:10px; animation:tourPulse 1.8s ease-in-out infinite;
}
@keyframes tourPulse{
  0%,100%{box-shadow:0 0 0 3px rgba(255,106,0,.55), 0 0 0 8px rgba(255,106,0,.16)}
  50%{box-shadow:0 0 0 3px rgba(255,106,0,.85), 0 0 0 12px rgba(255,106,0,.10)}
}
@media (prefers-reduced-motion:reduce){
  .tour-card{animation:none} .tour-spot{animation:none}
}

/* kalau target ada di paruh bawah layar, kartu pindah ke atas supaya tidak
   menutupi kolom yang sedang dijelaskan */
.tour.top{
  top:calc(56px + env(safe-area-inset-top)); bottom:auto;
  padding:0 12px;
}

/* ---------- kontak lawan transaksi ---------- */
.contact{
  margin:9px 0 2px; padding:9px 10px; border:1px solid var(--line);
  border-radius:10px; background:#fafbfc;
}
.contact .chead{font-size:13px;font-weight:700;margin-bottom:7px;line-height:1.3}
.contact .chead .dim{font-weight:500}
.contact .dim{font-size:12px;line-height:1.4}
.contact button.wa{
  width:100%; min-height:38px; margin-top:2px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:#25d366; color:#fff; border:none; border-radius:9px;
  font-size:13.5px; font-weight:700; letter-spacing:.1px;
}
.contact button.wa:active{filter:brightness(.94)}
.contact button.wa svg{flex:0 0 auto}

/* ---------- penilaian ---------- */
.rate-box{margin:10px 0 2px}
.rate-head{font-size:13px;font-weight:700;margin-bottom:6px}
.star-pick{display:flex;gap:6px;margin:2px 0 8px}
.star-pick button.star{
  background:none;border:none;padding:2px;line-height:0;color:#d7dbe0;cursor:pointer;
  transition:transform .08s ease, color .12s ease;
}
.star-pick button.star.on{color:#f5a623}
.star-pick button.star:active{transform:scale(1.15)}
.rate-comment{
  width:100%;min-height:36px;padding:8px 10px;border:1px solid var(--line);
  border-radius:9px;font-size:13px;margin-bottom:8px;background:#fff;
}
.rate-done{display:flex;align-items:center;gap:8px;font-size:13px}
.star{display:inline-flex;color:#d7dbe0;line-height:0}
.star.on{color:#f5a623}
.star-pick .star{display:inline-flex;color:#d7dbe0}
.rate-line{display:inline-flex;align-items:center;gap:5px}
.rate-line .star svg{width:15px;height:15px}

/* ---------- riwayat ---------- */
.hist{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.hist-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.hist-head h4{margin:0;font-size:14px}
.hist-sum{font-size:11.5px;color:var(--dim);text-align:right;line-height:1.3}
.hist-list{display:flex;flex-direction:column;gap:8px}
.hist-row{border:1px solid var(--line);border-radius:10px;padding:9px 10px;background:#fafbfc}
.hist-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
.hist-meta{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;color:var(--dim);margin-top:3px}
.hist-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:7px;font-size:12.5px}
.hist-rate{margin-top:8px;border-top:1px dashed var(--line);padding-top:8px}
.row-actions{display:flex;gap:8px;justify-content:flex-end}
.small-btn{padding:5px 11px;font-size:12px;min-height:30px;border-radius:8px;width:auto!important}
.badge{font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:999px;text-transform:lowercase}
.badge.ok{background:#e4f7e8;color:#1e7a37}
.badge.live{background:#fff2df;color:#a35d00}
.badge.idle{background:#eef1f4;color:#5b6570}
.badge.bad{background:#fdeaea;color:#a92a2a}

/* nomor polisi & share link (trip / ride hailing) */
.platebadge{
  font-family:var(--mono);font-size:11.5px;font-weight:700;letter-spacing:.05em;
  background:#0f1720;color:#fff;border-radius:6px;padding:2px 6px;white-space:nowrap;
  display:inline-block;vertical-align:1px;
}
.platebadge.miss{background:#fff4e5;color:#b45309;font-family:inherit;font-weight:600;letter-spacing:0}
.plateval{font-family:var(--mono);letter-spacing:.05em}
input.bad{border-color:#d92d20;background:#fef3f2}
.hint.warn{color:#b45309;opacity:1}
.sharebox{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.sharebox .dim{margin-bottom:6px}
.sharebox button{display:inline-flex;align-items:center;gap:6px}

/* ---------- tawar harga (bidding) ---------- */
.bids{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.bidshead{font-size:11.5px;color:var(--dim);padding:2px 2px 0}
.bidsempty{font-size:11.5px;color:var(--dim);background:var(--card);border:1px dashed var(--line);
  border-radius:var(--r);padding:10px 12px;line-height:1.45}
.biditem{display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);padding:10px 12px;font-size:12px;
  box-shadow:0 1px 2px rgba(16,24,40,.04)}
.biditem.best{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.biditem .who{font-weight:600;font-size:13px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.biditem .sub{color:var(--dim);font-size:11px}
.biditem .right{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.biditem .right b{font-size:15px;color:var(--accent);font-variant-numeric:tabular-nums}
.biditem .mini{padding:4px 9px;font-size:11px}
.bidbtns{display:flex;gap:5px;margin-top:2px}
.bidbtns .mini.ghost{background:transparent;border-color:var(--line);color:var(--dim)}

/* approval sheet: the customer answers one courier's price */
.bidpp{display:flex;align-items:center;gap:10px}
.bidpp .grow{flex:1;min-width:0}
.bidpp .who{font-weight:700;font-size:14px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.bidpp-meta{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--dim);
  margin-top:3px;background:none;border:0;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bidpp-price{display:flex;align-items:baseline;gap:8px;justify-content:flex-end;
  background:#f7f8fa;border-radius:12px;padding:10px 12px}
.bidpp-price b{font-size:23px;color:var(--accent);font-variant-numeric:tabular-nums}
.bidpp-price span{font-size:11.5px;color:var(--dim)}

/* courier side: price input inside the incoming-offer card */
.bidbox{display:flex;align-items:flex-end;gap:8px;margin-top:10px;padding-top:10px;
  border-top:1px dashed var(--line)}
.bidbox .grow{flex:1;min-width:0}
.bidbox label{font-size:11px;display:block;margin-bottom:4px}
.bidinput{display:flex;align-items:center;gap:6px;background:var(--bg);
  border:1px solid var(--line);border-radius:10px;padding:7px 10px}
.bidinput span{font-size:12px;color:var(--dim)}
.bidinput input{flex:1;min-width:0;border:0;background:transparent;font:inherit;
  font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--txt);outline:none}
.bidbox #bidHint{font-size:10.5px;margin-top:4px;line-height:1.35}

/* note line inside the customer job card (offers ring, "mencari kurir…") */
.jobnote{font-size:11.5px;color:var(--dim);margin-top:2px}

/* brand wordmark: Bantu + accent Kirim */
.brand-accent{color:var(--accent)}
