/**
 * Normal Anatomy — mobile-first app shell & touch navigation
 * Layout-only layer; does not alter paywall, IndexedDB, or API behavior.
 */

:root {
  --na-desktop-max: 1100px;
  --na-modal-max: 480px;
  --na-shell-shadow:
    0 0 0 1px rgba(45, 37, 30, 0.06),
    0 10px 40px rgba(45, 37, 30, 0.1),
    0 28px 72px rgba(45, 37, 30, 0.07);
  --na-touch-min: 2.75rem;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background-color: var(--oatmeal, #f4efea);
  min-height: 100dvh;
}

@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: linear-gradient(165deg, #e8e2da 0%, #f4efea 38%, #ebe5df 100%);
  }
}

/* Mobile: full-bleed shell · Desktop (≥768px): centered premium oatmeal card */
.na-mobile-shell {
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  margin-inline: auto;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--oatmeal, #f4efea);
}

@media (max-width: 767px) {
  .na-mobile-shell {
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .na-mobile-shell #auth-portal,
  .na-mobile-shell #landing,
  .na-mobile-shell #express-mobility > header,
  .na-mobile-shell #scan-flow > header,
  .na-mobile-shell #kel-fit-check > header {
    border-radius: 0;
  }
}

@media (min-width: 768px) {
  .na-mobile-shell {
    width: 100%;
    max-width: var(--na-desktop-max);
    min-height: 100dvh;
    margin-block: 0;
    padding: 1.75rem 1.5rem 2.5rem;
    background-color: var(--oatmeal, #f4efea);
    border: 1px solid rgba(45, 37, 30, 0.08);
    border-radius: 6px;
    box-shadow: var(--na-shell-shadow);
  }
}

/* Prevent horizontal scroll & text clipping inside the app shell */
.na-mobile-shell,
.na-mobile-shell section,
.na-mobile-shell .notebook,
.na-mobile-shell .dash-panel,
.na-mobile-shell .dash-panel-card,
.na-mobile-shell .compliment-card,
.na-mobile-shell .hub-card,
.na-mobile-shell .movement-library-card,
.na-mobile-shell .focal-assessment-card {
  max-width: 100%;
}

.na-mobile-shell h1,
.na-mobile-shell h2,
.na-mobile-shell h3,
.na-mobile-shell p,
.na-mobile-shell li,
.na-mobile-shell .compliment-body,
.na-mobile-shell .routine-steps,
.na-mobile-shell .movement-card-steps,
.na-mobile-shell .lifestyle-components li,
.na-mobile-shell .focal-line,
.na-mobile-shell .tab-compliance-disclaimer,
.na-mobile-shell .fashion-swatch-label,
.na-mobile-shell .makeup-swatch-label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.na-mobile-shell .landing-features li {
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Single-column grids within the mobile shell */
.na-mobile-shell .movement-grid,
.na-mobile-shell .movement-library-grid {
  grid-template-columns: 1fr;
}

/* Dashboard tab row — comfortable touch targets */
.dash-tabs-wrap {
  max-width: 100%;
}

.dash-tabs {
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar {
  display: none;
}

.dash-tab {
  flex: 0 0 auto;
  min-width: 4.5rem;
  min-height: var(--na-touch-min);
  padding: 0.8rem 0.65rem;
  font-size: 0.58rem;
  letter-spacing: 0.045em;
  line-height: 1.25;
  white-space: nowrap;
  -webkit-tap-highlight-color: rgba(138, 154, 134, 0.28);
  touch-action: manipulation;
  scroll-snap-align: start;
}

.dash-tab:active {
  filter: brightness(0.96);
}

/* Sage primary & hub buttons — full-width, thumb-friendly */
.btn-primary,
.hub-btn {
  display: block;
  width: 100%;
  min-height: var(--na-touch-min);
  box-sizing: border-box;
  font-weight: 600;
  -webkit-tap-highlight-color: rgba(138, 154, 134, 0.22);
  touch-action: manipulation;
}

.hub-btn {
  padding-top: 0.9375rem;
  padding-bottom: 0.9375rem;
  color: #ffffff;
}

#landing-hub .hub-card {
  position: relative;
  z-index: 1;
}

#landing-hub .hub-btn {
  position: relative;
  z-index: 2;
}

/* Stack paired nav buttons vertically on narrow viewports */
@media (max-width: 480px) {
  #app-main nav.flex,
  #kel-fit-check .mt-5.flex,
  #kel-fit-check .flex.gap-2 {
    flex-direction: column;
    gap: 0.75rem;
  }

  #app-main nav.flex .btn-primary,
  #app-main nav.flex .notebook,
  #kel-fit-check .flex .btn-primary,
  #kel-fit-check .flex .notebook {
    width: 100%;
    flex: none;
  }
}

