/* ==========================================================================
   Forkful — GTA healthy food finder
   Self-hosted fonts, a warm editorial look, and a full light/dark system.
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Monochrome fallback used only for food emoji when the OS has no emoji font.
   A color emoji font earlier in the stack always wins when available. */
@font-face {
  font-family: "Noto Emoji";
  src: url("../assets/fonts/noto-emoji-subset6.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+200d, U+2615, U+fe0f, U+1f32d-1f330, U+1f336, U+1f33d, U+1f344-1f37f,
    U+1f382, U+1f52a, U+1f7e9, U+1f7eb, U+1f942-1f944, U+1f950-1f96f, U+1f99e, U+1f9aa,
    U+1f9c0-1f9cb, U+1fad0-1fadc;
}

:root {
  --font-sans: "DM Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Noto Emoji", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --bg: #f6f2e8;
  --bg-deep: #efe9da;
  --surface: #fffdf8;
  --surface-2: #f2ecdf;
  --surface-3: #e8e0d0;
  --ink: #17261c;
  --ink-soft: #3e4d42;
  --muted: #58635a;
  --line: rgba(23, 38, 28, 0.12);
  --line-strong: rgba(23, 38, 28, 0.22);
  --brand: #246c49;
  --brand-strong: #185437;
  --brand-soft: #e1efe4;
  --brand-contrast: #f8fff9;
  --accent: #d9963e;
  --accent-soft: #f7e7cd;
  --protein: #2e7d59;
  --carbs: #ce923b;
  --fat: #b45d46;
  --fiber: #708d3d;
  --sugar: #b96483;
  --sodium: #6c7fa2;
  --danger: #b64a3e;

  --shadow-sm: 0 1px 2px rgba(23, 38, 28, 0.04);
  --shadow-md: 0 14px 35px -18px rgba(23, 38, 28, 0.28);
  --shadow-lg: 0 32px 80px -30px rgba(23, 38, 28, 0.36);
  --shadow-xl: 0 40px 110px -40px rgba(23, 38, 28, 0.48);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d1410;
  --bg-deep: #101a14;
  --surface: #151f18;
  --surface-2: #1b2720;
  --surface-3: #223129;
  --ink: #f4f1e7;
  --ink-soft: #d2d8d1;
  --muted: #9eaa9f;
  --line: rgba(244, 241, 231, 0.1);
  --line-strong: rgba(244, 241, 231, 0.2);
  --brand: #8bcfaa;
  --brand-strong: #a8dfbd;
  --brand-soft: #1b3326;
  --brand-contrast: #0b1a11;
  --accent: #efb96b;
  --accent-soft: #352817;
  --protein: #72c79b;
  --carbs: #e4b86c;
  --fat: #e39379;
  --fiber: #a8c66e;
  --sugar: #dc97b0;
  --sodium: #a1b4d4;
  --danger: #e08073;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 34px 90px -30px rgba(0, 0, 0, 0.75);
  --shadow-xl: 0 50px 120px -40px rgba(0, 0, 0, 0.9);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.filters-open,
body.modal-open,
body:has(dialog[open]) {
  overflow: hidden;
}

body.modal-open .meal-fab,
body.modal-open .toast {
  visibility: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

img,
svg {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::selection {
  background: var(--brand);
  color: var(--brand-contrast);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  scroll-margin-top: 90px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overline {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--brand);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
}

.section-lede {
  max-width: 62ch;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.3vw, 1.06rem);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Buttons, chips and controls
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand) 65%, transparent);
}

.btn-primary:hover {
  background: var(--brand-strong);
}

[data-theme="dark"] .btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  transition: color 0.2s ease, gap 0.2s ease;
}

.text-button:hover {
  color: var(--brand-strong);
  gap: 0.45rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="dark"] .text-button:hover {
  color: var(--brand-strong);
}

.text-button .icon {
  width: 15px;
  height: 15px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-soft);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
}

.icon-button .icon {
  width: 19px;
  height: 19px;
}

.count-pill {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1;
}

.count-pill.has-items {
  background: var(--brand);
  color: var(--brand-contrast);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.32rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.select-wrap {
  position: relative;
  min-width: 0;
}

.select-wrap select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 2.3rem 0.65rem 0.8rem;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 550;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.select-wrap select:hover {
  border-color: var(--line-strong);
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 15px;
  height: 15px;
  pointer-events: none;
  color: var(--muted);
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   SVG chart bits
   -------------------------------------------------------------------------- */

.macro-bar {
  display: flex;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.macro-bar span {
  display: block;
  height: 100%;
}

.macro-protein {
  background: var(--protein);
}

.macro-carbs {
  background: var(--carbs);
}

.macro-fat {
  background: var(--fat);
}

.macro-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.macro-key > span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.macro-key strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.macro-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}

.macro-dot.protein {
  background: var(--protein);
}

.macro-dot.carbs {
  background: var(--carbs);
}

.macro-dot.fat {
  background: var(--fat);
}

.score-ring {
  --score-color: var(--brand);
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: none;
  place-items: center;
  border-radius: 50%;
}

.score-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 4;
}

.score-ring .ring-bg {
  stroke: var(--line);
}

.score-ring .ring-value {
  stroke: var(--score-color);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-ring .score-number {
  position: relative;
  font-size: 0.86rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
}

.score-ring.excellent {
  --score-color: var(--brand);
}

.score-ring.strong {
  --score-color: var(--fiber);
}

.score-ring.balanced {
  --score-color: var(--accent);
}

.score-ring.treat {
  --score-color: var(--fat);
}

.score-ring.is-large {
  width: 74px;
  height: 74px;
}

.score-ring.is-large .score-number {
  font-size: 1.15rem;
}

.score-pill {
  --score-color: var(--brand);
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 0.25rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--score-color) 26%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--score-color) 11%, transparent);
  color: var(--score-color);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.score-pill small {
  font-size: 0.55rem;
  font-weight: 650;
  opacity: 1;
}

.score-pill.excellent {
  --score-color: var(--brand);
}

.score-pill.strong {
  --score-color: color-mix(in srgb, var(--fiber) 52%, var(--ink));
}

.score-pill.balanced {
  --score-color: var(--accent);
  color: var(--ink-soft);
}

