:root {
  color-scheme: light;
  --paper: #FCFBF8;
  --card: #FFFFFF;
  --bg: #FCFBF8;
  --bg-strong: #F2F1EE;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: rgba(255, 255, 255, 0.99);
  --text: #1F1D18;
  --text-soft: #656055;
  --accent: #4F5B43;
  --accent-strong: #333D2D;
  --accent-warm: #A05A2C;
  --soil: #7A5A3F;
  --border: #DAD6CE;
  --line: rgba(31, 29, 24, 0.1);
  --shadow: 0 8px 32px rgba(31, 29, 24, 0.08);
  --shadow-card: 0 2px 10px rgba(31, 29, 24, 0.05);
  --shadow-soft: 0 1px 6px rgba(31, 29, 24, 0.035);
  --transition-base: 160ms ease;
  --radius-xl: 10px;
  --radius-lg: 8px;
  --radius-md: 6px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Persona tint system — overridden per role on body */
  --persona-bg: #FFFFFF;
  --persona-bg-strong: #F5F4F0;
  --persona-accent-soft: rgba(31, 29, 24, 0.06);
  --persona-border-tint: rgba(31, 29, 24, 0.0);
  --persona-shell-border: rgba(218, 214, 206, 1);
  --persona-shell-ring: rgba(31, 29, 24, 0.02);
}

body[data-account-state="anonymous"] {
  --persona-bg: #FFFFFF;
  --persona-bg-strong: #F5F4F0;
  --persona-accent-soft: rgba(31, 29, 24, 0.06);
  --persona-shell-border: rgba(218, 214, 206, 1);
  --persona-shell-ring: rgba(31, 29, 24, 0.02);
}

body[data-account-state="searcher"],
body[data-account-state="fresh_this_week_demo"] {
  --persona-bg: #FAF7F0;
  --persona-bg-strong: #F3EFE3;
  --persona-accent-soft: rgba(139, 106, 55, 0.08);
  --persona-shell-border: rgba(191, 176, 146, 0.72);
  --persona-shell-ring: rgba(139, 106, 55, 0.05);
}

body[data-account-state="operator"] {
  --persona-bg: #F3F8F2;
  --persona-bg-strong: #E8F3E6;
  --persona-accent-soft: rgba(60, 90, 55, 0.08);
  --persona-shell-border: rgba(153, 181, 151, 0.72);
  --persona-shell-ring: rgba(60, 90, 55, 0.05);
}

body[data-account-state="partner"] {
  --persona-bg: #FBF7EE;
  --persona-bg-strong: #F4EDD8;
  --persona-accent-soft: rgba(139, 106, 55, 0.10);
  --persona-shell-border: rgba(208, 191, 152, 0.72);
  --persona-shell-ring: rgba(139, 106, 55, 0.05);
}

body[data-account-state="admin"] {
  --persona-bg: #F4F5F6;
  --persona-bg-strong: #EAEBEC;
  --persona-accent-soft: rgba(60, 68, 80, 0.08);
  --persona-shell-border: rgba(176, 183, 191, 0.78);
  --persona-shell-ring: rgba(60, 68, 80, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.76), transparent 34%),
    radial-gradient(circle at 100% 100%, var(--persona-accent-soft), transparent 42%),
    linear-gradient(180deg, var(--persona-bg) 0%, var(--persona-bg-strong) 100%);
  transition: background var(--transition-base);
}

body.has-workflow-modal {
  overflow: hidden;
}

body.auth-page {
  display: block;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1920px, calc(100vw - 28px));
  margin: 0 auto;
  padding: calc(20px + var(--safe-top)) 0 calc(48px + var(--safe-bottom));
}

.page-content {
  display: grid;
  gap: 10px;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 24px - var(--safe-top) - var(--safe-bottom));
  align-items: center;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 1fr) minmax(300px, 0.62fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(200, 195, 185, 0.72);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 16px 42px rgba(33, 27, 18, 0.1);
}

.auth-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  min-width: 0;
  padding: clamp(26px, 3.5vw, 56px);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(252, 251, 248, 0.98) 100%);
}

.auth-copy h1 {
  margin: 0;
  max-width: 10.5ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.95rem, 5.45vw, 5.35rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.auth-copy__lede {
  max-width: 41ch;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.68;
  color: #49463d;
}

.auth-form {
  display: grid;
  gap: 13px;
  max-width: 420px;
}

.auth-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(169, 91, 52, 0.24);
  border-radius: 16px;
  background: rgba(255, 241, 235, 0.92);
  color: #8c4522;
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-submit {
  justify-self: start;
}

.auth-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-art {
  min-height: clamp(560px, 74vh, 900px);
  border: 1px solid rgba(200, 195, 185, 0.7);
  border-radius: 16px;
  background: #f5f3ed;
  overflow: hidden;
}

.auth-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.auth-testimonials {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(200, 195, 185, 0.7);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8f7f4 0%, #f4f2ee 100%);
}

.auth-testimonials__header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #48453c;
}

.auth-testimonials__sprig {
  font-size: 1rem;
  line-height: 1;
  color: #6d7059;
}

.auth-testimonials__header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-quote-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(210, 205, 195, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(33, 27, 18, 0.04);
}

