:root {
  /* Warm dark palette, oil, brine, paper, tin */
  --bg: #14110d;
  --surface: #1c1813;
  --card: #25201a;
  --paper: #f4ede0;

  --accent: #d9b07e;
  --accent-glow: #f0d4a8;
  --accent-deep: #8b6914;

  --text: #f1ead8;
  --text-secondary: #a89e8a;
  --muted: #6e6759;
  --link: var(--accent);

  --success: #7fa37a;
  --danger: #c75c4f;
  --border: #3a3329;
  --border-strong: #50473a;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radii */
  --radius: 8px;
  --radius-lg: 12px;

  /* Shadow */
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: clamp(16px, 1.1vw, 19px);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-glow); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--font-display); margin-bottom: 0.4em; letter-spacing: -0.015em; font-feature-settings: 'ss01'; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; color: var(--text); line-height: 1.1; }
h2 { font-size: 1.4rem; color: var(--text); font-weight: 500; line-height: 1.2; }
h3 { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; font-style: normal;
     text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-mono); }
p { margin-bottom: 0.5em; }
hr { border: none; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  display: inline-block;
}

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

.icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  color: currentColor;
}

.country-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  white-space: nowrap;
}
a .country-tag,
a:hover .country-tag { color: inherit; }

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

.main-nav {
  background: rgba(28, 24, 19, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-left, .nav-right { display: flex; align-items: center; gap: var(--space-4); }
.nav-links { display: flex; align-items: center; gap: var(--space-4); }
.nav-left a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 400; transition: color var(--transition); }
.nav-left a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--card); }

@media (min-width: 769px) {
  .nav-toggle { display: none !important; }
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text) !important;
  font-weight: 500;
  font-size: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text) !important;
  letter-spacing: -0.035em;
  margin-right: var(--space-3);
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  line-height: 1;
  font-feature-settings: 'ss01';
}
.brand-mark { color: var(--text); font-weight: 600; }
.brand-mark--italic { color: var(--accent); font-style: italic; font-weight: 500; }
.brand:hover .brand-mark--italic { color: var(--accent-glow); }

.nav-search-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-search-toggle:hover { color: var(--text); background: var(--card); }

.search-form { display: inline; }
.search-form--hidden { display: none; }
.search-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem var(--space-3);
  border-radius: 20px;
  font-size: 0.85rem;
  width: 180px;
  transition: all var(--transition);
}
.search-form input:focus { border-color: var(--accent); outline: none; width: 220px; }

.nav-cta {
  padding: 0.45rem var(--space-4);
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  background: var(--accent);
  color: var(--bg) !important;
  text-decoration: none;
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--accent-glow); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3); }

.nav-random {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.nav-random:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-random:hover .icon { transform: rotate(20deg); }
.nav-random .icon { transition: transform var(--transition); }

.nav-admin { font-size: 0.8rem; opacity: 0.6; }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.nav-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.nav-drawer-body {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  gap: var(--space-2);
  flex: 1;
  overflow-y: auto;
}
.nav-drawer-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text) !important;
  letter-spacing: -0.02em;
  padding: var(--space-3) 0;
  line-height: 1.1;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-drawer-link:hover { color: var(--accent) !important; }
.nav-drawer-link--italic { font-style: italic; color: var(--text-secondary) !important; }
.nav-drawer-link--accent { color: var(--accent) !important; }
.nav-drawer-link--button { padding-left: 0; }
.nav-drawer-rule { margin: var(--space-4) 0; }

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */

main { max-width: 1080px; margin: 0 auto; padding: var(--space-6) var(--space-6); flex: 1; width: 100%; }

/* ═══════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════ */

.flash {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
  font-size: 0.9rem;
  border: 1px solid transparent;
  animation: slideDown 0.3s ease;
}
.flash.notice { background: rgba(63, 185, 80, 0.1); border-color: rgba(63, 185, 80, 0.3); color: var(--success); }
.flash.alert { background: rgba(248, 81, 73, 0.1); border-color: rgba(248, 81, 73, 0.3); color: var(--danger); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   CARD GRID (Browse pages)
   ═══════════════════════════════════════════ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: var(--space-5) 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

.card-body { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.card-body a { color: var(--text); font-weight: 500; }
.card-link { text-decoration: none; color: var(--text); }
.card-link:hover { color: var(--text); }
.card-body .muted { font-size: 0.85rem; }
.card-img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); }
.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card-meta { font-size: 0.78rem; }
.scientific { font-size: 0.78rem; font-style: italic; color: var(--text-secondary); }
.card:hover .tin-svg,
.card:hover .brand-svg,
.card:hover .species-svg {
  transform: translateY(-1px) rotate(-0.5deg);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Placeholder images */
.placeholder-img {
  background: linear-gradient(135deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.5rem;
  overflow: hidden;
}
.placeholder-img--sm { width: 48px; height: 48px; }
.placeholder-img--md { width: 72px; height: 72px; }
.placeholder-img--lg { width: 120px; height: 120px; }

.tin-svg, .brand-svg, .species-svg {
  display: block;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════
   REVIEW CARDS
   ═══════════════════════════════════════════ */

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  border-left: 3px solid var(--accent);
  transition: border-color var(--transition);
}
.review-card:hover { border-left-color: var(--accent-glow); }

/* ═══════════════════════════════════════════
   FEED CARD (rcard), replaces .review-card on feed surfaces
   ═══════════════════════════════════════════ */

.rcard {
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-areas:
    "tile header"
    "tile body"
    "tile footer";
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  transition: border-color var(--transition), border-left-color var(--transition), border-left-width var(--transition), padding-left var(--transition);
  position: relative;
}
.rcard:hover {
  border-color: var(--border-strong);
  border-left: 3px solid var(--accent);
  padding-left: calc(var(--space-5) - 2px);
}

.rcard--quick { row-gap: 0; }
.rcard--quick .rcard__body { display: none; }

/* Hero variant uses the full-width photo header above the regular grid. */
.rcard--photo {
  grid-template-areas:
    "media media"
    "tile header"
    "tile body"
    "tile footer";
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}
.rcard--photo:hover { padding-left: 0; border-left: 1px solid var(--border); }
.rcard--photo > .rcard__tile { margin-left: var(--space-5); }
.rcard--photo > .rcard__header,
.rcard--photo > .rcard__body { padding-right: var(--space-5); }
.rcard--photo > .rcard__footer { padding: 0 var(--space-5); }
.rcard__media {
  grid-area: media;
  display: block;
  margin-bottom: var(--space-3);
  line-height: 0;
}
.rcard__photo {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.rcard__tile {
  grid-area: tile;
  align-self: start;
  display: block;
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}
.rcard__tile:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.rcard__tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rcard__tile .tin-svg { width: 100%; height: 100%; display: block; }

.rcard__avatar { line-height: 0; display: inline-flex; align-items: center; }
.rcard__header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
}
.rcard__byline {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-width: 0;
}
.rcard__user {
  color: var(--text) !important;
  font-weight: 500;
  text-decoration: none;
}
.rcard__user:hover { color: var(--accent) !important; }
.rcard__sep { color: var(--muted); }
.rcard__time { font-size: 0.75rem; color: var(--muted); }
.rcard__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--accent);
  font-size: 0.95rem;
  white-space: nowrap;
}
.rcard__rating .icon { color: var(--accent); }

