:root {
  color-scheme: light;
  --ink: #424242;
  --muted: #6f766f;
  --line: #e5e7eb;
  --paper: #fcfcfc;
  --surface: #ffffff;
  --leaf: #4caf50;
  --leaf-dark: #2f7d32;
  --mint: #edf8ee;
  --sun: #f4b84a;
  --clay: #c86f4b;
  --shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 8px 16px rgba(0, 0, 0, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 56px;
  padding: 9px max(18px, calc((100vw - 1280px) / 2 + 24px));
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.brand,
.nav,
.filter-bar,
.chip-row,
.lumina-actions {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  height: 30px;
  object-fit: cover;
  width: 30px;
}

.nav {
  color: #606860;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 8px;
}

.nav a {
  border-radius: 8px;
  padding: 9px 12px;
  transition: background 160ms ease, color 160ms ease;
}

.nav a.active,
.nav a:hover {
  background: var(--mint);
  color: var(--ink);
}

.menu-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.menu-toggle span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: opacity 160ms ease, transform 160ms ease;
  width: 18px;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.app-shell {
  flex: 1;
  min-height: calc(100vh - 62px);
}

.page-shell {
  flex: 1;
}

.site-footer {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  padding: 18px max(18px, calc((100vw - 1280px) / 2 + 24px));
}

.site-footer p {
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.site-footer nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a {
  border-radius: 999px;
  color: #596359;
  font-size: 0.82rem;
  font-weight: 750;
  padding: 7px 10px;
}

.site-footer a.active,
.site-footer a:hover {
  background: var(--mint);
  color: var(--leaf-dark);
}

.legal-page {
  max-width: 980px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  line-height: 1.7;
  padding: clamp(22px, 4vw, 36px);
}

.legal-card + .legal-card {
  margin-top: 18px;
}

.legal-card h2 {
  color: var(--ink);
  font-size: 1.08rem;
  margin: 1.8rem 0 0.35rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
  margin: 0 0 0.95rem;
}

.legal-card a {
  color: var(--leaf-dark);
  font-weight: 800;
}

.legal-notice {
  background: #f4fbf5;
  border-color: #cce9d0;
}

.seo-summary {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  margin: 34px auto 0;
  max-width: 980px;
  padding: clamp(18px, 3vw, 28px);
}

.seo-summary h2 {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.2;
  margin: 0 0 10px;
}

.seo-summary p {
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.seo-summary p + p {
  margin-top: 10px;
}

.article-shell {
  max-width: 1040px;
}

.blog-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  padding: clamp(22px, 4vw, 44px);
}

.blog-hero-figure,
.blog-inline-image {
  margin: 0 0 28px;
}

.blog-hero-figure img,
.blog-inline-image img {
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(41, 57, 44, 0.13);
  display: block;
  object-fit: cover;
  width: 100%;
}

.blog-hero-figure img {
  max-height: 430px;
}

.blog-inline-image {
  margin-top: 30px;
}

.blog-inline-image img {
  max-height: 360px;
}

.blog-article section {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 28px;
}

.blog-article .blog-section-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf6 100%);
  border: 1px solid #e0ece1;
  border-radius: 12px;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
}

.blog-article .blog-section-card + .blog-section-card {
  margin-top: 24px;
}

.blog-article h2,
.blog-article h3 {
  color: var(--ink);
  line-height: 1.16;
}

.blog-article h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}

.blog-article h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  margin: 22px 0 8px;
}

.blog-article h3 a {
  color: var(--leaf-dark);
  text-decoration-color: rgba(46, 125, 50, 0.24);
  text-underline-offset: 4px;
}

