:root {
  /* OneBody logo palette — teal + orange + navy */
  --canvas: #F3F6F7;
  --canvas-deep: #E4ECED;
  --surface: #FFFFFF;
  --surface-1: #FFFFFF;
  --surface-2: #EAF2F2;
  --surface-3: #D0DEE0;
  --divider: rgba(0, 28, 61, 0.1);
  --line: rgba(0, 28, 61, 0.1);
  --ink: #001C3D;
  --text: #001C3D;
  --text-2: #3A4F66;
  --muted: #3A4F66;
  --text-3: #5A6E82;
  --faint: #5A6E82;
  --coral: #0E8B86;
  --coral-deep: #0A6B67;
  --coral-soft: #14A39D;
  --sky: #0E8B86;
  --sun: #F26522;
  --berry: #E04E2A;
  --leaf: #0E8B86;
  --lilac: #2A5F8F;
  --protein: #1A7A9C;
  --carbs: #E8A317;
  --fat: #E04E2A;
  --success: #0E8B86;
  --action: #F26522;
  --action-deep: #D9551A;
  --action-text: #FFFFFF;
  --info: #2A5F8F;
  --destructive: #C62828;
  --ai-line: linear-gradient(90deg, #0E8B86, #F26522, #001C3D);
  --mint: #0E8B86;
  --mint-dark: #0A6B67;
  --bg-dark: #F3F6F7;
  --panel: #FFFFFF;
  --streak: #F26522;
  --gold: #F26522;
  --accent-orange: #F26522;
  --navy: #001C3D;
  --teal: #0E8B86;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0, 28, 61, 0.06), 0 1px 2px rgba(14, 139, 134, 0.05);
  --shadow-md: 0 10px 28px rgba(0, 28, 61, 0.08), 0 4px 10px rgba(14, 139, 134, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 28, 61, 0.1), 0 8px 20px rgba(14, 139, 134, 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;
  --font-ui: 'Heebo', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: 'Outfit', 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Heebo', sans-serif;
}

* { box-sizing: border-box; }

.hidden { display: none !important; }

::selection { background: rgba(14, 139, 134, 0.22); }

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

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--canvas);
  color: var(--text);
  min-height: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.04em;
}

.viewport-backdrop {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Let taps fall through empty areas to fixed siblings if any */
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 10% -5%, rgba(14, 139, 134, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(242, 101, 34, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(0, 28, 61, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #F7FAFA 0%, #F3F6F7 45%, #E4ECED 100%);
}

.app-shell {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  pointer-events: auto;
}
.app-shell.landing-mode {
  background: transparent;
}

/* In-flow bar (not fixed overlay) — avoids iOS hit-test bugs over scroll layers */
.bottom-nav {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  background: rgba(255, 252, 250, 0.98);
  border-top: 1px solid rgba(14, 139, 134, 0.14);
  box-shadow: 0 -6px 20px rgba(14, 139, 134, 0.08);
  z-index: 10050;
  padding: 0.35rem clamp(0.35rem, 1.5vw, 1rem) max(0.55rem, env(safe-area-inset-bottom, 0px));
  overflow: visible;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}
.bottom-nav.hidden {
  display: none !important;
  pointer-events: none !important;
}
.bottom-nav-wrap {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  overflow: visible;
  pointer-events: auto;
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0.1rem;
  min-height: 3.25rem;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.app-header {
  padding: 1.1rem clamp(1rem, 3vw, 2rem) 0.9rem;
  border-bottom: 1px solid rgba(14, 139, 134, 0.14);
  background: rgba(244, 250, 246, 0.9);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  overflow: visible;
}

.app-header > * {
  max-width: 72rem;
  margin: 0 auto;
}

.app-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* No top padding — sticky titles sit flush under header (no scroll bleed) */
  /* Full-bleed scroller so the scrollbar sits at the viewport edge */
  padding: 0 clamp(1rem, 3vw, 2rem) 1.25rem;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
/* Constrain page content; keep scrollport full-width */
.app-main > :not(.boot-splash) {
  max-width: 72rem;
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}
.app-main > .slide-up {
  padding-top: 0.35rem;
}
.app-main > .slide-up:has(.activity-page),
.app-main > .slide-up:has(.page-sticky) {
  padding-top: 0;
}

.page-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 calc(-1 * clamp(1rem, 3vw, 2rem));
  padding: 0.45rem clamp(1rem, 3vw, 2rem) 0.5rem;
  background: #F7FAFA;
  border-bottom: 1px solid rgba(14, 139, 134, 0.1);
}
.page-sticky .screen-title {
  margin: 0;
  padding: 0;
}
/* Breathing room under sticky titles (not margin on sticky — avoids scroll bleed) */
.page-sticky + .screen-sub {
  margin-top: 0.85rem;
}
.page-sticky + .pts-back {
  margin-top: 0.85rem;
  margin-bottom: 0.75rem;
}
.page-sticky + .card,
.page-sticky + .insights-card,
.page-sticky + .compete-card,
.page-sticky + .premium-card,
.page-sticky + section,
.page-sticky + .home-feed {
  margin-top: 0.9rem;
}
.page-sticky + .screen-sub + .card {
  margin-top: 0;
}

.app-main.page-narrow > :not(.boot-splash) { max-width: 28rem; }
.app-main.landing-main {
  max-width: none;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.app-main.landing-main > :not(.boot-splash) {
  max-width: none;
}

@media (min-width: 1024px) {
  .app-main { padding-bottom: 1.5rem; }
  .feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .feed-grid .feed-post { margin-bottom: 0; }
  .app-main.page-narrow > :not(.boot-splash) { max-width: 32rem; }
}

@media (min-width: 1280px) {
  .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.35rem 0.2rem 0.25rem;
  min-height: 2.75rem;
  border: none;
  background: none;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
  flex: 1;
  max-width: 4.75rem;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  border-radius: var(--radius-md);
}
.nav-btn .icon,
.nav-btn .ob-icon {
  pointer-events: none;
}
.nav-btn.active { color: var(--coral-deep); background: rgba(14, 139, 134, 0.12); }
.nav-btn .icon {
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  position: relative;
}
.nav-btn.active .ob-icon { color: var(--coral-deep); }

.nav-fab {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: linear-gradient(145deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: var(--font-display);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.15rem;
  box-shadow: 0 8px 22px rgba(14, 139, 134, 0.4);
  transition: transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  position: relative;
  top: -0.9rem;
  z-index: 70;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-fab .fab-ico,
.nav-fab .ob-icon {
  pointer-events: none;
}
.nav-fab:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 139, 134, 0.48);
}
.nav-fab:active { transform: scale(0.94); }
.nav-fab.is-open {
  background: linear-gradient(145deg, #3A4F66 0%, #001C3D 100%);
  box-shadow: 0 6px 18px rgba(0, 28, 61, 0.35);
}

/* FAB picker — must stay BELOW fixed bottom-nav (10050) */
.share-fab-root {
  position: fixed;
  inset: 0;
  z-index: 10040;
  pointer-events: none;
}
.share-fab-root.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  inset: auto !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.share-fab-root.is-open {
  pointer-events: none;
  display: block;
  visibility: visible;
  inset: 0;
  width: auto;
  height: auto;
  overflow: visible;
}
.share-fab-root.is-open .share-fab-picker {
  pointer-events: auto;
}
.share-fab-picker {
  position: absolute;
  inset: 0;
  /* Clear fixed nav so tabs stay tappable */
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
  z-index: 1;
}
.share-fab-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 28, 61, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  animation: share-fab-fade 180ms var(--ease-out);
  touch-action: manipulation;
}
.share-fab-arc {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.share-fab-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: 3.85rem;
  min-height: 3.85rem;
  padding: 0.35rem 0.25rem 0.4rem;
  border: none;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    0 8px 22px rgba(14, 139, 134, 0.22),
    0 0 0 1px rgba(14, 139, 134, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  cursor: pointer;
  font-family: inherit;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle, 0deg))
    translateY(-5.1rem)
    rotate(calc(var(--angle, 0deg) * -1))
    scale(1);
  opacity: 1;
  animation: share-fab-pop 420ms cubic-bezier(0.22, 1.2, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.share-fab-bubble:hover {
  box-shadow:
    0 12px 28px rgba(14, 139, 134, 0.32),
    0 0 0 1px rgba(14, 139, 134, 0.2);
  transform:
    translate(-50%, -50%)
    rotate(var(--angle, 0deg))
    translateY(-5.35rem)
    rotate(calc(var(--angle, 0deg) * -1))
    scale(1.06);
}
.share-fab-bubble:active { transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(-5.1rem) rotate(calc(var(--angle, 0deg) * -1)) scale(0.94); }
.share-fab-bubble-ico {
  color: var(--coral);
  display: flex;
  line-height: 0;
}
.share-fab-bubble-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 3.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes share-fab-pop {
  0% {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle, 0deg))
      translateY(-0.4rem)
      rotate(calc(var(--angle, 0deg) * -1))
      scale(0.35);
  }
  70% { opacity: 1; }
  100% {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle, 0deg))
      translateY(-5.1rem)
      rotate(calc(var(--angle, 0deg) * -1))
      scale(1);
  }
}
@keyframes share-fab-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .share-fab-bubble,
  .share-fab-backdrop { animation: none !important; }
  .prem-page,
  .prem-hero::after,
  .prem-hero-btn,
  .prem-feature,
  .modal-card { animation: none !important; }
}

.legal-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(14, 139, 134, 0.06);
  border-bottom: 1px solid rgba(14, 139, 134, 0.15);
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  font-size: 0.7rem;
  line-height: 1.45;
  color: #2A6B48;
}

.legal-banner-text { flex: 1; margin: 0; text-align: center; }

.legal-banner-close {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(11, 13, 16, 0.05);
  color: #2A6B48;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.legal-banner-close:hover { background: rgba(11, 13, 16, 0.1); color: var(--ink); }

.card {
  background: var(--surface);
  border: 1px solid rgba(14, 139, 134, 0.1);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--action-deep) 0%, #C24815 100%);
  color: var(--action-text);
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: filter var(--dur) var(--ease-out), transform 180ms var(--ease-out), box-shadow var(--dur) var(--ease-out);
  width: 100%;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(242, 101, 34, 0.35);
}
.btn-mint {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: var(--action-text);
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: filter var(--dur) var(--ease-out), transform 180ms var(--ease-out), box-shadow var(--dur) var(--ease-out);
  width: 100%;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(14, 139, 134, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(242, 101, 34, 0.42);
}
.btn-mint:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(14, 139, 134, 0.42);
}
.btn-primary:active,
.btn-mint:active { transform: scale(0.97); }
.btn-primary:disabled,
.btn-mint:disabled {
  background: var(--surface-3);
  color: var(--faint);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}
.btn-loader {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -0.15em;
  margin-inline-end: 0.4rem;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-primary.is-loading:disabled {
  background: linear-gradient(135deg, var(--action) 0%, var(--action-deep) 100%);
  color: var(--action-text);
  opacity: 1;
}
.app-busy-root {
  position: fixed;
  inset: 0;
  z-index: 10070;
  pointer-events: none;
}
.app-busy-root.hidden { display: none; }
.app-busy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 28, 61, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: auto;
  animation: app-busy-in 180ms var(--ease-out);
}
.app-busy-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  box-shadow: var(--shadow-lg);
  max-width: min(20rem, 100%);
}
.app-busy-spinner {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--teal) 22%, var(--surface-3));
  border-top-color: var(--teal);
  animation: btn-spin 0.7s linear infinite;
}
.app-busy-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
@keyframes app-busy-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .app-busy { animation: none; }
}
.card.is-pending,
.chat-row.is-pending { opacity: 0.72; }
.card.is-deleting {
  opacity: 0.45;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}
.pending-label {
  color: var(--coral-deep);
  font-weight: 700;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(14, 139, 134, 0.28);
  color: var(--coral-deep);
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  width: 100%;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn-outline:hover {
  background: rgba(14, 139, 134, 0.08);
  border-color: var(--coral);
}

.privacy-support-card {
  padding: 1.25rem;
  overflow: hidden;
  border-color: rgba(14, 139, 134, 0.16);
  box-shadow: 0 8px 24px rgba(0, 28, 61, 0.06);
}
.privacy-support-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.privacy-support-icon {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--coral-deep);
  background: rgba(14, 139, 134, 0.1);
  border-radius: 0.8rem;
}
.privacy-support-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}
.privacy-support-heading p {
  margin: 0.1rem 0 0;
  color: var(--text-3);
  font-size: 0.78rem;
}
.privacy-support-note {
  margin: 1rem 0;
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.65;
}
.privacy-support-links {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
}
.privacy-support-link {
  width: 100%;
  min-height: 4rem;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  text-align: start;
  font: inherit;
  border: none;
  cursor: pointer;
  background: var(--surface);
  transition: background 160ms var(--ease-out);
}
.privacy-support-link + .privacy-support-link {
  border-top: 1px solid var(--line);
}
.privacy-support-link:hover,
.privacy-support-link:focus-visible {
  background: rgba(14, 139, 134, 0.06);
}
.privacy-support-link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: -2px;
}
.privacy-support-link strong,
.privacy-support-link small {
  display: block;
}
.privacy-support-link strong {
  font-size: 0.9rem;
  font-weight: 700;
}
.privacy-support-link small {
  margin-top: 0.12rem;
  color: var(--text-3);
  font-size: 0.74rem;
  line-height: 1.35;
}
.privacy-support-contact strong {
  color: var(--coral-deep);
}
.privacy-support-chevron {
  color: var(--teal);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 160ms var(--ease-out);
}
.privacy-support-link:hover .privacy-support-chevron {
  transform: translateX(-2px);
}