/* Primary app pillar tabs */
.app-primary-tab {
  min-height: var(--na-touch-min);
  padding: 0.85rem 0.65rem;
  touch-action: manipulation;
}

/* Auth tabs */
.auth-tab {
  min-height: var(--na-touch-min);
  touch-action: manipulation;
}

/* Evolution Hub — dashboard quick actions */
.evolution-hub {
  padding: 1.25rem 1.1rem 1.35rem;
  border: 1px solid rgba(138, 154, 134, 0.45);
  background: linear-gradient(165deg, rgba(244, 239, 234, 0.98), rgba(235, 229, 223, 0.55));
  border-radius: 10px;
}

.evolution-hub-eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest, #3f4e3f);
  letter-spacing: 0.01em;
}

.evolution-hub-lead {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(45, 37, 30, 0.72);
}

.evolution-hub-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.evolution-hub-btn {
  color: #ffffff;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding-top: 0.9375rem;
  padding-bottom: 0.9375rem;
  border-radius: 8px;
}

.evolution-hub-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.evolution-hub-status {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--forest, #3f4e3f);
  text-align: center;
}

#evolution-transform-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(45, 37, 30, 0.42);
}

#evolution-transform-modal.open {
  display: flex;
}

@media (min-width: 768px) {
  #evolution-transform-modal {
    align-items: center;
    padding: 1rem;
  }
}

.evolution-modal-panel {
  width: 100%;
  max-width: var(--na-modal-max, 480px);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 1.25rem 1rem 1.5rem;
  background: var(--oatmeal, #f4efea);
  border: 1px solid rgba(138, 154, 134, 0.45);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -8px 32px rgba(45, 37, 30, 0.12);
}

@media (min-width: 768px) {
  .evolution-modal-panel {
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(45, 37, 30, 0.14);
  }
}

/* User Profile view — mobile-first full-bleed card */
.dash-tab-profile {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(45, 37, 30, 0.72);
  background: var(--wash, #ebe5df);
  min-width: 4rem;
}

.dash-tab-profile[aria-selected="true"] {
  background: var(--oatmeal, #f4efea);
  color: var(--forest, #3f4e3f);
  box-shadow: inset 0 -2px 0 var(--sage, #8a9a86);
}

.user-profile-view {
  padding: 1.15rem 1rem 1.35rem;
  background: var(--oatmeal, #f4efea);
  max-width: 100%;
}

.user-profile-view.active {
  display: block;
}

.profile-view-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(45, 37, 30, 0.1);
}

.profile-view-eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage, #8a9a86);
}

.profile-view-title {
  margin-top: 0.35rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest, #3f4e3f);
}

.profile-view-lead {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(45, 37, 30, 0.68);
}

.profile-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(45, 37, 30, 0.08);
}

.profile-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--forest, #3f4e3f);
}

.profile-identity-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.profile-field {
  display: block;
}

.profile-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--sepia, #2d251e);
}

.profile-field-input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.72rem 0.85rem;
  box-sizing: border-box;
  border: 1px solid rgba(138, 154, 134, 0.45);
  border-radius: 2px;
  background: rgba(244, 239, 234, 0.92);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--sepia, #2d251e);
  -webkit-tap-highlight-color: transparent;
}