.brand-pill {
  background: #eef8ef;
  border: 1px solid #d4e7d6;
  border-radius: 999px;
  color: var(--leaf-dark);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 860;
  margin-left: 8px;
  padding: 4px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.muted-pill {
  background: #f4f5f2;
  border-color: var(--line);
  color: var(--muted);
}

.blog-article p {
  margin-bottom: 16px;
}

.dose-line {
  background: #f4faf4;
  border-left: 4px solid var(--leaf);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 12px;
}

.article-meta,
.article-disclaimer {
  border-radius: 10px;
  padding: 12px 14px;
}

.article-meta {
  background: #f5faf5;
  color: var(--leaf-dark);
  font-weight: 760;
}

.article-disclaimer {
  background: #fff8ed;
  border: 1px solid #f1dfc3;
  color: #765a2d;
}

.directory-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  margin-bottom: 20px;
  padding: 18px 20px;
}

.directory-note p {
  margin-bottom: 8px;
}

.directory-note p:first-child {
  color: var(--leaf-dark);
  font-weight: 820;
}

.directory-note p:last-child {
  margin-bottom: 0;
}

.directory-table-wrap {
  overflow-x: auto;
}

.directory-table th:first-child,
.directory-table td:first-child {
  min-width: 220px;
}

.directory-table th:nth-child(2),
.directory-table td:nth-child(2) {
  min-width: 420px;
}

.directory-inclusion-list {
  display: grid;
  gap: 8px;
}

.directory-inclusion {
  align-items: center;
  background: #f7fbf7;
  border: 1px solid #dceadd;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  text-decoration: none;
}

.directory-inclusion strong {
  color: var(--leaf-dark);
  font-size: 0.92rem;
}

.directory-inclusion span {
  color: var(--muted);
  font-size: 0.82rem;
}

.directory-inclusion:hover {
  border-color: rgba(76, 175, 80, 0.45);
  transform: translateY(-1px);
}

.directory-total {
  color: var(--ink);
  white-space: nowrap;
}

.lumina-dashboard-shell {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 28px 24px 64px;
}

.dashboard-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
}

.dashboard-hero > div,
.dashboard-status-card,
.dashboard-panel,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.dashboard-hero > div {
  padding: clamp(24px, 4vw, 46px);
}

.dashboard-hero h1 {
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1;
  max-width: 760px;
}

.dashboard-hero p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions .button,
.panel-header .button {
  margin-bottom: 0;
  width: auto;
}

.dashboard-status-card {
  align-content: space-between;
  display: grid;
  padding: 20px;
}

.status-card-header,
.focus-card,
.panel-header {
  align-items: center;
  display: flex;
  gap: 12px;
}

.status-card-header {
  justify-content: flex-start;
}

.status-card-header strong,
.focus-card strong {
  color: var(--ink);
  display: block;
  font-weight: 900;
}

.status-card-header span:not(.nav-icon) {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
}