.auth-quote {
  margin: 0;
  display: grid;
  gap: 10px;
}

.auth-quote__mark {
  color: #bcc0ad;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.2rem;
  line-height: 0.8;
}

.auth-quote p {
  margin: 0;
  color: #2f2d27;
  font-size: 0.95rem;
  line-height: 1.58;
  font-style: italic;
}

.auth-quote__author {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(210, 205, 195, 0.72);
}

.auth-quote__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #f5f2ea;
  background: linear-gradient(160deg, #6b7a56 0%, #4f5b43 100%);
}

.auth-quote__author strong,
.auth-quote__author small {
  display: block;
}

.auth-quote__author strong {
  color: #2d2a23;
  font-size: 0.97rem;
  line-height: 1.25;
}

.auth-quote__author small {
  color: #6f6a5c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#header-account-switcher {
  position: relative;
}

.header-account-switcher {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--persona-bg, var(--card));
  box-shadow: var(--shadow-soft);
  transition: background-color var(--transition-base);
}

.header-account-switcher__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
  user-select: none;
}

.header-account-switcher__summary::-webkit-details-marker {
  display: none;
}

.header-account-switcher__identity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  line-height: 1;
}

.header-account-switcher__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-account-switcher__caret {
  color: var(--text-soft);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-account-switcher__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 26px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--persona-bg, var(--card));
  box-shadow: var(--shadow-card);
  z-index: 75;
  transition: background-color var(--transition-base);
}

.header-account-switcher__section {
  display: grid;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 29, 24, 0.08);
}

.header-account-switcher__section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.header-account-switcher__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  width: 100%;
}

.header-account-switcher__item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-account-switcher__item:hover {
  border-color: rgba(184, 178, 168, 0.7);
  background: var(--paper);
}

.header-account-switcher__item.is-active {
  border-color: rgba(79, 91, 67, 0.22);
  background: var(--persona-accent-soft, rgba(79, 91, 67, 0.09));
}

.header-account-switcher__item .persona-badge {
  margin-left: auto;
}

.header-account-switcher__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  font-size: 0.8rem;
  line-height: 1;
  flex: 0 0 auto;
}

.hero-shell {
  position: relative;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--persona-bg, var(--card));
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition-base);
}

.hero-shell__masthead,
.hero-shell__body,
.explore-shell,
.map-column__header,
.panel__header,
.install-callout,
.hero-copy__meta,
.filter-group,
.results-meta,
.selected-card__header,
.selected-card__actions,
.listing-card__meta,
.listing-card__footer,
.map-overlay,
.summary-chips,
.masthead-note {
  display: flex;
}

.hero-shell__masthead,
.map-column__header,
.panel__header,
.results-meta,
.selected-card__actions,
.listing-card__footer,
.install-callout,
.masthead-note {
  align-items: center;
  justify-content: space-between;
}

.hero-shell__masthead {
  position: relative;
  z-index: 82;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  background: var(--persona-bg, var(--card));
  transition: background-color var(--transition-base);
}

.hero-shell__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-shell__toggle {
  min-height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.hero-shell__toggle:hover {
  border-color: #B8B2A8;
  background: var(--paper);
  color: var(--text);
}

.hero-shell__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  gap: 2px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.brand-mark strong,
.hero-copy h1,
.map-column__header h2,
.panel__header h2,
.selected-card__title {
  font-family: "Fraunces", Georgia, serif;
}

.brand-mark__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
}

.brand-mark strong {
  font-size: 1em;
  letter-spacing: 0.01em;
  line-height: 1.04;
  padding-bottom: 0.04em;
  text-transform: none;
  color: var(--text);
  text-shadow: none;
}

.brand-road {
  display: inline-flex;
  width: 1.06em;
  height: 1.06em;
  color: var(--text);
}

.brand-road svg {
  width: 100%;
  height: 100%;
}

.brand-road svg path {
  fill: currentColor;
  stroke: none;
}

.brand-mark small {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.brand-mark small,
.section-label,
.listing-card__town,
.meta-pill span,
.filter-group__label,
.results-meta,
.map-overlay,
.masthead-note,
.selected-card__kicker,
.listing-card__distance,
.listing-card__status,
.listing-card__badge,
.empty-state p {
  color: var(--text-soft);
}

.masthead-note {
  flex-wrap: wrap;
  gap: 10px;
}

.masthead-note span,
.summary-chip,
.meta-pill,
.listing-card__badge,
.selected-card__tier,
.detail-badge,
.map-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(8px);
}