.legal-inapp-body {
  line-height: 1.65;
}
.legal-inapp-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.4rem;
}
.legal-inapp-body h3:first-of-type {
  margin-top: 0;
}
.legal-inapp-body p,
.legal-inapp-body li {
  color: var(--muted, #3A4F66);
  font-size: 0.95rem;
  margin: 0 0 0.55rem;
}
.legal-inapp-body ul {
  padding-inline-start: 1.25rem;
  margin: 0 0 0.55rem;
}
.contact-email {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--coral-deep, var(--coral));
  margin: 0.75rem 0 1rem;
  word-break: break-all;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.btn-ghost.inline-link {
  display: inline;
  padding: 0;
  color: var(--coral);
  font-weight: 600;
  text-decoration: underline;
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem;
}
.btn-ghost:hover { color: var(--ink); }
.btn-logout {
  color: var(--destructive);
  min-height: 44px;
}
.btn-logout:hover {
  color: var(--destructive);
  background: rgba(198, 40, 40, 0.08);
  border-radius: var(--radius-md);
}
.pts-back .btn-ghost,
.prem-back .btn-ghost,
.menu-back .btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
}

.route-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  margin-bottom: 0.55rem;
  position: relative;
}
.route-card:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}
.route-card.selected {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.route-card.selected::after {
  content: '✓';
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--coral);
}

.input-field {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 0.75rem;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.input-field::placeholder { color: var(--faint); }
.input-field:focus {
  outline: none;
  border-color: rgba(11, 13, 16, 0.35);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(11, 13, 16, 0.06);
}
.input-field.input-invalid {
  border-color: #c44b3a;
  background: rgba(196, 75, 58, 0.06);
}
.input-field.input-invalid:focus {
  border-color: #c44b3a;
  box-shadow: 0 0 0 3px rgba(196, 75, 58, 0.12);
}
.field-block {
  margin-bottom: 0.75rem;
}
.field-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--faint);
  line-height: 1.35;
}
.field-error {
  margin: 0.25rem 0 0;
  min-height: 0;
  font-size: 0.78rem;
  color: #c44b3a;
  line-height: 1.3;
}
.field-error:empty { display: none; }

#meal-text:focus {
  border-color: rgba(14, 139, 134, 0.45);
  box-shadow: 0 0 0 3px rgba(14, 139, 134, 0.1);
}

select.input-field {
  color-scheme: light;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239AA3AD' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-inline-start: 2.5rem;
  padding-inline-end: 1rem;
  cursor: pointer;
}
[dir="ltr"] select.input-field {
  background-position: right 1rem center;
}
select.input-field option { background: var(--surface); color: var(--ink); }

.custom-select { position: relative; margin-bottom: 0.75rem; }

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: rgba(11, 13, 16, 0.2);
  background: var(--surface);
}

.custom-select-chevron {
  color: var(--faint);
  font-size: 0.85rem;
  transition: transform var(--dur) var(--ease-out);
}
.custom-select.open .custom-select-chevron {
  transform: rotate(180deg);
  color: var(--ink);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
}

.custom-select-option {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  transition: background 150ms var(--ease-out);
}
.custom-select-option:hover,
.custom-select-option.selected { background: var(--surface-2); }

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.streak-badge .streak-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--coral);
  font-weight: 700;
}
.streak-badge .streak-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

@keyframes point-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.point-pop { animation: point-pop 0.4s var(--ease-out); }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-up { animation: slide-up var(--dur) var(--ease-out); }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in { animation: fade-in 0.5s var(--ease-out); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

.chat-bubble {
  max-width: 85%;
  padding: 0.8rem 1.05rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.55rem;
  line-height: 1.55;
  font-size: 0.9rem;
  text-align: start;
}
.chat-meal-photo-btn {
  display: block;
  width: 100%;
  max-width: 16rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 0.65rem;
  overflow: hidden;
}
.chat-meal-photo {
  display: block;
  width: 100%;
  max-height: min(40vh, 16rem);
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0.65rem;
  margin-bottom: 0.45rem;
  background: var(--surface-2);
}
.share-source-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.share-source-leni {
  color: var(--info);
  background: rgba(42, 95, 143, 0.12);
  border-color: rgba(42, 95, 143, 0.28);
}
.share-source-partner {
  color: var(--coral-deep, #0b7a75);
  background: rgba(14, 139, 134, 0.12);
  border-color: rgba(14, 139, 134, 0.28);
}
.share-source-me {
  color: var(--ink);
}
.meal-channel-tag {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  vertical-align: baseline;
}
.meal-channel-tag:hover {
  text-decoration: underline;
}
.meal-channel-tag:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}
.meal-author-line .meal-channel-tag.share-source-me { color: var(--muted); }
.meal-author-line .meal-channel-tag.share-source-leni { color: var(--info); }
.meal-author-line .meal-channel-tag.share-source-partner { color: var(--coral-deep, #0b7a75); }
.chat-user {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  margin-inline-end: auto; /* stick to inline-start (right in RTL) */
  border-bottom-right-radius: 0.3rem;
  box-shadow: 0 4px 14px rgba(14, 139, 134, 0.25);
}
.chat-ai {
  background: linear-gradient(145deg, #EDF2F7 0%, #E8EEF4 100%);
  border: 1px solid rgba(42, 95, 143, 0.18);
  box-shadow: var(--shadow-sm);
  margin-inline-start: auto; /* stick to inline-end (left in RTL) */
  border-bottom-left-radius: 0.3rem;
  color: var(--ink);
}

.leni-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.leni-offer-btn {
  width: auto !important;
  padding: 0.4rem 0.75rem !important;
  font-size: 0.78rem !important;
  min-height: 0;
}

.chat-input-row {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  align-items: center;
}

.ai-processing-line {
  height: 2px;
  width: 100%;
  background: var(--ai-line);
  background-size: 200% 100%;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  animation: ai-sweep 1.2s linear infinite;
}
@keyframes ai-sweep {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.progress-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--action));
  border-radius: var(--radius-pill);
  transition: width 0.5s var(--ease-out);
}

.group-ring {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: conic-gradient(
    var(--protein) 0 calc(var(--score) * 0.33%),
    var(--carbs) calc(var(--score) * 0.33%) calc(var(--score) * 0.66%),
    var(--fat) calc(var(--score) * 0.66%) calc(var(--score) * 1%),
    var(--surface-3) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1.25rem;
  box-shadow: var(--shadow-sm);
}
.group-ring-inner {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.group-ring-inner .score-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 2.65rem;
  letter-spacing: -0.06em;
  line-height: 1;
  padding-top: 0.15rem;
}

.partner-locked { filter: blur(4px); user-select: none; }

.toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-md);
  z-index: 100;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: min(92%, 22rem);
  text-align: center;
  white-space: normal;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.35s var(--ease-out);
}
.toast.hidden { display: none; animation: none; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.calorie-badge {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: -0.02em;
}

.ai-typing span {
  width: 6px; height: 6px; background: var(--faint); border-radius: 50%;
  display: inline-block; margin: 0 2px;
  animation: bounce 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

.onboarding-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  height: 3px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
  padding: 0;
}
.onboarding-dot {
  flex: 1;
  height: 100%;
  border-radius: 0;
  background: transparent;
  transition: background var(--dur) var(--ease-out);
}
.onboarding-dot.done,
.onboarding-dot.active { background: var(--ink); }
.onboarding-dot.active { background: var(--coral); }

.feed-post {
  margin-bottom: 1rem;
  border-right: 3px solid var(--coral);
  background: linear-gradient(105deg, #F4FAF6 0%, #FFFFFF 28%);
}
.feed-post.meal-highlight,
.meal-row.meal-highlight,
.card.meal-highlight {
  animation: meal-highlight-pulse 2.2s var(--ease-out);
  box-shadow: 0 0 0 2px rgba(14, 139, 134, 0.45), var(--shadow-md);
}
@keyframes meal-highlight-pulse {
  0% { box-shadow: 0 0 0 3px rgba(14, 139, 134, 0.55), var(--shadow-md); }
  100% { box-shadow: var(--shadow-sm); }
}
.feed-post .meal-cals {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--coral-deep);
  display: inline;
}
.feed-post .meal-unit {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 0.35rem;
}
.feed-post .meal-meta { color: var(--muted); font-size: 0.8rem; }
.home-feed {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1.5rem;
}
.home-feed-day {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.home-feed-day-title {
  position: static;
  margin: 0 0 0.2rem;
  padding: 0.1rem 0 0;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 0;
}
.home-feed-sentinel {
  height: 1px;
  width: 100%;
}
.home-feed-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.75rem 0 0.25rem;
  margin: 0;
}
.activity-share-dock {
  margin-top: 1.25rem;
  padding: 0.9rem 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: var(--shadow-sm);
}
.share-dock-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-who-row,
.share-all-partners {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.55rem 0 0.15rem;
  font-size: 0.85rem;
  color: var(--text-muted, #8a8a8a);
  cursor: pointer;
  user-select: none;
}
.share-all-partners input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--coral, #e07a5f);
}
.share-mode-row {
  display: flex;
  gap: 0.35rem;
  padding: 0.2rem;
  margin: 0 0 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.share-who-chip,
.share-mode-chip {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.5rem 0.35rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
}
.share-who-chip.active,
.share-mode-chip.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.share-dock-body .feed-composer {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.activity-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-sticky {
  position: sticky;
  top: 0;
  z-index: 25;
  margin-inline: calc(-1 * clamp(1rem, 3vw, 2rem));
  width: calc(100% + 2 * clamp(1rem, 3vw, 2rem));
  max-width: none;
  box-sizing: border-box;
  padding: 0.45rem clamp(1rem, 3vw, 2rem) 0.5rem;
  background: #F7FAFA;
  border-bottom: 1px solid rgba(14, 139, 134, 0.1);
}
.activity-sticky-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}
.activity-ai-remaining {
  margin-inline-start: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}
.activity-mode-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.activity-filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.activity-filter-btn:hover,
.activity-filter-btn.is-open {
  background: var(--surface-2);
  color: var(--coral);
}
.activity-filter-btn.is-active {
  color: var(--coral);
  background: rgba(14, 139, 134, 0.1);
  border-color: rgba(14, 139, 134, 0.18);
}
.activity-filter-menu {
  display: flex;
  gap: 0.35rem;
  margin: 0.2rem 0 0.15rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid rgba(14, 139, 134, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.activity-filter-item {
  flex: 1;
  margin: 0;
  padding: 0.45rem 0.35rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.activity-filter-item.is-active {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(14, 139, 134, 0.16);
}
.activity-mode-btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(14, 139, 134, 0.14), rgba(14, 139, 134, 0.05));
  color: var(--coral);
  flex-shrink: 0;
}
.activity-mode-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-mode-title-badge,
.activity-mode-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  margin-inline-start: 0.35rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  font-family: var(--font-num);
  vertical-align: middle;
}
.activity-mode-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--muted);
  flex-shrink: 0;
}
.activity-mode-caret {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms var(--ease-out);
  margin-top: -0.15rem;
}
.activity-mode-btn.is-open .activity-mode-caret {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}
.activity-mode-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.15rem 0 0.2rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid rgba(14, 139, 134, 0.12);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  animation: share-fab-fade 160ms var(--ease-out);
}
.activity-mode-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
}
.activity-mode-item:hover,
.activity-mode-item.is-active {
  background: var(--surface-2);
}
.activity-mode-item.is-active {
  box-shadow: inset 0 0 0 1px rgba(14, 139, 134, 0.18);
}
.activity-mode-item.is-locked {
  opacity: 0.72;
}
.activity-mode-item-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(14, 139, 134, 0.1);
  color: var(--coral);
  flex-shrink: 0;
}
.activity-mode-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.activity-mode-item-label {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ink);
}
.activity-mode-item-hint {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.activity-partner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  flex-wrap: wrap;
}
.activity-partner-status {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
}
.activity-partner-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.activity-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.2rem;
  margin: 0 0 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.activity-context {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.55rem;
  min-width: 0;
}
.activity-context-copy { min-width: 0; flex: 1; }
.activity-context-copy .screen-sub { margin-top: 0.15rem; }
.activity-context .leni-avatar,
.activity-context .avatar-frame { flex-shrink: 0; }
.activity-sticky .ai-quota-bar { margin-bottom: 0; }
.activity-scroll {
  min-height: 8rem;
  padding-top: 0.9rem;
}
.activity-tab {
  flex: 1;
  position: relative;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
}
.activity-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.activity-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  margin-inline-start: 0.3rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  font-family: var(--font-num);
  vertical-align: middle;
}
.activity-panel { min-height: 8rem; }

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.avatar-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  line-height: 0;
  position: relative;
}
.avatar-frame.frame-none { padding: 0; background: transparent; box-shadow: none; }
.avatar-frame.frame-sprout {
  padding: 2px;
  background: linear-gradient(145deg, rgba(14,139,134,0.35), rgba(14,139,134,0.12));
  box-shadow: 0 0 0 1px rgba(14,139,134,0.28);
}
.avatar-frame.frame-steady {
  padding: 2px;
  background: linear-gradient(145deg, #0E8B86, #14A39D);
  box-shadow: 0 0 0 2px rgba(14,139,134,0.35);
}
.avatar-frame.frame-flame {
  padding: 3px;
  background: linear-gradient(135deg, #F26522, #0E8B86 55%, #14A39D);
  box-shadow: 0 0 10px rgba(242,101,34,0.35), 0 0 0 1px rgba(14,139,134,0.25);
}
.avatar-frame.frame-star {
  padding: 3px;
  background: linear-gradient(135deg, #F26522, #E8A317, #0E8B86);
  box-shadow: 0 0 14px rgba(242,101,34,0.45), 0 0 0 2px rgba(14,139,134,0.3);
}
.avatar-frame.frame-star::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(232,163,23,0.55);
  pointer-events: none;
  animation: frame-spark 2.4s linear infinite;
}
.avatar-frame.frame-legend {
  padding: 4px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, #F26522, #0E8B86, #F26522, #001C3D) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 16px rgba(14,139,134,0.4), 0 0 8px rgba(242,101,34,0.35);
  animation: frame-legend-spin 4s linear infinite;
}
.avatar-frame.frame-legend::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 1;
}
@keyframes frame-spark {
  to { transform: rotate(360deg); }
}
@keyframes frame-legend-spin {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(12deg); }
  100% { filter: hue-rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-frame.frame-star::after,
  .avatar-frame.frame-legend { animation: none; }
}
.avatar-skin-fx {
  position: absolute;
  inset: -6px;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}
.avatar-frame > .avatar,
.avatar-frame > .avatar-photo {
  position: relative;
  z-index: 1;
}
.avatar-skin.skin-none .avatar-skin-fx { display: none; }

.avatar-skin.skin-aura_flame .avatar-skin-fx {
  background: radial-gradient(circle at 50% 70%, rgba(242,101,34,0.55), transparent 62%);
  box-shadow: 0 0 14px rgba(242,101,34,0.45);
  animation: skin-flame-pulse 1.4s ease-in-out infinite;
}
.avatar-skin.skin-aura_flame .avatar-skin-fx::before,
.avatar-skin.skin-aura_flame .avatar-skin-fx::after {
  content: '';
  position: absolute;
  width: 28%;
  height: 38%;
  bottom: 6%;
  border-radius: 50% 50% 20% 20%;
  background: linear-gradient(180deg, #ffd36a, #f26522 70%, transparent);
  opacity: 0.85;
  animation: skin-flame-flicker 0.9s ease-in-out infinite alternate;
}
.avatar-skin.skin-aura_flame .avatar-skin-fx::before { inset-inline-start: 12%; }
.avatar-skin.skin-aura_flame .avatar-skin-fx::after { inset-inline-end: 12%; animation-delay: 0.2s; }

.avatar-skin.skin-aura_wings .avatar-skin-fx::before,
.avatar-skin.skin-aura_wings .avatar-skin-fx::after {
  content: '';
  position: absolute;
  top: 18%;
  width: 42%;
  height: 55%;
  background: linear-gradient(135deg, rgba(14,139,134,0.55), rgba(120,180,255,0.25));
  border-radius: 70% 20% 60% 30%;
  animation: skin-wing-flap 2.2s ease-in-out infinite;
}
.avatar-skin.skin-aura_wings .avatar-skin-fx::before {
  inset-inline-start: -28%;
  transform-origin: right center;
}
.avatar-skin.skin-aura_wings .avatar-skin-fx::after {
  inset-inline-end: -28%;
  transform-origin: left center;
  border-radius: 20% 70% 30% 60%;
  animation-name: skin-wing-flap-mirror;
}

.avatar-skin.skin-aura_stars .avatar-skin-fx {
  background: radial-gradient(circle, transparent 45%, rgba(255,200,80,0.2) 70%, transparent 75%);
  animation: skin-stars-spin 6s linear infinite;
}
.avatar-skin.skin-aura_stars .avatar-skin-fx::before,
.avatar-skin.skin-aura_stars .avatar-skin-fx::after {
  content: '✦';
  position: absolute;
  color: #f2b84b;
  font-size: 0.7rem;
  line-height: 1;
  text-shadow: 0 0 6px rgba(242,184,75,0.8);
  animation: skin-star-twinkle 1.6s ease-in-out infinite;
}
.avatar-skin.skin-aura_stars .avatar-skin-fx::before { top: 0; inset-inline-end: 8%; }
.avatar-skin.skin-aura_stars .avatar-skin-fx::after { bottom: 4%; inset-inline-start: 6%; animation-delay: 0.5s; font-size: 0.55rem; }

@keyframes skin-flame-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes skin-flame-flicker {
  from { transform: translateY(0) scaleY(1); opacity: 0.7; }
  to { transform: translateY(-2px) scaleY(1.12); opacity: 1; }
}
@keyframes skin-wing-flap {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.05); }
}
@keyframes skin-wing-flap-mirror {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-8deg) scale(1.05); }
}
@keyframes skin-stars-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes skin-star-twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-skin .avatar-skin-fx,
  .avatar-skin .avatar-skin-fx::before,
  .avatar-skin .avatar-skin-fx::after { animation: none !important; }
}

