/* ─────────────────────────────────────────────────────────────────────────────
   PlantPlanner — Cute garden planner styles (DaisyUI pastel theme)
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Custom palette overrides on DaisyUI pastel ──────────────────────────── */
[data-theme="pastel"] {
  --pp-accent:       #E8856C;
  --pp-lavender:     #B8A9D4;
  --pp-sage:         #7BAE7F;
  --pp-cream:        #FBF8F3;
  --pp-warm-border:  rgba(0, 0, 0, 0.06);
  --pp-shadow:       0 2px 12px rgba(0,0,0,0.05);
  --pp-shadow-lg:    0 6px 24px rgba(0,0,0,0.08);
}

/* ── Typography ──────────────────────────────────────────────────────────── */
.font-display { font-family: 'Quicksand', 'Inter', sans-serif; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ── Loading & error states ──────────────────────────────────────────────── */

/* Post-login plant loading animation */
.pp-loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1.5rem;
}
.pp-loading-plant {
  width: 120px;
  height: 120px;
}
.pp-stem-leaves {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: pp-plant-grow 2.8s ease-in-out infinite;
}
.pp-flower {
  transform-box: fill-box;
  transform-origin: center center;
  animation: pp-flower-bloom 2.8s ease-in-out infinite;
}
@keyframes pp-plant-grow {
  0%   { transform: scaleY(0); opacity: 0; }
  22%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}
@keyframes pp-flower-bloom {
  0%, 22%  { transform: scale(0); opacity: 0; }
  38%      { transform: scale(1.25); opacity: 1; }
  48%      { transform: scale(1);   opacity: 1; }
  58%      { transform: scale(0.05); opacity: 0; }
  66%      { transform: scale(0.05); opacity: 0; }
  79%      { transform: scale(1.25); opacity: 1; }
  89%      { transform: scale(1);   opacity: 1; }
  100%     { transform: scale(0.05); opacity: 0; }
}
.pp-loading-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  color: oklch(var(--bc) / 0.5);
  animation: pp-text-pulse 2.8s ease-in-out infinite;
}
@keyframes pp-text-pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

.error-banner {
  background: oklch(var(--er) / 0.1);
  border: 1px solid oklch(var(--er) / 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: oklch(var(--er));
  font-size: 0.875rem;
  margin: 1rem 0;
}

/* ── Gardens grid (2-col card layout) ────────────────────────────────────── */
.gardens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

.garden-card {
  background: oklch(var(--b1));
  border: 1px solid var(--pp-warm-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--pp-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.garden-card:hover {
  box-shadow: var(--pp-shadow-lg);
  transform: translateY(-3px);
}
.garden-card-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: oklch(var(--bc));
}
.garden-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.garden-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: oklch(var(--p) / 0.1);
  color: oklch(var(--pc));
  white-space: nowrap;
}
.garden-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .gardens-grid { grid-template-columns: 1fr; }
}

/* ── Builder layout ──────────────────────────────────────────────────────── */
.builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--pp-warm-border);
}
.builder-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}
.builder-title h4 {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.builder-size {
  font-size: 0.85rem;
  color: oklch(var(--bc) / 0.55);
  white-space: nowrap;
}
.builder-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.builder-kebab .menu li > a {
  cursor: pointer;
  font-size: 0.85rem;
}
/* Pin the menu so it sits below the trigger; DaisyUI handles visibility on focus-within. */
.builder-kebab .dropdown-content {
  right: 0;
  top: 100%;
  z-index: 50;
}

/* Conditions strip (row 2 of the toolbar) */
.builder-conditions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid oklch(var(--bc) / 0.06);
}
.cond-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 999px;
  background: oklch(var(--b2));
  color: oklch(var(--bc) / 0.78);
  white-space: nowrap;
  border: 1px solid transparent;
}
.cond-chip-btn {
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cond-chip-btn:hover {
  background: oklch(var(--p) / 0.12);
  border-color: oklch(var(--p) / 0.25);
}
.cond-chip-warn {
  background: oklch(var(--wa) / 0.18);
  color: oklch(var(--wa));
  border-color: oklch(var(--wa) / 0.3);
}

.builder-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: oklch(var(--bc));
  color: oklch(var(--b1));
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 1000;
  pointer-events: none;
}
.builder-toast.show {
  opacity: 0.96;
  transform: translateX(-50%) translateY(0);
}