.hero-shell__body {
  gap: 0;
  align-items: stretch;
  min-height: 480px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-shell.is-collapsed {
  padding-bottom: 20px;
}

.hero-shell.is-collapsed .hero-shell__masthead {
  margin-bottom: 0;
}

.hero-shell.is-collapsed .hero-shell__body {
  display: none;
}

.hero-copy,
.hero-art {
  min-width: 0;
}

.hero-art {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-art__editorial {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 84px 42px 42px;
  background: linear-gradient(
    to top,
    rgba(18, 16, 13, 0.82) 0%,
    rgba(18, 16, 13, 0.52) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-art__eyebrow {
  margin: 0 0 16px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-art__editorial .hero-rotator {
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.2rem, 5.8vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.28);
  max-width: 14ch;
  font-weight: 700;
}

.hero-copy {
  flex: 0 0 268px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 36px 26px;
  border-left: 1px solid var(--border);
  background: var(--card);
}

.hero-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hero-photo-strip__tile {
  position: relative;
  margin: 0;
  min-height: 192px;
  max-height: 192px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(35, 32, 27, 0.06);
  background: var(--paper);
}

.hero-photo-strip__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-strip__badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(88, 99, 63, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

.eyebrow,
.section-label,
.filter-group__label,
.selected-card__kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 14px;
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-rotator {
  display: grid;
}

.hero-rotator__sizer,
.hero-rotator__phrase {
  grid-area: 1 / 1;
}

.hero-rotator__sizer {
  visibility: hidden;
}

.hero-rotator__phrase {
  opacity: 0;
  animation: hero-tagline-rotate 21s linear infinite;
  will-change: opacity;
}

.hero-rotator__phrase--1 {
  animation-delay: -2s;
}

.hero-rotator__phrase--2 {
  animation-delay: 7s;
}

.hero-rotator__phrase--3 {
  animation-delay: 14s;
}

@keyframes hero-tagline-rotate {
  0% {
    opacity: 0;
  }

  9.5238% {
    opacity: 1;
  }

  33.3333% {
    opacity: 1;
  }

  42.8571%,
  100% {
    opacity: 0;
  }
}

.hero-copy__lede {
  max-width: none;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.66;
  color: var(--text-soft);
}

.hero-copy__meta,
.summary-chips,
.chip-row,
.selected-card__tags,
.listing-card__tags {
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  padding: 10px 14px;
}

.meta-pill strong,
.summary-chip strong {
  color: var(--text);
}

.install-callout {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 0;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.install-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.install-callout p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}


.header-account-switcher__build-stamp {
  font-size: 0.74rem;
  color: var(--text-soft);
  font-family: ui-monospace, "Cascadia Code", monospace;
  padding: 2px 0;
}

.header-account-switcher__meta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  padding: 4px 0;
}

.header-account-switcher__meta-link:hover {
  text-decoration: underline;
}

.header-account-switcher__meta-link--button {
  border: 0;
  background: none;
  padding: 4px 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.header-account-switcher__section--meta {
  background: var(--persona-accent-soft, rgba(79, 91, 67, 0.04));
  border-radius: 6px;
  padding: 8px;
  border: 1px solid rgba(79, 91, 67, 0.1);
  margin-top: 2px;
  gap: 6px;
  transition: background-color var(--transition-base);
}

.persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 2px 8px 2px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--persona-bg-strong, var(--bg-strong));
  white-space: nowrap;
  transition: background-color var(--transition-base);
}

.lucide-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.lucide-icon--summary {
  width: 15px;
  height: 15px;
}

.lucide-icon--badge {
  width: 12px;
  height: 12px;
}

.lucide-icon--caret {
  width: 14px;
  height: 14px;
}

.lucide-icon--check {
  width: 12px;
  height: 12px;
}

.lucide-icon--link {
  width: 12px;
  height: 12px;
}

/* Category/Produce Icons — Phase 1 SVG System */
.category-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  vertical-align: -0.125em;
}

/* Colored category icons */
.category-icon[data-colored="true"] {
  color: inherit;
}

.category-icon[data-color-category="strawberry"] {
  filter: saturate(1.1);
}

.category-icon[data-color-category="peony"] {
  filter: saturate(1.05);
}

.category-icon[data-color-category="sunflower"] {
  filter: saturate(1.08);
}

/* Monochrome category icons — inherit text color */
.category-icon:not([data-colored="true"]) {
  filter: opacity(0.8);
}

.workflow-card p,
.mini-card p,
.queue-card p,
.workflow-note {
  margin: 0;
  line-height: 1.58;
  color: var(--text-soft);
}

.account-switcher__options,
.workflow-chip-list,
.workflow-actions,
.queue-card__actions,
.workspace-nav,
.workflow-list,
.workflow-stack {
  display: flex;
}

.account-switcher__options,
.workflow-chip-list,
.workflow-actions,
.workspace-nav {
  flex-wrap: wrap;
  gap: 10px;
}

.account-pill,
.workspace-tab {
  display: grid;
  gap: 4px;
  min-width: 120px;
  padding: 9px 10px;
  border: 1px dashed rgba(83, 98, 59, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.36);
  text-align: left;
}

.account-pill strong,
.workspace-tab strong {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-pill span,
.workspace-tab span {
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.account-pill.is-active,
.workspace-tab.is-active {
  border-color: rgba(74, 89, 48, 0.22);
  background: linear-gradient(135deg, rgba(97, 114, 70, 0.08), rgba(169, 91, 52, 0.06));
}

.workspace-tab.is-locked {
  opacity: 0.58;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.button:disabled,
.button.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.button--solid {
  background: #3C4630;
  color: #FCFBF8;
  border-color: #3C4630;
}

.button--solid:hover {
  background: #23201B;
  border-color: #23201B;
}

.button--ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.button--ghost:hover {
  border-color: #B8B2A8;
  background: var(--paper);
}

.button--secondary {
  border-color: var(--border);
  background: var(--paper);
  color: var(--text);
}

.button--secondary:hover {
  border-color: #B8B2A8;
  background: var(--bg-strong);
}

.button--proto {
  min-height: 30px;
  padding: 0 10px;
  border-color: var(--border);
  border-style: dashed;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
}

.button--proto:hover {
  border-color: var(--accent);
  background: rgba(79, 91, 67, 0.06);
  color: var(--accent-strong);
}

.browse-bar {
  border: 1px solid var(--persona-shell-border);
  border-radius: 6px;
  background: var(--persona-bg, var(--card));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.browse-bar__intro {
  display: grid;
  gap: 6px;
  padding: 10px 12px 6px;
}

.featured-discovery__header h2,
.browse-bar__intro h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 1.45vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #2a2b25;
}

.browse-bar__intro p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.browse-bar__shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1.8fr) minmax(132px, 0.58fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
}

.browse-bar__filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(218, 214, 206, 0.86);
  background: rgba(246, 244, 238, 0.8);
  color: var(--text-soft);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.browse-bar__filter-icon:hover {
  border-color: rgba(79, 91, 67, 0.36);
  background: #ffffff;
}

.browse-bar__filter-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.browse-bar__icon {
  flex: 0 0 auto;
}

.browse-bar__field {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid rgba(218, 214, 206, 0.86);
  border-radius: 4px;
  background: rgba(252, 251, 248, 0.92);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.browse-bar__field:focus-within {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 8px 18px rgba(59, 50, 34, 0.05);
}

.browse-bar__field--search {
  grid-column: 2 / 3;
  min-height: 60px;
  padding: 10px 14px;
}

.browse-bar__field span {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.browse-bar__field input,
.browse-bar__field select {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  appearance: none;
}

.browse-bar__field input::placeholder {
  color: #6f7c6f;
}

.browse-bar__field input:focus,
.browse-bar__field select:focus {
  outline: none;
}

.browse-bar__action {
  min-height: 50px;
  min-width: 92px;
  padding: 0 18px;
}

.browse-bar__action.button--solid {
  box-shadow: 0 2px 10px rgba(33, 49, 38, 0.14);
}

.browse-bar__action--search {
  gap: 8px;
}

.browse-bar__action--search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.browse-bar__clear {
  min-height: 42px;
  min-width: auto;
  padding: 0 13px;
  border-color: rgba(218, 214, 206, 0.75);
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  font-size: 0.88rem;
  opacity: 0.82;
}

.browse-bar__clear:hover {
  border-color: #B8B2A8;
  background: var(--paper);
  opacity: 1;
}

#search-discovery-root {
  border-top: 1px solid rgba(31, 29, 24, 0.08);
}

.search-discovery {
  display: grid;
  gap: 8px;
  padding: 8px 12px 12px;
}

.search-discovery__section {
  display: grid;
  gap: 8px;
}

.search-discovery__label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-soft);
}

.search-discovery__card {
  border-color: rgba(218, 214, 206, 0.72);
}

.search-discovery__card strong {
  font-size: 0.95rem;
  color: var(--text);
}

.search-discovery__card span {
  color: var(--text-soft);
}

.map-column,
.sidebar-column,
.panel {
  min-width: 0;
}

.panel,
.map-frame {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.panel--results,
.panel--detail,
.map-frame {
  background: var(--card);
}

.panel--controls,
.panel--platform {
  background: var(--paper);
}

.map-column__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#suggest-route-button {
  min-height: 38px;
  padding: 0 14px;
}

.map-frame {
  overflow: hidden;
  position: relative;
  min-height: 680px;
}

#route-summary {
  margin-top: 12px;
}

.route-summary {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: none;
  padding: 16px;
}

.route-summary--empty {
  background: var(--card);
}

.route-summary__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.route-summary__header h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.route-summary__copy,
.route-summary__footnote {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.92rem;
}

.route-summary__meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-summary__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}

.route-summary__shopping-list {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--paper);
}

