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

/* Shake animation for CTA buttons — triggers when parent .reveal becomes visible */
@keyframes cta-shake {
  0%, 65% { transform: translateX(0); }
  70% { transform: translateX(-3px) rotate(-1deg); }
  75% { transform: translateX(2px) rotate(0.5deg); }
  80% { transform: translateX(-2px) rotate(-0.5deg); }
  85% { transform: translateX(1px); }
  90% { transform: translateX(-1px); }
  95%, 100% { transform: translateX(0); }
}
.cta-shake { animation: none; }
.reveal-visible .cta-shake { animation: cta-shake 3s ease-in-out infinite; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 150ms ease-out, transform 150ms ease-out; }
.reveal-visible { opacity: 1; transform: translateY(0); }

: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: #FFFCF7;
  --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: 720px; 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(32px, 4vw, 46px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  }
.lang-ko .display { line-height: 1.15; }
.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; max-width: 720px; margin: 0 auto; }
.hdr-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.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;
  flex: 1;
  max-width: 360px;
  min-width: 0;
}
.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;
  text-decoration: none;
}
.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; text-decoration: none;
}
.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-catrow::-webkit-scrollbar { display: none; }
.hdr-pipe { width: 1px; height: 18px; background: var(--line); align-self: center; }

/* ---------- Chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(45,90,61,0.06);
  border: 1px solid var(--accent);
  color: var(--accent);
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s ease;
}
.chip:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.chip-active { background: var(--accent); color: #fff !important; border-color: var(--accent); }
.chip-active:hover { color: #fff !important; }
.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: 8px; max-width: 1080px; margin: 0 auto; }
.feed-cats { display: flex; gap: 8px; margin-bottom: 20px; }
.feed-cat-btn {
  padding: 7px 16px; border-radius: 20px; font-size: 14px; font-weight: 600;
  background: var(--cream-card); border: 1px solid var(--line);
  color: var(--ink-soft); cursor: pointer; transition: border-color .15s ease;
}
.feed-cat-btn:hover { border-color: var(--accent); color: var(--ink); }
.feed-cat-btn.feed-cat-btn-active,
.feed-cat-btn.feed-cat-btn-active:hover { background: #1a1916; color: #fff !important; border-color: #1a1916; }
.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(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.dens-airy .product-grid { gap: 28px; }
.dens-snug .product-grid { gap: 12px; }

.scroll-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row-wrap { position: relative; }
.scroll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream-card); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: opacity .15s ease, background .15s ease;
}
@media (min-width: 768px) {
  .scroll-arrow { display: flex; }
}
.scroll-arrow:hover { background: var(--ink); color: #fff; }
.scroll-arrow-left { left: -8px; }
.scroll-arrow-right { right: -8px; }
.scroll-row > .reveal { flex: 0 0 180px; scroll-snap-align: start; }
@media (min-width: 600px) { .scroll-row > .reveal { flex: 0 0 210px; } }
@media (min-width: 960px) { .scroll-row > .reveal { flex: 0 0 240px; } }
.scroll-row .pcard { width: 100%; height: 100%; }
.scroll-row > .reveal { display: flex; }
.scroll-row .pcard-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}

.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: contain; padding: 12%; }
.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; padding-right: 40px; flex: 1; }
.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: 8px 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: 16px;
  align-items: start;
}
@media (max-width: 800px) {
  .detail-hero { grid-template-columns: 1fr; gap: 24px; }
  .detail-img-wrap { margin: 0 auto; width: 50%; max-width: 200px; height: 200px; }
}
.detail-img-wrap {
  position: relative;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 300px;
  overflow: visible;
}
.detail-img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.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, 3.2vw, 42px); line-height: 1.06; 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 { color: var(--accent); border-color: var(--accent); }

.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; margin-top: 0; padding-top: 0; }
.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-scroll-wrap { position: relative; }
.ing-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: none;
}
.ing-scroll::-webkit-scrollbar { display: none; }
.ing-scroll-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
  transition: opacity .2s ease;
}
.ing-scroll-wrap.scrolled-end::after { opacity: 0; }
.ing-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ing-carousel::-webkit-scrollbar { display: none; }
.ing-carousel-page {
  min-width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ing-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.ing-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); border: none; padding: 0;
  cursor: pointer; transition: background .2s ease;
}
.ing-carousel-dot-active { background: var(--ink); }
.ing-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.ing-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.ing-card-main {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 14px 14px 14px;
  background: none; border: none; cursor: pointer; text-align: left;
}
.ing-save-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-faint); padding: 12px 14px;
  border-left: 1px solid var(--line);
  align-self: stretch; display: grid; place-items: center;
  transition: color .15s ease;
}
.ing-save-btn:hover { color: var(--accent); }
.ing-save-btn-on { 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(10n+1) .ing-sym { background: #C05A3C; }
.ing-card:nth-child(10n+2) .ing-sym { background: #5F7A8A; }
.ing-card:nth-child(10n+3) .ing-sym { background: #9A7B5B; }
.ing-card:nth-child(10n+4) .ing-sym { background: #1A1916; }
.ing-card:nth-child(10n+5) .ing-sym { background: #7B6180; }
.ing-card:nth-child(10n+6) .ing-sym { background: #D4944C; }
.ing-card:nth-child(10n+7) .ing-sym { background: #5A7D7C; }
.ing-card:nth-child(10n+8) .ing-sym { background: #8B6F4E; }
.ing-card:nth-child(10n+9) .ing-sym { background: #6B5B7B; }
.ing-card:nth-child(10n+10) .ing-sym { background: #7A7570; }
.ing-body { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; }
.ing-name { font-size: 15px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ing-bar-wrap { height: 4px; background: var(--cream-2); border-radius: 4px; overflow: hidden; width: 60px; flex-shrink: 0; margin-left: auto; }
.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; min-width: 32px; text-align: right; }

/* Review count badge (in hero/accords area) */
.review-count-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 6px 14px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; transition: border-color .15s ease;
}
.review-count-badge:hover { border-color: var(--accent); }

