/* anatomy — design system
   - Cream paper background, dark ink, friendly accent + sage + butter
   - Big rounded type, hand-set vibe with a rotated sticker / tape language
*/

:root {
  /* Tweakable */
  --font-display: 'GT Sectra', 'Source Serif 4', Georgia, serif;
  --font-text: 'Inter', system-ui, sans-serif;
  --accent: #2d5a3d;        /* deep forest */
  --sage: #6b8e6b;          /* herbal green */
  --butter: #f5d76e;        /* warm butter */
  --ink: #1a1916;
  --ink-soft: #4d4944;
  --ink-faint: #8a8479;
  --cream: #f5efe6;
  --cream-2: #ede6d8;
  --cream-card: #fbf7ee;
  --line: rgba(26, 25, 22, 0.12);
  --shadow-card: 0 1px 0 rgba(26,25,22,0.04), 0 12px 28px -16px rgba(26,25,22,0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
}

/* ---------- Selection + highlight ---------- */
::selection { background: var(--butter); color: var(--ink); }

.hl {
  background: linear-gradient(120deg, rgba(245,215,110,0) 0%, rgba(245,215,110,0.45) 20%, rgba(245,215,110,0.45) 80%, rgba(245,215,110,0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.32em;
  background-position: 0 88%;
  padding: 0 2px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-text);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; padding: 0; }
input, textarea { font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(26,25,22,0.03) 1px, transparent 1px),
    radial-gradient(rgba(26,25,22,0.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  z-index: 0;
  opacity: 0.7;
  mix-blend-mode: multiply;
}

#root { position: relative; z-index: 1; }

/* ---------- App shell ---------- */
.app { max-width: 1180px; margin: 0 auto; padding: 0 28px 80px; }
@media (max-width: 640px) {
  .app { padding: 0 18px 60px; }
}
.app.theme-night { /* tweak: night mode */
  background: transparent;
}

body.night {
  --cream: #1f1c18;
  --cream-2: #2a2620;
  --cream-card: #28241e;
  --ink: #f3ece0;
  --ink-soft: #c3b9a8;
  --ink-faint: #877f72;
  --line: rgba(243, 236, 224, 0.14);
  background: var(--cream);
  color: var(--ink);
}

/* ---------- Type primitives ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  }
.display-accent {
  color: var(--accent);
  font-weight: 600;
  }
.display-dot { color: var(--ink); }

.sec-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  line-height: 1.05;
}
.sec-sub { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ---------- Sticker / Tape ---------- */
.sticker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 7px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  font-family: var(--font-text);
  white-space: nowrap;
  box-shadow: 0 4px 0 -2px rgba(26,25,22,0.15);
}

.tape {
  position: absolute;
  width: 78px; height: 22px;
  background: rgba(245, 215, 110, 0.55);
  border-left: 1px dashed rgba(26,25,22,0.15);
  border-right: 1px dashed rgba(26,25,22,0.15);
  z-index: 2;
}

/* ---------- Header ---------- */
/* Logo font classes */
.logo-ana { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 500; letter-spacing: 0.04em; fill: #1a1a1a; }
.logo-two { font-family: 'Lora', serif; font-style: italic; font-weight: 500; fill: #4a6a4a; }
.night .logo-ana { fill: #f0e8da; }
.night .logo-two { fill: #8aad8a; }

.hdr { padding: 10px 0 10px; position: sticky; top: 0; background: var(--cream); z-index: 20; }
.hdr-row { display: flex; align-items: center; gap: 14px; }
.wordmark { display: flex; align-items: baseline; gap: 8px; }
.wm-mark {
  width: 36px; height: 36px;
  background: var(--ink); color: var(--cream);
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px;
}
.wm-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  }
.hdr-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  color: var(--ink-faint);
  margin-left: auto;
  width: 200px;
}
.hdr-search input {
  flex: 1; border: 0; background: 0; outline: 0; font-size: 13px; color: var(--ink); min-width: 0;
}
.hdr-search input::placeholder { color: var(--ink-faint); }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-pill);
  color: var(--ink-soft);
}
.icon-btn.pill { background: var(--cream-card); border: 1px solid var(--line); }
.icon-btn.sm { padding: 4px; }
.hdr-lang { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }

.hdr-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 8px; gap: 12px; flex-wrap: wrap; }
.hdr-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.hdr-pages { display: flex; gap: 6px; }
.page-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
}
.page-tab:hover { color: var(--ink); }
.page-tab-active {
  color: var(--ink);
  font-weight: 700;
}
.page-tab-active::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.page-tab-locked { opacity: 0.45; cursor: default; }
.page-tab-locked:hover { color: var(--ink-soft); }
.coming-soon-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cream-2); color: var(--ink-faint);
  padding: 2px 6px; border-radius: var(--radius-pill);
  margin-left: 2px;
}
.page-tab-accent { color: var(--accent); }