.profile-field-input::placeholder {
  color: rgba(138, 154, 134, 0.45);
  font-weight: 500;
}

.profile-field-input:focus {
  outline: none;
  border-color: var(--forest, #3f4e3f);
  box-shadow: 0 0 0 1px rgba(63, 78, 63, 0.18);
  color: var(--forest, #3f4e3f);
}

.profile-field-season {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
}

.profile-scan-timeline {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  max-height: min(38dvh, 280px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(45, 37, 30, 0.1);
  border-radius: 2px;
  background: rgba(235, 229, 223, 0.35);
}

.profile-timeline-item,
.profile-timeline-empty {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.78rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--sepia, #2d251e);
  border-bottom: 1px solid rgba(45, 37, 30, 0.08);
}

.profile-timeline-item:last-child,
.profile-timeline-empty:last-child {
  border-bottom: none;
}

.profile-timeline-label {
  flex: 1 1 auto;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-timeline-date {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(45, 37, 30, 0.58);
  white-space: nowrap;
}

.profile-timeline-empty {
  justify-content: center;
  color: rgba(45, 37, 30, 0.55);
  font-weight: 500;
}

.profile-vault-note {
  margin-top: 0.45rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: rgba(45, 37, 30, 0.58);
}

.profile-vault-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.profile-vault-item {
  margin: 0;
  text-align: center;
}

.profile-vault-thumb-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(45, 37, 30, 0.16);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(45, 37, 30, 0.05);
}

.profile-vault-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-vault-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(45, 37, 30, 0.42);
  background: rgba(235, 229, 223, 0.65);
}

.profile-vault-placeholder.hidden {
  display: none;
}

.profile-vault-caption {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(45, 37, 30, 0.62);
}

.na-mobile-shell #user-profile-view {
  max-width: 100%;
}

/* ============================================================
   DESKTOP CENTERED CONTENT COLUMN
   Constrains all main sections to a readable centered column
   on screens ≥768px. Mobile stays full-bleed — untouched.
   ============================================================ */

@media (min-width: 768px) {

  /* Centered content column for all main sections */
  #landing,
  #express-mobility,
  #scan-flow,
  #validation-screen,
  #nutrition-input-screen,
  #complete,
  #kel-fit-check {
    max-width: 600px;
    margin-inline: auto;
  }

  /* Auth portal — centered card */
  #auth-portal,
  .na-mobile-shell #auth-portal {
    max-width: 480px;
    margin-inline: auto;
  }

  /* Compliment card — centered with generous padding */
  #dash-compliment-card {
    max-width: 600px;
    margin-inline: auto;
    padding: 2rem 2.25rem;
    text-align: center;
  }

  /* What stands out heading — larger on desktop */
  #dash-compliment-card h3 {
    font-size: 1.65rem;
  }

  /* Compliment body text — elegant desktop size */
  .compliment-card .compliment-body {
    font-size: 1.45rem;
    line-height: 1.6;
    text-align: center;
  }

  /* Dashboard tabs + panels — centered column */
  #dashboard-teaser-zone {
    max-width: 600px;
    margin-inline: auto;
  }

  /* Tab panels — comfortable desktop padding */
  .dash-panel.active {
    padding: 1.75rem 2rem;
  }

  /* Primary pillar tabs nav + app-main nav — centered column */
  #app-primary-tabs,
  #app-main > nav {
    max-width: 600px;
    margin-inline: auto;
  }
}

/* ============================================================
   BLUEPRINT SUMMARY — LARGER, MORE READABLE TYPOGRAPHY
   Fixes shrunken subheaders and body text in Complete Analysis
   ============================================================ */

.blueprint-summary-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