/* Reviews section */
.reviews-section { margin-bottom: 40px; }
.reviews-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.reviews-count {
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-card {
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px;
}
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sage); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
}
.review-name { font-size: 14px; font-weight: 600; display: block; }
.review-date { font-size: 12px; color: var(--ink-faint); }
.review-stars { display: flex; gap: 2px; }
.review-star { font-size: 14px; color: var(--line); }
.review-star-on { color: var(--butter); }
.review-body { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* 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: 8px 0 8px; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* Hide save/bookmark UI (temporarily) */
.save-btn, .act-btn, [class*="save-btn"], [class*="ing-save"] { display: none !important; }
/* Hide ingredient percentage bars and numbers (temporarily) */
.ing-bar-wrap, .ing-pct, .sheet-pct { display: none !important; }

@media (max-width: 600px) {
  .feed-2col { grid-template-columns: 1fr !important; }
  .detail-disclaimer { font-size: 11px !important; }
  .page-tab { padding: 5px 8px !important; font-size: 13px !important; }
  .hdr-search-icon { flex-shrink: 0 !important; }
  .hdr-search-desktop { display: none !important; }
  .hdr-search-icon { display: flex !important; }
}
@media (min-width: 601px) {
  .hdr-search-icon { display: none !important; }
  .hdr-search-desktop { display: flex !important; }
}
.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 { gap: 10px; }
  .dens-airy .product-grid { gap: 16px; }
  .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: 0; }
  .detail-img-wrap { height: 240px; 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-carousel-page { gap: 8px; }
  .ing-card-main { padding: 12px 12px 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 { gap: 8px; }
  .display { font-size: 34px; }
  .daily-name { font-size: 22px; }
  .detail-name { font-size: 26px; }
  .hdr-pages { margin-left: 0; }
  .page-tab { padding: 5px 6px; font-size: 11px; }
  .hdr-tabs { gap: 0 !important; }
  .hdr-catrow { gap: 10px !important; }
  .cat-edit { font-size: 14px !important; }
  .hdr-row { gap: 2px !important; }
}

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

/* ─── Skeleton loader ──────────────────────────────────────────────────────── */
@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@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; }

/* ─── Sources chevron ──────────────────────────────────────────────────────── */
details summary::-webkit-details-marker { display: none; }
details[open] .sources-chevron { transform: rotate(90deg); }