.rcard__body { grid-area: body; min-width: 0; }
.rcard__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text) !important;
  margin: 0.1rem 0 var(--space-2);
}
.rcard__title:hover { color: var(--accent) !important; }
.rcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.rcard__meta-link { color: var(--text-secondary) !important; }
.rcard__meta-link:hover { color: var(--accent) !important; }
.rcard__vintage { font-size: 0.78rem; color: var(--text-secondary); }
.rcard__excerpt {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: var(--space-2);
}
.rcard__tags { margin-top: var(--space-2); }

.rcard__footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--border);
}
.rcard__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Hero variant, first card in popular row, more breathing room */
.rcard--hero {
  background: linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  padding: var(--space-5) var(--space-6);
}
.rcard--hero .rcard__title {
  font-size: 1.5rem;
}

@media (max-width: 480px) {
  .rcard {
    grid-template-columns: 64px 1fr;
    padding: var(--space-3) var(--space-4);
    column-gap: var(--space-3);
  }
  .rcard__tile { width: 64px; height: 64px; }
  .rcard__title { font-size: 1.05rem; }
  .rcard--hero .rcard__title { font-size: 1.25rem; }
  .rcard--hero { padding: var(--space-4); }
}

.product, .brand, .species, .list {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  transition: all var(--transition);
}
.product:hover, .brand:hover, .species:hover, .list:hover { border-color: var(--accent); }
.product a, .brand a, .species a, .list a { color: var(--text); }

/* ═══════════════════════════════════════════
   RATING & BADGES
   ═══════════════════════════════════════════ */

.rating {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.muted { color: var(--text-secondary); font-size: 0.95em; }

.badge-unverified {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
  padding: 0.15rem var(--space-2);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */

form div { margin-bottom: var(--space-3); }
label { display: block; margin-bottom: 0.35rem; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], textarea, select {
  width: 100%;
  padding: 0.6rem var(--space-3);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="number"]:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}
textarea { resize: vertical; min-height: 80px; }
select { appearance: auto; }

input[type="submit"], button, .btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
input[type="submit"]:hover, button:hover, .btn:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}
.btn-primary { background: var(--accent); color: var(--bg); text-decoration: none; }
.btn-primary:hover { background: var(--accent-glow); color: var(--bg); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(212, 165, 116, 0.05); transform: none; box-shadow: none; }

.btn-sm { font-size: 0.8rem; padding: 0.3rem 0.6rem; }

.btn-google {
  background: #4285f4;
  color: white;
  width: 100%;
  padding: var(--space-3);
  font-size: 1rem;
  justify-content: center;
}

.auth-page { max-width: 400px; margin: 3rem auto; }
.auth-form { margin-bottom: var(--space-4); }
.auth-actions { display: flex; gap: var(--space-2); }
.auth-actions button { flex: 1; justify-content: center; }

/* ═══════════════════════════════════════════
   PRODUCT DETAIL
   ═══════════════════════════════════════════ */

.product-detail { }

.product-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
@media (max-width: 768px) {
  .product-hero { grid-template-columns: 1fr; }
}

.product-cover {
  position: sticky;
  top: calc(var(--nav-height, 60px) + var(--space-4));
  align-self: start;
}
.cover-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.cover-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-style: italic;
}
.cover-generated {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.cover-generated svg { width: 100%; height: 100%; max-width: 320px; max-height: 320px; }
.cover-thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-1);
}
.cover-thumbs .thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--surface);
  padding: 0;
  transition: border-color 0.15s ease;
}
.cover-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-thumbs .thumb.active,
.cover-thumbs .thumb:hover {
  border-color: var(--accent);
}
.hero-attribution { font-size: 0.8rem; margin-top: var(--space-2); }

.product-info h1 { margin-bottom: var(--space-2); }
.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.product-meta a { color: var(--text-secondary); }
.product-meta a:hover { color: var(--accent); }
.meta-sep { color: var(--border); margin: 0 var(--space-1); }

/* Product actions */
.product-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: 1.25rem 0; }

/* ═══════════════════════════════════════════
   RATING HISTOGRAM
   ═══════════════════════════════════════════ */

.rating-histogram {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}
.rating-histogram h3 { margin-bottom: var(--space-3); }
.histogram-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.histogram-label { width: 3rem; text-align: right; font-size: 0.85rem; color: var(--text-secondary); }
.histogram-bar-bg { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.histogram-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 4px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.histogram-count { width: 2rem; font-size: 0.8rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   TABLES (admin)
   ═══════════════════════════════════════════ */

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.6rem var(--space-3); text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }

/* ═══════════════════════════════════════════
   ADS
   ═══════════════════════════════════════════ */

.ad-slot {
  margin: var(--space-5) 0;
  min-height: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   LIKES
   ═══════════════════════════════════════════ */

.like-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 1.1em;
  padding: var(--space-1) 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform var(--transition);
}
.like-button:hover { transform: scale(1.15); background: none; box-shadow: none; }
.like-button.disabled { cursor: default; opacity: 0.4; }
.like-count { color: var(--text-secondary); font-size: 0.85em; }

/* ═══════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════ */

.notification-bell { position: relative; display: inline-flex; align-items: center; }
.notification-bell a { text-decoration: none; color: var(--text-secondary); display: inline-flex; align-items: center; padding: 0.35rem; border-radius: var(--radius); transition: all var(--transition); }
.notification-bell a:hover { color: var(--text); background: var(--card); }
.notification-bell .badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--danger); color: var(--paper);
  font-family: var(--font-mono); font-size: 0.6rem; padding: 0.05rem 0.32rem;
  border-radius: 999px; min-width: 0.95rem; text-align: center; line-height: 1.3;
  font-weight: 600; border: 2px solid var(--surface);
}
.notification-item { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); transition: background var(--transition); }
.notification-item:hover { background: var(--card); }
.notification-item.unread { border-left: 3px solid var(--accent); }