/* Editorial header variant */
.hdr-edit { padding: 28px 0 8px; text-align: center; border-bottom: 1px solid var(--line); }
.hdr-edit .hdr-row { justify-content: space-between; }
.wordmark-edit { display: inline-flex; align-items: baseline; gap: 4px; }
.wm-serif { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; }
.wm-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.hdr-search-mini {
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--line); padding: 4px 0; min-width: 180px;
  color: var(--ink-faint);
}
.hdr-search-mini input { border: 0; background: 0; outline: 0; flex: 1; font-size: 14px; color: var(--ink); }
.hdr-catrow {
  display: flex; gap: 22px; justify-content: center; padding: 14px 0 10px; flex-wrap: wrap;
  font-family: var(--font-display); }
.cat-edit {
  font-size: 18px; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: 4px 2px;
}
.cat-edit:hover { color: var(--ink); }
.cat-edit-active { color: var(--accent); }
.cat-edit-locked { opacity: 0.45; cursor: default; }
.cat-edit-locked:hover { color: var(--ink-soft); }
.cat-edit-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px;
}
.hdr-pipe { width: 1px; height: 18px; background: var(--line); align-self: center; }

/* ---------- Chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Card ---------- */
.card { background: var(--cream-card); border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- FEED ---------- */
.feed { padding-top: 22px; }
.dens-cozy { --gap: 28px; }
.dens-airy  { --gap: 44px; }
.dens-snug  { --gap: 18px; }

/* Chat intro */
.chat-intro { margin: 4px 0 22px; }
.chat-bubble { display: flex; gap: 14px; align-items: flex-start; max-width: 720px; }
.chat-avatar {
  width: 40px; height: 40px; flex: none;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
}
.chat-name { margin: 0 0 4px; font-size: 13px; color: var(--ink-soft); }
.chat-dot { color: var(--ink-faint); margin: 0 4px; }
.chat-time { color: var(--ink-faint); }
.chat-msg { margin: 0; font-size: 17px; line-height: 1.45; max-width: 56ch; text-wrap: pretty; }
.chat-msg strong { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--ink); }

/* Hero */
.feed-hero { padding: var(--gap, 32px) 0 calc(var(--gap, 32px) + 6px); }
.feed-hero-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: end; }
.feed-hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 220px; text-align: right; }
.feed-hero-sub { color: var(--ink-soft); font-size: 14px; margin: 0; line-height: 1.4; }
@media (max-width: 700px) {
  .feed-hero-row { grid-template-columns: 1fr; }
  .feed-hero-meta { align-items: flex-start; text-align: left; }
}

