:root {
  --site-header-base-offset: 24px;
  --site-header-banner-offset: 0px;
  --site-header-offset: calc(var(--site-header-base-offset) + var(--site-header-banner-offset));
  --site-header-height: 84px;
  --site-header-pill-width: 1040px;
  --site-header-radius: 999px;
  --site-header-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.page,
.result-page {
  padding-top: calc(var(--site-header-offset) + var(--site-header-height) + 28px);
}

.result-page {
  --max: 1480px;
}

.site-announcement {
  position: fixed;
  top: 12px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max, 1240px));
  max-width: var(--max, 1240px);
  transform: translateX(-50%) translateY(-8px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.site-announcement.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: none;
}

.site-announcement__inner {
  position: relative;
  min-height: 48px;
  padding: 12px 56px 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(152, 117, 8, 0.16);
  background: rgba(255, 238, 167, 0.96);
  box-shadow:
    0 14px 34px rgba(140, 104, 12, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.site-announcement__text {
  margin: 0;
  color: #1f180f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: center;
}

.site-announcement__text strong {
  font-weight: 800;
}

.site-announcement__close {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(31, 24, 15, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.site-announcement__close:hover {
  background: rgba(255, 255, 255, 0.82);
  color: #1f180f;
  transform: translateY(-50%) scale(1.04);
}

.site-announcement__close:focus-visible {
  outline: 2px solid rgba(31, 24, 15, 0.42);
  outline-offset: 2px;
}

.site-header {
  --header-ink: #21180f;
  --header-muted: rgba(33, 24, 15, 0.74);
  --header-button-bg: #ffe86c;
  --header-button-text: #21180f;
  --header-button-border: rgba(152, 117, 8, 0.22);
  --site-header-motion-duration: 0.38s;
  --site-header-color-duration: 0.4s;
  --site-header-copy-duration: 0.3s;
  --site-header-motion-ease: var(--site-header-ease);
  position: fixed;
  top: var(--site-header-offset);
  left: 50%;
  width: min(calc(100% - 32px), var(--max, 1240px));
  max-width: var(--max, 1240px);
  transform: translateX(-50%);
  z-index: 1000;
  display: block;
  padding: 0;
  border: 1px solid rgba(42, 31, 17, 0.08);
  border-radius: var(--site-header-radius);
  background-color: rgba(250, 244, 230, 0.96);
  box-shadow: 0 20px 44px rgba(78, 58, 13, 0.12);
  isolation: isolate;
  transition:
    width var(--site-header-motion-duration) var(--site-header-motion-ease),
    max-width var(--site-header-motion-duration) var(--site-header-motion-ease),
    background-color var(--site-header-color-duration) ease,
    border-color var(--site-header-color-duration) ease,
    box-shadow 0.5s ease,
    border-radius var(--site-header-motion-duration) var(--site-header-motion-ease);
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--site-header-motion-duration) var(--site-header-motion-ease);
}

.site-header::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.14) 52%, rgba(255, 255, 255, 0.06) 100%),
    radial-gradient(circle at 18% 12%, rgba(255, 244, 202, 0.28), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.site-header::after {
  z-index: -1;
  background: rgba(255, 251, 245, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.site-header.is-scrolled {
  width: auto;
  max-width: calc(100% - 32px);
  border-radius: 999px;
  background-color: transparent;
  box-shadow:
    0 16px 40px rgba(68, 50, 17, 0.16),
    0 1px 4px rgba(68, 50, 17, 0.08);
}

.site-header.is-scrolled::before,
.site-header.is-scrolled::after,
.site-header.is-menu-open::before,
.site-header.is-menu-open::after {
  opacity: 1;
}

.site-header.is-menu-open {
  --header-ink: #fff8ef;
  --header-muted: rgba(255, 248, 239, 0.8);
  background-color: rgba(24, 18, 11, 0.68);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 50px rgba(18, 12, 7, 0.28);
}

.site-header.is-scrolled.is-dark-context:not(.is-menu-open) {
  --header-ink: #fff8ef;
  --header-muted: rgba(255, 248, 239, 0.8);
}

.site-header.is-scrolled.is-light-context:not(.is-menu-open) {
  --header-ink: #000000;
  --header-muted: rgba(0, 0, 0, 0.72);
  --header-button-text: #000000;
  border-color: rgba(33, 24, 15, 0.1);
}

/* Non-scrolled: always use dark ink so text is readable on any ambient background */
.site-header:not(.is-scrolled):not(.is-menu-open) {
  --header-ink: #17130d;
  --header-muted: rgba(23, 19, 13, 0.72);
}

/* Non-scrolled: butter yellow ambient background → black text + saturated logo */
.site-header:not(.is-scrolled).is-solid-light-context:not(.is-menu-open) {
  --header-ink: #000000;
  --header-muted: rgba(0, 0, 0, 0.72);
}

.site-header.is-scrolled.is-solid-light-context:not(.is-menu-open) {
  --header-ink: #000000;
  --header-muted: rgba(0, 0, 0, 0.72);
  --header-button-bg: #ffe86c;
  --header-button-text: #000000;
  --header-button-border: rgba(152, 117, 8, 0.24);
  background-color: rgba(245, 221, 122, 0.96);
  border-color: rgba(152, 117, 8, 0.18);
  box-shadow:
    0 20px 44px rgba(122, 92, 11, 0.18),
    inset 0 1px 0 rgba(255, 249, 214, 0.72);
}

.site-header.is-scrolled.is-solid-light-context:not(.is-menu-open)::before,
.site-header.is-scrolled.is-solid-light-context:not(.is-menu-open)::after {
  opacity: 0;
}

.site-header.is-expanding {
  --site-header-motion-duration: 0.62s;
  --site-header-copy-duration: 0.46s;
  --site-header-motion-ease: cubic-bezier(0.2, 0.9, 0.24, 1);
}

.site-header.is-collapsing {
  --site-header-motion-duration: 0.32s;
  --site-header-copy-duration: 0.22s;
  --site-header-motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .header-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--site-header-height);
  padding: 14px 28px;
  transition:
    min-height var(--site-header-motion-duration) var(--site-header-motion-ease),
    width var(--site-header-motion-duration) var(--site-header-motion-ease),
    padding var(--site-header-motion-duration) var(--site-header-motion-ease),
    gap 0.4s ease,
    grid-template-columns var(--site-header-motion-duration) var(--site-header-motion-ease);
}

.site-header.is-scrolled:not(.is-menu-open) .header-row {
  min-height: var(--site-header-height);
  display: inline-flex;
  width: auto;
  max-width: calc(100vw - 32px);
  justify-content: flex-start;
  padding: 14px 24px;
  gap: 14px;
}

.site-header.is-scrolled:not(.is-menu-open) .header-actions,
.site-header.is-collapsing .header-actions,
.site-header.is-expanding .header-actions {
  margin-left: auto;
}

.site-header .brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--header-ink);
  text-decoration: none;
  transition:
    color 180ms ease,
    transform var(--site-header-motion-duration) var(--site-header-motion-ease);
}

.site-header .brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-header .brand-mark::before,
.site-header .brand-mark::after {
  display: none;
}

.site-header .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(217, 174, 44, 0.18));
}