.notif-list {
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.notif {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.notif--unread {
  background: linear-gradient(90deg, rgba(217, 176, 126, 0.04) 0%, transparent 100%);
}
.notif--unread::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: -10px;
  margin-top: 0.55em;
}
.notif__avatars {
  display: flex;
  align-items: center;
}
.notif__avatar {
  display: inline-block;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  line-height: 0;
}
.notif__avatar:first-child { margin-left: 0; }
.notif__avatar--more {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  border: 2px solid var(--bg);
}
.notif__body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.notif__line { margin: 0; color: var(--text); font-size: 0.95rem; }
.notif__actor { color: var(--text) !important; font-weight: 500; }
.notif__actor:hover { color: var(--accent) !important; }
.notif__target { color: var(--text) !important; }
.notif__target:hover { color: var(--accent) !important; }
.notif__time { color: var(--muted); font-size: 0.7rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   USER STATS
   ═══════════════════════════════════════════ */

.user-stats { background: var(--surface); border: 1px solid var(--border); padding: 1.25rem; border-radius: var(--radius-lg); margin: var(--space-5) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-4); }
.stat { text-align: center; }

/* ═══════════════════════════════════════════
   PROFILE HERO
   ═══════════════════════════════════════════ */
.profile-hero {
  margin: var(--space-3) 0 var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.profile-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.profile-hero__identity {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.profile-hero__name {
  margin: 0 0 0.2em;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
}
.profile-hero__since {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.profile-hero__member {
  color: var(--accent);
  border: 1px solid var(--accent-deep);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  letter-spacing: 0.14em;
}
.profile-hero__bio {
  margin: 0 0 var(--space-4);
  color: var(--text);
  max-width: 56ch;
  line-height: 1.55;
}

.signature-tin {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-4);
  align-items: center;
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}
.signature-tin:hover { border-color: var(--accent-glow); transform: translateY(-1px); }
.signature-tin__art { display: flex; align-items: center; justify-content: center; }
.signature-tin__art svg, .signature-tin__art img {
  width: 100%; max-width: 96px; height: auto; aspect-ratio: 1; border-radius: 2px;
}
.signature-tin__body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.signature-tin__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.signature-tin__eyebrow .rating { color: var(--text-secondary); }
.signature-tin__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--text);
}
.signature-tin:hover .signature-tin__name { color: var(--accent-glow); }
.signature-tin__quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}
.signature-tin__unpin { margin: 0 0 var(--space-4); font-size: 0.75rem; }

.rcard__pin {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 6px;
}
.rcard__pin:hover { color: var(--accent); }
.rcard__pinned {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 4px 6px;
}

@media (max-width: 480px) {
  .signature-tin { grid-template-columns: 64px 1fr; gap: var(--space-3); padding: var(--space-3); }
  .signature-tin__art svg, .signature-tin__art img { max-width: 64px; }
  .signature-tin__name { font-size: 1.05rem; }
}

.profile-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: 0 0 var(--space-4);
  padding: 0;
}
.phs { display: flex; flex-direction: column; gap: 0.2rem; }
.phs__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}
.phs__value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  letter-spacing: -0.02em;
}
.phs__value .icon { color: var(--accent); }