.score-pill.treat {
  --score-color: var(--fat);
  color: var(--ink-soft);
}

.macro-bar.is-large {
  height: 10px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.65rem 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 8px 30px -24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--brand);
  filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--brand) 20%, transparent));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-dot {
  color: var(--accent);
}

.brand-tag {
  margin-left: 0.1rem;
  padding: 0.19rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: 0.75rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 550;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1.5px;
  background: var(--brand);
  transition: right 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.region-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.region-btn {
  min-height: 30px;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.region-btn:hover {
  color: var(--ink);
}

.region-btn[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-contrast);
}

.region-btn[aria-pressed="true"]:hover {
  color: var(--brand-contrast);
}

.region-label-narrow {
  display: none;
}

.meal-button,
.theme-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 650;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.meal-button:hover,
.theme-button:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.meal-button .icon,
.theme-button .icon {
  width: 17px;
  height: 17px;
}

.theme-icon {
  display: grid;
  place-items: center;
}

.theme-label {
  min-width: 2.8rem;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.7rem, 6vw, 5.6rem) clamp(3.2rem, 7vw, 6.4rem);
  overflow: hidden;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      55% 55% at 86% 10%,
      color-mix(in srgb, var(--accent) 21%, transparent),
      transparent 70%
    ),
    radial-gradient(
      50% 60% at 62% 42%,
      color-mix(in srgb, var(--brand) 13%, transparent),
      transparent 72%
    ),
    radial-gradient(
      40% 40% at 8% 88%,
      color-mix(in srgb, var(--carbs) 12%, transparent),
      transparent 70%
    );
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10%;
  right: -14%;
  width: 55vw;
  height: 55vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
  mask-image: radial-gradient(circle, #000 0 40%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 0 40%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--brand);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  opacity: 0.35;
  animation: pulseRing 2.6s ease-out infinite;
}

.hero h1 {
  max-width: 10.5ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.6vw, 5.9rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.047em;
  text-wrap: balance;
}

.hero h1 em {
  position: relative;
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 0.02em;
  height: 0.09em;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.55;
  transform: rotate(-1.45deg);
}

.hero-lede {
  max-width: 56ch;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.45vw, 1.1rem);
  line-height: 1.65;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 620px);
  min-height: 60px;
  margin-top: 1.8rem;
  padding: 0.35rem 0.55rem 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent),
    var(--shadow-md);
}

.search-submit {
  display: grid;
  width: 32px;
  height: 32px;
  margin-right: 0.35rem;
  padding: 0;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  transition: background-color 0.2s ease;
}

.search-submit:hover {
  background: var(--surface-2);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.search-form input {
  min-width: 0;
  flex: 1;
  padding: 0.6rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.93rem;
}

.search-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search-kbd {
  flex: none;
  padding: 0.16rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 650;
  line-height: 1.3;
}

.search-clear {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
}

.search-clear:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.search-clear .icon {
  width: 15px;
  height: 15px;
}

.search-form:has(.search-clear:not([hidden])) .search-kbd {
  display: none;
}

.quick-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.quick-label {
  padding-top: 0.42rem;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: none;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.3;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quick-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.quick-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
}

.quick-chip span {
  font-size: 0.8em;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.7rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-right: 1.7rem;
  margin-right: 1.7rem;
  border-right: 1px solid var(--line);
}

.hero-stats li:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 550;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(115%, 620px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 11%, transparent);
}

.hero-orbit::before {
  inset: 12%;
}

.hero-orbit::after {
  inset: 26%;
  border-style: dashed;
  opacity: 0.7;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(100%, 410px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  transform: rotate(-1.2deg);
}

.pick-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem 0.85rem;
}

.pick-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pick-kicker .icon {
  width: 14px;
  height: 14px;
}

.pick-media {
  position: relative;
  display: grid;
  min-height: 178px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 44%,
      color-mix(in srgb, var(--accent) 35%, var(--brand-soft)),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--brand) 12%, var(--surface-2)),
      color-mix(in srgb, var(--accent) 16%, var(--surface-2))
    );
}

.pick-media::before,
.pick-media::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  border-radius: 50%;
}

.pick-media::before {
  width: 230px;
  height: 230px;
}

.pick-media::after {
  width: 160px;
  height: 160px;
  border-style: dashed;
}

.pick-emoji {
  position: relative;
  z-index: 1;
  font-size: 5.4rem;
  line-height: 1;
  filter: drop-shadow(0 18px 18px rgba(23, 38, 28, 0.18));
  transform: rotate(4deg);
  animation: floatFood 6s ease-in-out infinite;
}

.pick-media-tags {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pick-media-tags span,
.pick-sticker {
  padding: 0.25rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--ink-soft);
  font-size: 0.59rem;
  font-weight: 650;
  line-height: 1.3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pick-sticker {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  z-index: 1;
  transform: rotate(3deg);
}

/* Dish photos */

.dish-media {
  position: relative;
  overflow: hidden;
}

.dish-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-media.is-fallback {
  line-height: 1;
}

.pick-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
}

.pick-photo img {
  object-fit: cover;
}

.pick-photo.is-fallback {
  display: grid;
  place-items: center;
  font-size: 5.4rem;
  filter: drop-shadow(0 18px 18px rgba(23, 38, 28, 0.18));
  transform: rotate(4deg);
  animation: floatFood 6s ease-in-out infinite;
}

.pick-media.has-photo::before,
.pick-media.has-photo::after {
  display: none;
}

.pick-content {
  padding: 1rem 1.1rem 1.15rem;
}

.pick-place {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pick-name {
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pick-desc {
  display: -webkit-box;
  margin-top: 0.42rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pick-macro-key {
  margin-top: 0.42rem;
  font-size: 0.61rem;
}

.pick-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.95rem 0 0.7rem;
}

.pick-macros div {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  padding-right: 0.4rem;
  border-right: 1px solid var(--line);
}

.pick-macros div:last-child {
  border-right: 0;
}

.pick-macros strong {
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.pick-macros span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 550;
}

.pick-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 550;
}

.pick-badge .icon {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.pick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  transition: gap 0.2s ease;
}

.pick-link:hover {
  gap: 0.38rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pick-link .icon {
  width: 14px;
  height: 14px;
}

.hero-sticker {
  position: absolute;
  right: max(-10px, -1.5vw);
  bottom: -1.15rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--brand-contrast) 14%, transparent);
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.65rem;
  line-height: 1.25;
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
}