.pts-ach-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pts-ach {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  background: var(--surface-2);
}
.pts-ach.is-complete {
  border-color: rgba(14, 139, 134, 0.35);
  background: linear-gradient(160deg, rgba(14,139,134,0.08), transparent 60%);
}
.pts-ach-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.pts-ach-ico {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--coral);
  flex-shrink: 0;
}
.pts-ach-copy { flex: 1; min-width: 0; }
.pts-ach-title { font-weight: 700; font-size: 0.92rem; }
.pts-ach-desc { font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
.pts-ach-progress {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral-deep);
}
.pts-ach-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pts-ach-stage {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.pts-ach-stage.is-done { color: var(--ink); font-weight: 600; }
.pts-ach-stage.is-current .pts-ach-dot {
  border-color: var(--coral);
  background: rgba(14,139,134,0.2);
}
.pts-ach-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  flex-shrink: 0;
}
.pts-ach-stage.is-done .pts-ach-dot {
  border-color: var(--coral);
  background: var(--coral);
}
.pts-ach-stage-label { flex: 1; min-width: 0; }
.pts-ach-stage-pts {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--action);
}
.pts-ach-stage.is-done .pts-ach-stage-pts { color: var(--coral-deep); }
.pts-ach-reward {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.avatar-edit-wrap {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex-shrink: 0;
  isolation: isolate;
}
.avatar-edit-badge {
  position: absolute;
  inset-inline-start: -2px;
  bottom: -2px;
  z-index: 3;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--surface, #fff);
  pointer-events: none;
}
.avatar-edit-wrap > .avatar-frame {
  position: relative;
  z-index: 1;
}
.avatar-edit-badge .ob-icon { color: #fff; }
.profile-streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(242, 101, 34, 0.12), rgba(14, 139, 134, 0.08));
  border: 1px solid rgba(242, 101, 34, 0.22);
  flex-shrink: 0;
}
.profile-streak-num {
  font-family: var(--font-num);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--action-deep);
  line-height: 1.1;
}
.profile-streak-label {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}
.analytics-day-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}
.analytics-day-stats-solo {
  margin-top: 0;
}
.insights-card .screen-sub {
  margin-top: 0;
}
.insights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.insight-item {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 139, 134, 0.18);
  background: linear-gradient(145deg, rgba(14, 139, 134, 0.08), rgba(14, 139, 134, 0.02));
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 500;
}
.insights-loading,
.insights-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.compete-card .screen-sub { margin-top: 0; }
.compete-row {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.compete-row:last-child { border-bottom: none; }
.compete-metric {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.compete-scores {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
}
.compete-side {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}
.compete-side.is-lead {
  border-color: rgba(14, 139, 134, 0.35);
  background: linear-gradient(145deg, rgba(14, 139, 134, 0.12), rgba(14, 139, 134, 0.03));
}
.compete-who {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compete-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.compete-side.is-lead .compete-val { color: var(--coral, #0e8b86); }
.compete-vs {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--faint);
}
.analytics-day-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}
.analytics-day-chip .ob-icon {
  flex-shrink: 0;
  color: var(--coral);
}
.analytics-day-meals {
  background: linear-gradient(145deg, rgba(14, 139, 134, 0.1), rgba(14, 139, 134, 0.03));
  border-color: rgba(14, 139, 134, 0.22);
}
.analytics-day-meals .ob-icon { color: var(--coral); }
.analytics-day-streak {
  background: linear-gradient(145deg, rgba(242, 101, 34, 0.12), rgba(14, 139, 134, 0.06));
  border-color: rgba(242, 101, 34, 0.22);
}
.analytics-day-streak .streak-ico { color: var(--action-deep, #c24e12); }
.analytics-day-reports {
  background: linear-gradient(145deg, rgba(42, 95, 143, 0.1), rgba(14, 139, 134, 0.04));
  border-color: rgba(42, 95, 143, 0.2);
}
.analytics-day-reports .ob-icon { color: var(--info); }
.analytics-day-weights {
  background: linear-gradient(145deg, rgba(14, 139, 134, 0.12), rgba(14, 139, 134, 0.03));
  border-color: rgba(14, 139, 134, 0.22);
}
.analytics-day-weights .ob-icon { color: var(--protein, #0e8b86); }
.analytics-day-num {
  font-family: var(--font-num);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.analytics-day-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.trend-chart-wrap {
  position: relative;
  width: 100%;
}
.trend-chart {
  display: block;
  width: 100%;
  max-height: 180px;
  overflow: visible;
}
.trend-line {
  stroke: var(--protein, #0e8b86);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trend-axis {
  stroke: rgba(58, 79, 102, 0.28);
  stroke-width: 1;
}
.trend-axis-date {
  fill: var(--muted, #6b7280);
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font-num, ui-monospace, monospace);
}
.trend-hit {
  fill: transparent;
  stroke: none;
  cursor: pointer;
  pointer-events: all;
}
.trend-dot {
  fill: var(--surface, #fff);
  stroke: var(--protein, #0e8b86);
  stroke-width: 2.25;
  pointer-events: none;
  transition: r 120ms ease, stroke-width 120ms ease;
}
.trend-point.is-active .trend-dot {
  stroke-width: 3;
  fill: var(--protein, #0e8b86);
}
.trend-label {
  fill: var(--ink, #1a1a1a);
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-num, ui-monospace, monospace);
  pointer-events: none;
}
.trend-tip {
  position: absolute;
  transform: translate(-50%, -100%);
  margin-top: -6px;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  background: #001C3D;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 6px 16px rgba(0, 28, 61, 0.28);
}
.trend-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #001C3D;
}
.trend-summary {
  letter-spacing: 0.02em;
}
.trend-arrow {
  display: inline-block;
  margin: 0 0.35em;
  color: var(--coral, #0e8b86);
  font-weight: 700;
}
.trend-count {
  opacity: 0.85;
}
.weight-share-card .field-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.weight-share-channel {
  width: 100%;
}
.weight-share-channel .input-field {
  width: 100%;
}
.weight-share-row {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  width: 100%;
}
.weight-share-field {
  flex: 1 1 auto;
  min-width: 0;
}
.weight-share-field input[type='number']::-webkit-outer-spin-button,
.weight-share-field input[type='number']::-webkit-inner-spin-button {
  opacity: 1;
  margin-inline-start: 0.25rem;
  height: 1.6rem;
}
.weight-share-card .weight-share-btn {
  width: auto;
  flex: 0 0 auto;
  align-self: flex-end;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.25;
  min-height: calc(0.85rem * 2 + 1rem * 1.25);
  box-shadow: 0 3px 10px rgba(242, 101, 34, 0.28);
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.meal-weight-line {
  display: inline;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}
.meal-weight-line.is-large {
  font-size: 1.1rem;
}
.meal-weight-line .meal-weight-new {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.meal-row-weight {
  border-color: rgba(14, 139, 134, 0.22);
  background: linear-gradient(160deg, rgba(14,139,134,0.06), transparent 55%);
}
.partner-avatar-wrap.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.comment-box {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.stat-hero {
  text-align: center;
  padding: 1.75rem 1rem 1.15rem;
}
.stat-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.4rem;
}
.stat-hero-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  overflow: visible;
  direction: ltr;
}
.stat-hero-value .cal-icon-hero {
  flex-shrink: 0;
  width: clamp(1.75rem, 6vw, 2.35rem);
  height: clamp(1.75rem, 6vw, 2.35rem);
  color: var(--coral);
  stroke: var(--coral);
}
.stat-hero-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(3.25rem, 12vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  padding: 0.06em 0.12em;
  overflow: visible;
  background: linear-gradient(135deg, var(--coral-deep) 0%, var(--coral) 50%, #2A8F5A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Avoid WebKit clipping glyph edges with background-clip */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.stat-hero-num .coin-icon-hero {
  margin-inline-end: 0.12em;
}
.stat-hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.cal-today-hero .cal-bar .cal-fill {
  background: linear-gradient(90deg, var(--coral), var(--action));
}

.macro-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding-top: 0.15rem;
}
.macro-chip {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  margin-top: 0.85rem;
  text-align: center;
  padding: 1.25rem 0.35rem 0.5rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.macro-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.macro-chip:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.macro-chip.protein {
  background: linear-gradient(160deg, #E8F5FF 0%, #F5FBFF 100%);
  border-color: rgba(43, 155, 255, 0.2);
}
.macro-chip.carbs {
  background: linear-gradient(160deg, #FFF6E5 0%, #F7FBF8 100%);
  border-color: rgba(245, 166, 35, 0.25);
}
.macro-chip.fat {
  background: linear-gradient(160deg, #FFE8F0 0%, #FFF5F8 100%);
  border-color: rgba(232, 67, 122, 0.2);
}
.macro-chip-ico {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid color-mix(in srgb, currentColor 28%, var(--line));
  box-shadow: 0 2px 8px rgba(0, 28, 61, 0.08);
  z-index: 1;
}
.macro-chip.protein .macro-chip-ico {
  background: color-mix(in srgb, var(--protein) 12%, #fff);
  border-color: color-mix(in srgb, var(--protein) 35%, var(--line));
  color: var(--protein);
}
.macro-chip.carbs .macro-chip-ico {
  background: color-mix(in srgb, var(--carbs) 14%, #fff);
  border-color: color-mix(in srgb, var(--carbs) 38%, var(--line));
  color: var(--carbs);
}
.macro-chip.fat .macro-chip-ico {
  background: color-mix(in srgb, var(--fat) 12%, #fff);
  border-color: color-mix(in srgb, var(--fat) 35%, var(--line));
  color: var(--fat);
}
.macro-chip-ico .ob-icon {
  width: 1.15rem;
  height: 1.15rem;
}
.macro-chip-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  width: 100%;
}
.macro-name-text {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}
.macro-chip.protein .macro-name-text { color: var(--protein); }
.macro-chip.carbs .macro-name-text { color: var(--carbs); }
.macro-chip.fat .macro-name-text { color: var(--fat); }
.macro-chip .macro-val {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.macro-unit {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
  margin-right: 0.15rem;
}
.meal-macros {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.meal-nutrition-stack {
  display: grid;
  grid-template-columns: repeat(var(--macro-cols, 4), minmax(0, 1fr));
  width: 100%;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 0.15rem;
  text-align: center;
  justify-items: stretch;
}
.macro-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-weight: 600;
  line-height: 1;
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0.2rem 0.25rem;
  margin: 0;
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle;
}
.macro-item-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 1.25rem 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  border: 1px solid rgba(0, 28, 61, 0.06);
}
.macro-item-stack .macro-item-ico {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid color-mix(in srgb, currentColor 28%, var(--line));
  box-shadow: 0 2px 8px rgba(0, 28, 61, 0.08);
  z-index: 1;
}
.macro-item-stack.calorie .macro-item-ico {
  background: color-mix(in srgb, var(--accent-orange) 12%, #fff);
  border-color: color-mix(in srgb, var(--accent-orange) 35%, var(--line));
  color: var(--accent-orange);
}
.macro-item-stack.protein .macro-item-ico {
  background: color-mix(in srgb, var(--protein) 12%, #fff);
  border-color: color-mix(in srgb, var(--protein) 35%, var(--line));
  color: var(--protein);
}
.macro-item-stack.carbs .macro-item-ico {
  background: color-mix(in srgb, var(--carbs) 14%, #fff);
  border-color: color-mix(in srgb, var(--carbs) 38%, var(--line));
  color: var(--carbs);
}
.macro-item-stack.fat .macro-item-ico {
  background: color-mix(in srgb, var(--fat) 12%, #fff);
  border-color: color-mix(in srgb, var(--fat) 35%, var(--line));
  color: var(--fat);
}
.macro-item-stack .macro-item-ico .ob-icon {
  width: 1.15rem;
  height: 1.15rem;
}
.macro-item-stack .macro-item-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  width: 100%;
  text-align: center;
}
.macro-item-stack .macro-item-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.macro-item-stack .num {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.macro-item-stack .macro-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}
button.macro-item:hover {
  background: rgba(0, 28, 61, 0.06);
}
button.macro-item:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
}
.macro-item .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.macro-ico { flex-shrink: 0; }
.macro-ico-cal { color: var(--accent-orange); }
.macro-ico-protein,
.macro-item.protein { color: var(--protein); }
.macro-ico-carbs,
.macro-item.carbs { color: var(--carbs); }
.macro-ico-fat,
.macro-item.fat { color: var(--fat); }
.macro-item.calorie { color: var(--ink); }
.macro-item.calorie .macro-ico-cal { color: var(--accent-orange); }
.clarify-option-cals {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  flex-shrink: 0;
  font-weight: 700;
  text-align: start;
  max-width: 100%;
}
.clarify-option-cals .meal-macros {
  margin-top: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}
.nutrition-analyzing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}
.nutrition-analyzing::before {
  display: none;
}
.nutrition-analyzing-spinner {
  border-color: color-mix(in srgb, var(--action) 30%, transparent);
  border-top-color: var(--action);
  margin-inline-end: 0;
  flex-shrink: 0;
}
.clarify-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
  max-height: min(55vh, 22rem);
  overflow-y: auto;
}
.clarify-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  text-align: start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-sm, 10px);
  background: var(--surface-2, #f8fafc);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  font: inherit;
  color: inherit;
}
.clarify-option:hover {
  border-color: var(--accent, #0E8B86);
  transform: translateY(-1px);
}
.clarify-option-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.clarify-macro-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.clarify-macro-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.clarify-progress {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral-deep);
}
.macro-item .macro-name {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}
.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.3rem;
}
.chat-input-row #ai-input {
  background: #fff;
  border: 1.5px solid rgba(14, 139, 134, 0.38);
  box-shadow: 0 4px 16px rgba(14, 139, 134, 0.1);
  min-height: 2.85rem;
}
.chat-input-row #ai-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(14, 139, 134, 0.15), 0 4px 16px rgba(14, 139, 134, 0.12);
}
.meal-photo-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.5rem 0 0.15rem;
  flex-wrap: wrap;
}
.composer-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
}
.composer-box:focus-within {
  border-color: rgba(14, 139, 134, 0.45);
  box-shadow: 0 0 0 3px rgba(14, 139, 134, 0.1);
}
.composer-text {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  min-height: 4.5rem;
  resize: vertical;
}
.composer-photo-preview-wrap {
  position: relative;
  display: inline-block;
  margin: 0 0.85rem 0.65rem;
}
.composer-photo-preview {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
}
.composer-photo-remove {
  position: absolute;
  top: -0.35rem;
  inset-inline-start: -0.35rem;
  width: 1.4rem;
  height: 1.4rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem 0.65rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.composer-cam-btn {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 3.1rem;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--coral);
  cursor: pointer;
  font-family: inherit;
}
.composer-cam-btn.has-photo {
  border-color: rgba(14, 139, 134, 0.4);
  background: rgba(14, 139, 134, 0.1);
}
.composer-cam-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
}
.composer-cam-btn.has-photo .composer-cam-label { color: var(--coral); }
.composer-voice-btn {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 3.1rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.composer-voice-btn.is-listening {
  border-color: rgba(196, 74, 74, 0.45);
  background: rgba(196, 74, 74, 0.1);
  color: var(--coral);
  animation: voice-pulse 1.2s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 74, 74, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(196, 74, 74, 0); }
}
.composer-tool-field {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 0.55rem 0.6rem !important;
  font-size: 0.88rem;
  line-height: 1.45;
  min-height: 2.85rem;
  height: 2.85rem;
  box-sizing: border-box;
  overflow: visible;
}
.composer-tool-field.is-emphasized {
  border-color: rgba(196, 74, 74, 0.55);
  box-shadow: 0 0 0 2px rgba(196, 74, 74, 0.12);
  font-weight: 600;
}
.composer-tool-field::placeholder {
  line-height: 1.45;
  opacity: 1;
}
.composer-cam-btn.is-emphasized {
  border-color: rgba(196, 74, 74, 0.45);
  background: rgba(196, 74, 74, 0.08);
}
.composer-chat-hint {
  flex: 1;
  min-width: 0;
  align-self: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.meal-photo-row-hero {
  margin: 0.35rem 0 0.75rem;
}
.meal-photo-btn-hero {
  flex: 1;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-style: solid;
  background: linear-gradient(145deg, rgba(14,139,134,0.12), rgba(14,139,134,0.04));
}
.meal-photo-preview-lg {
  width: 5.5rem;
  height: 5.5rem;
}
.report-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.report-mode-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.55rem 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 139, 134, 0.16);
  background: var(--surface-2);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.report-mode-chip.active {
  border-color: var(--coral);
  background: rgba(14, 139, 134, 0.1);
  box-shadow: inset 0 0 0 1px rgba(14, 139, 134, 0.15);
}
.report-mode-chip:disabled { opacity: 0.55; cursor: default; }
.report-mode-label { font-size: 0.82rem; font-weight: 700; }
.report-mode-hint { font-size: 0.68rem; color: var(--muted); }
.meal-photo-only-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.meal-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(14, 139, 134, 0.35);
  background: rgba(14, 139, 134, 0.05);
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.meal-photo-open {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.55rem 0 0.65rem;
  padding: 0.35rem;
  border: 1px solid rgba(14, 139, 134, 0.14);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.meal-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.5rem;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border-radius: calc(var(--radius-md) - 2px);
}
.meal-photo-loading {
  flex-direction: column;
  gap: 0.55rem;
  min-height: 8.5rem;
  background: color-mix(in srgb, var(--teal, #0E8B86) 6%, var(--surface-2));
}
.meal-photo-spinner {
  border-color: color-mix(in srgb, var(--action) 30%, transparent);
  border-top-color: var(--action);
  margin: 0;
  width: 1.15rem;
  height: 1.15rem;
}
.meal-photo-lazy { cursor: zoom-in; }
.meal-photo-open:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.meal-photo-preview {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.55rem;
  object-fit: cover;
  border: 1px solid rgba(14, 139, 134, 0.2);
}
.meal-photo-thumb {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 32rem);
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-md) - 2px);
  margin: 0;
  background: transparent;
}
.meal-photo-thumb:hover { filter: brightness(1.02); }
.meal-react-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.25rem;
}
.meal-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 34px;
  border: 1px solid rgba(14, 139, 134, 0.16);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}
.meal-react-btn:hover,
.meal-react-btn.active {
  border-color: rgba(14, 139, 134, 0.4);
  background: rgba(14, 139, 134, 0.08);
}
.meal-react-count {
  font-size: 0.72rem;
  color: var(--muted);
  margin-inline-start: 0.15rem;
  font-family: var(--font-num);
}
.meal-photo-lightbox {
  position: relative;
  width: min(96vw, 40rem);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0b0d10;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.meal-photo-lightbox-img {
  width: 100%;
  max-height: min(70vh, 32rem);
  object-fit: contain;
  background: #000;
  display: block;
}
.meal-photo-lightbox-body {
  padding: 0.85rem 1rem 1rem;
  background: linear-gradient(180deg, #101418 0%, #0b0d10 100%);
  color: #f5f7fa;
}
.meal-photo-lightbox-body .modal-desc,
.meal-photo-lightbox-body .text-gray-500 { color: rgba(245,247,250,0.65) !important; }
.meal-photo-lightbox-close {
  position: absolute;
  top: 0.65rem;
  inset-inline-start: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.meal-photo-lightbox .comment-box {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: #f5f7fa;
}
.meal-photo-lightbox .input-field {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}
.modal-root.modal-photo-open {
  background: rgba(5, 8, 12, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  padding: 0.75rem;
}
.meal-photo-clear {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}
.summary-weight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.summary-weight .arrow { color: var(--muted); }
.clarify-option-cals .num {
  font-family: var(--font-num);
  font-size: 1.15rem;
}
.insight-cell {
  padding: 0.8rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
}
.insight-cell .insight-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.member-row:last-child { border-bottom: none; }
.member-ok { color: var(--success); font-size: 0.85rem; font-weight: 600; }
.member-miss { color: var(--destructive); font-size: 0.85rem; font-weight: 600; }

.auth-screen { padding-top: 1rem; }
.auth-brand {
  text-align: center;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.auth-brand h1 {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0;
}
.auth-brand h1 span { color: var(--coral); font-weight: 700; }
.auth-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.45rem 0 0;
}
.auth-back {
  display: block;
  margin-bottom: 1rem;
  text-align: right;
}

.auth-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.35rem;
  background: linear-gradient(135deg, #E0F0E6, #EAF2F2);
  padding: 0.25rem;
  border-radius: var(--radius-pill);
}
.auth-tab {
  flex: 1;
  padding: 0.65rem;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--dur) var(--ease-out);
}
.auth-tab.active {
  background: var(--surface);
  color: var(--coral-deep);
  box-shadow: 0 2px 10px rgba(14, 139, 134, 0.18);
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background var(--dur) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.btn-oauth:hover { background: var(--surface-2); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: var(--faint);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tos-box {
  max-height: 160px;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.tos-box p { margin: 0 0 0.5rem; }

.tos-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 1rem;
  cursor: pointer;
}
.tos-label input { margin-top: 0.2rem; accent-color: var(--coral); }
.tos-label.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.auth-legal-note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--faint);
  line-height: 1.45;
  text-align: center;
}
.auth-legal-note a { color: var(--coral-deep); text-decoration: underline; }

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 10200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(11, 13, 16, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-root.hidden { display: none; }

.modal-card {
  width: 100%;
  max-width: 22rem;
  margin: auto 0;
  max-height: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.modal-card.modal-card-wide { max-width: 26rem; }

/* Mobile: dock modals to the bottom as a sheet (most thumb-reachable) */
@media (max-width: 640px) {
  .modal-root {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: max(1.6rem, env(safe-area-inset-bottom, 0px));
    animation: sheet-up 0.32s var(--ease-out);
  }
  .modal-card.modal-card-wide { max-width: 100%; }
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.modal-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.btn-premium {
  background: var(--action);
  color: var(--action-text);
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.25rem;
  width: 100%;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: transform 150ms var(--ease-out), background var(--dur) var(--ease-out);
}
.btn-premium:hover { background: var(--action-deep); filter: brightness(1.03); }
.btn-premium:active { transform: scale(0.98); }

.btn-ad {
  background: transparent;
  border: 1px solid var(--surface-3);
  color: var(--info);
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.25rem;
  width: 100%;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out);
}
.btn-ad:hover { background: rgba(139, 141, 245, 0.08); }

.ad-player {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 1rem;
  aspect-ratio: 16/9;
}
.ad-player iframe,
.ad-player .ad-mock {
  width: 100%;
  height: 100%;
  border: none;
}
.ad-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EEF4FF, #F5F5F7);
  color: var(--muted);
  font-size: 0.85rem;
  gap: 0.5rem;
}
.ad-mock-logo { font-size: 2rem; }

.ad-timer-ring {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 auto 1rem;
  animation: timer-spin 1s linear infinite;
}
@keyframes timer-spin { to { transform: rotate(360deg); } }

.ad-success { font-size: 2.5rem; animation: point-pop 0.5s var(--ease-out); color: var(--success); }

.plan-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}
.plan-badge-btn {
  cursor: pointer;
  font-family: inherit;
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.plan-badge-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.plan-badge-free {
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.12), rgba(14, 139, 134, 0.1));
  color: var(--action-deep);
  border: 1px solid rgba(242, 101, 34, 0.35);
}
.plan-badge-premium {
  background: linear-gradient(135deg, rgba(14, 139, 134, 0.16), rgba(245, 166, 35, 0.18));
  color: var(--coral-deep);
  border: 1px solid rgba(14, 139, 134, 0.35);
}
.ai-quota-bar-btn {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  justify-content: flex-start;
  color: var(--coral-deep);
  border-color: rgba(14, 139, 134, 0.28);
  background: linear-gradient(120deg, rgba(14, 139, 134, 0.08), rgba(242, 101, 34, 0.06));
}
.ai-quota-bar-btn:hover { filter: brightness(0.98); }

/* —— Premium marketing page —— */
.prem-page {
  padding-bottom: 2rem;
  animation: prem-in 480ms var(--ease-out) both;
}
@keyframes prem-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.prem-hero {
  position: relative;
  margin: -0.25rem -0.15rem 1.5rem;
  padding: 1.75rem 1.15rem 1.9rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(242, 101, 34, 0.18), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(14, 139, 134, 0.2), transparent 50%),
    linear-gradient(165deg, #001C3D 0%, #0A4A55 48%, #0E8B86 100%);
  color: #F7FBFC;
  box-shadow: var(--shadow-md);
}
.prem-hero::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 65%);
  pointer-events: none;
  animation: prem-glow 6s ease-in-out infinite alternate;
}
@keyframes prem-glow {
  from { transform: translate(0, 0); opacity: 0.55; }
  to { transform: translate(-8%, -6%); opacity: 0.9; }
}
.prem-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(247, 251, 252, 0.78);
  position: relative;
  z-index: 1;
}
.prem-kicker span {
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(242, 101, 34, 0.95);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-lockup-prem { color: #fff; }
.brand-lockup-prem .brand-wordmark { color: #fff; font-size: 0.95rem; }
.brand-logo-prem { filter: brightness(1.05); }
.prem-headline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 16ch;
}
.prem-lead {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(247, 251, 252, 0.82);
  max-width: 34ch;
}
.prem-hero-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.prem-hero-btn {
  width: auto;
  margin: 0;
  min-width: 11rem;
  animation: prem-cta-pulse 2.8s ease-in-out infinite;
}
@keyframes prem-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(242, 101, 34, 0); }
}
.prem-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-num);
  font-size: 1.15rem;
  font-weight: 700;
}
.prem-price-pill small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}
.prem-section {
  margin-bottom: 1.75rem;
}
.prem-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prem-section-sub {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.prem-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .prem-feature-grid { grid-template-columns: 1fr 1fr; }
}
.prem-feature {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: prem-feature-in 520ms var(--ease-out) both;
}
.prem-feature-1 { animation-delay: 40ms; }
.prem-feature-2 { animation-delay: 90ms; }
.prem-feature-3 { animation-delay: 140ms; }
.prem-feature-4 { animation-delay: 190ms; }
@keyframes prem-feature-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.prem-feature-ico {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(14,139,134,0.14), rgba(242,101,34,0.1));
  color: var(--coral-deep);
  margin-bottom: 0.65rem;
}
.prem-feature h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}
.prem-feature p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.prem-compare {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.prem-compare-head,
.prem-compare-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 0.35rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
}
.prem-compare-head {
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.prem-compare-row {
  border-top: 1px solid var(--divider);
  font-size: 0.84rem;
}
.prem-compare-label { color: var(--ink); font-weight: 500; }
.prem-compare-cell {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}
.prem-compare-pro {
  color: var(--coral-deep);
  font-weight: 700;
}
.prem-pricing-section { margin-top: 0.25rem; }
.prem-cta-box {
  position: relative;
  padding: 1.5rem 1.2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(14,139,134,0.1), rgba(242,101,34,0.08)),
    var(--surface);
  border: 1px solid rgba(14, 139, 134, 0.22);
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: hidden;
}
.prem-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--action), var(--navy));
}
.prem-cta-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--action-deep);
}
.prem-cta-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prem-cta-sub {
  margin: 0 auto 1.1rem;
  max-width: 32ch;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.prem-cta-btn { margin-bottom: 0.55rem; }
.prem-cta-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--faint);
}
.prem-faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.prem-faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.15rem 0.9rem;
  box-shadow: var(--shadow-sm);
}
.prem-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.prem-faq-item summary::-webkit-details-marker { display: none; }
.prem-faq-item summary::after {
  content: '+';
  float: left;
  color: var(--coral);
  font-weight: 700;
}
.prem-faq-item[open] summary::after { content: '−'; }
.prem-faq-item p {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.prem-back {
  text-align: center;
  margin: 0.5rem 0 0;
}
.premium-active-card::before { content: 'ACTIVE'; }
.plan-badge-premium {
  background: linear-gradient(135deg, rgba(14, 139, 134, 0.16), rgba(245, 166, 35, 0.18));
  color: var(--coral-deep);
  border: 1px solid rgba(14, 139, 134, 0.35);
}

.premium-card {
  background: var(--surface);
  border: 1px solid rgba(14, 139, 134, 0.1);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}
.premium-card::before {
  content: 'PRO';
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--coral);
  background: rgba(14, 139, 134, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  letter-spacing: 0.06em;
}
.premium-price {
  font-family: var(--font-num);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.premium-price span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.premium-features { list-style: none; padding: 0; margin: 1rem 0; text-align: right; }
.premium-features li { padding: 0.35rem 0; font-size: 0.85rem; color: var(--muted); }
.premium-features li::before { content: '✓ '; color: var(--success); }

.premium-active {
  background: rgba(43, 184, 95, 0.06);
  border: 1px solid rgba(43, 184, 95, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.ai-quota-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.premium-locked-wrap { position: relative; margin-top: 1rem; }
.premium-locked-content { filter: blur(3px); pointer-events: none; user-select: none; opacity: 0.5; }
.premium-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(250, 251, 252, 0.78);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.premium-locked-overlay p { font-size: 0.85rem; color: var(--muted); }

.lang-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lang-opt {
  flex: 1 1 0;
  min-width: 6.5rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.lang-opt:hover {
  background: var(--surface);
  border-color: var(--ink-muted, var(--line));
}
.lang-opt.selected {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.lang-opt.selected::after {
  content: '✓';
  margin-inline-start: 0.35rem;
  color: var(--coral);
  font-weight: 700;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  width: 100%;
}
.profile-stat {
  background: var(--surface);
  border: 1px solid rgba(14, 139, 134, 0.1);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  box-sizing: border-box;
}
.profile-stat .ps-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.profile-stat .ps-label {
  font-size: 0.7rem;
  color: var(--faint);
  margin-top: 0.3rem;
  font-weight: 600;
}
.profile-stat-btn {
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  transition: border-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.app-main.page-narrow .card,
.app-main.page-narrow .premium-card,
.app-main.page-narrow .pts-entry,
.app-main.page-narrow .profile-stats,
.app-main.page-narrow .btn-outline {
  max-width: 100%;
  box-sizing: border-box;
}
.profile-stat-btn:hover {
  border-color: rgba(14,139,134,0.35);
  transform: translateY(-1px);
}
.pts-entry {
  display: block;
  width: 100%;
  text-align: right;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0.9rem 1rem;
  transition: border-color 140ms var(--ease-out);
}
.pts-entry:hover { border-color: rgba(14,139,134,0.4); }
.pts-entry-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pts-entry-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(14, 139, 134, 0.1);
  color: var(--teal, #0E8B86);
  flex: 0 0 auto;
}
.pts-entry-copy { flex: 1; min-width: 0; }
.pts-entry-chev {
  font-size: 1.35rem;
  color: var(--faint);
  line-height: 1;
}

/* Points & levels page */
.pts-page { padding-bottom: 1.5rem; }
.pts-back { margin: -0.35rem 0 0.85rem; }
.pts-hero { margin-bottom: 0.85rem; }
.pts-hero-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}
.pts-hero-copy { min-width: 0; }
.pts-score {
  font-family: var(--font-num);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--coral);
  line-height: 1;
}
.pts-level-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-top: 0.25rem;
  color: var(--ink);
}
.pts-next { margin-top: 0.15rem; }
.pts-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 0.65rem;
}
.pts-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--action));
  transition: width 280ms var(--ease-out);
}
.pts-streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.pts-earn-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.pts-earn-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.pts-earn-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  flex-shrink: 0;
}
.pts-earn-list strong { display: block; font-size: 0.92rem; }
.pts-earn-list span { font-size: 0.78rem; color: var(--faint); }
.pts-mult-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral-deep);
}
.pts-mult-row span {
  background: rgba(14,139,134,0.08);
  border: 1px solid rgba(14,139,134,0.18);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}