.profile-hero__tops {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.phtop { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.phtop__items { color: var(--text); font-size: 0.92rem; }
.phtop__item { white-space: nowrap; }

@media (max-width: 480px) {
  .profile-hero__stats { gap: var(--space-4); }
  .phs__value { font-size: 1.25rem; }
  .profile-hero__top { flex-direction: column; }
}
.stat-number { display: block; font-family: var(--font-mono); font-size: 1.65rem; font-weight: 500; color: var(--text); font-feature-settings: 'tnum'; letter-spacing: -0.02em; }
.stat-label { color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; }
.stats-list { padding-left: 1.25rem; margin-bottom: var(--space-2); }
.stats-list li { margin-bottom: var(--space-1); color: var(--text-secondary); }

/* ═══════════════════════════════════════════
   FEED TABS
   ═══════════════════════════════════════════ */

.feed-tabs {
  display: flex;
  gap: var(--space-5);
  margin: var(--space-3) 0 var(--space-5);
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: var(--space-3) 0;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition);
  position: relative;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

@media (max-width: 480px) {
  .tab { font-size: 1.2rem; }
  .feed-tabs { gap: var(--space-4); }
}

/* ═══════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════ */

.comments-section { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.comment { margin-bottom: 0.6rem; padding: var(--space-2) 0; }
.comment-replies { margin-left: var(--space-5); border-left: 2px solid var(--border); padding-left: var(--space-3); }
.comment-actions { display: flex; gap: var(--space-3); font-size: 0.9em; }
.comment-actions a { color: var(--muted); }
.comment-actions a:hover { color: var(--accent); }
.comment-form textarea { margin-bottom: 0.35rem; min-height: 60px; }
.reply-form textarea { margin-bottom: var(--space-1); }
.hidden { display: none; }

/* ═══════════════════════════════════════════
   SIGN-IN PROMPT
   ═══════════════════════════════════════════ */

.sign-in-prompt {
  text-align: center;
  padding: 3rem var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════
   ERRORS & FOOTER
   ═══════════════════════════════════════════ */

.errors { background: rgba(248, 81, 73, 0.1); border: 1px solid rgba(248, 81, 73, 0.3); padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-4); color: var(--danger); }

.liked-by {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-2);
}
.liked-by__avatar {
  display: inline-block;
  margin-left: -6px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  line-height: 0;
  overflow: hidden;
}
.liked-by__avatar:first-child { margin-left: 0; }

.pairings { margin: var(--space-4) 0 var(--space-2); }
.pairings .eyebrow { display: block; margin-bottom: var(--space-2); }
.pairings__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pairing-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.pairing-chip:hover { border-color: var(--accent); color: var(--accent); }
.pairing-chip__count { color: var(--muted); font-size: 0.75rem; }

footer, .site-footer {
  text-align: center;
  padding: var(--space-6) var(--space-5);
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
footer a, .site-footer a { color: var(--text-secondary); }
.site-footer__strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  opacity: 0.55;
}
.site-footer__strip .footer-tin { flex-shrink: 0; }
.site-footer__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 auto var(--space-4);
  max-width: 520px;
}
.site-footer__legal {
  font-size: 0.82rem;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   AVATARS
   ═══════════════════════════════════════════ */

.avatar { border-radius: 50%; vertical-align: middle; object-fit: cover; border: 2px solid var(--border); }
.avatar-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; vertical-align: middle; border: 2px solid var(--border);
  overflow: hidden; padding: 0; background: transparent;
}
.avatar-placeholder .avatar-svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.avatar-upload { margin: var(--space-2) 0; }

/* Review header */
.review-header { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.review-actions-row { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }

/* Review photos */
.review-photos { margin: var(--space-3) 0; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.review-photo { max-width: 100%; border-radius: var(--radius); max-height: 300px; object-fit: cover; }
.user-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: var(--space-2); margin: var(--space-4) 0; }
.user-photo-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* ═══════════════════════════════════════════
   TAGS
   ═══════════════════════════════════════════ */

.tag-pill {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px;
  background: rgba(121, 192, 255, 0.1); color: var(--link); font-size: 0.75rem;
  text-decoration: none; margin: 0.1rem 0.15rem; border: 1px solid rgba(121, 192, 255, 0.2);
  transition: all var(--transition);
}
.tag-pill:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.review-tags { margin-top: var(--space-2); }

/* ═══════════════════════════════════════════
   SHARE BUTTONS
   ═══════════════════════════════════════════ */

.share-buttons { display: flex; gap: var(--space-2); margin: var(--space-4) 0; }
.share-buttons-inline { display: inline-flex; gap: var(--space-1); }
.btn-share, .btn-share-sm {
  background: var(--card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-share:hover, .btn-share-sm:hover { border-color: var(--accent); color: var(--accent); background: rgba(212, 165, 116, 0.05); }
.btn-share-sm { padding: 0.2rem var(--space-2); font-size: 0.75rem; }

/* ═══════════════════════════════════════════
   SIMILAR TINS
   ═══════════════════════════════════════════ */

.similar-products { margin-bottom: var(--space-4); }
.similar-thumb { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; vertical-align: middle; margin-right: var(--space-2); border: 1px solid var(--border); }

/* Product thumbnail in feed */
.review-card-thumb { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; margin-right: var(--space-3); flex-shrink: 0; border: 1px solid var(--border); }
.review-card-content { display: flex; align-items: flex-start; }

/* ═══════════════════════════════════════════
   DIARY
   ═══════════════════════════════════════════ */

.diary-entry { background: var(--surface); border: 1px solid var(--border); padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-2); }
.diary-date { color: var(--text-secondary); font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.diary-date:first-child { margin-top: 0; }

/* ═══════════════════════════════════════════
   ACTIVITY FEED
   ═══════════════════════════════════════════ */

.activity-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  transition: border-color var(--transition);
}
.activity-item:hover { border-color: var(--border-strong); }
.activity-avatar { line-height: 0; }
.activity-content { flex: 1; min-width: 0; }
.activity-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.activity-user {
  color: var(--text) !important;
  font-weight: 500;
}
.activity-user:hover { color: var(--accent) !important; }
.activity-target { color: var(--text) !important; }
.activity-target:hover { color: var(--accent) !important; }
.activity-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: var(--space-2);
  line-height: 1.55;
}
.activity-time { color: var(--muted); font-size: 0.7rem; margin-top: var(--space-2); letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════
   ENTITY PAGES (brand, species, tin specimen)
   ═══════════════════════════════════════════ */

.entity-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  margin: var(--space-3) 0 var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.entity-hero__art {
  border-radius: var(--radius);
  overflow: hidden;
}
.entity-hero__body { min-width: 0; }
.entity-hero__name {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: var(--space-1) 0 var(--space-2);
  line-height: 1.05;
}
.entity-hero__scientific {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.entity-meta {
  display: grid;
  grid-template-columns: minmax(80px, max-content) 1fr;
  column-gap: var(--space-5);
  row-gap: var(--space-2);
  margin: 0;
  padding: 0;
}
.entity-meta__row { display: contents; }
.entity-meta dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  align-self: baseline;
}
.entity-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-wrap: wrap;
}
.entity-meta dd a { color: var(--text); }
.entity-meta dd a:hover { color: var(--accent); }

.entity-section { margin: var(--space-6) 0; }
.entity-section .eyebrow { display: block; margin-bottom: var(--space-3); }
.entity-description p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 60ch;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}
.signature-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition);
}
.signature-card:hover { border-color: var(--border-strong); }
.signature-card__art {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.year-recap { max-width: 46rem; margin: 0 auto; }
.year-recap__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: var(--space-3); margin: var(--space-5) 0; }
.year-recap__stat { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); text-align: center; }
.year-recap__stat strong { display: block; font-family: var(--font-display); font-size: 2rem; margin-top: 0.2rem; }
.year-recap__lines { margin-bottom: var(--space-5); }
.year-recap__card img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); }
.year-recap__actions { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-4); flex-wrap: wrap; }
.rating-queue { max-width: 34rem; margin: 0 auto; text-align: center; }
.rating-queue__name { font-size: 1.7rem; margin: var(--space-2) 0 0; }
.rating-queue__art { margin: var(--space-4) 0; display: flex; justify-content: center; }
.rating-queue__art img { width: 140px; height: 140px; object-fit: cover; border-radius: var(--radius); }
.rating-queue__note { margin: 0 0 var(--space-4); font-style: italic; color: var(--text-muted, #a08f7a); }
.rating-queue__actions { display: flex; justify-content: center; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.rating-queue .star-rating-input { justify-content: center; }
.auth-page { max-width: 24rem; margin: 0 auto; }
.auth-page__intro { margin-bottom: var(--space-5); }
.auth-page__note { margin-top: var(--space-3); font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] { width: 100%; }
.auth-form__submit { width: 100%; }
.form-hint { margin: 0.3rem 0 0; font-size: 0.8rem; }
.form-error {
  border: 1px solid var(--accent);
  border-left-width: 3px;
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--accent);
}
.follow-picker { max-width: 44rem; margin: 0 auto; }
.follow-picker__group { border: 0; padding: 0; margin: var(--space-5) 0 0; }
.follow-picker__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.follow-picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  background: var(--surface);
}
.follow-picker__chip:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.follow-picker__chip input { accent-color: var(--accent); }
.follow-picker__actions { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.shopping-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.shopping-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: space-between;
  flex-wrap: wrap;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.shopping-item__link { display: flex; align-items: center; gap: var(--space-3); min-width: 0; flex: 1 1 16rem; text-decoration: none; }
.shopping-item__link svg { width: 48px; height: 48px; flex-shrink: 0; }
.shopping-item__art { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.shopping-item__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.shopping-item__name { font-family: var(--font-display); }
.shopping-item__actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
@media (max-width: 640px) {
  .shopping-item { align-items: flex-start; }
  .shopping-item__actions { width: 100%; justify-content: flex-end; }
}
.just-posted__award {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  color: var(--accent);
  font-size: 0.95rem;
}
.just-posted__award svg { width: 14px; height: 14px; }
.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--accent);
}
.card-rating svg { width: 11px; height: 11px; }
.signature-card > svg { width: 64px; height: 64px; }
.signature-card__body svg { width: 11px; height: 11px; }
.signature-card__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.signature-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.2;
}

.country-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.country-breakdown__row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  align-items: center;
  gap: var(--space-3);
}
.country-breakdown__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-align: right;
}
.country-breakdown__bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}
.country-breakdown__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.country-breakdown__count {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .entity-hero { grid-template-columns: 1fr; gap: var(--space-3); }
  .entity-hero__art svg { width: 96px !important; height: 96px !important; }
  .entity-meta { grid-template-columns: 1fr; row-gap: var(--space-3); }
  .entity-meta dt { margin-bottom: -0.5em; }
}

/* ═══════════════════════════════════════════
   TIN SPECIMEN CARD
   ═══════════════════════════════════════════ */

.specimen { margin: 0; }
.specimen__head {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-6);
  margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-7) var(--space-6) var(--space-6);
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: var(--surface);
  background-image:
    radial-gradient(rgba(244, 237, 224, 0.022) 1px, transparent 1px),
    radial-gradient(rgba(244, 237, 224, 0.015) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}
@media (max-width: 768px) {
  .specimen__head {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-4) var(--space-4);
  }
}

