/* ---------- Theme ---------- */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --border-strong: rgba(11, 11, 11, 0.18);
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-track: #cde2fb;
  --accent-wash: rgba(42, 120, 214, 0.08);
  --critical: #d03b3b;
  --critical-wash: rgba(208, 59, 59, 0.08);
  --good-ink: #006300;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 4px 16px rgba(11, 11, 11, 0.04);
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tabbar-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --accent: #3987e5;
    --accent-ink: #86b6ef;
    --accent-track: rgba(57, 135, 229, 0.22);
    --accent-wash: rgba(57, 135, 229, 0.12);
    --critical: #e05252;
    --critical-wash: rgba(224, 82, 82, 0.12);
    --good-ink: #0ca30c;
    --shadow: none;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--page);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
  -webkit-tap-highlight-color: transparent;
}
h1, h2 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 16px; }
p { margin: 0; }
a { color: var(--accent-ink); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }

.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; padding: 0 !important; margin: -1px;
}
#date-input { left: 50%; top: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Top bar & tabs ---------- */
/* No backdrop-filter on the header itself: it would trap the fixed mobile tab bar inside it. */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
@media (min-width: 760px) {
  .topbar {
    background: color-mix(in srgb, var(--page) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
  }
}
.topbar-inner {
  max-width: 1040px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 1; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; white-space: nowrap; }
.brand img { border-radius: 8px; }
@media (min-width: 760px) { .brand-wrap { justify-content: flex-start; } }

.sync-status {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.sync-status:hover { background: var(--surface-2); }
.sync-status svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sync-status .spinner { width: 13px; height: 13px; margin: 0; }
.sync-status.is-error { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 40%, transparent); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  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);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--border);
}
.tab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; color: var(--muted); font-size: 11.5px; font-weight: 550;
}
.tab-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-btn[aria-current="page"] { color: var(--accent); }
.tab-btn[aria-current="page"] svg { stroke-width: 2.2; }

