/* ── Reset / Brand overrides ─────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

:root {
  --page-gutter: 1.25rem;

  --ink:    #000000;
  --bone:   #f4f0e8;
  --ember:  #c9a15a;
  --wine:   #7a1e2b;
  --ready:  #43a047;
  --aging:  #e53935;
  --past:   #9c27b0;
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);

  --surface-bg:     rgba(244, 240, 232, 0.02);
  --surface-border: rgba(244, 240, 232, 0.10);
  --text-muted:     rgba(244, 240, 232, 0.75);
  --text-faint:     rgba(244, 240, 232, 0.70);
  --text-ghost:     rgba(244, 240, 232, 0.18);

  --clim-temp-main:    #90caf9;
  --clim-temp-fridge:  #b39ddb;
  --clim-humid-main:   #c9a15a;
  --clim-humid-fridge: rgba(201,161,90,0.55);
}

/* ── Bootstrap 5 variable overrides ──────────────
   Forward project tokens above into Bootstrap's CSS
   custom properties so any future BS component
   (.btn, .card, .form-control, .alert, etc.) adopts
   the project palette without per-component CSS.
   Edit the tokens in :root above — these follow.
─────────────────────────────────────────────────── */
:root {
  --bs-body-bg:              var(--ink);
  --bs-body-color:           var(--bone);
  --bs-body-font-family:     'Inter Tight', sans-serif;

  --bs-primary:              var(--ember);
  --bs-primary-rgb:          201, 161, 90;
  --bs-success:              var(--ready);
  --bs-success-rgb:          67, 160, 71;
  --bs-danger:               var(--aging);
  --bs-danger-rgb:           229, 57, 53;
  --bs-secondary:            var(--wine);
  --bs-secondary-rgb:        122, 30, 43;

  --bs-link-color:           var(--ember);
  --bs-link-color-rgb:       201, 161, 90;
  --bs-link-hover-color:     var(--bone);

  --bs-border-color:         var(--surface-border);
  --bs-border-radius:        0;
  --bs-border-radius-sm:     0;
  --bs-border-radius-lg:     0;
  --bs-border-radius-xl:     0;
  --bs-border-radius-2xl:    0;
  --bs-border-radius-pill:   50rem;

  --bs-secondary-color:      var(--text-muted);
  --bs-tertiary-color:       var(--text-faint);
  --bs-emphasis-color:       var(--bone);
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Inter Tight', sans-serif;
  min-height: 100vh;
  padding-bottom: 80px;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────── */
.eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
}

/* ── Typography tokens (shared across all pages) ─── */
.t-display    { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 3rem; line-height: 0.95; letter-spacing: -0.015em; color: var(--bone); }
.t-heading    { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 2rem; line-height: 1.05; letter-spacing: 0.01em; color: var(--bone); }
.t-subheading { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.65rem; line-height: 1.1; letter-spacing: -0.01em; color: var(--bone); }
.t-body-serif { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.35rem; line-height: 1.6; color: var(--bone); }
.t-eyebrow    { font-family: 'Inter Tight', sans-serif; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ember); }
.t-ui         { font-family: 'Inter Tight', sans-serif; font-weight: 500; font-size: 0.82rem; color: var(--text-muted); }
.t-label      { font-family: 'Inter Tight', sans-serif; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); }
.t-num-xl     { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 4rem; line-height: 1; letter-spacing: -0.02em; color: var(--bone); }
.t-num-lg     { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 2.8rem; line-height: 1; letter-spacing: -0.02em; color: var(--bone); }
.t-num-md     { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; color: var(--bone); }

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  line-height: 1;
}

/* ── Decorative rule ─────────────────────────── */
.rule {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--ember);
  vertical-align: middle;
  margin-right: 1rem;
}

/* ── LED dots (exempt from radius reset) ─────── */
.led {
  width: 7px;
  height: 7px;
  border-radius: 50% !important;
  display: inline-block;
  flex-shrink: 0;
}
.led-ready   { background: var(--ready); box-shadow: 0 0 6px var(--ready); }
.led-aging   { background: var(--aging); box-shadow: 0 0 6px var(--aging); }
.led-past    { background: var(--past);  box-shadow: 0 0 6px var(--past); }
.led-unknown { background: rgba(244,240,232,0.28); }

/* ── Header ──────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter);
}

.hamburger-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--bone);
  transition: transform 280ms var(--ease), opacity 200ms var(--ease);
}
.hamburger-btn.open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.open .bar:nth-child(2) { opacity: 0; }
.hamburger-btn.open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 4px;
  cursor: pointer;
  transition: color 200ms var(--ease);
  position: relative;
}
.icon-btn:hover { color: var(--bone); }

.notif-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 6px;
  height: 6px;
  background: var(--ember);
  border-radius: 50% !important;
}

/* ── Notification panel ──────────────────────── */
.notif-panel {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(6, 5, 3, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  max-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}
.notif-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--surface-border);
  flex-shrink: 0;
}
.notif-panel-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.notif-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.9rem;
  transition: color 200ms var(--ease);
  line-height: 1;
}
.notif-panel-close:hover { color: var(--bone); }
.notif-panel-body {
  overflow-y: auto;
  flex: 1;
}
.notif-item {
  display: flex;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--surface-border);
}
.notif-item:last-child { border-bottom: none; }
@keyframes notif-item-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notif-item.animate {
  animation: notif-item-in 220ms var(--ease) both;
}
.notif-item-avatar {
  width: 34px;
  height: 34px;
  background: var(--ember);
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-item-content { flex: 1; min-width: 0; }
.notif-item-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}
.notif-item-author {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--bone);
}
.notif-item-time {
  font-size: 0.7rem;
  color: var(--text-faint);
}
.notif-item-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.notif-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
  background: transparent;
  color: var(--ember);
  border: 1px solid var(--ember);
  padding: 0.3rem 0.7rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.notif-cta:hover {
  background: var(--ember);
  color: var(--ink);
  text-decoration: none;
}
@media (min-width: 992px) {
  .notif-panel {
    left: auto;
    width: 420px;
    border-left: 1px solid var(--surface-border);
  }
}