/* Catalog strip, herbarium label across the top */
.specimen__catalog {
  position: absolute;
  top: 0;
  left: var(--space-5);
  right: var(--space-5);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px var(--space-3);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: fit-content;
  max-width: calc(100% - var(--space-7));
}
.specimen__catalog-no { color: var(--accent); }
.specimen__catalog-sep { color: var(--muted); }

/* Hairline corner registration marks */
.specimen__corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.55;
}
.specimen__corner::before,
.specimen__corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.specimen__corner::before { width: 10px; height: 1px; top: 0; }
.specimen__corner::after  { width: 1px; height: 10px; left: 0; }
.specimen__corner--tl { top: 6px;    left: 6px;    }
.specimen__corner--tr { top: 6px;    right: 6px;   transform: scaleX(-1); }
.specimen__corner--bl { bottom: 6px; left: 6px;    transform: scaleY(-1); }
.specimen__corner--br { bottom: 6px; right: 6px;   transform: scale(-1, -1); }
@media (max-width: 768px) {
  .specimen__catalog { left: var(--space-3); right: var(--space-3); font-size: 0.6rem; letter-spacing: 0.14em; }
}
.specimen__art {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-3));
  align-self: start;
}
.specimen__art svg, .specimen__art .cover-main { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; }
.specimen__body { min-width: 0; }
.specimen__name {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin: var(--space-1) 0 var(--space-4);
  line-height: 1.05;
}
.specimen__meta { margin-bottom: var(--space-4); }

.specimen__insights {
  list-style: none;
  padding: var(--space-3) 0;
  margin: var(--space-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.specimen__insights li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.specimen__insights .eyebrow { min-width: 130px; }

.specimen__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.specimen__signin { color: var(--text-secondary); margin: var(--space-4) 0; }

.specimen__related-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin: var(--space-4) 0 var(--space-2);
}

/* Field notes (reviews on specimen card) */
.fnote {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.fnote:last-child { border-bottom: none; }
.fnote__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.fnote__avatar { line-height: 0; }
.fnote__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  min-width: 0;
}
.fnote__user {
  color: var(--text) !important;
  font-weight: 500;
}
.fnote__user:hover { color: var(--accent) !important; }
.fnote__time { color: var(--muted); font-size: 0.72rem; }
.fnote__vintage {
  font-size: 0.7rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.fnote__rating { font-size: 1rem; }
.fnote__body {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-3);
  max-width: 60ch;
}
.fnote__paired {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
  color: var(--text);
}
.fnote__footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  font-size: 0.85rem;
}
.fnote__owner-actions {
  margin-left: auto;
  display: flex;
  gap: var(--space-3);
  font-size: 0.78rem;
}
.fnote__owner-actions a { color: var(--text-secondary); }
.fnote__owner-actions a:hover { color: var(--accent); }

/* Tertiary button (text-with-icon) */
.btn-tertiary {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-2) 0;
  font-size: 0.92rem;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  transition: color var(--transition);
}
.btn-tertiary:hover {
  color: var(--accent);
  background: none;
  transform: none;
  box-shadow: none;
}
.btn-tertiary form, .btn-tertiary { display: inline-flex; }

/* Comment form (collapsible) */
.comment-form { margin-top: var(--space-2); }
.comment-form textarea {
  resize: none;
  min-height: 0;
  transition: min-height var(--transition);
}
.comment-form__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* Vitals strip */
.vitals {
  margin: var(--space-2) 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(180deg, transparent 0%, var(--surface) 100%);
  border-left: 2px solid var(--accent-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.vitals-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.vitals-row + .vitals-row { margin-top: var(--space-2); }
.vitals-line { color: var(--text); font-size: 0.95rem; }
.vitals-row--meta { gap: var(--space-2); }
.vitals-pill {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}
.vitals-pill .mono { color: var(--text); letter-spacing: 0.04em; }

/* Feed sections */
.feed-section { margin: var(--space-5) 0; }
.feed-section .eyebrow { display: block; margin-bottom: var(--space-3); }
.feed-popular {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.feed-popular::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--border);
  margin-top: var(--space-3);
}

.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.empty-state p { margin-bottom: var(--space-4); }
.empty-state p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   PROFILE TABS
   ═══════════════════════════════════════════ */

.profile-tabs { display: flex; gap: var(--space-1); margin: 1.25rem 0; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.profile-tab {
  padding: var(--space-2) 0.9rem;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
.profile-tab:hover { color: var(--text); text-decoration: none; }
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Section headers */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); }

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */

.pagination { display: flex; justify-content: space-between; margin: var(--space-6) 0; gap: var(--space-4); }

/* Browse controls (legacy + new chip layout) */
.browse-controls {
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.browse-search {
  flex: 1;
  min-width: 140px;
  padding: 0.55rem var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.browse-search:focus { border-color: var(--accent); outline: none; }
.browse-controls select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.55rem 0.85rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color var(--transition);
}
.browse-controls select:focus { border-color: var(--accent); outline: none; }
.loading-indicator { text-align: center; padding: var(--space-4); }

.browse-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: var(--space-3) 0 var(--space-4);
  gap: var(--space-3);
}
.browse-header h1 { margin: 0; }

.browse {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.browse__search {
  position: relative;
  display: flex;
  align-items: center;
}
.browse__search-icon {
  position: absolute;
  left: var(--space-3);
  color: var(--text-secondary);
  pointer-events: none;
}
.browse__search input.browse__search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.browse__search input.browse__search-input:focus { border-color: var(--accent); outline: none; box-shadow: none; }
.browse__search input.browse__search-input::placeholder { color: var(--muted); }

.browse__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.browse__row--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x proximity;
  scroll-padding-left: 80px;
  scrollbar-width: none;
}
.browse__row--scroll::-webkit-scrollbar { display: none; }
.browse__row-label {
  flex-shrink: 0;
  margin-right: var(--space-2);
  min-width: 60px;
  position: sticky;
  left: 0;
  background: var(--bg);
  padding-right: var(--space-2);
  z-index: 1;
}

.chip-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.15rem;
}
.chip-group .chip { border: none; background: transparent; padding: 0.4rem 0.85rem; }
.chip-group .chip.chip--active { background: var(--card); color: var(--accent); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
  scroll-snap-align: start;
  flex-shrink: 0;
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
  transform: none;
  box-shadow: none;
}
.chip--active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(217, 176, 126, 0.08);
}
.chip__count {
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 0.1em;
}
.chip--active .chip__count { color: var(--accent); }