.pts-levels {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pts-level {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.35rem;
  border-radius: var(--radius-md);
}
.pts-level.is-current {
  background: rgba(14,139,134,0.08);
}
.pts-level.is-locked { opacity: 0.48; }
.pts-level-preview { flex-shrink: 0; }
.pts-level-body { flex: 1; min-width: 0; }
.pts-level-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
}
.pts-level-min {
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--faint);
  margin-inline-start: 0.35rem;
}
.pts-level-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.pts-level-status {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--faint);
  flex-shrink: 0;
}
.pts-level.is-current .pts-level-status { color: var(--coral-deep); }
.pts-level.is-open .pts-level-status { color: var(--success); }
.pts-frames-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.pts-frame-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.pts-frame-pick:hover { border-color: rgba(14,139,134,0.4); }
.pts-frame-pick.is-active {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(14,139,134,0.15);
}
.pts-frame-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.pts-frame-check {
  position: absolute;
  top: 0.35rem;
  inset-inline-start: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--coral);
}
.pts-tip {
  background: linear-gradient(145deg, rgba(14,139,134,0.06), rgba(242,101,34,0.06));
}
.pts-tip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}
.pts-tip p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 380px) {
  .pts-frames-grid { grid-template-columns: repeat(2, 1fr); }
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.header-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}
.header-brand span { font-weight: 700; color: var(--coral); }
.header-brand-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.header-user-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  overflow: visible;
}
.header-user-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  padding: 0.15rem 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  direction: ltr;
  unicode-bidi: isolate;
  min-width: 0;
  overflow: visible;
  transition: opacity 140ms var(--ease-out);
}
.header-user-card .avatar-frame {
  flex-shrink: 0;
  width: auto;
  height: auto;
  /* ring comes from padding — don't lock outer box to 40px or it swallows the frame */
}
.header-user-card .header-user-avatar,
.header-user-card .avatar-photo {
  width: 40px !important;
  height: 40px !important;
  box-sizing: border-box;
}
.header-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
}
.header-user-card:hover {
  border-color: transparent;
  transform: none;
  opacity: 0.82;
}
.header-user-card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}
.header-user-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  direction: ltr;
}
.header-user-points {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral-deep);
  direction: ltr;
  text-align: left;
  min-height: 18px;
}
.header-user-points .num {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}
.header-points-ico {
  color: var(--action);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.header-user-points .num {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}
.header-points-ico {
  color: var(--action);
  flex-shrink: 0;
}
.header-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}
.header-left { display: flex; flex-direction: column; gap: 0.1rem; }
.header-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.header-title-row .brand-logo-header {
  pointer-events: none;
}
.header-logo-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.header-logo-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}
.header-title-row .brand-lockup-header {
  gap: 0.45rem;
}
.header-title-row .brand-lockup-header .brand-wordmark {
  font-size: 1.2rem;
  color: var(--ink);
}