.nav-icon {
  align-items: center;
  background: var(--mint);
  border: 1px solid #d9ead9;
  border-radius: 8px;
  color: var(--leaf-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.status-check-list {
  display: grid;
  gap: 10px;
}

.status-check-list div {
  align-items: center;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #536053;
  display: flex;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 10px;
  padding: 10px 12px;
}

.status-check-list span {
  background: var(--leaf);
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.dashboard-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  min-height: 132px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 850;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--leaf-dark);
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 10px;
}

.metric-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.dashboard-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

.dashboard-panel {
  min-width: 0;
  padding: 18px;
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-header h2 {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}

.compact-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-food-table {
  min-width: 760px;
}

.focus-stack {
  display: grid;
  gap: 12px;
}

.focus-card {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.focus-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 3px 0 0;
}

.bubble-stage {
  min-height: calc(100vh - 62px);
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px) clamp(18px, 4vw, 64px) 80px;
  position: relative;
}

.food-orbit {
  cursor: grab;
  height: min(690px, calc(100vh - 145px));
  min-height: 560px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.food-orbit::before {
  background:
    linear-gradient(90deg, rgba(252, 252, 252, 0.52), rgba(252, 252, 252, 0) 8%, rgba(252, 252, 252, 0) 92%, rgba(252, 252, 252, 0.52)),
    linear-gradient(180deg, rgba(252, 252, 252, 0.5), rgba(252, 252, 252, 0) 10%, rgba(252, 252, 252, 0) 92%, rgba(252, 252, 252, 0.34));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 9;
}

.food-orbit.is-panning {
  cursor: grabbing;
}

.diet-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(65, 86, 70, 0.09);
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  top: 18px;
  z-index: 15;
}

.diet-toggle-button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.diet-toggle-button:hover {
  transform: translateY(-1px);
}

.diet-toggle-button.active {
  background: var(--leaf);
  color: white;
}

.food-cloud {
  left: 0;
  position: absolute;
  top: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 140ms ease-out;
  will-change: transform;
}

.food-orbit.is-panning .food-cloud {
  transition: none;
}

.food-bubble {
  --size: var(--bubble-size, 108px);
  --delay: 0s;
  --float: 11px;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(65, 86, 70, 0.16);
  cursor: pointer;
  display: inline-flex;
  height: var(--size);
  justify-content: center;
  left: var(--bubble-x, 0);
  padding: 3px;
  position: absolute;
  top: var(--bubble-y, 0);
  transform: scale(1);
  transition: transform 210ms ease, opacity 210ms ease, filter 210ms ease, box-shadow 210ms ease, translate 210ms ease;
  width: var(--size);
  animation: bubble-float 6.8s ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform, translate;
}

.food-bubble img {
  border-radius: 50%;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.food-bubble:hover,
.food-bubble:focus-visible {
  animation-play-state: paused;
  box-shadow: 0 24px 58px rgba(37, 70, 42, 0.22);
  filter: saturate(1.12) contrast(1.03);
  transform: scale(1.16);
  z-index: 8;
}

.food-bubble.is-featured {
  border-color: rgba(47, 125, 50, 0.55);
  box-shadow: 0 22px 54px rgba(47, 125, 50, 0.22);
}

.bubble-label {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  bottom: -42px;
  box-shadow: 0 8px 18px rgba(31, 47, 34, 0.12);
  color: var(--ink);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  font-weight: 800;
  left: 50%;
  padding: 5px 11px;
  position: absolute;
  transform: translateX(-50%);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.food-bubble:hover .bubble-label,
.food-bubble:focus-visible .bubble-label,
.is-selected .bubble-label {
  display: flex;
}

.food-bubble:hover .bubble-label,
.food-bubble:focus-visible .bubble-label {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(47, 125, 50, 0.24);
  color: var(--leaf-dark);
  transform: translateX(-50%) translateY(-2px);
}

.food-bubble:active .bubble-label {
  transform: translateX(-50%) translateY(0);
}

.detail-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 233, 225, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: grab;
  padding: 20px;
  pointer-events: none;
  position: absolute;
  right: clamp(18px, 4vw, 80px);
  top: 128px;
  width: min(300px, calc(100vw - 36px));
  z-index: 12;
  animation: detail-in 240ms ease both;
}

.detail-card a,
.detail-card button {
  pointer-events: auto;
}

.detail-card.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.detail-card.is-hidden {
  display: none;
}

.detail-card h2 {
  font-size: 1.1rem;
  margin: 0 28px 16px 0;
}

.detail-image {
  aspect-ratio: 1.35;
  border-radius: 8px;
  display: block;
  margin-bottom: 16px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  width: 100%;
}

.close-detail {
  position: absolute;
  right: 12px;
  top: 12px;
}

.icon-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}

.benefit-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.benefit-list li {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 10px;
}

.benefit-list li::before {
  align-items: center;
  background: var(--mint);
  border: 1px solid #d8ead8;
  border-radius: 50%;
  color: var(--leaf);
  content: "+";
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
}

.button.primary {
  background: var(--leaf);
  color: white;
  width: 100%;
}

.button.primary:hover,
.button.ghost:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.button.ghost {
  background: white;
  border-color: var(--line);
  color: var(--ink);
  margin-bottom: 9px;
  width: 100%;
}

.saved-note {
  color: var(--leaf-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 10px 0 0;
  min-height: 1.1em;
}

.filter-bar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 12px 34px rgba(65, 86, 70, 0.09);
  gap: 6px;
  left: 50%;
  padding: 7px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 14;
}

.filter-button,
.chip {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 18px;
  white-space: nowrap;
}

.filter-button.active,
.chip.active {
  background: var(--leaf);
  color: white;
}

.page-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: 34px 24px 72px;
}