.hero-sticker .icon {
  width: 21px;
  height: 21px;
  color: var(--accent);
}

.hero-sticker strong {
  font-weight: 700;
}

.hero-card-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 450px;
  padding: 1.2rem;
}

.hero-card-skeleton span {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.hero-card-skeleton span:nth-child(1) {
  width: 42%;
  height: 10px;
}

.hero-card-skeleton span:nth-child(2) {
  height: 180px;
  margin-top: 0.4rem;
  border-radius: 18px;
}

.hero-card-skeleton span:nth-child(3) {
  width: 70%;
  height: 24px;
}

.hero-card-skeleton span:nth-child(4) {
  width: 90%;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.explore-heading {
  margin-bottom: 1.8rem;
}

.view-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 650;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.view-btn .icon {
  width: 15px;
  height: 15px;
}

.view-btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Explore / filters
   -------------------------------------------------------------------------- */

.explore {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(
      45% 55% at 100% 0%,
      color-mix(in srgb, var(--brand) 4%, transparent),
      transparent 70%
    ),
    var(--bg-deep);
}

.explore-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  max-height: calc(100dvh - 112px);
  padding: 1.1rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  scrollbar-width: thin;
}

.filters-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
}

.filters-head h3 {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.filters-head .icon-button {
  display: none;
}

.filter-group {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.filter-group > label:not(.switch-row),
.filter-group > legend,
.filter-label-row label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.filter-label-row label {
  margin-bottom: 0.5rem;
}

.filter-label-row output {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.diet-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.diet-chip {
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.diet-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
}

.diet-chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-contrast);
}

input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  background: transparent;
  accent-color: var(--brand);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}

input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6.5px;
  appearance: none;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.range-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.filter-group-last {
  border-bottom: 0;
}

.switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
}

.switch-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.switch-copy strong {
  color: var(--ink);
  font-size: 0.81rem;
  font-weight: 650;
  line-height: 1.35;
}

.switch-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.switch-row input:checked + .switch {
  background: var(--brand);
}

.switch-row input:checked + .switch::after {
  background: var(--brand-contrast);
  transform: translateX(18px);
}

.switch-row input:focus-visible + .switch {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.filters-apply,
.filters-reset {
  display: none;
}

.filters-backdrop {
  display: none;
}

/* Results panel */

.results-panel {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 0.8rem;
  min-height: 42px;
  margin-bottom: 0.8rem;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.results-count {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.45;
}

.results-count strong {
  color: var(--ink);
  font-weight: 700;
}

.results-sep {
  margin: 0 0.15rem;
  opacity: 1;
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.control-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.control-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.control-button.is-active {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
}

.control-button .icon {
  width: 15px;
  height: 15px;
}

.control-button.is-loading .icon {
  animation: pulse 1s ease-in-out infinite;
}

.sort-wrap {
  flex: none;
}

.sort-wrap select {
  width: auto;
  min-width: 134px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.76rem;
}

.sort-wrap .select-chevron {
  right: 0.7rem;
}

.filter-trigger {
  display: none;
  align-items: center;
  gap: 0.35rem;
  height: 38px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
}

.filter-trigger .icon {
  width: 15px;
  height: 15px;
}

.filter-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 0.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-contrast);
  font-size: 0.58rem;
  font-weight: 750;
  line-height: 1;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  margin-bottom: 0.85rem;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.3rem 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.3;
}

.active-chip button {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
}

.active-chip button:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.active-chip button .icon {
  width: 11px;
  height: 11px;
}

.clear-filters {
  padding: 0.25rem 0.2rem;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 0.67rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 296px), 1fr));
  gap: 1rem;
}

.place-card,
.dish-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  animation: cardIn 0.4s ease backwards;
  animation-delay: min(calc(var(--i, 0) * 30ms), 240ms);
}

.place-card:hover,
.dish-card:hover {
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.place-card-top,
.dish-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.emoji-tile {
  display: grid;
  width: 47px;
  height: 47px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  font-size: 1.55rem;
  line-height: 1;
}

.dish-card .emoji-tile {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 2rem;
}

.tile-plant-based {
  background: color-mix(in srgb, var(--brand) 15%, var(--surface-2));
}

.tile-bowls-salads {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-2));
}

.tile-middle-eastern {
  background: color-mix(in srgb, var(--fat) 15%, var(--surface-2));
}

.tile-asian {
  background: color-mix(in srgb, var(--sodium) 15%, var(--surface-2));
}

.tile-mexican {
  background: color-mix(in srgb, var(--sugar) 16%, var(--surface-2));
}

.tile-pizza-italian {
  background: color-mix(in srgb, var(--fat) 16%, var(--surface-2));
}

.tile-cafe-brunch {
  background: color-mix(in srgb, var(--accent) 20%, var(--surface-2));
}

.tile-comfort-food {
  background: color-mix(in srgb, var(--carbs) 18%, var(--surface-2));
}

.tile-burgers {
  background: color-mix(in srgb, var(--fat) 20%, var(--surface-2));
}

.tile-indian {
  background: color-mix(in srgb, var(--accent) 23%, var(--surface-2));
}

.place-title-wrap,
.dish-title-wrap {
  min-width: 0;
  flex: 1;
}

.place-name,
.dish-name {
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.card-title-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
}

.card-title-btn:hover {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.place-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.38rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.place-meta .dot {
  opacity: 1;
}

.place-meta .distance {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  color: var(--brand);
  font-weight: 600;
}

.place-meta .distance .icon {
  width: 11px;
  height: 11px;
}

.place-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex: none;
  margin-top: 0.05rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.place-rating .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
  fill: currentColor;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.65rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.46rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}

.tag-plant {
  background: var(--brand-soft);
  color: var(--brand);
}

.tag-high-protein {
  background: color-mix(in srgb, var(--protein) 12%, var(--surface-2));
  color: var(--ink-soft);
}

.tag-high-fiber {
  background: color-mix(in srgb, var(--fiber) 14%, var(--surface-2));
  color: var(--ink-soft);
}