/* ─── Try page ─────────────────────────────────────────────────────────────── */
.try-page { padding-bottom: 120px; }
.try-hero { padding: 32px 0 28px; }
.try-subtitle { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 16px 0 0; max-width: 520px; }
.try-pickers { display: flex; flex-direction: column; gap: 28px; margin: 8px 0 0; }
.try-picker { background: var(--cream-card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.try-picker--green { background: rgba(45,90,61,0.03); border-color: rgba(45,90,61,0.15); }
.try-picker--rose { background: rgba(180,80,70,0.03); border-color: rgba(180,80,70,0.12); }
.try-picker-label { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.try-picker-icon-wrap { font-size: 16px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.try-picker--green .try-picker-icon-wrap { background: rgba(45,90,61,0.1); }
.try-picker--rose .try-picker-icon-wrap { background: rgba(180,80,70,0.08); }
.try-picker-dots { display: flex; gap: 5px; margin-left: auto; align-items: center; }
.try-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background 0.25s, transform 0.25s; }
.try-dot--filled { transform: scale(1.15); }
.try-picker--green .try-dot--filled { background: rgba(45,90,61,0.7); }
.try-picker--rose .try-dot--filled { background: rgba(180,80,70,0.6); }
.try-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 0 8px; background: var(--cream); border-radius: var(--radius-sm); border: 1px solid var(--line); border-left: 3px solid var(--line); transition: transform 0.15s, box-shadow 0.15s; animation: chip-in 0.2s ease-out; }
.try-picker--green .try-chip { border-left-color: rgba(45,90,61,0.35); }
.try-picker--rose .try-chip { border-left-color: rgba(180,80,70,0.3); }
.try-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
@keyframes chip-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.try-chip-img { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--cream-card); }
.try-chip-img img, .try-chip-img .skeleton, .try-chip-img .img-fallback { width: 100%; height: 100%; object-fit: contain; padding: 4%; box-sizing: border-box; }
.try-chip-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.try-chip-brand { font-size: 10px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.try-chip-name { font-family: var(--font-display); font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try-chip-x { background: none; border: none; cursor: pointer; color: var(--ink-faint); padding: 4px; border-radius: 50%; display: flex; align-items: center; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.try-chip-x:hover { background: var(--line); color: var(--ink); }
.try-empty { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 20px; margin: 0 0 10px; text-align: center; }
.try-empty-text { font-size: 13px; color: var(--ink-faint); }
.try-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--cream); border-radius: var(--radius-sm); border: 1px solid var(--line); transition: border-color 0.2s; }
.try-picker--green .try-search:focus-within { border-color: rgba(45,90,61,0.4); }
.try-picker--rose .try-search:focus-within { border-color: rgba(180,80,70,0.35); }
.try-search-input { border: none; background: none; outline: none; font-size: 14px; font-family: var(--font-text); color: var(--ink); width: 100%; }
.try-search-input::placeholder { color: var(--ink-faint); }
.try-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 4px; box-shadow: var(--shadow-card); max-height: 320px; overflow-y: auto; }
.try-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; width: 100%; border: none; background: none; cursor: pointer; text-align: left; }
.try-dropdown-item:hover { background: var(--line); }
.try-dd-img { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--cream-card); }
.try-dd-img img, .try-dd-img .skeleton, .try-dd-img .img-fallback { width: 100%; height: 100%; object-fit: contain; padding: 4%; box-sizing: border-box; }
.try-dd-brand { display: block; font-size: 10px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.try-dd-name { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); margin-top: 1px; }
.try-action { text-align: center; padding: 28px 0 8px; }
.try-action-sticky { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 0 var(--page-pad) env(safe-area-inset-bottom); background: rgba(255,252,247,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.try-action-sticky .try-btn { white-space: nowrap; }
.try-btn { font-family: var(--font-text); font-size: 15px; font-weight: 600; color: #fff; background: var(--accent); border: none; border-radius: var(--radius-pill); padding: 14px 32px; cursor: pointer; transition: opacity 0.15s, box-shadow 0.3s; position: relative; }
.try-btn:not(:disabled) { animation: try-wiggle 3s ease-in-out infinite; }
.try-btn:hover:not(:disabled) { opacity: 0.9; box-shadow: 0 0 24px rgba(45,90,61,0.45); animation: none; }
.try-btn-loading { display: inline-flex; align-items: baseline; }
.try-btn-dots span { display: inline-block; animation: try-dot-fill 1.2s ease-in-out infinite; opacity: 0.3; }
.try-btn-dots span:nth-child(2) { animation-delay: 0.2s; }
.try-btn-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes try-dot-fill { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.try-btn:disabled { background: var(--sage); color: rgba(255,255,255,0.85); cursor: default; animation: none; }
@keyframes try-wiggle {
  0%, 70%, 100% { transform: translateX(0); }
  74% { transform: translateX(-6px); }
  78% { transform: translateX(6px); }
  82% { transform: translateX(-4px); }
  86% { transform: translateX(4px); }
  90% { transform: translateX(-2px); }
  94% { transform: translateX(0); }
}
@keyframes try-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(45,90,61,0.15); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(45,90,61,0.35), 0 0 40px rgba(45,90,61,0.12); transform: scale(1.02); }
}
.try-hint { font-size: 13px; color: var(--ink-faint); margin: 10px 0 0; }
.try-chip--pasted { border-left-color: var(--ink-faint); background: var(--cream); border-style: dashed; border-left-style: solid; }
.try-chip-paste-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: var(--line); }
.try-dropdown--empty { padding: 16px; text-align: center; }
.try-dropdown-more { display: block; width: 100%; padding: 10px; background: none; border: none; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-faint); cursor: pointer; text-align: center; font-family: var(--font-text); }
.try-dropdown-more:hover { color: var(--accent); background: rgba(45,90,61,0.04); }
.try-empty-search-text { font-size: 13px; color: var(--ink-faint); margin: 0 0 10px; }
.try-empty-search-paste { display: block; margin: 10px auto 6px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-pill); padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.try-empty-search-paste:hover { opacity: 0.85; }
.try-search-hint { font-size: 11px; color: var(--ink-faint); margin: 6px 0 0; padding-left: 2px; }
.try-search-hint-link { background: none; border: none; cursor: pointer; font-size: 11px; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px; padding: 0; font-family: inherit; }
.try-search-hint-link:hover { color: var(--ink-soft); }
.try-paste-link { background: none; border: none; cursor: pointer; font-size: 12px; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; padding: 8px 0 0; display: block; text-align: left; transition: color 0.15s; }
.try-paste-link:hover { color: var(--ink-soft); }
.try-paste-area { margin-top: 10px; }
.try-paste-textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; font-family: var(--font-text); color: var(--ink); background: var(--cream); resize: vertical; min-height: 80px; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.try-paste-textarea:focus { border-color: var(--accent); }
.try-paste-textarea::placeholder { color: var(--ink-faint); }
.try-paste-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.try-paste-cancel { background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px 16px; font-size: 12px; font-weight: 500; color: var(--ink-faint); cursor: pointer; }
.try-paste-submit { background: var(--accent); border: none; border-radius: var(--radius-pill); padding: 6px 16px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer; }
.try-paste-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.try-paste-submit--doesnt { background: var(--ink-soft); }
.try-paste-standalone { max-width: 640px; margin: 0 auto 24px; padding: 0 var(--page-pad); text-align: center; }
.try-paste-link--standalone { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-align: center; margin: 0 auto; }
.try-paste-link-icon { font-size: 15px; }
.try-paste-area--standalone { text-align: left; }
.try-paste-confirm { text-align: left; max-width: 640px; margin: 0 auto; }
.try-paste-confirm-heading { font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 12px; text-align: center; }
.try-paste-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.try-paste-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px 10px 5px 12px; font-size: 12px; color: var(--ink); }
.try-paste-chip--unrecognized { background: rgba(192,57,44,0.06); border-color: rgba(192,57,44,0.2); color: var(--ink-soft); }
.try-paste-chip-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try-paste-chip-x { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--ink-faint); padding: 0 2px; line-height: 1; }
.try-paste-chip-x:hover { color: #c0392b; }
.try-paste-confirm-add { display: flex; gap: 6px; margin-bottom: 12px; }
.try-paste-confirm-input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 12px; font-family: var(--font-text); color: var(--ink); background: var(--cream); outline: none; }
.try-paste-confirm-input:focus { border-color: var(--accent); }
.try-paste-confirm-input::placeholder { color: var(--ink-faint); }
.try-paste-confirm-add-btn { background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); width: 32px; font-size: 16px; font-weight: 600; cursor: pointer; }
.try-paste-confirm-add-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.try-chip-input-area { margin-top: 10px; }
.try-chip-input-field { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; min-height: 44px; background: var(--cream); cursor: text; transition: border-color 0.2s; }
.try-chip-input-field:focus-within { border-color: var(--accent); }
.try-chip-input { flex: 1; min-width: 120px; border: none; background: none; outline: none; font-size: 12px; font-family: var(--font-text); color: var(--ink); padding: 2px 0; }
.try-chip-input::placeholder { color: var(--ink-faint); }
.try-chip-input-add { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; border: none; font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.try-product-breakdown { border-top: 1px solid var(--line); }
.try-product-breakdown:first-child { border-top: none; }
.try-product-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; background: none; border: none; cursor: pointer; gap: 12px; text-align: left; }
.try-product-toggle-left { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.try-product-brand { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.try-product-name { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try-product-badge { font-size: 12px; flex-shrink: 0; }
.try-product-toggle-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.try-product-count { font-size: 11px; color: var(--ink-faint); }
.try-product-chevron { font-size: 18px; color: var(--ink-faint); transition: transform 0.2s; display: inline-block; }
.try-product-chevron--open { transform: rotate(90deg); }
.try-product-body { padding: 0 0 16px; }
.try-feedback { text-align: center; padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-card); }
.try-feedback-q { font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 14px; }
.try-feedback-btns { display: flex; gap: 10px; justify-content: center; }
.try-feedback-btn { background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 20px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.try-feedback-btn:hover { border-color: var(--accent); background: rgba(45,90,61,0.04); }
.try-feedback-comment { display: flex; gap: 8px; margin-top: 14px; padding: 0 4px; }
.try-feedback-input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 12px; font-family: var(--font-text); color: var(--ink); background: var(--cream); outline: none; }
.try-feedback-input:focus { border-color: var(--accent); }
.try-feedback-input::placeholder { color: var(--ink-faint); }
.try-feedback-submit { background: var(--accent); color: #fff; border: none; border-radius: var(--radius-pill); padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.try-feedback-skip { background: none; border: none; font-size: 11px; color: var(--ink-faint); cursor: pointer; margin-top: 8px; text-decoration: underline; text-underline-offset: 2px; }
.try-feedback-thanks { text-align: center; font-size: 13px; color: var(--ink-faint); padding: 16px 0; }
.try-error { text-align: center; color: #c0392b; font-size: 14px; padding: 16px 0; }
.try-results { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.try-result-card { background: var(--cream-card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.try-result-card.try-card-avoid { border-left: 4px solid #c0392b; background: rgba(192,57,44,0.03); }
.try-result-card.try-card-avoid .try-result-title { color: #c0392b; }
.try-result-card.try-card-positive { border-left: 4px solid var(--accent); background: rgba(45,90,61,0.03); }
.try-result-card.try-card-positive .try-result-title { color: var(--accent); }
.try-result-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--ink); margin: 0 0 16px; }
.try-result-empty { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.try-result-disclaimer { font-size: 13px; color: var(--ink-faint); line-height: 1.5; margin: -8px 0 16px; }
.try-avoid-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.try-avoid-item:last-child { border-bottom: none; }
.try-avoid-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.try-avoid-head strong { font-family: var(--font-display); font-size: 15px; }
.try-avoid-reason { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.try-conf { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-pill); }
.try-theme-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.try-theme-item:last-child { border-bottom: none; }
.try-theme-name { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.try-theme-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.try-theme-pill { font-size: 12px; padding: 4px 10px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-soft); }
.try-rec-img { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--cream-card); }
.try-rec-img img, .try-rec-img .skeleton, .try-rec-img .img-fallback { width: 100%; height: 100%; object-fit: contain; padding: 6%; box-sizing: border-box; }
.try-rec-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
.try-rec-item:last-child { border-bottom: none; }
.try-rec-item:hover { opacity: 0.7; }
.try-rec-brand { display: block; font-size: 10px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.try-rec-name { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); margin-top: 2px; }
.try-rec-arrow { color: var(--ink-faint); flex-shrink: 0; }
.try-quality { background: var(--cream-card); border-radius: var(--radius-sm); padding: 16px 20px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-faint); line-height: 1.5; }
.try-results-headline { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 3vw, 28px); color: var(--ink); margin: 0 0 6px; line-height: 1.2; }
.try-quality-inline { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin: 0 0 16px; }
.try-nudge { text-align: center; font-size: 13px; color: var(--sage); padding: 12px 0 0; font-style: italic; }
.try-cat-group { margin-bottom: 20px; }
.try-cat-group:last-child { margin-bottom: 0; }
.try-cat-label { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); margin: 0 0 2px; padding: 18px 0 0 2px; border-top: 2px solid var(--line); }
.try-cat-group:first-child .try-cat-label { border-top: none; padding-top: 0; }
.try-cat-sub { font-size: 12px; color: var(--ink-faint); margin: 0 0 14px; padding-left: 2px; }
.try-ing-scroll-wrap { position: relative; }
.try-ing-scroll { display: flex; flex-direction: column; gap: 6px; max-height: 250px; overflow-y: auto; scrollbar-width: none; padding-bottom: 8px; }
.try-ing-scroll::-webkit-scrollbar { display: none; }
.try-ing-scroll-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 56px; background: linear-gradient(to bottom, transparent, var(--cream-card)); pointer-events: none; transition: opacity .2s ease; z-index: 1; }
.try-ing-scroll-wrap.scrolled-end::after { opacity: 0; }
.try-show-more { display: block; width: 100%; padding: 10px 0; margin: 4px 0 12px; background: none; border: 1px dashed var(--line); border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-text); font-size: 13px; color: var(--ink-faint); transition: color .15s, border-color .15s; }
.try-show-more:hover { color: var(--accent); border-color: var(--accent); }
.try-ing-flagged { border-color: rgba(192, 57, 44, 0.3); }
.try-ing-flagged .ing-sym { background: #c0392b !important; }
.try-flag-badge { font-size: 10px; font-weight: 600; color: #c0392b; background: rgba(192, 57, 44, 0.08); padding: 2px 7px; border-radius: var(--radius-pill); letter-spacing: 0.02em; margin-left: 6px; white-space: nowrap; }
.try-flags-callout { margin-top: 24px; padding: 20px; border-radius: var(--radius-sm); border-left: 4px solid #c0392b; background: rgba(192,57,44,0.03); }
.try-flags-title { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); margin: 0 0 12px; }
.try-flags-clear { color: var(--ink-faint); font-size: 13px; }
.try-flags-clear p { margin: 0; }
.try-evidence-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.try-evidence-row:last-child { border-bottom: none; }
.try-evidence-row .ing-card-main { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.try-evidence-row .ing-body { flex: 1; min-width: 0; }
.try-evidence-row .ing-name { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--ink); }
.try-evidence { font-size: 12px; color: var(--ink-faint); line-height: 1.4; margin: 3px 0 0; }
.try-card-nudge { border-left: 4px solid var(--sage); background: rgba(136,160,136,0.06); }
.try-nudge-text { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.try-no-trigger { padding: 4px 0; }
.try-no-trigger-text { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.try-inline-nudge { font-size: 13px; color: var(--ink-faint); line-height: 1.5; margin: 16px 0 0; padding: 12px 16px; background: var(--cream); border-radius: var(--radius-sm); border: 1px dashed var(--line); }
.try-unlock-nudge { margin: 20px 0 0; padding: 16px 20px; background: var(--cream); border-radius: var(--radius-sm); border: 1px dashed var(--accent); }
.try-unlock-nudge strong { font-family: var(--font-display); font-size: 14px; color: var(--accent); display: block; margin-bottom: 4px; }
.try-unlock-nudge p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.try-awareness-section { margin-top: 24px; padding: 20px; border-radius: var(--radius-sm); border-left: 4px solid var(--sage); background: rgba(136,160,136,0.04); }
.try-awareness-title { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); margin: 0 0 4px; }
.try-awareness-sub { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin: 0 0 12px; }
.try-partial-note { font-size: 13px; color: var(--ink-faint); line-height: 1.5; margin: 0 0 8px; font-style: italic; }
.try-result-card.try-card-early { border-left: 4px solid var(--sage); background: rgba(136,160,136,0.03); }
.try-early-banner { font-size: 13px; color: var(--sage); font-weight: 600; line-height: 1.5; margin: 0 0 20px; padding: 10px 14px; background: rgba(136,160,136,0.08); border-radius: var(--radius-sm); }
.try-early-section { margin-bottom: 20px; }
.try-early-section:last-of-type { margin-bottom: 0; }
.try-early-section-title { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); margin: 0 0 2px; }
.try-early-section-title.try-early-positive { color: var(--accent); }
.try-early-section-title.try-early-watch { color: #c0392b; }
.try-early-section-sub { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin: 0 0 10px; }
