/* OxiRider / Oxi Dispatch: one-hand use on low-end Android, readable in sun glare. Oxi system, OxiRider accent. */
:root {
  --ink: #0b1f17; --ink-2: #33473e; --muted: #5d6f66; --line: #d8e1dc; --paper: #f5f8f6; --card: #ffffff;
  --rider: #0f6b45; --rider-2: #0b5235; --sky: #4e9ac0; --volt: #d4ff3a; --warn: #9a5b00; --warn-bg: #fff4dc;
  --bad: #b3261e; --bad-bg: #fdecea; --good-bg: #e5f4ec;
  --r: 14px; --shadow: 0 1px 2px rgba(11,31,23,.06), 0 4px 16px rgba(11,31,23,.06);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.45 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--rider); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .mono { font-family: var(--mono); }
.hidden, [hidden] { display: none !important; }

.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.top .in { max-width: 720px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; }
.top img { height: 30px; width: auto; display: block; }
.top a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 650; background: rgba(255,255,255,.12); color: #fff; }
.pill.on { background: var(--volt); color: var(--ink); }
.pill.on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rider); }

main { max-width: 720px; margin: 0 auto; padding: 16px 16px 110px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card.accent { border-color: var(--rider); }
.hero { background: var(--rider); color: #fff; border-radius: 20px; padding: 22px 18px; margin-bottom: 16px; }
.hero h1 { font-size: 30px; } .hero p { color: rgba(255,255,255,.88); }
.hero .stat { font-family: var(--mono); font-size: 32px; font-weight: 600; letter-spacing: -.02em; }

label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15,107,69,.25); border-color: var(--rider); }
.row { display: flex; gap: 10px; } .row > * { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 22px; height: 22px; min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--rider); color: #fff; border-color: var(--rider); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 18px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; min-height: 52px; text-decoration: none; background: var(--rider); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.volt { background: var(--volt); color: var(--ink); }
.btn.danger { background: #fff; color: var(--bad); border: 1.5px solid #f0c5c1; }
.btn.small { min-height: 40px; padding: 8px 12px; font-size: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; } .actions .btn { flex: 1; }

.note { border-radius: 10px; padding: 10px 12px; font-size: 15px; margin: 10px 0; }
.note.err { background: var(--bad-bg); color: var(--bad); } .note.ok { background: var(--good-bg); color: var(--rider-2); } .note.warn { background: var(--warn-bg); color: var(--warn); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps .n { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--paper); border: 1.5px solid var(--line); }
.steps li.done .n { background: var(--rider); color: #fff; border-color: var(--rider); }
.steps .t { flex: 1; } .steps .t b { display: block; }

.job { border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; padding: 14px; margin-bottom: 12px; }
.job.mine { border-color: var(--rider); }
.job .head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.job .price { font-family: var(--mono); font-size: 24px; font-weight: 600; }
.job .route { margin: 8px 0; display: grid; gap: 6px; }
.job .route div { display: flex; gap: 8px; } .job .route i { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--rider); }
.job .route div + div i { background: var(--sky); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: var(--paper); color: var(--ink-2); margin-right: 4px; }
.tag.cold { background: #e3f1f8; color: #1b5d7e; }
.code { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: .14em; text-align: center; background: var(--paper); border-radius: 12px; padding: 12px; }
.qr { display: block; margin: 10px auto; width: 220px; height: 220px; image-rendering: pixelated; background: #fff; }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; }
.tabs .in { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabs button { background: none; border: 0; font: inherit; font-size: 13px; font-weight: 650; color: var(--muted); padding: 10px 4px 14px; min-height: 60px; cursor: pointer; }
.tabs button[aria-current="page"] { color: var(--rider); box-shadow: inset 0 3px 0 var(--rider); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.switch.on { background: var(--rider); }
.switch b { font-size: 20px; display: block; }
.switch .btn { background: var(--volt); color: var(--ink); min-width: 130px; }
.switch.on .btn { background: #fff; }

.map { height: 260px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin: 10px 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 22px; position: relative; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--rider); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.scroll { overflow-x: auto; }
.scanner video { width: 100%; border-radius: 12px; background: #000; max-height: 320px; object-fit: cover; }
.stars { display: flex; gap: 6px; } .stars button { font-size: 30px; background: none; border: 0; cursor: pointer; color: #c9d3ce; padding: 0 2px; } .stars button[aria-pressed="true"] { color: #e0a100; }
@media (min-width: 640px) { main { padding-top: 24px; } }