.tag-halal {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-2));
  color: var(--ink-soft);
}

.place-blurb {
  display: -webkit-box;
  margin-top: 0.55rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.best-dish {
  margin-top: 0.8rem;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: var(--surface-2);
}

.best-dish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.18rem;
}

.best-dish .overline {
  font-size: 0.57rem;
  letter-spacing: 0.1em;
}

.best-dish-name {
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.3;
}

.best-dish-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.best-dish-cals {
  flex: none;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.best-dish-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.best-dish-copy {
  min-width: 0;
}

.best-dish-thumb {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface);
  font-size: 1.5rem;
  line-height: 1;
  overflow: hidden;
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.4;
}

.mini-stats strong {
  color: var(--ink-soft);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.best-dish .macro-bar {
  height: 5px;
  margin-top: 0.48rem;
}

.place-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.dish-count {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.4;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-link .icon {
  width: 13px;
  height: 13px;
}

/* Dish cards */

.dish-place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.12rem;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

.dish-place button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: inherit;
  font-weight: 650;
}

.dish-place button:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dish-place .loc-more {
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.55rem;
  font-weight: 700;
}

.dish-distance {
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  color: var(--brand);
  font-size: 0.6rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.dish-distance .icon {
  width: 10px;
  height: 10px;
}

.dish-name {
  font-size: 1.15rem;
}

.dish-card .score-ring {
  width: 46px;
  height: 46px;
}

.dish-card .score-ring .score-number {
  font-size: 0.8rem;
}

.dish-desc {
  display: -webkit-box;
  margin-top: 0.5rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nutrition-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.7rem;
  padding: 0.55rem 0;
  border-block: 1px solid var(--line);
}

.nutrition-strip > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.05rem;
  padding-left: 0.45rem;
  border-left: 1px solid var(--line);
}

.nutrition-strip > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.nutrition-strip span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nutrition-strip strong {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}

.nutrition-strip strong small {
  margin-left: 1px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 550;
}

.dish-card > .macro-bar {
  margin-top: 0.55rem;
}

.dish-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.add-button {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  flex: none;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.add-button:hover {
  background: var(--brand);
  color: var(--brand-contrast);
  transform: translateY(-1px);
}

.add-button.is-added {
  background: var(--brand);
  color: var(--brand-contrast);
}

.add-button .icon {
  width: 13px;
  height: 13px;
}

/* Empty and note */

.empty-state {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.empty-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.empty-state h3 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 48ch;
  margin: 0.45rem auto 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.results-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.results-note > .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.results-note p {
  flex: 1;
  min-width: 220px;
}

.results-note .text-button {
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   Method
   -------------------------------------------------------------------------- */

.method-intro {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.method-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.method-card-accent {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-contrast);
}

.method-number {
  position: absolute;
  top: 0.65rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  opacity: 0.09;
}

.method-number::before {
  content: attr(data-number);
}

.method-card-accent .method-number {
  color: var(--brand-contrast);
  opacity: 0.16;
}

.method-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--brand);
}

.method-icon .icon {
  width: 20px;
  height: 20px;
}

.method-card-accent .method-icon {
  background: color-mix(in srgb, var(--brand-contrast) 13%, transparent);
  color: var(--brand-contrast);
}

.method-card h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.method-card p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.method-card-accent p {
  color: color-mix(in srgb, var(--brand-contrast) 92%, transparent);
}

.method-card .text-button {
  margin-top: auto;
  padding-top: 1rem;
}

.method-card-accent .text-button {
  color: var(--brand-contrast);
}

.method-card-accent .text-button:hover {
  color: var(--brand-contrast);
}

.method-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(
      50% 100% at 95% 0%,
      color-mix(in srgb, var(--accent) 12%, transparent),
      transparent 70%
    ),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.method-callout-copy h3 {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.method-callout-copy p {
  max-width: 52ch;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.method-callout-copy .btn {
  margin-top: 1.2rem;
}

.score-factors {
  display: flex;
  flex-direction: column;
}

.score-factor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 28px;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.score-factor:last-child {
  border-bottom: 0;
}

.score-factor > span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 550;
}

.score-factor strong {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.factor-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.factor-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--accent) 70%, var(--brand)));
}

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--brand-contrast);
}

.closing::before,
.closing::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--brand-contrast) 16%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.closing::before {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -280px;
}

.closing::after {
  width: 320px;
  height: 320px;
  right: 80px;
  bottom: -260px;
}

.closing-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.closing .eyebrow {
  color: color-mix(in srgb, var(--brand-contrast) 90%, transparent);
}

.closing h2 {
  max-width: 16ch;
  color: var(--brand-contrast);
}

.closing h2 em {
  color: color-mix(in srgb, var(--accent) 60%, var(--brand-contrast));
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: none;
}

.closing .btn-primary {
  background: var(--brand-contrast);
  color: var(--brand-strong);
  box-shadow: none;
}

.closing .btn-primary:hover {
  background: color-mix(in srgb, var(--brand-contrast) 88%, var(--brand));
}

.closing .btn-ghost {
  border-color: color-mix(in srgb, var(--brand-contrast) 28%, transparent);
  color: var(--brand-contrast);
}

.closing .btn-ghost:hover {
  background: color-mix(in srgb, var(--brand-contrast) 10%, transparent);
}

[data-theme="dark"] .closing {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(
      60% 90% at 92% 10%,
      color-mix(in srgb, var(--brand) 12%, transparent),
      transparent 70%
    ),
    linear-gradient(145deg, #163827, #10261b);
  color: var(--ink);
}

[data-theme="dark"] .closing::before,
[data-theme="dark"] .closing::after {
  border-color: color-mix(in srgb, var(--brand) 18%, transparent);
}

[data-theme="dark"] .closing .eyebrow {
  color: var(--muted);
}

[data-theme="dark"] .closing h2 {
  color: var(--ink);
}

[data-theme="dark"] .closing h2 em {
  color: var(--accent);
}

[data-theme="dark"] .closing .btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
}

[data-theme="dark"] .closing .btn-primary:hover {
  background: var(--brand-strong);
}

[data-theme="dark"] .closing .btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

[data-theme="dark"] .closing .btn-ghost:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: 3.2rem 1.6rem;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem 3rem;
}

