html, body { background: var(--bg); overscroll-behavior-y: contain; }
.boot { min-height: 100dvh; display: grid; place-items: center; }

.d-app { min-height: 100dvh; display: flex; flex-direction: column; }

/* Header */
.d-head {
  position: sticky; top: 0; z-index: 20; background: var(--red); color: #fff;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 12px;
  background-image: repeating-linear-gradient(-18deg, transparent 0 26px, rgba(255, 255, 255, .06) 26px 30px);
}
.d-head .row { display: flex; align-items: center; gap: 10px; }
.d-head .logo-mark { color: #fff; height: 28px; }
.d-head .me {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .2); color: #fff; border: 0;
  font-weight: 800; font-size: 14px; display: grid; place-items: center; cursor: pointer; position: relative;
}
.d-head .me .dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--red); background: #9ca3af; }
.d-head .me .dot.on { background: #22c55e; }

.duty {
  display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; border-radius: 999px; padding: 6px 14px 6px 6px;
  background: rgba(0, 0, 0, .22); color: #fff; font-weight: 750; font-size: 14px;
}
.duty .sw { width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .3); position: relative; transition: .2s; }
.duty .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.duty.on .sw { background: #22c55e; }
.duty.on .sw::after { left: 19px; }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.strip div { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 8px 10px; }
.strip b { display: block; font-size: 20px; font-weight: 850; font-stretch: 88%; line-height: 1.1; }
.strip small { font-size: 11.5px; opacity: .85; font-weight: 600; }

.offline {
  background: var(--ink); color: #fff; text-align: center; font-size: 13px; font-weight: 650; padding: 6px;
}

/* Content */
.d-main { flex: 1; padding: 14px 12px calc(96px + var(--safe-b)); display: grid; gap: 12px; align-content: start; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 4px 0; }
.sec-title h2 { font-size: 22px; font-weight: 850; font-stretch: 90%; }
.sec-title span { color: var(--ink-3); font-size: 13px; font-weight: 600; }

/* Job card */
.job { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.job.urgent { box-shadow: 0 0 0 2px var(--red), var(--shadow); }
.job.new { animation: pop .5s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.job.gone { animation: gone .35s forwards; }
@keyframes gone { to { transform: translateX(40px); opacity: 0; height: 0; margin: -6px 0; } }
.job-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; font-size: 13px; }
.job-top .code { font-weight: 800; }
.job-top .age { margin-left: auto; color: var(--ink-3); font-weight: 650; }
.job-top .age.warn { color: var(--st-pool); }
.job-top .age.bad { color: var(--red); }

.route { padding: 10px 14px 4px 14px; display: grid; gap: 0; }
.stop { display: grid; grid-template-columns: 22px 1fr; gap: 0 10px; }
.stop .rail { display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.stop .rail i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; flex: none; }
.stop .rail::after { content: ''; flex: 1; width: 2px; margin: 3px 0; background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px); }
.stop.drop .rail i { background: var(--red); border-color: var(--red); }
.stop.drop .rail::after { display: none; }
.stop .body { padding-bottom: 12px; min-width: 0; }
.stop .area { font-size: 19px; font-weight: 850; font-stretch: 92%; letter-spacing: -0.01em; line-height: 1.2; }
.stop .who { font-weight: 650; font-size: 14.5px; }
.stop .addr { color: var(--ink-2); font-size: 14px; }
.stop .contact { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.stop .contact a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 7px 12px; border-radius: 999px;
  background: var(--bg); font-weight: 700; font-size: 13.5px; color: var(--ink);
}
.stop .contact a.call { background: var(--ink); color: #fff; }
.stop .contact a.viber { background: #7360f2; color: #fff; }
.stop .contact svg { width: 15px; height: 15px; }

.pkg { margin: 0 14px; padding: 10px 12px; background: var(--bg); border-radius: 12px; font-size: 14px; display: grid; gap: 2px; }
.pkg .note { color: var(--ink-2); }
.money { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.money .fee { font-size: 13px; color: var(--ink-3); font-weight: 650; }
.money .fee b { display: block; font-size: 20px; color: var(--ink); font-weight: 850; font-stretch: 90%; }
.collect { margin-left: auto; text-align: right; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 12px; }
.collect small { display: block; font-size: 11px; opacity: .7; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.collect b { font-size: 18px; font-weight: 850; }
.collect.none { background: var(--st-delivered-bg); color: var(--st-delivered); }

.job-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.job-actions .btn { flex: 1; }
.take {
  width: 100%; border: 0; border-radius: 0; min-height: 60px; font-size: 18px; font-weight: 850; letter-spacing: .02em;
  background: var(--ink); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-stretch: 95%; text-transform: uppercase;
}
.take:active { background: #000; }
.job.urgent .take { background: var(--red); }
.take svg { width: 22px; height: 22px; }
.take:disabled { opacity: .6; }

.step { display: flex; gap: 6px; padding: 12px 14px 0; }
.step span { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.step span.on { background: var(--red); }

/* Done list */
.done-row { background: var(--card); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; box-shadow: var(--shadow); }
.done-row .t { font-weight: 750; }
.done-row .s { color: var(--ink-3); font-size: 13px; }

/* Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: var(--safe-b);
}
.tabbar button {
  border: 0; background: none; padding: 10px 0 9px; display: grid; justify-items: center; gap: 3px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--ink-3); position: relative; -webkit-tap-highlight-color: transparent;
}
.tabbar button svg { width: 25px; height: 25px; }
.tabbar button.on { color: var(--red); }
.tabbar .badge {
  position: absolute; top: 5px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11.5px; display: grid; place-items: center; font-weight: 800; border: 2px solid #fff;
}
.tabbar .badge.dark { background: var(--ink); }

/* Sheets */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 650; font-size: 14px; cursor: pointer; }
.chips button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.photo-pick {
  display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px dashed var(--line); border-radius: 14px; min-height: 90px;
  cursor: pointer; font-weight: 700; color: var(--ink-2); position: relative; overflow: hidden; background: var(--bg);
}
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-pick img { width: 100%; max-height: 220px; object-fit: cover; }
.big-amount { font-size: 34px; font-weight: 900; font-stretch: 88%; text-align: center; padding: 6px 0; }
.cash-input { font-size: 24px !important; font-weight: 800; text-align: center; }

.banner {
  background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.banner b { display: block; }
.banner .btn { margin-left: auto; flex: none; }

.empty-pool { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty-pool .art { width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); }
.empty-pool .art svg { width: 44px; height: 44px; color: var(--red); }
.empty-pool strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.photo-pick > span { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.photo-pick svg { width: 26px; height: 26px; flex: none; }
.btn svg, .banner svg { width: 18px; height: 18px; }
.toast { bottom: calc(86px + var(--safe-b)); }

/* ---- Zones (Beautello-style) ---------------------------------------------- */
.zpill {
  display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 800;
  font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; letter-spacing: .02em; line-height: 1.35; vertical-align: middle;
}
.zpill.sm { font-size: 11px; padding: 1px 6px; }
.zname { font-weight: 700; font-size: 14px; color: var(--ink-2); }

.zsec { display: grid; gap: 7px; }
.zsec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px; }
.zsec-h h2 { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.zsec-h span { font-size: 11.5px; color: var(--ink-3); font-weight: 650; }
.zgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zcard {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 13px 14px; text-align: left;
  display: grid; gap: 4px; cursor: pointer; font: inherit; color: inherit; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: transform .08s;
}
.zcard:active { transform: scale(.97); }
.zcard.quiet { opacity: .45; cursor: default; }
.zc-top { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.zc-top b { font-size: 14px; font-weight: 900; flex: none; }
.zc-top small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-bot { display: flex; align-items: flex-end; justify-content: space-between; }
.zc-n { font-size: 32px; font-weight: 900; line-height: 1; color: var(--ink-3); }
.zc-n.hot { color: var(--red); }
.zc-bot small { font-size: 12px; color: var(--ink-3); margin-left: 4px; font-weight: 600; }
.zc-out b { font-size: 18px; font-weight: 800; }

.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles3 button { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 6px; display: grid; gap: 2px; justify-items: center; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow); }
.tiles3 b { font-size: 24px; font-weight: 900; }
.tiles3 small { font-size: 11.5px; color: var(--ink-3); font-weight: 650; }

/* Zone rail (Pool / My list) */
.rail { display: flex; gap: 6px; overflow-x: auto; margin: 12px -14px -2px; padding: 0 14px 2px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid transparent; background: #fff; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.chip b { font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; font-weight: 900; font-size: 13px; }
.chip.quiet { opacity: .5; }
.chip.all.on { background: var(--ink); color: #fff; }

/* Order card */
.job { border: 1px solid var(--line-2); }
.jhead { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0 16px; }
.jcode { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.jhead .pill { margin-left: 2px; }
.jtags { display: flex; align-items: center; gap: 7px; padding: 6px 14px 0 16px; flex-wrap: wrap; }
.anchor svg { width: 16px; height: 16px; color: #0369a1; display: block; }
.jbody { padding: 8px 14px 4px 16px; display: grid; gap: 8px; }
.jbody .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--ink-3); }
.jbody b { font-weight: 750; }
.jbody .addr { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip-note { margin: 6px 14px 0 16px; padding: 7px 10px; border-radius: 10px; background: #fff7cc; color: #5c4700; font-size: 13.5px; font-weight: 600; }
.chip-note.office { background: var(--line-2); color: var(--ink-2); font-weight: 550; }
.jfoot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 12px 16px; font-size: 13.5px; }
.collect-t { font-weight: 900; color: #b45309; font-size: 16px; }
.paid { font-weight: 800; color: var(--st-delivered); text-transform: uppercase; font-size: 12.5px; letter-spacing: .08em; }
.job .route { padding: 6px 14px 0 16px; }
.job .step, .job .job-actions { padding-left: 16px; }

.timer { margin-left: auto; font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--line-2); }
.timer.a0 { color: var(--ink-3); }
.timer.a1 { color: var(--ink); }
.timer.a2 { color: #b45309; background: #fff3dc; }
.timer.a3 { color: #fff; background: var(--red); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .55; } }

/* Select mode */
.sel-tools { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 13px; }
.job.selectable { cursor: pointer; }
.job.selected { outline: 2.5px solid var(--ink); outline-offset: -1px; }
.tick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; background: #fff; }
.job.selected .tick { background: var(--ink); border-color: var(--ink); color: #fff; }
.tick svg { width: 16px; height: 16px; }
.selbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(70px + var(--safe-b)); z-index: 31; background: var(--ink); color: #fff;
  border-radius: 18px; padding: 10px 10px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .55);
}
.selbar b { font-size: 20px; }
.tabbar { grid-template-columns: repeat(4, 1fr); }
.tabbar .badge.money { background: #b45309; }
.sec-title h2 { display: flex; align-items: center; gap: 8px; }
.zc-n.zero { font-weight: 500; }

/* ---- Bolt card design restored + job type looks ------------------------------ */
.job .route { padding: 10px 14px 4px 16px; }
.stop .lbl2 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--ink-3); margin-bottom: 1px; }
.stop .area { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.job-top { padding: 10px 14px 0 16px; }
.job-top .code { font-size: 15px; }
.job .pkg { margin: 0 14px 0 16px; }
.job .money { padding: 12px 14px 12px 16px; }
.band { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 16px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.band .jt { font-size: 12.5px; padding: 4px 10px 4px 8px; }
.band-who { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band-b2c { background: linear-gradient(90deg, #eef4ff, #fff 75%); }
.band-post { background: linear-gradient(90deg, #fff6e3, #fff 75%); }
.band-c2c { background: linear-gradient(90deg, #e8f8f0, #fff 75%); }
.refbox { margin-top: 8px; display: inline-grid; gap: 1px; padding: 7px 12px; border-radius: 10px; background: #fff6e3; border: 1.5px dashed #e7b45a; }
.refbox small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #9a4a07; }
.refbox b { font-size: 16px; font-weight: 900; color: #5c2d04; }
.jtype-post .take { background: #9a4a07; }
.jtype-c2c .take { background: #0a6b47; }
.job.urgent .take { background: var(--red); }

/* ---- Pick up from: where the rider goes first -------------------------------- */
.rail-lbl { flex: none; align-self: center; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); padding-right: 2px; }
.pickrail { padding-bottom: 0; }
.pick-sub { font-size: 12.5px; font-weight: 650; color: var(--ink-3); letter-spacing: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pcard { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, color-mix(in srgb, var(--h) 22%, #fff), #fff 80%); box-shadow: var(--shadow), inset 4px 0 0 var(--h); font: inherit; color: var(--ink); }
.pcard:active { transform: scale(.98); }
.pcard > b { font-size: 30px; font-weight: 900; line-height: 1; }
.pcard span { display: grid; gap: 1px; min-width: 0; }
.pcard strong { font-size: 16px; font-weight: 850; }
.pcard small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