.site-header .brand-copy {
  max-width: 240px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition:
    max-width var(--site-header-copy-duration) var(--site-header-motion-ease),
    opacity 0.35s ease,
    transform var(--site-header-copy-duration) var(--site-header-motion-ease);
}

.site-header .brand-name {
  color: var(--header-ink);
  font-family: "Clash Display", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  font-size: clamp(2.15rem, 2.85vw, 2.9rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.site-header.is-scrolled:not(.is-menu-open) .brand-copy {
  max-width: 0;
  opacity: 0;
  transform: translateX(-12px);
}

.site-header.is-scrolled .brand {
  transform: none;
}

.site-header .header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--site-header-motion-duration) var(--site-header-motion-ease),
    left var(--site-header-motion-duration) var(--site-header-motion-ease),
    flex var(--site-header-motion-duration) var(--site-header-motion-ease);
}

.site-header.is-scrolled .header-center {
  position: static;
  left: auto;
  transform: none;
  flex: 0 0 auto;
  justify-content: center;
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--header-ink);
}

.site-header .nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--header-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-header .nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-header .nav a:hover,
.site-header .nav a:focus-visible,
.site-header .header-signin:hover,
.site-header .header-signin:focus-visible,
.site-header .header-toggle:hover,
.site-header .header-toggle:focus-visible {
  transform: translateY(-1px);
}

