:root {
  --bg: #f7f5f3;
  --surface: #ffffff;
  --chip: #eef0ef;
  --ink: #14201e;
  --ink2: #44514f;
  --ink3: #7a8583;
  --line: #e4e8e7;
  --brand: #c2410c;
  --brand-soft: #fdece2;
  --on-brand: #ffffff;
  --accent: #f6c945;
  --good: #138a59;
  --warn: #c75a1c;
  --focus: #ea580c;
  --radius: 22px;
  --nav-h: 66px;
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

:root[data-scheme="dark"] {
  --bg: #141210;
  --surface: #1f1c19;
  --chip: #2c2824;
  --ink: #eef5f3;
  --ink2: #c3d1ce;
  --ink3: #8b9a97;
  --line: #26332f;
  --brand: #fb923c;
  --brand-soft: #3a2214;
  --on-brand: #2a1203;
  --good: #4fd096;
  --warn: #ff9a5c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
body.locked { overflow: hidden; }
button, input, select, a { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.bar { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.scrolled { border-bottom-color: var(--line); }
.logo { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.bar-title { flex: 1; min-width: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang { display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px; border-radius: 999px; background: var(--surface); color: var(--ink2); flex: none; }
.lang .i { width: 18px; height: 18px; }
.lang select { appearance: none; border: 0; background: none; padding: 0 2px; font-weight: 700; font-size: 14px; color: var(--ink); }

main { max-width: 600px; margin: 0 auto; padding: 8px 16px calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }

.block { padding: 16px; margin-bottom: 10px; border-radius: var(--radius); background: var(--surface); }
.label { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink2); }
.error { color: var(--warn); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.hint { color: var(--ink3); font-size: 14px; margin: 10px 2px; }

.amount { display: flex; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--line); transition: border-color .2s; }
.amount:focus-within { border-color: var(--brand); }
.amount input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.amount span { color: var(--ink3); font-weight: 600; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--chip); font-weight: 600; font-size: 14px; color: var(--ink); transition: background-color .15s, color .15s, transform .1s; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--brand); color: var(--on-brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 4px; padding: 0 16px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--chip); }
.segmented button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; color: var(--ink2); transition: background-color .15s, color .15s; }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.family { display: grid; gap: 4px; }
.stepper { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.stepper + .stepper { border-top: 1px solid var(--line); }
.stepper-text { flex: 1; display: grid; }
.stepper-text small { color: var(--ink3); font-size: 13px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--chip); font-size: 20px; font-weight: 600; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

.more summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; min-height: 44px; }
.more summary::-webkit-details-marker { display: none; }
.more summary > span:first-child { flex: 1; display: grid; }
.more summary small { color: var(--ink3); font-size: 13px; }
.more summary .i { transition: transform .2s; color: var(--ink3); }
.more[open] summary { margin-bottom: 14px; }
.more[open] summary .i { transform: rotate(180deg); }
.toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.toggle { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 2px solid transparent; background: var(--chip); font-weight: 600; font-size: 13px; color: var(--ink2); }
.toggle[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.pick-dishes { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px dashed var(--line); background: transparent; font-weight: 600; text-align: left; color: var(--ink2); }
.pick-dishes span { flex: 1; }
.pick-dishes.active { border-style: solid; border-color: var(--brand); color: var(--ink); }

.cta { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 5; padding: 10px 16px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.cta .primary { width: 100%; max-width: 568px; margin: 0 auto; display: flex; }
.primary, .ghost { min-height: 54px; border: 0; border-radius: 16px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; text-decoration: none; transition: transform .1s, opacity .15s; }
.primary { background: var(--brand); color: var(--on-brand); }
.ghost { background: var(--surface); color: var(--ink); }
.primary:active, .ghost:active { transform: scale(.98); }
.primary:disabled { opacity: .6; cursor: progress; }
.wide { width: 100%; margin-top: 14px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; flex: none; }
.round.small { width: 38px; height: 38px; background: var(--chip); color: var(--ink3); }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; grid-template-columns: repeat(3, 1fr); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
.dock button { border: 0; background: none; display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--ink3); font-size: 12px; font-weight: 700; }
.dock .ico { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; transition: background-color .2s, color .2s; }
.dock button[aria-current="page"] { color: var(--brand); }
.dock button[aria-current="page"] .ico { background: var(--brand-soft); }

.answer { padding: 18px; border-radius: var(--radius); background: var(--surface); }
.answer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink3); font-size: 14px; }
.link-button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 0; color: var(--brand); font-weight: 700; font-size: 14px; flex: none; }
.link-button .i { width: 17px; height: 17px; }
.answer h1 { margin: 8px 0 12px; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.meter { height: 8px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--warn); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.meter.ok i { background: var(--good); }
.answer-store { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 16px; background: var(--brand-soft); }
.answer-store b { flex: 1; }
.answer-store > span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }
.facts div { padding: 10px 12px; border-radius: 14px; background: var(--chip); }
.facts dt { font-size: 13px; color: var(--ink3); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.boost { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 16px; background: #fff6d8; color: #3b2f05; font-weight: 600; font-size: 15px; }
:root[data-scheme="dark"] .boost { background: #3a3215; color: #f8e7a8; }
.boost button { min-height: 44px; border: 0; border-radius: 12px; background: var(--accent); color: #2a2003; font-weight: 700; }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }

.tabs { position: sticky; top: 56px; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 14px 0 12px; border-radius: 14px; background: var(--chip); }
.tabs button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; color: var(--ink2); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.day { padding: 4px 14px 6px; border-radius: var(--radius); background: var(--surface); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 6px; }
.day-head b { font-size: 17px; }
.day-head span { color: var(--ink3); font-size: 14px; font-variant-numeric: tabular-nums; }
.meal { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.meal-photo { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex: none; background: var(--chip); }
.meal-text { flex: 1; min-width: 0; display: grid; }
.meal-text small { color: var(--ink3); font-size: 13px; font-weight: 600; }
.meal-text b { font-size: 16px; }
.meal > .i { color: var(--ink3); width: 18px; height: 18px; }
.meal-photo img, .recipe-photo img, .pick-photo img, .mini img, .sheet-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink3); background: var(--chip); }
.no-photo .i { width: 42%; height: 42%; stroke-width: 1.4; }

.progress { margin: 0 2px 10px; font-weight: 600; font-size: 14px; color: var(--ink2); }
.progress span { display: block; margin-bottom: 6px; }
.items { list-style: none; margin: 0; padding: 2px 14px; border-radius: var(--radius); background: var(--surface); }
.items li + li { border-top: 1px solid var(--line); }
.item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; cursor: pointer; }
.item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; transition: background-color .15s, border-color .15s; }
.box .i { width: 16px; height: 16px; stroke-width: 2.8; }
.item input:checked + .box { background: var(--good); border-color: var(--good); color: #fff; }
.item input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }
.item-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.item-main b { font-weight: 600; }
.qty { color: var(--ink2); font-size: 14px; }
.uses { color: var(--ink3); font-size: 13px; }
.item-side { display: grid; justify-items: end; gap: 4px; }
.item-side b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.item.done .item-main, .item.done .item-side { opacity: .45; }
.item.done .item-main b { text-decoration: line-through; }
.tag { padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--ink3); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tag.live { background: var(--brand-soft); color: var(--brand); margin-right: 6px; }
.price-note { color: var(--ink3); font-size: 13px; margin: 10px 2px 0; }

.compare { margin-top: 10px; padding: 0 14px; border-radius: var(--radius); background: var(--surface); }
.compare summary { display: flex; align-items: center; gap: 10px; min-height: 54px; list-style: none; cursor: pointer; font-weight: 700; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary span { flex: 1; }
.compare summary .i:last-child { color: var(--ink3); transition: transform .2s; }
.compare[open] summary .i:last-child { transform: rotate(180deg); }
.compare-lines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.compare-lines li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--chip); }
.compare-lines span { flex: 1; font-weight: 600; }
.compare-lines small { color: var(--ink3); font-size: 13px; text-align: right; }
.worse { color: var(--warn); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -14px; }
.prices { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: 10px 8px; text-align: right; white-space: nowrap; }
.prices th:first-child { padding-left: 14px; }
.prices td:last-child, .prices th:last-child { padding-right: 14px; }
.prices thead th { color: var(--ink3); font-size: 13px; font-weight: 600; }
.prices tbody th { text-align: left; font-weight: 600; white-space: normal; }
.prices tbody tr { border-top: 1px solid var(--line); }
.prices td.low { color: var(--good); font-weight: 800; }
.prices td.live { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.prices td.missing { color: var(--ink3); }

.credits { color: var(--ink3); font-size: 12px; text-align: center; margin: 18px 0 0; }
.credits a { color: inherit; }

.search { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; margin-bottom: 10px; border-radius: 14px; background: var(--surface); color: var(--ink3); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.recipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.recipe-card { display: grid; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--surface); text-align: left; }
.recipe-photo { aspect-ratio: 4 / 3; overflow: hidden; display: block; background: var(--chip); }
.recipe-text { display: grid; gap: 1px; padding: 10px 12px 12px; }
.recipe-text b { font-size: 15px; line-height: 1.25; }
.recipe-text small { color: var(--ink3); font-size: 13px; }

.sheet-wrap { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 12, .5); animation: fade .2s both; }
.sheet { position: relative; width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; background: var(--bg); padding-bottom: calc(24px + env(safe-area-inset-bottom)); animation: up .3s cubic-bezier(.2, .8, .2, 1) both; }
.sheet-hero { position: relative; height: 230px; background: var(--chip); }
.sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet-body { padding: 16px; }
.sheet-body h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.01em; }
.sheet-body h3 { margin: 20px 0 6px; font-size: 17px; }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--bg); }
.sheet-head h2 { margin: 0; font-size: 20px; }
.sheet-actions { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 16px; background: var(--bg); }
.sheet-actions .primary { flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; }
.video { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 700; }
.video span { flex: 1; }
.ingredients { list-style: none; margin: 0; padding: 2px 16px; border-radius: 18px; background: var(--surface); }
.ingredients li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; }
.ingredients li + li { border-top: 1px solid var(--line); }
.ingredients b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cook-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 8px; }
.cook-steps li { counter-increment: step; position: relative; padding: 14px 14px 14px 54px; border-radius: 16px; background: var(--surface); }
.cook-steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 8px; }
.pick-card { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: 16px; border: 2px solid transparent; background: var(--surface); text-align: left; }
.pick-card[aria-pressed="true"] { border-color: var(--brand); }
.pick-photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: block; }
.pick-name { font-weight: 600; font-size: 14px; line-height: 1.25; padding-right: 26px; }
.tick { position: absolute; right: 10px; bottom: 10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: transparent; }
.tick .i { width: 14px; height: 14px; stroke-width: 2.8; }
.pick-card[aria-pressed="true"] .tick { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.profile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); }
.profile-photo { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile div { flex: 1; min-width: 0; display: grid; }
.profile small { color: var(--ink3); }
.card { margin-top: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); }
.muted { color: var(--ink3); font-size: 14px; }
.big { margin: 2px 0 10px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lines { list-style: none; margin: 12px 0 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); }
.section { margin: 22px 2px 10px; font-size: 18px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history-item { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 18px; background: var(--surface); }
.history-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; }
.history-plates { display: flex; flex: none; }
.mini { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid var(--surface); margin-left: -10px; background: var(--chip); display: block; }
.mini:first-child { margin-left: 0; }
.history-text { display: grid; min-width: 0; }
.history-text small { color: var(--ink3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings .setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.settings .setting + .setting { border-top: 1px solid var(--line); }
.setting-input { display: flex; align-items: baseline; gap: 6px; }
.setting-input input { width: 140px; border: 0; outline: 0; background: none; text-align: right; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.setting-input small { color: var(--ink3); }
.mc { display: inline-flex; align-items: center; gap: 6px; }
.mc button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--chip); font-size: 18px; }
.mc output { min-width: 22px; text-align: center; font-weight: 800; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 28px 18px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty p { margin: 0 0 6px; color: var(--ink3); }
.skeleton { height: 120px; margin-bottom: 10px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface), var(--chip), var(--surface)); background-size: 200% 100%; animation: shimmer 1.1s infinite linear; }
.skeleton.tall { height: 220px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

@media (max-width: 360px) {
  .amount input { font-size: 28px; }
  .answer h1 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.store-label { margin-top: 14px; }
.near { margin-top: 10px; }
.near-find { margin-top: 0; }
.near-title { margin: 6px 0 8px; font-size: 16px; }
.map { width: 100%; height: 200px; border: 0; border-radius: 16px; background: var(--chip); }
.near-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.near-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--chip); }
.near-text { flex: 1; min-width: 0; display: grid; }
.near-text small { color: var(--ink3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.route { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; text-decoration: none; }
.route .i { width: 16px; height: 16px; }
.switch { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--chip); position: relative; cursor: pointer; transition: background-color .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(20px); }

.ph { position: relative; display: block; width: 100%; height: 100%; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-photo { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex: none; background: var(--chip); }
