:root {
  --mx: -9999px;
  --my: -9999px;
  --bg: #f0f4f8;
  --app-bg: #e2e8f0;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --green: #16a34a;
  --rose: #e11d48;
  --amber: #d97706;
  --shadow: 0 20px 50px rgba(15, 23, 42, .11);
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.is-app-theme { background: var(--app-bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.route-loading { min-height: 45vh; display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.background-dishes,
.background-overlay,
.mouse-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.background-dishes {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #e2e8f0;
  opacity: 0;
  transition: opacity .35s ease;
}
.background-dishes.is-loaded { opacity: 1; }
.background-overlay {
  z-index: -1;
  background:
    radial-gradient(
      circle 220px at var(--mx) var(--my),
      rgba(240,244,248,0) 0%,
      rgba(240,244,248,.18) 50%,
      rgba(240,244,248,.85) 75%
    ),
    rgba(240,244,248,.85);
  transition: background 140ms linear;
}
.mouse-glow {
  width: 500px;
  height: 500px;
  inset: auto;
  left: 0;
  top: 0;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59,130,246,.16) 0%, transparent 72%);
  transition: opacity .3s ease;
  will-change: left, top, opacity;
}
.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(896px, calc(100% - 48px)); margin: 0 auto; }
.nav { position: relative; z-index: 10; padding: 24px 0; }
.nav .container { width: min(1280px, 100%); padding: 0 48px; box-sizing: border-box; }
.nav-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: flex-end; gap: 0; font-size: 30px; font-weight: 700; letter-spacing: -.055em; }
.heartbeat { width: 48px; height: 24px; overflow: visible; margin-left: 2px; transform: translateY(7px); }
.heartbeat .heartbeat-track {
  stroke: #94a3b8;
  stroke-opacity: .45;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.heartbeat .line {
  stroke: url(#heartbeatGlossStatic);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.heartbeat .heart { fill: #ef4444; stroke: none; }
.heartbeat path.line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pill-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); backdrop-filter: blur(12px); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.nav-link, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font-weight: 600;
  will-change: transform, background-color, box-shadow;
  transition: transform .22s cubic-bezier(.16,1,.3,1), background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.nav-link.active, .btn.dark { background: #0f172a; color: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.16); }
.nav .btn.dark { min-height: 40px; padding: 10px 28px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.btn.light { background: rgba(255,255,255,.5); border-color: var(--line); backdrop-filter: blur(12px); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.btn.primary { background: #0f172a; color: #fff; border-color: #0f172a; border-radius: 18px; padding: 14px 22px; }
.btn.blue { background: var(--blue); color: #fff; border-color: var(--blue); border-radius: 18px; }
.btn.ghost { border-color: var(--line); background: #fff; border-radius: 16px; }
.btn.danger { color: var(--rose); border-color: #fecdd3; background: #fff; border-radius: 16px; }
.btn:hover, .nav-link:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 16px 34px rgba(203,213,225,.7); }
.btn.light:hover { background: rgba(255,255,255,1); color: var(--blue); }
.nav-link:not(.active):hover { background: #f1f5f9; color: #0f172a; box-shadow: none; }
.btn.primary:hover, .btn.dark:hover { background: #1e293b; }
.btn:active, .nav-link:active { transform: translateY(0) scale(.98); }
.hero .btn { min-height: 56px; padding: 16px 32px; border-radius: 12px; font-size: 18px; font-weight: 600; }
.hero .btn.primary { min-width: 220px; box-shadow: 0 10px 24px rgba(203,213,225,.85); }
.hero .btn.light { min-width: 160px; }
.page { flex: 1; }
.hero { text-align: center; padding: 96px 0; overflow: hidden; }
.hero > .reveal.is-visible { transform: none; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(59,130,246,.1); color: #3b82f6; border: 1px solid rgba(59,130,246,.2); backdrop-filter: blur(4px); font-size: 14px; font-weight: 500; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 28px 0 24px; font-size: clamp(44px, 7vw, 72px); line-height: 1.1; letter-spacing: -.045em; font-weight: 700; color: var(--ink); }
.gradient-text { background: linear-gradient(90deg, var(--blue), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 576px; margin: 0 auto 42px; font-weight: 500; }
.section { padding: 96px 0; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.04em; margin-bottom: 10px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: rgba(255,255,255,.7);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  backdrop-filter: blur(12px);
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease, border-color .5s ease, background-color .5s ease;
}
.card.tight { padding: 18px; border-radius: 20px; }
.card:hover { transform: translateY(-4px); border-color: #93c5fd; box-shadow: 0 25px 50px -12px rgba(219,234,254,.95); background: rgba(255,255,255,.8); }
.card h3 { margin-bottom: 8px; letter-spacing: -.02em; }
.card p, .muted { color: var(--muted); line-height: 1.65; font-weight: 500; }
.quote { background: #0f172a; color: #fff; border-radius: 40px; padding: 64px; text-align: center; overflow: hidden; }
.quote p { color: #94a3b8; }
.landing-section { padding: 96px 0; }
.landing-features { border-top: 1px solid rgba(226,232,240,.6); }
.landing-section-title {
  text-align: center;
  margin-bottom: 64px;
}
.landing-section-title p {
  margin: 0 0 16px;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.landing-section-title h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.035em;
}
.landing-step-grid,
.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.landing-feature-grid { gap: 24px; }
.landing-card {
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease, border-color .5s ease, background-color .5s ease;
}
.landing-card:hover {
  transform: translateY(-6px);
  border-color: #93c5fd;
  background: rgba(255,255,255,.8);
  box-shadow: 0 25px 50px -12px rgba(219,234,254,.95);
}
.landing-step-card {
  background: rgba(255,255,255,.7);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}
.landing-feature-card {
  border-radius: 24px;
  padding: 32px;
}
.landing-icon-box {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.landing-card:hover .landing-icon-box {
  transform: scale(1.1);
}
.landing-step-label {
  display: block;
  margin-bottom: 16px;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.landing-card h3 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
}
.landing-card p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.625;
  font-weight: 500;
}
.landing-feature-card .landing-icon-box {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-color: #f1f5f9;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.landing-feature-card h3 {
  margin-bottom: 12px;
}
.landing-cta {
  display: block;
  padding: 128px 0;
  border-top: 1px solid rgba(226,232,240,.6);
}
.landing-cta h2 {
  margin: 0 0 24px;
  color: #0f172a;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.035em;
}
.landing-cta p {
  max-width: 576px;
  margin: 0 auto 40px;
  color: #64748b;
  font-size: 18px;
  line-height: 1.625;
  font-weight: 500;
}
.landing-cta .btn {
  min-width: 0;
  min-height: 58px;
  border-radius: 16px;
  padding: 20px 40px;
  font-size: 18px;
  font-weight: 700;
}
.app-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 70vh;
  padding: 32px 24px 64px;
  position: relative;
  z-index: 1;
}
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 8px; }
.form-shell { max-width: 440px; margin: 0 auto; padding: 14px 0 48px; }
.auth-shell { width: min(780px, calc(100% - 48px)); max-width: none; padding: 28px 0 48px; }
.auth-title { min-height: 104px; text-align: center; margin-bottom: 32px; }
.auth-title h1 { color: #0f172a; font-size: 40px; line-height: 1.05; letter-spacing: -.04em; margin: 0 0 16px; font-weight: 800; }
.auth-title p { color: #64748b; margin: 0; font-weight: 500; line-height: 1.65; }
.auth-form { display: grid; align-content: start; gap: 14px; min-height: 380px; margin-bottom: 0; }
.auth-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(230px, .78fr);
  align-items: center;
  gap: 22px;
}
.auth-email-panel,
.auth-oauth-card {
  min-width: 0;
}
.auth-email-panel {
  min-height: 380px;
}
.auth-oauth-card {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 190px;
  box-shadow: 0 20px 25px -5px rgba(226,232,240,.55);
}
.auth-oauth-copy { text-align: center; }
.auth-oauth-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.025em;
}
.auth-method-divider {
  width: 1px;
  min-height: 260px;
  align-self: stretch;
  position: relative;
  background: #dbe4ef;
}
.auth-method-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: #94a3b8;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.auth-field {
  position: relative;
  display: block;
}
.auth-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #cbd5e1;
  transition: color .22s ease;
  pointer-events: none;
}
.auth-field-icon svg,
.auth-submit svg,
.auth-private svg,
.recaptcha-missing svg {
  width: 100%;
  height: 100%;
}
.auth-field:focus-within .auth-field-icon { color: #0f172a; }
.auth-input {
  width: 100%;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  padding: 16px 20px 16px 48px;
  outline: 0;
  font-weight: 700;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.auth-input::placeholder { color: #cbd5e1; opacity: 1; }
.auth-input:focus { border-color: #0f172a; background: #fff; box-shadow: none; }
.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 0;
}
.auth-forgot-row a {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}
.auth-forgot-row a:hover { color: #0f172a; }
.auth-terms-copy {
  margin: -2px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
.auth-terms-copy a { color: #0f172a; font-weight: 800; }
.auth-google-terms-copy {
  max-width: none;
  margin: -4px auto 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.auth-google-terms-copy a { color: #64748b; font-weight: 800; }
.recaptcha-wrap { display: flex; justify-content: flex-start; }
.recaptcha-missing {
  border: 1px solid #fcd34d;
  border-radius: 22px;
  background: rgba(255,251,235,.8);
  color: #92400e;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
}
.recaptcha-missing-row { display: flex; gap: 12px; align-items: flex-start; }
.recaptcha-missing svg { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.recaptcha-missing strong { display: block; color: #92400e; font-weight: 800; }
.recaptcha-missing p { margin: 4px 0 0; line-height: 1.55; }
.recaptcha-missing code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.auth-submit {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 22px;
  background: #020617;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 20px 25px -5px rgba(226,232,240,.9);
  transition: transform .22s cubic-bezier(.16,1,.3,1), background-color .22s ease;
}
.auth-submit svg { width: 18px; height: 18px; }
.auth-submit:hover { transform: scale(1.02); background: #0f172a; }
.auth-submit:active { transform: scale(.95); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
}
.auth-divider span { height: 1px; flex: 1; background: #f1f5f9; }
.auth-divider strong {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.auth-google-wrap {
  display: flex;
  justify-content: center;
  min-height: 40px;
  margin-bottom: 0;
}
.auth-google-wrap > div { margin: 0 auto !important; }
.auth-mode {
  margin: 24px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}
.auth-mode button {
  border: 0;
  background: transparent;
  color: #020617;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.auth-mode button:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.auth-private {
  border-top: 1px solid #f8fafc;
  margin-top: 28px;
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-private svg { width: 14px; height: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin: 0 0 8px 4px; color: #334155; font-size: 14px; font-weight: 850; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  font-weight: 700;
  transition: border-color .24s ease, background-color .24s ease, box-shadow .24s ease, transform .24s ease;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.input:hover, .select:hover, .textarea:hover { background: rgba(255,255,255,.82); border-color: #cbd5e1; }
.input:focus, .select:focus, .textarea:focus { background: #fff; border-color: #0f172a; box-shadow: 0 0 0 4px rgba(15,23,42,.08); transform: translateY(-1px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.alert { padding: 13px 15px; border-radius: 16px; font-weight: 800; margin-bottom: 14px; }
.alert.error { color: #be123c; background: #fff1f2; border: 1px solid #fecdd3; }
.alert.success { color: #047857; background: #ecfdf5; border: 1px solid #bbf7d0; }
.alert.warn { color: #a16207; background: #fefce8; border: 1px solid #fde68a; }
.contact-page {
  width: min(768px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 32px;
}
.contact-card {
  border: 1px solid #e2e8f0;
  border-radius: 32px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(226,232,240,.5), 0 8px 10px -6px rgba(226,232,240,.5);
}
.contact-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-head-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
}
.contact-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.contact-head p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.625;
  font-weight: 500;
}
.contact-alert { margin-top: 24px; }
.contact-alert:empty { display: none; }
.contact-alert .alert {
  margin: 0;
  border-radius: 22px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
}
.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-topic-grid { grid-template-columns: .9fr 1.1fr; }
.contact-field { display: block; }
.contact-field span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.contact-field span svg {
  color: #64748b;
  flex: 0 0 auto;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  padding: 12px 16px;
  outline: none;
  font-weight: 500;
  transition: border-color .2s ease, background-color .2s ease;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #020617;
  background: #fff;
}
.contact-field textarea {
  min-height: 182px;
  border-radius: 24px;
  line-height: 1.625;
  resize: vertical;
}
.contact-submit-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}
.contact-submit-row p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 22px;
  background: #020617;
  color: #fff;
  padding: 16px 24px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}
.contact-submit:hover { transform: scale(1.01); }
.contact-submit:active { transform: scale(.95); }
.contact-submit:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.contact-submit-spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@media (max-width: 767px) {
  .contact-grid,
  .contact-topic-grid {
    grid-template-columns: 1fr;
  }
}
.dashboard-page { padding-top: 16px; }
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 40px;
}
.dashboard-kicker {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dashboard-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.045em;
}
.dashboard-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 10px;
}
.dashboard-head-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  backdrop-filter: blur(12px);
  transition: transform .22s cubic-bezier(.16,1,.3,1), background-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.dashboard-head-link svg { width: 13px; height: 13px; }
.dashboard-head-link:hover {
  transform: translateY(-1px);
  background: #fff;
  color: #2563eb;
  box-shadow: 0 16px 34px rgba(203,213,225,.7);
}
.dashboard-content {
  display: grid;
  gap: 24px;
}
.dashboard-loading {
  display: grid;
  gap: 24px;
}
.dashboard-loading div {
  min-height: 224px;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  background: rgba(255,255,255,.7);
  animation: dashboardPulse 1.4s ease-in-out infinite alternate;
}
.dashboard-loading div:nth-child(2) { min-height: 240px; }
.dashboard-loading div:nth-child(3) { min-height: 384px; }
.dashboard-card,
.profile-unlock-card {
  border-radius: 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: box-shadow .24s ease;
}
.dashboard-card:hover,
.profile-unlock-card:hover { box-shadow: 0 18px 38px rgba(203,213,225,.45); }
.dashboard-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.dashboard-card-title h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.025em;
}
.dashboard-title-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex: 0 0 auto;
}
.recommendation-card {
  position: relative;
  overflow: visible;
  color: #fff;
  border-color: rgba(147,197,253,.4);
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 52%, #0ea5e9 100%);
  box-shadow: 0 22px 44px rgba(191,219,254,.65);
}
.recommendation-card:hover { box-shadow: 0 26px 52px rgba(191,219,254,.82); }
.recommendation-content {
  position: relative;
  z-index: 2;
}
.recommendation-watermark {
  position: absolute;
  top: -50px;
  right: -50px;
  opacity: .1;
  pointer-events: none;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.recommendation-card:hover .recommendation-watermark { transform: scale(1.1); }
.recommendation-title { margin-bottom: 16px; }
.recommendation-title h2 { color: #fff; font-size: 20px; }
.recommendation-icon {
  background: rgba(255,255,255,.1);
  color: #fbbf24;
  backdrop-filter: blur(12px);
}
.recommendation-copy {
  max-width: 768px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}
.recommendation-buckets {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.recommendation-or {
  align-self: center;
  padding: 0 8px;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.recommendation-bucket {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  padding: 16px;
  backdrop-filter: blur(24px);
  transition: background-color .22s ease, border-color .22s ease;
}
.recommendation-bucket:hover,
.recommendation-bucket.is-open {
  z-index: 5;
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
}
.recommendation-bucket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.recommendation-bucket-head span {
  color: rgba(255,255,255,.95);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.recommendation-bucket-head strong {
  display: inline-flex;
  min-width: 26px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 900;
}
.recommendation-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  background: rgba(255,255,255,.25);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease;
}
.recommendation-toggle:hover { background: rgba(255,255,255,.32); border-color: rgba(255,255,255,.5); }
.recommendation-toggle:disabled { color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.recommendation-toggle svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform .22s ease;
}
.recommendation-bucket.is-open .recommendation-toggle svg { transform: rotate(180deg); }
.recommendation-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  max-height: 224px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  background: rgba(255,255,255,.95);
  color: #0f172a;
  padding: 6px;
  box-shadow: 0 22px 48px rgba(15,23,42,.28), 0 0 0 1px rgba(255,255,255,.7);
  backdrop-filter: blur(24px);
}
.recommendation-bucket.is-open .recommendation-menu { display: grid; gap: 4px; }
.recommendation-menu article {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background-color .18s ease, border-color .18s ease;
}
.recommendation-menu article:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.recommendation-menu h3 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommendation-menu p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.recommendation-empty { color: rgba(255,255,255,.82); margin: 20px 0 0; font-weight: 700; }
.macros-card,
.activity-card { border-color: #e2e8f0; }
.macros-icon {
  background: #eff6ff;
  color: #3b82f6;
}
.activity-icon {
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  color: #0f172a;
}
.dashboard-macro-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
}
.dashboard-macro-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}
.dashboard-macro-label span {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-macro-label strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.dashboard-macro-label em {
  color: #cbd5e1;
  font-style: normal;
  font-weight: 600;
}
.dashboard-bar {
  height: 10px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.dashboard-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: barGrow 1s cubic-bezier(.16,1,.3,1) both;
}
.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 32px;
  align-items: start;
}
.activity-chart-wrap { min-width: 0; }
.weekly-snapshot {
  min-height: 280px;
  height: 100%;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: rgba(248,250,252,.7);
  padding: 24px;
}
.weekly-snapshot h3 {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.weekly-tile {
  min-height: 110px;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}
.weekly-tile p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.weekly-tile strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.03em;
}
.weekly-tile span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.profile-unlock-card {
  padding: 48px;
  text-align: center;
  border-style: dashed;
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #fff, #f8fafc);
}
.profile-unlock-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
.profile-unlock-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.profile-unlock-card p {
  max-width: 448px;
  margin: 0 auto 40px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}
.profile-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border-radius: 12px;
  background: #020617;
  color: #fff;
  padding: 16px 32px;
  font-weight: 800;
  box-shadow: 0 20px 25px -5px rgba(226,232,240,.9);
  transition: transform .22s cubic-bezier(.16,1,.3,1), background-color .22s ease;
}
.profile-unlock-btn:hover { transform: scale(1.02); background: #0f172a; }
.dashboard-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

/* Logged-in React parity layer */
body.is-app-theme {
  background: #e2e8f0;
  color: #0f172a;
}
.dashboard-page { padding-top: 32px; }
body.is-app-theme .nav {
  padding: 24px 0;
}
body.is-app-theme .nav .container {
  width: 100%;
  max-width: 1280px;
  padding: 0 48px;
  margin: 0 auto;
}
body.is-app-theme .nav-inner {
  align-items: flex-start;
  gap: 0;
}
body.is-app-theme .brand {
  align-items: flex-end;
  color: #0f172a;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -.055em;
  transition: transform .2s ease;
}
body.is-app-theme .brand:hover { transform: scale(1.05); }
body.is-app-theme .heartbeat {
  margin-left: 6px;
  transform: translateY(8px);
}
body.is-app-theme .pill-nav {
  gap: 4px;
  padding: 4px;
  border-color: #e2e8f0;
  background: rgba(255,255,255,.5);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
body.is-app-theme .nav-link {
  min-height: 40px;
  gap: 6px;
  padding: 10px 20px;
  color: #334155;
  font-size: 16px;
  line-height: 24px;
  border: 0;
  font-weight: 600;
  box-shadow: none;
}
body.is-app-theme .nav-link svg,
body.is-app-theme .nav-actions > .btn.light svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
body.is-app-theme .nav-link.active {
  background: #020617;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(15,23,42,.14), 0 2px 4px -2px rgba(15,23,42,.14);
}
body.is-app-theme .nav-link:not(.active):hover {
  background: #f1f5f9;
  color: #0f172a;
}
body.is-app-theme .nav-actions > .btn.light {
  min-height: 40px;
  padding: 10px 20px;
  border-color: #e2e8f0;
  background: rgba(255,255,255,.6);
  color: #475569;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -.025em;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
body.is-app-theme .nav-actions > .btn.light:hover {
  border-color: #fda4af;
  background: #fff1f2;
  color: #e11d48;
}
.app-page-head,
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 40px;
}
.app-page-head h1,
.dashboard-head h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.dashboard-head h1 { margin-bottom: 0; }
.app-page-head p,
.dashboard-head p:not(.dashboard-kicker) {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
.dashboard-kicker {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.app-page-actions,
.dashboard-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 10px;
}
.app-page-link,
.dashboard-head-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  backdrop-filter: blur(12px);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.app-page-link:hover,
.dashboard-head-link:hover {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 16px 34px rgba(203,213,225,.7);
}
.dashboard-card {
  padding: 40px;
  border-radius: 32px;
}
.dashboard-content { gap: 24px; }
.recommendation-card {
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 52%, #0ea5e9 100%);
  box-shadow: 0 20px 32px rgba(191,219,254,.62);
}
.recommendation-copy {
  max-width: 768px;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}
.dashboard-card-title h2,
.recommendation-title h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.dashboard-macro-list {
  gap: 24px 48px;
}
.meal-layout.react-meals-layout {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}
.meal-form-card {
  position: relative;
  z-index: 20;
  padding: 32px;
  border: 2px solid #f8fafc;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 25px 50px rgba(203,213,225,.5);
}
.meal-search-wrap { position: relative; }
.meal-search-icon {
  position: absolute;
  left: 0;
  top: 12px;
  color: #94a3b8;
  transition: color .2s ease;
}
.meal-search-wrap:focus-within .meal-search-icon { color: #3b82f6; }
.meal-search-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  padding: 12px 16px 12px 40px;
  outline: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}
.meal-search-input::placeholder { color: #e2e8f0; opacity: 1; }
.app-field {
  display: block;
}
.app-field span,
.settings-label {
  display: block;
  margin: 0 0 8px 4px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.meal-time-field { margin-top: 24px; }
.app-input,
.app-select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  padding: 14px 16px;
  outline: 0;
  font-weight: 800;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.app-input:focus,
.app-select:focus {
  border-color: rgba(59,130,246,.2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.08);
}
.date-field-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.date-field-shell > .date-input-enhanced {
  min-height: 46px;
  padding-right: 48px;
}
.meals-page .date-field-shell > .date-input-enhanced,
.settings-page .date-field-shell > .date-input-enhanced {
  padding-right: 48px;
}
.date-field-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dde8;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  padding: 0;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.date-field-toggle:hover {
  transform: translateY(-50%);
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.date-field-toggle:focus-visible {
  outline: none;
  transform: translateY(-50%);
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148,163,184,.25);
}
.date-field-toggle:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.date-field-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
input.date-input-enhanced::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  height: 0;
}
.io-datepick-popup {
  position: fixed;
  z-index: 2500;
  width: min(320px, calc(100vw - 10px));
  background: #f5f7fb;
  border: 1px solid #d6dde8;
  border-radius: 12px;
  box-shadow: 0 24px 46px rgba(15,23,42,.24);
  color: #0f172a;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
}
.io-datepick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d6dde8;
  padding: 10px 10px 8px;
  background: #eef2f8;
}
.io-datepick-period {
  position: relative;
  min-width: 124px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 7px 28px 7px 10px;
  text-align: left;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
}
.io-datepick-period::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  margin-top: -3px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #64748b;
}
.io-datepick-popup.is-year-mode .io-datepick-period::after,
.io-datepick-popup.is-month-mode .io-datepick-period::after {
  border-top: 0;
  border-bottom: 7px solid #64748b;
}
.io-datepick-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.io-datepick-nav-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.io-datepick-period:hover,
.io-datepick-nav-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.io-datepick-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 7px 10px 4px;
  color: #64748b;
  font-size: .87rem;
  user-select: none;
}
.io-datepick-weekday {
  text-align: center;
  line-height: 1;
}
.io-datepick-grid {
  padding: 3px 10px 10px;
}
.io-datepick-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.io-datepick-day {
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font-size: .92rem;
  line-height: 1;
  cursor: pointer;
}
.io-datepick-day:hover {
  background: #e2e8f0;
}
.io-datepick-day.is-today {
  border-color: #94a3b8;
}
.io-datepick-day.is-selected {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.io-datepick-day-empty {
  width: 100%;
  height: 32px;
  margin: 0;
}
.io-datepick-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.io-datepick-month {
  height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #0f172a;
  font-size: .81rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
}
.io-datepick-month:hover {
  background: #e2e8f0;
}
.io-datepick-month.is-selected {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.io-datepick-month.is-disabled {
  color: #94a3b8;
  cursor: not-allowed;
}
.io-datepick-month.is-disabled:hover {
  background: transparent;
}
.io-datepick-years {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.io-datepick-year {
  height: 33px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font-size: .9rem;
  cursor: pointer;
}
.io-datepick-year:hover {
  background: #e2e8f0;
}
.io-datepick-year.is-selected {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.io-timepick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #d6dde8;
  padding: 8px 10px 10px;
  background: #eef2f8;
}
.io-timepick-sep {
  color: #334155;
  font-weight: 700;
}
.io-timepick select {
  width: auto;
  min-width: 62px;
  min-height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 4px 6px;
  font-size: .88rem;
}
.io-timepick .io-timepick-ampm {
  min-width: 66px;
}
.io-datepick-weekdays[hidden],
.io-datepick-days[hidden],
.io-datepick-months[hidden],
.io-datepick-years[hidden],
.io-timepick[hidden],
.io-datepick-actions[hidden] {
  display: none !important;
}
.io-datepick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #d6dde8;
  padding: 8px 10px 10px;
  background: #eef2f8;
}
.io-datepick-action-btn {
  min-width: 92px;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.io-datepick-action-btn:hover {
  background: #e2e8f0;
}
.io-datepick-apply {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.io-datepick-apply:hover {
  border-color: #1e293b;
  background: #1e293b;
}
.io-datepick-popup.is-datetime-mode {
  width: min(296px, calc(100vw - 10px));
  border-radius: 10px;
}
.io-datepick-popup.is-datetime-mode .io-datepick-header {
  padding: 9px 9px 7px;
}
.io-datepick-popup.is-datetime-mode .io-datepick-period {
  min-width: 116px;
  padding: 6px 24px 6px 9px;
  font-size: .92rem;
}
.io-datepick-popup.is-datetime-mode .io-datepick-nav-btn {
  width: 26px;
  height: 26px;
  font-size: .98rem;
}
.io-datepick-popup.is-datetime-mode .io-datepick-weekdays {
  padding: 6px 9px 4px;
  font-size: .84rem;
}
.io-datepick-popup.is-datetime-mode .io-datepick-grid {
  padding: 3px 9px 9px;
}
.io-datepick-popup.is-datetime-mode .io-datepick-day,
.io-datepick-popup.is-datetime-mode .io-datepick-day-empty {
  height: 30px;
}
.io-datepick-popup.is-datetime-mode .io-datepick-day {
  border-radius: 7px;
  font-size: .9rem;
}
.io-datepick-popup.is-datetime-mode .io-datepick-month {
  height: 31px;
  font-size: .8rem;
}
.io-datepick-popup.is-datetime-mode .io-datepick-year {
  height: 32px;
  font-size: .88rem;
}
.io-datepick-popup.is-datetime-mode .io-timepick {
  gap: 6px;
  padding: 6px 8px 8px;
}
.io-datepick-popup.is-datetime-mode .io-timepick select {
  min-width: 56px;
  min-height: 30px;
  font-size: .84rem;
}
.io-datepick-popup.is-datetime-mode .io-timepick .io-timepick-ampm {
  min-width: 60px;
}
.io-datepick-popup.is-datetime-mode .io-datepick-actions {
  gap: 6px;
  padding: 6px 8px 8px;
}
.io-datepick-popup.is-datetime-mode .io-datepick-action-btn {
  min-width: 86px;
  min-height: 31px;
  font-size: .84rem;
}
.io-datepick-popup.is-date-only-mode {
  width: min(318px, calc(100vw - 10px));
}
.app-input.compact,
.app-select.compact {
  width: 144px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.meal-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #f8fafc;
}
.meal-precise-wrap,
.precise-fields {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.precise-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  border: 1px solid #f1f5f9;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.precise-toggle svg {
  width: 14px;
  height: 14px;
}
.precise-toggle:hover { border-color: #cbd5e1; color: #0f172a; }
.precise-cancel {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.meal-add-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  background: #020617;
  color: #fff;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 20px 25px -5px rgba(226,232,240,.9);
  transition: transform .2s ease, opacity .2s ease;
}
.meal-add-btn:hover { transform: scale(1.05); }
.meal-add-btn:active { transform: scale(.95); }
.react-timeline {
  display: grid;
  gap: 40px;
}
.meal-date-group {
  display: grid;
  gap: 20px;
}
.meal-date-list {
  display: grid;
  gap: 12px;
}
.date-chip {
  border-color: #cbd5e1;
  color: #1e293b;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
}
.meal-item {
  min-height: 88px;
  padding: 20px 144px 20px 20px;
  border-color: #f1f5f9;
  border-radius: 24px;
  background: #fff;
}
.meal-item-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.meal-icon,
.meal-empty-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #f8fafc;
  font-size: 20px;
}
.meal-item strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}
.meal-item small {
  display: inline-block;
  margin-top: 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #3b82f6;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}
.meal-time {
  top: 10px;
  right: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.meal-edit-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  padding: 6px 12px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.meal-empty {
  padding: 96px 24px;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  background: rgba(241,245,249,.5);
  text-align: center;
}
.meal-empty h3 { margin: 24px 0 8px; color: #020617; font-size: 18px; font-weight: 800; }
.meal-empty p { margin: 0; color: #94a3b8; font-size: 14px; font-weight: 600; }
.suggestions {
  top: calc(100% + 12px);
  padding: 12px;
  border-color: #f1f5f9;
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 25px 50px rgba(203,213,225,.75);
}
.suggestions button {
  padding: 16px;
  border-radius: 16px;
}
.suggestions button strong {
  color: #0f172a;
  font-size: 15px;
}
.suggestions button span {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.insight-list {
  display: grid;
  gap: 16px;
}
.insights-page .app-page-head {
  margin-bottom: 40px;
}
.insights-page .app-page-head h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.insights-page .app-page-head p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.insights-loading {
  padding: 96px 0;
  text-align: center;
}
.insights-loading div {
  position: relative;
  display: inline-flex;
  color: #3b82f6;
}
.insights-loading p {
  margin: 16px 0 0;
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
}
.insight-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: box-shadow .2s ease;
}
.insight-card:hover { box-shadow: 0 20px 35px rgba(241,245,249,.9); }
.insight-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid #f8fafc;
  border-radius: 16px;
  background: #f8fafc;
  color: #3b82f6;
  transition: transform .5s ease, background-color .5s ease, box-shadow .5s ease;
}
.insight-card:hover .insight-icon {
  transform: scale(1.1);
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(15,23,42,.1), 0 2px 4px -2px rgba(15,23,42,.1);
}
.insight-card:nth-child(5n+2) .insight-icon { color: #6366f1; }
.insight-card:nth-child(5n+3) .insight-icon { color: #10b981; }
.insight-card:nth-child(5n+4) .insight-icon { color: #f43f5e; }
.insight-card:nth-child(5n+5) .insight-icon { color: #f59e0b; }
.insight-card span {
  display: block;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.insight-card p {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.025em;
}
.insight-empty {
  min-height: 0;
  padding: 96px 24px;
  border: 1px solid #f1f5f9;
  border-radius: 40px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.insight-empty-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  border-radius: 16px;
  background: #fff;
  color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.insight-empty h3 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.insight-empty p {
  max-width: 320px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
}
.insight-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  border-radius: 32px;
  background: #020617;
  color: #fff;
  padding: 32px;
  overflow: hidden;
  transition: background-color .2s ease;
}
.insight-cta:hover { background: #0f172a; }
.insight-cta h3 { margin: 0 0 4px; font-size: 18px; }
.insight-cta p { margin: 0; color: #94a3b8; font-size: 14px; }
.insight-cta > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.settings-shell {
  display: grid;
  gap: 40px;
}
.settings-bmi {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #fff;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.settings-bmi {
  display: flex;
  align-items: center;
  gap: 28px;
}
.settings-bmi h2,
.settings-bmi h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
}
.settings-bmi p {
  max-width: 480px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}
.bmi-ring {
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 9px solid;
  border-radius: 999px;
  flex: 0 0 auto;
}
.bmi-ring strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}
.bmi-ring span {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.settings-card {
  border: 1px solid #f1f5f9;
  border-radius: 28px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.settings-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.settings-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.settings-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.settings-icon.blue { color: #2563eb; background: #eff6ff; }
.settings-icon.orange { color: #f97316; background: #fff7ed; }
.settings-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}
.settings-card.stack {
  display: grid;
  gap: 24px;
}
.settings-card .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.settings-card .chip {
  border-color: #f1f5f9;
  background: #fff;
  color: #64748b;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
}
.settings-card .chip.active {
  border-color: #020617;
  background: #020617;
  color: #fff;
  box-shadow: 0 10px 22px rgba(203,213,225,.8);
}
.settings-security,
.settings-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.settings-security h3,
.settings-action h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
}
.settings-security p,
.settings-action p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}
.settings-dark-btn,
.settings-light-btn,
.settings-danger-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.settings-dark-btn {
  border: 1px solid #020617;
  background: #020617;
  color: #fff;
}
.settings-light-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
}
.settings-danger-btn {
  border: 1px solid #fecdd3;
  background: #fff;
  color: #e11d48;
}

/* /profile exact pass: React SettingsPage.jsx top-to-bottom */
.settings-page .app-page-head {
  margin-bottom: 40px;
}
.settings-page .app-page-head h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.settings-page .app-page-head p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.settings-loading {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  text-align: center;
}
.settings-loading div {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 4px solid rgba(59,130,246,.2);
  border-top-color: #3b82f6;
  border-radius: 9999px;
  animation: spin 1s linear infinite;
}
.settings-loading p {
  margin: 0;
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
}
.settings-shell {
  gap: 40px;
}
.settings-shell > #settings-alert:empty {
  display: none;
}
.settings-bmi {
  justify-self: center;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.settings-bmi::before,
.settings-bmi::after {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
}
.settings-bmi::before {
  top: 0;
  right: 0;
  background: rgba(59,130,246,.1);
}
.settings-bmi::after {
  bottom: 0;
  left: 0;
  background: rgba(99,102,241,.1);
}
.settings-bmi > * {
  position: relative;
  z-index: 1;
}
.settings-bmi h2,
.settings-bmi h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.settings-bmi h3 {
  font-size: 18px;
  line-height: 28px;
}
.settings-bmi p {
  max-width: 480px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.settings-bmi .settings-label {
  margin: 0 0 8px;
  color: #64748b;
  letter-spacing: .2em;
}
.settings-missing {
  padding: 24px;
  border: 1px solid #fcd34d;
  border-radius: 24px;
  background: #fffbeb;
  color: #92400e;
}
.settings-missing h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 700;
}
.settings-missing h4 span {
  color: #e11d48;
  font-size: 14px;
  font-weight: 600;
}
.settings-missing p {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
}
.settings-missing ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}
.settings-column {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}
.settings-panel {
  display: grid;
  gap: 24px;
  min-width: 0;
  overflow: visible;
  padding: 20px 16px;
  border: 1px solid #f1f5f9;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.settings-card-head {
  margin-bottom: 0;
}
.settings-card-head h2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.settings-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 12px;
}
.settings-icon.rose { color: #f43f5e; background: #fff1f2; }
.settings-icon.green { color: #059669; background: #ecfdf5; }
.settings-page .app-field {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.settings-page .app-field span,
.settings-page .settings-label {
  color: #94a3b8;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .1em;
}
.settings-page .app-field span {
  margin: 0 0 0 4px;
}
.settings-page .settings-label {
  margin: 0 0 16px 4px;
}
.settings-security .settings-label,
.settings-action .settings-label {
  margin-bottom: 8px;
}
.settings-bmi .settings-label {
  margin: 0 0 8px;
}
.settings-page .app-field.is-required span,
.settings-page .settings-label.is-required {
  color: #f43f5e;
}
.settings-page .app-input,
.settings-page .app-select {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}
.settings-page .app-field.is-required .app-input,
.settings-page .app-field.is-required .app-select {
  border-color: #fda4af;
  background: rgba(255,241,242,.4);
}
.settings-country-field {
  position: relative;
}
.settings-country-wrap {
  position: relative;
}
.settings-country-field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  transition: color .2s ease;
}
.settings-country-wrap:focus-within .settings-country-field svg {
  color: #f97316;
}
.settings-country-field .app-input {
  padding: 16px 20px 16px 48px;
}
.settings-country-field .app-input:focus {
  border-color: rgba(249,115,22,.2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(249,115,22,.08);
}
.settings-country-list {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 25px 50px -12px rgba(203,213,225,.95);
  backdrop-filter: blur(40px);
  animation: settingsMenuIn .2s ease both;
}
.settings-country-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  transition: background-color .18s ease, color .18s ease;
}
.settings-country-list button:hover {
  background: #f8fafc;
  color: #0f172a;
}
.settings-country-list button.active {
  background: #fff7ed;
  color: #ea580c;
}
.settings-country-list button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-measure {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(226,232,240,.8);
  border-radius: 16px;
  background: #f8fafc;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.settings-measure:focus-within {
  border-color: #fda4af;
  background: #fff;
  box-shadow: 0 1px 2px rgba(255,228,230,.45);
}
.app-field.is-required .settings-measure {
  border-color: #fda4af;
  background: rgba(255,241,242,.3);
}
.settings-measure input {
  width: 0;
  min-width: 0;
  flex: 1 1 0;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #0f172a;
  padding: 0 14px;
  outline: none;
  font-size: 18px;
  font-weight: 700;
}
.settings-measure select {
  width: 84px;
  flex: 0 0 84px;
  max-width: 84px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  padding: 0 12px;
  outline: none;
  font-size: 14px;
  font-weight: 700;
}
.settings-biometric-row .app-field span {
  text-align: center;
}
.settings-card .chip-list {
  gap: 10px;
}
.settings-card .chip-list.is-required-box {
  padding: 8px;
  border: 1px solid #fda4af;
  border-radius: 16px;
  background: rgba(255,241,242,.3);
}
.settings-card .chip {
  padding: 8px 14px;
  border: 1px solid #f1f5f9;
  border-radius: 9999px;
  background: #fff;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.settings-card .chip.active {
  border-color: #020617;
  background: #020617;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(226,232,240,.9), 0 4px 6px -4px rgba(226,232,240,.9);
}
.settings-card .meat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.settings-card .meat-chip svg {
  width: 14px;
  height: 14px;
}
.settings-meats {
  display: grid;
  gap: 16px;
}
.settings-security {
  margin-top: 96px;
}
.settings-security,
.settings-action {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
}
.settings-security h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}
.settings-action h3 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.settings-security p,
.settings-action p {
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.settings-light-btn,
.settings-danger-btn,
.settings-dark-btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.settings-autosave-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  padding: 12px 16px;
  box-shadow: 0 20px 25px -5px rgba(203,213,225,.2), 0 8px 10px -6px rgba(203,213,225,.2);
  backdrop-filter: blur(24px);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .2s ease, transform .2s ease;
}
.settings-autosave-toast.is-hidden {
  opacity: 0;
  transform: translateY(8px) scale(.97);
  pointer-events: none;
}
.settings-autosave-toast > span:last-child {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.settings-autosave-toast.is-saving > span:last-child { color: #d97706; }
.settings-autosave-toast.is-saved > span:last-child { color: #059669; }
.settings-autosave-toast.is-error > span:last-child { color: #e11d48; }
.settings-autosave-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(245,158,11,.25);
  border-top-color: #f59e0b;
  border-radius: 9999px;
  animation: spin 1s linear infinite;
}
.settings-autosave-dot {
  position: relative;
  display: flex;
  width: 12px;
  height: 12px;
}
.settings-autosave-dot span {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
}
.settings-autosave-dot span:first-child {
  opacity: .45;
  animation: ping 1.25s cubic-bezier(0,0,.2,1) infinite;
}
.settings-autosave-dot span:last-child {
  position: relative;
}
.settings-autosave-toast.is-saved .settings-autosave-dot span { background: #10b981; }
.settings-autosave-toast.is-error .settings-autosave-dot span { background: #f43f5e; }

/* /dashboard exact pass: React DashboardPage.jsx top-to-bottom */
.dashboard-page {
  padding-top: 32px;
  padding-bottom: 64px;
}
.dashboard-page .dashboard-head {
  margin-bottom: 40px;
}
.dashboard-page .dashboard-kicker {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dashboard-page .dashboard-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.dashboard-page .dashboard-head-actions {
  gap: 8px;
  margin-top: 10px;
}
.dashboard-page .dashboard-head-link {
  min-height: 0;
  gap: 6px;
  padding: 8px 16px;
  border-color: #e2e8f0;
  border-radius: 9999px;
  background: rgba(255,255,255,.5);
  color: #475569;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.dashboard-page .dashboard-head-link:hover {
  background: #fff;
  color: #2563eb;
}
.dashboard-page .dashboard-content {
  display: grid;
  gap: 24px;
}
.dashboard-page .dashboard-loading {
  display: grid;
  gap: 24px;
}
.dashboard-page .dashboard-loading div {
  min-height: 224px;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  background: rgba(255,255,255,.7);
}
.dashboard-page .dashboard-loading div:nth-child(2) { min-height: 240px; }
.dashboard-page .dashboard-loading div:nth-child(3) { min-height: 384px; }
.dashboard-page .dashboard-card {
  border-radius: 32px;
  padding: 40px;
}
.dashboard-page .profile-unlock-card {
  padding: 48px;
  border: 1px dashed #cbd5e1;
  border-radius: 32px;
  background: linear-gradient(to bottom right, #fff, #f8fafc);
  text-align: center;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.dashboard-page .profile-unlock-icon {
  width: auto;
  height: auto;
  margin: 0 0 24px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #94a3b8;
}
.dashboard-page .profile-unlock-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.dashboard-page .profile-unlock-card p {
  max-width: 448px;
  margin: 0 auto 40px;
  color: #64748b;
  font-size: 15px;
  line-height: 26px;
  font-weight: 500;
}
.dashboard-page .profile-unlock-btn {
  min-height: 56px;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  background: #020617;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  box-shadow: 0 20px 25px -5px rgba(226,232,240,.9), 0 8px 10px -6px rgba(226,232,240,.9);
}
.dashboard-page .recommendation-card {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(147,197,253,.4);
  background: linear-gradient(to bottom right, #6366f1, #3b82f6, #0ea5e9);
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(219,234,254,.7), 0 8px 10px -6px rgba(219,234,254,.7);
}
.dashboard-page .recommendation-watermark {
  top: -50px;
  right: -50px;
  padding: 16px;
  opacity: .1;
}
.dashboard-page .recommendation-title {
  gap: 10px;
  margin-bottom: 16px;
}
.dashboard-page .recommendation-title h2,
.dashboard-page .dashboard-card-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.dashboard-page .recommendation-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fcd34d;
}
.dashboard-page .recommendation-icon svg {
  fill: currentColor;
}
.dashboard-page .recommendation-copy {
  max-width: 768px;
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
}
.dashboard-page .recommendation-buckets {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.dashboard-page .recommendation-bucket {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(24px);
}
.dashboard-page .recommendation-bucket:hover,
.dashboard-page .recommendation-bucket.is-open {
  background: rgba(255,255,255,.2);
}
.dashboard-page .recommendation-bucket.is-open {
  z-index: 40;
}
.dashboard-page .recommendation-bucket-head {
  margin-bottom: 10px;
}
.dashboard-page .recommendation-bucket-head span {
  color: rgba(255,255,255,.95);
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  letter-spacing: .05em;
}
.dashboard-page .recommendation-bucket-head strong {
  padding: 4px 8px;
  background: rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dashboard-page .recommendation-toggle {
  min-height: 0;
  padding: 10px 14px;
  border-color: rgba(255,255,255,.35);
  border-radius: 12px;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.dashboard-page .recommendation-toggle span {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-page .recommendation-or {
  align-self: center;
  padding: 0 8px;
  color: rgba(255,255,255,.8);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dashboard-page .recommendation-menu {
  top: calc(100% + 8px);
  z-index: 50;
  max-height: 224px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 22px 48px rgba(15,23,42,.28), 0 0 0 1px rgba(255,255,255,.7);
}
.dashboard-page .recommendation-menu article {
  padding: 8px 12px;
  border-radius: 8px;
}
.dashboard-page .recommendation-menu h3 {
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.dashboard-page .recommendation-menu p {
  margin-top: 2px;
  color: #475569;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.dashboard-page .macros-card {
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.dashboard-page .dashboard-card-title {
  gap: 10px;
  margin-bottom: 32px;
}
.dashboard-page .dashboard-title-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
}
.dashboard-page .macros-icon {
  background: #eff6ff;
  color: #3b82f6;
}
.dashboard-page .dashboard-macro-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
}
.dashboard-page .dashboard-macro-label {
  margin-bottom: 10px;
}
.dashboard-page .dashboard-macro-label span {
  color: #64748b;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: .025em;
}
.dashboard-page .dashboard-macro-label strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.dashboard-page .dashboard-macro-label em {
  color: #cbd5e1;
  font-weight: 500;
}
.dashboard-page .dashboard-bar {
  height: 10px;
  background: #f1f5f9;
}
.dashboard-page .activity-card {
  border: 1px solid #f1f5f9;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.dashboard-page .activity-icon {
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  color: #0f172a;
}
.dashboard-page .activity-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.dashboard-page .chart {
  height: 300px;
}
.dashboard-page .weekly-snapshot {
  height: 100%;
  min-height: 280px;
  padding: 24px;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: rgba(248,250,252,.7);
}
.dashboard-page .weekly-snapshot h3 {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .05em;
}
.dashboard-page .weekly-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-page .weekly-tile {
  min-height: 0;
  padding: 16px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #fff;
}
.dashboard-page .weekly-tile p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .05em;
}
.dashboard-page .weekly-tile strong {
  margin-top: 8px;
  color: #0f172a;
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}
.dashboard-page .weekly-tile span {
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

/* /meals exact pass: React MealsPage.jsx top-to-bottom */
.meals-page {
  padding-top: 32px;
  padding-bottom: 64px;
}
.meals-page .app-page-head {
  margin-bottom: 32px;
}
.meals-page .app-page-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.meals-page .app-page-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.meals-page .app-page-actions {
  gap: 8px;
  margin-top: 10px;
}
.meals-page .app-page-link {
  min-height: 0;
  gap: 6px;
  padding: 8px 16px;
  border-color: #e2e8f0;
  border-radius: 9999px;
  background: rgba(255,255,255,.5);
  color: #475569;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.meals-page .react-meals-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}
.meals-page .meal-form-card {
  top: 96px;
  height: fit-content;
  padding: 32px;
  border: 2px solid #f8fafc;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(203,213,225,.5);
}
.meals-page .meal-search-icon {
  left: 0;
  top: 12px;
  color: #94a3b8;
}
.meals-page .meal-search-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}
.meals-page .meal-search-input {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  padding: 12px 16px 12px 40px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}
.meals-page .meal-search-input::placeholder {
  color: #e2e8f0;
}
.meals-page .meal-suggestions {
  top: calc(100% + 12px);
  max-height: 400px;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 25px 50px -12px rgba(203,213,225,.95);
  backdrop-filter: blur(40px);
}
.meals-page .meal-suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
}
.meals-page .meal-suggestions button:hover {
  background: #f8fafc;
  color: inherit;
  transform: none;
}
.meals-page .meal-suggestions button:hover strong {
  color: #2563eb;
}
.meals-page .meal-suggestions strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.meals-page .meal-suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.meals-page .meal-suggestions span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.meals-page .meal-suggestion-cuisine {
  background: #eff6ff;
  color: #3b82f6;
}
.meals-page .meal-suggestion-macro {
  border: 1px solid #f1f5f9;
  color: #cbd5e1;
}
.meals-page .meal-suggestions em {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.meals-page .meal-time-field {
  margin-top: 24px;
}
.meals-page .app-field span {
  margin: 0 0 8px 4px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.meals-page .app-input,
.meals-page .app-select {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  padding: 12px 16px;
  font-weight: 700;
}
.meals-page #meal-time {
  min-height: 50px;
}
.meals-page .meal-form-footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #f8fafc;
  gap: 16px;
}
.meals-page .precise-toggle {
  gap: 6px;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid #f1f5f9;
  border-radius: 9999px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.meals-page .app-input.compact,
.meals-page .app-select.compact {
  width: 144px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.meals-page .meal-add-btn {
  min-height: 48px;
  gap: 8px;
  border-radius: 16px;
  background: #020617;
  color: #fff;
  padding: 12px 32px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
  box-shadow: 0 20px 25px -5px rgba(226,232,240,.9);
}
.meals-page .meal-add-btn:disabled {
  opacity: .3;
}
.meals-page .meal-add-btn:disabled:hover {
  transform: none;
}
.meals-page .react-timeline {
  display: grid;
  gap: 40px;
}
.meals-page .meal-date-group {
  display: grid;
  gap: 20px;
}
.meals-page .date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #fff;
  color: #1e293b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.meals-page .date-chip svg {
  color: #f43f5e;
}
.meals-page .meal-date-list {
  display: grid;
  gap: 12px;
}
.meals-page .meal-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 88px;
  padding: 20px 144px 20px 20px;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.meals-page .meal-item:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 35px rgba(241,245,249,.95);
}
.meals-page .meal-item-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.meals-page .meal-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #f8fafc;
  font-size: 20px;
}
.meals-page .meal-item strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}
.meals-page .meal-item small {
  display: inline-block;
  margin-top: 8px;
  border-radius: 9999px;
  background: #eff6ff;
  color: #3b82f6;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}
.meals-page .meal-time {
  top: 10px;
  right: 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .14em;
}
.meals-page .meal-edit-btn {
  right: 10px;
  top: 50%;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #fff;
  color: #64748b;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .05em;
}
.meals-page .meal-empty {
  padding: 96px 24px;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  background: rgba(241,245,249,.5);
}
.meals-page .meal-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: #fff;
  color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  font-size: 30px;
}
.meals-page .meal-empty h3 {
  margin: 0 0 8px;
  color: #020617;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}
.meals-page .meal-empty p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.meal-edit-modal {
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15,23,42,.4);
}
.meal-edit-modal .modal {
  width: min(420px, 100%);
  border: 1px solid #f1f5f9;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(15,23,42,.25);
}
.meal-edit-form {
  display: grid;
  gap: 20px;
}
.meal-edit-form header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.meal-edit-form h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.meal-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #94a3b8;
}
.meal-modal-close svg {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}
.meal-modal-field {
  display: grid;
  gap: 8px;
}
.meal-modal-field span {
  margin-left: 4px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.meal-modal-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  padding: 10px 16px;
  outline: none;
  font-weight: 700;
}
.meal-edit-modal .date-field-shell > .date-input-enhanced {
  min-height: 46px;
  padding-right: 48px;
}
.meal-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.meal-modal-actions {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.meal-modal-primary,
.meal-modal-secondary,
.meal-modal-danger {
  min-height: 48px;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.meal-modal-primary {
  border: 0;
  background: #020617;
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(226,232,240,.9);
}
.meal-modal-actions > div {
  display: flex;
  gap: 12px;
}
.meal-modal-secondary,
.meal-modal-danger {
  flex: 1;
}
.meal-modal-secondary {
  border: 0;
  background: #f8fafc;
  color: #0f172a;
}
.meal-modal-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #f8fafc;
  background: #fff;
  color: #f43f5e;
}
.macro-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.macro-label { display: flex; justify-content: space-between; gap: 12px; color: #64748b; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.bar { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transform-origin: left center; animation: barGrow 1s cubic-bezier(.16,1,.3,1) both; }
.recommend { background: linear-gradient(135deg, #4f46e5, #0ea5e9); color: #fff; border-color: rgba(255,255,255,.25); }
.recommend .muted { color: rgba(255,255,255,.82); }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.dish { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 18px; padding: 14px; backdrop-filter: blur(24px); transition: background-color .24s ease, border-color .24s ease, transform .24s ease; }
.dish:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.chart { width: 100%; height: 300px; display: block; overflow: visible; }
.meal-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr); gap: 24px; align-items: start; }
.sticky { position: sticky; top: 22px; }
.suggest-wrap { position: relative; }
.suggestions {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow: auto;
  padding: 8px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}
.suggestions button { display: block; width: 100%; text-align: left; padding: 12px; border: 0; border-radius: 14px; background: transparent; font-weight: 800; }
.suggestions button { transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.suggestions button:hover { background: #f1f5f9; transform: translateX(4px); color: var(--blue); }
.timeline { display: grid; gap: 24px; }
.date-chip { display: inline-flex; width: fit-content; border: 1px solid #cbd5e1; border-radius: 999px; padding: 6px 12px; background: #fff; color: #334155; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.meal-item { position: relative; display: flex; justify-content: space-between; gap: 14px; padding: 16px 104px 16px 16px; border: 1px solid #f1f5f9; border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease, border-color .22s ease; }
.meal-item:hover { transform: translateX(6px); background: rgba(255,255,255,.98); border-color: #e2e8f0; box-shadow: 0 20px 35px rgba(241,245,249,.95); }
.meal-item button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.meal-time { position: absolute; right: 12px; top: 9px; color: var(--muted); font-size: 11px; font-weight: 900; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.45); backdrop-filter: blur(6px); animation: fadeIn .18s ease both; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #fff; border-radius: 26px; padding: 22px; box-shadow: var(--shadow); animation: modalIn .24s cubic-bezier(.16,1,.3,1) both; }
.onboarding-page { width: min(1040px, calc(100% - 48px)); padding: 18px 0 72px; }
.onboarding-shell { display: grid; gap: 18px; }
.onboarding-loading { min-height: 420px; display: grid; place-items: center; color: #64748b; font-weight: 800; }
.onboarding-loading div { width: 56px; height: 56px; border: 8px solid #e2e8f0; border-top-color: #0f172a; border-radius: 999px; animation: spin 1s linear infinite; }
.onboarding-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.onboarding-hero p { margin: 0 0 8px; color: #64748b; font-size: 12px; line-height: 16px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.onboarding-hero h1 { margin: 0; color: #0f172a; font-size: clamp(36px, 6vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; }
.onboarding-hero span { display: block; max-width: 560px; margin-top: 12px; color: #64748b; font-size: 16px; line-height: 26px; font-weight: 500; }
.onboarding-hero strong { flex: 0 0 auto; min-width: 72px; min-height: 72px; display: grid; place-items: center; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; color: #0f172a; font-size: 18px; box-shadow: 0 20px 25px -5px rgba(226,232,240,.65); }
.onboarding-progress { height: 10px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.onboarding-progress i { display: block; height: 100%; border-radius: inherit; background: #0f172a; transition: width .28s cubic-bezier(.16,1,.3,1); }
.onboarding-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.onboarding-stepper button { min-width: 0; min-height: 48px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: #64748b; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; font-size: 13px; line-height: 18px; font-weight: 800; transition: transform .2s cubic-bezier(.16,1,.3,1), border-color .2s ease, color .2s ease, background-color .2s ease; }
.onboarding-stepper button:hover { transform: translateY(-1px); color: #0f172a; }
.onboarding-stepper span { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 12px; }
.onboarding-stepper button.active { border-color: #0f172a; background: #0f172a; color: #fff; }
.onboarding-stepper button.active span, .onboarding-stepper button.done span { background: #fff; color: #0f172a; }
.onboarding-card { min-height: 390px; display: grid; align-content: space-between; gap: 28px; padding: 28px; border: 1px solid #e2e8f0; border-radius: 32px; background: rgba(255,255,255,.78); box-shadow: 0 25px 50px -12px rgba(203,213,225,.65); backdrop-filter: blur(24px); }
.onboarding-fields { display: grid; gap: 22px; }
.onboarding-grid, .onboarding-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.onboarding-field { position: relative; display: grid; gap: 8px; min-width: 0; }
.onboarding-field > span, .onboarding-label { margin-left: 4px; color: #94a3b8; font-size: 12px; line-height: 16px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.onboarding-input { width: 100%; min-height: 54px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; color: #0f172a; padding: 14px 16px; outline: 0; font-weight: 800; transition: border-color .2s ease, box-shadow .2s ease; }
.onboarding-input:focus { border-color: #0f172a; box-shadow: 0 0 0 4px rgba(15,23,42,.06); }
.onboarding-country-wrap .settings-country-field .onboarding-input { padding-left: 48px; }
.onboarding-measure { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; }
.onboarding-measure input { width: 0; min-width: 0; flex: 1 1 0; height: 42px; border: 0; border-radius: 12px; background: transparent; color: #0f172a; padding: 0 12px; outline: 0; font-size: 20px; font-weight: 800; }
.onboarding-measure select { width: 82px; height: 42px; flex: 0 0 82px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; color: #334155; padding: 0 10px; font-weight: 800; }
.onboarding-note { display: flex; align-items: center; gap: 10px; color: #64748b; font-size: 14px; line-height: 22px; font-weight: 700; }
.onboarding-chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.onboarding-chip { min-height: 42px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #64748b; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: 14px; line-height: 20px; font-weight: 800; transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s ease, color .2s ease, border-color .2s ease; }
.onboarding-chip:hover { transform: translateY(-1px); color: #0f172a; }
.onboarding-chip.active { border-color: #0f172a; background: #0f172a; color: #fff; }
.onboarding-chip svg { width: 14px; height: 14px; }
.onboarding-meats { display: grid; gap: 12px; }
.onboarding-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.onboarding-actions > div { display: flex; gap: 10px; }
.onboarding-primary, .onboarding-secondary { min-height: 48px; border-radius: 14px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 900; transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s ease, color .2s ease; }
.onboarding-primary { border: 0; background: #0f172a; color: #fff; }
.onboarding-secondary { border: 1px solid #e2e8f0; background: #fff; color: #64748b; }
.onboarding-primary:hover, .onboarding-secondary:hover { transform: translateY(-1px); }
.onboarding-primary:disabled, .onboarding-secondary:disabled { opacity: .55; transform: none; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #f1f5f9; background: rgba(255,255,255,.9); color: #64748b; padding: 9px 12px; border-radius: 999px; font-weight: 700; transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.chip:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: 0 10px 22px rgba(15,23,42,.08); }
.chip:active { transform: scale(.98); }
.chip.active { background: #0f172a; border-color: #0f172a; color: #fff; }
.site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(203,213,225,.85);
  background: rgba(255,255,255,.6);
  padding: 12px 24px;
  text-align: center;
  backdrop-filter: blur(2px);
}
.footer-inner {
  width: min(1600px, 100%);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.22fr) minmax(320px,.86fr) minmax(0,1.22fr);
  gap: 20px;
  align-items: center;
}
.footer-support,
.footer-share {
  align-self: start;
  margin-top: 20px;
  border-radius: 24px;
  padding: 14px 16px;
  min-height: 0;
}
.footer-support {
  border: 1px solid #86efac;
  background: linear-gradient(135deg, rgba(236,253,245,.98), rgba(220,252,231,.92));
}
.footer-share {
  border: 1px solid #bae6fd;
  background: linear-gradient(135deg, rgba(239,246,255,.98), rgba(224,242,254,.92));
}
.footer-card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.footer-kicker-green { color: #047857; }
.footer-kicker-blue { color: #0369a1; }
.footer-main-copy {
  max-width: 640px;
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.footer-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 16px;
  background: #059669;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s ease;
}
.footer-donate-btn:hover { transform: scale(1.01); background: #047857; }
.footer-donate-btn:active { transform: scale(.95); }
.footer-links {
  order: initial;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 32px 0;
}
.footer-links a,
.footer-links button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  padding: 2px 8px;
  font-size: 16px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-links a:hover,
.footer-links button:hover {
  background: rgba(239,246,255,.8);
  color: #1d4ed8;
  transform: translateY(-1px);
}
.footer-share-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
}
.footer-share-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 16px;
  background: #fff;
  color: #334155;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.footer-share-actions button:hover {
  transform: translateY(-1px);
  border-color: #bae6fd;
  background: #fff;
}
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.footer-bottom p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}
.footer-bottom p:last-child {
  justify-self: end;
  color: #64748b;
  text-align: right;
}
.legal { margin: 20px auto 70px; }
.legal h1 { font-size: 42px; letter-spacing: -.04em; }
.legal h2 { margin-top: 30px; }
.hidden { display: none !important; }
.center { text-align: center; }
.loading { color: var(--muted); font-weight: 800; text-align: center; padding: 44px 12px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 110;
  width: auto;
  animation: cookieSlideIn .38s cubic-bezier(.16,1,.3,1) both;
}
.cookie-panel {
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,.95);
  padding: 1rem;
  box-shadow: 0 25px 50px -12px rgba(203,213,225,.6);
  backdrop-filter: blur(40px);
}
.cookie-intro { display: flex; align-items: center; gap: 14px; }
.cookie-icon { font-size: 38px; line-height: 1; flex: 0 0 auto; }
.cookie-kicker {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cookie-panel h4 { margin: .25rem 0 0; font-size: 16px; line-height: 1.25; font-weight: 800; letter-spacing: -.025em; color: #0f172a; }
.cookie-panel p { margin: .25rem 0 0; color: #64748b; font-size: 13px; font-weight: 500; line-height: 1.625; }
.cookie-copy { width: 100%; }
.cookie-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.cookie-btn {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  min-height: auto;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .7rem .875rem;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cookie-btn:hover { transform: scale(1.01); }
.cookie-btn:active { transform: scale(.98); }
.cookie-btn.primary { background: #0f172a; color: #fff; }
.cookie-btn.secondary { background: #fff; border-color: var(--line); color: #334155; }
.cookie-btn.text { background: #fff; border-color: var(--line); color: #64748b; }
.cookie-btn.text:hover { color: #0f172a; }
.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(6px);
  animation: fadeIn .18s ease both;
}
.cookie-dialog {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(15,23,42,.16);
  animation: modalIn .24s cubic-bezier(.16,1,.3,1) both;
}
.cookie-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cookie-dialog h3 { margin: .5rem 0 0; color: #0f172a; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.icon-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #94a3b8;
  font-weight: 900;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.icon-btn:hover { color: #0f172a; background: #f8fafc; transform: rotate(4deg) scale(1.04); }
.cookie-options { display: grid; gap: 14px; margin-top: 24px; }
.cookie-option {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: #f8fafc;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}
.cookie-option:hover { transform: translateY(-2px); border-color: #cbd5e1; background: #fff; }
.cookie-option-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cookie-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 11px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.cookie-toggle { width: 18px; height: 18px; margin-top: 4px; accent-color: #0f172a; }
.cookie-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }

@keyframes cookieSlideIn {
  from { opacity: 0; transform: translate(-20px, 50px); }
  to { opacity: 1; transform: translate(0, 0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes settingsMenuIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes dashboardPulse {
  from { opacity: .62; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  body.is-app-theme .nav { padding: 16px 0 32px; }
  body.is-app-theme .nav .container { padding: 0 16px; }
  body.is-app-theme .brand { font-size: 24px; line-height: 32px; }
  body.is-app-theme .heartbeat {
    width: 64px;
    height: 32px;
    margin-left: 0;
    transform: none;
  }
  .nav.is-logged .nav-inner { flex-direction: column; align-items: center; gap: 20px; }
  .nav.is-logged .brand { margin: 0 auto; }
  .nav.is-logged .nav-actions { justify-content: center; width: 100%; flex-wrap: nowrap; }
  .nav.is-logged .pill-nav { padding: 4px 6px; }
  body.is-app-theme .nav.is-logged .nav-link {
    min-height: 38px;
    padding: 8px 20px;
  }
  body.is-app-theme .nav.is-logged .nav-actions > .btn.light {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .nav-link span { display: none; }
  .grid-3, .grid-2, .meal-layout, .macro-list, .dish-grid, .footer-grid, .landing-step-grid, .landing-feature-grid { grid-template-columns: 1fr; }
  .dashboard-head-actions { display: none; }
  .dashboard-macro-list,
  .activity-layout,
  .recommendation-buckets,
  .settings-grid { grid-template-columns: 1fr; }
  .recommendation-buckets { display: grid; }
  .recommendation-or { justify-self: center; align-self: auto; }
  .activity-layout { display: grid; }
  .settings-security,
  .settings-action { align-items: flex-start; flex-direction: column; }
  .sticky { position: static; }
  .page-head { flex-direction: column; }
  .landing-step-card, .landing-feature-card { padding: 32px; }
  .landing-section-title { margin-bottom: 48px; }
  .footer-support, .footer-share { min-height: auto; }
  .footer-share-actions { flex-wrap: wrap; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom p:last-child { justify-self: center; text-align: center; }
}

@media (max-width: 560px) {
  .container, .narrow { width: min(100% - 32px, 1280px); }
  .app-page { width: 100%; max-width: 1280px; padding: 16px 24px 64px; }
  .nav { padding: 16px 0 32px; }
  .nav .container { width: 100%; padding: 0 16px; }
  .nav.is-public .nav-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .nav.is-public .nav-actions { width: auto; justify-content: flex-end; flex-wrap: nowrap; }
  .nav.is-public .brand { flex-shrink: 1; min-width: 0; font-size: 24px; }
  .nav.is-public .heartbeat { width: 48px; height: 24px; margin-left: 2px; transform: translateY(7px); }
  .nav.is-public .btn.dark { width: auto; flex-shrink: 0; padding: 10px 28px; }
  .pill-nav { width: 100%; justify-content: center; }
  .nav-link { flex: 1; padding: 10px; }
  .btn { width: 100%; }
  .nav.is-public .nav-actions .btn.dark { width: auto; }
  .nav.is-logged .nav-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .nav.is-logged .pill-nav {
    width: auto;
    flex: 0 0 auto;
  }
  .nav.is-logged .nav-link {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 20px;
  }
  .nav.is-logged .nav-actions > .btn.light {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 14px;
  }
  .row .btn { width: auto; }
  .card { padding: 18px; border-radius: 20px; }
  .dashboard-head { margin-bottom: 32px; }
  .app-page-head { margin-bottom: 32px; }
  .app-page-head h1,
  .dashboard-head h1 { font-size: 36px; }
  .app-page-actions { display: none; }
  .dashboard-card,
  .profile-unlock-card {
    padding: 24px;
    border-radius: 28px;
  }
  .dashboard-card-title { margin-bottom: 24px; }
  .recommendation-copy { font-size: 15px; }
  .recommendation-bucket { padding: 14px; }
  .weekly-snapshot { padding: 18px; border-radius: 22px; }
  .weekly-grid { grid-template-columns: 1fr; }
  .weekly-tile { min-height: auto; }
  .chart { height: 240px; }
  .profile-unlock-card { padding: 32px 22px; }
  .meal-form-card,
  .settings-card { padding: 20px; border-radius: 24px; }
  .meal-form-footer { align-items: stretch; flex-direction: column; }
  .meal-add-btn { width: 100%; }
  .settings-two { grid-template-columns: 1fr; }
  .settings-bmi { align-items: center; flex-direction: column; text-align: center; }
  .onboarding-page { width: min(100% - 32px, 1040px); padding-top: 8px; }
  .onboarding-hero { align-items: flex-start; flex-direction: column; }
  .onboarding-hero strong { min-width: 60px; min-height: 60px; }
  .onboarding-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-card { min-height: auto; padding: 20px; border-radius: 26px; }
  .onboarding-grid,
  .onboarding-metric-grid { grid-template-columns: 1fr; }
  .onboarding-actions,
  .onboarding-actions > div { align-items: stretch; flex-direction: column; width: 100%; }
  .onboarding-primary,
  .onboarding-secondary { width: 100%; }
  .auth-shell { width: min(440px, calc(100% - 32px)); }
  .auth-method-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 18px;
  }
  .auth-method-divider {
    width: 100%;
    min-height: 0;
    height: 1px;
  }
  .auth-method-divider span {
    padding: 0 10px;
  }
  .auth-oauth-card {
    min-height: auto;
  }
  body.is-app-theme .nav .container { padding: 0 16px; }
  body.is-app-theme .nav-link { padding: 10px; }
  body.is-app-theme .nav-link span { display: none; }
  .meal-item { padding-right: 86px; }
  .meals-page .react-meals-layout { grid-template-columns: 1fr; gap: 24px; }
  .meals-page .meal-form-card { padding: 24px; border-radius: 32px; }
  .meals-page .meal-search-input { font-size: 18px; line-height: 28px; padding-top: 8px; padding-bottom: 8px; }
  .meals-page .meal-search-icon { top: 8px; }
  .meals-page .meal-form-footer { align-items: stretch; flex-direction: column; margin-top: 32px; padding-top: 24px; }
  .meals-page .meal-add-btn { width: 100%; }
  .meals-page .meal-item { padding: 16px 96px 16px 16px; }
  .meals-page .meal-icon { width: 40px; height: 40px; }
  .meals-page .meal-time { top: 6px; right: 10px; }
  .cookie-actions { gap: .375rem; }
  .cookie-btn { padding: .625rem .5rem; font-size: 12px; }
  .cookie-dialog-actions .cookie-btn { width: 100%; }
}

@media (min-width: 768px) {
  .contact-page {
    padding: 32px 0 64px;
  }
  .contact-card {
    padding: 32px;
  }
  .contact-head h1 {
    font-size: 36px;
    line-height: 40px;
  }
  .contact-head p {
    font-size: 16px;
    line-height: 1.625;
  }
}

/* Dashboard keeps the original React md/lg breakpoints even when older mobile rules are present. */
@media (min-width: 768px) and (max-width: 900px) {
  body.is-app-theme .nav {
    padding: 24px 0;
  }
  body.is-app-theme .nav .container {
    padding: 0 48px;
  }
  body.is-app-theme .brand {
    font-size: 30px;
    line-height: 36px;
  }
  body.is-app-theme .heartbeat {
    width: 48px;
    height: 24px;
    margin-left: 6px;
    transform: translateY(8px);
  }
  .nav.is-logged .nav-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
  }
  .nav.is-logged .brand {
    margin: 0;
  }
  .nav.is-logged .nav-actions {
    width: auto;
    justify-content: flex-end;
  }
  body.is-app-theme .nav-link span {
    display: inline;
  }
  .dashboard-page .dashboard-head-actions {
    display: flex;
  }
  .dashboard-page .dashboard-macro-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-page .recommendation-buckets {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
  .dashboard-page .recommendation-or {
    align-self: center;
    justify-self: auto;
  }
}

@media (min-width: 640px) {
  .dashboard-page .recommendation-menu p {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .dashboard-page .recommendation-menu p {
    font-size: 14px;
    line-height: 20px;
  }
  .settings-page .app-field span,
  .settings-page .settings-label {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .14em;
  }
  .settings-panel {
    gap: 28px;
    padding: 24px 20px;
  }
  .settings-security,
  .settings-action {
    padding: 24px;
  }
  .settings-security {
    margin-top: 128px;
  }
}

@media (min-width: 1024px) {
  .settings-page .app-field span,
  .settings-page .settings-label {
    letter-spacing: .1em;
  }
  .settings-bmi .settings-label {
    letter-spacing: .2em;
  }
  .meals-page .app-field span,
  .meal-edit-modal .meal-modal-field span,
  .meals-page .date-chip,
  .meals-page .meal-time {
    letter-spacing: .1em;
  }
}

@media (max-width: 1023px) {
  .dashboard-page .activity-layout {
    grid-template-columns: 1fr;
  }
  .settings-page .settings-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .dashboard-page.app-page {
    padding: 32px 24px 64px;
  }
  .dashboard-page .dashboard-head {
    margin-bottom: 40px;
  }
  .dashboard-page .dashboard-head-actions {
    display: none;
  }
  .dashboard-page .dashboard-card,
  .dashboard-page .profile-unlock-card {
    padding: 32px;
    border-radius: 32px;
  }
  .dashboard-page .recommendation-buckets {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-page .recommendation-or {
    align-self: center;
  }
  .dashboard-page .dashboard-macro-list,
  .dashboard-page .activity-layout {
    grid-template-columns: 1fr;
  }
  .settings-page .settings-two {
    grid-template-columns: 1fr;
  }
  .settings-page .settings-security,
  .settings-page .settings-action {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .cookie-banner {
    left: 1.5rem;
    right: auto;
    width: 420px;
  }
}