/* ── Sidebar overlay ─────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease);
}
.sidebar-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: #080808;
  border-right: 1px solid var(--surface-border);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 320ms var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 56px;
  border-bottom: 1px solid var(--surface-border);
  flex-shrink: 0;
  white-space: nowrap;
}

.sidebar-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.sidebar-logo-link:hover { text-decoration: none; }
.sidebar-logo    { display: block; flex-shrink: 0; }
.sidebar-wordmark { margin-left: .875rem; margin-right: auto; }

.sidebar-close {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px;
  transition: color 200ms var(--ease);
}
.sidebar-close:hover { color: var(--bone); }

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0 2rem;
  scrollbar-width: none;
}
.sidebar-scroll::-webkit-scrollbar { display: none; }

.nav-group-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 1.25rem 1.25rem 0.4rem;
}

.nav-link-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.nav-link-item:hover {
  color: var(--bone);
  background: rgba(244,240,232,0.04);
  text-decoration: none;
}
.nav-link-item.active {
  color: var(--ember);
  border-left-color: var(--ember);
}
.nav-link-item.cta { color: var(--ember); }

.nav-divider {
  height: 1px;
  background: var(--surface-border);
  margin: 0.5rem 1.25rem;
}

.acc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  color: var(--text-muted);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.acc-toggle:hover { color: var(--bone); }
.acc-chevron { font-size: 0.55rem; transition: transform 280ms var(--ease); }
.acc-toggle[aria-expanded="true"] .acc-chevron { transform: rotate(180deg); }

.acc-inner { padding-left: 1rem; }

.admin-group .nav-group-label { color: rgba(229,57,53,0.45); }
.admin-group .nav-link-item { color: rgba(244,240,232,0.3); }
.admin-group .nav-link-item:hover { color: rgba(244,240,232,0.55); }
.acc-toggle--admin { padding-top: 1rem; }
.nav-group-label--admin { padding: 0; color: rgba(229,57,53,0.42); }
.acc-chevron--dim { color: rgba(244,240,232,0.2); }

/* ── Bottom nav ──────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--surface-border);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  text-decoration: none;
  padding-bottom: 6px;
  position: relative;
  transition: color 200ms var(--ease);
}
.bnav-item::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: transparent;
  transition: background-color 200ms var(--ease);
}
.bnav-item.active { color: var(--ember); }
.bnav-item.active::before { background: var(--ember); }
.bnav-item:hover { color: var(--bone); text-decoration: none; }
.bnav-item:active { transform: scale(0.97); }

.bnav-add {
  color: var(--ember) !important;
}
.bnav-add::before { display: none; }
.bnav-add:hover { color: var(--bone) !important; }

/* ── Desktop nav (top bar, right side) ──────── */
.desktop-nav {
  display: none;
}
.dnav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.25rem;
  height: 100%;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 200ms var(--ease);
  white-space: nowrap;
}
.dnav-item.active { color: var(--ember); }
.dnav-item:hover { color: var(--bone); text-decoration: none; }
.dnav-item-add {
  background: transparent;
  color: var(--ember) !important;
  border: 1px solid var(--ember) !important;
  padding: 0.4rem 1.1rem;
  margin-right: 0.75rem;
  align-self: center;
  height: auto;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.dnav-item-add:hover { background: var(--ember); color: var(--ink) !important; text-decoration: none; }
.dnav-bell {
  padding: 0 0.75rem;
  height: 100%;
}
.mobile-bell { display: block; }
.dnav-bell   { display: none; }

/* ── Header right group ───────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── Avatar button ────────────────────────────── */
.avatar-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 1.5px solid rgba(244,240,232,0.18);
  display: block;
  transition: border-color 180ms var(--ease);
}
.avatar-btn:hover .avatar-img { border-color: var(--ember); }

/* ── Avatar dropdown menu ─────────────────────── */
.avatar-menu {
  position: fixed;
  top: 56px;
  right: 12px;
  width: 216px;
  background: rgba(8,7,5,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  z-index: 160;
  padding: 6px 0;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.avatar-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.avatar-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(244,240,232,0.65);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.avatar-menu-item i {
  width: 14px;
  font-size: 0.72rem;
  color: rgba(244,240,232,0.3);
  flex-shrink: 0;
}
.avatar-menu-item:hover {
  color: var(--bone);
  background: rgba(244,240,232,0.04);
  text-decoration: none;
}
.avatar-menu-item:hover i { color: rgba(244,240,232,0.55); }
.avatar-menu-item--danger { color: rgba(220,70,60,0.7); }
.avatar-menu-item--danger i { color: rgba(220,70,60,0.4); }
.avatar-menu-item--danger:hover { color: rgba(220,70,60,1); background: rgba(220,70,60,0.05); text-decoration: none; }
.avatar-menu-item--danger:hover i { color: rgba(220,70,60,0.75); }
.avatar-menu-divider {
  height: 1px;
  background: var(--surface-border);
  margin: 4px 0;
}
.mobile-avatar { display: flex; }
.dnav-avatar   { display: none; }

/* ── Charts pair ─────────────────────────────── */
.charts-pair { display: block; }
.charts-pair .dash-section { border-top: 1px solid var(--surface-border); }

/* ── Page header (shared across all pages) ───── */
.page-header { padding: 2rem var(--page-gutter) 1.25rem; }

/* ── Main content ────────────────────────────── */
.main-content { padding-bottom: 2rem; }

/* ── Section wrappers ────────────────────────── */
.dash-section {
  padding: 1.5rem var(--page-gutter);
  border-top: 1px solid var(--surface-border);
}
.dash-section:first-child { border-top: none; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-link {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.section-link:hover { color: var(--ember); text-decoration: none; }

/* ── Greeting ────────────────────────────────── */
.greeting-section {
  padding: 2rem var(--page-gutter) 1.5rem;
  border-bottom: 1px solid var(--surface-border);
}

/* ── Climate ─────────────────────────────────── */
.climate-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--page-gutter) 0.25rem;
}
.climate-scroll::-webkit-scrollbar { display: none; }

.climate-card {
  flex: 0 0 calc(50% - 0.375rem);
  min-width: 148px;
  max-width: 220px;
  border: 1px solid var(--surface-border);
  background: var(--surface-bg);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.climate-card::after,
.inv-card::after,
.act-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember) 50%, transparent);
  opacity: 0.5;
}

.clim-location {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}

.clim-temp {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.clim-temp sup {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(244,240,232,0.28);
  top: -1.2em;
}

.clim-humid-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.clim-humid-track {
  flex: 1;
  height: 2px;
  background: rgba(244,240,232,0.06);
  position: relative;
}
.clim-humid-fill {
  position: absolute;
  inset: 0;
  right: auto;
  background: var(--ember);
  transition: width 700ms var(--ease);
}
.clim-humid-val {
  font-size: 0.7rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.clim-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Shared climate card body ───────────────── */
.vr-clim-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}
.vr-clim-header .clim-location { margin-bottom: 0; flex: 1; }
.vr-clim-more {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.vr-clim-more:hover { color: var(--ember); }
.vr-clim-body {
  display: flex;
  align-items: stretch;
  margin-bottom: 0.75rem;
}
.vr-clim-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
}
.vr-clim-col:first-child { padding-right: 0.85rem; }
.vr-clim-col:last-child  { padding-left:  0.85rem; }
.vr-clim-sep {
  width: 1px;
  background: var(--surface-border);
  align-self: stretch;
  flex-shrink: 0;
}
.vr-clim-icon { font-size: 0.75rem; color: var(--text-faint); }
.vr-clim-metric {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.vr-clim-lbl {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Climate desktop ────────────────────────── */
.clim-desktop { display: none; }
.clim-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--surface-border);
}
.clim-tile {
  padding: 1.5rem var(--page-gutter);
  border-right: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}
.clim-tile:last-child { border-right: none; }
.clim-tile::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember) 50%, transparent);
  opacity: 0.4;
}
.clim-tile-location {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}
.clim-tile-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}
.clim-tile-val {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.clim-tile-val sup {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(244,240,232,0.28);
  top: -2.2em;
}
.clim-chart-area {
  padding: 1.25rem var(--page-gutter) 0;
  height: 180px;
}
.clim-chart-legend {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem var(--page-gutter);
}
.clim-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.clim-legend-dash {
  display: inline-block;
  width: 20px;
  height: 1px;
}
.clim-legend-dash--tm { background: var(--clim-temp-main); }
.clim-legend-dash--tf { background: var(--clim-temp-fridge); }
.clim-legend-dash--hm { background: var(--clim-humid-main); }
.clim-legend-dash--hf { background: var(--clim-humid-fridge); }

/* ── Inventory grid ──────────────────────────── */
.inv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.inv-card {
  border: 1px solid var(--surface-border);
  background: var(--surface-bg);
  padding: 0.9rem;
  position: relative;
  overflow: hidden;
}
.inv-card.span-2 { grid-column: span 2; }
.inv-card.gold {
  border-color: rgba(201,161,90,0.2);
  background: rgba(201,161,90,0.03);
}
.inv-card.featured {
  border-color: rgba(201,161,90,0.15);
  background: rgba(201,161,90,0.025);
}

.inv-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}