@media (min-width: 760px) {
  body { padding-bottom: 48px; }
  .tabbar {
    position: static; height: auto; padding: 4px; display: flex; gap: 2px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .tab-btn { flex-direction: row; gap: 7px; font-size: 14px; padding: 7px 14px; border-radius: 9px; color: var(--ink-2); }
  .tab-btn svg { width: 18px; height: 18px; }
  .tab-btn[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
  .tab-btn[aria-current="page"] svg { color: var(--accent); }
}

/* ---------- Layout ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: 16px; }
.tab { display: flex; flex-direction: column; gap: 14px; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.today-grid { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) {
  .today-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
#tab-presets, #tab-history, #tab-settings { max-width: 760px; margin: 0 auto; width: 100%; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 2px; flex-wrap: wrap; }
.section-head p { margin-top: 4px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); min-width: 0;
}
.card > h2 + * { margin-top: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-title { display: block; font-weight: 650; font-size: 16px; margin-bottom: 10px; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border-strong); font-weight: 600; font-size: 14.5px;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--critical); }
.btn.danger.solid { background: var(--critical); color: #fff; border-color: transparent; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); flex: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.ghost { border-color: transparent; background: transparent; width: 34px; height: 34px; }
.icon-btn.ghost svg { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

input[type="number"], input[type="text"], input[type="search"], input[type="date"] {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: var(--surface); font-size: 16px;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { padding-right: 52px; }
.input-suffix span { position: absolute; right: 12px; color: var(--muted); pointer-events: none; font-size: 14px; }
.input-suffix.wide { max-width: 260px; }
.input-suffix.wide input { padding-right: 96px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Day navigation ---------- */
.daynav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daynav-label { position: relative; text-align: center; }
.day-title { font-size: 20px; font-weight: 650; }
.day-sub { background: none; border: 0; padding: 0 4px; color: var(--ink-2); font-size: 14px; position: relative; }
.day-sub::after { content: " \25BE"; color: var(--muted); }
.today-link { margin-left: 6px; }

/* ---------- Summary ---------- */
.summary-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.label { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.hero { font-size: 56px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; margin-top: 2px; }
.hero-unit { font-size: 18px; font-weight: 550; color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.hero.is-over { color: var(--critical); }
.summary-side { display: flex; gap: 20px; text-align: right; padding-bottom: 6px; }
.summary-side strong { display: block; font-size: 20px; font-weight: 650; }
.meter { height: 12px; border-radius: 999px; background: var(--accent-track); margin-top: 16px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .35s ease; }
.meter.is-over { background: var(--critical-wash); }
.meter.is-over .meter-fill { background: var(--critical); }
.meter-caption { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.status-over { color: var(--critical); font-weight: 600; }

@media (max-width: 420px) {
  .hero { font-size: 48px; }
  .summary-side { gap: 14px; }
  .summary-side strong { font-size: 18px; }
}

/* ---------- Search & results ---------- */
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-wrap input { padding-left: 38px; }

.results { margin-top: 6px; }
.results:empty { display: none; }
.result-group { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 12px 4px 4px; }
.result {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 8px; background: none; border: 0; border-radius: 10px; text-align: left;
}
.result:hover, .result:focus-visible { background: var(--accent-wash); }
.result + .result { border-top: 1px solid var(--border); border-radius: 0; }
.result:hover + .result { border-top-color: transparent; }
.result-name { font-weight: 550; overflow-wrap: anywhere; }
.result-sub { font-size: 12.5px; color: var(--muted); }
.result-kcal { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.result-kcal small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.badge { display: inline-block; font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); margin-right: 6px; vertical-align: 1px; }
.results-note { padding: 12px 6px; color: var(--ink-2); font-size: 14px; }
.online-btn { width: 100%; margin-top: 8px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-track); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

.add-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Picker (amount panel) ---------- */
.picker { margin-top: 10px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-wash); border-radius: 14px; padding: 14px; }
.picker-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.picker-name { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.picker-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 12px; }
.picker-row .field { flex: 1; max-width: 200px; }
.picker-total { text-align: right; }
.picker-total strong { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; }
.picker-total span { color: var(--ink-2); margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 550; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.picker-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.picker-actions .btn.primary { flex: 1; min-width: 140px; }

/* ---------- Preset chips (Today) ---------- */
.preset-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.preset-chip {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left;
  padding: 10px 40px 10px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); min-height: 58px;
}
.preset-chip:hover { border-color: var(--accent); background: var(--accent-wash); }
.preset-chip:active { transform: scale(0.98); }
.preset-chip .p-name { font-weight: 600; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.preset-chip .p-meta { font-size: 12.5px; color: var(--ink-2); }
.preset-chip .p-plus {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
}
.preset-chip .p-plus svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.empty { color: var(--ink-2); font-size: 14px; padding: 6px 2px; }

/* ---------- Log list ---------- */
.log-list, .preset-list { list-style: none; margin: 0; padding: 0; }
.log-item, .preset-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.log-item:first-child, .preset-row:first-child { border-top: 0; }
.log-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: none; border: 0; padding: 4px 6px; border-radius: 8px; }
.log-main:hover { background: var(--surface-2); }
.log-name { font-weight: 550; overflow-wrap: anywhere; }
.log-meta { font-size: 12.5px; color: var(--muted); }
.log-kcal { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-kcal small { font-weight: 400; color: var(--muted); }
.log-total { display: flex; justify-content: space-between; padding: 10px 6px 0; border-top: 1px solid var(--border-strong); margin-top: 4px; font-weight: 650; }

/* ---------- Presets page ---------- */
.preset-row { padding: 10px 0; }
.preset-row .pr-main { flex: 1; min-width: 0; }
.preset-row .pr-name { font-weight: 600; overflow-wrap: anywhere; }
.preset-row .pr-meta { font-size: 13px; color: var(--ink-2); }
.preset-row .btn { min-height: 36px; padding: 0 12px; }

/* ---------- History ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.stat-value { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 3px; }
.stat-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 480px) {
  .stats { gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat-value { font-size: 22px; }
  .stat-value small { display: block; margin: 0; }
}

.chart { position: relative; width: 100%; height: 250px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--accent); transition: opacity .15s; }
.chart .bar.is-dim { opacity: 0.45; }
.chart .target-line { stroke: var(--ink-2); stroke-width: 1.5; fill: none; stroke-linejoin: round; }
.chart .target-label { fill: var(--ink-2); font-size: 11px; font-weight: 600; }
.chart .target-label-bg { fill: var(--surface); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hover-wash { fill: var(--accent-wash); }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-size: 14px; text-align: center; padding: 0 20px; }
.tooltip {
  position: absolute; pointer-events: none; z-index: 5; transform: translate(-50%, calc(-100% - 10px));
  background: var(--ink); color: var(--page); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.tooltip b { font-size: 15px; }
.tooltip .tt-date { opacity: 0.75; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; margin-bottom: 12px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); outline: 1px solid var(--border); }
.seg-inline { margin: 12px 0 0; }

.htable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.htable th { text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.htable td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.htable th:first-child, .htable td:first-child { text-align: left; padding-left: 4px; white-space: normal; }
.htable tr.clickable { cursor: pointer; }
.htable tr.clickable:hover td { background: var(--accent-wash); }
.htable .is-today td:first-child::after { content: "Today"; margin-left: 8px; font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); }
.diff-over { color: var(--critical); }
.diff-under { color: var(--ink-2); }
.table-note { font-size: 13px; color: var(--ink-2); padding: 12px 4px 0; }
.more-row { text-align: center; padding-top: 10px; }
@media (max-width: 480px) {
  .htable th, .htable td { padding-left: 5px; padding-right: 5px; font-size: 14px; }
  .htable .hide-sm { display: none; }
}

/* ---------- Account ---------- */
.account-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px;
}
.account-text { min-width: 0; }
.account-name { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
#account-card > p { margin-top: 12px; }
.account-danger { margin-top: 10px; }
.danger-link { color: var(--critical); font-weight: 550; font-size: 13px; }
.form-error { color: var(--critical); font-size: 14px; font-weight: 550; }
.switch-link { font-size: 13.5px; }

/* ---------- Dialog ---------- */
.dialog {
  width: min(440px, calc(100vw - 24px)); border: 1px solid var(--border); border-radius: 20px; padding: 0;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.dialog::backdrop { background: rgba(10, 10, 10, 0.42); }
.dialog form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dialog h2 { font-size: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.dialog-actions .spacer { flex: 1; }
.dialog .hint { font-size: 13px; color: var(--ink-2); }
.dialog .total-line { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.dialog .total-line strong { font-size: 22px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 50;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 24px);
  background: var(--ink); color: var(--page); padding: 10px 10px 10px 16px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; animation: toast-in .2s ease;
}
.toast button { background: none; border: 0; color: var(--accent-track); font-weight: 700; padding: 6px 10px; border-radius: 8px; }
@media (prefers-color-scheme: dark) { .toast button { color: var(--accent); } }
@media (min-width: 760px) { .toast { bottom: 24px; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