.route-summary__shopping-list span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-soft);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1;
}

.route-summary__shopping-tag {
  border-color: var(--accent);
  background: rgba(79, 91, 67, 0.08);
}

.route-summary__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.route-summary__stop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}

.route-summary__order {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #3C4630;
  color: #FCFBF8;
  font-size: 0.76rem;
  font-weight: 800;
}

.route-summary__stop strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.3;
}

.route-summary__stop p {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.route-summary__weather {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--paper);
}
.route-summary__weather-temp,
.route-summary__weather-event {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.route-summary__weather-temp {
  color: var(--text);
}

.route-summary__weather-event {
  color: #2d4f5f;
  border-color: rgba(62, 109, 135, 0.26);
  background: rgba(234, 247, 255, 0.9);
}

.route-summary__weather-story {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.route-summary__stop-tags {
  margin-top: 7px;
}

.route-summary__actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.map-surface {
  width: 100%;
  height: 680px;
}

.map-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.panel--controls {
  padding-bottom: 18px;
}

.search-field,
.select-field {
  display: grid;
  gap: 8px;
  padding: 0 20px;
  margin-bottom: 14px;
}

.search-field span,
.select-field span {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--text);
}

.filter-group {
  display: grid;
  gap: 10px;
  padding: 0 20px;
  margin: 4px 0 12px;
}

.filter-group__label {
  margin-bottom: 0;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  transition: border-color var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.chip.is-active {
  border-color: var(--accent);
  background: rgba(91, 102, 68, 0.1);
  color: var(--accent-strong);
}

.chip span {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.results-meta {
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px;
  font-size: 0.92rem;
}

.panel--platform,
.panel--detail,
.panel--results {
  padding-bottom: 12px;
}

.workspace-nav,
#workflow-panel {
  padding-left: 18px;
  padding-right: 18px;
}

.workspace-nav {
  margin-bottom: 14px;
}

.workflow-stack {
  flex-direction: column;
  gap: 14px;
}

.workflow-card,
.mini-card,
.queue-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: none;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.workflow-card,
.mini-card {
  padding: 16px;
}

#workflow-modal-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.workflow-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: auto;
}

.workflow-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(33, 49, 38, 0.28);
  backdrop-filter: blur(8px);
}

