/* palet BCG: Midnight #0C2B15, Pulse #21BF61, Fresh #96F878, Ivory #FCFBFA */
:root { --midnight: #0c2b15; --brand: #157a41; --brand-50: #e3fddb; --fresh: #96f878; --ink: #0f1a13; --muted: #7c857f; --line: #e7e3dd; --bg: #fcfbfa;
  --green: #1a9e55; --red: #c63434; --amber: #a86b00; --blue: #454ac1; font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); font-size: 15px; min-height: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.bar { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: var(--midnight); color: #fff; }
.bar-title { flex: 1; min-width: 0; }
.bar-title b { display: block; font-size: 16px; }
.bar-title small { display: block; opacity: .8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back { background: rgba(255,255,255,.15); border: none; color: #fff; width: 34px; height: 34px; border-radius: 9px; font-size: 22px; }
.net { font-size: 14px; color: var(--fresh); }
.net.off { color: #fca5a5; }
.sync { background: #fef3c7; color: #92400e; padding: 8px 16px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
main { padding: 14px 14px calc(env(safe-area-inset-bottom) + 90px); display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.card { background: #fff; border-radius: 16px; border: 1px solid #f0ede8; padding: 14px; display: grid; gap: 10px; box-shadow: 0 1px 2px rgba(12, 43, 21, .04), 0 6px 18px rgba(12, 43, 21, .05); }
.card h2 { margin: 0; font-size: 15px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 13px 16px; font: inherit; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.red { color: var(--red); border-color: #fecaca; background: #fff5f5; }
.btn.sm { padding: 8px 12px; font-size: 13px; width: auto; border-radius: 9px; }
.btn:disabled { opacity: .5; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
input, select, textarea { font: inherit; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; }
label.f { display: grid; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
.badge { display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-gray { background: #f1eeea; color: #47524b; } .b-green { background: #e6f6ec; color: #0f8a3c; } .b-blue { background: #ebecfb; color: #3a3fa6; }
.b-amber { background: #fff4dc; color: #a86b00; } .b-red { background: #fde9e9; color: #c63434; } .b-violet { background: #ebecfb; color: #3a3fa6; }
.hero { background: radial-gradient(300px 200px at 100% 0%, rgba(150, 248, 120, .28), transparent 60%), linear-gradient(135deg, #0c2b15, #11401f 55%, #157a41); color: #fff; border: none; }
.hero .muted { color: #b5cfbd; }
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 11.5px; opacity: .85; }
.trip { border-left: 5px solid var(--c); }
.stop { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f1f5f9; }
.seq { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.seq.done { background: var(--green); } .seq.fail { background: var(--red); }
.map { height: 220px; border-radius: 12px; z-index: 1; }
.mk { background: none; border: none; }
.pin { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.items { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 1fr 96px 34px; gap: 6px; align-items: center; }
.item button { height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 18px; }
.item-wrap { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.price { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.price input { font-weight: 700; }
.item-wrap .hint { font-size: 12px; color: var(--muted); }
.item-wrap .hint.bad { color: #b45309; font-weight: 600; }
.warn-box { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff4dc; color: #8a5a00; font-size: 13px; }
.warn-box .f { color: var(--ink, #17211c); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; background: var(--brand-50); border-radius: 10px; }
.total b { font-size: 20px; color: var(--brand); }
.sig { width: 100%; height: 150px; border: 1px dashed #94a3b8; border-radius: 10px; background: #fff; touch-action: none; }
.photo-prev { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { width: 20px; height: 20px; }
.sheet { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 2000; display: flex; align-items: flex-end; }
.sheet-card { background: #fff; width: 100%; max-width: 640px; margin: 0 auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 18px); display: grid; gap: 10px; max-height: 92vh; overflow: auto; }
.reasons { display: grid; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px); transform: translateX(-50%); background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px; z-index: 3000; max-width: 90vw; font-size: 14px; }
.toast.err { background: #991b1b; }
.login { min-height: 70vh; display: grid; align-content: center; gap: 14px; }
.logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; }
.fab { position: fixed; left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom) + 14px); max-width: 612px; margin: 0 auto; z-index: 800; box-shadow: 0 10px 25px rgba(15,118,110,.35); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