.inv-val {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.inv-sub {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
}

.inv-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.inv-status-bar {
  display: flex;
  gap: 2px;
  height: 2px;
  margin-top: 0.75rem;
}

/* ── Activity (bought / consumed) ────────────── */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.act-card {
  border: 1px solid var(--surface-border);
  background: var(--surface-bg);
  padding: 0.9rem;
  position: relative;
  overflow: hidden;
}

.act-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 3.2rem;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.act-bar-track {
  height: 2px;
  background: rgba(244,240,232,0.06);
  margin-top: 0.75rem;
  position: relative;
}
.act-bar-fill {
  position: absolute;
  inset: 0;
  right: auto;
  transition: width 900ms var(--ease);
}

.month-pips {
  display: flex;
  gap: 2px;
  margin-top: 0.5rem;
  height: 22px;
}
.month-pip {
  flex: 1;
  background: rgba(244,240,232,0.04);
  position: relative;
}
.month-pip-fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  transition: height 700ms var(--ease);
}

/* ── Chart containers ────────────────────────── */
.chart-wrap {
  position: relative;
  margin-top: 1rem;
}

/* Donut */
.status-values-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.status-value-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.status-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.donut-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.25rem;
}
.donut-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.donut-total {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
  display: block;
}
.donut-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.chart-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
}
.legend-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50% !important;
}
.legend-name { font-size: 0.78rem; color: var(--text-muted); }
.legend-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--bone);
  line-height: 1;
  text-align: right;
}

/* ── Status cards ───────────────────────────── */
.status-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.status-card {
  border: 1px solid var(--surface-border);
  background: var(--surface-bg);
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
}
.status-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember) 50%, transparent);
  opacity: 0.5;
}
.status-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.status-card-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.status-card-count {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-align: center;
}
.status-card--ready   { border-top: 5px solid var(--ready); }
.status-card--aging   { border-top: 5px solid var(--aging); }
.status-card--past    { border-top: 5px solid var(--past); }
.status-card--unknown { border-top: 5px solid rgba(244,240,232,0.28); }
.status-card::after   { display: none; }
.status-card .led     { display: none; }

/* ── Heatmap ─────────────────────────────────── */
.hm-outer {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  margin-top: 1rem;
}
.heatmap-scroll {
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.heatmap-scroll::-webkit-scrollbar { display: none; }

.heatmap-inner {
  min-width: 860px;
  width: 100%;
}

.hm-month-row {
  position: relative;
  height: 22px;
  margin-bottom: 6px;
  overflow: visible;
}
.hm-month-lbl {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.70rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  font-weight: 500;
}

.hm-body {
  display: flex;
  gap: 4px;
}
.hm-day-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 26px;
  flex-shrink: 0;
  padding-top: 28px; /* clears the month row (22px) + its margin-bottom (6px) */
}
.hm-day-lbl {
  height: 14px;
  font-size: 0.8rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
}
.hm-weeks {
  display: flex;
  gap: 6px;
  flex: 1;
}
.hm-week-col {
  flex: 1;
  min-width: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hm-month-start {
  margin-left: 24px;
}
.hm-cell {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(244,240,232,0.08);
  cursor: default;
  transition: opacity 120ms ease;
  flex-shrink: 0;
  border-radius: 4px !important;
}
.hm-cell:hover { opacity: 0.75; }
.hm-cell[data-v="1"] { background: rgba(201,161,90,0.28); }
.hm-cell[data-v="2"] { background: rgba(201,161,90,0.52); }
.hm-cell[data-v="3"] { background: rgba(201,161,90,0.74); }
.hm-cell[data-v="4"] { background: rgba(201,161,90,1); }

/* Mobile month-calendar grid */
.hm-mobile-grid {
  display: none;
  margin-top: 1rem;
}

.hm-month-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hm-month-block-hdr {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.hm-month-day-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 1px;
}

.hm-month-day-row span {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
}

.hm-month-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.hm-cell-empty {
  background: transparent !important;
  pointer-events: none;
}

@media (max-width: 991px) {
  .hm-outer { display: none; }
  .hm-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
  }
}

.hm-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: var(--text-faint);
  font-weight: 500;
}

/* ── Entrance animations ─────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 380ms var(--ease) both; }
.d1 { animation-delay: 60ms; }
.d2 { animation-delay: 120ms; }
.d3 { animation-delay: 180ms; }
.d4 { animation-delay: 240ms; }
.d5 { animation-delay: 300ms; }
.d6 { animation-delay: 360ms; }

/* ── Header brand ────────────────────────────── */
.header-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .875rem;
  white-space: nowrap;
  text-decoration: none;
}
.header-brand:hover { text-decoration: none; }
.header-brand img { display: block; }

/* ── Colour utilities ────────────────────────── */
.text-ready       { color: var(--ready); }
.text-ember       { color: var(--ember); }
.text-ember-muted { color: rgba(201,161,90,0.55); }
.text-faint       { color: var(--text-faint); }

/* ── Greeting subtitle ───────────────────────── */
.greeting-sub {
  font-size: .78rem;
  color: var(--text-faint);
  letter-spacing: .04em;
}

/* ── Climate section: full-bleed ─────────────── */
.dash-section-full { padding-left: 0; padding-right: 0; }
.dash-section-full .section-head { padding: 0 var(--page-gutter); }

.clim-status-ok { color: var(--ready); }

/* ── Inventory value size variants ──────────── */
.inv-val-xl { font-size: 3.4rem; }
.inv-val-md { font-size: 1.9rem; }
.inv-val-sm { font-size: 2rem; }

/* ── Status-bar segment colours ─────────────── */
.sb-ready   { background: var(--ready); }
.sb-aging   { background: var(--aging); }
.sb-past    { background: var(--past); }
.sb-unknown { background: rgba(244,240,232,0.15); flex: 1; }

/* ── Activity bar colour variants ────────────── */
.act-bar-fill--bought   { background: var(--ember); opacity: .7; }
.act-bar-fill--consumed { background: var(--wine); }

/* ── Legend dot colour variants ──────────────── */
.ld-ready   { background: var(--ready); box-shadow: 0 0 5px var(--ready); }
.ld-aging   { background: var(--aging); box-shadow: 0 0 5px var(--aging); }
.ld-past    { background: var(--past);  box-shadow: 0 0 5px var(--past); }
.ld-unknown { background: rgba(244,240,232,0.22); }

/* ── Chart helpers ───────────────────────────── */
.chart-subtitle { font-size: .8rem; color: var(--text-faint); margin: -.5rem 0 0; font-weight: 500;}
.chart-wrap-tall { height: 180px; }
.chart-wrap-mid  { height: 160px; }

/* ── Heatmap area ────────────────────────────── */
.heatmap-area { margin-top: 1.75rem; }
.hm-sub-title {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .125rem;
}
.hm-legend-cell { width: 10px; height: 10px; display: inline-block; }

/* ── Font Awesome icon sizing ────────────────── */
.icon-nav  { font-size: 1.2rem; line-height: 1; }
.icon-hdr  { font-size: 1.05rem; }
.icon-clim { font-size: .72rem; color: rgba(244,240,232,0.35); }

/* ── Gap helpers ─────────────────────────────── */
.gap-sm { gap: .5rem; }
.gap-md { gap: .75rem; }
.gap-hd { gap: .875rem; }

