:root {
  --bg: #f5f2ea; --card: #ffffff; --ink: #1f2a1c; --muted: #6b6f66; --line: #e3ddd0;
  --green: #3d7a2e; --green-d: #2f5f23; --green-l: #e5f0de; --red: #b3362b; --red-l: #f8e3e0;
  --amber: #b7791f; --amber-l: #fbf0dc; --blue: #2b6cb0; --blue-l: #e3eefa;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151a13; --card: #1f261c; --ink: #eef2ea; --muted: #a3aa9c; --line: #333d2f;
    --green: #6cb35a; --green-d: #8bc77b; --green-l: #26381f; --red: #e2786e; --red-l: #3a2220;
    --amber: #e0a94f; --amber-l: #3a2f1c; --blue: #79aee6; --blue-l: #1e2b3a; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: 22px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { position: sticky; top: 0; z-index: 10; background: var(--green); color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 0 10px; box-shadow: var(--shadow); }
.top .wrap { display: flex; align-items: center; gap: 12px; }
.top .brand { font-weight: 700; font-size: 18px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top button, .top a { color: #fff; background: rgba(255,255,255,.15); border: 0; border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 12px 0; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 12px; } .row > .grow { flex: 1; min-width: 0; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px;
  padding: 11px 16px; font: inherit; font-weight: 600; cursor: pointer; background: var(--green); color: #fff;
  min-height: 44px; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sec { background: var(--green-l); color: var(--green-d); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.red { background: var(--red-l); color: var(--red); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.check input { width: 20px; min-height: 20px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--green-l); color: var(--green-d); white-space: nowrap; }
.badge.red { background: var(--red-l); color: var(--red); } .badge.amber { background: var(--amber-l); color: var(--amber); }
.badge.blue { background: var(--blue-l); color: var(--blue); } .badge.grey { background: var(--line); color: var(--muted); }
.price { font-weight: 700; color: var(--green); white-space: nowrap; }
.list > * + * { border-top: 1px solid var(--line); }
.item { padding: 12px 0; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--green-l); color: var(--green-d);
  font-size: 22px; font-weight: 700; cursor: pointer; }
.qty span { min-width: 54px; text-align: center; font-weight: 600; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.tabs button.on { background: var(--green); color: #fff; border-color: var(--green); }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
  display: flex; padding-bottom: env(safe-area-inset-bottom); }
.nav button { flex: 1; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; padding: 8px 2px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; position: relative; }
.nav button .ic { font-size: 22px; line-height: 1; }
.nav button.on { color: var(--green); font-weight: 700; }
.nav .dot { position: absolute; top: 4px; left: 55%; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 6px; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.modal .sheet { background: var(--bg); width: 100%; max-width: 760px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal { align-items: center; } .modal .sheet { border-radius: 18px; } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 12px; font-size: 15px; max-width: 90vw; box-shadow: var(--shadow); }
.code { font-size: 44px; font-weight: 800; letter-spacing: 8px; text-align: center; padding: 12px; border-radius: 14px;
  background: var(--green-l); color: var(--green-d); font-variant-numeric: tabular-nums; }
.steps { display: flex; gap: 4px; margin: 12px 0; }
.steps div { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps div.on { background: var(--green); }
.grid-lockers { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.lk { border-radius: 10px; padding: 8px 6px; min-height: 66px; font-size: 12px; text-align: center; cursor: pointer;
  border: 2px solid transparent; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.lk b { display: block; font-size: 15px; }
.lk.empty { background: var(--bg); color: var(--muted); border: 2px dashed var(--line); box-shadow: none; }
.lk.filled { background: var(--green-l); } .lk.held { background: var(--blue-l); } .lk.blocked { background: var(--red-l); }
.lk.sel { border-color: var(--green); outline: 2px solid var(--green); }
.lk.dis { opacity: .4; cursor: default; }
.bar { height: 10px; border-radius: 5px; background: var(--green); min-width: 2px; }
.thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; background: var(--green-l); cursor: pointer; }
.thumb.ph { display: flex; align-items: center; justify-content: center; font-size: 26px; cursor: default; opacity: .6; }
.photo-edit { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; background: var(--green-l); }
.leaflet-container { font: inherit; }
.empty-state { text-align: center; padding: 32px 16px; color: var(--muted); }
.hidden { display: none !important; }