.page-shell.legal-page {
  max-width: 980px;
}

.page-heading {
  margin-bottom: 34px;
  max-width: 820px;
}

.page-heading-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  max-width: 100%;
  padding: clamp(22px, 4vw, 34px);
}

.page-heading h1 {
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 820;
  line-height: 1.08;
}

.page-heading-card h1 {
  margin-bottom: 0;
}

.compact-heading-card {
  padding: clamp(18px, 3vw, 28px);
}

.compact-heading-card h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
}

.linked-heading-card,
.blog-heading-card {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.heading-card-link {
  align-self: flex-start;
  flex: 0 1 auto;
  margin-bottom: 0;
  max-width: 100%;
  white-space: nowrap;
  width: fit-content;
}

.linked-heading-card > .heading-card-link {
  margin-left: auto;
}

.heading-card-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.blog-heading-card {
  align-items: flex-start;
  flex-direction: column;
}

.page-heading-card p {
  font-size: 1.02rem;
  margin-bottom: 0;
  max-width: 840px;
}

.eyebrow {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  line-height: 1.03;
}

.page-heading p,
.recipe-feature p,
.lumina-panel p,
.catalog-card p {
  color: var(--muted);
  line-height: 1.65;
}

.catalog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(65, 86, 70, 0.08);
  min-height: 280px;
  padding: 18px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.catalog-card:hover {
  box-shadow: 0 20px 52px rgba(65, 86, 70, 0.13);
  transform: translateY(-3px);
}

.catalog-card img {
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
  margin-bottom: 16px;
  object-fit: cover;
  width: 100%;
}

.catalog-card h2 {
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  line-height: 1.1;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.tag-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--mint);
  border: 1px solid #d8ead8;
  border-radius: 999px;
  color: var(--leaf-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 10px;
}

.catalog-card .tag-row {
  gap: 6px;
}

.catalog-card .tag {
  font-size: 0.68rem;
  padding: 4px 8px;
}

.catalog-card .button {
  margin: 16px 0 0;
  width: 100%;
}

.catalog-table .tag {
  font-size: 0.68rem;
  padding: 4px 8px;
}

.supplement-grid .catalog-card {
  min-height: 360px;
}

.supplement-browser {
  display: grid;
  gap: 18px;
}

.protocol-card {
  align-items: start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 248, 238, 0.72));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  margin-bottom: 22px;
  padding: clamp(20px, 3.4vw, 30px);
}

.protocol-profile {
  align-items: center;
  display: flex;
  gap: 16px;
}

.protocol-profile img {
  aspect-ratio: 1;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(31, 47, 34, 0.14);
  object-fit: cover;
  width: 86px;
}

.protocol-profile h2 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.08;
  margin: 0;
}

.protocol-content {
  display: grid;
  gap: 14px;
}

.protocol-content p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
  max-width: 760px;
}

.protocol-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.protocol-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.protocol-timing-filter {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.protocol-timing-filter button {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dceadd;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
  min-height: 28px;
  padding: 5px 10px;
}

.protocol-timing-filter button.active {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  color: white;
}

.protocol-storage-filter {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dceadd;
  border-radius: 999px;
  color: #6d7b72;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 30px;
}

.protocol-storage-filter svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 15px;
}