/* ── Responsive — desktop ────────────────────── */
@media (min-width: 992px) {
  :root { --page-gutter: 3rem; }

  .sidebar {
    transform: translateX(0) !important;
    position: fixed;
  }
  .sidebar-close,
  .hamburger-btn { display: none; }
  .sidebar-overlay { display: none !important; }

  .app-header { left: 280px; position: fixed; right: 0; top: 0; }
  .header-brand { display: none; }
  .main-content,
  .fmr-wrap,
  .aw-wrap,
  .wt-wrap,
  .lights-wrap,
  .clim-wrap,
  .wine-rack-wrap,
  .vg-wrap,
  .fb-wrap,
  .ex-wrap,
  .edw-wrap,
  .wim-wrap,
  .tst-wrap,
  .nt-wrap,
  .tv-wrap,
  .et-wrap,
  .st-wrap,
  .wi-wrap { margin-left: 280px; padding-top: 56px; }
  .bottom-nav { display: none; }
  .desktop-nav { display: flex; align-items: center; margin-left: auto; }
  .mobile-bell   { display: none; }
  .dnav-bell     { display: flex; align-items: center; }
  .header-right  { display: none; }
  .mobile-avatar { display: none; }
  .dnav-avatar   { display: flex; align-items: center; padding: 0 0.75rem 0 0.25rem; }
  body { padding-bottom: 0; }

  .inv-grid { grid-template-columns: repeat(3, 1fr); }
  .inv-val-md { font-size: 2.6rem; }
  .activity-grid { grid-template-columns: repeat(4, 1fr); }
  .chart-legend { grid-template-columns: 1fr 1fr 1fr 1fr; }

  .climate-scroll { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
  .climate-card { max-width: none; flex: none; }
  .clim-desktop { display: none; }

  .status-values-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
  }
  .status-layout { display: contents; }
  .status-layout .donut-wrap { grid-column: 3; grid-row: 1; justify-self: stretch; align-self: stretch; margin: 0 0 0 1.5rem; width: auto; height: auto; display: flex; justify-content: center; align-items: center; position: relative; }
  .status-layout .donut-wrap canvas { width: 280px !important; height: 280px !important; }
  .status-layout .donut-wrap .donut-total { font-size: 3.8rem; }
  .status-layout .status-cards { grid-column: 2; grid-row: 1; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.75rem; }
  .status-layout .status-card { padding: 1.25rem 1.25rem; }
  .status-layout .status-card-count { font-size: 2.6rem; text-align: left; }
  .status-layout .status-card-label { font-size: 0.7rem; }
  .status-layout .status-card-top { justify-content: flex-start; }
  .charts-pair { display: grid; grid-template-columns: 1fr 1fr; }
  .charts-pair .dash-section { border-top: none; border-left: 1px solid var(--surface-border); }
  .charts-pair .dash-section:first-child { border-left: none; }
  .status-card--ready,
  .status-card--aging,
  .status-card--past,
  .status-card--unknown { border-top: 1px solid var(--surface-border); }
  .status-card::after   { display: block; }
  .status-card .led     { display: inline-block; }
  .status-value-cards { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 0.75rem; }
  .status-value-cards .inv-card { padding: 1.4rem 1.5rem; }
}

/* ── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════
   FOOD MATCHER — Dialog
══════════════════════════════════════════════ */
.fm-dialog {
  background: #0a0a0a;
  border: 1px solid rgba(244,240,232,0.13);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  padding: 0;
  width: min(480px, calc(100vw - 2rem));
  margin: auto;
  opacity: 0;
}
@media (max-width: 600px) {
  .fm-dialog {
    margin-top: 0;
    margin-bottom: auto;
    max-height: 100dvh;
    overflow-y: auto;
    width: 100vw;
    border-top: none;
    border-left: none;
    border-right: none;
  }
}

.fm-dialog[open] {
  animation: fmDialogIn 300ms var(--ease) forwards;
}

.fm-dialog.closing {
  animation: fmDialogOut 200ms var(--ease) forwards;
}

@keyframes fmDialogIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes fmDialogOut {
  from { opacity: 1; transform: translateY(0)    scale(1); }
  to   { opacity: 0; transform: translateY(8px)  scale(0.98); }
}

.fm-dialog::backdrop {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fmBackdropIn 300ms var(--ease) forwards;
}

.fm-dialog.closing::backdrop {
  animation: fmBackdropOut 200ms var(--ease) forwards;
}

@keyframes fmBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fmBackdropOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Shared dialog header / close / body / eyebrow ─
   Used by every <dialog> modal in the project. The
   per-modal wrapper class (.fm-dialog, .wt-drink-modal,
   .wt-filter-modal, .wt-print-modal, .vr-info-modal,
   .vr-swap-modal, .vup-modal) handles size + body
   variations; this block standardises the header strip.
─────────────────────────────────────────────────── */
.dlg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(244,240,232,0.07);
  flex-shrink: 0;
}

.dlg-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
}

.dlg-close {
  background: none;
  border: none;
  color: rgba(244,240,232,0.35);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 200ms var(--ease);
}
.dlg-close:hover { color: var(--bone); }

.dlg-body {
  padding: 1.75rem 2rem 2rem;
}

.fm-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin: 0 0 0.5rem;
}

.fm-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.fm-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fm-input {
  width: 100%;
  background: rgba(244,240,232,0.04);
  border: 1px solid rgba(244,240,232,0.12);
  color: var(--bone);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.875rem 1rem;
  resize: none;
  outline: none;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
  -webkit-appearance: none;
}
.fm-input::placeholder { color: rgba(244,240,232,0.22); }
.fm-input:focus {
  border-color: rgba(201,161,90,0.5);
  background: rgba(244,240,232,0.06);
}

.fm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ember);
  color: var(--ink);
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms var(--ease), transform 150ms var(--ease);
  align-self: flex-end;
}
.fm-btn:hover { background: #d4ae6d; }
.fm-btn:active { transform: scale(0.97); }
.fm-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* Loading state */
.fm-loading {
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.fm-sparkle {
  font-size: 2rem;
  color: var(--ember);
  animation: fmSparkle 1.8s var(--ease) infinite;
}
@keyframes fmSparkle {
  0%, 100% {
    transform: scale(0.88) rotate(-8deg);
    filter: drop-shadow(0 0 3px rgba(201,161,90,0.25));
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 0 16px rgba(201,161,90,0.85));
    opacity: 1;
  }
}

.fm-loading-text {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
  animation: fmTextPulse 1.8s var(--ease) infinite;
}
@keyframes fmTextPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.85; }
}

/* ══════════════════════════════════════════════
   FOOD MATCHER — Results page
══════════════════════════════════════════════ */
.fmr-wrap {
  min-height: calc(100vh - 56px - 72px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.fmr-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem var(--page-gutter) 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.fmr-back:hover { color: var(--bone); text-decoration: none; }
.fmr-back i { font-size: 0.7rem; }

.fmr-response {
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  max-width: 68ch;
}

.fm-grape {
  font-style: normal;
  background: none;
  padding: 0;
  margin: 0;
}
.fm-grape--match {
  color: var(--ember);
  font-weight: 500;
}
.fm-grape--none {
  color: rgba(244,240,232,0.45);
}

.fmr-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.fmr-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.fmr-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50% !important;
  flex-shrink: 0;
}
.fmr-legend-dot--match { background: var(--ember); box-shadow: 0 0 5px rgba(201,161,90,0.5); }
.fmr-legend-dot--none  { background: rgba(244,240,232,0.2); }

/* Grape picker section */
.fmr-picker {
  padding: 1.5rem var(--page-gutter) 1.75rem;
  border-top: 1px solid var(--surface-border);
}

.fmr-picker-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.fmr-picker-label > span:first-child { color: var(--bone); }
.fmr-or   { color: rgba(244,240,232,0.2); }
.fmr-lucky-lbl { color: var(--ember); }

.fmr-grape-label {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.fmr-grape-label + .fmr-chips,
.fmr-grape-label ~ .fmr-chips {
  /* chips directly after a label need no extra top gap */
}
.fmr-lucky-wrap + .fmr-grape-label {
  margin-top: 2rem;
}

.fmr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

.fmr-chip {
  background: rgba(244,240,232,0.03);
  border: 1px solid rgba(244,240,232,0.1);
  color: var(--text-faint);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease);
  white-space: nowrap;
}
.fmr-chip:hover {
  border-color: rgba(201,161,90,0.35);
  color: var(--bone);
}
.fmr-chip.active {
  background: rgba(201,161,90,0.1);
  border-color: var(--ember);
  color: var(--ember);
}
.fmr-chip--all { border-style: dashed; }
.fmr-chip--all.active { border-style: solid; }

.fmr-chip-badge {
  background: rgba(244,240,232,0.1);
  color: var(--text-faint);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.2em 0.45em;
  border-radius: 2px !important;
  margin-left: 0.3em;
}
.fmr-chip.active .fmr-chip-badge {
  background: rgba(201,161,90,0.15);
  color: var(--ember);
}

/* Lucky card */
.fmr-lucky-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
  overflow: hidden;
  animation: fmrFade 280ms var(--ease) both;
}