.builder-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}
.builder-layout .builder-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
@media (min-width: 900px) {
  .builder-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Catalog sidebar */
.catalog-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pp-warm-border);
  border-radius: 16px;
  background: oklch(var(--b2));
  overflow: hidden;
  max-height: none;
}
@media (min-width: 900px) {
  .catalog-sidebar {
    width: 280px;
    min-width: 280px;
    max-height: 78vh;
    position: sticky;
    top: 56px;
  }
}
.catalog-filters {
  flex-shrink: 0;
  padding: 0.75rem;
  border-bottom: 1px solid var(--pp-warm-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.catalog-filters-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: oklch(var(--bc));
  margin-bottom: 0.15rem;
}
.catalog-list-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem;
}
.catalog-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: oklch(var(--bc) / 0.55);
  margin-bottom: 0.4rem;
  padding: 0 0.15rem;
}
.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.4rem;
  /* Reserve space so an empty grid still gets a visible mount point. */
  min-height: 80px;
}
.catalog-empty-banner {
  padding: 1rem 0.85rem;
  margin-bottom: 0.5rem;
  text-align: center;
  background: oklch(var(--p) / 0.08);
  border: 1px dashed oklch(var(--p) / 0.3);
  border-radius: 12px;
  font-size: 0.85rem;
}
.catalog-empty-banner p { margin: 0; }
.catalog-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 10px;
  cursor: grab;
  transition: background 0.15s, transform 0.15s;
  border: 1px solid transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.catalog-tile:hover {
  background: oklch(var(--b3));
  transform: translateY(-1px) scale(1.02);
}
.catalog-tile:active { cursor: grabbing; }
.catalog-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  min-height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  background: oklch(var(--b1));
  border-radius: 8px;
}
.catalog-name {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Builder main area */
.builder-main {
  flex: 1;
  min-width: 0;
}

.render3d-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.render3d-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.render3d-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: oklch(var(--bc) / 0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.style-selector {
  display: flex;
  gap: 0.25rem;
}
.style-btn {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  border: 1px solid var(--pp-warm-border);
  border-radius: 8px;
  background: oklch(var(--b1));
  cursor: pointer;
  color: oklch(var(--bc) / 0.6);
  transition: all 0.15s;
  font-weight: 500;
}
.style-btn:hover {
  border-color: oklch(var(--p) / 0.4);
  color: oklch(var(--p));
}
.style-btn.active {
  background: oklch(var(--p) / 0.15);
  border-color: oklch(var(--p));
  color: oklch(var(--p));
  font-weight: 600;
}

#render3d-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--pp-warm-border);
  background: #E8EEF4;
}

/* Touch drag ghost */
.touch-drag-ghost {
  position: fixed;
  z-index: 1000;
  width: 80px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.touch-drag-ghost img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.touch-drag-ghost span {
  font-size: 0.65rem;
  font-weight: 500;
  color: oklch(var(--bc));
  background: oklch(var(--b1) / 0.9);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}


/* Plant tooltip */
.plant-tooltip {
  position: fixed;
  background: oklch(var(--b1));
  border: 1px solid var(--pp-warm-border);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  max-width: 250px;
  z-index: 100;
  pointer-events: none;
  box-shadow: var(--pp-shadow-lg);
}

/* Dialog / modal styling */
dialog {
  border: none;
  border-radius: 20px;
  max-width: 420px;
  width: 90%;
  padding: 0;
  box-shadow: var(--pp-shadow-lg);
  background: oklch(var(--b1));
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}
dialog .dialog-body {
  padding: 1.5rem;
}
dialog .dialog-header {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Settings theme swatches */
.theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.theme-option:has(input:checked) {
  border-color: oklch(var(--p));
  background: oklch(var(--p) / 0.08);
}
.theme-swatch {
  width: 36px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.swatch-pastel { background: linear-gradient(135deg, #FBF8F3 50%, #7BAE7F 50%); }
.swatch-night { background: linear-gradient(135deg, #1E1D1B 50%, #8FC493 50%); }

/* Auth illustration */
.auth-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.auth-illustration svg {
  max-width: 180px;
  height: auto;
}

/* Empty state */
.empty-state-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem 1rem;
}
.empty-state-illustration svg {
  max-width: 200px;
  height: auto;
}

/* ── Responsive: stack on mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .builder-layout {
    flex-direction: column;
  }
  .catalog-sidebar {
    width: 100%;
    min-width: 0;
  }
  .catalog-list {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
  #render3d-container {
    aspect-ratio: 4 / 3;
  }
}

/* ── Entrance animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.gardens-grid .garden-card {
  animation: fadeUp 220ms ease both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.catalog-list .catalog-tile {
  animation: fadeUp 180ms ease both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.builder-header {
  animation: fadeIn 200ms ease both;
}

/* ── Lucide icon sizing ──────────────────────────────────────────────────── */
.lucide {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  stroke-width: 2;
}

/* ── Auth screen (Supabase OAuth + email) ────────────────────────────────── */
.auth-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
}

.auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: oklch(var(--b1));
  color: oklch(var(--bc));
  border: 1px solid var(--pp-warm-border);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.auth-oauth-btn:hover:not(:disabled) {
  background: oklch(var(--b2));
  border-color: oklch(var(--bc) / 0.25);
}
.auth-oauth-btn:active:not(:disabled) { transform: translateY(1px); }
.auth-oauth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-oauth-logo { width: 18px; height: 18px; flex-shrink: 0; }
.auth-oauth-apple .auth-oauth-logo { color: oklch(var(--bc)); }

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 16px;
  color: oklch(var(--bc) / 0.55);
  font-size: 13px;
  font-weight: 400;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--pp-warm-border);
}
.auth-divider span { padding: 0 12px; }

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: oklch(var(--b2));
  border-radius: 999px;
  padding: 4px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: oklch(var(--bc) / 0.6);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-tab.active {
  background: oklch(var(--b1));
  color: oklch(var(--bc));
  box-shadow: var(--pp-shadow);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: oklch(var(--bc) / 0.7);
}
.form-field input {
  background: oklch(var(--b1));
  color: oklch(var(--bc));
  border: 1px solid var(--pp-warm-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus {
  border-color: oklch(var(--p));
  box-shadow: 0 0 0 3px oklch(var(--p) / 0.15);
}

.auth-submit {
  width: 100%;
  background: oklch(var(--p));
  color: oklch(var(--pc));
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.15s, transform 0.1s;
}
.auth-submit:hover:not(:disabled) { opacity: 0.92; }
.auth-submit:active:not(:disabled) { transform: translateY(1px); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Catalog header (post-redesign) ──────────────────────────────────────── */
.catalog-filters-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.catalog-match-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: oklch(var(--bc) / 0.7);
  cursor: pointer;
  user-select: none;
}
.catalog-match-toggle input {
  accent-color: oklch(var(--p));
  width: 32px;
  height: 16px;
}
/* Read-only conditions strip inside the catalog header. */
.catalog-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem 0.4rem;
  background: oklch(var(--p) / 0.08);
  border-radius: 8px;
  margin-bottom: 0.2rem;
  transition: opacity 0.18s;
}
.catalog-conditions.dim {
  opacity: 0.4;
}
.catalog-conditions .cond-chip {
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  background: oklch(var(--b1));
}

.catalog-search {
  width: 100%;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--pp-warm-border);
  border-radius: 10px;
  background: oklch(var(--b1));
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.catalog-search:focus {
  border-color: oklch(var(--p));
  box-shadow: 0 0 0 3px oklch(var(--p) / 0.15);
}

/* Filter groups (Bloom season, Type) */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.2rem;
}
.filter-group-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: oklch(var(--bc) / 0.5);
  padding: 0 0.15rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.filter-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
  height: 26px;
  padding: 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--pp-warm-border);
  border-radius: 999px;
  background: oklch(var(--b1));
  color: oklch(var(--bc) / 0.75);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.chip:hover {
  border-color: oklch(var(--p) / 0.4);
  color: oklch(var(--p));
}
.chip.active {
  background: oklch(var(--p) / 0.15);
  border-color: oklch(var(--p));
  color: oklch(var(--p));
  font-weight: 600;
}
.chip.toggle {
  font-size: 0.7rem;
  padding: 0 0.6rem;
  justify-content: flex-start;
}

/* Native badge + pollinator icons on tile */
.catalog-tile { position: relative; }
.catalog-tile .native-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: oklch(var(--su) / 0.18);
  color: oklch(var(--su));
  pointer-events: none;
  z-index: 2;
}
/* Pollinator icons render in their own inline row below the name so they no
   longer overlap the plant name text. */
.catalog-tile .pollinator-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3px;
  min-height: 16px;
  color: oklch(var(--bc) / 0.6);
  pointer-events: none;
}

/* ── Plant detail panel ──────────────────────────────────────────────────── */
.plant-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 80;
  animation: fadeIn 160ms ease both;
}
.plant-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  max-width: 90vw;
  background: oklch(var(--b1));
  border-left: 1px solid var(--pp-warm-border);
  box-shadow: var(--pp-shadow-lg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  animation: slideInRight 220ms ease both;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.plant-detail-panel .detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--pp-warm-border);
}
.plant-detail-panel .detail-title {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
}
.plant-detail-panel .close-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: oklch(var(--bc) / 0.6);
}
.plant-detail-panel .close-btn:hover {
  background: oklch(var(--b2));
  color: oklch(var(--bc));
}
.plant-detail-panel .detail-body {
  padding: 0.9rem 1rem 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: oklch(var(--bc) / 0.85);
}
.plant-detail-panel .detail-native-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: oklch(var(--su) / 0.15);
  color: oklch(var(--su));
}
.plant-detail-panel .detail-care {
  margin: 0;
  font-size: 0.85rem;
  color: oklch(var(--bc) / 0.7);
  font-style: italic;
}
.plant-detail-panel .detail-zones,
.plant-detail-panel .detail-description {
  margin: 0;
  line-height: 1.5;
}
.plant-detail-panel .detail-description {
  font-size: 0.85rem;
  color: oklch(var(--bc) / 0.75);
}