/* Prose (static text pages) */
.prose { max-width: 700px; line-height: 1.75; font-size: 1.05rem; }
.prose h2 { margin-top: var(--space-6); margin-bottom: var(--space-2); font-size: 1.2rem; }
.prose p { color: var(--text-secondary); margin-bottom: var(--space-4); }

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.modal-visible { display: flex; }

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 560px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}
.modal-close:hover { color: var(--text); background: none; transform: none; box-shadow: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════
   STAR RATING INPUT
   ═══════════════════════════════════════════ */

.star-rating-input { display: flex; gap: 0.1rem; align-items: center; }
.star-rating-input input { display: none; }
.star-label {
  font-size: 1.5rem;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.1s ease;
  line-height: 1;
  padding: 0.2rem;
  user-select: none;
}
.star-label:hover { color: var(--accent-glow); transform: scale(1.15); }
.star-label.selected, .star-label.highlighted { color: var(--accent); }

/* ═══════════════════════════════════════════
   EATEN WITH OPTIONS
   ═══════════════════════════════════════════ */

.eaten-with-options { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: var(--space-1); }
.eaten-option { font-size: 0.8rem; padding: 0.3rem 0.6rem; border-radius: 16px; }
.eaten-with-input { display: none; margin-top: var(--space-2); width: 100%; }
.eaten-with-input--visible { display: block; }

/* ═══════════════════════════════════════════
   FORM HELPERS
   ═══════════════════════════════════════════ */

.form-group { margin-bottom: 1.25rem; }
.form-row { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.form-select { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: var(--space-2) var(--space-3); border-radius: var(--radius); font-family: var(--font-body); }
.file-label { cursor: pointer; display: inline-flex; align-items: center; }
.file-input { display: none; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--text-secondary); }
.review-form { margin-top: var(--space-2); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .main-nav { padding: 0 var(--space-4); height: var(--nav-height); }
  .nav-links { display: none; }
  .nav-desktop-only { display: none !important; }
  .nav-toggle { display: inline-flex; }
  main { padding: var(--space-5) var(--space-4); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-content { padding: var(--space-5); width: 95%; }
}

@media (max-width: 480px) {
  .nav-cta { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
}

@media (min-width: 1400px) {
  main { max-width: 1200px; padding: 2.5rem var(--space-6); }
  .product-hero { grid-template-columns: 380px 1fr; }
}

/* ═══════════════════════════════════════════
   PR3 ADDITIONS
   ═══════════════════════════════════════════ */

/* Wordmark glyph, squat rectangular tin with peel-back lid on hover */
.brand-glyph {
  color: var(--accent);
  flex-shrink: 0;
  margin-right: 0.4em;
  align-self: center;
  overflow: visible;
}
.brand-glyph__lid {
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  transform-box: fill-box;
}
.brand-glyph__fish {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 0.08s,
              opacity 0.2s ease 0.12s;
}
.brand:hover .brand-glyph__lid {
  transform: rotate(-28deg) translate(-1px, -2px);
}
.brand:hover .brand-glyph__fish {
  opacity: 1;
  transform: rotate(-48deg) translate(0, -1px);
}

/* Combobox */
.combobox { position: relative; }
.combobox__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.combobox__input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(217, 176, 126, 0.1); }
.combobox__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
}
.combobox__option {
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  color: var(--text);
}
.combobox__option:hover,
.combobox__option--active { background: var(--card); color: var(--accent); }
.combobox__hint {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* File drop label */
.file-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-4);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}
.file-drop:hover { border-color: var(--accent); background: var(--surface); }
.file-drop__label { color: var(--text-secondary); font-size: 0.92rem; }
.file-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Form intro */
.form-intro { max-width: 56ch; margin-bottom: var(--space-5); }
.tin-form { max-width: 600px; }

/* Sign in restyle */
.auth-page__intro { margin: -0.5em 0 var(--space-5); max-width: 36ch; }
.auth-divider {
  display: flex;
  align-items: center;
  margin: var(--space-5) 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { padding: 0 var(--space-3); }
.btn-google {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
  width: 100%;
  padding: var(--space-3);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all var(--transition);
}
.btn-google:hover { border-color: var(--accent); background: var(--surface); transform: none; box-shadow: none; }
.btn-google svg { flex-shrink: 0; }

/* Feed scroller (popular) */
.feed-scroller {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-2) 0 var(--space-3);
  margin: var(--space-3) calc(var(--space-5) * -1) 0;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
  scrollbar-width: none;
}
.feed-scroller::-webkit-scrollbar { display: none; }
.feed-scroller__item {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
.feed-scroller__item .rcard { margin-bottom: 0; height: 100%; }
@media (max-width: 480px) {
  .feed-scroller__item { flex: 0 0 280px; }
}

/* Feed modules (intercut between reviews) */
.feed-module {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--card) 0%, var(--surface) 100%);
  border-left: 2px solid var(--accent-deep);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.feed-module__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}
.feed-module__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.feed-module__link:hover { color: var(--accent); }
.feed-module__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.brand-pill, .user-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color var(--transition);
  color: var(--text) !important;
}
.brand-pill:hover, .user-pill:hover { border-color: var(--accent); }
.brand-pill svg { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.brand-pill__body { display: flex; flex-direction: column; line-height: 1.1; }
.brand-pill__name { font-weight: 500; font-size: 0.92rem; }
.brand-pill__count { font-size: 0.7rem; color: var(--text-secondary); }
.user-pill__name { font-weight: 500; font-size: 0.92rem; }
.user-pill__meta { font-size: 0.7rem; color: var(--text-secondary); margin-left: var(--space-1); }

/* Friends empty-state with suggestions */
.empty-state--rich { text-align: left; }
.user-suggestions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* Loading pulse (replaces "Loading more...") */
.loading-pulse {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-5);
}
.loading-pulse__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.3;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.loading-pulse__dot:nth-child(2) { animation-delay: 0.2s; }
.loading-pulse__dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse-dot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.2); }
}

/* Sparkline */
.sparkline { display: block; }
.phs--spark { min-width: 110px; }
.phs--spark .phs__value { color: var(--accent); }

/* Activity thumb (replaces avatar in activity-item when product exists) */
.activity-thumb {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  width: 40px;
  height: 40px;
}
.activity-thumb__img { width: 40px; height: 40px; object-fit: cover; }
.activity-thumb svg { width: 40px; height: 40px; display: block; }

/* Browse clear-all */
.browse__clear {
  margin-left: auto;
  padding: var(--space-2) var(--space-3);
  font-size: 0.78rem;
}

/* Chip overflow */
.chip-overflow { display: contents; }
.chip-overflow[hidden] { display: none; }
.chip--overflow-toggle { font-family: var(--font-mono); font-size: 0.78rem; }

/* Searchable chip popover */
.chip-popover { position: relative; display: inline-block; }
.chip-popover__panel {
  position: fixed;
  z-index: 30;
  width: min(320px, 90vw);
  max-height: 60vh;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: var(--space-2);
}
.chip-popover__panel:not([hidden]) { display: flex; }
.chip-popover__input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: var(--space-2);
}
.chip-popover__input:focus { border-color: var(--accent); outline: none; }
.chip-popover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}
.chip-popover__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
}
.chip-popover__option:hover { background: var(--bg); }
.chip-popover__option--active { color: var(--accent); }
.chip-popover__option[hidden] { display: none; }
.chip-popover__count { color: var(--text-secondary); font-size: 0.75rem; }