.fmr-lucky-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.fmr-lucky-top {
  display: flex;
  align-items: stretch;
}

.fmr-lucky-img-wrap {
  flex-shrink: 0;
}

/* Shared placeholder — used in lucky card and bottle list */
.fmr-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 180px;
  width: calc(180px * 1000 / 1333);
  aspect-ratio: 1000 / 1333;
  background: rgba(244,240,232,0.03);
  border-right: 1px solid rgba(244,240,232,0.07);
  color: var(--ember);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms var(--ease), gap 200ms var(--ease);
}
.fmr-img-placeholder i {
  font-size: 1rem;
  transition: font-size 200ms var(--ease);
}
.fmr-img-placeholder span {
  transition: font-size 200ms var(--ease), letter-spacing 200ms var(--ease);
}
.fmr-img-placeholder:hover {
  background: rgba(201,161,90,0.08);
  gap: 0.5rem;
}
.fmr-img-placeholder:hover i { font-size: 1.4rem; }
.fmr-img-placeholder:hover span { font-size: 0.7rem; letter-spacing: 0.22em; }

/* Compact version for bottle list rows */
.fmr-img-placeholder--sm {
  height: auto;
  width: 36px;
  aspect-ratio: 1000 / 1333;
  gap: 0.2rem;
  font-size: 0.42rem;
  border-right: none;
  border: 1px dashed rgba(244,240,232,0.1);
}
.fmr-img-placeholder--sm i { font-size: 0.65rem; }

.fmr-lucky-img {
  height: 180px;
  width: auto;
  display: block;
}

.fmr-lucky-card-body {
  flex: 1;
  min-width: 0;
  padding: 1.1rem 1.25rem 1.35rem;
}

.fmr-lucky-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-top: 1px solid rgba(244, 240, 232, 0.07);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.fmr-lucky-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember) 50%, transparent);
  opacity: 0.55;
}

.fmr-lucky-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.6rem;
}

.fmr-lucky-nameline {
  margin: 0 0 0.35rem;
  line-height: 1.1;
}

.fmr-lucky-vintage {
  color: var(--text-faint);
  margin-right: 0.3em;
}

.fmr-lucky-grape {
  color: var(--ember);
}

.fmr-lucky-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fmr-sep-dot {
  width: 2px;
  height: 2px;
  background: currentColor;
  border-radius: 50% !important;
  flex-shrink: 0;
  opacity: 0.4;
  display: inline-block;
  vertical-align: middle;
}

.fmr-reroll {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 1px solid rgba(244,240,232,0.1);
  color: var(--text-faint);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  align-self: flex-start;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.fmr-reroll:hover { border-color: rgba(201,161,90,0.35); color: var(--bone); }
.fmr-reroll-icon { display: inline-block; transition: transform 380ms var(--ease); }
.fmr-reroll:hover .fmr-reroll-icon { transform: rotate(180deg); }

/* Filtered results list */
.fmr-filtered-wrap {
  animation: fmrFade 280ms var(--ease) both;
  margin-top: 1.25rem;
}

@keyframes fmrFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fmr-filtered-list {
  display: flex;
  flex-direction: column;
}

.fmr-bottle-list {
  display: flex;
  flex-direction: column;
}

.fmr-bottle {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(244,240,232,0.05);
}
.fmr-bottle:last-child { border-bottom: none; }

.fmr-bottle-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,161,90,0.08);
  border: 1px solid rgba(201,161,90,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(201,161,90,0.5);
  font-size: 0.85rem;
}

.fmr-bottle-img {
  width: 36px;
  aspect-ratio: 1000 / 1333;
  flex-shrink: 0;
  display: block;
  align-self: flex-start;
}

.fmr-bottle-info {
  flex: 1;
  min-width: 0;
}
.fmr-bottle-nameline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fmr-bottle-vintage-label,
.fmr-bottle-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bone);
}

.fmr-bottle-vintage-label {
  color: var(--text-faint);
  margin-right: 0.3em;
}
.fmr-bottle-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.fmr-bottle-grape-label { color: var(--text-faint); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }

.fmr-bottle-status-inline {
  display: inline-flex;
  align-items: center;
}

.fmr-bottle-location {
  font-size: 0.53rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.2rem;
}


/* No query state */
.fmr-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.fmr-empty-icon {
  font-size: 2rem;
  color: rgba(201,161,90,0.25);
}
.fmr-empty-text { margin: 0; }

@media (min-width: 768px) {
  .fmr-response   { font-size: 1.55rem; }
  .fmr-lucky-vintage,
  .fmr-lucky-name { font-size: 1.9rem; }

  /* Desktop lucky card: image spans both rows, body + meta in right column */
  .fmr-lucky-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .fmr-lucky-top {
    display: contents;
  }
  .fmr-lucky-img-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .fmr-lucky-card-body {
    grid-column: 2;
    grid-row: 1;
  }
  .fmr-lucky-meta-row {
    grid-column: 2;
    grid-row: 2;
  }

  .fmr-filtered-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fmr-bottle {
    padding: 0.875rem 0;
  }
  .fmr-bottle:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid rgba(244,240,232,0.05);
  }
  .fmr-bottle:nth-child(even) {
    padding-left: 1.5rem;
  }
  .fmr-bottle:nth-last-child(-n+2) { border-bottom: none; }
}

