:root {
  --ground: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #f0f2ef;
  --surface-3: #e5e9e4;
  --line: #e3e7e2;
  --line-strong: #cdd5cc;
  --ink: #16211c;
  --ink-2: #45524b;
  --ink-3: #66736c;
  --brand: #0f4a37;
  --brand-hover: #0a3a2a;
  --on-brand: #ffffff;
  --brand-soft: #e6f0eb;
  --brand-text: #0f4a37;
  --accent: #c8235c;
  --on-accent: #ffffff;
  --accent-soft: #fbe8ef;
  --accent-text: #a81c4d;
  --ok: #1d7448;
  --on-ok: #ffffff;
  --ok-soft: #e3f2e9;
  --warn: #8f5400;
  --warn-soft: #fdf1dc;
  --bad: #b42318;
  --bad-soft: #fde9e7;
  --star: #d89a00;
  --scrim: rgba(10, 20, 15, .5);
  --shadow-pop: 0 4px 12px rgba(16, 33, 26, .08), 0 16px 40px rgba(16, 33, 26, .14);
  --shadow-hover: 0 6px 20px rgba(16, 33, 26, .08);
  --r-xs: 6px;
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t1: 120ms;
  --t2: 200ms;
  --tabbar-h: 60px;
  --header-h: 64px;
  --gutter: 16px;
  --maxw: 1760px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1412; --surface: #161d1a; --surface-2: #1d2622; --surface-3: #25302b; --line: #2a3530; --line-strong: #39463f;
    --ink: #e8efeb; --ink-2: #b7c4bd; --ink-3: #8e9c94;
    --brand: #4fbf8b; --brand-hover: #6ccc9e; --on-brand: #04140c; --brand-soft: #16301f; --brand-text: #7fd6a9;
    --accent: #ff6f9c; --on-accent: #2a0614; --accent-soft: #3a1622; --accent-text: #ff94b5;
    --ok: #5cc68c; --on-ok: #04140c; --ok-soft: #15301f; --warn: #f2b155; --warn-soft: #33260f; --bad: #ff8a7e; --bad-soft: #3a1513; --star: #f2b742;
    --scrim: rgba(0, 0, 0, .62); --shadow-pop: 0 16px 40px rgba(0,0,0,.5); --shadow-hover: 0 6px 20px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0f1412; --surface: #161d1a; --surface-2: #1d2622; --surface-3: #25302b; --line: #2a3530; --line-strong: #39463f;
  --ink: #e8efeb; --ink-2: #b7c4bd; --ink-3: #8e9c94;
  --brand: #4fbf8b; --brand-hover: #6ccc9e; --on-brand: #04140c; --brand-soft: #16301f; --brand-text: #7fd6a9;
  --accent: #ff6f9c; --on-accent: #2a0614; --accent-soft: #3a1622; --accent-text: #ff94b5;
  --ok: #5cc68c; --on-ok: #04140c; --ok-soft: #15301f; --warn: #f2b155; --warn-soft: #33260f; --bad: #ff8a7e; --bad-soft: #3a1513; --star: #f2b742;
  --scrim: rgba(0, 0, 0, .62); --shadow-pop: 0 16px 40px rgba(0,0,0,.5); --shadow-hover: 0 6px 20px rgba(0,0,0,.35);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input, textarea { caret-color: var(--brand); }
:root { accent-color: var(--brand); scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid var(--ground); }
[hidden] { display: none !important; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }
.ic.xs { width: 14px; height: 14px; }
.ic.lg { width: 24px; height: 24px; }
.ic.fill { fill: currentColor; stroke: none; }

.t-display { font-size: clamp(28px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.t-h1 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.t-h2 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.t-h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.strong { font-weight: 600; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: grid; gap: 12px; }
.stack > *, .list > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
@media (max-width: 1023px) { .only-d { display: none !important; } }
@media (min-width: 1024px) { .only-m { display: none !important; } }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.hdr .bar { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; min-height: 44px; }
.brand .ic-logo { width: 32px; height: 32px; color: var(--brand); --logo-hole: var(--surface); --logo-petal: #ffffff; }
.brand b { font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.addr { display: inline-flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; transition: border-color var(--t1), background var(--t1); }
.addr:hover { border-color: var(--line-strong); background: var(--surface-2); }
.addr .ic { color: var(--brand-text); }
.addr .lbl { display: grid; line-height: 1.15; min-width: 0; }
.addr .lbl small { font-size: 12px; color: var(--ink-3); }
.addr .lbl span { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.hsearch { flex: 1; max-width: 640px; position: relative; }
.hsearch input { width: 100%; height: 44px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); padding: 0 112px 0 44px; font-size: 15px; outline: none; transition: border-color var(--t1), background var(--t1), box-shadow var(--t1); }
.hsearch input:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hsearch > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.hsearch .btn { position: absolute; right: 4px; top: 4px; min-height: 36px; height: 36px; }
.hact { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hact a, .hact button.link { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; height: 52px; padding: 0 8px; border-radius: var(--r); border: 0; background: transparent; color: var(--ink-2); text-decoration: none; font-size: 12px; font-weight: 500; transition: background var(--t1), color var(--t1); }
.hact a:hover, .hact button.link:hover { background: var(--surface-2); color: var(--ink); }
.hact a[aria-current="page"] { color: var(--brand-text); }
.hact a .ic { width: 22px; height: 22px; }
.catnav { border-top: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 4px; height: 48px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.catnav a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: background var(--t1), color var(--t1); }
.catnav a:hover { background: var(--surface-2); color: var(--ink); }
.catnav a[aria-current="true"] { color: var(--brand-text); background: var(--brand-soft); font-weight: 600; }
@media (max-width: 1023px) {
  .hdr .bar { height: 60px; gap: 10px; }
  .brand b { font-size: 18px; }
  .addr { flex: 1; height: 42px; }
  .addr .lbl span { max-width: none; }
}

.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r); border: 0; background: transparent; color: inherit; flex: none; transition: background var(--t1); }
.icon-btn:hover { background: var(--surface-2); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a { position: relative; height: var(--tabbar-h); display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 500; }
.tabbar a[aria-current="page"] { color: var(--brand-text); font-weight: 650; }
.tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
body.has-tabbar main { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px); }
@media (min-width: 1024px) { .tabbar { display: none; } body.has-tabbar main { padding-bottom: 64px; } }

.banner { background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.35; padding: 7px var(--gutter); display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }

/* Buttons */
.btn { --bg: var(--surface); --fg: var(--ink); --bd: var(--line-strong); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background var(--t1), border-color var(--t1), color var(--t1); -webkit-tap-highlight-color: transparent; }
.btn .ic { width: 18px; height: 18px; }
.btn:hover { --bg: var(--surface-2); --bd: var(--ink-3); }
.btn:active { filter: brightness(.95); }
.btn.primary { --bg: var(--brand); --fg: var(--on-brand); --bd: var(--brand); }
.btn.primary:hover { --bg: var(--brand-hover); --bd: var(--brand-hover); }
.btn.accent { --bg: var(--accent); --fg: var(--on-accent); --bd: var(--accent); }
.btn.soft { --bg: var(--brand-soft); --fg: var(--brand-text); --bd: transparent; }
.btn.soft:hover { --bd: transparent; filter: brightness(.97); }
.btn.ghost { --bg: transparent; --bd: transparent; }
.btn.ghost:hover { --bg: var(--surface-2); --bd: transparent; }
.btn.danger { --fg: var(--bad); }
.btn.danger:hover { --bg: var(--bad-soft); --bd: var(--bad); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading .ic { opacity: 0; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fg); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--brand-text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.link:hover { text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.back:hover { color: var(--ink); }

/* Forms */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .err { font-size: 13px; color: var(--bad); display: flex; gap: 6px; align-items: center; }
.input { width: 100%; height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 16px; outline: none; transition: border-color var(--t1), box-shadow var(--t1); }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
textarea.input { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
select.input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2366736c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: background var(--t1), color var(--t1); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg.block { display: flex; } .seg.block button { flex: 1; justify-content: center; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter); margin: 0 calc(-1 * var(--gutter)); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background var(--t1), border-color var(--t1), color var(--t1); }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--r-xs); font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.wait { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.pink { background: var(--accent-soft); color: var(--accent-text); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card.pad { padding: 16px; }
@media (min-width: 768px) { .card.pad { padding: 24px; } }
.section { margin-top: 32px; }
@media (min-width: 1024px) { .section { margin-top: 48px; } }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

/* Product grid */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1360px) { .pgrid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .pgrid.wide { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 2000px) { .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .pgrid.wide { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 2000px) { :root { --maxw: 2200px; } }
.pcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.pcard .media { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.pcard:hover .media img { transform: scale(1.03); }
.pcard .flag { position: absolute; top: 8px; left: 8px; }
.pcard .body { display: grid; gap: 3px; }
.pcard .pr { display: flex; align-items: baseline; gap: 8px; }
.pcard .pr .price { font-size: 17px; }
.pcard .pr .old { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.pcard .name { font-size: 15px; line-height: 1.35; color: var(--ink); }
.pcard .meta { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); min-width: 0; }
.pcard .meta .ic { width: 14px; height: 14px; }
.star { color: var(--star); }
@media (min-width: 1024px) { .pcard .pr .price { font-size: 18px; } }

/* Store cards */
.sgrid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); }
.sgrid::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .sgrid { grid-auto-columns: minmax(280px, 44%); } }
@media (min-width: 1024px) { .sgrid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); overflow: visible; padding: 0; margin: 0; gap: 20px; } }
.scard { scroll-snap-align: start; display: grid; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t1), box-shadow var(--t2); }
.scard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.scard .cover { aspect-ratio: 16 / 7; background: var(--surface-2); overflow: hidden; }
.scard .cover img { width: 100%; height: 100%; object-fit: cover; }
.scard .info { padding: 12px 14px 14px; display: grid; gap: 4px; }
.scard .name { font-weight: 650; font-size: 16px; }
.scard .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); }
.scard .meta span { display: inline-flex; align-items: center; gap: 4px; }
.scard .meta .ic { width: 14px; height: 14px; color: var(--ink-3); }

/* Lists */
.list { display: grid; gap: 8px; min-width: 0; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 64px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; width: 100%; text-align: left; font: inherit; transition: border-color var(--t1); }
a.lrow:hover, button.lrow:hover { border-color: var(--line-strong); }
.lrow .thumb { width: 56px; height: 56px; border-radius: var(--r); overflow: hidden; flex: none; background: var(--surface-2); }
.lrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lrow > .ic { color: var(--ink-3); }

.kv { display: grid; gap: 10px; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.kv .total { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 18px; }
.kv .total dt { color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding-bottom: 16px; color: var(--ink-3); font-size: 15px; }
.steps li:last-child { padding-bottom: 0; }
.steps .dot { position: relative; z-index: 1; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); }
.steps .dot .ic { width: 12px; height: 12px; stroke-width: 3; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.steps li.done { color: var(--ink-2); }
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.steps li.done:not(:last-child)::after { background: var(--ok); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now .dot { border-color: var(--brand); }
.steps li.now .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.steps small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; }

.countdown { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.countdown i { display: block; height: 100%; background: var(--brand); transition: width 1s linear; }
.countdown.low i { background: var(--bad); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; font-size: 14px; font-weight: 600; }
.switch input { appearance: none; width: 40px; height: 24px; margin: 0; border-radius: 12px; background: var(--line-strong); position: relative; transition: background var(--t2); cursor: pointer; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--t2) var(--ease); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(16px); }

.stat { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.stat small { color: var(--ink-3); font-size: 13px; }
.stat b { font-weight: 700; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 16px; color: var(--ink-2); }
.empty .ic { width: 36px; height: 36px; color: var(--ink-3); stroke-width: 1.5; margin-bottom: 4px; }
.empty h3 { color: var(--ink); font-size: 18px; }
.empty .btn { margin-top: 8px; }

.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.notice .ic { margin-top: 1px; flex: none; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.wait { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.pink { background: var(--accent-soft); color: var(--accent-text); }
.notice b { color: inherit; }

/* Sheet */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; justify-items: center; }
.sheet .scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade var(--t2) var(--ease); }
.sheet .panel { position: relative; width: 100%; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 16px 16px 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-pop); animation: rise 260ms var(--ease); overscroll-behavior: contain; }
.sheet .grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 4px auto 12px; }
.sheet .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet .head h2 { font-size: 20px; }
@media (min-width: 720px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet .panel { width: min(460px, 100%); border-radius: var(--r-xl); padding: 24px; max-height: 88vh; animation: pop 220ms var(--ease); }
  .sheet.wide .panel { width: min(760px, 100%); }
  .sheet .grab { display: none; }
}
@keyframes rise { from { transform: translateY(32px); opacity: 0; } }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
body.locked { overflow: hidden; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--ground); font-size: 15px; box-shadow: var(--shadow-pop); animation: rise 240ms var(--ease); }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

.map { height: 240px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); z-index: 0; }
.map.tall { height: 340px; }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 10px; }

.sticky-cta { position: sticky; bottom: 0; z-index: 30; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
body.has-tabbar .sticky-cta { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: 12px; }
@media (min-width: 1024px) { .sticky-cta, body.has-tabbar .sticky-cta { position: static; margin: 0; padding: 0; background: none; border: 0; } }

.foot { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.foot .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; gap: 28px; }
@media (min-width: 768px) { .foot .wrap { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot a { color: var(--ink-2); text-decoration: none; display: flex; min-height: 32px; align-items: center; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot h4 { color: var(--ink); font-size: 14px; margin-bottom: 6px; letter-spacing: 0; }
.foot .copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
body.has-tabbar .foot { margin-bottom: calc(-1 * (var(--tabbar-h) + env(safe-area-inset-bottom) + 24px)); padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.has-tabbar .foot { margin-bottom: -64px; padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