.protocol-storage-filter:hover,
.protocol-storage-filter:focus-visible {
  background: #f0f8f1;
  border-color: rgba(47, 125, 50, 0.32);
  color: var(--leaf-dark);
  transform: translateY(-1px);
}

.protocol-storage-filter.active {
  background: #e9f6ff;
  border-color: #a7cfeb;
  color: #216c9b;
}

.protocol-stack button {
  background: var(--surface);
  border: 1px solid #dceadd;
  border-radius: 999px;
  color: var(--leaf-dark);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 10px;
}

.protocol-stack button:hover,
.protocol-stack button:focus-visible {
  background: #edf8ee;
  border-color: rgba(47, 125, 50, 0.32);
  transform: translateY(-1px);
}

.protocol-stack button.protocol-muted {
  background: #f4f5f3;
  border-color: #e4e7e3;
  color: #8b958c;
  opacity: 0.54;
}

.saved-list-browser {
  display: grid;
  gap: 18px;
}

.list-summary-grid {
  margin-bottom: 22px;
}

.table-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.supplement-browser .table-toolbar {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  gap: 10px;
  padding: 7px;
}

.tab-list,
.category-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.supplement-browser .tab-list {
  flex: 0 0 auto;
}

.supplement-browser .category-filter-row {
  justify-content: flex-end;
  margin-left: auto;
}

.supplement-browser .category-filter-row .filter-button {
  font-size: 0.71rem;
  min-height: 30px;
  padding: 6px 8px;
}

.catalog-search {
  flex: 0 1 190px;
  min-width: 160px;
}

.catalog-search input {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
  min-height: 32px;
  outline: none;
  padding: 7px 12px;
  width: 100%;
}

.catalog-search input::placeholder {
  color: var(--muted);
  opacity: 0.78;
}

.catalog-search input:focus {
  border-color: rgba(46, 125, 50, 0.48);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.14);
}

.tab-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  min-height: 34px;
  padding: 7px 11px;
}

.tab-button.active {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  color: white;
}

.tab-button span {
  background: rgba(63, 143, 79, 0.12);
  border-radius: 999px;
  color: var(--leaf-dark);
  display: inline-flex;
  font-size: 0.75rem;
  justify-content: center;
  margin-left: 8px;
  min-width: 22px;
  padding: 2px 7px;
}

.tab-button.active span {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.status-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.category-filter-row {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

.catalog-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.catalog-table:has(.empty-table-cell) {
  min-width: 0;
}

.catalog-table th,
.catalog-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px;
  text-align: left;
  vertical-align: top;
}

.catalog-table th {
  background: #f5f8f1;
  color: #49584f;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-table td {
  color: #46534b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.catalog-table td strong {
  color: var(--ink);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.catalog-table td > span:not(.tag):not(.source-status) {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
}

.catalog-name-cell {
  display: grid;
  gap: 5px;
  min-width: 180px;
}

.catalog-name-cell > span {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
}

.timing-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
  position: relative;
}

.storage-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1px;
  position: relative;
}

.storage-chip,
.storage-review {
  align-items: center;
  border-radius: 999px;
  cursor: help;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 850;
  gap: 4px;
  line-height: 1.15;
  padding: 5px 7px;
  position: relative;
}

.storage-chip {
  background: #f7faf7;
  border: 1px solid #e3e9e3;
  color: #68736a;
}

.storage-refrigerate {
  background: #eef8ff;
  border-color: #c4def1;
  color: #216c9b;
}

.storage-review {
  background: #f7faf7;
  border: 1px solid #e2e7e1;
  color: #788178;
}

.storage-snowflake {
  display: inline-flex;
}

.storage-snowflake svg {
  fill: none;
  height: 12px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 12px;
}

.timing-chip,
.timing-avoid {
  align-items: center;
  border-radius: 999px;
  cursor: help;
  display: inline-flex;
  position: relative;
}

