:root {
  --surface: rgba(255, 255, 255, 0.86);
  --text: #112219;
  --muted: #607061;
  --line: rgba(17, 34, 25, 0.08);
  --green: #6ec14c;
  --green-deep: #3f8b31;
  --orange: #ff9a57;
  --shadow: 0 24px 72px rgba(54, 78, 49, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 197, 132, 0.24), transparent 24%),
    radial-gradient(circle at top right, rgba(110, 193, 76, 0.16), transparent 26%),
    linear-gradient(180deg, #fbfcf7 0%, #eef4ea 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 186, 107, 0.08), transparent 18%),
    radial-gradient(circle at 90% 10%, rgba(119, 190, 231, 0.08), transparent 18%);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow { width: min(860px, 100%); }

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  padding-top: 18px;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(32, 54, 28, 0.08);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--green));
  box-shadow: 0 12px 28px rgba(140, 188, 87, 0.26);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong { font-size: 1rem; }
.brand-text small { font-size: 0.8rem; color: var(--muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}
.site-nav a.is-active,
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.solid-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.solid-button {
  color: var(--text);
  background: linear-gradient(135deg, #90dc62, #f1c45e);
  box-shadow: 0 14px 28px rgba(142, 194, 95, 0.28);
}
.solid-button.light {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}
.ghost-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}
.ghost-button.light {
  color: white;
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
}
.solid-button:hover, .ghost-button:hover { transform: translateY(-1px); }
.nav-logout-button {
  border: none;
  cursor: pointer;
}
.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero-section, .page-main { padding-top: 34px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 170px);
}

.hero-copy h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 720px;
}
.lead.small { max-width: 560px; }

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 34, 25, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}
.section-tag.dark {
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--green));
  box-shadow: 0 0 0 6px rgba(110, 193, 76, 0.14);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.hero-stats,
.feature-grid,
.contact-grid,
.pricing-grid,
.footer-shell {
  display: grid;
  gap: 16px;
}

.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: 1fr 1fr; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-grid.pricing-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-tile,
.feature-card,
.dashboard-card,
.mini-card,
.contact-panel,
.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.stat-tile strong,
.feature-card h3,
.mini-card strong,
.pricing-card h3 {
  display: block;
  margin-bottom: 8px;
}

.stat-tile span,
.feature-card p,
.mini-card p,
.contact-panel p,
.pricing-card p,
.dashboard-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-panel { display: grid; gap: 18px; }
.dashboard-card.spotlight {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(242,247,235,0.94));
}
.dashboard-card.soft-accent {
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(232,244,255,0.78));
}
.dashboard-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.card-kicker {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight-metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
}
.spotlight-metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.progress-line {
  width: 100%;
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(203, 216, 199, 0.56);
  overflow: hidden;
}
.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.info-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}
.info-pill.green { background: rgba(110, 193, 76, 0.14); }
.info-pill.orange { background: rgba(255, 154, 87, 0.16); }

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.clean-list.spacious { gap: 18px; }
.clean-list li { display: grid; gap: 4px; }
.clean-list strong { font-size: 0.98rem; }
.clean-list span { color: var(--muted); line-height: 1.6; }

.section-block { padding: 78px 0; }
.page-hero { padding: 48px 0 18px; }

.section-head {
  margin-bottom: 26px;
  max-width: 720px;
}
.section-head h2,
.split-layout h2,
.cta-shell h2,
.contact-panel h2 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.section-head p { color: var(--muted); line-height: 1.75; }

.feature-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green-deep);
  font-weight: 800;
}

.muted-surface {
  background: linear-gradient(180deg, rgba(252,253,249,0.72), rgba(241,247,237,0.86));
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.split-layout.reverse > :first-child { order: 2; }
.split-layout.reverse > :last-child { order: 1; }

.stack-cards,
.pricing-highlight {
  display: grid;
  gap: 16px;
}
.pricing-highlight article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pricing-highlight article small,
.pricing-card small {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pricing-highlight article strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.admin-summary-grid,
.admin-plan-grid,
.admin-workspace,
.admin-assignment-grid {
  display: grid;
  gap: 16px;
}
.admin-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}
.admin-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-workspace {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
}
.admin-assignment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-column {
  display: grid;
  gap: 14px;
  align-content: start;
}
.admin-column-wide {
  min-width: 0;
}
.admin-user-list {
  display: grid;
  gap: 10px;
}
.billing-client-row.is-active {
  border-color: rgba(110, 193, 76, 0.34);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,248,234,0.94));
}