/* Bloom strip */
.plant-detail-panel .bloom-strip {
  width: 100%;
  max-width: 200px;
}
.plant-detail-panel .bloom-dots {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2px;
  margin-bottom: 2px;
}
.plant-detail-panel .bloom-labels {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2px;
}
.plant-detail-panel .bloom-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid oklch(var(--bc) / 0.25);
  background: transparent;
  flex: 1 1 9px;
  max-width: 12px;
}
.plant-detail-panel .bloom-dot.on {
  background: oklch(var(--p));
  border-color: oklch(var(--p));
}
.plant-detail-panel .bloom-label {
  flex: 1 1 9px;
  max-width: 12px;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 500;
  color: oklch(var(--bc) / 0.5);
}

/* Pollinator detail row */
.plant-detail-panel .detail-pollinators {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.plant-detail-panel .detail-pollinator-icons {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  color: oklch(var(--p));
}
.plant-detail-panel .detail-pollinator-labels {
  font-size: 0.78rem;
  color: oklch(var(--bc) / 0.7);
}

/* ── Garden zone chip + picker ───────────────────────────────────────────── */
.garden-zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--pp-warm-border);
  border-radius: 999px;
  background: oklch(var(--b1));
  color: oklch(var(--bc) / 0.8);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.garden-zone-chip:hover {
  border-color: oklch(var(--p) / 0.5);
  color: oklch(var(--p));
}
.zone-picker-menu {
  z-index: 200;
  background: oklch(var(--b1));
  border: 1px solid var(--pp-warm-border);
  border-radius: 12px;
  box-shadow: var(--pp-shadow-lg);
  padding: 0.4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  width: 200px;
  max-height: 220px;
  overflow-y: auto;
}
.zone-picker-item {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: oklch(var(--bc) / 0.8);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.zone-picker-item:hover {
  background: oklch(var(--p) / 0.1);
  color: oklch(var(--p));
}
.zone-picker-item.active {
  background: oklch(var(--p) / 0.18);
  color: oklch(var(--p));
  border-color: oklch(var(--p) / 0.5);
  font-weight: 600;
}

@media (max-width: 600px) {
  .plant-detail-panel {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ── Iteration 2: companion-planting warnings ───────────────────────────── */
.companion-chips-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.companion-chips-layer button { pointer-events: auto; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,.25); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.companion-chip-warning { background: #f5b800; color: #2b1d00; }
.companion-chip-good    { background: #16a34a; color: white; }
.companion-chip-warning i, .companion-chip-good i { width: 12px; height: 12px; }

.companion-popover { background: var(--bg-card, white); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 10px 12px; max-width: 240px; box-shadow: 0 6px 24px rgba(0,0,0,.15); z-index: 60; }
.companion-popover-close { float: right; background: transparent; border: 0; cursor: pointer; padding: 2px; }
.companion-popover-row { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border, #f0f0f0); }
.companion-popover-row:last-child { border-bottom: 0; }
.companion-popover-thumb { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.companion-popover-text { flex: 1; min-width: 0; }
.companion-popover-name { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.companion-popover-pill { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; text-transform: uppercase; }
.companion-popover-pill.good { background: #d1fae5; color: #065f46; }
.companion-popover-pill.bad  { background: #fee2e2; color: #991b1b; }
.companion-popover-reason { font-size: 12px; color: var(--text-muted, #6b7280); margin-top: 2px; }
.companion-popover-dismiss { background: transparent; border: 0; padding: 2px 0; margin-top: 4px; font-size: 11px; color: var(--text-muted, #6b7280); cursor: pointer; text-decoration: underline; }

.tile-companion-badge { position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 0 0 2px white; pointer-events: none; }
.tile-companion-badge.good { background: #16a34a; color: white; left: 4px; }
.tile-companion-badge.bad  { background: #dc2626; color: white; left: 22px; }
.tile-companion-badge i { width: 10px; height: 10px; }
.catalog-tile { position: relative; }

/* Catalog legend (?) trigger + popover */
.catalog-legend-btn {
  background: transparent;
  border: 0;
  padding: 0 0 0 0.25rem;
  cursor: pointer;
  color: oklch(var(--bc) / 0.5);
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}
.catalog-legend-btn:hover { color: oklch(var(--p)); }
.catalog-legend-panel .legend-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: oklch(var(--bc) / 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.85rem 0 0.4rem;
}
.catalog-legend-panel .legend-section-title:first-child { margin-top: 0; }
.catalog-legend-panel .legend-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.35rem 0;
}
.catalog-legend-panel .legend-icon {
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: oklch(var(--bc) / 0.7);
}
.catalog-legend-panel .legend-icon i { width: 18px; height: 18px; }
.catalog-legend-panel .legend-text { flex: 1; min-width: 0; }
.catalog-legend-panel .legend-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: oklch(var(--bc));
}
.catalog-legend-panel .legend-desc {
  font-size: 0.78rem;
  color: oklch(var(--bc) / 0.7);
  line-height: 1.35;
}
.catalog-legend-panel .legend-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.catalog-legend-panel .legend-badge i { width: 12px; height: 12px; }
.catalog-legend-panel .legend-badge-good { background: #16a34a; }
.catalog-legend-panel .legend-badge-bad { background: #dc2626; }
.catalog-legend-panel .legend-badge-native {
  background: oklch(var(--su) / 0.18);
  color: oklch(var(--su));
}
.catalog-legend-panel .legend-disk {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.55;
}
.catalog-legend-panel .legend-disk-ok  { background: #4ade80; }
.catalog-legend-panel .legend-disk-bad { background: #ef4444; }

.detail-companions { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.detail-companion-row .detail-companion-label { font-size: 12px; font-weight: 600; color: var(--text-muted, #6b7280); margin-bottom: 4px; }
.detail-companion-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.detail-companion-chip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 4px 8px 4px 4px; border: 1px solid var(--border, #e5e7eb); border-radius: 999px; background: white; font-size: 12px; cursor: pointer; }
.detail-companion-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.detail-companion-chip.good { border-color: #86efac; }
.detail-companion-chip.bad  { border-color: #fca5a5; }

/* === iter 4: bloom calendar strip === */
.bloom-calendar {
  width: 100%;
  border-top: 1px solid var(--border, #e5e7eb);
  background: var(--bg-card, #fff);
  margin-top: 12px;
  font-size: 13px;
}
.bloom-calendar-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(12, minmax(20px, 1fr));
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}
.bloom-calendar-header > .bloom-calendar-aggregate { display: contents; }
.bloom-calendar-toggle { background: transparent; border: 0; cursor: pointer; padding: 2px; margin-right: 4px; vertical-align: middle; }
.bloom-calendar-title { font-weight: 600; }
.bloom-calendar-count { color: var(--text-muted, #6b7280); font-size: 11px; margin-left: 6px; }
.bloom-calendar-month-label { text-align: center; font-size: 10px; color: var(--text-muted, #6b7280); }
.bloom-calendar-aggregate-cell {
  height: 12px; border-radius: 3px;
  background: #16a34a; /* same primary as .bloom-dot.on */
  border: 1px solid rgba(22,163,74,0.25);
  margin: 2px;
}
.bloom-calendar-aggregate-cell[data-intensity="0"] { background: transparent; }
.bloom-calendar-body {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border, #f0f0f0);
  padding: 4px 12px 8px;
}
.bloom-calendar-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(12, minmax(20px, 1fr));
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.bloom-calendar-row-label {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bloom-calendar-row-label img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bloom-calendar .bloom-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid oklch(var(--bc) / 0.25);
  background: transparent;
  margin: 0 auto;
}
.bloom-calendar .bloom-dot.on {
  background: oklch(var(--p));
  border-color: oklch(var(--p));
}
.bloom-calendar-empty { padding: 12px; color: var(--text-muted, #6b7280); font-style: italic; }

@media (max-width: 600px) {
  .bloom-calendar-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bloom-calendar-row { min-width: 480px; }
  .bloom-calendar-row-label { position: sticky; left: 0; background: var(--bg-card, #fff); z-index: 1; }
  .bloom-calendar-header { min-width: 480px; overflow-x: auto; }
}

/* === iter 5: year scrubber === */
.year-scrubber {
  display: inline-flex;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border, #e5e7eb);
  padding: 2px;
  margin-left: auto;
}
.year-pill {
  background: transparent;
  border: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
}
.year-pill.active {
  background: var(--bg-card, #fff);
  color: var(--text, #111);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.year-pill:hover:not(.active) { color: var(--text, #111); }

/* === iter 6: shade warning pill === */
.companion-popover-pill.shade {
  background: #fed7aa; /* orange-200 */
  color: #9a3412;     /* orange-800 */
}

/* ─────────────────────────────────────────────────────────────────────── */
/* New-Garden wizard                                                      */
/* ─────────────────────────────────────────────────────────────────────── */

.wizard-page {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0 2rem 0;
}
.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wizard-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(var(--bc) / 0.5);
}
.wizard-progress {
  display: flex;
  gap: 6px;
  align-items: center;
}
.wizard-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: oklch(var(--bc) / 0.1);
  transition: background 0.18s;
}
.wizard-dot.done   { background: oklch(var(--p) / 0.5); }
.wizard-dot.active { background: oklch(var(--p)); }

.wizard-title h3 {
  margin: 0 0 0.25rem 0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
}
.wizard-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: oklch(var(--bc) / 0.6);
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Two-column type picker (wizard step 1). Stacks to single column on
   narrow viewports. */
.wizard-options-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.6rem;
}
.wizard-options-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wizard-options-col-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(var(--bc) / 0.55);
  padding: 0 0.2rem 0.15rem;
  border-bottom: 1px solid var(--pp-warm-border);
  margin-bottom: 0.2rem;
}
@media (max-width: 600px) {
  .wizard-options-2col { grid-template-columns: 1fr; }
}
.wizard-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: oklch(var(--b1));
  border: 1.5px solid var(--pp-warm-border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.wizard-option:hover {
  border-color: oklch(var(--p) / 0.4);
}
.wizard-option:active {
  transform: translateY(1px);
}
.wizard-option.active {
  border-color: oklch(var(--p));
  background: oklch(var(--p) / 0.08);
}
.wizard-option-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}
.wizard-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.wizard-option-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: oklch(var(--bc));
}
.wizard-option-desc {
  font-size: 0.8rem;
  color: oklch(var(--bc) / 0.6);
  line-height: 1.3;
}

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.wizard-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.wizard-field-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: oklch(var(--bc) / 0.7);
}
.wizard-field-row {
  display: flex;
  gap: 0.5rem;
}
.wizard-field-row .wizard-field { flex: 1; }

.wizard-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.wizard-preset {
  flex: 1 0 calc(50% - 0.2rem);
  padding: 0.55rem 0.65rem;
  background: oklch(var(--b1));
  border: 1.5px solid var(--pp-warm-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wizard-preset:hover { border-color: oklch(var(--p) / 0.4); }
.wizard-preset.active {
  border-color: oklch(var(--p));
  background: oklch(var(--p) / 0.1);
  color: oklch(var(--p));
}

.wizard-location-set {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: oklch(var(--su) / 0.1);
  border: 1.5px solid oklch(var(--su) / 0.3);
}
.wizard-location-set-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: oklch(var(--su));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wizard-location-set-value {
  font-size: 1rem;
  font-weight: 600;
}
.wizard-location-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.6rem 1rem;
  border: 1.5px dashed var(--pp-warm-border);
  border-radius: 12px;
  text-align: center;
  background: oklch(var(--b1));
}

.wizard-match-pill {
  align-self: flex-start;
  padding: 0.45rem 0.85rem;
  background: oklch(var(--su) / 0.12);
  color: oklch(var(--su));
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
}

.wizard-review {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem;
  background: oklch(var(--b1));
  border: 1px solid var(--pp-warm-border);
  border-radius: 12px;
}
.wizard-review-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid oklch(var(--bc) / 0.06);
}
.wizard-review-row:last-child { border-bottom: 0; }
.wizard-review-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: oklch(var(--bc) / 0.6);
}
.wizard-review-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: oklch(var(--bc));
}
.wizard-review-edit {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: oklch(var(--p));
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}
.wizard-review-edit:hover { background: oklch(var(--p) / 0.1); }

.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--pp-warm-border);
  margin-top: 0.5rem;
}

/* Location picker modal */
.pp-location-dialog::backdrop { background: rgba(0,0,0,0.35); }
.pp-location-dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: oklch(var(--b1));
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.pp-location-dialog .dialog-body { padding: 1.1rem; }
.pp-location-dialog .dialog-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────── */
/* Round-2 additions                                                       */
/* ─────────────────────────────────────────────────────────────────────── */

/* Wizard note (e.g. "Rain isn't an option for indoor planters") */
.wizard-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: oklch(var(--bc) / 0.6);
  font-style: italic;
}

/* Settings dialog account fieldset */
.settings-account legend { color: oklch(var(--er) / 0.85); }
.settings-account .btn-error.btn-outline {
  color: oklch(var(--er));
  border-color: oklch(var(--er) / 0.4);
}

/* Zone picker — US tile-grid map + descriptive list */
.pp-us-map {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
  margin-top: 0.6rem;
  padding: 0.4rem;
  background: oklch(var(--b2));
  border-radius: 10px;
}
.pp-state {
  aspect-ratio: 1;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
  padding: 0;
  font-family: inherit;
}
.pp-state:hover {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  border-color: rgba(0,0,0,0.4);
}
.pp-state.selected {
  outline: 3px solid oklch(var(--p));
  outline-offset: 1px;
  transform: scale(1.1);
  z-index: 1;
}

.pp-zone-callout {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  margin-top: 0.6rem;
  background: oklch(var(--b1));
  border: 1px solid var(--pp-warm-border);
  border-radius: 10px;
  font-size: 0.85rem;
}
.pp-zone-callout.show { display: flex; }
.pp-zone-callout strong { font-weight: 600; }

.pp-zone-confirm-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.6rem;
}

.pp-zone-list-details { margin-top: 1rem; }
.pp-zone-list-summary {
  font-size: 0.82rem;
  font-weight: 500;
  color: oklch(var(--bc) / 0.7);
  cursor: pointer;
  padding: 0.3rem 0;
}
.pp-zone-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.4rem;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--pp-warm-border);
  border-radius: 8px;
  padding: 0.3rem;
}
.pp-zone-row {
  display: grid;
  grid-template-columns: 18px 60px 88px 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  color: oklch(var(--bc));
  text-align: left;
}
.pp-zone-row:hover { background: oklch(var(--p) / 0.08); }
.pp-zone-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}
.pp-zone-row-code  { font-weight: 600; }
.pp-zone-row-temp  { color: oklch(var(--bc) / 0.65); }
.pp-zone-row-label { color: oklch(var(--bc) / 0.7); }

/* Wizard step 1 — type cards above, size controls + full-width preview below. */
.wizard-size-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--pp-warm-border);
}
.wizard-size-controls { display: flex; flex-direction: column; gap: 0.6rem; }
.wizard-size-controls > .wizard-field-label {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: -0.1rem;
}

.wizard-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  width: 100%;
}
.wizard-preview-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(var(--bc) / 0.55);
}
.wizard-preview-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  max-height: 60vh;
  border-radius: 12px;
  overflow: hidden;
  background: oklch(var(--b2));
  border: 1px solid var(--pp-warm-border);
}
.wizard-preview-caption {
  font-size: 0.78rem;
  color: oklch(var(--bc) / 0.7);
  text-align: center;
}

@media (max-width: 600px) {
  .wizard-preview-canvas { aspect-ratio: 4 / 3; min-height: 180px; }
}

/* Wizard review — editable name input above the summary rows. */
.wizard-review-name {
  margin: 0.6rem 0 0.8rem;
}
.wizard-review-name .wizard-field { display: flex; flex-direction: column; gap: 0.25rem; }
.wizard-review-name input { width: 100%; }

/* ── Shopping step ─────────────────────────────────────────────────────── */
.shopping-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 5rem;
}
.shopping-header h3 {
  margin: 0.4rem 0 0.2rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}
.shopping-subtitle {
  font-size: 0.85rem;
  color: oklch(var(--bc) / 0.65);
  margin: 0 0 0.6rem;
}
.shopping-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0.6rem;
}
.shopping-search input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  font-size: 0.95rem;
  background: oklch(var(--b1));
}
.shopping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}
.shopping-loading,
.shopping-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: oklch(var(--bc) / 0.55);
}
.shopping-card {
  position: relative;
  background: oklch(var(--b1));
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.shopping-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: oklch(var(--p) / 0.5);
}
.shopping-card.picked {
  border-color: oklch(var(--p));
  box-shadow: 0 0 0 2px oklch(var(--p) / 0.4);
}
.shopping-card-media {
  aspect-ratio: 4 / 3;
  background: oklch(var(--b2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.shopping-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shopping-card-img-placeholder {
  font-size: 2.2rem;
}
.shopping-card-body {
  padding: 0.6rem 0.7rem;
}
.shopping-card-title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
}
.shopping-card-sub {
  font-size: 0.75rem;
  color: oklch(var(--bc) / 0.55);
  margin-top: 0.1rem;
}
.shopping-card-bullets {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: oklch(var(--bc) / 0.7);
  line-height: 1.3;
}
.shopping-card-heart {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(var(--b1) / 0.92);
  border: 1px solid oklch(var(--bc) / 0.15);
  color: oklch(var(--bc) / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.shopping-card-heart:hover { transform: scale(1.08); }
.shopping-card.picked .shopping-card-heart {
  color: oklch(var(--p));
  background: oklch(var(--b1));
}

/* Browser tab — search row + filter panel + two-button card actions */
.browser-controls {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.browser-controls .browser-search-input {
  flex: 1 1 auto;
  min-width: 0;
}
.browser-filter-panel {
  margin-top: 0.6rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  border-radius: 0.75rem;
  background: oklch(var(--b1));
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.browser-zone-input {
  height: 28px;
  padding: 0 0.6rem;
  font-size: 0.78rem;
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  border-radius: 6px;
  background: oklch(var(--b1));
  width: 8rem;
}
.browser-filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.1rem;
}

.browser-card-actions {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.browser-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(var(--b1) / 0.92);
  border: 1px solid oklch(var(--bc) / 0.15);
  color: oklch(var(--bc) / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.browser-action:hover { transform: scale(1.08); }
.browser-action.plant-action.on    { color: oklch(var(--su)); background: oklch(var(--b1)); }
.browser-action.favorite-action.on { color: oklch(var(--p));  background: oklch(var(--b1)); }
.browser-detail-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}

/* Import view (standalone catalog-fill) */
.import-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.import-header h3 {
  margin: 0.6rem 0 0.25rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
}
.import-subtitle {
  font-size: 0.85rem;
  color: oklch(var(--bc) / 0.65);
  margin: 0;
}
.import-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  border-radius: 0.85rem;
  background: oklch(var(--b1));
}
.import-actions {
  display: flex;
  justify-content: flex-end;
}

/* Wizard step 1 — consolidated filters */
.wizard-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.4rem 0 0.4rem;
}
.wizard-field-hint {
  font-size: 0.65rem;
  font-weight: 400;
  color: oklch(var(--bc) / 0.5);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.4rem;
}
.wizard-option-pill {
  display: inline-block;
  padding: 0 0.4rem;
  margin-left: 0.4rem;
  border-radius: 999px;
  background: oklch(var(--p) / 0.15);
  color: oklch(var(--p));
  font-size: 0.65rem;
  font-weight: 600;
  vertical-align: middle;
}

/* Library detail — assign-to-planter picker */
.library-assign-chip { cursor: pointer; }
.library-assign-chip[disabled] { opacity: 0.6; cursor: progress; }
.library-assign-loading {
  font-size: 0.78rem;
  color: oklch(var(--bc) / 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.shopping-footer {
  position: sticky;
  bottom: 0;
  background: oklch(var(--b1) / 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  padding: 0.65rem 0.85rem;
  margin: 0.5rem -1rem -1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.shopping-count {
  font-size: 0.85rem;
  color: oklch(var(--bc) / 0.7);
}

/* Detail panel slide-in (re-uses shopping-detail-* classes) */
.shopping-detail-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 60;
}
.shopping-detail-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 90vw);
  background: oklch(var(--b1));
  z-index: 61;
  overflow-y: auto;
  box-shadow: -8px 0 28px rgba(0,0,0,0.18);
  animation: slide-in-right 0.2s ease-out;
}
@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.shopping-detail-close {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: oklch(var(--b2));
  border: 0;
  cursor: pointer;
}
.shopping-detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.shopping-detail-body {
  padding: 1rem 1.2rem 1.6rem;
}
.shopping-detail-bullets {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0.8rem;
  row-gap: 0.3rem;
  margin: 0.8rem 0;
  font-size: 0.85rem;
}
.shopping-detail-bullets dt { color: oklch(var(--bc) / 0.55); font-weight: 500; }
.shopping-detail-bullets dd { min-width: 0; overflow-wrap: anywhere; }
.shopping-detail-bullets dd.dd--missing {
  color: oklch(var(--bc) / 0.4);
  font-style: italic;
}
/* Tighter spacing variant for the new sectioned layout — keep single
   column so long labels never push the popup body wider than the panel
   (panel is min(420px,90vw); a 2-column grid overflows on phones). */
.shopping-detail-bullets-2col {
  row-gap: 0.25rem;
  margin: 0.4rem 0 0.7rem;
  font-size: 0.82rem;
}
.shopping-detail-sci, .shopping-detail-family { font-size: 0.8rem; color: oklch(var(--bc) / 0.6); }
.shopping-detail-sowing { font-size: 0.85rem; color: oklch(var(--bc) / 0.75); }
.shopping-detail-section-label {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(var(--bc) / 0.55);
}
.plant-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0.6rem;
}
.plant-detail-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: oklch(var(--b2));
  color: oklch(var(--bc) / 0.78);
}
.plant-detail-tag-empty {
  color: oklch(var(--bc) / 0.4);
  font-style: italic;
}
.plant-detail-description {
  font-size: 0.85rem;
  line-height: 1.45;
  color: oklch(var(--bc) / 0.8);
  margin: 0.6rem 0 0.4rem;
}
.plant-detail-description-empty {
  color: oklch(var(--bc) / 0.45);
  font-style: italic;
}
.plant-detail-source {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  color: oklch(var(--bc) / 0.5);
  font-style: italic;
  text-align: center;
}

/* Properties chip row — yes/no/unknown booleans rendered as pills above
   the bullet sections. */
.plant-detail-properties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.8rem;
}
.plant-detail-prop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.plant-detail-prop-chip-on {
  background: oklch(var(--su) / 0.15);
  color: oklch(var(--su));
  border-color: oklch(var(--su) / 0.3);
}
.plant-detail-prop-chip-off {
  background: oklch(var(--b2));
  color: oklch(var(--bc) / 0.55);
  text-decoration: line-through;
  text-decoration-color: oklch(var(--bc) / 0.35);
}
.plant-detail-prop-chip-unknown {
  background: transparent;
  color: oklch(var(--bc) / 0.4);
  border-color: oklch(var(--bc) / 0.18);
  font-style: italic;
}

/* Refresh button — bottom-anchored recovery action when the API call
   was missed at import (or the row is otherwise sparse). */
.plant-detail-refresh {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid oklch(var(--bc) / 0.12);
}
.plant-detail-refresh .btn { width: 100%; }

/* ── Builder shortlist sidebar ─────────────────────────────────────────── */
.shortlist-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem;
}
.shortlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.shortlist-header h4 {
  margin: 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.shortlist-hint {
  font-size: 0.72rem;
  color: oklch(var(--bc) / 0.55);
  line-height: 1.3;
}
.shortlist-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 0.5rem;
}
.shortlist-empty {
  font-size: 0.8rem;
  color: oklch(var(--bc) / 0.55);
  text-align: center;
  padding: 1rem 0.5rem;
}
.shortlist-tile {
  position: relative;
  background: oklch(var(--b1));
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  border-radius: 10px;
  padding: 0.4rem;
  cursor: grab;
  text-align: center;
  transition: transform 0.12s, box-shadow 0.12s;
}
.shortlist-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.shortlist-tile.dragging { opacity: 0.5; }
.shortlist-tile-img {
  aspect-ratio: 1 / 1;
  background: oklch(var(--b2));
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.shortlist-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.shortlist-tile-name {
  font-size: 0.72rem;
  margin-top: 0.3rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shortlist-tile-placed {
  position: absolute;
  top: -4px; right: -4px;
  background: oklch(var(--p));
  color: oklch(var(--pc));
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}

/* ── 2D top-down render container ──────────────────────────────────────── */
.render2d-pane {
  position: relative;
  background: oklch(var(--b2));
  border-radius: 12px;
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  overflow: hidden;
  width: 100%;
}
.render2d-header {
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  color: oklch(var(--bc) / 0.65);
  border-bottom: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  background: oklch(var(--b1));
}
.render2d-container {
  width: 100%;
  height: clamp(320px, 60vh, 720px);
  position: relative;
}
.render2d-svg { display: block; }

/* ── Plant-selection loading orchestration (5-step to-do list) ─────────── */
.shopping-fill-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 60vh;
}
.shopping-fill-card {
  background: oklch(var(--b1));
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.06);
}
.shopping-fill-card h3 {
  margin: 0 0 0.3rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}
.shopping-fill-subtitle {
  margin: 0 0 1.1rem;
  color: oklch(var(--bc) / 0.65);
  font-size: 0.9rem;
}
.shopping-fill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.shopping-fill-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--pp-warm-border, oklch(var(--b3)));
}
.shopping-fill-item:last-child { border-bottom: 0; }
.shopping-fill-icon {
  flex: 0 0 auto;
  width: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.shopping-fill-icon i { width: 1.2rem; height: 1.2rem; }
.shopping-fill-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.shopping-fill-label {
  font-size: 0.92rem;
  color: oklch(var(--bc));
}
.shopping-fill-item-pending .shopping-fill-label { color: oklch(var(--bc) / 0.55); }
.shopping-fill-item-running .shopping-fill-label { color: oklch(var(--p)); font-weight: 500; }
.shopping-fill-item-ok .shopping-fill-label      { color: oklch(var(--bc)); }
.shopping-fill-detail {
  font-size: 0.8rem;
  color: oklch(var(--bc) / 0.7);
}
.shopping-fill-detail-error {
  color: oklch(var(--er));
}
.shopping-fill-footer {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
}
.shopping-fill-warn {
  margin: 0;
  font-size: 0.82rem;
  color: oklch(var(--wa));
}

/* ── My Plants Library ────────────────────────────────────────────────── */
.library-view { display: flex; flex-direction: column; gap: 0.6rem; }
.library-total {
  font-size: 0.78rem;
  color: oklch(var(--bc) / 0.55);
}

.library-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.library-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: oklch(var(--b1));
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.library-tab:hover { border-color: oklch(var(--p) / 0.5); }
.library-tab.active {
  background: oklch(var(--p) / 0.12);
  border-color: oklch(var(--p));
  color: oklch(var(--p));
  font-weight: 600;
}
.library-tab-count {
  font-size: 0.72rem;
  color: oklch(var(--bc) / 0.55);
  background: oklch(var(--bc) / 0.06);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}
.library-tab.active .library-tab-count {
  background: oklch(var(--p) / 0.18);
  color: oklch(var(--p));
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
.library-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
}
.library-card-media {
  aspect-ratio: 16 / 9;
  background: oklch(var(--b2));
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.library-card-media img,
.library-card-img { width: 100%; height: 100%; object-fit: cover; }
.library-card-img-placeholder { font-size: 2rem; }
.library-card-body { display: flex; flex-direction: column; gap: 0.3rem; }
.library-card-sub { font-size: 0.78rem; color: oklch(var(--bc) / 0.6); }
.library-card-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.library-card-planters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.72rem;
}

.library-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.library-pill-current  { background: oklch(var(--su) / 0.15); color: oklch(var(--su)); border-color: oklch(var(--su) / 0.35); }
.library-pill-wishlist { background: oklch(var(--p) / 0.13);  color: oklch(var(--p));  border-color: oklch(var(--p) / 0.35); }
.library-pill-former   { background: oklch(var(--bc) / 0.08); color: oklch(var(--bc) / 0.7); border-color: oklch(var(--bc) / 0.18); }

.library-planter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: oklch(var(--b2));
  border: 1px solid var(--pp-warm-border, oklch(var(--b3)));
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
button.library-planter-chip { font-family: inherit; color: inherit; }
.library-planter-chip:hover { border-color: oklch(var(--p) / 0.5); background: oklch(var(--p) / 0.08); }
.library-planter-chip-warn {
  background: oklch(var(--wa) / 0.13);
  border-color: oklch(var(--wa) / 0.4);
  color: oklch(var(--wa));
  cursor: default;
}

/* Detail panel additions (reuses .shopping-detail-* base) */
.library-detail-section { margin-top: 1rem; }
.library-detail-section:first-of-type { margin-top: 0.6rem; }
.library-detail-row { display: flex; gap: 0.6rem; }
.library-detail-row .library-detail-field { flex: 1; min-width: 0; }
.library-detail-field { display: flex; flex-direction: column; gap: 0.25rem; }
.library-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(var(--bc) / 0.55);
}
.library-detail-status {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.library-status-btn {
  flex: 1 1 calc(33.333% - 0.25rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem 0.6rem;
  background: oklch(var(--b1));
  border: 1.5px solid var(--pp-warm-border, oklch(var(--b3)));
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.library-status-btn:hover { border-color: oklch(var(--p) / 0.5); }
.library-status-btn.active { border-color: oklch(var(--p)); background: oklch(var(--p) / 0.1); color: oklch(var(--p)); font-weight: 600; }
.library-detail-planters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

/* Inline zone picker on wizard step 4. The picker emits its own classes
   (.pp-us-map, .pp-zone-list, etc.) — these are the wizard-step adjustments. */
.wizard-zone-picker {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.wizard-zone-picker .zone-picker-intro {
  margin: 0;
  font-size: 0.85rem;
  color: oklch(var(--bc) / 0.65);
}

/* ── Bottom navigation bar ───────────────────────────────────────────────── */

/* Ensure the btm-nav spans the full viewport width regardless of the
   max-w-[920px] content constraint applied to <main>. */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
}
#bottom-nav .btm-nav {
  position: relative;      /* override DaisyUI's fixed — parent is already fixed */
  width: 100%;
  border-top: 1px solid oklch(var(--b3));
  background: oklch(var(--b1));
}
/* Tighten label text for narrow screens */
#bottom-nav .btm-nav-label {
  font-size: 0.65rem;
  line-height: 1.1;
}
/* Active tab accent */
#bottom-nav .btm-nav button.active {
  color: oklch(var(--p));
}
#bottom-nav .btm-nav button.active .btm-nav-label {
  color: oklch(var(--p));
  font-weight: 600;
}