/* ════════════════════════════════════════════════════
   RACK LOCATOR (wtrack) — blockUI animation overlay
   Used by cellar-actions.js / showRackLocator()
════════════════════════════════════════════════════ */
.wtrack-panel { text-align: center; padding: 0.2rem 0; }
.wtrack-rack  { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 0 auto 1.4rem; width: fit-content; }
.wtrack-cell  { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); transition: background 500ms ease-in-out, box-shadow 500ms ease-in-out, border-color 500ms ease-in-out; }
.wtrack-cell.lit-amber  { background: radial-gradient(circle at 40% 35%, #ffe08a, #c9a15a); border-color: rgba(201,161,90,0.6); box-shadow: 0 0 8px 2px rgba(201,161,90,0.55); }
.wtrack-cell.lit-target { background: radial-gradient(circle at 40% 35%, #fff, #d4c080); border-color: rgba(255,240,160,0.9); box-shadow: 0 0 14px 4px rgba(255,230,100,0.8), 0 0 4px 1px #fff; animation: wtrack-pulse 600ms ease-in-out infinite alternate; }
@keyframes wtrack-pulse {
  from { box-shadow: 0 0 10px 3px rgba(255,220,80,0.7); }
  to   { box-shadow: 0 0 20px 7px rgba(255,220,80,1); }
}
.wtrack-label { font-family: var(--font-serif, Georgia, serif); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(201,161,90,0.7); margin-bottom: 0.55rem; }
.wtrack-title { font-size: 1.05rem; font-weight: 600; color: #f5e8c8; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.wtrack-dots span { display: inline-block; animation: wtrack-dot 1.2s ease-in-out infinite; color: rgba(201,161,90,0.7); }
.wtrack-dots span:nth-child(2) { animation-delay: 0.2s; }
.wtrack-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wtrack-dot {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40%           { opacity: 1;   transform: translateY(-3px); }
}

/* ════════════════════════════════════════════════════
   DRINK MODAL — shared across pages
   Used by cellar-actions.js + includes/drink-modal.php
════════════════════════════════════════════════════ */
@keyframes wtModalIn  { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes wtModalOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(8px) scale(0.98); } }

.wt-drink-modal {
  background: #0a0a0a; border: 1px solid rgba(244,240,232,0.13); box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  outline: none; color: var(--bone); padding: 0;
  width: min(560px, calc(100vw - 2rem)); max-height: min(calc(100dvh - 4rem), 85vh);
  margin: auto; opacity: 0; overflow: hidden;
}
.wt-drink-modal[open] { display: flex; flex-direction: column; animation: wtModalIn 300ms var(--ease) forwards; }
@media (min-width: 601px) { .wt-drink-modal { overflow: visible; } }
.wt-drink-modal.closing { animation: wtModalOut 200ms var(--ease) forwards; }
.wt-drink-modal::backdrop { background: rgba(0,0,0,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fmBackdropIn 300ms var(--ease) forwards; }
.wt-drink-modal.closing::backdrop { animation: fmBackdropOut 200ms var(--ease) forwards; }

.wt-drink-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.wt-drink-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem 0.4rem; background: none; border: 1px solid rgba(244,240,232,0.08); color: var(--text-muted); font-family: 'Inter Tight', sans-serif; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; text-align: center; line-height: 1.3; transition: border-color 150ms var(--ease), color 150ms var(--ease), background 150ms var(--ease); }
.wt-drink-type i { font-size: 1.1rem; }
.wt-drink-type:hover { border-color: rgba(244,240,232,0.2); color: var(--bone); }
.wt-drink-type.active { border-color: rgba(201,161,90,0.5); color: var(--ember); background: rgba(201,161,90,0.06); }

.wt-drink-date-wrap { position: relative; }
.wt-drink-date-input { width: 100%; background: rgba(244,240,232,0.03); border: 1px solid rgba(244,240,232,0.1); color: var(--bone); font-family: 'Inter Tight', sans-serif; font-size: 0.8rem; padding: 0.55rem 2.2rem 0.55rem 0.75rem; outline: none; cursor: pointer; transition: border-color 150ms var(--ease); }
.wt-drink-date-input:focus { border-color: rgba(201,161,90,0.4); }
.wt-drink-date-icon { position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 0.75rem; pointer-events: none; }
.wt-drink-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.25rem; scrollbar-width: thin; scrollbar-color: rgba(201,161,90,0.2) transparent; }
.wt-drink-bottle-section { border-top: 1px solid rgba(244,240,232,0.07); padding-top: 1rem; margin-top: 0.5rem; }
.wt-drink-bottle-section:first-child { border-top: none; }
.wt-drink-bottle-name { font-size: 0.82rem; font-weight: 700; color: var(--bone); letter-spacing: 0.3px; }
.wt-drink-field { margin-top: 0.9rem; }
.wt-drink-field-label { font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.5rem; }
.wt-rating-slider-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
.wt-rating-stars-row { position: relative; display: inline-flex; align-self: center; margin-bottom: 0.15rem; }
.wt-stars-empty { display: flex; gap: 0.35rem; }
.wt-stars-empty i { font-size: 1.2rem; color: rgba(244,240,232,0.12); }
.wt-stars-filled { position: absolute; top: 0; left: 0; display: flex; gap: 0.35rem; overflow: hidden; width: 0%; transition: width 60ms linear; white-space: nowrap; }
.wt-stars-filled i { font-size: 1.2rem; color: var(--ember); flex-shrink: 0; }
.wt-rating-slider-row { display: flex; align-items: center; gap: 0.7rem; }
.wt-rating-range { flex: 1; height: 3px; -webkit-appearance: none; appearance: none; background: linear-gradient(to right, var(--ember) var(--pct,0%), rgba(244,240,232,0.12) var(--pct,0%)); border-radius: 2px; outline: none; cursor: pointer; }
.wt-rating-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ember); border: 2px solid #0a0a0a; cursor: pointer; box-shadow: 0 0 0 3px rgba(201,161,90,0.18); }
.wt-rating-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #0a0a0a; background: var(--ember); cursor: pointer; box-shadow: 0 0 0 3px rgba(201,161,90,0.18); }
.wt-rating-end-label { font-size: 0.7rem; color: var(--text-faint); letter-spacing: 0.04em; flex-shrink: 0; }
.wt-rating-value-row { display: flex; justify-content: center; }
.wt-rating-display { font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--ember); }
.wt-drink-select { width: 100%; background: rgba(244,240,232,0.03); border: 1px solid rgba(244,240,232,0.1); color: var(--bone); font-family: 'Inter Tight', sans-serif; font-size: 0.8rem; padding: 0.55rem 2rem 0.55rem 0.75rem; outline: none; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(244,240,232,0.3)'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; transition: border-color 150ms var(--ease); }
.wt-drink-select:focus { border-color: rgba(201,161,90,0.4); }
.wt-drink-select option { background: #0a0a0a; }
.wt-drink-textarea { width: 100%; background: rgba(244,240,232,0.03); border: 1px solid rgba(244,240,232,0.1); color: var(--bone); font-family: 'Inter Tight', sans-serif; font-size: 0.8rem; padding: 0.55rem 0.75rem; outline: none; resize: vertical; min-height: 72px; transition: border-color 150ms var(--ease); }
.wt-drink-textarea:focus { border-color: rgba(201,161,90,0.4); }
.wt-drink-textarea::placeholder { color: var(--text-ghost); }
.wt-fm-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem 1.25rem 0.5rem; scrollbar-width: thin; scrollbar-color: rgba(201,161,90,0.2) transparent; }
.wt-fm-section { margin-bottom: 1.25rem; }
.wt-fm-section--row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.wt-fm-section-inner { display: flex; flex-direction: column; }
.wt-fm-label { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.5rem; }
.wt-fm-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.wt-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.7rem; background: none; border: 1px solid rgba(244,240,232,0.1); color: var(--text-muted); font-family: 'Inter Tight', sans-serif; font-size: 0.7rem; letter-spacing: 0.05em; cursor: pointer; transition: border-color 150ms var(--ease), color 150ms var(--ease), background 150ms var(--ease); }
.wt-chip:hover { border-color: rgba(244,240,232,0.25); color: var(--bone); }
.wt-chip.active { border-color: rgba(244,240,232,0.4); color: var(--bone); background: rgba(244,240,232,0.05); }
.wt-drink-body .wt-chip.active { border-color: rgba(201,161,90,0.5); color: var(--ember); background: rgba(201,161,90,0.06); }
.wt-maturing-chips { display: grid !important; grid-template-columns: repeat(4, 1fr); }
.wt-maturing-chips .wt-chip { justify-content: center; padding: 0.45rem 0.5rem; white-space: normal; text-align: center; }
.wt-drink-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; padding: 0.875rem 1.25rem; border-top: 1px solid rgba(244,240,232,0.07); flex-shrink: 0; }
.wt-drink-cancel { background: none; border: 1px solid rgba(244,240,232,0.1); color: var(--text-muted); font-family: 'Inter Tight', sans-serif; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 1rem; cursor: pointer; transition: border-color 150ms var(--ease), color 150ms var(--ease); }
.wt-drink-cancel:hover { border-color: rgba(244,240,232,0.25); color: var(--bone); }
.wt-drink-confirm { background: rgba(201,161,90,0.1); border: 1px solid rgba(201,161,90,0.4); color: var(--ember); font-family: 'Inter Tight', sans-serif; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 1.25rem; cursor: pointer; transition: border-color 150ms var(--ease), background 150ms var(--ease); }
.wt-drink-confirm:hover { background: rgba(201,161,90,0.18); border-color: var(--ember); }