.pricing-card {
  position: relative;
}
.pricing-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.summary-tile {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}
.summary-tile small {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.summary-tile strong {
  font-size: 2rem;
  line-height: 1;
}
.summary-tile span {
  color: var(--muted);
  font-weight: 700;
}
.pricing-card.featured {
  border-color: rgba(110, 193, 76, 0.38);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240,248,233,0.95));
}
.pricing-card h3 {
  margin-bottom: 10px;
}
.pricing-subtitle {
  margin: 0 0 18px;
  min-height: 68px;
  font-size: 0.95rem;
}
.pricing-footnote {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(110, 193, 76, 0.14);
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.cta-section { padding: 40px 0 92px; }
.cta-shell {
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1d2f20, #314530);
  box-shadow: 0 28px 90px rgba(22, 38, 26, 0.22);
  color: white;
}
.cta-shell p { color: rgba(255,255,255,0.72); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 20px;
}

.site-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.site-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}
.site-form input,
.site-form textarea,
.site-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(17, 34, 25, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  outline: none;
}
.form-button {
  width: 100%;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

.form-feedback {
  min-height: 24px;
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.form-feedback[data-state="error"] {
  color: #b44939;
}

.form-feedback[data-state="info"] {
  color: var(--green-deep);
}

.checkout-summary {
  display: grid;
  gap: 12px;
  margin: 18px 0 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(245, 249, 241, 0.92);
  border: 1px solid var(--line);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
}

.summary-row span {
  color: var(--muted);
}

.dashboard-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  padding: 22px;
}
.dashboard-sidebar,
.dashboard-panel,
.metric-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.dashboard-sidebar { padding: 22px; }
.brand-block { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand-block strong { display: block; }
.brand-block small { color: var(--muted); }
.dashboard-nav { display: grid; gap: 8px; }
.dashboard-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
}
.dashboard-nav button {
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.dashboard-nav a.is-active,
.dashboard-nav a:hover,
.dashboard-nav button.is-active,
.dashboard-nav button:hover {
  color: var(--text);
  background: rgba(110, 193, 76, 0.10);
}
.dashboard-content { display: grid; gap: 14px; }
.dashboard-sections { display: grid; gap: 14px; }
.dashboard-section { display: none; gap: 14px; }
.dashboard-section.is-active { display: grid; }
.dashboard-page[data-dashboard-root]:not([data-ready="true"]) {
  opacity: 0;
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.dashboard-topbar small {
  color: var(--green-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dashboard-topbar h1 {
  margin: 6px 0 0;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}
.panel-mode {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.dashboard-metrics,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: start;
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.section-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.section-grid-schedule {
  grid-template-columns: 380px minmax(0, 1.18fr);
  align-items: start;
}
.section-grid-billing {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: start;
}
.workspace-column {
  display: grid;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.workspace-primary {
  align-content: start;
}
.workspace-side {
  align-content: start;
}
.metric-panel,
.dashboard-panel { padding: 16px; }
.dashboard-panel {
  min-height: 0;
  align-content: start;
}
.section-header {
  display: grid;
  gap: 8px;
  padding: 4px 2px 2px;
}
.section-header small {
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-header h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}
.section-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}
.panel-description {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.metric-panel small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}
.metric-panel strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-panel span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.panel-preview-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.preview-header,
.preview-row,
.panel-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-header span {
  color: var(--muted);
  font-weight: 700;
}

.preview-list {
  display: grid;
  gap: 12px;
}

.preview-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.preview-row:first-child {
  border-top: none;
  padding-top: 0;
}

.preview-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.panel-table {
  display: grid;
  gap: 10px;
}

.panel-table-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.panel-table-head {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  padding: 4px 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 34, 25, 0.07);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.status-warning {
  background: rgba(255, 154, 87, 0.18);
  color: #9c5c1e;
}

.status-pill.status-good {
  background: rgba(110, 193, 76, 0.18);
  color: var(--green-deep);
}

.usage-card {
  display: grid;
  gap: 12px;
}
.client-search {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}
.client-list,
.meal-timeline,
.side-stack {
  display: grid;
  gap: 10px;
}
.client-list-compact {
  gap: 8px;
}
.client-search-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  outline: none;
}
.client-search-input:focus {
  border-color: rgba(110, 193, 76, 0.32);
  box-shadow: 0 0 0 4px rgba(110, 193, 76, 0.08);
}
.client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
}
.client-row.is-active {
  border-color: rgba(110, 193, 76, 0.34);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240,248,233,0.94));
}
.client-list-compact .client-row {
  padding: 14px;
  border-radius: 16px;
}
.report-client-row strong {
  margin-bottom: 2px;
}
.client-row small,
.meal-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.client-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.client-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 34, 25, 0.06);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  align-self: flex-start;
}
.client-meta-chip-green {
  background: rgba(110, 193, 76, 0.14);
  color: var(--green-deep);
}
.client-meta-chip-orange {
  background: rgba(255, 154, 87, 0.16);
  color: #9c5c1e;
}
.mini-card {
  padding: 16px;
}
.mini-card-compact {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.mini-card strong {
  margin-bottom: 4px;
}
.mini-card p {
  margin: 6px 0 0;
  font-size: 0.92rem;
}
.client-dossier {
  display: grid;
  gap: 12px;
}
.dossier-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.board-list {
  display: grid;
  gap: 10px;
}
.schedule-form-panel,
.schedule-board-panel,
.billing-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}
.schedule-mini-board,
.billing-stack {
  display: grid;
  gap: 10px;
}
.quick-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-stat-card,
.billing-stat-card,
.billing-highlight,
.billing-progress-card,
.billing-client-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}
.quick-stat-card,
.billing-stat-card {
  padding: 14px;
  display: grid;
  gap: 6px;
}
.quick-stat-card small,
.billing-stat-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.quick-stat-card strong,
.billing-stat-card strong {
  font-size: 1.24rem;
  line-height: 1;
}
.quick-stat-card span,
.billing-stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.billing-highlight {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,249,236,0.92));
}
.billing-highlight-copy {
  display: grid;
  gap: 6px;
}
.billing-highlight-copy strong {
  font-size: 1.08rem;
}
.billing-highlight-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.billing-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.billing-progress-card {
  padding: 14px;
  display: grid;
  gap: 8px;
}
.billing-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.billing-progress-head strong {
  font-size: 0.96rem;
}
.billing-progress-head span,
.billing-progress-card small {
  color: var(--muted);
}
.billing-progress-line {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(17, 34, 25, 0.08);
}
.billing-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9edd67, #f0c85b);
}
.billing-client-list {
  display: grid;
  gap: 10px;
}
.billing-client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.billing-client-meta {
  display: grid;
  gap: 3px;
}
.billing-client-meta strong {
  font-size: 0.95rem;
}
.billing-client-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.calendar-shell {
  display: grid;
  gap: 12px;
}
.calendar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.calendar-header strong {
  font-size: 1rem;
}
.calendar-header span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.calendar-grid-compact .calendar-day,
.calendar-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}
.calendar-grid-compact .calendar-day {
  min-height: 68px;
  padding: 10px;
  display: grid;
  gap: 4px;
  align-content: space-between;
}
.calendar-day strong,
.calendar-card strong {
  font-size: 0.95rem;
}
.calendar-day span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}
.calendar-day.has-appointment {
  border-color: rgba(110, 193, 76, 0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(242,248,234,0.92));
}
.calendar-day.is-today,
.calendar-card.is-today {
  box-shadow: inset 0 0 0 2px rgba(255, 154, 87, 0.2);
}
.calendar-day.is-muted,
.calendar-card.is-muted {
  opacity: 0.48;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calendar-legend-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 34, 25, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}