.screen-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.3rem;
  padding: 0.05rem 0 0.2rem;
}
.screen-sub {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0 0 1.15rem;
  line-height: 1.45;
  font-weight: 500;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flex-1 { flex: 1; }
.mb-0 { margin-bottom: 0; }
.text-gray-400 { color: var(--muted); }
.text-gray-500 { color: var(--faint); }
.text-emerald-400 { color: var(--success); }
.text-amber-400 { color: var(--carbs); }
.text-red-400 { color: var(--destructive); }
.border-red-400\/30 { border-color: rgba(255, 90, 90, 0.3); }

/* ========== Landing ========== */
.landing {
  width: 100%;
  color: var(--ink);
  overflow-x: hidden;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(250, 251, 252, 0.78);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}
.landing-nav.scrolled { border-bottom-color: var(--line); }

.landing-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.landing-logo .brand-logo { display: block; }

.landing-nav-actions { display: flex; align-items: center; gap: 0.65rem; }
.landing-nav-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: color var(--dur) var(--ease-out);
}
.landing-nav-link:hover { color: var(--ink); }

.landing-nav-cta {
  background: var(--action-deep);
  color: var(--action-text);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), transform 150ms var(--ease-out);
}
.landing-nav-cta:hover { background: #C24815; }
.landing-nav-cta:active { transform: scale(0.97); }

.landing-hero {
  position: relative;
  min-height: min(100dvh, 920px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 30% 0%, rgba(14, 139, 134, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 30%, rgba(242, 101, 34, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(0, 28, 61, 0.05) 0%, transparent 45%),
    var(--canvas);
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

@media (min-width: 900px) {
  .landing-hero {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: right;
    padding-block: 4rem 5rem;
  }
  .landing-hero-copy { justify-self: stretch; }
  .landing-hero-visual {
    justify-self: center;
    align-self: end;
  }
  .landing-phone { transform: rotate(-2.5deg); }
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}
@media (min-width: 900px) {
  .landing-hero-copy { text-align: right; max-width: 34rem; }
}

.landing-hero-brand {
  margin: 0 0 1.15rem;
  animation: slide-up 0.65s var(--ease-out);
  line-height: 0;
}
.landing-hero-brand .brand-lockup-hero {
  justify-content: center;
}
.landing-hero-brand .brand-logo {
  display: block;
  height: 64px !important;
  width: auto !important;
  max-height: 64px;
}
@media (min-width: 900px) {
  .landing-hero-brand .brand-lockup-hero { justify-content: flex-start; }
}

.landing-hero-title {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 16em;
  margin-inline: auto;
  animation: slide-up 0.65s var(--ease-out) 0.08s both;
  color: var(--ink);
}
@media (min-width: 900px) {
  .landing-hero-title { margin-inline: 0; }
}

.landing-hero-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 28em;
  margin-inline: auto;
  animation: slide-up 0.65s var(--ease-out) 0.16s both;
}
@media (min-width: 900px) {
  .landing-hero-sub { margin-inline: 0; }
}

.landing-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--action-deep) 0%, #C24815 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 1rem 2.1rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: filter var(--dur) var(--ease-out), transform 150ms var(--ease-out), box-shadow var(--dur) var(--ease-out);
  animation: slide-up 0.65s var(--ease-out) 0.24s both;
  margin-bottom: 0;
  box-shadow: 0 10px 28px rgba(242, 101, 34, 0.38);
}
.landing-hero-cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 32px rgba(242, 101, 34, 0.45);
}
.landing-hero-cta:active { transform: scale(0.97); }