/* flatpickr overrides */
.flatpickr-calendar { background: #111 !important; border: 1px solid rgba(244,240,232,0.13) !important; box-shadow: 0 16px 48px rgba(0,0,0,0.6) !important; font-family: 'Inter Tight', sans-serif !important; }
.flatpickr-calendar * { font-family: 'Inter Tight', sans-serif !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--ember) !important; border-color: var(--ember) !important; color: #111 !important; }
.flatpickr-day:hover { background: rgba(201,161,90,0.12) !important; }
.flatpickr-months .flatpickr-month, .flatpickr-weekdays, span.flatpickr-weekday { background: transparent !important; }

@media (max-width: 600px) {
  .wt-drink-modal { margin: 0 auto; width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; border: none; overflow: hidden; }
  .wt-drink-body { padding: 1rem; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); overflow-x: hidden; }
  .wt-drink-date-input, .wt-drink-select, .wt-drink-textarea { box-sizing: border-box; max-width: 100%; }
  .wt-drink-date-wrap { overflow: hidden; }
  .flatpickr-mobile { width: 100%; box-sizing: border-box; min-width: 0; }
  .wt-drink-type-grid { grid-template-columns: repeat(3, 1fr); gap: 0.3rem; }
  .wt-drink-type { font-size: 0.62rem; padding: 0.6rem 0.3rem; gap: 0.3rem; }
  .wt-drink-type i { font-size: 1rem; }
  .wt-drink-field-label { font-size: 0.68rem; }
  .wt-drink-bottle-name { font-size: 0.92rem; }
  .wt-drink-select, .wt-drink-textarea, .wt-drink-date-input { font-size: 1rem; padding: 0.7rem 0.85rem; }
  .wt-drink-select { padding-right: 2.2rem; }
  .wt-rating-end-label { font-size: 0.68rem; }
  .wt-rating-display { font-size: 1.1rem; }
  .wt-rating-range { height: 6px; }
  .wt-rating-range::-webkit-slider-thumb { width: 18px; height: 18px; border: 6px solid transparent; background-clip: content-box; box-shadow: none; border-radius: 50%; box-sizing: content-box; }
  .wt-rating-range::-moz-range-thumb { width: 18px; height: 18px; border: 6px solid transparent; background-clip: content-box; box-shadow: none; border-radius: 50%; box-sizing: content-box; }
  .wt-rating-slider-row { padding: 0.4rem 0; }
  .wt-stars-empty i, .wt-stars-filled i { font-size: 1.5rem; }
}

/* ════════════════════════════════════════════════════
   FIND A BOTTLE
════════════════════════════════════════════════════ */

/* ── Landing: path cards ── */
.fb-wrap { min-height: calc(100vh - 56px - 80px); }

.fb-paths {
  padding: 0 var(--page-gutter) 2rem;
  display: flex;
  flex-direction: column;
}

.fb-path-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border: none;
  border-bottom: 1px solid var(--surface-border);
  background: none;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: color 150ms var(--ease);
}
.fb-path-card:first-child { border-top: 1px solid var(--surface-border); }
.fb-path-card:hover { color: var(--ember); }

.fb-path-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.fb-path-card:hover .fb-path-icon { border-color: rgba(201,161,90,0.35); color: var(--ember); }

.fb-path-body { flex: 1; min-width: 0; }

.fb-path-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
  margin-bottom: 0.2rem;
}

.fb-path-sub {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.fb-path-arrow {
  color: var(--text-ghost);
  font-size: 0.68rem;
  transition: transform 150ms var(--ease), color 150ms var(--ease);
}
.fb-path-card:hover .fb-path-arrow { transform: translateX(4px); color: var(--ember); }

/* ── Wizard ── */
.fb-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem var(--page-gutter);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 56px;
  z-index: 10;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(12px);
}

.fb-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  transition: color 150ms var(--ease);
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-back:hover { color: var(--bone); }
.fb-back i { flex-shrink: 0; }

.fb-progress {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

.fb-wizard-body { padding: 2rem var(--page-gutter) 1.5rem; }

.fb-path-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

.fb-question {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-bottom: 2rem;
}

.fb-options { display: flex; flex-direction: column; }

.fb-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--surface-border);
  background: none;
  color: var(--text-muted);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: color 150ms var(--ease), padding-left 150ms var(--ease);
}
.fb-opt:first-child { border-top: 1px solid var(--surface-border); }
.fb-opt:hover { color: var(--bone); padding-left: 0.375rem; }
.fb-opt:hover .fb-opt-arrow { color: var(--ember); transform: translateX(4px); }
.fb-opt.active {
  color: var(--bone);
  padding-left: 0.75rem;
  background: rgba(201,161,90,0.10);
  box-shadow: inset 2px 0 0 rgba(201,161,90,0.7);
}
.fb-opt.active .fb-opt-arrow { color: var(--ember); }
.fb-opt--all.active { color: var(--ember); }
.fb-opt--dim { opacity: 0.35; }
.fb-opt-arrow {
  color: var(--text-ghost);
  font-size: 0.68rem;
  transition: transform 150ms var(--ease), color 150ms var(--ease);
}

/* ── Continue button ── */
.fb-step-footer {
  position: sticky;
  bottom: 76px;
  padding: 1.5rem var(--page-gutter) 0.5rem;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.98) 28%);
  margin-top: 0.5rem;
}
@media (min-width: 992px) {
  .fb-step-footer { bottom: 0.5rem; }
}
.fb-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(201,161,90,0.1);
  border: 1px solid rgba(201,161,90,0.4);
  color: var(--ember);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}
.fb-continue:hover { background: rgba(201,161,90,0.18); border-color: var(--ember); }

@keyframes fbStepIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.fb-step-in { animation: fbStepIn 220ms var(--ease) both; }

/* ── Results: header ── */
.fb-result-heading {
  font-size: 2.2rem !important;
  line-height: 1.05 !important;
  word-break: break-word;
}

.fb-results-count {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Results: action buttons ── */
.fb-results-actions {
  padding: 1.5rem var(--page-gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.fb-action-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(244,240,232,0.1);
  background: none;
  color: var(--text-muted);
  font-family: 'Inter Tight', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease);
}
.fb-action-btn i { font-size: 1rem; flex-shrink: 0; padding-top: 0.15rem; }
.fb-action-btn:hover { border-color: rgba(244,240,232,0.25); color: var(--bone); }

.fb-action-btn--rack { border-color: rgba(201,161,90,0.3); background: rgba(201,161,90,0.04); }
.fb-action-btn--rack i { color: var(--ember); }
.fb-action-btn--rack:hover { border-color: var(--ember); background: rgba(201,161,90,0.08); color: var(--ember); }

.fb-action-title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
  line-height: 1.3;
}
.fb-action-sub {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* ── Bottle list ── */
.fb-bottle-list { padding: 0 var(--page-gutter) 1.5rem; }
.fb-empty { font-size: 0.8rem; color: var(--text-faint); padding: 1.5rem 0; }

.fb-bottle {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--surface-border);
}
.fb-bottle:first-child { border-top: 1px solid var(--surface-border); }

