:root {
  --green: #0B6B22;
  --green-dark: #08521A;
  --green-soft: #E4F1E7;
  --yellow: #FFD60A;
  --yellow-dark: #E6BE00;
  --gold: #F2C200;
  --cream: #FFF5C9;
  --ink: #111A14;
  --muted: #4E5B53;
  --line: #D9E2DB;
  --surface: #FFFFFF;
  --ground: #F6F8F5;
  --caution: #8A510C;
  --caution-soft: #F7ECDD;
  --neutral-soft: #E8ECE9;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--ground); line-height: 1.5; font-size: 16px; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 36px; padding-bottom: 64px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
h1, h2 { line-height: 1.15; letter-spacing: -0.02em; }
.page h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; color: var(--green); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: none; margin: 24px 0 10px; }
.lede-dark { font-size: 19px; color: var(--ink); }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-yellow { background: var(--yellow); color: var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--green-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--green); color: var(--green); }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px; padding: 14px 32px;
}
body:not(.home) .site-header { position: static; background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.logo img { height: 92px; width: auto; display: block; }
body:not(.home) .logo img { height: 56px; }
.wordmark { font-weight: 800; font-size: 26px; letter-spacing: 0.04em; color: var(--green); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.wordmark::first-letter { color: var(--gold); }
.main-nav { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 14px; min-height: 44px;
  display: inline-flex; align-items: center; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--green); }
.main-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--gold); }
.account { display: flex; align-items: center; gap: 20px; }
.link-strong { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Hero (home) */
.hero {
  --hero: none;
  position: relative; min-height: 480px; display: flex; align-items: center;
  background:
    linear-gradient(90deg, var(--cream) 0%, rgba(255, 249, 220, .92) 30%, rgba(255, 255, 255, 0) 60%),
    var(--hero) right center / cover no-repeat,
    linear-gradient(180deg, #4BA3E8 0%, #A9D6F5 55%, #E8F4FB 100%);
}
.hero-inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 116px 36px 32px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; color: var(--green); line-height: 1.12; }
.hero .accent { color: var(--gold); text-shadow: 0 1px 2px rgba(120, 90, 0, .25); }
.hero .lede { max-width: 420px; color: var(--green); margin: 0 0 18px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 606px; height: 64px; padding: 0 6px 0 12px;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 8px rgba(0,0,0,.18);
}
.hero-search .lead-icon { width: 34px; height: 34px; stroke-width: 2.2; flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 17px; background: transparent; height: 100%; }
.hero-search button {
  width: 56px; height: 52px; border: 0; border-radius: 10px; background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.hero-search button:hover { background: var(--yellow-dark); }
.hero-search button svg { width: 32px; height: 32px; stroke-width: 2.4; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--yellow), 0 3px 8px rgba(0,0,0,.18); }
.hero-search.slim { height: 56px; max-width: 720px; box-shadow: none; }
.hero-search.slim .lead-icon { width: 26px; height: 26px; }
.hero-search.slim button { height: 44px; width: 48px; }
.hero-search.slim button svg { width: 24px; height: 24px; }

/* UpliftBot launcher (every page) */
.bot-launch {
  position: fixed; right: 24px; bottom: 24px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 26px; background: var(--yellow); color: var(--ink);
  font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.22), 0 0 0 3px rgba(255,255,255,.7);
}
.bot-launch svg { width: 26px; height: 26px; stroke-width: 2; }
.bot-launch:hover { background: var(--yellow-dark); color: var(--ink); transform: translateY(-1px); }