/* Subheaders: FRONT FACE · FRONT FULL-BODY · SIDE PROFILE */
#complete-analysis-tab .blueprint-photo-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--forest, #3f4e3f);
  margin-top: 0.75rem;
  margin-bottom: 0.45rem;
}

#complete-analysis-tab .blueprint-summary-line:first-child .blueprint-photo-tag {
  margin-top: 0;
}

/* Body sentence — normal weight, on its own line beneath the label */
#complete-analysis-tab .blueprint-summary-sentence {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--sepia, #2d251e);
}

/* Visual separation between each photo section */
#complete-analysis-tab .blueprint-summary-line + .blueprint-summary-line {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(45, 37, 30, 0.13);
}

/* Comprehensive Anatomical Analysis body text */
#dash-complete-analysis-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--sepia, #2d251e);
}

/* Structured subheadings: Face & Skin · Full Body Front · Side Profile */
#dash-complete-analysis-body .clinical-subheading {
  display: block;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--forest, #3f4e3f);
}

#dash-complete-analysis-body .clinical-subheading:first-child {
  margin-top: 0;
}

/* Section label above blueprint summary and anatomical analysis */
.blueprint-summary-section > p,
.clinical-analysis-section > p {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  font-weight: 700;
}

/* Skin tab — ingredient pill tags */
.skin-ingredient-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skin-ingredient-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--forest, #3f4e3f);
  background: rgba(138, 154, 134, 0.14);
  border: 1px solid rgba(138, 154, 134, 0.38);
  border-radius: 999px;
  white-space: nowrap;
}

.skin-ingredient-pills-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(45, 37, 30, 0.48);
  margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
  #landing, #express-mobility, #scan-flow,
  #validation-screen, #complete, #kel-fit-check {
    max-width: 600px;
    margin-inline: auto;
  }
  #auth-portal,
  .na-mobile-shell #auth-portal {
    max-width: 480px;
    margin-inline: auto;
  }
  #dash-compliment-card {
    max-width: 600px;
    margin-inline: auto;
    padding: 2rem 2.25rem;
    text-align: center;
  }
  #dash-compliment-card h3 { font-size: 1.65rem; }
  .compliment-card .compliment-body {
    font-size: 1.45rem;
    line-height: 1.6;
    text-align: center;
  }
  #dashboard-teaser-zone {
    max-width: 600px;
    margin-inline: auto;
  }
  #app-primary-tabs {
    max-width: 600px;
    margin-inline: auto;
  }
  .dash-panel.active { padding: 1.75rem 2rem; }
}

/* Duplicate block consolidated — canonical rules are above at line 627 */
#dash-complete-analysis-body {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================================
   NUTRITION INPUT SCREEN
   ============================================================ */

.nutrition-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest, #3f4e3f);
}

.nutrition-field-optional {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(45, 37, 30, 0.45);
  margin-left: 0.35rem;
}

.nutrition-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.nutrition-option-btn {
  padding: 0.7rem 0.5rem;
  min-height: 2.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sepia, #2d251e);
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(45, 37, 30, 0.22);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: rgba(138, 154, 134, 0.22);
  touch-action: manipulation;
  line-height: 1.3;
}