.landing-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: slide-up 0.75s var(--ease-out) 0.32s both;
}

.landing-phone {
  width: min(280px, 72vw);
  aspect-ratio: 9 / 17.8;
  background: linear-gradient(160deg, #1a1d22 0%, #0B0D10 100%);
  border: 3px solid #2a2e35;
  border-radius: 2.15rem;
  padding: 0.65rem;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px rgba(11, 13, 16, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out);
}
.landing-phone::after {
  content: '';
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 0.35rem;
  background: #2a2e35;
  border-radius: var(--radius-pill);
  z-index: 3;
}
.landing-phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ai-line);
  background-size: 200% 100%;
  animation: ai-sweep 2.8s linear infinite;
  z-index: 2;
}

.landing-phone-screen {
  height: 100%;
  background: var(--canvas);
  border-radius: 1.55rem;
  padding: 1.35rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
}

.lp-feed-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  text-align: right;
  box-shadow: var(--shadow-sm);
}
.lp-feed-item .lp-author-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.lp-feed-item .lp-author {
  font-size: 0.65rem;
  color: var(--faint);
  font-weight: 600;
}
.lp-feed-item .lp-meal {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.lp-feed-item .lp-cals {
  font-family: var(--font-num);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.lp-feed-item .lp-unit {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 0.25rem;
}
.lp-macros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-top: 0.2rem;
}
.lp-macros .macro-item {
  font-size: 0.68rem;
}
.lp-macros .lp-cals {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.85rem;
}
.lp-macros .macro-unit {
  font-size: 0.55rem;
  margin-right: 0;
}
.lp-comment {
  font-size: 0.62rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 0.45rem;
  padding: 0.35rem 0.5rem;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.landing-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2.25rem clamp(1.25rem, 4vw, 3rem);
}
.landing-avatars {
  display: flex;
  align-items: center;
}
.landing-avatars .avatar {
  width: 2.6rem;
  height: 2.6rem;
  border: 2.5px solid var(--canvas);
  margin-inline-start: -0.55rem;
  font-size: 0.8rem;
}
.landing-avatars .avatar:first-child { margin-inline-start: 0; }
.landing-proof-text {
  font-size: 0.9rem;
  color: var(--muted);
}
.landing-proof-text strong { color: var(--ink); font-weight: 700; }

.landing-section {
  padding: 4.75rem clamp(1.25rem, 4vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
}
.landing-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.75rem;
  text-align: center;
}
.landing-section-title {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-align: center;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.landing-section-sub {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  max-width: 32em;
  margin: 0 auto 2.75rem;
  line-height: 1.6;
}

.landing-why {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 48rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .landing-why {
    grid-template-columns: repeat(3, 1fr);
  }
}
.landing-why-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .landing-why-item {
    border-bottom: none;
    border-inline-start: 1px solid var(--line);
  }
  .landing-why-item:last-child { border-inline-start: none; }
}
.landing-why-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.landing-why-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.landing-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 40rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .landing-routes { grid-template-columns: repeat(4, 1fr); max-width: 52rem; }
}
.landing-route {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem 0.85rem;
  text-align: center;
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.landing-route:hover {
  background: var(--surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.landing-route .lr-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
  font-size: 1.1rem;
  background: var(--surface-2);
}
.landing-route .lr-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.landing-route .lr-desc { font-size: 0.75rem; color: var(--faint); line-height: 1.4; }

.landing-feature-band {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4.75rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-feature-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(14, 139, 134, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.landing-feature-band .landing-section-title,
.landing-feature-band .landing-section-sub,
.landing-feature-band .landing-section-label { position: relative; }

.landing-footer-cta {
  text-align: center;
  padding: 3.25rem clamp(1.25rem, 4vw, 3rem);
}
.landing-footer-cta h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.landing-footer-cta p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.landing-final-cta {
  text-align: center;
  padding: 5.5rem clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(14, 139, 134, 0.07) 0%, transparent 65%),
    var(--canvas);
}
.landing-final-cta h2 {
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.landing-final-cta p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28em;
  margin: 0 auto 1.85rem;
  line-height: 1.55;
}

.landing-footer {
  border-top: 1px solid var(--line);
  padding: 2.15rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}
.landing-footer .lf-brand {
  display: flex;
  align-items: center;
  line-height: 0;
}
.landing-footer .lf-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.landing-footer .lf-links a,
.landing-footer .lf-links button {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: color var(--dur) var(--ease-out);
}
.landing-footer .lf-links button:hover,
.landing-footer .lf-links a:hover { color: var(--ink); }
.landing-footer .lf-copy {
  width: 100%;
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 0.5rem;
}

.landing-includes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.landing-mock-card {
  width: min(210px, 42vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  text-align: right;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.landing-mock-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.landing-mock-card .lm-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.55rem;
}
.landing-mock-card .lm-num {
  font-family: var(--font-num);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.landing-mock-card .lm-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}
.landing-mock-card .lm-bar {
  height: 3px;
  background: var(--surface-3);
  border-radius: 2px;
  margin-top: 0.85rem;
  overflow: hidden;
}
.landing-mock-card .lm-bar > i {
  display: block;
  height: 100%;
  background: var(--success);
  border-radius: 2px;
}

/* Phase A — product */
.invite-code {
  font-family: var(--font-num);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #E0F0E6 0%, #EAF2F2 100%);
  border-radius: var(--radius-md);
  color: var(--coral-deep);
  border: 1px solid rgba(14, 139, 134, 0.2);
}
.invite-code--own {
  border-color: rgba(14, 139, 134, 0.35);
}
.invite-receive-card {
  border-style: dashed;
  border-color: rgba(14, 139, 134, 0.28);
  background: rgba(14, 139, 134, 0.03);
}
.invite-own-card .invite-code {
  box-shadow: 0 4px 14px rgba(14, 139, 134, 0.12);
}
.coin-hero-diamonds-btn {
  border: none;
  background: transparent;
  text-align: inherit;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}
.fallback-destination {
  color: var(--teal, #0E8B86);
  font-weight: 600;
}
.currency-diff-hint {
  line-height: 1.45;
}

.partner-status-card {
  border-color: rgba(14, 139, 134, 0.22);
  background: linear-gradient(120deg, #F4FAF6 0%, #FFFFFF 55%);
}

.meal-row {
  padding: 0.9rem 1rem;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-num);
}
.nav-tab-badge {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: -0.45rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  font-family: var(--font-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--surface, #fff);
}
.header-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(14, 139, 134, 0.08);
  color: var(--coral-deep);
  cursor: pointer;
  flex-shrink: 0;
}
.header-notif-btn:hover { background: rgba(14, 139, 134, 0.14); }
.header-notif-btn.has-unread {
  color: var(--coral);
  background: rgba(14, 139, 134, 0.14);
}
.header-notif-count {
  position: absolute;
  top: -0.15rem;
  inset-inline-start: -0.15rem;
}
.notif-inbox {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-bottom: 1.5rem;
}
.notif-inbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
}
.notif-inbox-row.notif-unread {
  border-color: rgba(14, 139, 134, 0.28);
  background: rgba(14, 139, 134, 0.05);
}
.notif-inbox-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: rgba(14, 139, 134, 0.1);
  color: var(--coral);
  flex-shrink: 0;
}
.notif-inbox-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.notif-inbox-label {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--muted);
}
.notif-inbox-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.notif-row .notif-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: transparent;
  margin-top: 0.45rem;
  flex-shrink: 0;
}
.notif-row.notif-unread {
  border-color: rgba(14, 139, 134, 0.28);
  background: rgba(14, 139, 134, 0.06);
}
.notif-row.notif-unread .notif-dot { background: var(--action); }
.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
}

#partner-messages {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.mb-0 { margin-bottom: 0; }

@media (max-width: 899px) {
  .landing-hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .landing-phone {
    width: min(240px, 68vw);
    margin-top: 1.5rem;
  }
}