/* Daily pick */
.daily { margin: 0 0 var(--gap, 32px); }
.daily-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.daily-date { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.daily-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: var(--cream-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: left;
  width: 100%;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.daily-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.daily-img-wrap { position: relative; background: var(--cream-2); aspect-ratio: 1; overflow: hidden; }
.daily-img { width: 100%; height: 100%; object-fit: cover; }
.tape-tl { top: 0; left: 0; }
.tape-br { right: 0; bottom: 0; left: auto; }
.daily-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.daily-brand { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.daily-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.015em; margin: 0;
  text-wrap: balance;
}
.daily-tagline { color: var(--ink-soft); font-size: 16px; max-width: 50ch; margin: 4px 0 8px; }
.daily-concerns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.concern-tag { font-size: 12px; background: var(--cream-2); padding: 4px 10px; border-radius: var(--radius-pill); color: var(--ink-soft); }
.tag-sage { background: rgba(107,142,107,0.15); color: var(--sage); }
.daily-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500;
  color: var(--accent); font-size: 18px; margin-top: auto;
}
.daily-card:hover .daily-cta { gap: 12px; }
@media (max-width: 700px) {
  .daily-card { grid-template-columns: 1fr; }
  .daily-img-wrap { aspect-ratio: 16/10; }
  .daily-body { padding: 22px 22px 26px; }
}

/* Grid */
.grid-section { padding-top: 12px; }
.grid-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.grid-h { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); margin: 0; letter-spacing: -0.01em; }
.grid-count { color: var(--ink-faint); font-size: 13px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.dens-airy .product-grid { gap: 32px; }
.dens-snug .product-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.pcard {
  text-align: left;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.pcard-img-wrap {
  position: relative; aspect-ratio: 1;
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pcard-img { width: 100%; height: 100%; object-fit: cover; }
.pcard-ing-pill {
  position: absolute; bottom: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream); border: 1px solid var(--line);
  padding: 4px 10px 4px 4px; border-radius: var(--radius-pill);
  font-size: 11px; color: var(--ink-soft);
  box-shadow: 0 2px 6px rgba(26,25,22,0.06);
}
.pcard-ing-sym {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0;
}
.pcard-body { display: flex; flex-direction: column; gap: 4px; }
.pcard-brand { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.pcard-name {
  font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.15;
  letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
.pcard-tag { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.4; }
.pcard-arrow {
  position: absolute; right: 18px; bottom: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  opacity: 0; transform: translateX(-4px);
  transition: all .2s ease;
}
.pcard:hover .pcard-arrow { opacity: 1; transform: translateX(0); }

/* Image fallback */
.img-fallback {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg,
      var(--cream-2) 0 12px,
      rgba(227,107,58,0.18) 12px 13px);
  position: relative;
}
.img-fallback::after {
  content: '✦';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink-faint); font-size: 28px;
}

.empty {
  text-align: center; padding: 64px 24px; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

.feed-foot {
  margin-top: 80px; padding: 30px 0 12px;
  border-top: 1px dashed var(--line);
  text-align: center;
}
.foot-mark { color: var(--ink-faint); font-size: 13px; }
.foot-mark em { font-family: var(--font-display); color: var(--ink-soft); }

/* ---------- DETAIL ---------- */
.detail { padding: 14px 0 60px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-soft);
  padding: 6px 12px 6px 6px; border-radius: var(--radius-pill);
  margin: 6px 0 18px;
}
.back-btn:hover { color: var(--ink); background: var(--cream-card); }

.detail-hero {
  display: grid; grid-template-columns: 0.8fr 1fr; gap: 40px;
  margin-bottom: 36px;
  align-items: start;
}
@media (max-width: 800px) {
  .detail-hero { grid-template-columns: 1fr; gap: 24px; }
  .detail-img-wrap { margin: 0 auto; width: 100%; max-width: 360px; }
}
.detail-img-wrap {
  position: relative;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  overflow: hidden;
}
.detail-img { width: 100%; height: 100%; object-fit: cover; }
.detail-sticker { position: absolute; bottom: 18px; left: 18px; }

.detail-head { padding-top: 8px; }
.detail-brand { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.detail-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 8px 0 14px; text-wrap: balance;
}
.detail-tag { font-size: 18px; color: var(--ink-soft); margin: 0 0 22px; max-width: 50ch; line-height: 1.4; }

.detail-actions { display: flex; gap: 10px; margin-bottom: 26px; }
.act-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-card); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 14px; color: var(--ink-soft);
}
.act-btn:hover { color: var(--ink); border-color: var(--ink); }
.act-btn-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.detail-concerns { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.meta-label { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; padding-top: 6px; }
.concern-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Note card */
.note-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 36px;
}
.note-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.note-avatar {
  width: 32px; height: 32px; background: var(--accent); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600;
}
.note-name { margin: 0; font-size: 13px; color: var(--ink-soft); }
.note-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.note-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; max-width: 60ch; }
.note-bullet {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cream-2); color: var(--ink-soft); display: grid; place-items: center;
  font-size: 12px; font-weight: 700; margin-top: 3px;
}

/* Ingredient table */
.ing-section { margin-bottom: 50px; }
.ing-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.ing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.ing-card {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center;
  background: var(--cream-card);
  border: 1px solid var(--line);
  padding: 14px 18px 14px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: transform .15s ease, border-color .15s ease;
}
.ing-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.ing-sym {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px;
}
.ing-card:nth-child(3n+1) .ing-sym { background: var(--accent); }
.ing-card:nth-child(3n+2) .ing-sym { background: var(--sage); }
.ing-card:nth-child(3n+3) .ing-sym { background: var(--ink); }
.ing-name { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.ing-bar-wrap { height: 4px; background: var(--cream-2); border-radius: 4px; overflow: hidden; }
.ing-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--butter)); border-radius: 4px; }
.ing-pct { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Related */
.related { padding-top: 24px; border-top: 1px solid var(--line); }
.related .sec-h { margin-bottom: 16px; }
.related-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rel-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
  background: var(--cream-card); border: 1px solid var(--line);
  padding: 10px; border-radius: var(--radius-sm); text-align: left;
}
.rel-card:hover { border-color: var(--ink); }
.rel-img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.rel-brand { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.rel-name { font-family: var(--font-display); font-weight: 500; font-size: 15px; margin: 2px 0 0; line-height: 1.15; }

/* Sheet */
.sheet-back {
  position: fixed; inset: 0; background: rgba(26,25,22,0.45);
  display: grid; place-items: end center;
  z-index: 100;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  background: var(--cream-card);
  width: 100%; max-width: 520px;
  border-radius: 28px 28px 0 0;
  padding: 32px 28px 40px;
  position: relative;
  animation: slide .25s cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 700px) { .sheet { border-radius: 28px; margin-bottom: 8vh; } }
@keyframes slide { from { transform: translateY(40px); opacity: 0; } }
.sheet-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--cream-2);
  display: grid; place-items: center;
}
.sheet-sym {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; margin-bottom: 16px;
}
.sheet-name { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin: 0; letter-spacing: -0.01em; }
.sheet-pct { color: var(--ink-faint); font-size: 13px; margin: 4px 0 16px; letter-spacing: 0.04em; }
.sheet-sci { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* Sheet — note-specific additions */
.sheet-tier {
  display: inline-block; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700; color: var(--accent);
  background: rgba(45, 90, 61, 0.1); padding: 5px 12px;
  border-radius: var(--radius-pill); margin-bottom: 10px;
}
.sheet-desc { font-size: 17px; line-height: 1.55; color: var(--ink); margin: 6px 0 0; }
.sheet-divider { height: 1px; background: var(--line); margin: 22px 0 16px; }
.sheet-sci-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-faint); margin: 0 0 6px;
}