.footer-brand p {
  max-width: 44ch;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.5rem 1.2rem;
  padding-top: 0.55rem;
}

.footer-nav a,
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 550;
  text-align: left;
}

.footer-nav a:hover,
.footer-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav .icon {
  width: 12px;
  height: 12px;
}

.footer-fineprint {
  grid-column: 1 / -1;
  margin-top: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.64rem;
}

.footer-theme {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Floating meal button
   -------------------------------------------------------------------------- */

.meal-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem 0.5rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--brand-contrast) 14%, transparent);
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  animation: fabIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.meal-fab:hover {
  transform: translateY(-2px);
}

.meal-fab-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
  color: var(--brand-contrast);
}

.meal-fab-icon .icon {
  width: 20px;
  height: 20px;
}

.meal-fab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.meal-fab-copy strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.meal-fab-copy small {
  color: color-mix(in srgb, var(--bg) 74%, transparent);
  font-size: 0.63rem;
}

.meal-fab-arrow {
  width: 16px;
  height: 16px;
  margin: 0 0.2rem;
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Compare (side-by-side dish comparison)
   -------------------------------------------------------------------------- */

.dish-compare-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dish-compare-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.dish-compare-btn[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
}

.dish-compare-btn .icon {
  width: 16px;
  height: 16px;
}

.compare-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compare-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: var(--surface);
}

.compare-item-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.compare-item-title {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.compare-item-head button[data-compare-remove] {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  flex: none;
}

.compare-item-head button[data-compare-remove]:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.compare-emoji {
  display: grid;
  width: 72px;
  height: 72px;
  flex: none;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-2);
  font-size: 2.4rem;
  line-height: 1;
  overflow: hidden;
}

.compare-item-head h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-display);
}