.calendar-grid-large .calendar-card {
  min-height: 158px;
  padding: 12px 10px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.calendar-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.calendar-card-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.calendar-card-body {
  display: grid;
  gap: 7px;
}
.calendar-appointment {
  display: grid;
  gap: 6px;
  padding: 9px;
  border-radius: 16px;
  border: 1px solid rgba(17, 34, 25, 0.08);
  background: rgba(255, 255, 255, 0.86);
}
.calendar-appointment-scheduled {
  border-color: rgba(110, 193, 76, 0.24);
}
.calendar-appointment-completed {
  border-color: rgba(111, 168, 219, 0.24);
}
.calendar-appointment-cancelled {
  border-color: rgba(214, 88, 56, 0.18);
  opacity: 0.8;
}
.calendar-appointment-main {
  display: grid;
  gap: 3px;
}
.calendar-appointment-main span,
.calendar-appointment-main small,
.calendar-empty {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.calendar-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.board-item,
.board-empty {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}
.board-item strong {
  display: block;
  margin-bottom: 4px;
}
.board-item span,
.board-empty {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}
.board-item[data-level="warning"] {
  border-color: rgba(255, 154, 87, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,247,240,0.92));
}
.board-item[data-level="critical"] {
  border-color: rgba(214, 88, 56, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,241,238,0.94));
}
.board-item[data-level="good"] {
  border-color: rgba(110, 193, 76, 0.26);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,248,234,0.94));
}
.board-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.board-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.meal-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}
.meal-card.highlighted {
  border-color: rgba(255, 154, 87, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,247,240,0.94));
}
.meal-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.meal-card p,
.note-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.meal-food-name {
  margin-bottom: 10px;
  color: var(--text) !important;
  font-weight: 800;
}
.meal-photo-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.meal-photo-thumb {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(17, 34, 25, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(17, 34, 25, 0.08);
  cursor: pointer;
}
.meal-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.meal-photo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 34, 25, 0.08);
  color: var(--text);
  font-weight: 800;
}
.note-panel {
  display: grid;
  gap: 12px;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.inline-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
}
.field-label-compact {
  margin-top: 12px;
  font-size: 0.82rem;
}
.field-row-tight {
  gap: 10px;
}
.field-label-compact .field-input {
  padding: 11px 13px;
  border-radius: 14px;
}
.field-textarea-compact {
  min-height: 88px;
}
.goal-visual,
.payment-visual {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(17, 34, 25, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,248,241,0.92));
}
.goal-gauge {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.goal-gauge-ring {
  --goal-progress: 0.35;
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.96) 0 54%, transparent 55%),
    conic-gradient(
      rgba(110,193,76,0.95) 0turn,
      rgba(110,193,76,0.95) calc(var(--goal-progress) * 1turn),
      rgba(255, 154, 87, 0.28) calc(var(--goal-progress) * 1turn),
      rgba(17,34,25,0.08) 1turn
    );
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.55);
}
.goal-gauge-center {
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
}
.goal-gauge-center span {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}
.goal-gauge-center small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.goal-gauge-side {
  display: grid;
  gap: 10px;
}
.goal-gauge-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(17,34,25,0.08);
}
.goal-gauge-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.goal-gauge-stat strong {
  font-size: 1rem;
}
.goal-visual-copy {
  display: grid;
  gap: 6px;
}
.goal-visual-copy strong {
  font-size: 0.94rem;
}
.goal-visual-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.progress-line-strong {
  height: 12px;
  border-radius: 999px;
}
.progress-line-strong span {
  background: linear-gradient(90deg, rgba(110,193,76,0.95), rgba(246,212,99,0.95));
}
.payment-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.payment-progress-head strong {
  font-size: 0.94rem;
  line-height: 1.45;
}
.payment-month-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.client-row-main {
  display: grid;
  gap: 4px;
}
.client-row-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #9c5c1e;
  font-size: 0.78rem;
  font-weight: 800;
}
.client-row-warning::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f2b147;
  box-shadow: 0 0 0 5px rgba(242, 177, 71, 0.18);
}
.client-row-gender {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 34, 25, 0.06);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}
.payment-month-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 34, 25, 0.07);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.payment-month-chip.is-complete {
  background: rgba(110, 193, 76, 0.18);
  color: var(--green-deep);
}
.payment-month-chip.is-current {
  background: rgba(255, 154, 87, 0.18);
  color: #9c5c1e;
}
.code-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  margin-left: 6px;
  border-radius: 12px;
  background: rgba(17, 34, 25, 0.08);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.request-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.request-row {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.request-row:first-child {
  padding-top: 0;
  border-top: none;
}
.request-row b {
  display: block;
  margin-bottom: 4px;
}
.request-row small {
  display: block;
  color: var(--muted);
}
.comment-box {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  line-height: 1.7;
  resize: vertical;
  font: inherit;
  outline: none;
}
.comment-box:focus {
  border-color: rgba(255, 154, 87, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 154, 87, 0.08);
}
.day-log-group {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}
.day-log-body {
  display: none;
  gap: 12px;
}
.day-log-group.is-open .day-log-body {
  display: grid;
}
.day-log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
}
.day-log-heading-copy {
  display: grid;
  gap: 4px;
}
.day-log-heading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.day-log-heading h3 {
  margin: 0;
  font-size: 1rem;
}
.day-log-heading span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.day-log-chevron,
.meal-card-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(17, 34, 25, 0.08);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}
.day-calorie-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 34, 25, 0.06);
  color: var(--text) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}