/* Accords / Performance bars */
.accords { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.accord-row {
  display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 14px;
  font-size: 13px;
}
.accord-label { color: var(--ink-soft); font-weight: 600; }
.accord-bar-wrap {
  height: 6px; background: var(--cream-2); border-radius: 6px; overflow: hidden;
}
.accord-bar {
  height: 100%; background: var(--accent);
  border-radius: 6px; transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.accord-bar-sage { background: var(--sage); }
.accord-bar-butter { background: var(--butter); }
.accord-pct {
  color: var(--ink-faint); font-variant-numeric: tabular-nums;
  font-size: 12px; text-align: right; font-weight: 600;
}
@media (max-width: 700px) {
  .accord-row { grid-template-columns: 90px 1fr 34px; gap: 10px; font-size: 12px; }
}

/* Summary grid — benefits / concerns */
.summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 36px;
}
.summary-col {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  position: relative;
}
.summary-col-yes { border-color: rgba(45, 90, 61, 0.25); }
.summary-col-no { border-color: rgba(26, 25, 22, 0.12); }
.summary-col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.summary-mark {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  flex: none;
}
.summary-mark-yes { background: var(--accent); color: #fff; }
.summary-mark-no { background: var(--ink); color: var(--cream); }
.summary-mark-concern { background: var(--butter); color: var(--ink); }
.summary-h {
  font-family: var(--font-display); font-weight: 500;
  font-size: 20px; letter-spacing: -0.01em; margin: 0; line-height: 1.2;
}
.summary-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.summary-item {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.summary-dot {
  width: 6px; height: 6px; border-radius: 50%;
  margin-top: 9px; flex: none;
}
.summary-dot-yes { background: var(--accent); }
.summary-dot-no { background: var(--ink-faint); }
.concern-chips-big { gap: 8px; }
.concern-chips-big .concern-tag { font-size: 13px; padding: 6px 14px; }
@media (max-width: 800px) {
  .summary-grid { grid-template-columns: 1fr; gap: 12px; }
  .summary-col { padding: 22px; }
}

/* Usage card */
.usage-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 26px 28px 30px;
  margin-bottom: 50px;
  position: relative;
  border: 1px dashed rgba(26, 25, 22, 0.18);
}
.usage-head { margin-bottom: 14px; }
.usage-body {
  font-family: var(--font-display); font-weight: 400;
  font-size: 20px; line-height: 1.45; color: var(--ink); margin: 0;
  max-width: 62ch; letter-spacing: -0.005em;
}

/* Notes pyramid (fragrance) */
.notes-section { margin-bottom: 50px; }
.pyramid {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
}
.pyramid-tier {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding: 18px 0;
  border-top: 1px dashed var(--line);
}
.pyramid-tier:first-child { border-top: 0; padding-top: 8px; }
.tier-meta { display: flex; gap: 14px; align-items: flex-start; }
.tier-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 36px; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.tier-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; margin: 0 0 2px; letter-spacing: -0.01em;
  line-height: 1.1;
}
.tier-desc { font-size: 12px; color: var(--ink-faint); margin: 0; letter-spacing: 0.04em; }
.tier-notes { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; padding-top: 4px; }
.note-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 14px; color: var(--ink);
  transition: all .15s ease;
}
.note-chip:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px);
}
.tier-top .note-chip { background: rgba(107, 142, 107, 0.1); border-color: rgba(107, 142, 107, 0.3); }
.tier-heart .note-chip { background: rgba(245, 215, 110, 0.18); border-color: rgba(200, 170, 60, 0.3); }
.tier-base .note-chip { background: rgba(45, 90, 61, 0.1); border-color: rgba(45, 90, 61, 0.3); }
@media (max-width: 700px) {
  .pyramid-tier { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .tier-num { font-size: 28px; }
  .tier-name { font-size: 18px; }
}

/* Fun facts */
.facts-section { margin-bottom: 50px; }
.facts-head { margin-bottom: 22px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.fact-card {
  position: relative;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 26px;
  overflow: hidden;
}
.fact-card:nth-child(2n) { background: rgba(245, 215, 110, 0.12); border-color: rgba(200, 170, 60, 0.22); }
.fact-card:nth-child(3n) { background: rgba(107, 142, 107, 0.08); border-color: rgba(107, 142, 107, 0.22); }
.fact-quote {
  position: absolute; top: -18px; left: 18px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 120px; line-height: 1; color: var(--ink);
  opacity: 0.08;
}
.fact-body {
  font-size: 16px; line-height: 1.6; color: var(--ink);
  margin: 0 0 18px; position: relative;
  text-wrap: pretty;
}
.fact-num {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- INSIGHTS ---------- */
.insights { padding: 0 0 60px; }
.ins-hero { text-align: left; padding: 20px 0 8px; max-width: 560px; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ins-sub { color: var(--ink-soft); font-size: 15px; margin: 0; max-width: 50ch; }

.ins-list { list-style: none; padding: 0; margin: 0; max-width: 880px; margin: 0 auto; }
.ins-item { border-top: 1px solid var(--line); }
.ins-item:last-child { border-bottom: 1px solid var(--line); }
.ins-card {
  display: grid; grid-template-columns: 64px 1fr 32px; gap: 18px; align-items: center;
  width: 100%; padding: 28px 8px; text-align: left;
  transition: padding .2s ease, background .2s ease;
}
.ins-card:hover { background: rgba(245, 215, 110, 0.08); padding-left: 16px; padding-right: 16px; }
.ins-num { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ins-content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ins-kicker { font-size: 11px; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; }
.ins-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.015em; line-height: 1.1; margin: 0; text-wrap: balance;
}
.ins-meta { font-size: 12px; color: var(--ink-faint); }
.ins-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink-soft);
}
.ins-open .ins-arrow { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.ins-body {
  padding: 0 8px 36px 90px;
  max-width: 78ch;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } }
.ins-body p { font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; }
.ins-lede {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px !important; color: var(--ink) !important; line-height: 1.45 !important;
}
.ins-lede::first-letter {
  font-weight: 600; font-size: 56px; float: left; line-height: 0.88; padding: 6px 10px 0 0; color: var(--accent);
}
.ins-react { display: flex; gap: 8px; padding-top: 8px; }
.react-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-soft);
  background: var(--cream-card); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
@media (max-width: 700px) {
  .ins-card { grid-template-columns: 40px 1fr 28px; gap: 12px; }
  .ins-body { padding-left: 8px; }
}

/* ---------- ANALYZER ---------- */
.analyzer { padding: 24px 0 60px; max-width: 880px; margin: 0 auto; }
.anz-hero { text-align: center; padding: 30px 0 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.anz-form {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 28px;
}
.anz-input {
  width: 100%; resize: vertical;
  background: transparent; border: 0; outline: 0;
  font-size: 16px; color: var(--ink); line-height: 1.6;
  font-family: var(--font-text);
}
.anz-input::placeholder { color: var(--ink-faint); }
.anz-row { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px dashed var(--line); margin-top: 12px; }
.anz-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream);
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .15s ease;
}
.anz-btn:hover:not(:disabled) { background: var(--accent); transform: translateY(-1px); }
.anz-btn:disabled { opacity: 0.5; cursor: default; }
.anz-clear { font-size: 13px; color: var(--ink-faint); padding: 8px 12px; border-radius: var(--radius-pill); }
.anz-clear:hover { color: var(--ink); }