.workflow-modal__dialog {
  position: relative;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(33, 27, 18, 0.22);
  animation: modal-fade-in 220ms ease;
}

.workflow-modal__header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.workflow-modal__header h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.workflow-modal__close {
  min-height: 40px;
}

.workflow-modal__body {
  display: grid;
}

.workflow-modal--inventory {
  place-items: stretch;
  padding: 0;
}

.workflow-modal--inventory .workflow-modal__dialog {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.workflow-modal__header--inventory {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.98), rgba(251, 248, 242, 0.96));
  backdrop-filter: blur(12px);
}

.workflow-modal__body--inventory {
  flex: 1;
  overflow: auto;
  padding-right: 4px;
}

.icon-inventory__intro {
  display: grid;
  gap: 14px;
}

.icon-inventory__title-block h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.icon-inventory__subtitle {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.icon-inventory__meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.icon-inventory__meta-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.icon-inventory__meta-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.icon-inventory__doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-inventory__doc-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(74, 89, 48, 0.16);
  border-radius: 999px;
  background: rgba(89, 102, 65, 0.06);
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.icon-inventory__section {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.icon-inventory__section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.icon-inventory__section-header h4 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.icon-inventory__table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.icon-inventory__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

.icon-inventory__table th,
.icon-inventory__table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(181, 171, 154, 0.3);
  vertical-align: top;
  text-align: left;
  font-size: 0.86rem;
}

.icon-inventory__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(251, 248, 242, 0.98);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.icon-inventory__table tbody tr:hover {
  background: rgba(89, 102, 65, 0.035);
}

.icon-inventory__preview-cell {
  width: 80px;
}

.icon-inventory__icon,
.icon-inventory__symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.icon-inventory__icon--system {
  width: 20px;
  height: 20px;
  color: var(--text);
}

.icon-inventory__icon--category {
  width: 22px;
  height: 22px;
}

.icon-inventory__symbol {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.icon-inventory__symbol--empty {
  color: var(--text-soft);
}

.icon-inventory__filename {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.icon-inventory__status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(89, 102, 65, 0.08);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
}

.workflow-modal__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
}

.workflow-modal .workflow-card,
.workflow-modal .mini-card,
.workflow-modal .queue-card {
  border-radius: 8px;
}

.workflow-modal .workflow-card,
.workflow-modal .mini-card {
  padding: 18px;
}

#seasonal-discovery-root {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

.seasonal-discovery {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: auto;
}

.seasonal-discovery__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(33, 49, 38, 0.3);
  backdrop-filter: blur(8px);
}

.seasonal-discovery__panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(33, 27, 18, 0.22);
  animation: modal-fade-in 220ms ease;
}

.seasonal-discovery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.seasonal-discovery__header h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  letter-spacing: -0.03em;
}

.seasonal-discovery__section {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.seasonal-discovery__section h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.seasonal-discovery__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

body.has-seasonal-discovery {
  overflow: hidden;
}

.workflow-card__header,
.queue-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.workflow-card__header {
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.workflow-form,
.workflow-grid {
  display: grid;
  gap: 12px;
}

.workflow-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.workflow-field {
  display: grid;
  gap: 8px;
}

.workflow-field--full {
  grid-column: 1 / -1;
}

.workflow-field span {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.workflow-field input,
.workflow-field select,
.workflow-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--text);
  resize: vertical;
}

.workflow-methods,
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.trust-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}

.trust-card strong {
  color: var(--text);
}

.trust-card span {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-card p {
  font-size: 0.92rem;
}

.trust-card.is-active {
  border-color: var(--accent);
  background: rgba(79, 91, 67, 0.1);
}

.workflow-list {
  flex-direction: column;
  gap: 12px;
}

.queue-card {
  padding: 14px;
}

.queue-card__actions {
  flex-direction: column;
  gap: 8px;
}

.selected-card__trust {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: rgba(79, 91, 67, 0.06);
}

.selected-card__trust strong {
  color: var(--accent-strong);
}

.selected-listing-stack {
  display: grid;
  gap: 14px;
}

.selected-entry-card,
.selected-card,
.empty-state,
.listing-card {
  margin: 0 16px;
  border: 1px solid rgba(210, 205, 195, 0.72);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 8px rgba(31, 29, 24, 0.03);
}

.selected-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
}