.site-header .nav a:hover::after,
.site-header .nav a:focus-visible::after {
  opacity: 0.75;
  transform: scaleX(1);
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  z-index: 2;
  transition: transform var(--site-header-motion-duration) var(--site-header-motion-ease);
}

.site-header.is-scrolled .header-actions {
  transform: none;
}

.site-header .header-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--header-button-border);
  border-radius: 999px;
  background: var(--header-button-bg);
  box-shadow:
    0 12px 24px rgba(189, 144, 0, 0.2),
    inset 0 1px 0 rgba(255, 250, 209, 0.7);
  color: var(--header-button-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header .header-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(33, 24, 15, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 10px 20px rgba(57, 42, 12, 0.06);
}

.site-header .header-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--header-ink);
  transition:
    transform 0.35s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.site-header.is-scrolled.is-light-context:not(.is-menu-open) .brand,
.site-header.is-scrolled.is-light-context:not(.is-menu-open) .brand-name,
.site-header.is-scrolled.is-light-context:not(.is-menu-open) .nav,
.site-header.is-scrolled.is-light-context:not(.is-menu-open) .nav a {
  color: #000000;
}

.site-header.is-scrolled.is-light-context:not(.is-menu-open) .header-toggle span {
  background-color: #000000;
}

.site-header.is-menu-open .header-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-menu-open .header-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .header-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(24, 18, 11, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.header-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

body.header-menu-lock {
  overflow: hidden;
}

#boards,
#prompt-form,
#brand-partnerships,
#board-snapshots,
#result-form {
  scroll-margin-top: calc(var(--site-header-offset) + var(--site-header-height) + 24px);
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .site-header.is-scrolled {
    max-width: calc(100% - 24px);
  }

  .site-header.is-scrolled:not(.is-menu-open) .header-row {
    max-width: calc(100vw - 24px);
  }

  .site-header .header-row {
    padding-inline: 22px;
  }

  .site-header .nav a {
    padding-inline: 13px;
    font-size: 13px;
  }

  .site-header .header-signin {
    padding-inline: 16px;
  }
}