.anz-result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.anz-group { margin-bottom: 28px; }
.anz-group-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.anz-tier-dot { width: 10px; height: 10px; border-radius: 50%; }
.anz-tier-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.anz-group-count { margin-left: auto; font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.anz-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.anz-item {
  display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 18px;
  padding: 12px 16px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: baseline;
}
.anz-item-name { font-weight: 600; font-size: 15px; }
.anz-item-note { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 600px) {
  .anz-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- PROFILER (Ingredient Analyzer v2) ---------- */
.profiler { padding: 32px 0 60px; max-width: 780px; margin: 0 auto; }

.prof-hero { text-align: left; padding: 0 0 8px; max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.prof-sub { color: var(--ink-soft); font-size: 15px; margin: 6px 0 0; max-width: 50ch; }

.prof-step { padding: 32px 0; border-top: 1px solid var(--line); }
.prof-step:first-of-type { border-top: none; }
.prof-step-dim { opacity: 0.4; pointer-events: none; }
.prof-step-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.prof-step-n {
  font-family: var(--font-display); font-weight: 500;
  font-size: 32px; color: var(--ink-faint); line-height: 1;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  flex-shrink: 0; padding-top: 2px;
}

.prof-cats { display: flex; gap: 10px; flex-wrap: wrap; }
.prof-cat {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: var(--cream-card); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: all .15s ease;
}
.prof-cat:hover { border-color: var(--ink); color: var(--ink); }
.prof-cat-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.prof-cat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.prof-cat-on .prof-cat-dot { background: var(--cream); }
.prof-cat-n {
  font-size: 12px; color: var(--ink-faint); font-weight: 600;
  margin-left: 4px;
}
.prof-cat-on .prof-cat-n { color: var(--ink-faint); opacity: 0.6; }

.prof-buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .prof-buckets { grid-template-columns: 1fr; } }

.prof-bucket {
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.prof-bucket-works { border-color: rgba(45, 90, 61, 0.25); }
.prof-bucket-doesnt { border-color: rgba(180, 80, 60, 0.2); }

.prof-bucket-head { display: flex; gap: 12px; align-items: center; }
.prof-bucket-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.prof-bucket-icon-works { background: rgba(45, 90, 61, 0.12); color: var(--accent); }
.prof-bucket-icon-doesnt { background: rgba(180, 80, 60, 0.1); color: #a44a3f; }
.prof-bucket-title { font-size: 14px; font-weight: 600; margin: 0; color: var(--ink); }
.prof-bucket-sub { font-size: 12px; color: var(--ink-faint); margin: 2px 0 0; }

.prof-search {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 10px 14px;
  color: var(--ink-faint);
}
.prof-search-in {
  flex: 1; border: 0; background: 0; outline: 0;
  font-size: 14px; color: var(--ink);
}
.prof-search-in::placeholder { color: var(--ink-faint); }
.prof-search-x {
  display: grid; place-items: center;
  color: var(--ink-faint); padding: 2px;
}
.prof-search-x:hover { color: var(--ink); }

.prof-drop {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 6px; z-index: 30;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(26, 25, 22, 0.2);
  list-style: none; padding: 4px; margin: 6px 0 0;
}
.prof-drop-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px; border-radius: 10px;
  text-align: left;
  transition: background .1s ease;
}
.prof-drop-row:hover { background: var(--cream-2); }
.prof-drop-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.prof-drop-txt { min-width: 0; }
.prof-drop-name { font-size: 13px; font-weight: 600; margin: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-drop-brand { font-size: 11px; color: var(--ink-faint); margin: 1px 0 0; }

.prof-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prof-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
}
.prof-tag-works { background: rgba(45, 90, 61, 0.1); color: var(--accent); }
.prof-tag-doesnt { background: rgba(180, 80, 60, 0.08); color: #a44a3f; }
.prof-tag-x { display: grid; place-items: center; color: inherit; opacity: 0.6; }
.prof-tag-x:hover { opacity: 1; }

.prof-empty { font-size: 13px; color: var(--ink-faint); text-align: center; padding: 12px 0; }

/* Toggle: works / doesn't */
.prof-toggle {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.prof-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  background: var(--cream-card); border: 1px solid var(--line);
  color: var(--ink-soft); transition: all .15s ease;
}
.prof-toggle-btn:hover { border-color: var(--ink); color: var(--ink); }
.prof-toggle-on.prof-toggle-works { background: var(--accent); color: #fff; border-color: var(--accent); }
.prof-toggle-on.prof-toggle-doesnt { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.prof-toggle-count {
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.25); padding: 1px 7px;
  border-radius: var(--radius-pill); min-width: 18px; text-align: center;
}

/* Search input */
.prof-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 12px 16px;
  margin-bottom: 12px; color: var(--ink-faint);
  transition: border-color .15s ease;
}
.prof-input-wrap:focus-within { border-color: var(--accent); }
.prof-input {
  flex: 1; border: 0; background: 0; outline: 0;
  font-size: 15px; color: var(--ink); font-family: var(--font-text);
}
.prof-input::placeholder { color: var(--ink-faint); }
.prof-input-x { display: grid; place-items: center; color: var(--ink-faint); padding: 2px; }
.prof-input-x:hover { color: var(--ink); }

/* Quick-add suggestion chips */
.prof-suggest {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.prof-suggest-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-soft); padding: 5px 12px 5px 5px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius-pill); white-space: nowrap;
  transition: all .12s ease;
}
.prof-suggest-chip:hover { border-color: var(--accent); color: var(--accent); }
.prof-suggest-img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}

/* Product slot sections */
.prof-slot-section { margin-bottom: 14px; }
.prof-slot-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 8px;
}
.prof-slot-label-works { color: var(--accent); }
.prof-slot-label-doesnt { color: var(--ink-faint); }