.day-calorie-pill.is-warning {
  background: rgba(255, 154, 87, 0.16);
  color: #9c5c1e !important;
}
.day-calorie-pill.is-muted {
  opacity: 0.65;
}
.day-calorie-dismiss {
  border: none;
  background: rgba(17, 34, 25, 0.08);
  color: var(--text);
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}
.day-calorie-note {
  color: var(--muted) !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
}
.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.preset-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(17, 34, 25, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.preset-chip:hover {
  border-color: rgba(110, 193, 76, 0.26);
  background: rgba(242, 248, 234, 0.96);
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notification-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.notification-composer {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}
.notification-copy {
  display: grid;
  gap: 6px;
}
.notification-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.meal-card {
  padding: 0;
  overflow: hidden;
}
.meal-card.is-open {
  border-color: rgba(255, 154, 87, 0.42);
  box-shadow: 0 18px 40px rgba(255, 154, 87, 0.12);
}
.meal-card-toggle {
  width: 100%;
  padding: 14px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.meal-card-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.meal-card-body {
  display: none;
  gap: 10px;
  padding: 0 14px 14px;
  border-top: 1px solid transparent;
}
.meal-card.is-open .meal-card-body {
  display: grid;
  border-top-color: var(--line);
  padding-top: 12px;
}
.meal-review-panel {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.meal-inline-comment {
  min-height: 88px;
}
.meal-review-actions {
  display: grid;
  gap: 8px;
}
.meal-review-feedback {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.meal-review-actions .form-button {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  min-height: 46px;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(17, 34, 25, 0.82);
}
.image-lightbox[hidden] {
  display: none;
}
.image-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}
.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.16);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

/* --- Sidebar toggle (mobile) --- */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* --- Nav button icons --- */
.dashboard-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-nav button svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 180ms ease;
}
.dashboard-nav button.is-active svg {
  opacity: 1;
}

/* --- Metric icons --- */
.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.metric-icon-green {
  background: rgba(110, 193, 76, 0.14);
  color: var(--green-deep);
}
.metric-icon-orange {
  background: rgba(255, 154, 87, 0.16);
  color: #9c5c1e;
}
.metric-icon-blue {
  background: rgba(80, 140, 220, 0.14);
  color: #2d6ab0;
}

/* --- Client search --- */
.client-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.client-search-input:focus {
  border-color: rgba(110, 193, 76, 0.4);
  box-shadow: 0 0 0 4px rgba(110, 193, 76, 0.08);
}
.client-search-input::placeholder {
  color: var(--muted);
  font-weight: 600;
}

.appointment-form {
  display: grid;
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.field-input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(17, 34, 25, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  outline: none;
}

.field-input:focus {
  border-color: rgba(110, 193, 76, 0.42);
  box-shadow: 0 0 0 4px rgba(110, 193, 76, 0.09);
}

.field-textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.board-item-appointment .inline-actions {
  align-self: flex-start;
}

.board-item-appointment a {
  color: var(--green-deep);
  font-weight: 700;
}

/* --- Analysis grid --- */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.analysis-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(110, 193, 76, 0.06);
  border: 1px solid rgba(110, 193, 76, 0.12);
  text-align: center;
}
.analysis-item small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.analysis-item strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 2px;
}
.analysis-item span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.report-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 10px;
}