.timing-chip {
  background: #fbf8ef;
  border: 1px solid #eadfbf;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.timing-daytime {
  background: #fff8de;
  border-color: #ead787;
}

.timing-evening {
  background: #f1f4f7;
  border-color: #dce2e8;
}

.timing-icon {
  display: inline-block;
  height: 12px;
  position: relative;
  width: 12px;
}

.timing-icon-morning::before {
  background: #f0b34b;
  border-radius: 12px 12px 0 0;
  bottom: 4px;
  content: "";
  height: 6px;
  left: 1px;
  position: absolute;
  width: 10px;
}

.timing-icon-morning::after {
  background: #4f7f53;
  bottom: 3px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 12px;
}

.timing-icon-daytime {
  background: #f4c64e;
  border-radius: 50%;
  box-shadow: 0 -5px 0 -4px #f4c64e, 0 5px 0 -4px #f4c64e, 5px 0 0 -4px #f4c64e, -5px 0 0 -4px #f4c64e;
}

.timing-icon-evening {
  border-radius: 50%;
  box-shadow: -4px 0 0 0 #56626f;
  transform: translateX(4px);
}

.timing-avoid,
.timing-review,
.shop-link {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
}

.timing-avoid {
  background: #f7faf7;
  border: 1px solid #e3e9e3;
  color: #68736a;
  padding: 5px 7px;
}

.timing-review {
  background: #f7faf7;
  border: 1px solid #e2e7e1;
  color: #788178;
  cursor: help;
  display: inline-flex;
  padding: 5px 7px;
}

.timing-tooltip {
  background: rgba(35, 45, 39, 0.95);
  border-radius: 8px;
  bottom: calc(100% + 8px);
  color: white;
  font-size: 0.72rem;
  font-weight: 750;
  left: 0;
  line-height: 1.35;
  max-width: min(260px, 72vw);
  opacity: 0;
  padding: 9px 10px;
  pointer-events: none;
  position: absolute;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  width: max-content;
  z-index: 20;
}

.timing-chip:hover .timing-tooltip,
.timing-chip:focus-visible .timing-tooltip,
.timing-avoid:hover .timing-tooltip,
.timing-avoid:focus-visible .timing-tooltip,
.storage-chip:hover .timing-tooltip,
.storage-chip:focus-visible .timing-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.shop-link {
  background: #f4faf4;
  border: 1px solid #d8ead9;
  color: var(--leaf-dark);
  display: inline-flex;
  justify-self: start;
  margin-top: 1px;
  padding: 5px 8px;
}

.shop-link:hover,
.shop-link:focus-visible {
  background: var(--leaf-dark);
  color: white;
}

.catalog-table tr {
  scroll-margin-top: 92px;
}

.ingredient-link-list {
  display: grid;
  gap: 7px;
  min-width: 210px;
}