/* Tin specimen, no-image variant collapses to single column */
.specimen--no-image .specimen__head {
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.specimen--no-image .specimen__art {
  position: static;
  display: inline-block;
  margin-bottom: var(--space-4);
}
.specimen--no-image .specimen__art svg {
  width: 96px;
  max-width: 96px;
  height: 96px;
  aspect-ratio: 1;
}
.specimen--no-image .specimen__name {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

/* ═══════════════════════════════════════════
   TIN OF THE DAY, daily ritual hero
   ═══════════════════════════════════════════ */

.totd {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-5);
  align-items: center;
  margin: var(--space-4) 0 var(--space-6);
  padding: var(--space-5) var(--space-6) var(--space-5) var(--space-5);
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: var(--surface);
  background-image:
    radial-gradient(rgba(244, 237, 224, 0.022) 1px, transparent 1px),
    radial-gradient(rgba(244, 237, 224, 0.015) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}
.totd:hover { border-color: var(--accent-glow); transform: translateY(-1px); }
@media (max-width: 640px) {
  .totd { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-5) var(--space-4); }
}

.totd__corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.55;
}
.totd__corner::before,
.totd__corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.totd__corner::before { width: 10px; height: 1px; top: 0; }
.totd__corner::after  { width: 1px; height: 10px; left: 0; }
.totd__corner--tl { top: 6px;    left: 6px;    }
.totd__corner--tr { top: 6px;    right: 6px;   transform: scaleX(-1); }
.totd__corner--bl { bottom: 6px; left: 6px;    transform: scaleY(-1); }
.totd__corner--br { bottom: 6px; right: 6px;   transform: scale(-1, -1); }

.totd__art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.totd__art svg, .totd__art .totd__img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

.totd__body { min-width: 0; }
.totd__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-2);
}
.totd__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
  margin: 0 0 var(--space-3);
  color: var(--text);
}
.totd:hover .totd__name { color: var(--accent-glow); }
.totd__note {
  font-style: italic;
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
  max-width: 56ch;
}
.totd__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-2) var(--space-4);
  margin: 0;
  font-size: 0.85rem;
}
.totd__meta div { display: flex; flex-direction: column; gap: 2px; }
.totd__meta dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.totd__meta dd { color: var(--text); margin: 0; }

/* Signature hover gesture, applied consistently across hoverable surfaces */
.rcard, .fnote, .signature-card, .card, .activity-item, .brand-pill, .user-pill {
  transition: border-color var(--transition), transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), box-shadow var(--transition);
}
.rcard:hover .rcard__rating,
.fnote:hover .fnote__rating { color: var(--accent-glow); text-shadow: 0 0 12px rgba(240, 212, 168, 0.3); }
.rcard:hover { border-left-color: var(--accent-glow); }

/* Group-select consolidation: legacy list-row variants share styling */
.product, .brand:not(.brand-pill):not(.brand-mark--italic), .species, .list,
.notification-item, .diary-entry {
  transition: border-color var(--transition);
}
.product:hover, .brand:not(.brand-pill):not(.brand-mark--italic):hover, .species:hover, .list:hover { border-color: var(--border-strong); }

/* ===== Discover (swipe deck) ============================================ */
.discover {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}
.discover__head { text-align: center; margin-bottom: var(--space-4); }
.discover__title { font-family: var(--font-serif); font-size: 1.8rem; margin: var(--space-1) 0; }
.discover__sub { max-width: 36ch; margin: 0 auto var(--space-2); font-size: 0.92rem; }
.discover__progress { color: var(--text-secondary); font-size: 0.8rem; letter-spacing: 0.08em; }

.discover__deck {
  position: relative;
  height: 540px;
  perspective: 1000px;
  touch-action: pan-y;
}
.discover-card {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(.32,.72,0,1), opacity 0.32s, border-color var(--transition);
  transform: translateY(calc(var(--depth, 0) * 8px)) scale(calc(1 - var(--depth, 0) * 0.04));
  z-index: calc(100 - var(--depth, 0));
  user-select: none;
}
.discover-card.is-top { cursor: grab; }
.discover-card.is-dragging { transition: none; cursor: grabbing; }
.discover-card.is-leaving-right { transform: translate(140%, -10%) rotate(20deg); opacity: 0; }
.discover-card.is-leaving-left  { transform: translate(-140%, -10%) rotate(-20deg); opacity: 0; }

.discover-card__art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: linear-gradient(160deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18));
}
.discover-card__art img,
.discover-card__art .tin-svg { max-width: 100%; max-height: 100%; }
.discover-card__body {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.discover-card__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 var(--space-2);
  line-height: 1.25;
}
.discover-card__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1) var(--space-3);
  margin: 0;
  font-size: 0.78rem;
}
.discover-card__meta div { display: flex; flex-direction: column; gap: 1px; }
.discover-card__meta dt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.discover-card__meta dd { margin: 0; color: var(--text); }
.discover-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.discover-card__btn { width: 100%; padding: 0.85rem; font-size: 0.95rem; }

.discover__done {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.discover__done-title { font-family: var(--font-serif); font-size: 1.5rem; margin: 0 0 var(--space-2); }
.discover__done-sub   { margin: 0 auto var(--space-4); max-width: 36ch; }
.discover__done-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.discover__empty {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .discover__deck { height: 76vh; min-height: 480px; }
}

/* ===== Anonymous hero =================================================== */
.anon-hero {
  text-align: center;
  padding: var(--space-6) var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-4);
}
.anon-hero__eyebrow { color: var(--text-secondary); }
.anon-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: var(--space-2) 0 var(--space-2);
  line-height: 1.05;
}
.anon-hero__sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 44ch;
  margin: 0 auto var(--space-4);
}
.anon-hero__stats {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  margin: 0 0 var(--space-5);
}
.anon-hero__stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.anon-hero__stats dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}
.anon-hero__stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text);
}
.anon-hero__actions { display: inline-flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }
@media (max-width: 540px) {
  .anon-hero__stats { gap: var(--space-3); }
  .anon-hero__stats dd { font-size: 1.1rem; }
}