/* —— Visual life: icons, empty states, motion —— */
.ob-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.nav-fab .fab-ico { color: #fff; }
.brand-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-logo-header { max-height: 40px; height: 40px; width: auto; }
.brand-logo-auth {
  max-height: 72px;
  height: 72px;
  width: auto;
  margin-inline: auto;
}
.brand-logo-nav { max-height: 36px; height: 36px; width: auto; }
.brand-logo-hero { max-height: 88px; height: 88px; width: auto; }
.brand-logo-footer { max-height: 40px; height: 40px; width: auto; }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
}
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink, #0b1f2a);
  white-space: nowrap;
}
.brand-lockup-nav .brand-wordmark { font-size: 1.15rem; }
.brand-lockup-hero {
  gap: 0.75rem;
}
.brand-lockup-hero .brand-wordmark {
  font-size: clamp(1.85rem, 4.5vw, 2.55rem);
}
.brand-lockup-auth {
  flex-direction: column;
  gap: 0.35rem;
}
.brand-lockup-auth .brand-wordmark {
  font-size: 1.85rem;
}
.brand-lockup-header .brand-wordmark { font-size: 1.25rem; }
.brand-lockup-footer .brand-wordmark {
  font-size: 1.2rem;
  color: inherit;
}
.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
}
.header-brand-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.lf-brand {
  display: flex;
  justify-content: center;
  line-height: 0;
}
.screen-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.screen-title-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(14, 139, 134, 0.14), rgba(14, 139, 134, 0.05));
  color: var(--coral);
}
.route-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface-2), #fff);
  border: 1px solid var(--line);
  color: var(--coral);
  flex-shrink: 0;
}
.route-card.selected .route-icon-wrap {
  background: linear-gradient(145deg, rgba(14, 139, 134, 0.18), rgba(14, 139, 134, 0.06));
  border-color: rgba(14, 139, 134, 0.35);
  color: var(--coral);
}
.meal-type-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.meal-type-icon { color: var(--muted); opacity: 0.85; }
.meal-author-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.meal-author-line .meal-author-name,
.meal-type-label .meal-author-name {
  min-width: 0;
}
.meal-author-avatar,
.meal-type-label .avatar-frame {
  flex-shrink: 0;
}

