/* BiteQuota — mobile-first, compact UI. Tokens first; themes via data-theme on <html>.
   No data-theme = System (Light or Dark from the OS). Calories stay warm and protein stays
   blue in every theme so the two figures keep their meaning. */
:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --text: #131715;
  --muted: #5d6862;
  --faint: #8a948f;
  --border: #dde3df;
  --accent: #0b7a53;
  --accent-ink: #ffffff;
  --accent-soft: #e2f3ec;
  --cal: #c2410c;
  --cal-soft: #fdeee5;
  --pro: #2f55d4;
  --pro-soft: #e8edfd;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --shadow: 0 1px 2px rgba(16, 24, 20, .06), 0 4px 16px rgba(16, 24, 20, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --tabbar-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1211; --surface: #171b19; --surface-2: #1f2522; --text: #e8eeea; --muted: #9ba6a0; --faint: #6f7a74;
    --border: #2a312e; --accent: #34c28a; --accent-ink: #062016; --accent-soft: #15302499;
    --cal: #ff8f57; --cal-soft: #3a1f1299; --pro: #87a2ff; --pro-soft: #1c254599;
    --warn: #f2c46b; --warn-soft: #33290f; --shadow: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1211; --surface: #171b19; --surface-2: #1f2522; --text: #e8eeea; --muted: #9ba6a0; --faint: #6f7a74;
  --border: #2a312e; --accent: #34c28a; --accent-ink: #062016; --accent-soft: #15302499;
  --cal: #ff8f57; --cal-soft: #3a1f1299; --pro: #87a2ff; --pro-soft: #1c254599;
  --warn: #f2c46b; --warn-soft: #33290f; --shadow: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}

/* Midnight: deep purple dark theme */
:root[data-theme="midnight"] {
  --bg: #0e0b1a; --surface: #171329; --surface-2: #221c3b; --text: #ece8fb; --muted: #a9a2c7; --faint: #7d759e;
  --border: #2f2852; --accent: #b39cff; --accent-ink: #160b33; --accent-soft: #2c2156;
  --cal: #ff9e7d; --cal-soft: #3a1f30; --pro: #82c8ff; --pro-soft: #172a4d;
  --warn: #f4c86f; --warn-soft: #34290f; --shadow: 0 1px 2px rgba(0,0,0,.5);
  color-scheme: dark;
}
/* Ocean: navy and teal dark theme */
:root[data-theme="ocean"] {
  --bg: #07131c; --surface: #0d1c28; --surface-2: #142a3a; --text: #e4f0f7; --muted: #97afc0; --faint: #6b8698;
  --border: #1e3547; --accent: #34d1c2; --accent-ink: #032220; --accent-soft: #0f3a38;
  --cal: #ffa463; --cal-soft: #3a2612; --pro: #7fb2ff; --pro-soft: #14284a;
  --warn: #f2c46b; --warn-soft: #33290f; --shadow: 0 1px 2px rgba(0,0,0,.5);
  color-scheme: dark;
}
/* Blossom: soft rose light theme */
:root[data-theme="blossom"] {
  --bg: #fbf5f8; --surface: #ffffff; --surface-2: #f6eaf0; --text: #1f151a; --muted: #6d5963; --faint: #8f7a85;
  --border: #eedbe4; --accent: #b8246a; --accent-ink: #ffffff; --accent-soft: #fbe2ee;
  --cal: #be3d0b; --cal-soft: #fdece3; --pro: #3347c7; --pro-soft: #e9ecfd;
  --warn: #8a5a00; --warn-soft: #fff4dc;
  color-scheme: light;
}
/* Sand: warm neutral light theme */
:root[data-theme="sand"] {
  --bg: #f7f3ec; --surface: #fffdf9; --surface-2: #efe8dc; --text: #1e1a14; --muted: #675d4f; --faint: #8c8170;
  --border: #e4dacb; --accent: #8a5a12; --accent-ink: #ffffff; --accent-soft: #f4e7cf;
  --cal: #b83a0a; --cal-soft: #fbe9dc; --pro: #2f4fc4; --pro-soft: #e7ebfa;
  --warn: #7d5200; --warn-soft: #fbefd2;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 var(--font);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.topbar-ctx { display: flex; gap: 4px; flex: none; }
.city-chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px;
  padding: 5px 10px; font-size: 12.5px; font-weight: 650; cursor: pointer; line-height: 1.2;
}
.city-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.city-chip:active { transform: scale(.96); }
.city-pref { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 370px) { .brand span { display: none; } }

main { max-width: 680px; margin: 0 auto; padding: 12px 16px 24px; }
.view h1 { font-size: 22px; letter-spacing: -.015em; margin: 6px 0 12px; }
.view h2, .sheet h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 8px; font-weight: 650; }

/* Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 600;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--accent); }

/* Cards & controls */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.controls { padding: 12px; display: grid; gap: 10px; }
.goal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal { border-radius: var(--radius-sm); padding: 8px 10px 10px; }
.goal.cal { background: var(--cal-soft); }
.goal.pro { background: var(--pro-soft); }
.goal label { display: block; font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.goal.cal label b { color: var(--cal); }
.goal.pro label b { color: var(--pro); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper input {
  width: 100%; min-width: 0; border: 0; background: transparent; font-size: 26px; font-weight: 750; letter-spacing: -.02em;
  padding: 0; text-align: center; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.goal:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.goal.cal input { color: var(--cal); }
.goal.pro input { color: var(--pro); }
.stepper button {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text);
  font-size: 18px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.stepper button:active { transform: scale(.94); }
.unit { font-size: 12px; color: var(--muted); text-align: center; margin-top: -2px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; border-radius: 8px; padding: 7px 4px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: grid; gap: 4px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; }
select, input[type="search"], input[type="number"].plain {
  width: 100%; min-width: 0; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  padding: 0 10px; font-size: 14px;
}
select { appearance: none; -webkit-appearance: none; padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
select:focus, input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Results */
.summary { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 14px 2px 8px; font-size: 13px; color: var(--muted); }
.summary strong { color: var(--text); }
.note { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; margin: 0 0 8px; }
.note.warn { color: var(--warn); background: var(--warn-soft); }
.results { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.result {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; text-align: left; padding: 11px 12px 10px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.result:active { background: var(--surface-2); }
.result .name { font-weight: 650; font-size: 15px; line-height: 1.25; }
.result .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.figs { display: flex; gap: 12px; align-items: flex-start; text-align: right; }
.fig b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.fig small { font-size: 11px; color: var(--muted); font-weight: 600; }
.fig.cal b { color: var(--cal); }
.fig.pro b { color: var(--pro); }
.fig.unknown b { color: var(--faint); font-size: 14px; font-weight: 650; padding-top: 4px; }
.meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bar { flex: 1 1 80px; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--cal); border-radius: 2px; opacity: .75; }
.chip { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.pro { background: var(--pro-soft); color: var(--pro); }
.chip.acc { background: var(--accent-soft); color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-weight: 650; cursor: pointer; text-decoration: none; color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.more { margin-top: 10px; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .big { font-size: 17px; font-weight: 650; color: var(--text); margin-bottom: 6px; }
.skeleton { height: 66px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite linear; }
@keyframes sh { to { background-position: -200% 0; } }

/* Bottom sheet */
.sheet {
  width: 100%; max-width: 680px; max-height: 88vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 20px 20px 0 0;
  background: var(--surface); color: var(--text); box-shadow: 0 -8px 40px rgba(0,0,0,.25);
}
.sheet::backdrop { background: rgba(8, 12, 10, .45); }
.sheet[open] { animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .sheet[open], .skeleton { animation: none; } }
.sheet-inner { padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 88vh; }
.grabber { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 8px; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sheet-head h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.sheet-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.icon-btn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 18px; cursor: pointer; }
.hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.hero div { border-radius: var(--radius-sm); padding: 10px; background: var(--surface-2); }
.hero .cal { background: var(--cal-soft); }
.hero .pro { background: var(--pro-soft); }
.hero b { display: block; font-size: 24px; font-weight: 780; letter-spacing: -.02em; line-height: 1.1; }
.hero .cal b { color: var(--cal); }
.hero .pro b { color: var(--pro); }
.hero small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hero .unk b { font-size: 16px; color: var(--faint); padding: 5px 0 3px; }
.nutr { width: 100%; border-collapse: collapse; font-size: 14px; }
.nutr td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.nutr td:last-child { text-align: right; font-weight: 600; }
.nutr td.sub { padding-left: 14px; color: var(--muted); }
.nutr .unk { color: var(--faint); font-weight: 500; font-style: italic; }
.opt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.opt-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; }
.opt-list .vals { text-align: right; white-space: nowrap; font-weight: 650; }
.opt-list .delta { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.loc-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.loc-list li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 8px; }
.loc-list li span:last-child { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Settings */
.list { padding: 4px 12px; }
.list .item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list .item:last-child { border-bottom: 0; }
.list .item > span { font-size: 14px; }
.list .item .ctl { width: 55%; max-width: 240px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stats div { padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.stats b { display: block; font-size: 18px; }
.stats small { color: var(--muted); font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(10px);
  background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.noscript { padding: 16px; }

@media (min-width: 700px) {
  .results { grid-template-columns: 1fr; }
  .sheet { margin: auto; border-radius: 20px; }
}

/* Theme picker */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-card {
  display: grid; gap: 6px; padding: 8px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--surface); cursor: pointer; text-align: left;
}
.theme-card[aria-pressed="true"] { border-color: var(--accent); }
.theme-card .pv { height: 46px; border-radius: 7px; position: relative; overflow: hidden; border: 1px solid rgba(127,127,127,.25); }
.theme-card .pv i { position: absolute; bottom: 7px; height: 8px; border-radius: 4px; }
.theme-card .pv i:nth-child(1) { left: 7px; width: 34%; }
.theme-card .pv i:nth-child(2) { left: 44%; width: 22%; }
.theme-card .pv b { position: absolute; top: 7px; left: 7px; width: 18px; height: 18px; border-radius: 50%; }
.theme-card .pv u { position: absolute; top: 7px; left: 30px; right: 7px; height: 18px; border-radius: 5px; }
.theme-card span { font-size: 13px; font-weight: 650; }
.theme-card small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }

/* ---------- v1.0 components ---------- */
.tabbar a { position: relative; }
.badge {
  position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 750; line-height: 18px; text-align: center;
}
.seg.mode { margin-bottom: 10px; }
a.result { color: inherit; text-decoration: none; }
.result.rest { align-items: center; }
.fig b { color: var(--text); }
.star-inline { color: var(--accent); font-size: 13px; }

.back { display: inline-block; margin: 2px 0 2px; font-weight: 650; text-decoration: none; font-size: 14px; }
.locs, .components { margin: 10px 0; }
.locs { padding: 10px 12px; }
.locs summary, .components summary { cursor: pointer; font-weight: 650; font-size: 14px; }
.components summary { color: var(--muted); padding: 8px 2px; }
.loc-city { margin-top: 8px; font-size: 13.5px; }
.loc-city b { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.menu-list { list-style: none; margin: 0; padding: 0 12px; }
.menu-list li + li { border-top: 1px solid var(--border); }
.menu-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0;
  background: none; text-align: left; cursor: pointer;
}
.menu-row .mname { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.menu-row .sub { display: block; font-size: 12.5px; color: var(--muted); }
.menu-row.over { opacity: .5; }
.mfig { white-space: nowrap; font-size: 13px; color: var(--muted); text-align: right; }
.mfig b.c { color: var(--cal); font-size: 15px; }
.mfig b.p { color: var(--pro); font-size: 15px; }
.mfig .unk, .nutr .unk { color: var(--faint); }

.head-btns { display: flex; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.icon-btn.fav.on { color: var(--accent); }
.icon-btn.fav.on svg { fill: currentColor; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 14px; }
.sheet-actions { margin: 12px 0 4px; }
.opt { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-size: 13.5px; }
.opt-list li:has(.opt) { padding: 0; }
.opt-list .opt { padding: 8px 10px; }
.opt.check { align-items: center; }
.opt.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.opt.check > span:first-of-type { flex: 1; }
.opt-list li:has(button.opt):active { background: var(--surface); }

.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }

.totals { padding: 14px; display: grid; gap: 14px; }
.tot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.inc { text-transform: none; letter-spacing: 0; font-weight: 650; color: var(--warn); background: var(--warn-soft); padding: 2px 7px; border-radius: 999px; font-size: 11.5px; }
.tot-val { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 6px; }
.tot-val b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tot-val span { font-size: 13px; color: var(--muted); }
.tot.cal b { color: var(--cal); }
.tot.pro b { color: var(--pro); }
.bar.big { height: 8px; border-radius: 4px; }
.tot.pro .bar i { background: var(--pro); }
.tot.cal.over .bar i { background: var(--cal); opacity: 1; }
.tot.cal.over .tot-val span { color: var(--cal); font-weight: 650; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.macros div { background: var(--surface-2); border-radius: 8px; padding: 6px 8px; }
.macros b { display: block; font-size: 15px; }
.macros sup { font-size: 10px; color: var(--warn); margin-left: 1px; }
.macros small { font-size: 11px; color: var(--muted); }
.targets { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.targets label { display: flex; align-items: center; gap: 6px; }
.targets input { width: 78px; height: 32px; }

.entries { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.entry { padding: 10px 12px; display: grid; gap: 8px; }
.entry.gone, .saved-row.gone { opacity: .65; }
.entry-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.entry-name { display: block; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; min-width: 0; }
.entry-name .name { display: block; font-weight: 650; font-size: 15px; line-height: 1.25; }
.entry-name .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.field.alt select { height: 34px; font-size: 13px; }
.addon-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 650; }
.entry-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 32px; border: 0; background: var(--surface-2); font-size: 17px; cursor: pointer; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.figs.small .fig b { font-size: 16px; }
.save-row { display: flex; gap: 8px; margin: 14px 0 8px; }
.save-row input { flex: 1; height: 40px; }
.saved-row { padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: start; }
.saved-row .row-actions, .saved-row .note { grid-column: 1 / -1; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.list input.plain { height: 36px; }
label.btn { cursor: pointer; }