.compare-place {
  margin: 0 0 0.5rem 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.compare-desc {
  margin: 0 0 0.75rem 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.compare-stats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.compare-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.compare-stats strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.compare-stats div span {
  font-size: 0.68rem;
}

.compare-actions-item {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.compare-actions-item .btn {
  flex: 1;
}

.compare-actions-item .compare-remove-item {
  flex: none;
  width: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  min-width: auto;
}

.compare-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare-empty-emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.compare-empty h3 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-display);
}

.compare-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.compare-actions .text-button {
  flex: 1;
}

/* Toolbar compare button active state */
.control-button.compare-button.is-active {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Modal shell
   -------------------------------------------------------------------------- */

dialog.modal {
  width: min(100% - 2rem, 1080px);
  max-width: 1080px;
  max-height: min(92dvh, 1000px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog.modal::backdrop {
  background: rgba(8, 14, 10, 0.58);
  backdrop-filter: blur(6px) saturate(80%);
  -webkit-backdrop-filter: blur(6px) saturate(80%);
}

dialog.modal[open] {
  animation: modalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

dialog:focus {
  outline: none;
}

dialog.meal-modal {
  width: min(100% - 2rem, 940px);
  max-width: 940px;
}

dialog.about-modal {
  width: min(100% - 2rem, 740px);
  max-width: 740px;
}

.modal-shell {
  display: flex;
  max-height: min(92dvh, 1000px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
}

.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-topbar h2 {
  margin-top: 0.05rem;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.modal-topbar .overline {
  font-size: 0.58rem;
}

.modal-context {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.35;
}

.modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.modal-close .icon {
  width: 18px;
  height: 18px;
}

.modal-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.35rem;
  scrollbar-width: thin;
}

/* Detail content */

.detail-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.detail-emoji {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 40% 30%,
      color-mix(in srgb, var(--accent) 26%, transparent),
      transparent 65%
    ),
    var(--surface-2);
  font-size: 3rem;
  line-height: 1;
}

.detail-heading {
  min-width: 0;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.detail-breadcrumb button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: inherit;
  font-weight: 700;
}

.detail-breadcrumb button:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-heading h2 {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.7vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.detail-desc {
  max-width: 62ch;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.detail-heading .tag-row {
  margin-top: 0.55rem;
}

.detail-score {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
  padding: 0.55rem 0.8rem 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.detail-score-copy {
  display: flex;
  flex-direction: column;
}

.detail-score-copy strong {
  font-size: 0.91rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.detail-score-copy span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
}

.detail-place-rating {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0.55rem;
  font-size: 0.74rem;
  line-height: 1.2;
}

.detail-place-rating > .icon {
  width: 21px;
  height: 21px;
  color: var(--accent);
  fill: currentColor;
}

.detail-place-rating > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.detail-place-rating strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.detail-place-rating span {
  color: var(--muted);
  font-size: 0.62rem;
}

.detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.detail-hero-actions .btn {
  min-height: 42px;
  font-size: 0.82rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  gap: 0.9rem;
  align-items: start;
  margin-top: 1.15rem;
}

.detail-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.9rem;
}

.panel {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.panel-head h3,
.panel > h3 {
  font-family: var(--font-sans);
  font-size: 1.01rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.panel-head > span {
  flex: none;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
}

.panel > h3 {
  margin-bottom: 0.6rem;
}

.energy-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
}

.energy-line strong {
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.energy-line > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.energy-line > small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.66rem;
}

.macro-panel .macro-bar {
  margin-top: 0.9rem;
}

.macro-panel .macro-key {
  margin-top: 0.55rem;
}

.nutrient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.nutrient-tile {
  padding: 0.62rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.nutrient-tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.nutrient-tile span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nutrient-tile strong {
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.nutrient-tile small {
  display: block;
  margin-top: 0.05rem;
  color: var(--muted);
  font-size: 0.58rem;
}

.nutrient-bar {
  height: 4px;
  margin-top: 0.38rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.nutrient-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.nutrient-tile.is-fiber .nutrient-bar > span {
  background: var(--fiber);
}

.nutrient-tile.is-sugar .nutrient-bar > span {
  background: var(--sugar);
}

.nutrient-tile.is-sodium .nutrient-bar > span {
  background: var(--sodium);
}

.nutrient-tile.is-satfat .nutrient-bar > span {
  background: var(--fat);
}

.full-facts {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.full-facts summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.full-facts summary::-webkit-details-marker {
  display: none;
}

.full-facts summary .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.full-facts[open] summary .icon {
  transform: rotate(180deg);
}

.fact-list {
  margin-top: 0.55rem;
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 48px;
  gap: 0.6rem;
  align-items: center;
  padding: 0.33rem 0;
  border-bottom: 1px dotted var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row strong {
  color: var(--ink-soft);
  font-weight: 650;
  text-align: right;
}

.fact-row .dv {
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dv-note {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.5;
}

.insight-panel {
  background:
    radial-gradient(
      80% 100% at 100% 0%,
      color-mix(in srgb, var(--brand) 9%, transparent),
      transparent 70%
    ),
    var(--surface-2);
}

.insight-panel h3 {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.insight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.65rem;
}

.insight-chips .tag {
  font-size: 0.6rem;
}

.insight-panel .text-button {
  margin-top: 0.75rem;
  font-size: 0.68rem;
}

.watchouts {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.watchouts h4 {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.watchouts ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.watchouts li {
  position: relative;
  padding-left: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.45;
}

.watchouts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.47em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.no-watchouts {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.location-list {
  display: flex;
  flex-direction: column;
  max-height: 230px;
  margin: 0.1rem 0 0.7rem;
  overflow: auto;
  scrollbar-width: thin;
}

.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: left;
}

.location-row:last-child {
  border-bottom: 0;
}

.location-row:hover strong {
  color: var(--brand);
}

.location-row > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.location-row strong {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-row small {
  color: var(--muted);
  font-size: 0.6rem;
}

.location-row .location-distance {
  flex: none;
  color: var(--brand);
  font-size: 0.61rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.map-actions {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.map-actions .btn {
  margin-top: 0;
}

.location-panel .btn {
  width: 100%;
  min-height: 40px;
  margin-top: 0.25rem;
  font-size: 0.76rem;
}

.location-note {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.45;
}

.place-facts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.place-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
}

.place-facts > div:last-child {
  border-bottom: 0;
}

.place-facts dt {
  color: var(--muted);
}

.place-facts dd {
  color: var(--ink-soft);
  font-weight: 650;
  text-align: right;
}

.detail-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

/* Smart swaps */

.swap-panel {
  margin-top: 1rem;
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  background:
    radial-gradient(
      70% 100% at 100% 0%,
      color-mix(in srgb, var(--brand) 9%, transparent),
      transparent 70%
    ),
    color-mix(in srgb, var(--brand) 5%, var(--surface));
}

.swap-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.swap-panel-head h3 {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.swap-count {
  flex: none;
  padding: 0.28rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.swap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.swap-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.swap-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}

.swap-icon .icon {
  width: 15px;
  height: 15px;
}

.swap-body {
  min-width: 0;
}

.swap-body h4 {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.swap-body p {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.swap-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.45rem;
}

.swap-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.24rem 0.42rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-contrast);
  font-size: 0.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.swap-score strong {
  font-size: 0.67rem;
  font-weight: 750;
}

.swap-delta {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.swap-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .swap-panel-head h3 {
    font-size: 1.3rem;
  }

  .swap-list {
    grid-template-columns: 1fr;
  }
}

/* Restaurant menu inside modal */

.detail-menu {
  margin-top: 1.1rem;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.menu-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.menu-row-emoji {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-2);
  font-size: 1.45rem;
  line-height: 1;
}

.menu-row-main {
  min-width: 0;
}

.menu-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.menu-row-title h4 {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
}

.menu-row-title h4 button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.menu-row-title h4 button:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.menu-row-desc {
  display: -webkit-box;
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.menu-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

.menu-row-stats strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.menu-row-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.icon-add {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-add:hover {
  background: var(--brand);
  color: var(--brand-contrast);
}

.icon-add .icon {
  width: 14px;
  height: 14px;
}

.menu-row-open {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.menu-row-open:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.menu-row-open .icon {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Meal builder
   -------------------------------------------------------------------------- */

.meal-content {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
}

.meal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.15rem;
  align-items: start;
}

.meal-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.meal-items-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.meal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.meal-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.meal-item-emoji {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface);
  font-size: 1.35rem;
  line-height: 1;
}

.meal-item-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.3;
}

.meal-item-copy strong {
  overflow: hidden;
  font-size: 0.79rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-item-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-item-copy small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.qty-control button {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
}

.qty-control button:hover {
  background: var(--surface-2);
}

.qty-control button .icon {
  width: 12px;
  height: 12px;
}

.qty-control span {
  min-width: 17px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.meal-remove {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
}

.meal-remove:hover {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}

.meal-remove .icon {
  width: 14px;
  height: 14px;
}

.meal-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.9rem;
}

.meal-summary {
  position: sticky;
  top: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(
      80% 70% at 100% 0%,
      color-mix(in srgb, var(--brand) 8%, transparent),
      transparent 70%
    ),
    var(--surface-2);
}

.meal-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}

.meal-collage-item {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  font-size: 1.1rem;
  line-height: 1;
}

.meal-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meal-collage-more {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  padding: 0.08rem 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  color: var(--surface);
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.3;
  backdrop-filter: blur(4px);
}

.meal-calories {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.meal-calories strong {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.meal-calories span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.meal-target-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.meal-target-row label {
  font-weight: 600;
}

.meal-target-row select {
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
}

.progress-track {
  height: 7px;
  margin-top: 0.4rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-strong);
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.35s ease;
}

.progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.6rem;
}

.progress-caption strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.meal-macros {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.meal-macro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 9px;
  background: var(--surface);
  font-size: 0.65rem;
}

.meal-macro span {
  color: var(--muted);
}

.meal-macro strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.meal-summary .macro-bar {
  margin-top: 0.8rem;
}

.meal-summary .macro-key {
  margin-top: 0.4rem;
  font-size: 0.61rem;
}

.meal-tips {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.meal-tips li {
  position: relative;
  padding-left: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.45;
}

.meal-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.meal-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.42rem 0.55rem;
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.64rem;
}

.meal-score strong {
  color: var(--ink-soft);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.meal-note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.5;
}

.meal-items-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.meal-empty {
  padding: 1rem 0.8rem 1.4rem;
  text-align: center;
}

.meal-empty-emoji {
  font-size: 2.8rem;
  line-height: 1;
}

.meal-empty h3 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.meal-empty p {
  max-width: 44ch;
  margin: 0.35rem auto 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.suggestion-list {
  width: min(100%, 560px);
  margin: 1.1rem auto 0;
  text-align: left;
}

.suggestion-label {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.suggestion {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  text-align: left;
  transition: background-color 0.2s ease;
}

.suggestion:hover {
  background: var(--surface-2);
}

.suggestion:first-of-type {
  border-top: 1px solid var(--line);
}

.suggestion-emoji {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 1.15rem;
}

.suggestion-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.suggestion-copy strong {
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy small {
  color: var(--muted);
  font-size: 0.6rem;
}

.suggestion-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  flex: none;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.63rem;
  font-weight: 700;
}

.suggestion-btn .icon {
  width: 11px;
  height: 11px;
}

.suggestion-btn:hover {
  background: var(--brand);
  color: var(--brand-contrast);
}

/* --------------------------------------------------------------------------
   About content
   -------------------------------------------------------------------------- */

.about-content {
  padding: 1.4rem;
}

.about-lede {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}

.about-content h3 {
  margin: 1.35rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.about-content p {
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.score-explainer {
  margin: 1.15rem 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.score-explainer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 52px;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.score-explainer-row:last-child {
  border-bottom: 0;
}

.score-explainer-row strong {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: right;
}

.band-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.band-pill {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.band-excellent {
  background: var(--brand-soft);
  color: var(--brand);
}

.band-strong {
  background: color-mix(in srgb, var(--fiber) 14%, var(--surface-2));
  color: color-mix(in srgb, var(--fiber) 52%, var(--ink));
}

.band-balanced {
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 48%, var(--ink));
}

.band-treat {
  background: color-mix(in srgb, var(--fat) 13%, var(--surface-2));
  color: color-mix(in srgb, var(--fat) 68%, var(--ink));
}

.callout {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.2rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 13px;
  background: var(--accent-soft);
}

.callout > .icon {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  flex: none;
  color: color-mix(in srgb, var(--accent) 80%, var(--ink));
}

.callout strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.callout p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.55;
}

.about-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.64rem;
}

/* --------------------------------------------------------------------------
   Toast and noscript
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  top: calc(4.5rem + env(safe-area-inset-top));
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.5rem 0.55rem 0.5rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--brand-contrast) 14%, transparent);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  font-size: 0.75rem;
  line-height: 1.3;
  transform: translateX(-50%);
  animation: toastIn 0.25s ease both;
}

.toast-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-contrast);
}

.toast-icon .icon {
  width: 12px;
  height: 12px;
}

.toast-message {
  min-width: 0;
  padding-right: 0.1rem;
}

.toast-action {
  padding: 0.2rem 0.3rem;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
}

.toast-action:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.toast-close {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.55;
}

.toast-close:hover {
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  opacity: 1;
}

.toast-close .icon {
  width: 12px;
  height: 12px;
}

.noscript-note {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 320px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-inner {
    gap: 3rem;
  }

  .explore-layout {
    grid-template-columns: 264px minmax(0, 1fr);
  }

  .hero-card {
    width: min(100%, 380px);
  }
}

@media (max-width: 1020px) {
  .site-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 4.8rem);
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(3.3rem, 9.4vw, 5.8rem);
  }

  .hero-visual {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .hero-card {
    width: min(100%, 410px);
  }

  .hero-orbit {
    width: min(100%, 560px);
  }

  .hero-sticker {
    right: 0;
  }
}

@media (max-width: 960px) {
  .explore-layout {
    display: block;
  }

  .filters {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(88vw, 360px);
    max-height: none;
    padding: calc(1.2rem + env(safe-area-inset-top)) 1.2rem
      calc(1.2rem + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0 22px 22px 0;
    box-shadow: var(--shadow-xl);
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.filters-open .filters {
    transform: translateX(0);
  }

  .filters-head {
    position: sticky;
    top: calc(-1.2rem - env(safe-area-inset-top));
    z-index: 1;
    margin: calc(-1.2rem - env(safe-area-inset-top)) -1.2rem 0;
    padding: calc(1.2rem + env(safe-area-inset-top)) 1.2rem 0.85rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .filters-head .icon-button {
    display: grid;
  }

  .filters-apply {
    display: inline-flex;
    width: 100%;
    margin-top: 0.8rem;
  }

  .filters-reset {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
  }

  .filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: block;
    background: rgba(8, 14, 10, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .filter-trigger {
    display: inline-flex;
  }

  .results-controls {
    flex-wrap: wrap;
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-card:last-child {
    grid-column: 1 / -1;
    min-height: 210px;
  }

  .method-callout {
    grid-template-columns: 1fr;
  }

  .score-factors {
    max-width: 620px;
  }
}

@media (max-width: 780px) {
  .section-heading {
    align-items: flex-start;
  }

  .explore-heading {
    flex-direction: column;
    gap: 1rem;
  }

  .view-toggle {
    align-self: flex-start;
  }

  .closing-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .closing h2 {
    max-width: 18ch;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
    padding-top: 0;
  }

  .footer-fineprint {
    margin-top: 0.5rem;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card:last-child {
    grid-column: auto;
  }

  .method-card {
    min-height: 220px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .meal-layout {
    grid-template-columns: 1fr;
  }

  .meal-summary {
    position: static;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 1.5rem, 1240px);
  }

  .header-inner {
    gap: 0.7rem;
  }

  .meal-button .count-pill:not(.has-items) {
    display: none;
  }

  .brand-tag {
    display: none;
  }

  .meal-button-text {
    display: none;
  }

  .meal-button,
  .theme-button {
    padding: 0 0.55rem;
  }

  .theme-label {
    min-width: 0;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 12.5vw, 4.6rem);
  }

  .hero-lede {
    margin-top: 1rem;
  }

  .search-form {
    margin-top: 1.4rem;
  }

  .search-kbd {
    display: none;
  }

  .quick-row {
    flex-direction: column;
    gap: 0.45rem;
  }

  .quick-label {
    padding-top: 0;
  }

  .hero-stats {
    gap: 0.9rem;
  }

  .hero-stats li {
    padding-right: 0.9rem;
    margin-right: 0;
  }

  .hero-stats li:nth-child(3) {
    padding-right: 0;
  }

  .hero-sticker {
    right: 0.2rem;
    bottom: -1.4rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.58rem;
  }

  .section-lede {
    font-size: 0.92rem;
  }

  .results-toolbar {
    align-items: flex-start;
  }

  .results-meta {
    gap: 0.5rem;
  }

  .results-controls {
    width: auto;
  }

  .control-button {
    height: 38px;
  }

  .filter-trigger {
    height: 38px;
  }

  .sort-wrap select {
    max-width: 160px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .place-card,
  .dish-card {
    padding: 0.95rem;
  }

  .method-callout {
    padding: 1.3rem;
  }

  .score-factor {
    grid-template-columns: minmax(0, 1fr) 64px 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.25rem;
  }

  .meal-fab {
    right: 0.75rem;
    bottom: max(0.75rem, calc(env(safe-area-inset-bottom) + 0.5rem));
    max-width: calc(100% - 1.5rem);
  }

  .detail-hero {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .detail-emoji {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 2rem;
  }

  .compare-emoji {
    width: 56px;
    height: 56px;
    font-size: 2rem;
  }

  .best-dish-body {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .best-dish-thumb {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .detail-heading h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .detail-score {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .detail-score .score-ring {
    width: 54px;
    height: 54px;
  }

  .menu-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.6rem;
  }

  .menu-row-emoji {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .menu-row-desc {
    -webkit-line-clamp: 1;
  }

  .menu-row-stats {
    gap: 0.35rem;
  }

  .meal-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 0.45rem;
  }

  .meal-item-emoji {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .meal-remove {
    display: none;
  }

  .detail-hero-actions .btn {
    flex: 1;
  }

  .toast {
    top: calc(4.1rem + env(safe-area-inset-top));
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  .theme-label {
    display: none;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .region-switch {
    padding: 2px;
  }

  .region-btn {
    min-height: 30px;
    padding: 0 0.45rem;
    font-size: 0.62rem;
  }

  .brand-name {
    font-size: 1.17rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13.4vw, 4rem);
  }

  .hero-visual {
    width: 100%;
  }

  .hero-card {
    width: 100%;
  }

  .hero-sticker {
    display: none;
  }

  .hero-stats li {
    padding-right: 0.7rem;
  }

  .hero-stats strong {
    font-size: 1.25rem;
  }

  .hero-stats span {
    font-size: 0.6rem;
  }

  .hero-cta-row .btn {
    flex: 1;
  }

  .results-toolbar {
    gap: 0.6rem;
  }

  .results-count {
    font-size: 0.74rem;
  }

  .sort-wrap select {
    max-width: 138px;
    min-height: 38px;
    font-size: 0.71rem;
  }

  .control-button {
    height: 38px;
  }

  .filter-trigger {
    height: 38px;
  }

  .nutrition-strip {
    gap: 0.25rem;
  }

  .nutrition-strip > div {
    padding-left: 0.3rem;
  }

  .nutrition-strip span {
    font-size: 0.5rem;
  }

  .nutrition-strip strong {
    font-size: 0.82rem;
  }

  .place-card-footer {
    gap: 0.5rem;
  }

  .dish-count {
    font-size: 0.61rem;
  }

  .method-callout-copy h3 {
    font-size: 1.6rem;
  }

  .score-factor {
    grid-template-columns: minmax(0, 1fr) 56px 24px;
    gap: 0.5rem;
  }

  .score-factor > span {
    font-size: 0.69rem;
  }

  .closing-actions {
    width: 100%;
  }

  .closing-actions .btn {
    flex: 1;
  }

  .footer-nav {
    gap: 0.45rem 0.9rem;
  }

  dialog.modal {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .modal-shell {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .modal-topbar {
    padding-top: calc(0.85rem + env(safe-area-inset-top));
  }

  .modal-scroll {
    padding: 1rem;
  }

  .meal-content {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .about-content {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .detail-hero {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .detail-emoji {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.75rem;
  }

  .detail-heading h2 {
    font-size: 1.75rem;
  }

  .detail-desc {
    font-size: 0.8rem;
  }

  .detail-score {
    padding: 0.45rem 0.7rem 0.45rem 0.5rem;
  }

  .detail-place-rating strong {
    font-size: 1.25rem;
  }

  .panel {
    padding: 0.95rem;
  }

  .energy-line strong {
    font-size: 2.35rem;
  }

  .nutrient-grid {
    gap: 0.4rem;
  }

  .menu-row-title {
    align-items: flex-start;
  }

  .menu-row-title .score-pill {
    display: none;
  }

  .menu-row-actions {
    flex-direction: column;
  }

  .menu-row-open {
    display: none;
  }

  .meal-empty {
    padding-inline: 0.2rem;
  }

  .suggestion-copy strong {
    max-width: 180px;
  }

  .toast {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
    transform: none;
  }

  .score-explainer-row {
    grid-template-columns: minmax(0, 1fr) 60px 44px;
    gap: 0.45rem;
    font-size: 0.69rem;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 1.15rem, 1240px);
  }

  .meal-button .count-pill {
    display: none;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-lede {
    font-size: 0.92rem;
  }

  .hero-stats {
    gap: 0.7rem;
  }

  .hero-stats li {
    padding-right: 0.55rem;
  }

  .hero-stats span {
    font-size: 0.56rem;
  }

  .quick-chip {
    font-size: 0.7rem;
    padding: 0.36rem 0.55rem;
  }

  .nutrition-strip span {
    letter-spacing: 0;
    font-size: 0.47rem;
  }

  .nutrition-strip strong {
    font-size: 0.76rem;
  }

  .sort-wrap select {
    max-width: 124px;
  }

  .results-controls {
    gap: 0.3rem;
  }

  .meal-item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .meal-item-emoji {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .qty-control button {
    width: 24px;
    height: 24px;
  }

  .detail-hero-actions {
    gap: 0.4rem;
  }

  .detail-hero-actions .btn {
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes fabIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulseRing {
  0% {
    opacity: 0.4;
    transform: scale(0.75);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes floatFood {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(1deg) translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fine-tuning for Firefox */
@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--bg);
  }

  .pick-media-tags span,
  .pick-sticker {
    background: var(--surface);
  }
}