.selected-entry-card__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.selected-entry-card__title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.selected-entry-card__copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.selected-entry-card .button {
  box-shadow: var(--shadow-soft);
}

.selected-card {
  overflow: hidden;
}

.selected-card__media {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  object-position: center 38%;
  background: linear-gradient(135deg, #F4F3EF, #EBE9E4);
}

.selected-card__body {
  padding: 16px;
}

.selected-card__header {
  gap: 8px;
  flex-wrap: wrap;
  align-items: start;
}

.selected-card__title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.selected-card__description {
  margin: 10px 0;
  color: var(--text-soft);
  line-height: 1.62;
  font-size: 1rem;
}

.selected-card__scene {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: rgba(79, 91, 67, 0.06);
}

.selected-card__trust--seasonal {
  margin-top: 6px;
  margin-bottom: 10px;
  background: rgba(79, 91, 67, 0.085);
}

.selected-card__trust--seasonal strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.selected-card__trust--verification {
  background: rgba(31, 29, 24, 0.045);
}

.selected-card__scene-label {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selected-card__scene p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.selected-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-soft);
}

.selected-card__meta span {
  display: grid;
  gap: 4px;
  min-height: 60px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: rgba(31, 29, 24, 0.04);
  line-height: 1.45;
}

.selected-card__tags,
.listing-card__tags {
  display: flex;
}

.detail-badge,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(218, 214, 206, 0.82);
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.listing-grid {
  display: grid;
  gap: 12px;
}