.ingredient-entity-link,
.ingredient-show-more {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.ingredient-entity-link {
  align-items: baseline;
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  line-height: 1.25;
}

.ingredient-entity-link span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.ingredient-entity-link small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.ingredient-entity-link:hover span,
.ingredient-entity-link:focus-visible span {
  color: var(--leaf-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ingredient-show-more {
  color: var(--leaf-dark);
  font-size: 0.82rem;
  font-weight: 850;
  margin-top: 2px;
}

.row-highlight {
  animation: row-flash 2.2s ease-out;
  background: rgba(76, 175, 80, 0.1);
}

.amount-source-cell {
  display: grid;
  gap: 7px;
  min-width: 190px;
}

.amount-main {
  align-items: center;
  display: flex;
  gap: 7px;
}

.amount-main strong {
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0;
}

.amount-info {
  align-items: center;
  background: var(--mint);
  border: 1px solid #d4e9d6;
  border-radius: 999px;
  color: var(--leaf-dark);
  cursor: help;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 950;
  height: 17px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 17px;
}

.amount-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.amount-sources a {
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 4px 7px;
}

.amount-sources a:hover,
.amount-sources a:focus-visible {
  border-color: #b9dcbc;
  color: var(--leaf-dark);
}

@keyframes row-flash {
  0% {
    background: rgba(76, 175, 80, 0.22);
  }

  100% {
    background: rgba(76, 175, 80, 0.1);
  }
}

.source-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: capitalize;
}

.source-status-package_verified {
  background: var(--mint);
  color: var(--leaf-dark);
}

.source-status-website_sourced {
  background: #eef4fb;
  color: #315f82;
}

.source-status-needs_review {
  background: #fff2de;
  color: #8a5520;
}

.table-action {
  margin: 0;
  min-width: 82px;
  width: auto;
}

.saved-list-table {
  min-width: 900px;
}

.list-item-cell {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr);
}

.list-item-cell img {
  aspect-ratio: 1;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 52px;
}

.list-item-cell.text-only {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.empty-table-cell {
  color: var(--muted);
  font-weight: 750;
  padding: 28px;
}

.recipe-feature {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: clamp(26px, 5vw, 64px);
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  padding: clamp(18px, 4vw, 40px);
}

.recipe-gallery > img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
}

.gallery-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.gallery-strip img {
  aspect-ratio: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  width: 100%;
  object-fit: cover;
}

.lumina-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 238, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 980px;
  padding: clamp(28px, 6vw, 72px);
}

.lumina-logo {
  display: block;
  height: 82px;
  margin-bottom: 28px;
  width: 82px;
}

.lumina-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lumina-actions .button {
  width: auto;
}

.account-sync-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 22px;
  max-width: 620px;
  padding: 16px;
}

.account-sync-panel p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.account-sync-panel .lumina-actions {
  margin-top: 14px;
}

.empty-state {
  background: white;
  border: 1px dashed #c9d8ca;
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 28px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@keyframes bubble-float {
  0%,
  100% {
    translate: -50% -50%;
  }

  50% {
    translate: -50% calc(-50% - var(--float));
  }
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .dashboard-hero,
  .dashboard-workspace,
  .protocol-card {
    grid-template-columns: 1fr;
  }

  .protocol-controls,
  .protocol-timing-filter {
    width: 100%;
  }

  .protocol-storage-filter {
    margin-left: auto;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-card {
    right: 18px;
    top: auto;
    bottom: 92px;
  }
}

@media (max-width: 780px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    align-items: stretch;
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
  }

  .site-header.menu-open .nav {
    display: flex;
  }

  .nav a {
    border-radius: 10px;
    padding: 12px 14px;
    width: 100%;
  }

  .lumina-dashboard-shell,
  .page-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero h1 {
    font-size: 2.55rem;
  }

  .bubble-stage {
    padding-bottom: 180px;
    padding-top: 68px;
  }

  .diet-toggle {
    border-radius: 8px;
    left: 18px;
    justify-content: center;
    right: 18px;
    top: 14px;
  }

  .food-orbit {
    height: calc(100vh - 220px);
    min-height: 420px;
    overflow: hidden;
    touch-action: none;
  }

  .food-cloud {
    position: absolute;
  }

  .food-bubble {
    animation: none;
  }

  .food-bubble:hover,
  .food-bubble:focus-visible {
    transform: scale(1.04);
  }

  .bubble-label {
    display: none;
  }

  .detail-card {
    bottom: 92px;
    cursor: auto;
    left: 18px;
    position: fixed;
    right: 18px;
    top: auto;
    width: auto;
  }

  .filter-bar {
    border-radius: 8px;
    bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 36px);
  }

  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .linked-heading-card,
  .blog-heading-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-card-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .linked-heading-card > .heading-card-link {
    margin-left: 0;
  }

  .catalog-search {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .category-filter-row .filter-button {
    flex: 1 1 auto;
  }

  .catalog-grid,
  .recipe-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .food-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  h1 {
    font-size: 2.45rem;
  }
}