.report-upload-card {
  display: grid;
  gap: 10px;
}

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

.report-upload-feedback {
  display: block;
  margin-top: 4px;
}

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

@media (max-width: 900px) {
  .report-upload-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Lightbox navigation --- */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease;
  backdrop-filter: blur(8px);
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* --- Toast notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(17, 34, 25, 0.12);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 300ms ease forwards;
  max-width: 360px;
}
.toast.toast-success {
  border-color: rgba(110, 193, 76, 0.3);
  color: var(--green-deep);
}
.toast.toast-error {
  border-color: rgba(220, 80, 60, 0.3);
  color: #a03020;
}
.toast.toast-out {
  animation: toast-out 300ms ease forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(0.96); }
}

/* --- Loading button state --- */
.is-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}
.is-loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin 600ms linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Empty state --- */
.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(110, 193, 76, 0.08);
  color: var(--muted);
  margin-bottom: 10px;
}

/* --- Photo count clickable --- */
.meal-photo-count {
  cursor: pointer;
  transition: background 180ms ease;
}
.meal-photo-count:hover {
  background: rgba(17, 34, 25, 0.14);
}

/* --- Status pill variants --- */
.status-pill.status-pending {
  background: rgba(255, 154, 87, 0.18);
  color: #9c5c1e;
}
.status-pill.status-commented {
  background: rgba(110, 193, 76, 0.18);
  color: var(--green-deep);
}