.prof-slots {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.prof-slot {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  position: relative; transition: border-color .12s ease;
}
.prof-slot-works { border-color: rgba(45, 90, 61, 0.25); }
.prof-slot-doesnt { border-color: rgba(180, 80, 60, 0.18); }
.prof-slot-img {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.prof-slot-info { display: flex; flex-direction: column; min-width: 0; }
.prof-slot-brand { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.prof-slot-name {
  font-size: 13px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px;
}
.prof-slot-x {
  display: grid; place-items: center; color: var(--ink-faint);
  padding: 2px; flex-shrink: 0;
}
.prof-slot-x:hover { color: var(--ink); }

.prof-go {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream);
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease;
}
.prof-go:hover:not(:disabled) { background: var(--accent); transform: translateY(-1px); }
.prof-go:disabled { opacity: 0.5; cursor: default; }
.prof-go-off { opacity: 0.35; pointer-events: none; }

@keyframes prof-spin-anim { to { transform: rotate(360deg); } }
.prof-spin {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%;
  animation: prof-spin-anim .6s linear infinite;
}

.prof-err {
  margin-top: 14px; padding: 12px 16px;
  background: rgba(180, 80, 60, 0.08); border: 1px solid rgba(180, 80, 60, 0.2);
  border-radius: var(--radius-sm);
  color: #a44a3f; font-size: 14px;
}

.prof-result {
  margin-top: 22px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.prof-result[aria-busy="true"] { padding: 28px 24px; }
.prof-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.prof-result-meta { font-size: 12px; color: var(--ink-faint); font-weight: 500; }
.prof-result-body { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.prof-result-body .res-gap { height: 10px; }
.prof-result-body .res-p { margin: 0 0 8px; }
.prof-result-body .res-li { margin: 0 0 6px; padding-left: 16px; position: relative; list-style: none; }
.prof-result-body .res-li::before { content: '•'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.prof-result-body strong { color: var(--ink); font-weight: 600; }
.prof-disclaimer { font-size: 12px; color: var(--ink-faint); margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }

@media (max-width: 720px) {
  .profiler { padding: 0 0 40px; }
  .prof-step-head { gap: 12px; }
  .prof-step-n { font-size: 24px; }
  .prof-cats { gap: 8px; }
  .prof-cat { padding: 12px 16px; font-size: 14px; }
  .prof-result { padding: 18px; }
}

/* ---------- TWEAKS PANEL ---------- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  width: 280px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.3);
  z-index: 200;
  font-size: 13px;
  display: flex; flex-direction: column; gap: 14px;
}
.tweaks h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; margin: 0; display: flex; align-items: center; justify-content: space-between;
}
.tweak-row { display: flex; flex-direction: column; gap: 6px; }
.tweak-row > label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600; }
.tweak-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opt {
  font-size: 12px; padding: 6px 10px; border-radius: var(--radius-pill);
  background: var(--cream-2); color: var(--ink-soft); border: 1px solid transparent;
}
.tweak-opt-on { background: var(--ink); color: var(--cream); }
.tweak-swatch { display: flex; gap: 8px; }
.tweak-swatch-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; outline: 1px solid var(--line); outline-offset: -1px;
}
.tweak-swatch-btn.on { border-color: var(--ink); }


/* =========================================================
   MOBILE RESPONSIVE PASS
   ========================================================= */

@media (max-width: 720px) {
  /* Header: non-sticky on mobile (it's tall), search on own row */
  .hdr { padding: 14px 0 8px; position: sticky; top: 0; background: var(--cream); }
  .hdr-row { flex-wrap: nowrap; gap: 10px; }
  .wordmark { flex: 0 0 auto; }
  .wm-mark { width: 32px; height: 32px; font-size: 20px; border-radius: 10px; }
  .wm-text { font-size: 22px; }
  .hdr-search { order: 0; flex: 1 1 auto; padding: 7px 12px; width: auto; margin-left: auto; }
  .hdr-search input { font-size: 14px; }
  .icon-btn.pill { padding: 7px 10px; }
  .hdr-lang { font-size: 11px; }

  /* Category nav: horizontal scroller to avoid multi-row wrap */
  .hdr-nav { padding: 10px 0 6px; gap: 10px; }
  .hdr-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px;
    padding: 4px 18px 8px;
    scrollbar-width: none;
  }
  .hdr-cats::-webkit-scrollbar { display: none; }
  .hdr-cats > * { flex: 0 0 auto; scroll-snap-align: start; }
  .hdr-pages { margin-left: auto; }
  .page-tab { padding: 7px 12px; font-size: 13px; }
  .chip { padding: 8px 14px; font-size: 13px; }

  /* Editorial header variant */
  .hdr-edit .hdr-row { flex-wrap: nowrap; gap: 8px; }
  .hdr-edit .wm-serif { font-size: 26px; }
  .hdr-search-mini { min-width: 0; flex: 1; }
  .hdr-catrow { gap: 14px; padding: 10px 0 8px; font-size: 14px; }
  .cat-edit { font-size: 15px; }

  /* Feed hero */
  .feed-hero { padding: 20px 0 24px; }
  .display { font-size: 40px; line-height: 0.98; }

  /* Chat intro */
  .chat-intro { margin: 6px 0 14px; }
  .chat-bubble { gap: 10px; }
  .chat-avatar { width: 34px; height: 34px; font-size: 18px; }
  .chat-msg { font-size: 15px; }
  .chat-msg strong { font-size: 17px; }

  /* Daily pick */
  .daily-body { padding: 20px 20px 24px; gap: 8px; }
  .daily-name { font-size: 26px; }
  .daily-tagline { font-size: 15px; }
  .daily-cta { font-size: 16px; }

  /* Grid */
  .grid-head { margin-bottom: 14px; }
  .grid-h { font-size: 20px; }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .dens-snug .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .dens-airy .product-grid { gap: 18px; }
  .pcard { padding: 10px 10px 14px; gap: 10px; border-radius: 16px; }
  .pcard-name { font-size: 15px; }
  .pcard-tag { font-size: 12px; }
  .pcard-brand { font-size: 10px; }
  .pcard-ing-pill { font-size: 10px; bottom: 6px; left: 6px; }
  .pcard-ing-sym { width: 18px; height: 18px; font-size: 9px; }
  .pcard-arrow { width: 26px; height: 26px; right: 12px; bottom: 12px; opacity: 1; transform: none; background: var(--cream-2); color: var(--ink-soft); }

  /* Detail */
  .detail { padding: 8px 0 40px; }
  .detail-hero { gap: 18px; margin-bottom: 26px; }
  .detail-img-wrap { aspect-ratio: 1; width: 100%; max-width: 360px; margin: 0 auto; }
  .detail-name { font-size: 30px; margin: 6px 0 10px; }
  .detail-tag { font-size: 15px; margin-bottom: 16px; }
  .detail-actions { margin-bottom: 18px; }
  .act-btn { padding: 9px 14px; font-size: 13px; }

  /* Note card (legacy) */
  .note-card { padding: 18px 18px; margin-bottom: 26px; }
  .note-list li { font-size: 15px; gap: 10px; }

  /* Summary grid */
  .summary-col { padding: 20px 20px 22px; }
  .summary-h { font-size: 17px; }
  .summary-item { font-size: 14px; }

  /* Usage */
  .usage-card { padding: 20px 22px 24px; margin-bottom: 36px; }
  .usage-body { font-size: 17px; }

  /* Pyramid */
  .pyramid { padding: 16px 18px; }
  .note-chip { padding: 8px 14px; font-size: 13px; }

  /* Facts */
  .facts-grid { grid-template-columns: 1fr; gap: 12px; }
  .fact-card { padding: 28px 22px 22px; }
  .fact-quote { font-size: 90px; top: -14px; }
  .fact-body { font-size: 15px; }

  /* Ingredients */
  .ing-section { margin-bottom: 40px; }
  .ing-head { margin-bottom: 16px; }
  .ing-grid { grid-template-columns: 1fr; gap: 8px; }
  .ing-card { padding: 12px 14px 12px 12px; grid-template-columns: 40px 1fr auto; gap: 12px; }
  .ing-sym { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
  .ing-name { font-size: 14px; margin-bottom: 4px; }

  /* Related */
  .related-row { grid-template-columns: 1fr; }

  /* Sheet */
  .sheet { padding: 26px 22px 34px; }
  .sheet-sym { width: 56px; height: 56px; font-size: 22px; }
  .sheet-name { font-size: 24px; }

  /* Insights */
  .insights { padding: 14px 0 40px; }
  .ins-hero { padding: 18px 0 32px; }
  .ins-card { padding: 22px 4px; gap: 10px; grid-template-columns: 32px 1fr 26px; }
  .ins-card:hover { padding-left: 8px; padding-right: 8px; }
  .ins-num { font-size: 20px; }
  .ins-title { font-size: 20px; }
  .ins-body { padding: 0 4px 26px 4px; }
  .ins-body p { font-size: 15px; line-height: 1.6; }
  .ins-lede { font-size: 18px !important; }
  .ins-lede::first-letter { font-size: 44px; padding: 4px 8px 0 0; }

  /* Analyzer */
  .analyzer { padding: 14px 0 40px; }
  .anz-hero { padding: 18px 0 22px; }
  .anz-form { padding: 16px; }
  .anz-input { font-size: 15px; }
  .anz-btn { padding: 11px 18px; }
  .anz-group { margin-bottom: 22px; }
  .anz-tier-name { font-size: 18px; }
  .anz-item { padding: 10px 14px; }

  /* Feed footer */
  .feed-foot { margin-top: 50px; padding: 22px 0 8px; }

  /* Tweaks panel: full-width sheet from bottom */
  .tweaks {
    right: 10px; left: 10px; bottom: 10px;
    width: auto; max-width: none;
    padding: 14px 16px 16px;
    max-height: 70vh;
    overflow: auto;
  }
}

/* Extra-tight (sub-400px) */
@media (max-width: 400px) {
  .app { padding: 0 14px 60px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .display { font-size: 34px; }
  .daily-name { font-size: 22px; }
  .detail-name { font-size: 26px; }
  .hdr-pages { margin-left: 0; }
  .page-tab { padding: 6px 10px; font-size: 12px; }
}

/* Prevent horizontal scroll */
#root { overflow-x: clip; }

/* ─── Skeleton loader ──────────────────────────────────────────────────────── */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--cream-card) 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* ─── Korean word-break ────────────────────────────────────────────────────── */
.lang-ko p, .lang-ko h1, .lang-ko h2, .lang-ko h3, .lang-ko h4,
.lang-ko li, .lang-ko div, .lang-ko span, .lang-ko button { word-break: keep-all; }