.leni-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0E8B86, #0A6B67);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(14, 139, 134, 0.28);
}
.leni-avatar .leni-face { color: #fff; }
.leni-header .screen-title { font-size: 1.35rem; }

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  max-width: 92%;
}
.chat-row .avatar-frame,
.chat-row .leni-avatar {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.15rem;
}
.chat-row .chat-msg-avatar,
.chat-row .avatar-photo.chat-msg-avatar {
  width: 32px !important;
  height: 32px !important;
}
/* User messages → right (inline-start in RTL); avatar first in DOM sits at screen edge */
.chat-row-user {
  align-self: flex-start;
  justify-content: flex-start;
  flex-direction: row;
}
/* Leni / partner → left (inline-end in RTL), avatar outside */
.chat-row-ai {
  align-self: flex-end;
  justify-content: flex-start;
  flex-direction: row;
  direction: ltr; /* avatar | bubble from the left edge */
}
.chat-row-ai .chat-bubble {
  direction: rtl;
  text-align: start;
}
.chat-row .chat-bubble {
  margin-inline-start: 0;
  margin-inline-end: 0;
  margin-bottom: 0;
}
.chat-thread {
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.empty-state {
  text-align: center;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, #FFFFFF 0%, #EAF2F2 55%, #F7F3F0 100%);
  border: 1px dashed rgba(14, 139, 134, 0.28);
}
.empty-state-orb {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(14, 139, 134, 0.28), rgba(242, 101, 34, 0.12) 55%, transparent 70%),
              linear-gradient(145deg, #fff, #E4F0EF);
  color: var(--coral);
  box-shadow: inset 0 0 0 1px rgba(14, 139, 134, 0.2), 0 8px 20px rgba(14, 139, 134, 0.12);
}
.empty-state-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.empty-state-body {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}
.empty-state-cta { max-width: 14rem; margin-inline: auto; }

.partner-avatar-wrap { position: relative; }
.status-dot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.status-dot.ok { background: var(--success); }
.status-dot.miss { background: var(--coral); }
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.status-ico { flex-shrink: 0; }

.partner-miss-pulse {
  position: relative;
}
.partner-miss-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.5px solid rgba(14, 139, 134, 0.4);
  animation: partner-ring 2s ease-out infinite;
  pointer-events: none;
}
@keyframes partner-ring {
  0% { opacity: 0.7; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}

.macro-stagger .macro-chip {
  animation: fade-up 0.45s var(--ease-out) both;
}
.macro-stagger .macro-chip:nth-child(1) { animation-delay: 0.05s; }
.macro-stagger .macro-chip:nth-child(2) { animation-delay: 0.12s; }
.macro-stagger .macro-chip:nth-child(3) { animation-delay: 0.19s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.4s var(--ease-out) both; }

.streak-ico { color: var(--coral); }

.auth-brand .brand-mark { margin-bottom: 0.35rem; }
.oauth-ico {
  display: inline-flex;
  margin-left: 0.35rem;
  color: inherit;
}
.btn-oauth.google .oauth-ico { color: #4285F4; }
.btn-oauth.facebook .oauth-ico { color: #1877F2; }

.lr-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  background: linear-gradient(135deg, rgba(14, 139, 134, 0.14), rgba(14, 139, 134, 0.05)) !important;
}

.clarify-list .fade-up,
.modal-card { animation: fade-up 0.3s var(--ease-out); }

/* Support groups + voice day summary */
.group-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.group-list-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  text-align: right;
  cursor: pointer;
  color: inherit;
}
.group-list-item.is-active {
  border-color: rgba(14, 139, 134, 0.4);
  background: rgba(14, 139, 134, 0.08);
}
.group-list-item.is-pending-member { opacity: 0.92; }
.group-list-avatar {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: color-mix(in srgb, var(--teal) 16%, var(--surface-2, #f3f6f7));
  color: var(--teal);
}
.group-list-main { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; flex: 1; }
.group-list-name { font-weight: 700; }
.group-list-meta { font-size: 0.75rem; color: var(--muted); }
.group-unread-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-start: 0.35rem;
  border-radius: 50%;
  background: var(--action);
  vertical-align: middle;
}
.group-composer { margin-bottom: 1rem; }
.group-upgrade-card { text-align: center; }
.group-link-card { text-align: start; }
.groups-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.groups-hub-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.groups-hub-add { min-width: 2.4rem; font-size: 1.35rem; line-height: 1; padding-inline: 0.7rem; }
.groups-hub-actions { display: flex; gap: 0.5rem; }
.groups-join-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
}
.groups-join-row .input-field { flex: 1; margin: 0; }
.groups-search-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.groups-search-row .menu-search { flex: 1; }
.group-category-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
}
.group-chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.group-chip.is-active {
  border-color: rgba(14, 139, 134, 0.45);
  background: rgba(14, 139, 134, 0.12);
  color: var(--teal);
}
.group-discover-row,
.group-open-row,
.group-request-row,
.group-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.group-discover-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}
.group-discover-row:last-child,
.group-open-row:last-child,
.group-request-row:last-child,
.group-member-row:last-child { border-bottom: 0; }
.group-request-actions { display: flex; gap: 0.35rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.group-badge {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
}
.group-badge-pending { background: rgba(242, 101, 34, 0.15); color: var(--action); }
.group-badge-requests { background: rgba(14, 139, 134, 0.18); color: var(--teal); }
.group-page-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1rem 1rem 0.85rem;
  margin: 0 -0.25rem 0.5rem;
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(14, 139, 134, 0.14), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(242, 101, 34, 0.08), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
}
.group-page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.group-menu-popover {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem;
  margin-bottom: 0.65rem;
}
.group-menu-popover .btn-ghost { text-align: start; width: 100%; }
.group-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}
.group-tab {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.group-tab.is-active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.group-chat-thread {
  max-height: min(50vh, 380px);
  overflow-y: auto;
}
.group-post-body { font-size: 0.95rem; line-height: 1.45; word-break: break-word; }
.group-post-reacts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.group-react-btn {
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(0,0,0,0.03));
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.group-react-btn.is-on {
  border-color: rgba(14, 139, 134, 0.4);
  background: rgba(14, 139, 134, 0.12);
}
.group-share-invite { padding: 0.85rem; text-align: start; }
.group-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.85rem;
}
.group-pending-card { padding: 1.25rem 1rem; }
.modal-group-create { text-align: start; }
.modal-group-create .modal-title { text-align: center; }
.group-create-fields .field-label { display: block; margin-bottom: 0.25rem; }
.sticky-modal-actions {
  position: sticky;
  bottom: 0;
  padding-top: 0.75rem;
  background: linear-gradient(to top, var(--surface) 70%, transparent);
}
.input-field.is-invalid {
  border-color: color-mix(in srgb, var(--action) 55%, var(--border));
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.15);
}
.hidden { display: none !important; }
.voice-transcript-box {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: var(--surface-2, rgba(0,0,0,0.04));
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.5;
  max-height: 10rem;
  overflow: auto;
}
.voice-meal-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 16rem;
  overflow: auto;
}
.voice-meal-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  cursor: pointer;
}
.voice-meal-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.voice-meal-copy strong {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Coin game economy */
.coin-game-hero { border: 1px solid rgba(14, 139, 134, 0.25); }
.coin-hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.coin-hero-side { text-align: left; }
.coin-icon {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  vertical-align: -0.3em;
}
.coin-icon-header {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}
.coin-icon-hero { width: 1em; height: 1em; vertical-align: -0.18em; }
.header-user-coins {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted, #3A4F66);
  min-height: 18px;
  direction: ltr;
  text-align: left;
}
.header-coins-grant { opacity: 0.65; font-size: 0.7rem; }
.coin-bar .coin-fill { background: linear-gradient(90deg, #f5a623, #f26522); }
.coin-price-preview { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }
.coin-earn-preview { color: #0e8b86; }
.coin-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.coin-hero-actions .btn-primary,
.coin-hero-actions .btn-outline { width: 100%; margin-top: 0.75rem; }
.num.is-negative { color: #c0392b; }
.meal-coin-earn { color: #0e8b86; font-weight: 700; }
.coin-icon-inline { width: 1em; height: 1em; vertical-align: -0.2em; }
.food-quick-picks-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.food-quick-pick {
  border: 1px solid rgba(14, 139, 134, 0.35);
  background: rgba(14, 139, 134, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.composer-suggest-wrap {
  position: relative;
  width: 100%;
}
.composer-suggest-wrap .composer-text { width: 100%; }
.food-suggest {
  position: absolute;
  inset-inline: 0;
  top: calc(1.35em + 1.25rem);
  z-index: 40;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: min(12.5rem, 40vh);
  overflow-y: auto;
  background: var(--surface, #fff);
  border: 1px solid rgba(58, 79, 102, 0.18);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(20, 40, 60, 0.12);
}
.food-suggest[hidden] { display: none !important; }
.food-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink, #1a2b3c);
}
.food-suggest-item:hover,
.food-suggest-item.is-active {
  background: rgba(14, 139, 134, 0.1);
}
.food-suggest-label { font-weight: 600; }
.food-suggest-cal {
  font-size: 0.75rem;
  color: var(--muted, #3A4F66);
  white-space: nowrap;
}
.food-suggest-cal small {
  font-size: 0.68rem;
  opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
  .food-suggest { box-shadow: 0 2px 8px rgba(20, 40, 60, 0.1); }
}
.menu-page { padding-bottom: 1.5rem; }
.menu-section { margin-top: 1rem; }
.menu-section-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.65rem; }
.menu-section-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0.85rem 0 0.75rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: rgba(14, 139, 134, 0.08);
}
.menu-section-tab {
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gray-600, #4b5563);
  cursor: pointer;
}
.menu-section-tab.is-active {
  background: #fff;
  color: var(--teal, #0E8B86);
  box-shadow: 0 1px 4px rgba(14, 40, 60, 0.08);
}
.menu-search { margin-bottom: 0.75rem; }
.menu-browse-hint { margin: 0 0 0.55rem; }
.menu-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.menu-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(14, 139, 134, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-700, #374151);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-chip.is-selected {
  border-color: var(--teal, #0E8B86);
  background: rgba(14, 139, 134, 0.12);
  color: var(--teal, #0E8B86);
}
.menu-chip-count {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.menu-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.menu-category-card {
  --menu-cat-accent: #0E8B86;
  --menu-cat-tint: rgba(14, 139, 134, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 6.25rem;
  padding: 0.95rem 1rem;
  text-align: start;
  border: 1px solid color-mix(in srgb, var(--menu-cat-accent) 22%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--menu-cat-accent) 10%, #fff) 100%);
  box-shadow: 0 2px 10px rgba(14, 40, 60, 0.06);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.menu-category-card:hover {
  border-color: color-mix(in srgb, var(--menu-cat-accent) 45%, transparent);
  box-shadow: 0 4px 14px rgba(14, 40, 60, 0.1);
}
.menu-category-card:focus-visible {
  outline: 2px solid var(--menu-cat-accent);
  outline-offset: 2px;
}
.menu-category-card:active {
  transform: scale(0.98);
}
.menu-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: var(--menu-cat-tint);
  color: var(--menu-cat-accent);
  flex-shrink: 0;
}
.menu-category-icon .menu-cat-icon {
  display: block;
}
.menu-category-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
}
.menu-category-label {
  color: var(--gray-800, #1f2937);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.25;
}
.menu-category-count {
  color: var(--gray-500, #6b7280);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}
/* Food category accents */
.menu-cat-fruits { --menu-cat-accent: #e85d4c; --menu-cat-tint: rgba(232, 93, 76, 0.14); }
.menu-cat-vegetables { --menu-cat-accent: #3a9b4a; --menu-cat-tint: rgba(58, 155, 74, 0.14); }
.menu-cat-meat { --menu-cat-accent: #b4533c; --menu-cat-tint: rgba(180, 83, 60, 0.14); }
.menu-cat-fish { --menu-cat-accent: #2f7ec8; --menu-cat-tint: rgba(47, 126, 200, 0.14); }
.menu-cat-dairy { --menu-cat-accent: #6b8fd4; --menu-cat-tint: rgba(107, 143, 212, 0.14); }
.menu-cat-grains { --menu-cat-accent: #c4952a; --menu-cat-tint: rgba(196, 149, 42, 0.14); }
.menu-cat-legumes { --menu-cat-accent: #8b6b3d; --menu-cat-tint: rgba(139, 107, 61, 0.14); }
.menu-cat-street { --menu-cat-accent: #d97706; --menu-cat-tint: rgba(217, 119, 6, 0.14); }
.menu-cat-sweets { --menu-cat-accent: #c0267a; --menu-cat-tint: rgba(192, 38, 122, 0.14); }
.menu-cat-drinks { --menu-cat-accent: #0ea5a0; --menu-cat-tint: rgba(14, 165, 160, 0.14); }
.menu-cat-sauces { --menu-cat-accent: #a16207; --menu-cat-tint: rgba(161, 98, 7, 0.14); }
/* Activity category accents */
.menu-cat-cardio { --menu-cat-accent: #e11d48; --menu-cat-tint: rgba(225, 29, 72, 0.14); }
.menu-cat-strength { --menu-cat-accent: #7c3aed; --menu-cat-tint: rgba(124, 58, 237, 0.14); }
.menu-cat-sports { --menu-cat-accent: #2563eb; --menu-cat-tint: rgba(37, 99, 235, 0.14); }
.menu-cat-mind_body { --menu-cat-accent: #059669; --menu-cat-tint: rgba(5, 150, 105, 0.14); }
.menu-cat-other { --menu-cat-accent: #64748b; --menu-cat-tint: rgba(100, 116, 139, 0.14); }
.menu-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.menu-family-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: start;
  border: 1px solid rgba(14, 139, 134, 0.16);
  background: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(14,139,134,0.06));
  border-radius: 14px;
  padding: 0.9rem 0.85rem;
  cursor: pointer;
  min-height: 4.25rem;
}
.menu-family-label { font-weight: 700; font-size: 0.95rem; color: var(--gray-800, #1f2937); }
.menu-family-count { font-size: 0.75rem; color: var(--gray-500, #6b7280); }
.menu-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
}
.menu-crumb-btn {
  border: 0;
  background: transparent;
  color: var(--teal, #0E8B86);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.menu-crumb-sep { color: var(--gray-400, #9ca3af); }
.menu-crumb-current { font-weight: 700; color: var(--gray-700, #374151); }
.menu-catalog-list { display: flex; flex-direction: column; gap: 0.5rem; }
.menu-catalog-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(14, 40, 60, 0.07);
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 40, 60, 0.04);
}
.menu-catalog-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  text-align: start;
}
.menu-catalog-name {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--navy, #001C3D);
}
.menu-catalog-macros {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-3, #6B7F92);
}
.menu-catalog-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-2, #3A4F66);
}
.menu-catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
}
.menu-catalog-chip--coins {
  color: var(--teal, #0E8B86);
  font-weight: 650;
}
.menu-catalog-sep {
  color: var(--gray-400, #9ca3af);
  user-select: none;
}
.menu-catalog-btn {
  width: auto;
  align-self: center;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
}
@media (max-width: 380px) {
  .menu-catalog-row {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .menu-catalog-btn {
    width: 100%;
    text-align: center;
  }
}
.menu-cart { margin-top: 0.85rem; }
.menu-cart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.65rem; }
.menu-cart-total { color: var(--text-2, #3A4F66); }
.menu-cart-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.menu-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(14, 40, 60, 0.06);
  background: var(--surface-2, #F4F8F8);
}
.menu-cart-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  text-align: start;
}
.menu-cart-row-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.menu-cart-edit { display: inline-flex; align-items: center; gap: 0.2rem; margin: 0; }
.menu-cart-qty,
.menu-cart-grams { width: 3.5rem; padding: 0.35rem 0.45rem; margin: 0; text-align: center; }
.menu-cart-remove { padding: 0.2rem 0.45rem; font-size: 1.1rem; line-height: 1; }
.menu-back { margin: 0 0 0.75rem; }
.menu-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: rgba(14, 139, 134, 0.1);
}
.menu-mode-btn {
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 0.6rem 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-3);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.menu-mode-btn.is-active {
  background: #fff;
  color: var(--teal, #0E8B86);
  box-shadow: 0 1px 4px rgba(14, 40, 60, 0.1);
}
.menu-food-pick-card {
  padding-top: 1.35rem;
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, calc(100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  overflow: hidden;
  text-align: center;
}
.menu-food-pick-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  flex: 0 0 auto;
  position: relative;
}
.menu-food-pick-header .modal-title { margin-bottom: 0; }
.modal-close-x {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.modal-close-x:hover { background: var(--surface-2); color: var(--ink); }
.menu-food-pick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: rgba(14, 139, 134, 0.12);
  color: var(--teal, #0E8B86);
}
.menu-food-pick-icon svg { width: 1.75rem; height: 1.75rem; }
.menu-food-pick-card .menu-mode-toggle { flex: 0 0 auto; margin-bottom: 0.65rem; }
.menu-food-pick-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  text-align: center;
  padding-bottom: 0.25rem;
}
.menu-food-pick-actions {
  flex: 0 0 auto;
  padding-top: 0.75rem;
  background: var(--surface, #fff);
  border-top: 1px solid rgba(14, 139, 134, 0.1);
}
.menu-portion-desc { margin-bottom: 0.65rem; }
.menu-serving-hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.4;
}
.menu-qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  direction: ltr;
}
.menu-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1.5px solid rgba(14, 139, 134, 0.35);
  background: #fff;
  color: var(--teal, #0E8B86);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), transform 0.12s var(--ease-out), border-color 0.15s, box-shadow 0.15s;
}
.menu-stepper-btn--half {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-width: 1px;
  border-color: rgba(14, 139, 134, 0.28);
  background: rgba(14, 139, 134, 0.06);
  color: rgba(14, 139, 134, 0.92);
  box-shadow: none;
}
.menu-stepper-btn--lg-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.menu-stepper-btn:hover {
  background: rgba(14, 139, 134, 0.08);
  border-color: var(--teal, #0E8B86);
}
.menu-stepper-btn--half:hover {
  background: rgba(14, 139, 134, 0.12);
  border-color: rgba(14, 139, 134, 0.45);
  box-shadow: 0 1px 4px rgba(14, 139, 134, 0.12);
}
.menu-stepper-btn:active {
  transform: scale(0.94);
  background: rgba(14, 139, 134, 0.14);
}
.menu-stepper-btn--half:active {
  transform: scale(0.92);
  background: rgba(14, 139, 134, 0.18);
}
.menu-stepper-input {
  width: 4.25rem;
  margin: 0;
  padding: 0.45rem 0.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: center;
  font-family: var(--font-num);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  -moz-appearance: textfield;
}
.menu-stepper-input::-webkit-outer-spin-button,
.menu-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.menu-stepper-input:focus {
  outline: none;
  background: rgba(14, 139, 134, 0.06);
}
.menu-food-preview-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--surface-2, #EAF2F2);
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}
.menu-food-preview-card.is-updating {
  animation: menu-preview-pulse 0.28s var(--ease-out);
}
@keyframes menu-preview-pulse {
  0% { opacity: 0.55; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}
.menu-food-preview-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}
.menu-food-preview-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.1rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.menu-food-preview-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-num);
}
.coin-history-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid rgba(14,139,134,0.25); background: rgba(255,255,255,0.85); margin-bottom: 0.35rem; cursor: pointer; }
.coin-history-day { margin-bottom: 0.75rem; }
.coin-history-day-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.coin-history-list { list-style: none; margin: 0; padding: 0; }
.coin-history-item { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 0.88rem; }
.coin-history-item-text { flex: 1; min-width: 0; }
.coin-history-item-meta { white-space: nowrap; color: var(--gray-500, #6b7280); font-size: 0.8rem; }
.menu-portion-list { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.85rem; text-align: start; }
.menu-portion-opt.is-selected { border-color: var(--teal, #0E8B86); background: rgba(14,139,134,0.08); }
.menu-confirm-list { padding-inline-start: 1.1rem; line-height: 1.5; }
@media (min-width: 640px) {
  .menu-category-grid,
  .menu-family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.group-open-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.modal-gate { border: 2px solid var(--coral, #0E8B86); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Guided tutorial overlay */
.tutorial-root {
  position: fixed;
  inset: 0;
  z-index: 10100;
  pointer-events: none;
}
.tutorial-root.hidden { display: none !important; }
.tutorial-root.tutorial-root--passthrough {
  pointer-events: none;
}
.tutorial-root.tutorial-root--modal {
  z-index: 10300;
}
.tutorial-card.tutorial-card--modal-tip {
  box-shadow: 0 10px 28px rgba(0, 28, 61, 0.22);
  border-color: rgba(14, 139, 134, 0.35);
}
.tutorial-card.tutorial-card--celebrate {
  border-color: rgba(14, 139, 134, 0.4);
  box-shadow: 0 16px 40px rgba(14, 139, 134, 0.22);
  text-align: center;
  overflow: hidden;
}
.tutorial-card.tutorial-card--celebrate::before {
  content: '';
  display: block;
  height: 4px;
  margin: -1.1rem -1.15rem 0.9rem;
  background: var(--ai-line);
}
.tutorial-card.tutorial-card--celebrate .tutorial-title {
  color: var(--coral-deep);
  font-size: 1.25rem;
}
.tutorial-card.tutorial-card--celebrate .tutorial-title::before {
  content: '🎉';
  display: block;
  font-size: 2rem;
  margin-bottom: 0.35rem;
}
.tutorial-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tutorial-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tutorial-spotlight {
  position: absolute;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 6px rgba(14, 139, 134, 0.45);
  pointer-events: none;
  animation: tutorial-pulse 1.8s ease-in-out infinite;
}
.tutorial-blocker {
  position: absolute;
  pointer-events: auto;
  background: transparent;
}
.tutorial-blocker-full {
  inset: 0;
  display: block;
}
.tutorial-blocker-top,
.tutorial-blocker-left,
.tutorial-blocker-right,
.tutorial-blocker-bottom {
  display: none;
}
.tutorial-card {
  position: absolute;
  width: min(22rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(14, 139, 134, 0.18));
  border-radius: var(--radius-lg, 1rem);
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: var(--shadow-lg, 0 18px 40px rgba(0, 28, 61, 0.18));
  pointer-events: auto;
  text-align: start;
  animation: tutorial-card-in 220ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  z-index: 2;
}
.tutorial-progress {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--coral, #0E8B86);
}
.tutorial-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink, #001C3D);
}
.tutorial-desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted, #3A4F66);
}
.tutorial-hint {
  margin: -0.2rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral, #0E8B86);
}
.tutorial-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.tutorial-actions-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline-start: auto;
}
.tutorial-actions .btn-primary,
.tutorial-actions .btn-outline {
  width: auto;
  min-width: 5.5rem;
  padding: 0.65rem 1rem;
  margin: 0;
}
.tutorial-actions .btn-ghost {
  width: auto;
  padding: 0.45rem 0.35rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--faint, #7a8a99);
}
body.tutorial-active {
  overscroll-behavior: none;
}
@keyframes tutorial-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 6px rgba(14, 139, 134, 0.35); }
  50% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 10px rgba(14, 139, 134, 0.2); }
}
@keyframes tutorial-card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tutorial-spotlight { animation: none; }
  .tutorial-card { animation: none; }
}
@media (max-width: 380px) {
  .tutorial-card { padding: 0.95rem; }
  .tutorial-actions { flex-direction: column; align-items: stretch; }
  .tutorial-actions-main { width: 100%; margin-inline-start: 0; }
  .tutorial-actions .btn-primary,
  .tutorial-actions .btn-outline { flex: 1; }
}

/* Catalog request modal */
button.catalog-similar-pick {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: start;
}
.catalog-request-lognow {
  cursor: pointer;
  user-select: none;
}
.admin-tabs {
  flex-wrap: wrap;
}
.catalog-req-status {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.catalog-req-status.is-pending { background: #FEF3C7; color: #92400E; }
.catalog-req-status.is-added { background: #D1FAE5; color: #065F46; }
.catalog-req-status.is-rejected { background: #FEE2E2; color: #991B1B; }
.catalog-req-status.is-duplicate { background: #E5E7EB; color: #374151; }