.fb-bottle-img-wrap {
  width: 36px;
  height: 52px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(244,240,232,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-bottle-img { width: 100%; height: 100%; object-fit: cover; }
.fb-bottle-img-placeholder { color: var(--text-ghost); font-size: 0.8rem; }

.fb-bottle-info { flex: 1; min-width: 0; }

.fb-bottle-nameline {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.fb-bottle-vintage {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ember);
  flex-shrink: 0;
}
.fb-bottle-name {
  font-size: 0.875rem;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-bottle-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  line-height: 1.6;
}
.fb-bottle-location {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Vintage chart ── */
.fb-vintage-wrap { padding: 0 var(--page-gutter) 1.5rem; }

.fb-vc-title {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  margin-bottom: 0.875rem;
}

.fb-vc-scroll {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.fb-vc-scroll::-webkit-scrollbar { display: none; }

.fb-vc-year {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--surface-border);
  min-width: 58px;
  transition: border-color 150ms var(--ease), background 150ms var(--ease);
}
.fb-vc-year--owned {
  border-color: rgba(201,161,90,0.4);
  background: rgba(201,161,90,0.05);
}
.fb-vc-year-num {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.fb-vc-stars {
  font-size: 0.65rem;
  color: rgba(201,161,90,0.3);
  letter-spacing: 0.03em;
}
.fb-vc-year--owned .fb-vc-stars { color: var(--ember); }
.fb-vc-owned-badge {
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

/* ── Start over ── */
.fb-start-over-wrap {
  padding: 1.5rem var(--page-gutter) 2rem;
  border-top: 1px solid var(--surface-border);
}
.fb-start-over {
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0;
  transition: color 150ms var(--ease);
}
.fb-start-over:hover { color: var(--bone); }

/* ════════════════════════════════════════════════════
   SHARED ACTION BAR (reusable across pages)
   Used via includes/action-bar.php
════════════════════════════════════════════════════ */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: rgba(4,4,4,0.97); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201,161,90,0.3);
  transform: translateY(calc(100% + 1px));
  transition: transform 280ms var(--ease);
}
.action-bar.open { transform: translateY(0); }

.action-bar-inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem;
  padding: 0.9rem var(--page-gutter) max(1.4rem, env(safe-area-inset-bottom));
}

.action-bar-label { display: flex; align-items: center; gap: 0.5rem; flex: 1; order: 1; }
.action-bar-icon  { color: var(--ember); font-size: 0.85rem; }
.action-bar-count { font-size: 0.78rem; color: var(--bone); letter-spacing: 0.06em; white-space: nowrap; }

.action-bar-close {
  order: 2; flex-shrink: 0;
  background: none; border: none; color: var(--text-faint);
  font-size: 1.1rem; cursor: pointer; padding: 0.4rem 0.3rem;
  transition: color 150ms var(--ease);
}
.action-bar-close:hover { color: var(--bone); }

.action-bar-btns {
  order: 3; flex: 0 0 100%; margin-left: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: none; border: 1px solid rgba(244,240,232,0.12);
  color: var(--text-muted); font-family: 'Inter Tight', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.8rem 0.5rem; cursor: pointer; white-space: nowrap;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.action-btn:hover { border-color: rgba(244,240,232,0.3); color: var(--bone); }
.action-btn--primary {
  border-color: rgba(201,161,90,0.5); color: var(--ember);
  background: rgba(201,161,90,0.06);
}
.action-btn--primary:hover { border-color: var(--ember); background: rgba(201,161,90,0.12); color: var(--ember); }

@media (min-width: 992px) {
  .action-bar { left: 280px; }
  .action-bar-inner { flex-wrap: nowrap; padding: 0.75rem var(--page-gutter); }
  .action-bar-label { flex: 0 0 auto; order: 0; }
  .action-bar-close { order: 0; margin-left: 0.25rem; font-size: 0.9rem; padding: 0.35rem 0.25rem; }
  .action-bar-btns  { order: 0; flex: 0 0 auto; margin-left: auto; display: flex; gap: 0.4rem; }
  .action-btn       { padding: 0.45rem 0.7rem; font-size: 0.62rem; justify-content: flex-start; }
}

/* =============================================
   ONBOARDING
   ============================================= */

body:has(.onb-wrap) {
  padding-bottom: 0;
}

.onb-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.onb-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--page-gutter);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(244,240,232,0.06);
}

.onb-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.onb-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem var(--page-gutter) 3rem;
}

.onb-card {
  width: 100%;
  max-width: 480px;
}

.onb-card--wide {
  max-width: 560px;
}

.onb-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.onb-step-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}

.onb-step-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.onb-step-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50% !important;
  background: rgba(201,161,90,0.18);
  border: 1px solid rgba(201,161,90,0.25);
}

.onb-step-dots span.active {
  background: var(--ember);
  border-color: var(--ember);
}

.onb-heading {
  margin-bottom: 0.75rem;
}

.onb-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.onb-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.onb-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.onb-field label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.onb-desc-ui {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
}

.onb-btn-full {
  width: 100%;
  justify-content: center;
}

.onb-skip-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.onb-skip-btn {
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem;
}

.onb-skip-btn:hover {
  border-color: transparent;
  color: var(--bone);
  background: none;
}

/* Storage type grid */
.onb-storage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.onb-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 0.5rem;
  background: none;
  border: 1px solid rgba(244,240,232,0.08);
  color: var(--text-muted);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  line-height: 1.35;
  transition: border-color 150ms var(--ease), color 150ms var(--ease), background 150ms var(--ease);
}

.onb-type-card i {
  font-size: 1.35rem;
}

.onb-type-card:hover {
  border-color: rgba(244,240,232,0.22);
  color: var(--bone);
}

.onb-type-card.active {
  border-color: rgba(201,161,90,0.5);
  color: var(--ember);
  background: rgba(201,161,90,0.06);
}

/* Location block */
.onb-location-block {
  border: 1px solid rgba(244,240,232,0.07);
  padding: 1.25rem;
  margin-bottom: 0.625rem;
  background: rgba(244,240,232,0.015);
}

.onb-location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.onb-loc-delete {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid rgba(244,240,232,0.1);
  color: var(--text-muted);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.onb-loc-delete:hover {
  border-color: rgba(229,57,53,0.4);
  color: var(--aging);
}

/* Stepper control */
.onb-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(244,240,232,0.12);
  overflow: hidden;
}

.onb-stepper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  transition: background 150ms var(--ease), color 150ms var(--ease);
  flex-shrink: 0;
}
.onb-stepper-btn:hover { background: rgba(244,240,232,0.06); color: var(--bone); }
.onb-stepper-btn:active { background: rgba(244,240,232,0.1); }

.onb-stepper-val {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.5rem 0.25rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  color: var(--bone);
  border-left: 1px solid rgba(244,240,232,0.1);
  border-right: 1px solid rgba(244,240,232,0.1);
  user-select: none;
}

.onb-config-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244,240,232,0.07);
}

/* Help link */
.onb-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(244,240,232,0.2);
  transition: color 150ms var(--ease);
}
.onb-help-btn:hover { color: var(--bone); }

/* Footer row */
.onb-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.5rem;
}

.onb-footer .action-btn {
  width: 100%;
  justify-content: center;
  padding: 0.8rem;
}

.onb-footer .fm-btn {
  width: 100%;
  justify-content: center;
  margin-top: 2rem;
}

/* Help modal body */
.onb-help-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 65dvh;
  overflow-y: auto;
}

.onb-help-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.onb-help-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--bone);
  line-height: 1.1;
}

.onb-help-text {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Screen 3 CTA row */
.onb-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.onb-cta-row .fm-btn,
.onb-cta-row .action-btn {
  padding: 1rem 1.5rem;
  font-size: 0.7rem;
  justify-content: center;
  width: 100%;
}

/* Desktop */
@media (min-width: 992px) {
  .onb-header { justify-content: flex-start; }

  .onb-body { padding-top: 5rem; align-items: center; }

  .onb-cta-row { flex-direction: row; }

  .onb-cta-row .fm-btn,
  .onb-cta-row .action-btn { flex: 1; width: auto; }
}