/* ===== Evergreen top-rated grid ========================================= */
.evergreen__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.evergreen__tile {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform 0.18s;
}
.evergreen__tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.evergreen__art { flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center; }
.evergreen__art img, .evergreen__art .tin-svg { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.evergreen__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.evergreen__name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.evergreen__meta { color: var(--text-secondary); font-size: 0.78rem; }

/* Promoted Google sign-in primary button */
.btn-google--primary {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 10px;
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.btn-google--primary:hover { border-color: var(--accent); background: var(--surface-strong, var(--surface)); }

/* ===== Awards =========================================================== */
.awards { margin: var(--space-3) 0; }
.awards__head { display: block; margin-bottom: var(--space-2); }
.awards__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.award {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  line-height: 1;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.award__name { font-weight: 500; }
.award__meta { color: var(--text-secondary); font-size: 0.7rem; }
.award__glyph { display: inline-flex; color: var(--text-secondary); }
.award--tier-1 { border-color: rgba(189,154,108,0.3); }
.award--tier-2 { border-color: rgba(189,154,108,0.55); }
.award--tier-3 { border-color: rgba(217,176,126,0.7); }
.award--tier-4 { border-color: rgba(231,200,160,0.85); box-shadow: 0 0 0 1px rgba(231,200,160,0.18); }
.award--tier-5 { border-color: rgba(240,212,168,0.95); box-shadow: 0 0 12px rgba(240,212,168,0.2); }
.award--tier-6 { border-color: var(--accent-glow, var(--accent)); box-shadow: 0 0 16px rgba(240,212,168,0.32); }
.award--reviewer { background: linear-gradient(180deg, var(--surface), rgba(199,92,79,0.08)); }
.award--reviewer .award__glyph { color: #c75c4f; }

/* ===== Post-review share callout ======================================== */
.just-posted {
  margin: 0 auto var(--space-4);
  max-width: 880px;
  padding: var(--space-4);
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(240,212,168,0.05), var(--surface));
  box-shadow: 0 0 24px rgba(240,212,168,0.08);
}
.just-posted__head { text-align: center; margin-bottom: var(--space-3); }
.just-posted__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: var(--space-1) 0 4px;
}
.just-posted__sub { margin: 0; font-size: 0.95rem; }
.just-posted__body {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1fr;
  gap: var(--space-4);
  align-items: center;
}
.just-posted__card {
  margin: 0;
  aspect-ratio: 1200/630;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.just-posted__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.just-posted__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.just-posted__btn { width: 100%; }
@media (max-width: 640px) {
  .just-posted__body { grid-template-columns: 1fr; }
}

/* ---------------- Mine shelf ---------------- */
.mine-shelf {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-4) 0 var(--space-5);
}
.mine-shelf__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.mine-shelf__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0;
}
.mine-shelf__cta { white-space: nowrap; }
.mine-shelf__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
  padding: var(--space-3) 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.mine-shelf__stats > div { display: flex; flex-direction: column; gap: 2px; }
.mine-shelf__stats dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.mine-shelf__stats dd {
  font-size: 1.4rem;
  color: var(--text);
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
}
.mine-shelf__stats dd .icon { color: var(--accent); }
.mine-shelf__row { margin-top: var(--space-4); }
.mine-shelf__row .eyebrow { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); }
.mine-shelf__row .muted-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary) !important;
  margin-left: auto;
}
.mine-shelf__row .muted-link:hover { color: var(--accent) !important; }
.mine-shelf__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}
.mine-shelf__tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition);
}
.mine-shelf__tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.mine-shelf__tile-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  line-height: 0;
}
.mine-shelf__tile-art img,
.mine-shelf__tile-art .tin-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mine-shelf__tile-name {
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mine-shelf__tile-meta { font-size: 0.7rem; color: var(--text-secondary); }
.mine-shelf__tile--quiet { background: transparent; }

.suggested-users {
  margin: var(--space-4) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.suggested-users .eyebrow { margin-bottom: var(--space-2); }

@media (max-width: 640px) {
  .mine-shelf__header { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .mine-shelf__cta { align-self: flex-start; }
  .mine-shelf__stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .mine-shelf__stats > div:nth-child(n+4) { display: none; }
  .mine-shelf__title { font-size: 1.2rem; }
}

/* ---------------- Product page additions ---------------- */
.vintage-breakdown {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
}
.vintage-breakdown .eyebrow { display: block; margin-bottom: var(--space-2); }
.vintage-breakdown__rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2);
}
.vintage-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.vintage-row__year { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.vintage-row__count { font-size: 0.72rem; }
.vintage-row__avg { color: var(--accent); margin-left: auto; font-size: 0.85rem; }
.vintage-row__avg .icon { color: var(--accent); }

.reviewers-strip {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
}
.reviewers-strip .eyebrow { display: block; margin-bottom: var(--space-2); }
.reviewers-strip__avatars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.reviewer-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2) 2px 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  transition: border-color var(--transition);
}
.reviewer-pill:hover { border-color: var(--accent); }
.reviewer-pill__name { color: var(--text-secondary); }

.empty-state--rich {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--card);
}
.empty-state--rich .empty-state__lede {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.empty-state__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  align-items: center;
}

/* ---------------- Discover additions ---------------- */
.discover__welcome {
  background: linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.discover__welcome h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin: var(--space-1) 0 var(--space-2);
}
.discover__done-next {
  margin: var(--space-2) 0 var(--space-3);
  color: var(--text-secondary);
}

/* ---------------- Mobile action bar ---------------- */
.mobile-action-bar { display: none; }
@media (max-width: 720px) {
  .mobile-action-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 50;
    padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--card) 96%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .mobile-action-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
  }
  .mobile-action-bar__item:hover,
  .mobile-action-bar__item:active { color: var(--text); background: var(--surface); }
  .mobile-action-bar__item--primary {
    color: var(--text);
    background: var(--accent);
    color: var(--card);
  }
  .mobile-action-bar__item--primary:hover,
  .mobile-action-bar__item--primary:active { background: var(--accent); color: var(--card); }
  .mobile-action-bar__bell-wrap { position: relative; }
  .badge--dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    padding: 0;
    min-width: 0;
  }
  /* Keep page content clear of the bottom bar. */
  body { padding-bottom: 72px; }
  /* Hide the duplicate desktop CTA in nav when the bottom bar is showing. */
  .nav-cta { display: none; }
}

/* ---------------- Lists index ---------------- */
.lists-page__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.lists-page__head h1 { margin: 0.15rem 0 0; }
.lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.list-card {
  display: block;
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition);
}
.list-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.list-card--system { border-style: dashed; }
.list-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.list-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}
.list-card__count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.list-card__desc {
  font-size: 0.85rem;
  margin: var(--space-1) 0 var(--space-3);
}
.list-card__tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.list-card__tile {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  line-height: 0;
}
.list-card__tile img, .list-card__tile .tin-svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-card__tile--more {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.list-card__empty { margin-top: var(--space-2); font-size: 0.85rem; }

/* ---------------- Awards grouping ---------------- */
.awards__group { margin-top: var(--space-3); }
.awards__group-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.awards__group-explainer {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.6rem;
  cursor: help;
}

/* ---------------- Tasting notes ---------------- */
.form-group--tasting { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tasting-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: var(--space-3);
}
.tasting-row__label { font-size: 0.85rem; }
.tasting-row__buttons { display: flex; gap: 6px; }
.tasting-row__buttons input[type="radio"] { display: none; }
.tasting-pip {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.tasting-pip:hover { border-color: var(--accent); color: var(--text); }
.tasting-row__buttons input[type="radio"]:checked + .tasting-pip {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--card);
}

.tasting-aggregate {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
}
.tasting-aggregate .eyebrow { display: block; margin-bottom: var(--space-2); }
.tasting-aggregate__rows { display: flex; flex-direction: column; gap: var(--space-2); }
.tasting-bar {
  display: grid;
  grid-template-columns: 60px 1fr 32px;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
}
.tasting-bar__track {
  height: 6px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}
.tasting-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.tasting-bar__value { color: var(--text-secondary); text-align: right; }