.nutrition-option-btn:hover,
.nutrition-option-btn:focus-visible {
  border-color: var(--forest, #3f4e3f);
  color: var(--forest, #3f4e3f);
  background: rgba(255, 255, 255, 0.8);
  outline: none;
}

.nutrition-option-btn.selected {
  background: var(--forest, #3f4e3f);
  border-color: var(--forest, #3f4e3f);
  color: #fff;
  font-weight: 600;
}

.nutrition-text-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line, rgba(45, 37, 30, 0.28));
  border-radius: 2px;
  background: rgba(235, 229, 223, 0.45);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--sepia, #2d251e);
  line-height: 1.5;
}

.nutrition-text-input:focus {
  outline: none;
  border-color: var(--forest, #3f4e3f);
  box-shadow: 0 0 0 1px rgba(63, 78, 63, 0.18);
}

.nutrition-textarea {
  resize: none;
  min-height: 5rem;
}

/* ============================================================
   NUTRITION TAB — FOOD OF THE WEEK CARD
   ============================================================ */

.nutrition-fotw-card {
  border: 1px solid rgba(138, 154, 134, 0.55);
  border-top: 3px solid var(--sage, #8a9a86);
  background: linear-gradient(180deg, rgba(138, 154, 134, 0.08) 0%, var(--oatmeal, #f4efea) 40%);
  overflow: hidden;
}

.nutrition-fotw-header {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(45, 37, 30, 0.08);
}

.nutrition-fotw-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--forest, #3f4e3f);
}

.nutrition-fotw-title {
  margin-top: 0.35rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest, #3f4e3f);
}

.nutrition-fotw-body {
  padding: 0.85rem 1.15rem 1rem;
}

.nutrition-fotw-section {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(45, 37, 30, 0.07);
}

.nutrition-fotw-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.nutrition-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--forest, #3f4e3f);
  text-transform: none;
}

.nutrition-section-body {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--sepia, #2d251e);
}

.nutrition-fact-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  color: rgba(45, 37, 30, 0.82);
}

/* ============================================================
   NUTRITION TAB — PERSONALISED BLUEPRINT
   ============================================================ */

.nutrition-pillar-card {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(138, 154, 134, 0.38);
  background: rgba(235, 229, 223, 0.35);
  border-radius: 2px;
}

.nutrition-pillar-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--forest, #3f4e3f);
}

.nutrition-pillar-body {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--sepia, #2d251e);
}

.nutrition-weekly-focus {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(138, 154, 134, 0.5);
  background: rgba(138, 154, 134, 0.08);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .nutrition-options-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   THIS WEEK CARD
   ============================================================ */

.this-week-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.this-week-item {
  padding: 0.85rem 0.75rem;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 6px;
}

.this-week-divider {
  height: 1px;
  background: rgba(45, 37, 30, 0.1);
  margin: 0.5rem 0;
}

.this-week-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage, #8a9a86);
  margin-bottom: 0.1rem;
}

.this-week-name {
  margin-top: 0.3rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest, #3f4e3f);
}

.this-week-body {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(45, 37, 30, 0.72);
}

/* ============================================================
   BLUEPRINT BUILDING TOAST
   ============================================================ */

.na-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  z-index: 9999;
  max-width: min(calc(100vw - 2rem), 420px);
  width: 100%;
  background: var(--forest, #3f4e3f);
  color: var(--oatmeal, #f4efea);
  border-radius: 4px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.na-toast[hidden] {
  display: none;
}

.na-toast.na-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.na-toast-text {
  font-size: 0.8125rem;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
}

/* ============================================================
   CAMERA FLIP BUTTON (rear / front toggle)
   ============================================================ */
.camera-flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(138, 154, 134, 0.55);
  border-radius: 6px;
  background: rgba(244, 239, 234, 0.8);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(45, 37, 30, 0.72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}
.camera-flip-btn:hover {
  background: rgba(63, 78, 63, 0.08);
  color: var(--forest, #3f4e3f);
}
.camera-flip-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================================
   QUICK CHECK-IN
   ============================================================ */
.checkin-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem;
  border: 1.5px solid rgba(138, 154, 134, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--sepia, #2d251e);
  resize: vertical;
  -webkit-tap-highlight-color: transparent;
}
.checkin-textarea::placeholder {
  color: rgba(45, 37, 30, 0.38);
}
.checkin-textarea:focus {
  outline: none;
  border-color: var(--forest, #3f4e3f);
  box-shadow: 0 0 0 2px rgba(63, 78, 63, 0.1);
}
.checkin-result-card {
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid rgba(138, 154, 134, 0.45);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(244, 239, 234, 0.98), rgba(235, 229, 223, 0.6));
}
.checkin-result-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage, #8a9a86);
}
.checkin-result-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--sepia, #2d251e);
}