.listing-card {
  position: relative;
  padding: 14px;
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.listing-card__media {
  margin: -2px -2px 12px;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #F4F3EF, #EBE9E4);
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.listing-card:hover,
.listing-card.is-selected {
  border-color: #C2BDB7;
}

.listing-card:hover:not(.is-selected) {
  border-color: #B8B2A8;
  background: var(--paper);
}

.listing-card.is-selected {
  background: linear-gradient(to bottom, #FFFFFF, #F8F7F4);
  border-color: #C2BDB7;
}

.listing-card.is-selected::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.listing-card__header {
  display: grid;
  gap: 8px;
}

.listing-card__eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.listing-card__name {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.listing-card__description {
  margin: 10px 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.listing-card__signal {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.listing-card__meta,
.listing-card__footer {
  gap: 8px;
  flex-wrap: wrap;
}

.listing-card__meta {
  align-items: center;
  margin-bottom: 10px;
}

.listing-card__actions {
  display: flex;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 29, 24, 0.08);
}

.listing-card__claim {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.selected-card__actions {
  align-items: stretch;
  gap: 12px;
  flex-direction: column;
}

.selected-card__primary-actions,
.selected-card__secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-card__secondary-actions .button {
  flex: 1 1 150px;
}

.listing-card__town,
.listing-card__distance,
.listing-card__status {
  font-size: 0.88rem;
  font-weight: 700;
}

.listing-card__badge,
.selected-card__tier,
.detail-badge {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-state {
  padding: 20px;
}

.empty-state h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.empty-state p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.maplibregl-ctrl-top-right .maplibregl-ctrl {
  margin: 14px 14px 0 0;
}

.marker-shell {
  position: relative;
  width: 48px;
  height: 48px;
}

.marker-dot {
  width: 22px;
  height: 22px;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 250, 244, 0.96);
  box-shadow: 0 10px 24px rgba(33, 49, 38, 0.22);
  background: linear-gradient(180deg, #bb6a40, #864322);
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), z-index var(--transition-base);
  appearance: none;
  z-index: 1;
}

.marker-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: rgba(116, 136, 75, 0.18);
  opacity: 0;
  transform: scale(0.72);
  transition: transform var(--transition-base), opacity var(--transition-base);
  pointer-events: none;
  z-index: 0;
}

.marker-dot[data-icon="flower"]::before {
  content: "✿";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 248, 234, 0.96);
  text-shadow: 0 1px 3px rgba(34, 19, 10, 0.32);
  pointer-events: none;
  z-index: 1;
  transition: transform var(--transition-base);
}

.marker-dot__label {
  position: absolute;
  left: calc(50% + 28px);
  top: 50%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(73, 88, 50, 0.2);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 10px 26px rgba(33, 49, 38, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  z-index: 3;
}

.marker-dot[data-tier="Plus"] {
  background: linear-gradient(180deg, #6d7e47, #47562c);
}

.marker-dot[data-tier="Pro"] {
  background: linear-gradient(180deg, #85523c, #5e3623);
}

.marker-dot[data-ownership="unclaimed"] {
  background: linear-gradient(180deg, #c97743, #915028);
}

.marker-dot[data-ownership="claim_pending"] {
  background: linear-gradient(180deg, #a27433, #76511e);
}

.marker-dot[data-ownership="verified_operator"] {
  background: linear-gradient(180deg, #6d7e47, #48592d);
}

.marker-dot.is-route-stop {
  border-color: rgba(255, 244, 225, 0.98);
  box-shadow: 0 16px 34px rgba(49, 62, 34, 0.28);
}

.marker-dot.is-selected {
  outline: 4px solid rgba(255, 236, 195, 0.78);
  box-shadow: 0 16px 36px rgba(33, 49, 38, 0.26);
}

.marker-route-order {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff6e7;
  color: #7a3f22;
  border: 1px solid rgba(122, 63, 34, 0.38);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 8px rgba(33, 49, 38, 0.2);
  z-index: 4;
}

.marker-dot.is-selected::after {
  opacity: 1;
  transform: scale(1);
}

.marker-shell.is-hovered .marker-dot::after,
.marker-shell:focus-within .marker-dot::after {
  opacity: 1;
  transform: scale(1);
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sheet-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mockup-aligned map/results workspace */
.featured-discovery {
  border: 1px solid rgba(218, 214, 206, 0.82);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.featured-discovery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 6px;
  border-bottom: 1px solid rgba(31, 29, 24, 0.08);
  background: linear-gradient(180deg, rgba(247, 245, 239, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.featured-discovery__body {
  display: grid;
  gap: 8px;
  padding: 0 12px 8px;
}

.featured-discovery.is-collapsed .featured-discovery__body {
  display: none;
}

.featured-discovery.is-collapsed .featured-discovery__header {
  border-bottom: none;
}

.explore-shell {
  display: grid;
  gap: 8px;
  align-items: start;
}

.map-results-workspace__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.map-results-workspace__header h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 1.8vw, 1.95rem);
  letter-spacing: -0.035em;
}

.map-results-workspace__frame {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(360px, 1fr);
  border: 1px solid rgba(218, 214, 206, 0.72);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, var(--persona-bg) 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 790px;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.map-column {
  position: static;
  top: auto;
  display: grid;
  align-content: start;
  padding: 6px;
  min-width: 0;
}

.map-column .map-frame {
  border-radius: 5px;
  box-shadow: none;
  min-height: 700px;
}

.map-column .map-surface {
  min-height: 700px;
  height: 700px;
}

.map-column__header,
.panel__header {
  padding: 12px 14px 8px;
}

.map-column__header h2,
.panel__header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.sidebar-column {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid rgba(31, 29, 24, 0.08);
  background: transparent;
}

.sidebar-column .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-column .panel__header {
  border-bottom: 1px solid rgba(31, 29, 24, 0.08);
  padding-bottom: 8px;
}

.sidebar-column .panel--results {
  display: flex;
}

.panel--results .listing-grid {
  flex: 1;
  overflow: auto;
}

.sidebar-column .panel--detail {
  display: none;
  overflow: auto;
}

body.has-detail-workspace .sidebar-column .panel--results {
  display: none;
}

body.has-detail-workspace .sidebar-column .panel--detail {
  display: flex;
}

.map-results-meta {
  justify-content: flex-end;
  gap: 8px 10px;
  padding: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.map-results-meta .results-meta__top,
.map-results-meta .results-meta__summary {
  width: 100%;
}

.map-results-meta .results-meta__summary {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.results-meta__headline {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 1.45vw, 1.55rem);
  letter-spacing: -0.03em;
  color: #2a2b25;
  line-height: 1.1;
}

.results-meta__subtle {
  color: var(--text-soft);
  font-size: 0.8rem;
}

@media (min-width: 1360px) {
  .map-results-workspace__frame {
    grid-template-columns: minmax(0, 1.88fr) minmax(350px, 1fr);
  }
}

@media (min-width: 1480px) {
  body.has-detail-workspace .map-results-workspace__frame {
    grid-template-columns: minmax(0, 1.72fr) minmax(0, 1.28fr);
  }

  body.has-detail-workspace .sidebar-column {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  body.has-detail-workspace .sidebar-column .panel--results {
    display: flex;
    border-right: 1px solid rgba(31, 29, 24, 0.08);
  }

  body.has-detail-workspace .sidebar-column .panel--detail {
    display: flex;
  }
}

@media (min-width: 1760px) {
  .page-shell {
    width: min(2320px, calc(100vw - 36px));
  }

  .map-results-workspace__frame {
    grid-template-columns: minmax(0, 2.42fr) minmax(340px, 1fr);
  }

  .map-column .map-frame,
  .map-column .map-surface {
    min-height: 760px;
    height: 760px;
  }
}

@media (max-width: 1120px) {
  .page-shell {
    width: min(100vw - 20px, 1320px);
  }

  .auth-card {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 14px;
    padding: 12px;
  }

  .auth-copy {
    padding: 26px;
  }

  .auth-art {
    min-height: 520px;
  }

  .auth-testimonials {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .auth-testimonials__header {
    grid-column: 1 / -1;
  }

  .workflow-modal__grid {
    grid-template-columns: 1fr;
  }

  .hero-shell__masthead {
    padding-right: 0;
  }

  .hero-shell__actions {
    gap: 8px;
  }

  .header-account-switcher__panel {
    width: min(300px, calc(100vw - 24px));
  }

  .hero-shell__toggle {
    top: 16px;
    right: 16px;
  }

  .browse-bar__shell {
    grid-template-columns: auto minmax(0, 1fr) minmax(124px, 0.55fr) auto auto;
  }

  .browse-bar__field {
    min-width: 220px;
  }

  .map-results-workspace__header {
    align-items: stretch;
    flex-direction: column;
    padding: 0;
  }

  .map-results-workspace__frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar-column {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .map-column {
    position: static;
    width: 100%;
    padding: 6px;
  }

  .map-column .map-frame,
  .map-column .map-surface {
    min-height: 540px;
    height: 540px;
  }

  .workflow-methods,
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: calc(100vw - 14px);
    padding-top: calc(10px + var(--safe-top));
    padding-bottom: calc(56px + var(--safe-bottom));
  }

  .auth-shell {
    min-height: calc(100vh - 14px - var(--safe-top) - var(--safe-bottom));
  }

  .auth-card {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 12px;
    gap: 10px;
  }

  .auth-copy {
    order: 1;
    padding: 20px 18px;
    gap: 16px;
  }

  .auth-art {
    order: 2;
    min-height: 320px;
  }

  .auth-testimonials {
    order: 3;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .auth-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 9vw, 3.6rem);
  }

  .browse-bar {
    border-radius: 6px;
  }

  .workflow-modal {
    align-items: end;
    padding: 0;
  }

  .workflow-modal__dialog {
    width: 100%;
    max-height: min(88vh, 760px);
    padding: 18px 16px calc(22px + var(--safe-bottom));
    border-radius: 10px 10px 0 0;
    animation: sheet-rise 220ms ease;
  }

  .workflow-modal__header {
    flex-direction: column;
    align-items: stretch;
  }

  .browse-bar__shell,
  .hero-shell__actions {
    align-items: stretch;
  }

  #header-account-switcher,
  .hero-shell__toggle {
    width: 100%;
  }

  .header-account-switcher {
    width: 100%;
  }

  .header-account-switcher__summary {
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
  }

  .header-account-switcher__panel {
    left: 0;
    right: auto;
    width: 100%;
  }

  .browse-bar__shell {
    grid-template-columns: auto minmax(0, 1fr) minmax(118px, auto) auto;
  }

  .browse-bar__field--search {
    grid-column: 2 / -1;
  }

  .browse-bar__field {
    min-width: 0;
    padding: 8px 12px;
  }

  .browse-bar__action {
    min-width: 0;
  }

  .browse-bar__clear {
    min-width: 0;
  }

  .hero-shell__toggle {
    position: static;
    align-self: flex-end;
  }

  .workflow-modal__close {
    width: 100%;
  }

  .hero-shell__masthead,
  .install-callout,
  .panel__header,
  .map-column__header,
  .results-meta,
  .workflow-card__header,
  .queue-card {
    flex-direction: column;
    align-items: stretch;
  }

  .route-summary__header {
    flex-direction: column;
    align-items: stretch;
  }

  .route-summary__actions {
    grid-template-columns: 1fr;
  }

  .hero-shell__body {
    flex-direction: column;
    min-height: auto;
  }

  .hero-art {
    min-height: 320px;
    width: 100%;
  }

  .hero-art__editorial {
    padding: 44px 24px 28px;
  }

  .hero-art__editorial .hero-rotator {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

  .hero-copy {
    flex: none;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 24px 20px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.6rem, 10vw, 3.7rem);
  }

  .install-callout__actions {
    justify-content: flex-start;
  }

  .hero-photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-frame,
  .map-surface {
    min-height: 400px;
    height: 400px;
  }

  .selected-card__actions {
    flex-wrap: wrap;
  }

   .selected-card__meta {
    grid-template-columns: 1fr;
  }

  .selected-entry-card {
    flex-direction: column;
    align-items: stretch;
  }

  .workflow-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-art {
    min-height: 260px;
  }

  .header-account-switcher__item {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .hero-art__editorial .hero-rotator {
    font-size: clamp(2rem, 8.2vw, 2.9rem);
  }

  .auth-art {
    min-height: 240px;
  }

  .auth-copy {
    padding: 18px 14px;
  }

  .auth-quote-card {
    padding: 14px;
  }

  .auth-quote p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-copy__meta,
  .summary-chips,
  .chip-row,
  .selected-card__tags,
  .listing-card__tags,
  .map-overlay {
    gap: 8px;
  }

  .selected-entry-card,
  .selected-card,
  .empty-state,
  .listing-card {
    margin: 0 12px;
  }

  .selected-card__media {
    aspect-ratio: 4 / 3;
  }

  .hero-photo-strip {
    grid-template-columns: 1fr;
  }

  .hero-photo-strip__tile {
    min-height: 192px;
    max-height: 192px;
  }

  .map-frame,
  .map-surface {
    min-height: 340px;
    height: 340px;
  }

  .filter-group,
  .results-meta,
  .panel__header,
  .map-column__header,
  .workspace-nav,
  #workflow-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .browse-bar__shell {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 7px;
  }

  .browse-bar__field--search {
    grid-column: 2 / -1;
  }

  .browse-bar__action {
    min-height: 46px;
    padding: 0 15px;
  }

  .browse-bar__action--search span {
    display: none;
  }

  .browse-bar__clear {
    padding: 0 12px;
  }

  .map-frame,
  .map-surface {
    min-height: 380px;
    height: 380px;
  }

  .map-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .install-callout {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
