/* Dasbor Jastiper — app shell, 360–390px first */
:root{
  --ink:#24332b;--muted:#69776e;--green:#24734f;--green-dark:#18583b;
  --mint:#eaf4ed;--cream:#fffaf2;--orange:#ef9a45;--line:#e6e9e3;
  --white:#fff;--shadow:0 12px 32px rgba(39,65,48,.09);--radius:22px;
  --tabbar-h:64px;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#f3f4ef;color:var(--ink);
  font-family:ui-rounded,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.45;
  -webkit-text-size-adjust:100%}
button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}
.jd-app{min-height:100%;display:flex;flex-direction:column;background:#f3f4ef}
.jd-top{position:sticky;top:0;z-index:20;background:var(--cream);border-bottom:1px solid #f0ebdf;
  padding:10px 16px calc(10px + env(safe-area-inset-top));padding-top:calc(10px + env(safe-area-inset-top));
  display:flex;align-items:center;gap:10px}
.jd-brand{display:flex;align-items:center;gap:8px;text-decoration:none;font-weight:850;font-size:17px;letter-spacing:-.3px;flex:0 0 auto}
.jd-brand img{width:34px;height:34px;border-radius:11px}
.jd-top-meta{flex:1 1 auto;min-width:0}
.jd-top-meta strong{display:block;font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jd-top-meta span{display:block;font-size:12px;color:var(--muted);font-weight:650}
.jd-pill{display:inline-flex;align-items:center;gap:6px;background:var(--mint);color:var(--green-dark);
  border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;white-space:nowrap}
.jd-main{flex:1 1 auto;width:min(720px,100%);margin:0 auto;padding:14px 16px calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom))}
.jd-view{display:none}.jd-view.is-on{display:block}
.jd-h{margin:0 0 12px;font-size:22px;letter-spacing:-.5px}
.jd-sub{margin:0 0 16px;color:var(--muted);font-size:14px}
.jd-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.jd-card{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:12px 13px;box-shadow:var(--shadow)}
.jd-card .k{display:block;font-size:11px;font-weight:750;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.jd-card .v{display:block;font-size:22px;font-weight:850;letter-spacing:-.6px;color:var(--green-dark);line-height:1.1}
.jd-card .d{display:block;margin-top:3px;font-size:11px;color:var(--muted);font-weight:650}
.jd-card.warn .v{color:#9a4b16}
.jd-panel{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:14px;box-shadow:var(--shadow);margin-bottom:14px}
.jd-panel h2{margin:0 0 10px;font-size:16px}
.btn{border:0;border-radius:14px;padding:14px 19px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  transition:.15s transform,.15s background;min-height:50px;text-decoration:none}
.btn:active{transform:scale(.98)}.btn:disabled{opacity:.55;cursor:not-allowed}
.btn-primary,.btn-next{background:var(--green);color:#fff}.btn-primary:hover,.btn-next:hover{background:var(--green-dark)}
.btn-light{background:#fff;color:var(--green);border:1.5px solid #cbded0}
.btn-light:hover{background:var(--mint)}
.btn-danger{background:#fff;color:#a33b35;border:1.5px solid #f0cfcc}
.btn-small{min-height:42px;padding:10px 14px;border-radius:12px;font-size:14px}
.jd-next{width:100%;min-height:54px;font-size:16px;border-radius:16px}
.jd-back[hidden]{display:none}
.jd-back{display:inline-block;margin:10px 0 0;padding:0;border:0;background:none;color:#3a6b4e;font:inherit;font-size:13px;font-weight:700;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.jd-track{display:flex;justify-content:space-between;gap:4px;margin:0 0 14px;padding:8px 4px 2px}
.jd-step{flex:1;text-align:center;min-width:0}
.jd-step i{display:block;width:10px;height:10px;border-radius:50%;margin:0 auto 6px;background:#d5ddd6;border:2px solid #d5ddd6;position:relative}
.jd-step.is-done i,.jd-step.is-now i{background:var(--green);border-color:var(--green)}
.jd-step.is-now i{box-shadow:0 0 0 4px #d7eadc}
.jd-step span{display:block;font-size:10px;line-height:1.25;color:var(--muted);font-weight:700}
.jd-step.is-now span{color:var(--green-dark)}
.jd-seg{display:flex;gap:6px;background:#eef2ea;border-radius:14px;padding:4px;margin:0 0 14px}
.jd-seg button{flex:1;border:0;background:transparent;border-radius:11px;min-height:40px;font-weight:800;font-size:14px;color:#4d5c52}
.jd-seg button.is-on{background:#fff;color:var(--green-dark);box-shadow:0 2px 8px rgba(39,65,48,.08)}
.jd-empty{text-align:center;padding:28px 12px;color:var(--muted)}
.jd-empty strong{display:block;color:var(--ink);margin:8px 0 4px}
.og-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:0 0 14px}
.og-chip{background:var(--mint);border:1px solid #dce8df;border-radius:14px;padding:10px 12px}
.og-chip span{display:block;font-size:11px;color:var(--muted);font-weight:700}
.og-chip b{font-size:18px;color:var(--green-dark)}
.order-group{border:1px solid var(--line);border-radius:16px;padding:12px;margin:0 0 10px;background:#fff}
.og-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.og-head strong{font-size:15px}
.og-item{display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-top:1px solid #f0f2ee}
.og-item:first-of-type{border-top:0}
.og-item input[type=checkbox]{width:22px;height:22px;margin-top:2px;accent-color:var(--green);flex:0 0 auto}
.og-item.is-bought .og-title{text-decoration:line-through;color:var(--muted)}
.og-title{font-weight:750}
.og-item small{display:block;color:var(--muted);font-size:12px}
.og-offer{margin-top:8px;background:#f6faf7;border:1px solid #dce8df;border-radius:14px;padding:10px}
.og-offer p{margin:0 0 8px;font-size:13px;font-weight:700}
.og-offer.accepted{background:#eef7f1;border-color:#b9d8c4}
.og-offer.rejected{background:#fff3f2;border-color:#f0cfcc}
.og-offer.rejected p{color:#a33b35}
.og-offer.counter{background:#fff8e8;border-color:#f0d6a8}
.og-actions,.track-actions,.og-counter{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.og-counter input{flex:1 1 120px;min-width:0;border:1.5px solid #d9e1da;border-radius:12px;padding:10px 12px;min-height:42px}
.jd-note{font-size:12px;color:var(--muted);margin:6px 0 0}
.jd-map{width:100%;height:min(52vh,420px);min-height:260px;border-radius:18px;overflow:hidden;border:1px solid #dfeae1;background:#e4eee6;margin:0 0 12px}
.jd-map .leaflet-container{width:100%;height:100%;background:#e4eee6}
.del-item{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:16px;margin:0 0 8px;background:#fff}
.del-item.is-done{opacity:.72}
.del-item .rank{flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:850;font-size:13px;margin-top:2px}
.del-item.is-done .rank{background:#9aa79e}
.del-item .body{flex:1 1 auto;min-width:0}
.del-item .km{font-size:12px;font-weight:750;color:var(--green-dark)}
.del-item .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;align-items:center}
.del-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:750}
.del-check input{width:20px;height:20px;accent-color:var(--green)}
.jd-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--cream);border-top:1px solid #eadfcb;
  display:flex;justify-content:space-around;padding:6px 6px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(39,65,48,.06)}
.jd-tabbar button{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;
  color:#6a7a70;font-size:11px;font-weight:800;padding:6px 4px;min-height:52px;border-radius:12px}
.jd-tabbar button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.jd-tabbar button.is-on{color:var(--green-dark);background:#f3f7ee}
.jd-toast{position:fixed;left:50%;bottom:calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(20px);
  background:#1e2b24;color:#fff;border-radius:14px;padding:11px 16px;font-size:13px;font-weight:700;opacity:0;pointer-events:none;
  transition:.2s opacity,.2s transform;z-index:80;max-width:min(420px,calc(100% - 32px));text-align:center}
.jd-toast.is-on{opacity:1;transform:translateX(-50%) translateY(0)}
.jd-gate{max-width:420px;margin:24px auto;text-align:left}
.jd-gate input{width:100%;border:1.5px solid #d9e1da;border-radius:13px;padding:12px;margin:8px 0 12px}
.jd-pick{width:100%;border:1.5px solid #d9e1da;border-radius:12px;padding:10px 12px;background:#fff;margin:0 0 12px}
.live-dot{width:8px;height:8px;border-radius:50%;background:#1f8a4c;box-shadow:0 0 0 4px rgba(36,115,79,.2);display:inline-block}
.live-dot.off{background:#9aa79e;box-shadow:none}
.marker-live{background:#24734f;border:3px solid #fff;border-radius:50%;width:18px;height:18px;box-shadow:0 0 0 8px rgba(36,115,79,.25)}
.marker-buy{background:#1d4f8f;color:#fff;border:2px solid #fff;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-size:11px;font-weight:850;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.jd-akun-list{list-style:none;margin:0;padding:0}
.jd-akun-list li{border-top:1px solid var(--line);padding:12px 0}
.jd-akun-list a,.jd-akun-list button.linkish{background:none;border:0;padding:0;color:var(--green-dark);font-weight:750;text-decoration:none}
@media (min-width:880px){
  .jd-app{flex-direction:row;align-items:stretch}
  .jd-top{position:fixed;left:232px;right:0;padding:12px 28px}
  .jd-tabbar{left:0;right:auto;top:0;bottom:0;width:232px;flex-direction:column;justify-content:flex-start;
    padding:22px 12px 16px;border-top:0;border-right:1px solid #eadfcb;box-shadow:none;gap:6px}
  .jd-tabbar .jd-side-brand{display:flex !important;align-items:center;gap:8px;padding:4px 10px 18px;font-weight:850;font-size:18px;color:var(--ink);text-decoration:none}
  .jd-tabbar button{flex:0 0 auto;flex-direction:row;justify-content:flex-start;gap:10px;font-size:14px;padding:12px 14px;min-height:48px}
  .jd-main{margin:76px 0 0 232px;width:auto;max-width:880px;padding:22px 28px 48px}
  .jd-cards{grid-template-columns:repeat(4,1fr)}
  .jd-map{height:480px}
  .jd-toast{bottom:24px}
}
.jd-side-brand{display:none}
.jd-instant[hidden]{display:none}
[data-aksi][hidden],.jd-actions [hidden]{display:none!important}
.jd-status-action{margin:0 0 10px}.jd-status-action[hidden]{display:none}
.jd-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.jd-actions .btn{min-height:56px;padding:8px;font-size:14px;text-align:center;line-height:1.25}
.jd-actions .btn:last-child:not([hidden]){grid-column:auto}
.jd-danger{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px;margin:6px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.jd-danger .btn{min-height:46px;padding:8px;font-size:14px}

.jd-instant{margin:4px 0 16px;padding:14px 16px;border-radius:16px;background:linear-gradient(180deg,#fff8e6,#ffeec4);border:1px solid #f0d089;display:flex;flex-direction:column;gap:4px}
.jd-instant-badge{font-size:12px;font-weight:800;color:#8a4b00;letter-spacing:.02em}
.jd-instant strong{font-size:22px;line-height:1.2;color:#7a2f12;font-variant-numeric:tabular-nums}
.jd-instant p{margin:0;color:#6a4a1a;font-size:13px}

.jd-live-toggle{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:10px;font-weight:700;cursor:pointer}
.jd-live-toggle input{flex:0 0 auto;width:22px;height:22px;accent-color:var(--green,#24734f)}
.jd-live-toggle span{min-width:0}