.site-footer { padding: 0 0 44px; }
.footer-shell {
  grid-template-columns: 1fr auto;
  padding-top: 10px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-layout,
  .contact-grid,
  .pricing-grid,
  .pricing-summary-strip,
  .admin-summary-grid,
  .auth-shell,
  .cta-shell,
  .dashboard-metrics,
  .dashboard-grid,
  .workspace-grid,
  .section-grid-two,
  .section-grid-schedule,
  .section-grid-billing,
  .admin-workspace,
  .admin-plan-grid,
  .admin-assignment-grid,
  .notification-page-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats,
  .feature-grid,
  .dashboard-split {
    grid-template-columns: 1fr;
  }
  .cta-actions { justify-content: flex-start; }
  .dashboard-page {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }
  .sidebar-toggle {
    display: flex;
  }
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 55;
    transform: translateX(-100%);
    transition: transform 280ms ease;
    overflow-y: auto;
  }
  .dashboard-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 0 60px rgba(17, 34, 25, 0.18);
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(17, 34, 25, 0.3);
    backdrop-filter: blur(2px);
  }
  .dashboard-topbar h1 {
    font-size: 1.6rem;
  }
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .toast {
    max-width: 100%;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .billing-stat-grid,
  .quick-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }
  .site-nav,
  .nav-actions {
    display: none;
  }
  .nav-shell.is-open {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .nav-shell.is-open .site-nav,
  .nav-shell.is-open .nav-actions {
    display: flex;
    width: 100%;
    margin-left: 0;
  }
  .nav-shell.is-open .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
  }
  .nav-shell.is-open .nav-actions {
    flex-direction: column;
    gap: 10px;
  }
  .nav-shell.is-open .nav-actions a { width: 100%; }
}

@media (max-width: 640px) {
  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.4rem;
  }
  .section-head h2,
  .split-layout h2,
  .cta-shell h2,
  .contact-panel h2 {
    font-size: 2rem;
  }
  .container {
    width: min(var(--container), calc(100% - 22px));
  }
}