@media (max-width: 860px) {
  .site-announcement {
    width: min(calc(100% - 20px), var(--max, 1240px));
  }

  .site-announcement__inner {
    min-height: 0;
    padding: 11px 44px 11px 14px;
    border-radius: 22px;
  }

  .site-announcement__text {
    font-size: 12px;
    text-align: left;
  }

  .site-announcement__close {
    right: 8px;
    width: 28px;
    height: 28px;
  }

  .site-header.is-scrolled .header-row {
    display: inline-flex;
    width: auto;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .site-header.is-scrolled .brand,
  .site-header.is-scrolled .header-actions {
    transform: none;
  }

  .site-header .header-center,
  .site-header .header-actions {
    display: none;
  }

  .site-header .header-toggle {
    display: inline-flex;
  }

  .site-header.is-menu-open {
    width: min(calc(100% - 24px), 420px);
    max-width: min(calc(100% - 24px), 420px);
    border-radius: 30px;
  }

  .site-header.is-menu-open .header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: auto;
    padding: 18px;
  }

  .site-header.is-menu-open .brand,
  .site-header.is-menu-open .header-center,
  .site-header.is-menu-open .header-actions {
    display: flex;
    width: 100%;
  }

  .site-header.is-menu-open .brand {
    justify-content: flex-start;
    transform: none;
  }

  .site-header.is-menu-open .brand-copy {
    max-width: 220px;
    opacity: 1;
    transform: none;
  }

  .site-header.is-menu-open .header-center {
    position: static;
    left: auto;
    transform: none;
    justify-content: stretch;
  }

  .site-header.is-menu-open .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-header.is-menu-open .nav a {
    justify-content: flex-start;
    padding: 12px 10px;
  }

  .site-header.is-menu-open .nav a::after {
    left: 10px;
    right: auto;
    width: calc(100% - 20px);
    transform-origin: left center;
  }

  .site-header.is-menu-open .header-actions {
    justify-content: stretch;
    transform: none;
  }

  .site-header.is-menu-open .header-signin {
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --site-header-base-offset: 18px;
    --site-header-offset: calc(var(--site-header-base-offset) + var(--site-header-banner-offset));
    --site-header-height: 72px;
  }

  .page,
  .result-page {
    padding-top: calc(var(--site-header-offset) + var(--site-header-height) + 22px);
  }

  .site-header {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .site-header.is-scrolled {
    max-width: calc(100% - 20px);
  }

  .site-header.is-scrolled:not(.is-menu-open) .header-row {
    max-width: calc(100vw - 20px);
  }

  .site-header .header-row {
    min-height: var(--site-header-height);
    padding: 12px 16px;
  }

  .site-header .brand {
    gap: 12px;
  }

  .site-header .brand-mark {
    width: 40px;
    height: 40px;
  }

  .site-header .brand-name {
    font-size: 2.2rem;
  }

  .site-header.is-menu-open .header-row {
    padding: 16px;
  }
}

/* ── Notification bell ────────────────────────────────── */
.header-bell {
  position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: none;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; color: var(--header-ink);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.header-bell:hover { background: rgba(23,19,13,0.07); }
.header-bell.show { display: flex; }
.bell-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; border-radius: 999px;
  background: #ff3255; color: #fff;
  font-size: 9px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}
.bell-badge.show { display: flex; }

/* ── Notification panel ───────────────────────────────── */
.notif-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.18); z-index: 1100;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.notif-overlay.show { opacity: 1; pointer-events: auto; }
.notif-panel {
  position: fixed; top: 82px; right: 16px; /* overridden by JS to position under bell */
  width: min(360px, calc(100vw - 32px));
  background: #fff; border-radius: 22px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 1101;
  transform: translateY(-10px) scale(0.97); opacity: 0; pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.34,1.06,0.64,1), opacity 0.2s;
  max-height: 72vh; display: flex; flex-direction: column; overflow: hidden;
}
.notif-panel.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.notif-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px; border-bottom: 1px solid rgba(23,19,13,0.07); flex-shrink: 0;
}
.notif-hdr-title { font-size: 15px; font-weight: 800; color: #17130d; }
.notif-hdr-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(23,19,13,0.07); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: #7a6e5f; line-height: 1;
  transition: background 0.15s;
}
.notif-hdr-close:hover { background: rgba(23,19,13,0.13); }
.notif-scroll { overflow-y: auto; flex: 1; }
.notif-empty-msg { text-align: center; padding: 32px 20px; font-size: 14px; color: #7a6e5f; }
.notif-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 20px; cursor: pointer;
  border-bottom: 1px solid rgba(23,19,13,0.04);
  transition: background 0.12s;
}
.notif-row:hover { background: rgba(23,19,13,0.03); }
.notif-row.unread { background: rgba(240,208,86,0.10); }
.notif-row.unread:hover { background: rgba(240,208,86,0.18); }
.notif-row-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; overflow: hidden; position: relative;
  background: #e6dccf; color: #17130d;
  border: 1px solid rgba(23,19,13,0.06);
}
.notif-row-icon.follow { background: rgba(64,156,255,0.14); }
.notif-row-icon.comment { background: rgba(240,208,86,0.28); }
.notif-row-icon.reply { background: rgba(255,50,85,0.13); }
.notif-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.notif-row-body { flex: 1; min-width: 0; }
.notif-row-main { font-size: 13px; font-weight: 600; color: #17130d; line-height: 1.4; }
.notif-row-sub { font-size: 12px; color: #7a6e5f; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-row-time { font-size: 11px; color: #b0a48e; margin-top: 3px; }

@media (max-width: 860px) {
  .notif-overlay {
    background: rgba(0,0,0,0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .notif-panel {
    top: calc(var(--site-header-offset) + var(--site-header-height) + 10px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--site-header-offset) - var(--site-header-height) - 22px);
    z-index: 1102;
  }
}

/* ── User chip (logged-in state) ──────────────────────── */
.site-header .header-user-chip {
  gap: 8px;
  padding: 0 14px 0 6px;
}

.header-chip-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #17130d;
  color: #f5dd7a;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.header-chip-name {
  font-size: 13px; font-weight: 700;
  max-width: 90px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Inline plan status (inside chip) ────────────────── */
.hcs-sep {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.45;
  margin: 0 1px;
  flex-shrink: 0;
}
.hcs-plan {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  line-height: 1;
  animation: planFadeIn 0.4s ease both;
}
@keyframes planFadeIn {
  from { opacity: 0; transform: translateX(-3px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hcs-plan--pro {
  color: #b08a00;
}
.hcs-plan--unlimited {
  background: linear-gradient(135deg, #C8960C 0%, #9A6E00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hcs-caret { opacity: 0.45; flex-shrink: 0; }

/* ── Post-upgrade glow pulse ──────────────────────────── */
@keyframes chipGlow {
  0%   { box-shadow: 0 0 0 0 rgba(249,220,69,0), 0 12px 24px rgba(189,144,0,0.2); }
  25%  { box-shadow: 0 0 0 6px rgba(249,220,69,0.35), 0 12px 28px rgba(189,144,0,0.28); }
  60%  { box-shadow: 0 0 0 12px rgba(249,220,69,0.18), 0 12px 24px rgba(189,144,0,0.2); }
  100% { box-shadow: 0 0 0 20px rgba(249,220,69,0), 0 12px 24px rgba(189,144,0,0.2); }
}
.header-signin.chip-upgraded {
  animation: chipGlow 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── User dropdown menu ───────────────────────────────── */
.header-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 14px;
  padding: 10px;
  min-width: 180px;
  box-shadow: 0 12px 40px rgba(23,19,13,0.14);
  z-index: 100;
  animation: humIn 0.18s cubic-bezier(0.34,1.06,0.64,1);
}
@keyframes humIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hum-header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 4px 8px 8px;
}
.hum-name  { font-size: 13px; font-weight: 700; color: #17130d; }
.hum-email { font-size: 11.5px; color: #6b6355; margin-top: 1px; }

/* Plan pill inside dropdown */
.hum-plan-pill {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
  line-height: 1.4;
}
.hum-plan--free      { background: rgba(23,19,13,0.07); color: #6b6355; }
.hum-plan--pro       { background: rgba(200,150,0,0.1); color: #9A6E00; }
.hum-plan--unlimited { background: linear-gradient(135deg,#F4D45B,#D4AF37); color: #1A1206; }

.hum-upgrade { color: #9A6E00 !important; font-weight: 700 !important; }
.hum-divider { height: 1px; background: #e8e0d0; margin: 4px 0; }
.hum-item {
  display: block; width: 100%;
  padding: 9px 8px; text-align: left;
  background: transparent; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #17130d; cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.hum-item:hover { background: #f3ede0; }

/* ── Header menu anchor items ── */
a.hum-item {
  text-decoration: none;
  display: block;
}
.hum-signout { color: var(--error, #ef4444) !important; }

/* ── Nav upgrade link (free users only) ──────────────── */
.nav-upgrade-pill {
  color: #9A6E00 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-upgrade-pill:hover {
  color: #7a5700;
}