/* Home: example questions under the search */
.ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; max-width: 640px; }
.ask-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); }
.ask-icon { width: 20px; height: 20px; }
.suggestion {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px;
  background: #fff; border: 1.5px solid var(--green); color: var(--green); font-weight: 600; font-size: 14px; text-decoration: none;
}
.suggestion:hover { background: var(--green); color: #fff; }
.suggestion.on-hero { box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.btn-ask { background: var(--yellow); color: var(--ink); margin: 18px 0 6px; }
.btn-ask:hover { background: var(--yellow-dark); color: var(--ink); }
.btn-icon { width: 22px; height: 22px; }

/* Chat component (panel + page) */
.chat { display: flex; flex-direction: column; background: var(--surface); min-height: 0; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--green); color: #fff; }
.chat-head a { color: #fff; }
.chat-avatar { width: 40px; height: 40px; border-radius: 20px; background: var(--yellow); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-avatar svg { width: 24px; height: 24px; stroke-width: 2.2; }
.chat-title { flex: 1; min-width: 0; }
.chat-title h2 { margin: 0; font-size: 18px; }
.chat-title p { margin: 0; font-size: 13px; color: #D6EBDC; }
.chat-clear, .chat-close {
  min-height: 40px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: 10px;
  font: inherit; font-size: 13px; font-weight: 600; padding: 0 12px; cursor: pointer;
}
.chat-close { width: 40px; padding: 0; display: flex; align-items: center; justify-content: center; }
.chat-close svg { width: 20px; height: 20px; }
.chat-clear:hover, .chat-close:hover { background: rgba(255,255,255,.15); }
.chat-log { position: relative; flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--ground); }
.msg { max-width: 92%; min-width: 0; }
.msg.bot:not(.intro):not(.typing) { width: 92%; }
.msg p { margin: 0; }
.msg.user { align-self: flex-end; background: var(--green); color: #fff; padding: 10px 14px; border-radius: 16px 16px 4px 16px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); padding: 12px 14px; border-radius: 16px 16px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.msg.bot.partial { border-color: var(--caution); }
.msg.bot.error { border-color: var(--caution); }
.msg.intro { color: var(--ink); }
.bot-source { font-size: 12px; color: var(--muted); }
.retry { align-self: flex-start; min-height: 36px; border: 1.5px solid var(--green); background: #fff; color: var(--green); border-radius: 10px; font: inherit; font-weight: 600; padding: 0 12px; cursor: pointer; }
.bot-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.bot-products a { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.bot-products a:hover { border-color: var(--green); color: var(--ink); }
.bot-products .thumb { width: 44px; height: 44px; }
.bp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bp-name { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bp-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-products .chips { margin-top: 2px; }
.bot-products .chip { font-size: 11.5px; padding: 2px 7px; }
.typing { flex-direction: row !important; gap: 5px !important; padding: 14px 16px !important; }
.typing span { width: 8px; height: 8px; border-radius: 4px; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: .6; } }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; background: var(--ground); }
.chat-suggestions[hidden] { display: none; }
.chat-form { display: flex; gap: 8px; padding: 12px 16px 16px; background: var(--ground); }
.chat-form input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.chat-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.chat-form button { width: 48px; min-height: 48px; border: 0; border-radius: 12px; background: var(--yellow); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-form button:disabled { opacity: .5; cursor: wait; }
.chat-form button svg { width: 22px; height: 22px; }

/* Panel: bottom-right on desktop, full screen on phones */
.bot-panel {
  position: fixed; inset: auto 24px 24px auto; margin: 0; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  width: min(420px, calc(100vw - 48px)); height: min(680px, calc(100dvh - 48px)); box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.bot-panel[open] { display: flex; }
.bot-panel .chat { flex: 1; min-width: 0; width: 100%; }
.bot-panel::backdrop { background: rgba(10, 30, 15, .35); }

/* Full page */
.bot-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.chat-page { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; height: min(720px, calc(100dvh - 180px)); min-height: 480px; }
.bot-aside h1 { margin: 0 0 10px; color: var(--green); font-size: 32px; }
.bot-aside h2 { font-size: 18px; color: var(--green); margin: 22px 0 8px; }

/* Demo language switch */
.lang-switch { position: relative; display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 10px; padding: 3px 4px 3px 8px; }
.lang-switch .flag { width: 24px; height: 12px; margin-right: 4px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-switch button { min-width: 40px; min-height: 36px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--green); color: #fff; }
.lang-note { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; white-space: nowrap; background: var(--ink); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; }

/* Typeahead */
.hero-search { position: relative; }
.typeahead {
  position: absolute; left: -1.5px; right: -1.5px; top: calc(100% + 6px); z-index: 25; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  max-height: min(420px, 60vh); overflow-y: auto;
}
.ta-option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.ta-option[aria-selected="true"], .ta-option:hover { background: var(--green-soft); }
.ta-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: var(--neutral-soft); flex-shrink: 0; }
.ta-text { display: flex; flex-direction: column; min-width: 0; }
.ta-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-title mark { background: var(--cream); color: inherit; font-weight: 800; padding: 0; }
.ta-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-action { font-weight: 700; color: var(--green); border-top: 1px solid var(--line); border-radius: 0; }
.ta-action + .ta-action { border-top: 0; }

/* Where to buy */
.side-col { display: grid; gap: 20px; }
.where-to-buy { background: var(--surface); border: 2px solid var(--yellow); border-radius: 16px; padding: 20px; }
.where-to-buy h2 { margin: 0 0 4px; color: var(--green); font-size: 24px; }
.where-to-buy .muted { margin: 0 0 12px; }
.store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.store-btn {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff;
}
.store-btn:hover { border-color: var(--green); background: #F6FBF7; color: var(--ink); }
.store-name { font-weight: 700; flex: 1; }
.store-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); font-size: 14px; white-space: nowrap; }
.store-go svg { width: 16px; height: 16px; }

/* Team */
.team-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }
.team-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.team-card .avatar { width: 64px; height: 64px; border-radius: 32px; image-rendering: pixelated; flex-shrink: 0; background: var(--green); color: var(--yellow); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.team-card strong { display: block; }
.team-card .role { display: block; font-size: 14px; color: var(--green); font-weight: 600; }
.team-card p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* Values side panel: a tab on the left edge of every page; open on first visit */
.values-panel { position: fixed; left: 0; top: 128px; z-index: 35; display: flex; align-items: flex-start; }
/* Closed: a slim tab under the header, reading top to bottom. Open: the panel, with the tab attached at its top-right. */
.values-panel > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; writing-mode: vertical-rl;
  width: 34px; padding: 14px 0; background: var(--green); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em;
  border-radius: 0 12px 12px 0; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.values-panel > summary::-webkit-details-marker { display: none; }
.values-panel > summary:hover { background: var(--green-dark); }
.values-panel > summary svg { width: 18px; height: 18px; }
.values-panel > summary .count {
  writing-mode: horizontal-tb; min-width: 22px; height: 22px; border-radius: 11px; background: var(--yellow); color: var(--ink);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.values-panel[open] > summary { order: 2; box-shadow: 4px 4px 14px rgba(0,0,0,.18); }
.values-panel-body {
  order: 1; width: min(296px, calc(100vw - 60px)); max-height: calc(100vh - 150px); overflow-y: auto; background: #fff; padding: 12px 12px 14px;
  border: 2px solid var(--green); border-left: 0; border-radius: 0 0 16px 0; box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
/* Compact form inside the panel */
.values-form.in-panel fieldset { margin-bottom: 10px; }
.values-form.in-panel legend { font-size: 17px; margin-bottom: 2px; }
.values-form.in-panel .hint { font-size: 13px; margin-bottom: 8px; }
.values-form.in-panel .values-grid { grid-template-columns: 1fr; gap: 5px; }
.values-form.in-panel .value-item { min-height: 44px; border-radius: 10px; }
.values-form.in-panel .value-item input { left: 10px; width: 18px; height: 18px; }
.values-form.in-panel .value-item label { min-height: 44px; gap: 7px; padding: 5px 4px 5px 34px; }
.values-form.in-panel .value-item .rank { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.values-form.in-panel .vtext strong { font-size: 14.5px; }
.values-form.in-panel .vtext small { font-size: 12px; }
.values-form.in-panel .value-item .up { width: 36px; height: 40px; }
.values-form.in-panel .value-item .up svg { width: 18px; height: 18px; }
.values-form.in-panel .save-values { min-height: 40px; padding: 0 16px; }
.values-panel-body .small { margin: 10px 0 0; }

/* Header lists link */
.lists-link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; font-weight: 700; color: var(--green); text-decoration: none; }
.lists-link svg { width: 22px; height: 22px; }
.lists-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.lists-link .count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* Add to list */
.add-to-list {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; margin-top: 8px; border-radius: 10px;
  border: 1.5px solid var(--green); background: #fff; color: var(--green); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.add-to-list svg { width: 20px; height: 20px; }
.add-to-list:hover { background: var(--green-soft); }
.add-to-list.saved { background: var(--green); color: #fff; }
.add-to-list.compact { position: relative; z-index: 2; width: 40px; height: 40px; min-height: 40px; padding: 0; margin: 0; justify-content: center; flex-shrink: 0; }
.list-pop {
  position: absolute; z-index: 60; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.22); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
}
.pop-head { display: flex; align-items: center; justify-content: space-between; }
.pop-close { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pop-close svg { width: 18px; height: 18px; }
.pop-product { margin: 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-lists { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; }
.pop-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: 8px; cursor: pointer; }
.pop-row:hover { background: var(--green-soft); }
.pop-row input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.pop-name { flex: 1; font-weight: 600; }
.pop-count { font-size: 13px; color: var(--muted); }
.pop-new { display: flex; gap: 8px; }
.pop-new input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.pop-all { font-weight: 600; font-size: 14px; }
.pop-warn { margin: 0; color: var(--caution); font-size: 13px; }

/* Product card: whole card clickable via a stretched link, buttons stay on top */
.product-card { position: relative; }
.pc-link { color: var(--ink); text-decoration: none; }
.pc-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pc-link:focus-visible { outline: none; }
.product-card:focus-within { outline: 3px solid var(--green); outline-offset: 2px; }

/* Lists page */
.lists-head { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.lists-head h1 { margin: 0 0 6px; }
.lists-head p { margin: 0; max-width: 560px; }
.new-list { display: flex; gap: 8px; }
.new-list input { min-height: 44px; min-width: 260px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
[data-lists-app] { display: grid; gap: 18px; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.list-card-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.list-card-head h2 { margin: 0; color: var(--green); font-size: 22px; }
.list-actions { margin-left: auto; display: flex; gap: 6px; }
.link-btn { min-height: 40px; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--green); cursor: pointer; padding: 0 8px; border-radius: 8px; }
.link-btn:hover { background: var(--green-soft); }
.link-btn.danger { color: #A3261B; }
.list-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.li-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.li-text a { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-text a:hover { color: var(--green); text-decoration: underline; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; color: var(--green); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.remove { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: #A3261B; display: flex; align-items: center; justify-content: center; }
.remove:hover { background: #FBE9E7; }
.remove svg { width: 20px; height: 20px; }
.list-export { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.list-note { position: sticky; top: 8px; z-index: 5; margin: 0; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 10px; }

/* Home steps, search sort */
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 14px; background: var(--ground); border-radius: 16px; padding: 18px; }
.steps strong { font-size: 18px; color: var(--green); }
.steps p { margin: 4px 0 0; color: var(--muted); }
.step-num { width: 40px; height: 40px; border-radius: 20px; background: var(--yellow); color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.results-bar p { margin: 0; }
.sort { display: flex; align-items: center; gap: 4px; }
.sort a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 20px; font-weight: 600; text-decoration: none; }
.sort a[aria-current="true"] { background: var(--green); color: #fff; }

/* Values band */
.band { padding: 56px 0; background: var(--surface); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.intro h2 { font-size: 32px; color: var(--green); margin: 0 0 12px; }
.legend-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.legend-list li { display: flex; align-items: center; gap: 10px; }

.values-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.values-form legend { font-size: 24px; font-weight: 800; color: var(--green); padding: 0; margin-bottom: 4px; }
.values-form .hint { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.value-item {
  position: relative; display: flex; align-items: center; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; min-height: 64px;
}
.value-item.on { border-color: var(--green); background: #F6FBF7; }
.value-item input { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.value-item label { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 44px; cursor: pointer; min-height: 64px; }
.value-item .rank {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; background: var(--neutral-soft); color: var(--muted);
}
.value-item.on .rank { background: var(--green-soft); color: var(--green); }
.vtext { display: flex; flex-direction: column; line-height: 1.25; }
.vtext small { color: var(--muted); font-size: 13px; }
.value-item .up { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--green); flex-shrink: 0; border-radius: 8px; }
.value-item .up:hover { background: var(--green-soft); }
.value-item .up svg { width: 20px; height: 20px; }
.scoring-with { color: var(--muted); margin: 14px 0 22px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.product-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none;
}
.product-card:hover { color: var(--ink); border-color: var(--green); box-shadow: 0 2px 10px rgba(11,107,34,.08); }
.product-card.best { border: 2px solid var(--green); }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 12px; font-weight: 800; color: var(--green); letter-spacing: .05em; text-transform: uppercase; }
.thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--neutral-soft); object-fit: contain; flex-shrink: 0; display: block; }
.thumb.xl { width: 128px; height: 128px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.badge {
  min-width: 48px; height: 32px; padding: 0 10px; border-radius: 16px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.badge.good { background: var(--green-soft); color: var(--green); }
.badge.caution { background: var(--caution-soft); color: var(--caution); }
.badge.none { background: var(--neutral-soft); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 10px; }
.chip.good { background: var(--green-soft); color: var(--green); }
.chip.caution { background: var(--caution-soft); color: var(--caution); }

/* Product page */
.crumbs { margin: 0 0 16px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.product-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.product-head h1 { margin: 0 0 4px; }
.product-head p { margin: 0; }
.scorecard { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 16px; }
.scorecard.good { background: var(--green); color: #fff; }
.scorecard.caution { background: var(--caution-soft); color: var(--caution); }
.scorecard.none { background: var(--neutral-soft); color: var(--ink); }
.scorecard p { margin: 0; }
.scorecard .num { font-size: 56px; font-weight: 800; line-height: 1; }
.scorecard .of { font-size: 16px; opacity: .85; }
.scorecard .headline { font-weight: 800; font-size: 19px; }
.scorecard .soft { opacity: .9; }
.breakdown { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.breakdown li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.breakdown li span:last-child { display: flex; flex-direction: column; }
.breakdown small { color: var(--muted); font-size: 14px; }
.status {
  width: 30px; height: 30px; border-radius: 15px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.status.good { background: var(--green-soft); color: var(--green); }
.status.caution { background: var(--caution-soft); color: var(--caution); }
.status.unknown, .status.na { background: var(--neutral-soft); color: var(--muted); }
.alternatives { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.alternatives h2 { margin: 0; color: var(--green); font-size: 24px; }
.alt-list { display: grid; gap: 10px; }
.prose h2 { color: var(--green); font-size: 22px; margin-top: 28px; }

/* Footer */
.site-footer { background: var(--green); color: #fff; }
.site-footer a { color: #fff; }
.contact {
  max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr);
  align-items: center; padding: 44px 24px; font-size: 24px; text-align: center;
}
.contact > * { padding: 6px 16px; text-decoration: none; }
.contact > * + * { border-left: 2px solid rgba(255,255,255,.55); }
.odbl { margin: 0; padding: 12px 24px 18px; text-align: center; font-size: 13px; color: #D6EBDC; border-top: 1px solid rgba(255,255,255,.18); }

/* Small screens */
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 12px 16px; gap: 8px; }
  .site-header .main-nav a { padding: 10px 9px; }
  .site-header .main-nav { order: 3; flex: 0 0 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .account { margin-left: auto; gap: 8px; }
  .lang-switch { padding-left: 6px; }
  .lang-switch .flag { display: none; }
  .logo img { height: 60px; }
  .hero { min-height: 0; }
  .home .site-header { position: relative; background: var(--cream); }
  .hero-inner { padding: 24px 16px 32px; }
  .home .hero { background:
    linear-gradient(180deg, rgba(255,245,201,.95) 0%, rgba(255,249,220,.85) 60%, rgba(255,255,255,.6) 100%),
    var(--hero) center / cover no-repeat, linear-gradient(180deg, #4BA3E8, #E8F4FB); }
  .two-col, .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  /* Phones: a pill at the bottom-left (mirrors Ask UpliftBot); the panel opens above it */
  .values-panel { top: auto; bottom: 16px; left: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .values-panel > summary {
    writing-mode: horizontal-tb; width: auto; min-height: 48px; padding: 0 14px; border-radius: 24px; font-size: 15px;
  }
  .values-panel-body {
    width: calc(100vw - 32px); max-height: calc(100dvh - 96px); border: 2px solid var(--green); border-radius: 16px;
  }
  .lists-link span:not(.count) { display: none; }
  .new-list input { min-width: 0; flex: 1; }
  .new-list { width: 100%; }
  .list-item { flex-wrap: wrap; }
  .values-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; font-size: 18px; padding: 24px 16px; gap: 8px; }
  .contact > * + * { border-left: 0; border-top: 1px solid rgba(255,255,255,.35); padding-top: 12px; }
  .container { padding: 0 16px; }
  .product-head { align-items: flex-start; }
  .thumb.xl { width: 88px; height: 88px; }
  .bot-launch { right: 16px; bottom: 16px; min-height: 48px; padding: 0 16px 0 12px; }
  .bot-panel { inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .bot-layout { grid-template-columns: 1fr; }
  .bot-aside { order: -1; }
  .chat-page { height: 70dvh; }
  .ask-row { gap: 6px; }
}
@media (max-width: 480px) {
  .account .btn { padding: 0 12px; font-size: 14px; }
  .hero-search { height: 56px; }
  .hero-search input { font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
}
