:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --panel: #ffffff;
  --ink: #18201d;
  --muted: #637069;
  --line: #dfe5dc;
  --brand: #6f5a7d;
  --brand-dark: #332b3b;
  --accent: #f0645a;
  --signal: #a98bbb;
  --shadow: 0 12px 34px rgba(24, 32, 29, 0.11);
  --topbar-bg: #ffffff;
  --toolbar-bg: rgba(255, 255, 255, 0.76);
  --field-bg: rgba(255, 255, 255, 0.96);
  --brand-tagline-color: #6f5a7d;
  --story-name-color: #9d7428;
  --storybook-card-bg: #fbf6ea;
  --storybook-card-border: rgba(155, 138, 91, 0.34);
  --storybook-label: #8d6c21;
  --theme-soft: rgba(111, 90, 125, 0.09);
  --theme-focus: rgba(111, 90, 125, 0.13);
  --pin-color: #9a6b18;
  --pin-bg: #fff4d7;
  --pin-border: rgba(154, 107, 24, 0.46);
  --pin-focus: rgba(154, 107, 24, 0.14);
  --favorite-color: #b66438;
  --favorite-bg: #fff0e6;
  --favorite-border: rgba(182, 100, 56, 0.46);
  --favorite-focus: rgba(182, 100, 56, 0.14);
  --card-min: 340px;
  --price-slider-low: #123f75;
  --price-slider-high: #2f7ec8;
  --price-slider-track: #d9e1d8;
}

/* Labelwise audit content. Drawer positioning, pin tray, and drawer deck remain template-owned. */
.labelwise-verdict-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(111, 90, 125, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(235, 246, 241, 0.92), rgba(255, 255, 255, 0.96));
  padding: 16px;
}

.labelwise-score-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(111, 90, 125, 0.14);
  padding-bottom: 12px;
}

.labelwise-score-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.labelwise-score-rating {
  flex: 0 0 auto;
}

.labelwise-score-ring {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-content: center;
  place-self: center;
  border-radius: 999px;
  background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #dce5e0 0);
  color: var(--brand-dark);
  text-align: center;
}

.labelwise-score-ring::before {
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #fff;
  content: '';
}

.labelwise-score-ring > div,
.labelwise-score-ring small {
  position: relative;
  z-index: 1;
}

.labelwise-score-ring > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.labelwise-score-ring strong {
  font-size: 25px;
  line-height: 1;
}

.labelwise-score-ring span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.labelwise-score-ring small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.labelwise-verdict-card h3 {
  margin: 2px 0 5px;
  font-size: 18px;
}

.labelwise-verdict-card p:not(.labelwise-section-kicker) {
  margin: 0;
  color: #4f5d57;
  font-size: 12px;
  line-height: 1.5;
}

.labelwise-verdict-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.labelwise-confidence-summary {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(111, 90, 125, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.labelwise-confidence-summary > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
}

.labelwise-confidence-summary > summary::-webkit-details-marker {
  display: none;
}

.labelwise-confidence-summary > summary span {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.labelwise-confidence-summary > summary small {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.labelwise-confidence-summary > summary strong {
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 1.35;
}

.labelwise-confidence-summary > summary em {
  color: var(--brand);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.labelwise-confidence-summary[open] > summary {
  border-bottom: 0px;
}

.labelwise-confidence-body {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.labelwise-confidence-body > p {
  margin: 0;
  color: #526059;
  font-size: 9px;
  line-height: 1.45;
}

.labelwise-confidence-note {
  color: var(--muted);
}

.labelwise-confidence-finding .labelwise-confidence-summary {
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.labelwise-insight-grid > .labelwise-confidence-finding {
  grid-column: 1 / -1;
}

.labelwise-confidence-finding .labelwise-confidence-summary > summary {
  padding: 0;
}

.labelwise-confidence-finding .labelwise-confidence-body {
  margin-top: 9px;
  padding: 9px 0 0;
}

.labelwise-guardrail-note {
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  background: #fff3d8;
  color: #7f5a18;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
}

.labelwise-section-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.labelwise-audit-section {
  gap: 12px;
}

.labelwise-section-collapse {
  display: grid;
  gap: 10px;
}

.labelwise-section-collapse > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  color: var(--brand);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.labelwise-section-collapse > summary::-webkit-details-marker {
  display: none;
}

.labelwise-section-collapse > summary::after {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin: -3px 3px 0 8px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.labelwise-section-collapse[open] > summary::after {
  transform: rotate(225deg);
}

.labelwise-section-collapse > summary em {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.labelwise-section-collapse-body {
  display: grid;
  gap: 10px;
}

.labelwise-evidence-overall {
  display: grid;
  grid-template-columns: minmax(175px, 0.7fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(111, 90, 125, 0.24);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(111, 90, 125, 0.1), rgba(255, 255, 255, 0.96));
  padding: 14px 16px;
}

.labelwise-evidence-overall > div {
  display: grid;
  gap: 3px;
}

.labelwise-evidence-overall span {
  color: var(--brand);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.labelwise-evidence-overall strong {
  color: var(--brand-dark);
  font-size: 21px;
  line-height: 1.1;
}

.labelwise-evidence-overall p {
  margin: 0;
  color: #526059;
  font-size: 10px;
  line-height: 1.5;
}

.labelwise-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.labelwise-evidence-grid > div {
  border: 1px solid rgba(16, 44, 45, 0.11);
  border-radius: 7px;
  background: #fbfcfa;
  padding: 10px;
}

.labelwise-evidence-grid span,
.labelwise-cancer-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.labelwise-evidence-grid strong {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}

.labelwise-disclosure {
  overflow: hidden;
  border: 1px solid rgba(16, 44, 45, 0.12);
  border-radius: 8px;
  background: #fff;
}

.labelwise-disclosure > summary {
  padding: 11px 12px;
  cursor: pointer;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.labelwise-disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.labelwise-disclosure-body {
  display: grid;
  padding: 12px;
}

.labelwise-disclosure-body > p,
.labelwise-regulatory-list article p,
.labelwise-endpoint-list article p,
.labelwise-recall-note p {
  margin: 0;
  color: #526059;
  font-size: 10px;
  line-height: 1.5;
}

.labelwise-provenance-head,
.labelwise-endpoint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.labelwise-provenance-head strong {
  color: var(--brand);
  font-size: 12px;
}

.labelwise-provenance-head span,
.labelwise-endpoint-head span {
  border-radius: 999px;
  background: var(--theme-soft);
  color: var(--brand);
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 900;
}

.labelwise-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.labelwise-definition-grid > div {
  min-width: 0;
}

.labelwise-definition-grid dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.labelwise-definition-grid dd {
  margin: 3px 0 0;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
}

.labelwise-definition-grid-wide > div {
  grid-column: 1 / -1;
}

.labelwise-inline-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.labelwise-inline-source,
.labelwise-evidence-pending {
  border-radius: 999px;
  background: #eef5f1;
  color: var(--brand);
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

.labelwise-evidence-pending {
  background: #fff3d8;
  color: #7f5a18;
}

.labelwise-regulatory-list,
.labelwise-endpoint-list {
  gap: 8px;
}

.labelwise-regulatory-list article,
.labelwise-endpoint-list article {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.labelwise-regulatory-list article:last-child,
.labelwise-endpoint-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.labelwise-regulatory-list article > div:first-child {
  display: grid;
  gap: 3px;
}

.labelwise-regulatory-list article > div:first-child span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-top: 10px;
}

.labelwise-regulatory-list article > div:first-child strong,
.labelwise-endpoint-head strong {
  font-size: 11px;
}

.labelwise-metrics {
  display: grid;
  gap: 9px;
}

.labelwise-metric {
  position: relative;
  display: grid;
  grid-template-columns: minmax(132px, 1fr) minmax(100px, 1.7fr) 30px;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
}

.labelwise-metric-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 44, 45, 0.09);
}

.labelwise-metric-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--metric-color);
}

.labelwise-metric strong {
  text-align: right;
}

.labelwise-metric-label {
  display: block;
}

.labelwise-metric.has-tooltip {
  cursor: help;
}

.labelwise-metric.has-tooltip:focus-visible {
  border-radius: 5px;
  outline: 2px solid rgba(111, 90, 125, 0.5);
  outline-offset: 3px;
}

.labelwise-metric-explanation {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: min(440px, calc(100% - 12px));
  border: 1px solid rgba(111, 90, 125, 0.24);
  border-radius: 7px;
  padding: 9px 11px;
  background: #332b3b;
  color: #fff;
  box-shadow: 0 10px 24px rgba(24, 20, 28, 0.2);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.labelwise-metric.has-tooltip:hover .labelwise-metric-explanation,
.labelwise-metric.has-tooltip:focus-visible .labelwise-metric-explanation {
  opacity: 1;
  transform: translateY(0);
}

.labelwise-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.labelwise-insight-grid > div {
  min-width: 0;
  border: 1px solid rgba(16, 44, 45, 0.12);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
}

.labelwise-insight-grid > div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.labelwise-insight-grid > div > strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.labelwise-ingredient-count-card {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
}

.labelwise-ingredient-count-card > span,
.labelwise-ingredient-count-card > strong {
  grid-column: 1;
}

.labelwise-ingredient-count-card > span {
  grid-row: 1;
}

.labelwise-ingredient-count-card > strong {
  grid-row: 2;
}

.labelwise-severity-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  gap: 4px;
  margin: 0;
}

.labelwise-severity-counts button {
  border: 0;
  border-radius: 999px;
  padding: 4px 7px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.labelwise-severity-counts button:hover,
.labelwise-severity-counts button:focus-visible {
  box-shadow: 0 0 0 2px rgba(111, 90, 125, 0.2);
  transform: translateY(-1px);
}

.labelwise-severity-counts .is-elevated {
  background: #fde5e1;
  color: #9d4038;
}

.labelwise-severity-counts .is-moderate {
  background: #fff1d3;
  color: #85601d;
}

.labelwise-severity-counts .is-low {
  background: #e8f4ef;
  color: #246c5d;
}

.labelwise-severity-counts .is-unknown {
  background: #eef0ee;
  color: #626c67;
}

.labelwise-systemic-note {
  gap: 10px;
  border: 1px solid rgba(111, 90, 125, 0.2);
  border-radius: 9px;
  background: rgba(235, 246, 241, 0.72);
  padding: 16px;
}

.labelwise-systemic-note-embedded {
  display: grid;
}

.labelwise-systemic-note h3 {
  max-width: 980px;
  font-size: 15px;
  line-height: 1.35;
}

.labelwise-safety-body {
  gap: 16px;
  padding: 14px;
}

.labelwise-assessment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.labelwise-assessment-heading > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(111, 90, 125, 0.1);
  color: var(--brand);
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 900;
}

.labelwise-systemic-note p:last-child {
  margin: 0;
  color: #4f5d57;
  font-size: 12px;
  line-height: 1.55;
}

.labelwise-cancer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.labelwise-cancer-grid > div {
  border: 1px solid rgba(111, 90, 125, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.labelwise-cancer-grid strong {
  display: block;
  color: #34413b;
  font-size: 10px;
  line-height: 1.45;
}

.labelwise-assessment-subhead {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--brand-dark);
  font-size: 12px !important;
}

.labelwise-safety-body .labelwise-endpoint-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.labelwise-safety-body .labelwise-endpoint-list article {
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(16, 44, 45, 0.11);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 11px;
}

.labelwise-safety-body .labelwise-endpoint-list article:last-child {
  border: 1px solid rgba(16, 44, 45, 0.11);
  padding-bottom: 11px;
}

.labelwise-safety-body .labelwise-endpoint-head {
  align-items: flex-start;
}

.labelwise-safety-body .labelwise-endpoint-head strong {
  line-height: 1.3;
}

.labelwise-safety-body .labelwise-endpoint-head span {
  max-width: 125px;
  text-align: center;
  line-height: 1.2;
}

.labelwise-disclosure-body h4 {
  margin: 2px 0 0;
  padding-top: 10px;
  font-size: 11px;
}

.labelwise-testing-list {
  display: grid;
  gap: 6px;
}

.labelwise-testing-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf0eb;
  padding-bottom: 6px;
  font-size: 9px;
}

.labelwise-testing-list strong {
  color: #8a651f;
  text-align: right;
}

.labelwise-recall-note {
  border: 1px solid #eadbb7;
  border-radius: 7px;
  background: #fffaf0;
  padding: 9px;
}

.labelwise-recall-note strong {
  display: block;
  margin-bottom: 3px;
  color: #7f5a18;
  font-size: 10px;
}

.labelwise-gap-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: #526059;
  font-size: 9px;
  line-height: 1.45;
}

.labelwise-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.labelwise-section-heading h3 {
  margin-top: 3px;
}

.labelwise-section-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.labelwise-ingredient-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.labelwise-ingredient-intro {
  display: grid;
  gap: 7px;
  margin: 9px 0 12px;
  border-left: 3px solid rgba(111, 90, 125, 0.42);
  background: #f6faf8;
  padding: 9px 11px;
  color: #526059;
  font-size: 11px;
  line-height: 1.5;
}

.labelwise-ingredient-intro p {
  margin: 0;
}

.labelwise-ingredient-list details {
  border-bottom: 0px solid var(--line);
}

.labelwise-ingredient-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style-position: inside;
}

.labelwise-ingredient-list summary > span {
  min-width: 0;
}

.labelwise-concern {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.labelwise-concern.is-low {
  background: #eaf5f0;
  color: #286b56;
}

.labelwise-concern.is-moderate {
  background: #fff3d8;
  color: #88621e;
}

.labelwise-concern.is-elevated {
  background: #ffebe7;
  color: #9c4037;
}

.labelwise-ingredient-copy {
  display: grid;
  gap: 12px;
  padding: 2px 2px 18px 18px;
}

.labelwise-ingredient-overview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-left: 3px solid rgba(111, 90, 125, 0.48);
  background: #f8f6f9;
  padding: 12px 14px;
}

.labelwise-ingredient-overview > span,
.labelwise-ingredient-facts section > span,
.labelwise-ingredient-evidence > div > span {
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.labelwise-ingredient-overview p,
.labelwise-ingredient-facts p,
.labelwise-ingredient-evidence p {
  margin: 0;
  color: #526059;
  line-height: 1.5;
}

.labelwise-ingredient-overview p {
  color: #35423c;
  font-size: 12px;
  font-weight: 650;
}

.labelwise-ingredient-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #e0e5e1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.labelwise-ingredient-facts section {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 104px;
  border-bottom: 1px solid #e6eae7;
  padding: 12px 14px;
}

.labelwise-ingredient-facts section:nth-child(odd) {
  border-right: 1px solid #e6eae7;
}

.labelwise-ingredient-facts section:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.labelwise-ingredient-facts section > span {
  color: var(--muted);
}

.labelwise-ingredient-facts p {
  font-size: 11px;
}

.labelwise-ingredient-facts .labelwise-ingredient-risk {
  box-shadow: inset 3px 0 0 #8a978f;
}

.labelwise-ingredient-facts .labelwise-ingredient-risk.is-moderate {
  box-shadow: inset 3px 0 0 #b9872f;
}

.labelwise-ingredient-facts .labelwise-ingredient-risk.is-elevated {
  box-shadow: inset 3px 0 0 #b84b42;
}

.labelwise-ingredient-evidence {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2px;
}

.labelwise-ingredient-evidence .labelwise-inline-sources {
  padding-top: 0;
}

.labelwise-source-links {
  display: grid;
  gap: 7px;
}

.labelwise-source-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(111, 90, 125, 0.16);
  border-radius: 7px;
  background: #fbfcfa;
  color: var(--brand);
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.labelwise-source-links a > span:first-child {
  display: grid;
  gap: 2px;
}

.labelwise-source-links small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.labelwise-source-links a:hover {
  border-color: rgba(111, 90, 125, 0.4);
  background: var(--theme-soft);
}

.labelwise-process-section {
  gap: 8px;
}

.labelwise-process-expanded {
  gap: 12px;
  padding: 0;
}

.labelwise-evidence-tier {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(111, 90, 125, 0.18);
  border-radius: 7px;
  background: #f3f9f6;
  padding: 12px;
}

.labelwise-evidence-tier span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.labelwise-evidence-tier strong {
  color: var(--brand-dark);
  font-size: 11px;
  line-height: 1.35;
}

.labelwise-process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.labelwise-process-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid rgba(16, 44, 45, 0.1);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px;
}

.labelwise-process-steps li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.labelwise-process-steps strong {
  display: block;
  margin-bottom: 2px;
  color: #25342d;
  font-size: 11px;
}

.labelwise-process-steps p {
  margin: 0;
  color: #526059;
  font-size: 9px;
  line-height: 1.45;
}

.labelwise-process-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.labelwise-process-principles span {
  border: 1px solid rgba(111, 90, 125, 0.12);
  border-radius: 999px;
  background: rgba(111, 90, 125, 0.06);
  padding: 6px 9px;
  color: #44524b;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
}

.labelwise-process-subhead {
  margin: 2px 0 -5px !important;
  padding: 0 !important;
  color: var(--brand-dark);
}

.labelwise-method-context {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.4fr);
  gap: 10px;
}

.labelwise-method-context > section {
  border: 1px solid rgba(16, 44, 45, 0.11);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
}

.labelwise-method-context h4 {
  margin: 0 0 9px;
  padding: 0;
}

.labelwise-exposure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}

.labelwise-exposure-grid > .is-wide {
  grid-column: 1 / -1;
}

.labelwise-method-footer {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.labelwise-method-footer > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.labelwise-method-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.labelwise-method-sources a {
  border-radius: 999px;
  background: #eef5f1;
  color: var(--brand);
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

.labelwise-method-sources a:hover {
  background: #dfeee7;
}

.labelwise-framework-note {
  margin: 0;
  color: #526059;
  font-size: 9px;
  line-height: 1.45;
}

.labelwise-framework-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.labelwise-framework-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #e0e6e1;
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px;
}

.labelwise-framework-card.is-active {
  border-color: rgba(111, 90, 125, 0.34);
  background: #f3f9f6;
}

.labelwise-framework-card > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.labelwise-framework-card h4 {
  margin: 0;
  color: #25342d;
  font-size: 11px;
}

.labelwise-framework-card > div:first-child span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e8efeb;
  color: var(--muted);
  padding: 3px 5px;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.labelwise-framework-card.is-active > div:first-child span {
  background: #dcefe7;
  color: var(--brand);
}

.labelwise-framework-card ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 14px;
  color: #526059;
  font-size: 9px;
  line-height: 1.4;
}

.labelwise-method-note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.labelwise-method-note b {
  color: var(--brand-dark);
}

@media (max-width: 520px) {
  .labelwise-verdict-card {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .labelwise-score-ring {
    width: 62px;
    height: 62px;
  }

  .labelwise-score-ring::before {
    inset: 5px;
  }

  .labelwise-score-ring strong {
    font-size: 20px;
  }

  .labelwise-metric {
    grid-template-columns: minmax(105px, 1fr) minmax(70px, 1fr) 28px;
  }

  .labelwise-insight-grid {
    grid-template-columns: 1fr;
  }

  .labelwise-cancer-grid,
  .labelwise-evidence-grid,
  .labelwise-safety-body .labelwise-endpoint-list,
  .labelwise-definition-grid {
    grid-template-columns: 1fr;
  }

  .labelwise-evidence-overall {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .labelwise-ingredient-overview {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .labelwise-ingredient-facts {
    grid-template-columns: 1fr;
  }

  .labelwise-ingredient-facts section,
  .labelwise-ingredient-facts section:nth-child(odd),
  .labelwise-ingredient-facts section:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #e6eae7;
  }

  .labelwise-ingredient-facts section:last-child {
    border-bottom: 0;
  }

  .labelwise-ingredient-evidence {
    align-items: start;
    flex-direction: column;
  }

  .labelwise-framework-grid,
  .labelwise-process-principles,
  .labelwise-process-steps,
  .labelwise-method-context,
  .labelwise-method-footer {
    grid-template-columns: 1fr;
  }

  .labelwise-exposure-grid {
    grid-template-columns: 1fr;
  }

  .labelwise-exposure-grid > .is-wide {
    grid-column: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 180ms ease, filter 180ms ease;
}

body.app-page-enter,
body.app-page-leave {
  opacity: 0;
  filter: blur(1.5px);
}

body.app-page-leave {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }

  body.app-page-enter,
  body.app-page-leave {
    opacity: 1;
    filter: none;
  }
}

body[data-storybook-theme="fantasy"] {
  --muted: #6f6870;
  --line: #e1dce4;
  --brand: #6f5a7d;
  --brand-dark: #332b3b;
  --accent: #b88763;
  --signal: #78d9b9;
  --shadow: 0 12px 34px rgba(51, 43, 59, 0.12);
  --brand-tagline-color: #655371;
  --story-name-color: #8e6422;
  --storybook-card-bg: #faf3f8;
  --storybook-card-border: rgba(111, 90, 125, 0.28);
  --storybook-label: #6f5a7d;
  --theme-soft: rgba(111, 90, 125, 0.09);
  --theme-focus: rgba(111, 90, 125, 0.13);
  --pin-color: #c99a24;
  --pin-bg: #fff4cf;
  --pin-border: rgba(201, 154, 36, 0.5);
  --pin-focus: rgba(201, 154, 36, 0.16);
  --favorite-color: #8b6aa3;
  --favorite-bg: #f6eefb;
  --favorite-border: rgba(139, 106, 163, 0.46);
  --favorite-focus: rgba(139, 106, 163, 0.15);
  --price-slider-low: #2f916f;
  --price-slider-high: #6f5a7d;
}

body[data-storybook-theme="western"] {
  --muted: #756959;
  --line: #e5d5bf;
  --brand: #9b6030;
  --brand-dark: #3d2a1d;
  --accent: #b85f45;
  --signal: #b9bf78;
  --shadow: 0 12px 34px rgba(61, 42, 29, 0.13);
  --brand-tagline-color: #8f572d;
  --story-name-color: #8a562a;
  --storybook-card-bg: #fff2df;
  --storybook-card-border: rgba(155, 96, 48, 0.32);
  --storybook-label: #8a562a;
  --theme-soft: rgba(155, 96, 48, 0.1);
  --theme-focus: rgba(155, 96, 48, 0.15);
  --pin-color: #2f6f64;
  --pin-bg: #e4f0ea;
  --pin-border: rgba(47, 111, 100, 0.48);
  --pin-focus: rgba(47, 111, 100, 0.15);
  --favorite-color: #a95f2d;
  --favorite-bg: #fff0df;
  --favorite-border: rgba(169, 95, 45, 0.46);
  --favorite-focus: rgba(169, 95, 45, 0.15);
  --price-slider-low: #8a562a;
  --price-slider-high: #c99a36;
}

body[data-storybook-theme="none"] {
  --brand-tagline-color: #6f5a7d;
  --price-slider-low: #4b3d56;
  --price-slider-high: #7b6490;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: grid;
  gap: 2px 18px;
  grid-template-columns: minmax(150px, max-content) minmax(0, 1fr) minmax(292px, 274px);
  align-items: start;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(16, 44, 45, 0.16);
  background: var(--topbar-bg);
  box-shadow: 0 10px 30px rgba(24, 32, 29, 0.08), inset 0 0px 0 rgba(255, 255, 255, 0.42);
}

.topbar > * {
  position: relative;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(23px, 2.7vw, 34px);
  line-height: 0.96;
  letter-spacing: 0;
}

.brand-block {
  --brand-icon-layout-size: 42px;
  --brand-lockup-gap: 13px;
  --brand-partner-gap: 7.5px;
  --partner-layout-height: 25px;
  position: relative;
  display: grid;
  grid-template-columns: max-content;
  align-content: start;
  align-items: start;
  gap: 5px;
  justify-self: start;
  min-width: 0;
  width: fit-content;
}

.brand-block:has(.partner-line:not([hidden])) {
  padding-bottom: calc(var(--brand-partner-gap) + var(--partner-layout-height));
}

.brand-left {
  justify-self: start;
  min-width: 0;
}

.brand-right {
  position: absolute;
  top: calc(var(--brand-icon-layout-size) + var(--brand-partner-gap));
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  transition: opacity 120ms ease;
}

.brand-block:has(.app-switcher[open]) .brand-right {
  opacity: 0;
  pointer-events: none;
}

.brand-block h1 {
  max-width: none;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.brand-lockup-text {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-wordmark {
  color: #102c2d;
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(29px, 1.35vw, 40px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.brand-tagline {
  color: var(--brand-tagline-color);
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(9px, 0.82vw, 11px);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--brand-lockup-gap);
  min-width: 0;
}

.brand-icon-link,
.brand-wordmark-link {
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.brand-icon-link {
  display: flex;
  flex: 0 0 auto;
  width: fit-content;
  border-radius: 10px;
}

.brand-wordmark-link {
  display: block;
  width: fit-content;
  border-radius: 6px;
  line-height: inherit;
}

.brand-icon-link:focus-visible,
.brand-wordmark-link:focus-visible {
  border-radius: 10px;
  box-shadow: 0 0 0 4px var(--theme-focus);
  outline: 0;
}

.app-switcher {
  position: absolute;
  z-index: 15;
  bottom: 0;
  left: 0;
  width: fit-content;
  line-height: 0;
}

.app-switcher-placeholder {
  visibility: hidden;
}

.app-switcher summary {
  list-style: none;
}

.app-switcher summary::-webkit-details-marker {
  display: none;
}

.app-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
}

.app-switcher-trigger svg {
  width: 8px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 150ms ease;
}

.app-switcher-trigger:hover {
  color: var(--brand-dark);
}

.app-switcher-trigger:focus-visible {
  box-shadow: 0 0 0 4px var(--theme-focus);
  outline: 0;
}

.app-switcher[open] .app-switcher-trigger svg {
  transform: rotate(180deg);
}

.app-switcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: calc(-1 * (var(--brand-icon-layout-size) + var(--brand-lockup-gap)));
  display: grid;
  width: min(360px, calc(100vw - 24px));
  gap: 4px;
  border: 1px solid rgba(16, 44, 45, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(31, 27, 35, 0.2), 0 4px 14px rgba(31, 27, 35, 0.08);
  padding: 8px;
  backdrop-filter: blur(18px) saturate(1.08);
  line-height: 1.2;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.app-switcher-menu::before {
  position: absolute;
  top: -6px;
  left: 98px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(16, 44, 45, 0.14);
  border-left: 1px solid rgba(16, 44, 45, 0.14);
  background: rgba(255, 255, 255, 0.98);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.app-switcher-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 10px;
  color: var(--ink);
  padding: 8px;
  text-decoration: none;
  transition: background 130ms ease, transform 130ms ease;
}

.app-switcher-option-home {
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(16, 44, 45, 0.09);
  border-radius: 10px 10px 5px 5px;
  padding-bottom: 12px;
  background: #ebedec;
}

.app-switcher-option:hover,
.app-switcher-option:focus-visible {
  outline: 0;
  transform: translateX(2px);
}

.app-switcher-option-home:hover,
.app-switcher-option-home:focus-visible { background: #e4ebeb; }
.app-switcher-option-explore:hover,
.app-switcher-option-explore:focus-visible { background: #fff3c4; }
.app-switcher-option-lantern:hover,
.app-switcher-option-lantern:focus-visible { background: #fff0e5; }
.app-switcher-option-cooking:hover,
.app-switcher-option-cooking:focus-visible { background: #fde9e6; }
.app-switcher-option-story:hover,
.app-switcher-option-story:focus-visible { background: #e6f0f2; }
.app-switcher-option-workbench:hover,
.app-switcher-option-workbench:focus-visible { background: #f3e6dd; }
.app-switcher-option-homebook:hover,
.app-switcher-option-homebook:focus-visible { background: #e9f0ea; }
.app-switcher-option-labelwise:hover,
.app-switcher-option-labelwise:focus-visible { background: #efeaf2; }
.app-switcher-option-tabletop:hover,
.app-switcher-option-tabletop:focus-visible { background: #f0f5df; }

.app-switcher-option.is-active {
  background: #f3edf6;
}

.app-switcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(16, 44, 45, 0.09);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(31, 27, 35, 0.06);
}

.app-switcher-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.app-switcher-icon-labelwise {
  box-shadow: 0 3px 10px rgba(111, 90, 125, 0.13);
}

.app-switcher-icon-home {
  box-shadow: 0 3px 10px rgba(107, 125, 125, 0.13);
}

.app-switcher-icon-cooking {
  box-shadow: 0 3px 10px rgba(230, 70, 53, 0.12);
}

.app-switcher-icon-homebook {
  box-shadow: 0 3px 10px rgba(214, 164, 0, 0.13);
}

.app-switcher-icon-explore {
  box-shadow: 0 3px 10px rgba(255, 196, 0, 0.14);
}

.app-switcher-icon-lantern {
  box-shadow: 0 3px 10px rgba(198, 115, 49, 0.13);
}

.app-switcher-icon-story {
  box-shadow: 0 3px 10px rgba(52, 111, 126, 0.13);
}

.app-switcher-icon-workbench {
  box-shadow: 0 3px 10px rgba(107, 68, 54, 0.13);
}

.app-switcher-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.app-switcher-copy strong {
  color: #332b3b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.app-switcher-copy small {
  color: #716b73;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.app-switcher-check,
.app-switcher-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-switcher-check {
  color: #6f5a7d;
}

.app-switcher-arrow {
  color: #a7a1a8;
}

.partner-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: min(100%, 290px);
  margin: 0;
  border: 1px solid rgba(16, 44, 45, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--brand);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(24, 32, 29, 0.08);
  backdrop-filter: blur(8px) saturate(1.05);
  padding: 4px 9px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.brand-right .partner-line {
  flex: 0 0 auto;
  max-width: 290px;
  white-space: nowrap;
}

.partner-line a {
  color: inherit;
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}

.brand-right .partner-line a {
  white-space: nowrap;
}

.partner-line:hover,
.partner-line:focus-within {
  border-color: rgba(111, 90, 125, 0.54);
  background: rgba(247, 242, 250, 0.9);
  box-shadow: 0 0 0 3px rgba(111, 90, 125, 0.12), 0 8px 20px rgba(24, 32, 29, 0.12);
  color: var(--brand);
  transform: translateY(-1px);
}

.partner-line a:hover,
.partner-line a:focus-visible {
  color: var(--brand);
  outline: 0;
}

.brand-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

#resultSummary {
  grid-column: 2 / 4;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 14px;
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  min-height: 26px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  justify-self: stretch;
}

#resultSummary.filters-wrapped {
  min-height: 59px;
}

#resultSummary.is-empty {
  display: none;
  min-height: 0;
  margin-top: 0;
}

.summary-count {
  position: fixed;
  left: 18px;
  bottom: 14px;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 10;
  max-width: min(560px, calc(100vw - 36px));
  border: 1px solid rgba(213, 222, 211, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(24, 32, 29, 0.16);
  color: #3f5049;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  padding: 4px 12px;
  text-align: left;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.summary-count .pager {
  padding: 0;
}

.location-pill {
  position: fixed;
  bottom: 14px;
  z-index: 2100;
  display: flex;
  align-items: center;
  min-height: 32px;
  max-width: min(340px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(213, 222, 211, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(24, 32, 29, 0.16);
  color: #3f5049;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.location-pill[hidden] {
  display: none;
}

.location-pill span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-filters {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  max-height: 26px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

#resultSummary.filters-wrapped .summary-filters {
  max-height: none;
}

.filter-chip {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 210px;
  height: 26px;
  overflow: hidden;
  border: 1px solid #c9cec8;
  border-radius: 6px;
  background: #eef0ed;
  color: #55615b;
  box-shadow: none;
  padding: 0 10px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 24px;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: #9daa91;
  background: #d9dec9;
  outline: 0;
}

.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 1) {
  border-color: #c9cec8;
  background: #eef0ed;
  color: #55615b;
}

.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 2) {
  border-color: #c9cec8;
  background: #eef0ed;
  color: #55615b;
}

.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 3) {
  border-color: #c9cec8;
  background: #eef0ed;
  color: #55615b;
}

.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 4) {
  border-color: #c9cec8;
  background: #eef0ed;
  color: #55615b;
}

.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 1):hover,
.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 1):focus-visible {
  border-color: #9daa91;
  background: #d9dec9;
  color: #425543;
}

.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 2):hover,
.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 2):focus-visible {
  border-color: #b79f78;
  background: #e6d5b8;
  color: #65533b;
}

.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 3):hover,
.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 3):focus-visible {
  border-color: #95aaa5;
  background: #d3dfda;
  color: #3f5854;
}

.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 4):hover,
.filter-chip:not(.is-static):not(.is-inactive):nth-of-type(4n + 4):focus-visible {
  border-color: #b58d84;
  background: #dfc8c2;
  color: #68433d;
}

.filter-chip.is-inactive {
  border-color: #b8b0a4;
  border-style: dashed;
  background: #e2ded5;
  color: #7f776c;
  box-shadow: none;
  opacity: 0.72;
  text-decoration: line-through;
}

.filter-chip.is-inactive::before {
  content: "Off";
  display: inline-block;
  margin-right: 6px;
  color: #6b6258;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.filter-chip.is-inactive:hover,
.filter-chip.is-inactive:focus-visible {
  border-color: #9d9286;
  background: #d8d2c7;
  color: #5f574e;
  opacity: 1;
}

.filter-chip.is-static {
  border-color: #d8c9ad;
  background: #eee3cd;
  color: #6a5740;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.clear-filters {
  flex: 0 0 auto;
  height: 26px;
  border: 1px solid #c9cec8;
  border-radius: 999px;
  background: #eef0ed;
  color: #5b615d;
  box-shadow: none;
  padding: 0 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  line-height: 24px;
}

.clear-filters:hover,
.clear-filters:focus-visible {
  border-color: #b9867c;
  background: #dfc0b8;
  color: #7d413a;
  outline: 0;
}

.toolbar {
  display: grid;
  gap: 9px;
  align-items: end;
  border: 1px solid rgba(223, 229, 220, 0.84);
  border-radius: 8px;
  background: var(--toolbar-bg);
  box-shadow: 0 6px 18px rgba(24, 32, 29, 0.055);
  padding: 10px;
}

.filter-panel {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(140px, 1fr) minmax(72px, 0.58fr) minmax(62px, 0.49fr) minmax(68px, 0.42fr) 220px;
  justify-self: stretch;
  width: 100%;
}

.filter-options-toggle {
  position: relative;
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(213, 222, 211, 0.96);
  border-radius: 6px;
  background: var(--field-bg);
  color: var(--brand-dark);
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.filter-options-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.filter-options-toggle:hover,
.filter-options-toggle:focus-visible,
.filter-options-toggle[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
  background: var(--theme-soft);
  box-shadow: 0 0 0 3px var(--theme-focus);
  outline: 0;
}

.filter-options-toggle::after,
.view-options-toggle::after {
  position: absolute;
  z-index: 2200;
  top: calc(100% + 7px);
  left: 50%;
  content: attr(data-tooltip);
  min-width: max-content;
  border: 1px solid rgba(16, 44, 45, 0.14);
  border-radius: 6px;
  background: rgba(16, 44, 45, 0.94);
  color: #fff;
  box-shadow: 0 8px 18px rgba(24, 32, 29, 0.18);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  padding: 7px 8px;
  pointer-events: none;
  text-transform: none;
  transform: translateX(-50%) translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.filter-options-toggle:hover::after,
.filter-options-toggle:focus-visible::after,
.view-options-toggle:hover::after,
.view-options-toggle:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.filter-options-toggle[aria-expanded="true"]::after,
.view-options-toggle[aria-expanded="true"]::after {
  opacity: 0;
}

.filter-options-panel {
  display: contents;
}

.mobile-filter-action-row {
  display: none;
}

.view-action-row {
  display: contents;
}

.display-panel {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  grid-template-columns: minmax(72px, 0.7fr) minmax(90px, 0.7fr) 36px;
  align-items: end;
  justify-self: end;
  width: min(100%, 274px);
}

.display-panel .storybook-field {
  grid-column: 1;
  grid-row: 1;
  position: relative;
}

.display-panel .sort-field {
  grid-column: 2;
  grid-row: 1;
  position: relative;
}

.storybook-field,
.match-field,
.sort-field {
  position: relative;
}

.storybook-field select,
.match-field select,
.sort-field select {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.native-sort-select,
.native-storybook-select,
.native-menu-select {
  display: none;
}

.view-options-toggle {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  margin-top: 0;
}

.pinned-tray {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 2200;
  display: flex;
  align-items: center;
  gap: 8px;
  width: var(--pinned-tray-width, min(590px, calc(100vw - 12px)));
  max-width: min(590px, calc(100vw - 12px));
  overflow: hidden;
  border: 1px solid rgba(213, 222, 211, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 7px 7px 12px;
  box-shadow: 0 14px 34px rgba(24, 32, 29, 0.18);
  backdrop-filter: blur(12px);
  transition: width 420ms cubic-bezier(0.2, 0.76, 0.22, 1), padding 420ms cubic-bezier(0.2, 0.76, 0.22, 1), box-shadow 240ms ease;
}

.pinned-tray.collapsed {
  width: 71px;
  padding: 7px;
}

.pinned-tray-toggle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 1px solid color-mix(in srgb, var(--pin-color) 24%, transparent);
  border-radius: 999px;
  background: var(--pin-bg);
  color: var(--pin-color);
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.pinned-tray-toggle:hover,
.pinned-tray-toggle:focus-visible {
  border-color: var(--pin-border);
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--pin-focus);
  outline: 0;
  transform: translateY(-1px);
}

.pinned-tray-toggle-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.pinned-tray-toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.pinned-tray-strip {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-right: 10px;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(0.2, 0.76, 0.22, 1), max-width 420ms cubic-bezier(0.2, 0.76, 0.22, 1);
}

.pinned-tray.collapsed .pinned-tray-strip {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
}

.pinned-tray-strip::-webkit-scrollbar {
  display: none;
}

.pinned-tray-scrollbar {
  position: absolute;
  right: 22px;
  bottom: 5px;
  left: 22px;
  display: none;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 90, 125, 0.13);
  cursor: pointer;
  touch-action: none;
}

.pinned-tray.has-overflow .pinned-tray-scrollbar {
  display: block;
}

.pinned-tray.collapsed .pinned-tray-scrollbar {
  display: none;
}

.pinned-tray-compare {
  display: none;
}

.pinned-tray-scrollbar span {
  display: block;
  width: 34px;
  height: 100%;
  border-radius: inherit;
  background: rgba(111, 90, 125, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.74) inset;
  transition: transform 80ms linear, width 80ms linear;
  cursor: grab;
}

.pinned-tray.scrollbar-dragging .pinned-tray-scrollbar span {
  cursor: grabbing;
  transition: width 80ms linear;
}

.pinned-tray[hidden] {
  display: none;
}

.pinned-tray-item {
  position: relative;
  flex: 0 0 auto;
}

.pinned-tray-thumb {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 74px;
  height: 55px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--pin-color) 24%, transparent);
  border-radius: 999px;
  background: #e7ece7;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  padding: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.pinned-tray-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease;
}

.pinned-tray-thumb img.storybook-locked {
  filter: saturate(0.5);
}

.pinned-tray-thumb img.storybook-unlocked {
  filter: saturate(1);
}

.pinned-tray-item.active .pinned-tray-thumb,
.pinned-tray-thumb:hover,
.pinned-tray-thumb:focus-visible {
  border-color: color-mix(in srgb, var(--pin-color) 82%, transparent);
  box-shadow: 0 0 0 3px var(--pin-focus);
  outline: 0;
  transform: translateY(-1px);
}

.pinned-tray-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(154, 60, 52, 0.28);
  border-radius: 50%;
  background: rgba(255, 247, 244, 0.96);
  color: #9a3c34;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.view-options-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 36px;
  border: 1px solid rgba(213, 222, 211, 0.96);
  border-radius: 6px;
  background: var(--field-bg);
  color: var(--brand-dark);
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.view-options-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.view-options-toggle:hover,
.view-options-toggle:focus-visible,
.view-options-toggle[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
  background: var(--theme-soft);
  box-shadow: 0 0 0 3px var(--theme-focus);
  outline: 0;
}

.view-options-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(126px, 1fr)) 36px 36px 36px;
  gap: 16px;
  width: min(782px, calc(100vw - 32px));
  border: 2px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 18px 40px rgba(24, 32, 29, 0.16);
  padding: 12px;
}

.view-options-panel .field {
  grid-template-rows: 13px 36px 11px;
  gap: 5px;
}

.view-options-panel > .pinned-field,
.view-options-panel > .favorite-field {
  align-self: start;
  width: 36px;
}

.view-options-panel > .pinned-field > span,
.view-options-panel > .favorite-field > span {
  text-align: center;
}

.view-options-panel > .display-reset-button {
  align-self: start;
  margin-top: 18px;
}

.view-options-panel[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dropdown-field {
  min-width: 0;
  overflow: visible;
}

.field span {
  color: #526159;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.field input,
.field select,
.check-menu summary,
.pinned-filter-button,
.favorite-filter-button,
.mobile-filter-reset-button,
.display-reset-button {
  min-width: 0;
  width: 100%;
  height: 36px;
  border: 1px solid rgba(213, 222, 211, 0.96);
  border-radius: 6px;
  background: var(--field-bg);
  color: var(--ink);
  padding: 0 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 30px;
}

.storybook-field::after,
.match-field::after,
.sort-field::after {
  position: absolute;
  right: 10px;
  top: 31px;
  content: "⌄";
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.storybook-field::after,
.sort-field::after,
.match-field::after {
  content: none;
}

.field input:hover,
.field select:hover,
.check-menu summary:hover,
.pinned-filter-button:hover,
.favorite-filter-button:hover,
.mobile-filter-reset-button:hover,
.display-reset-button:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
  background: var(--panel);
}

.field input:focus,
.field select:focus,
.check-menu summary:focus-visible,
.pinned-filter-button:focus-visible,
.favorite-filter-button:focus-visible,
.mobile-filter-reset-button:focus-visible,
.display-reset-button:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  box-shadow: 0 0 0 3px var(--theme-focus);
  outline: 0;
}

.pinned-filter-button,
.favorite-filter-button,
.mobile-filter-reset-button,
.display-reset-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  appearance: none;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.mobile-filter-reset-button {
  width: 36px;
  color: var(--brand);
}

.pinned-filter-button svg,
.favorite-filter-button svg,
.mobile-filter-reset-button svg,
.display-reset-button svg {
  width: 21px;
  height: 21px;
}

.mobile-filter-reset-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.mobile-filter-reset-spacer {
  visibility: hidden;
}

.display-reset-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.pinned-filter-button,
.favorite-filter-button {
  color: #627069;
}

.pinned-filter-button svg,
.favorite-filter-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pinned-filter-button.active {
  border-color: var(--pin-border);
  background: var(--pin-bg);
  color: var(--pin-color);
  box-shadow: 0 0 0 3px var(--pin-focus);
}

.favorite-filter-button.active {
  border-color: var(--favorite-border);
  background: var(--favorite-bg);
  color: var(--favorite-color);
  box-shadow: 0 0 0 3px var(--favorite-focus);
}

.check-menu {
  position: relative;
  min-width: 0;
}

.check-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  list-style: none;
}

.check-menu summary span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-menu summary::-webkit-details-marker {
  display: none;
}

.check-menu summary::after {
  content: "⌄";
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.check-options {
  position: absolute;
  z-index: 1300;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  min-width: max(100%, 176px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(24, 32, 29, 0.14);
  padding: 8px;
}

.check-options label,
.check-options button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 28px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 5px 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.check-options label:hover,
.check-options button:hover,
.check-options button.active {
  background: var(--theme-soft);
}

.check-options button.active {
  color: var(--brand-dark);
}

.check-options input[type="checkbox"] {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  accent-color: var(--brand);
}

.check-options input[type="checkbox"]:hover,
.check-options input[type="checkbox"]:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
}

#homeTypeMenu .category-options {
  right: auto;
  left: 0;
  width: min(360px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: var(--category-menu-height, calc(100dvh - 120px));
  max-height: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.category-search-wrap {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.field .category-search-input,
.check-options .category-search-input {
  display: block;
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field-bg);
  padding: 0 11px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  box-shadow: none;
}

.field .category-search-input:focus,
.check-options .category-search-input:focus {
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  outline: 0;
  box-shadow: 0 0 0 3px var(--theme-focus);
}

.category-options-list {
  display: block;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0 8px 10px;
}

.category-option-group {
  padding-top: 7px;
}

.category-option-group[hidden] {
  display: none;
}

.category-option-group h3 {
  position: sticky;
  z-index: 1;
  top: 0;
  margin: 0;
  border-bottom: 1px solid rgba(16, 44, 45, 0.08);
  background: #f0e9f4;
  padding: 8px 7px 6px;
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.category-option-group-list {
  display: grid;
  gap: 2px;
  padding-top: 4px;
}

.category-options-list label {
  max-width: 100%;
}

.category-options-list label[hidden] {
  display: none;
}

.field .check-option-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-no-results {
  margin: 0;
  padding: 20px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.category-no-results[hidden] {
  display: none;
}

.range-pair {
  display: grid;
  grid-template-rows: 22px 11px;
  gap: 3px;
  align-items: center;
}

.range-readout {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 11px;
  line-height: 1;
  padding: 0px 10px;
}

.range-readout b {
  font-weight: 500;
}

.rolling-char {
  display: inline-block;
  min-width: 0.58em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  will-change: transform, opacity;
}

.rolling-char:not(.changed) {
  transform: translateY(0);
}

.rolling-char.changed {
  animation: debtDigitRoll 480ms cubic-bezier(0.2, 0.78, 0.24, 1);
}

@keyframes debtDigitRoll {
  0% {
    opacity: 0.25;
    transform: translateY(0.85em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rolling-char.changed {
    animation: none;
  }
}

.range-note {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.range-note b {
  font-weight: 850;
}

.single-range {
  display: grid;
  align-items: center;
  height: 36px;
  margin-top: 0;
}

.zoom-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  height: 36px;
  border: 1px solid rgba(213, 222, 211, 0.96);
  border-radius: 6px;
  background: rgba(238, 241, 237, 0.96);
  padding: 3px;
}

.zoom-toggle button {
  min-width: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #56625c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.zoom-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 1px 4px rgba(24, 32, 29, 0.12);
}

.zoom-toggle button:hover,
.zoom-toggle button:focus-visible {
  color: var(--brand-dark);
  outline: 0;
}

.zoom-toggle:focus-within {
  border-color: rgba(111, 90, 125, 0.45);
  box-shadow: 0 0 0 3px rgba(111, 90, 125, 0.12);
}

.match-field::before {
  content: "";
  grid-row: 3;
  height: 11px;
}

.detail-field input {
  width: 100%;
  height: 36px;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  accent-color: var(--brand);
  appearance: none;
}

.detail-field input::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: #d9e1d8;
}

.detail-field input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1px 5px rgba(24, 32, 29, 0.25);
  cursor: pointer;
  appearance: none;
}

.detail-field input::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #d9e1d8;
}

.detail-field input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1px 5px rgba(24, 32, 29, 0.25);
  cursor: pointer;
}

.dual-range {
  --range-start: 0%;
  --range-end: 100%;
  position: relative;
  height: 30px;
  margin-inline: 8px;
}

.range-track {
  position: absolute;
  top: 11px;
  right: 0;
  left: 0;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      var(--price-slider-track) 0%,
      var(--price-slider-track) var(--range-start),
      var(--price-slider-low) var(--range-start),
      var(--price-slider-high) var(--range-end),
      var(--price-slider-track) var(--range-end),
      var(--price-slider-track) 100%
    );
}

.dual-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 30px;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  appearance: none;
  padding: 0px 0px
}

.dual-range input[type="range"]:hover,
.dual-range input[type="range"]:focus {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  outline: 0;
}

.dual-range input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border: 0;
  box-shadow: none;
  background: transparent;
  appearance: none;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--price-slider-high);
  box-shadow: 0 1px 5px rgba(24, 32, 29, 0.25);
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
}

.dual-range input[type="range"]::-moz-range-track {
  height: 8px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.dual-range input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--price-slider-high);
  box-shadow: 0 1px 5px rgba(24, 32, 29, 0.25);
  cursor: pointer;
  pointer-events: auto;
}

#minPriceFilter {
  z-index: 2;
}

#maxPriceFilter {
  z-index: 3;
}

#minPriceFilter::-webkit-slider-thumb {
  background: var(--price-slider-low);
}

#minPriceFilter::-moz-range-thumb {
  background: var(--price-slider-low);
}

.main-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 61.8fr) 18px minmax(340px, 38.2fr);
  gap: 10px;
  align-items: stretch;
  padding: 22px clamp(14px, 3vw, 34px) 40px;
}

.listing-pane {
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.split-handle {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
  z-index: 2;
}

.split-handle::after {
  content: "›";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(111, 90, 125, 0.3);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(38, 32, 43, 0.12);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.main-layout.comparison-collapsed .split-handle {
  cursor: pointer;
}

.main-layout.comparison-collapsed .split-handle::after {
  content: "‹";
}

.main-layout.comparison-collapsed .main-map-pane {
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.split-handle::before {
  content: "";
  width: 2px;
  height: 100%;
  border-radius: 999px;
  background: rgba(111, 90, 125, 0.2);
}

.split-handle:hover,
.split-handle.dragging,
.split-handle:focus-visible {
  outline: 0;
}

.split-handle:hover::before,
.split-handle.dragging::before,
.split-handle:focus-visible::before {
  background: rgba(111, 90, 125, 0.42);
}

.split-handle:hover::after,
.split-handle.dragging::after,
.split-handle:focus-visible::after {
  border-color: rgba(111, 90, 125, 0.55);
  box-shadow: 0 0 0 4px rgba(111, 90, 125, 0.1), 0 3px 10px rgba(38, 32, 43, 0.16);
}

.main-map-pane {
  height: 100%;
  min-width: 0;
}

.mobile-comparison-close {
  display: none;
}

.main-listings-map {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(111, 90, 125, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(169, 139, 187, 0.14), transparent 34%),
    linear-gradient(155deg, #f8f6fa 0%, #f4f1f6 100%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.comparison-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100%;
  padding: clamp(30px, 6vw, 72px);
  text-align: center;
}

.comparison-empty-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  border: 1px solid rgba(154, 107, 24, 0.28);
  border-radius: 50%;
  background: var(--pin-bg);
  color: var(--pin-color);
}

.comparison-empty-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.comparison-kicker {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comparison-empty h2,
.comparison-heading h2 {
  margin: 0;
  color: var(--brand-dark);
  letter-spacing: -0.025em;
}

.comparison-empty h2 {
  max-width: 390px;
  font-size: clamp(24px, 3vw, 34px);
}

.comparison-empty > p:not(.comparison-kicker) {
  max-width: 440px;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.55;
}

.comparison-empty-hint {
  border: 1px solid rgba(111, 90, 125, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 8px 13px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 850;
}

.comparison-pane-inner {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: clamp(18px, 2.4vw, 30px);
}

.comparison-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.comparison-heading h2 {
  font-size: clamp(22px, 2.7vw, 30px);
}

.comparison-heading > span {
  flex: 0 0 auto;
  border: 1px solid rgba(111, 90, 125, 0.18);
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 850;
}

.comparison-conclusion {
  margin: 0;
  border-left: 4px solid var(--brand);
  border-radius: 0 9px 9px 0;
  background: rgba(255, 255, 255, 0.76);
  padding: 13px 15px;
  color: #413849;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.comparison-table-scroll {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(111, 90, 125, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.comparison-table {
  width: 100%;
}

.comparison-row {
  display: grid;
  grid-template-columns: 112px repeat(var(--comparison-columns), minmax(0, 1fr));
}

.comparison-row > * {
  min-width: 0;
  border-bottom: 1px solid #e7e3e9;
  border-left: 1px solid #eeeaf0;
  padding: 11px 12px;
}

.comparison-row > :first-child {
  border-left: 0;
}

.comparison-row > strong:first-child {
  color: #657069;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-products-row > strong:first-child {
  display: flex;
  align-items: end;
  padding-bottom: 14px;
}

.comparison-product {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 110px;
  background: #fff;
}

.comparison-product .comparison-product-image-link {
  width: 48px;
  height: 58px;
}

.comparison-product .comparison-product-image {
  width: 48px;
  height: 58px;
  border-radius: 6px;
  object-fit: contain;
}

.comparison-product-image-link {
  display: block;
  border-radius: 7px;
}

.comparison-product-image-link:hover,
.comparison-product-image-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(111, 90, 125, 0.18);
  outline: 1px solid rgba(111, 90, 125, 0.48);
}

.comparison-product > div {
  display: grid;
  gap: 4px;
}

.comparison-product > div span {
  color: var(--brand);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-product > div strong {
  color: #26312c;
  font-size: 11px;
  line-height: 1.3;
}

.comparison-status {
  grid-column: 1 / -1;
  justify-self: start;
  border: 1px solid color-mix(in srgb, var(--comparison-status-color) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--comparison-status-color) 10%, #fff);
  padding: 3px 7px;
  color: var(--comparison-status-color);
  font-size: 8px;
  font-weight: 900;
}

.comparison-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b6f80;
  cursor: pointer;
  padding: 0;
  font-size: 17px;
}

.comparison-remove:hover,
.comparison-remove:focus-visible {
  background: #f4edf3;
  color: #7c3e5d;
  outline: 0;
}

.comparison-section-label {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ded8e1;
  background: #f5f1f7;
  padding: 8px 12px;
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.comparison-section-label span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.comparison-score-row > * {
  display: flex;
  align-items: baseline;
}

.comparison-score-row > strong:first-child {
  align-items: center;
}

.comparison-score {
  color: var(--comparison-score-color);
  font-size: 19px;
  font-weight: 900;
}

.comparison-score small {
  font-size: 8px;
}

.comparison-text-row > span {
  color: #45514b;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.42;
}

.comparison-text-row > .comparison-findings-cell {
  display: grid;
  gap: 8px;
}

.comparison-finding {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.comparison-cell-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -2px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 9%, #fff);
}

.comparison-cell-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.comparison-icon-cell--concern .comparison-cell-icon {
  color: #75577f;
}

.comparison-icon-cell--elevated .comparison-cell-icon {
  color: #bd7b1d;
}

.comparison-icon-cell--best .comparison-cell-icon {
  color: #16836f;
}

.comparison-icon-cell--avoid .comparison-cell-icon {
  color: #b95047;
}

.comparison-icon-cell--clear .comparison-cell-icon,
.comparison-icon-cell--best .comparison-cell-icon,
.comparison-icon-cell--use .comparison-cell-icon {
  color: #16836f;
}

.comparison-icon-cell--fragrance .comparison-cell-icon {
  color: #8a5c96;
}

.comparison-icon-cell--allergy .comparison-cell-icon,
.comparison-icon-cell--eye .comparison-cell-icon {
  color: #b95047;
}

.comparison-icon-cell--irritation .comparison-cell-icon {
  color: #c3742d;
}

.comparison-icon-cell--sun .comparison-cell-icon {
  color: #b88512;
}

.comparison-icon-cell--preservative .comparison-cell-icon,
.comparison-icon-cell--medical .comparison-cell-icon {
  color: #506f91;
}

.comparison-icon-cell--fragrance-free .comparison-cell-icon,
.comparison-icon-cell--sensitive .comparison-cell-icon {
  color: #16836f;
}

.comparison-icon-cell--acid .comparison-cell-icon,
.comparison-icon-cell--heat .comparison-cell-icon {
  color: #bd7124;
}

.comparison-icon-cell--oral .comparison-cell-icon {
  color: #a85f76;
}

.comparison-icon-cell--pregnancy .comparison-cell-icon {
  color: #7b62a2;
}

.comparison-icon-cell--child .comparison-cell-icon {
  color: #4e7c9d;
}

.comparison-icon-cell--skin .comparison-cell-icon {
  color: #b95047;
}

.comparison-actions-row > button,
.comparison-audit-button {
  border: 1px solid rgba(111, 90, 125, 0.26);
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
}

.comparison-actions-row > button:hover,
.comparison-actions-row > button:focus-visible,
.comparison-audit-button:hover,
.comparison-audit-button:focus-visible {
  background: var(--brand-dark);
  outline: 0;
}

.comparison-method-note {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
}

.comparison-single {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid rgba(111, 90, 125, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(16px, 2.4vw, 24px);
}

.comparison-single-product {
  display: grid;
  grid-template-columns: minmax(90px, 0.36fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.comparison-single-product .comparison-product-image-link {
  width: 100%;
  max-height: 180px;
}

.comparison-single-product .comparison-product-image {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.comparison-single-product > div > span {
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comparison-single-product h3 {
  margin: 5px 0 12px;
  color: #27332d;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.18;
}

.comparison-single-score {
  color: var(--comparison-score-color);
  font-size: 11px;
  font-weight: 850;
}

.comparison-single-score strong {
  font-size: 28px;
}

.comparison-single-score small {
  font-size: 9px;
}

.comparison-single-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.comparison-single-facts > div {
  border: 1px solid #e5e0e7;
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.comparison-single-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-single-facts dd {
  margin: 0;
  color: #35423c;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
}

.comparison-add-prompt {
  margin: 0;
  border-radius: 8px;
  background: #f4eff6;
  padding: 11px 13px;
  color: #5b4a65;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
}

.comparison-audit-button {
  justify-self: start;
  padding: 9px 13px;
}

.main-listings-map .maplibregl-control-container {
  font: initial;
}

.listing-map-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 10px rgba(24, 32, 29, 0.25);
  cursor: pointer;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.marker-pin-icon,
.marker-favorite-icon {
  display: none;
  place-items: center;
}

.marker-pin-icon svg,
.marker-favorite-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.listing-map-marker.is-pinned {
  min-width: 30px;
  width: 30px;
  height: 30px;
  border-color: color-mix(in srgb, var(--pin-color) 18%, #fff 82%);
  background: var(--pin-color);
  color: color-mix(in srgb, var(--pin-bg) 86%, #fff 14%);
  padding: 0;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--pin-color) 34%, transparent);
}

.listing-map-marker.is-favorite {
  min-width: 30px;
  width: 30px;
  height: 30px;
  border-color: color-mix(in srgb, var(--favorite-color) 18%, #fff 82%);
  background: var(--favorite-color);
  color: color-mix(in srgb, var(--favorite-bg) 88%, #fff 12%);
  padding: 0;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--favorite-color) 30%, transparent);
}

.listing-map-marker.is-pinned .marker-price,
.listing-map-marker.is-favorite .marker-price {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.listing-map-marker.is-pinned .marker-pin-icon {
  display: grid;
}

.listing-map-marker.is-favorite .marker-favorite-icon {
  display: grid;
}

.marker-preview {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 1001;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 178px;
  min-height: 150px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #e8ece5;
  box-shadow: 0 10px 26px rgba(24, 32, 29, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px) scale(0.98);
  transition: opacity 120ms ease, transform 120ms ease;
}

.marker-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.marker-preview strong {
  display: block;
  overflow: hidden;
  background: #fff;
  color: #26342f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  padding: 7px 8px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-map-marker:hover .marker-preview,
.listing-map-marker:focus-visible .marker-preview,
.listing-map-marker.card-hover .marker-preview {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.listing-map-marker.preview-below .marker-preview {
  top: calc(100% + 10px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px) scale(0.98);
}

.listing-map-marker.preview-below:hover .marker-preview,
.listing-map-marker.preview-below:focus-visible .marker-preview,
.listing-map-marker.preview-below.card-hover .marker-preview {
  transform: translateX(-50%) translateY(0) scale(1);
}

.listing-map-marker.grey-match {
  background: #79837d;
  opacity: 0.62;
}

.listing-map-marker.is-pinned.grey-match {
  background: var(--pin-color);
  opacity: 0.78;
}

.listing-map-marker.is-favorite.grey-match {
  background: var(--favorite-color);
  opacity: 0.76;
}

.listing-map-marker.hide-match {
  visibility: hidden;
  pointer-events: none;
}

.listing-map-marker:hover,
.listing-map-marker.card-hover {
  z-index: 1000;
  background: var(--brand-dark);
}

.listing-map-marker:focus-visible {
  z-index: 1000;
}

.maplibregl-marker:has(.listing-map-marker.is-pinned) {
  z-index: 500;
}

.maplibregl-marker:has(.listing-map-marker.is-favorite) {
  z-index: 450;
}

.maplibregl-marker:has(.listing-map-marker:hover),
.maplibregl-marker:has(.listing-map-marker:focus-visible),
.maplibregl-marker:has(.listing-map-marker.card-hover) {
  z-index: 1000;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min)), 1fr));
  gap: 18px;
  align-items: start;
  min-height: 100%;
  padding: 6px 6px 76px;
  scroll-padding-bottom: 76px;
}

.cards:has(.empty) {
  align-content: center;
  justify-content: center;
  place-items: center;
}

.grid-loading {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  place-items: center;
  justify-self: center;
  align-self: center;
}

.grid-loading-brand {
  position: relative;
  display: grid;
  place-items: center;
  width: max-content;
  max-width: calc(100vw - 48px);
}

.grid-loading-lockup {
  position: relative;
  z-index: 1;
  padding: 0;
}

.grid-loading-lockup .brand-icon {
  width: 51px;
  height: 51px;
}

.grid-loading-lockup .brand-wordmark {
  font-size: clamp(34px, 3.8vw, 48px);
}

.grid-loading-lockup .brand-tagline {
  font-size: clamp(10px, 1vw, 13px);
}

.loading-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 20px;
}

.loading-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(94, 102, 97, 0.72);
  animation: loadingPulse 900ms ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.loading-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.map-loading {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

@keyframes loadingPulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.86);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px) scale(1);
  }
}

.card {
  container-type: inline-size;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(24, 32, 29, 0.07);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.card.grey-match {
  opacity: 0.42;
  filter: grayscale(0.82);
}

.card.highlight-match {
  box-shadow: inset 0 0 0 6px rgb(23 89 46 / 62%), 0 14px 32px rgb(111 15 42 / 16%);
}

.card.status-pending {
  border-color: rgba(184, 103, 24, 0.52);
  box-shadow: inset 0 0 0 6px rgba(184, 103, 24, 0.62), 0 5px 18px rgba(24, 32, 29, 0.07);
}

.card.status-sold {
  border-color: rgba(178, 54, 54, 0.52);
  box-shadow: inset 0 0 0 6px rgba(178, 54, 54, 0.62), 0 5px 18px rgba(24, 32, 29, 0.07);
}

.card.hide-match {
  visibility: hidden;
  pointer-events: none;
}

.card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--brand) 38%, transparent);
  box-shadow: var(--shadow);
}

.card.grey-match:hover {
  opacity: 0.92;
}

.card.highlight-match:hover {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 5px rgba(111, 90, 125, 0.28), var(--shadow);
}

.card.status-pending:hover {
  border-color: rgba(184, 103, 24, 0.72);
  box-shadow: inset 0 0 0 6px rgba(184, 103, 24, 0.62), var(--shadow);
}

.card.status-sold:hover {
  border-color: rgba(178, 54, 54, 0.72);
  box-shadow: inset 0 0 0 6px rgba(178, 54, 54, 0.62), var(--shadow);
}

.card.is-pinned {
  border-color: var(--pin-border);
}

.card.is-favorite:not(.is-pinned) {
  border-color: var(--favorite-border);
}

.pin-button,
.favorite-button,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(213, 222, 211, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #627069;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.pin-button svg,
.favorite-button svg,
.share-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pin-button:hover,
.pin-button:focus-visible,
.favorite-button:hover,
.favorite-button:focus-visible,
.share-button:hover,
.share-button:focus-visible {
  border-color: var(--pin-border);
  background: var(--pin-bg);
  color: var(--brand-dark);
  box-shadow: 0 0 0 3px var(--pin-focus);
  outline: 0;
}

.pin-button.pinned {
  border-color: var(--pin-border);
  background: var(--pin-bg);
  color: var(--pin-color);
}

.favorite-button:hover,
.favorite-button:focus-visible {
  border-color: var(--favorite-border);
  background: var(--favorite-bg);
  color: var(--favorite-color);
  box-shadow: 0 0 0 3px var(--favorite-focus);
}

.favorite-button.favorited {
  border-color: var(--favorite-border);
  background: var(--favorite-bg);
  color: var(--favorite-color);
}

.share-button.copied,
.share-menu button.copied {
  border-color: rgba(111, 90, 125, 0.38);
  background: rgba(232, 246, 240, 0.96);
  color: var(--brand);
}

.share-menu-wrap {
  position: relative;
  display: inline-flex;
}

.share-menu {
  position: absolute;
  z-index: 2405;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 142px;
  border: 1px solid rgba(213, 222, 211, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(24, 32, 29, 0.16);
  padding: 6px;
}

.share-menu[hidden] {
  display: none;
}

.share-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #38433e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
  text-align: left;
}

.share-menu button:hover,
.share-menu button:focus-visible {
  background: var(--theme-soft);
  color: var(--brand-dark);
  outline: 0;
}

.card-pin-button,
.card-favorite-button {
  position: absolute;
  z-index: 4;
  top: 9px;
  width: 29px;
  height: 29px;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(24, 32, 29, 0.14);
}

.card-pin-button {
  right: 9px;
}

.card-favorite-button {
  right: 44px;
}

.card-pin-button span,
.card-favorite-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.card-pin-button.pinned {
  background: var(--pin-color);
  color: #fff;
}

.card-favorite-button.favorited {
  background: var(--favorite-color);
  color: #fff;
}

.card:focus-visible,
.icon-button:focus-visible,
.pager button:focus-visible {
  outline: 3px solid rgba(111, 90, 125, 0.28);
  outline-offset: 2px;
}

.card-body {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.price {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.product-brand {
  overflow-wrap: anywhere;
}

.category-pill {
  flex: 0 1 auto;
  align-self: start;
  max-width: 52%;
  overflow: hidden;
  border: 1px solid rgba(111, 90, 125, 0.24);
  border-radius: 999px;
  background: var(--theme-soft);
  padding: 4px 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  align-self: start;
  border: 1px solid rgba(111, 90, 125, 0.22);
  border-radius: 999px;
  background: #eaf5f0;
  color: var(--brand-dark);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.status-pending {
  border-color: rgba(184, 103, 24, 0.32);
  background: #fff0d7;
  color: #8a4a10;
}

.status.status-coming-soon {
  border-color: rgba(33, 81, 134, 0.34);
  background: #e6f0ff;
  color: #215186;
}

.status.status-sold {
  border-color: rgba(178, 54, 54, 0.32);
  background: #ffe3e3;
  color: #963333;
}

.status.score-status {
  border-color: color-mix(in srgb, var(--status-score-color) 38%, transparent);
  background: color-mix(in srgb, var(--status-score-color) 11%, #fff);
  color: var(--status-score-color);
}

.address {
  color: #29342f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
}

.card-address {
  display: grid;
  gap: 2px;
}

.card-address span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(11px, 4.2cqw, 15px);
}

.fantasy-house-name {
  overflow: hidden;
  color: var(--story-name-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 4.4cqw, 16px);
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(4px, 1.8cqw, 8px);
}

.fact {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, auto);
  align-items: baseline;
  justify-content: center;
  gap: clamp(2px, 1.2cqw, 5px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px clamp(3px, 1.5cqw, 6px);
  background: #fbfcfa;
  white-space: nowrap;
}

.fact strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(11px, 3.6cqw, 16px);
  line-height: 1;
}

.fact span {
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: clamp(8px, 2.45cqw, 11px);
  font-weight: 700;
  text-transform: uppercase;
}

.card-safety-snapshot {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 2px 0;
}

.card-overall-gauge {
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #dce5e0 0);
  text-align: center;
}

.card-overall-gauge::before {
  position: absolute;
  z-index: -1;
  inset: 5px;
  border-radius: inherit;
  background: #fff;
  content: '';
}

.card-overall-gauge strong,
.card-overall-gauge span {
  display: block;
}

.card-overall-gauge strong {
  color: #24332c;
  font-size: 19px;
  line-height: 1;
}

.card-overall-gauge strong small {
  font-size: 9px;
}

.card-overall-gauge span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-safety-breakdown {
  display: grid;
  min-width: 0;
}

.card-safety-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 7px;
}

.card-safety-numbers > div {
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.card-safety-numbers strong,
.card-safety-numbers span {
  display: block;
}

.card-safety-numbers strong {
  color: var(--metric-color);
  font-size: 17px;
  line-height: 1;
}

.card-safety-numbers strong small {
  font-size: 8px;
}

.card-safety-numbers span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #526059;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
}

@container (max-width: 340px) {
  .card-safety-snapshot {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
  }

  .card-overall-gauge {
    width: 56px;
    height: 56px;
  }
}

.gallery-wrap {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gallery {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8ece5;
  touch-action: pan-y;
}

.card .gallery {
  aspect-ratio: 4 / 3;
}

.gallery img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.gallery img.product-page-image {
  object-fit: contain;
  background: #fff;
}

.gallery.storybook-photo > img,
.lightbox-stage > img.storybook-photo,
.marker-preview img.storybook-photo {
  transition: filter 180ms ease;
}

.gallery.storybook-locked > img,
.gallery > img.storybook-locked,
.lightbox-stage > img.storybook-locked,
.marker-preview img.storybook-locked {
  filter: saturate(0.5);
}

.gallery.storybook-unlocked > img,
.gallery > img.storybook-unlocked,
.lightbox-stage > img.storybook-unlocked,
.marker-preview img.storybook-unlocked {
  filter: saturate(1);
}

.storybook-magic-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  display: none;
  pointer-events: none;
}

.gallery.storybook-photo .storybook-magic-layer {
  display: block;
}

.gallery.storybook-photo .storybook-locked-haze {
  display: none;
}

.storybook-locked-haze {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, rgba(20, 35, 42, 0.18), rgba(255, 255, 255, 0.04));
}

.gallery.storybook-locked .storybook-locked-haze {
  display: block;
}

.storybook-sparkles {
  opacity: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 231, 151, 0.86) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(177, 238, 223, 0.82) 0 1px, transparent 2px);
  background-position: 12% 16%, 81% 24%, 20% 78%;
  background-size: 70px 82px, 92px 74px, 110px 96px;
  mix-blend-mode: screen;
}

.gallery.storybook-locked .storybook-sparkles {
  animation: storybookSparkleDrift 4.8s ease-in-out infinite;
  animation-direction: alternate;
  opacity: 0.64;
}

.storybook-shimmer {
  opacity: 0;
  overflow: hidden;
}

.storybook-shimmer::before {
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: -55%;
  width: 44%;
  content: '';
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.2), rgba(255, 238, 166, 0.62), rgba(255, 255, 255, 0.25), transparent);
  filter: blur(1px);
  transform: skewX(-16deg);
}

.gallery.storybook-just-unlocked .storybook-shimmer {
  animation: storybookShimmerLayer 960ms ease-out both;
}

.gallery.storybook-just-unlocked .storybook-shimmer::before {
  animation: storybookShimmerSweep 960ms ease-out both;
}

@keyframes storybookSparkleDrift {
  0% {
    background-position: 12% 16%, 81% 24%, 20% 78%;
    opacity: 0.36;
  }
  50% {
    opacity: 0.76;
  }
  100% {
    background-position: 14% 22%, 78% 18%, 24% 72%;
    opacity: 0.36;
  }
}

@keyframes storybookShimmerLayer {
  0%, 100% {
    opacity: 0;
  }
  20%, 68% {
    opacity: 1;
  }
}

@keyframes storybookShimmerSweep {
  from {
    transform: translateX(0) skewX(-16deg);
  }
  to {
    transform: translateX(360%) skewX(-16deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery.storybook-locked .storybook-sparkles,
  .gallery.storybook-just-unlocked .storybook-shimmer,
  .gallery.storybook-just-unlocked .storybook-shimmer::before {
    animation: none;
  }
}

.storybook-info-button {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(24, 32, 29, 0.68);
  color: #fff;
  cursor: help;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 140ms ease, background 140ms ease;
}

.storybook-info-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.storybook-info-button:hover,
.storybook-info-button:focus-visible {
  background: rgba(24, 32, 29, 0.86);
  outline: 0;
}

.storybook-info-popover {
  position: absolute;
  left: 50%;
  top: 44px;
  z-index: 7;
  width: min(380px, calc(100% - 18px));
  max-height: min(290px, calc(100% - 54px));
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: rgba(17, 24, 21, 0.9);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.58;
  opacity: 0;
  padding: 11px 12px 12px;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
  white-space: pre-wrap;
}

.storybook-info-popover::-webkit-scrollbar {
  width: 10px;
}

.storybook-info-popover::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.storybook-info-popover::-webkit-scrollbar-thumb {
  border: 2px solid rgba(17, 24, 21, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.storybook-info-popover::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.68);
}

.storybook-info-popover p {
  margin: 0 0 9px;
}

.storybook-info-popover p:last-child {
  margin-bottom: 0;
}

.storybook-house-link {
  color: var(--brand-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(16, 44, 45, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.storybook-house-link:hover,
.storybook-house-link:focus-visible {
  color: var(--brand);
  outline: 0;
  text-decoration-color: currentColor;
}

.storybook-info-popover .storybook-house-link {
  color: #fff0b7;
  text-decoration-color: rgba(255, 240, 183, 0.64);
}

.storybook-info-popover .storybook-house-link:hover,
.storybook-info-popover .storybook-house-link:focus-visible {
  color: #ffffff;
  text-decoration-color: currentColor;
}

.storybook-info-button:hover + .storybook-info-popover,
.storybook-info-button:focus + .storybook-info-popover,
.storybook-info-popover:hover {
  opacity: 1;
  pointer-events: auto;
}

.gallery button {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(24, 32, 29, 0.62);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, background 140ms ease;
}

.gallery .storybook-info-button {
  top: 9px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  transform: none;
}

.gallery .card-pin-button,
.gallery .card-favorite-button {
  top: 9px;
  left: auto;
  z-index: 6;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.gallery .card-pin-button {
  right: 9px;
}

.gallery .card-favorite-button {
  right: 44px;
}

.gallery:hover .storybook-info-button,
.gallery:focus-within .storybook-info-button {
  opacity: 0.96;
  pointer-events: auto;
}

.gallery:hover button,
.gallery:focus-within button,
.gallery:hover .photo-count,
.gallery:focus-within .photo-count {
  opacity: 1;
  pointer-events: auto;
}

.card:hover .card-pin-button,
.card:hover .card-favorite-button,
.card:focus-visible .card-pin-button,
.card:focus-visible .card-favorite-button,
.card:focus-within .card-pin-button,
.card:focus-within .card-favorite-button {
  opacity: 0.96;
  pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
  .card .card-pin-button,
  .card .card-favorite-button {
    opacity: 0.96;
    pointer-events: auto;
  }
}

.gallery button:hover {
  background: rgba(24, 32, 29, 0.8);
}

.gallery .card-pin-button:hover,
.gallery .card-pin-button:focus-visible {
  background: color-mix(in srgb, var(--pin-bg) 82%, #fff 18%);
  color: var(--pin-color);
}

.gallery .card-favorite-button:hover,
.gallery .card-favorite-button:focus-visible {
  background: color-mix(in srgb, var(--favorite-bg) 82%, #fff 18%);
  color: var(--favorite-color);
}

.gallery .card-pin-button.pinned:hover,
.gallery .card-pin-button.pinned:focus-visible {
  background: color-mix(in srgb, var(--pin-color) 76%, #fff 24%);
  color: #fff;
}

.gallery .card-favorite-button.favorited:hover,
.gallery .card-favorite-button.favorited:focus-visible {
  background: color-mix(in srgb, var(--favorite-color) 76%, #fff 24%);
  color: #fff;
}

.gallery .prev {
  left: 9px;
}

.gallery .next {
  right: 9px;
}

.photo-count {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(24, 32, 29, 0.62);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, background 140ms ease;
  white-space: nowrap;
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: thin;
}

.gallery-thumb {
  position: relative;
  flex: 0 0 84px;
  width: 84px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #dfe5dc;
  cursor: pointer;
  padding: 0;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 160ms ease, opacity 160ms ease;
}

.gallery-thumb.storybook-locked img {
  filter: saturate(0.45);
  opacity: 0.72;
}

.gallery-thumb.storybook-locked::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.54), transparent 12%),
    linear-gradient(135deg, rgba(20, 35, 42, 0.2), rgba(255, 255, 255, 0.04));
  mix-blend-mode: screen;
  pointer-events: none;
}

.gallery-thumb.storybook-unlocked {
  border-color: rgba(255, 231, 151, 0.82);
}

.gallery-thumb.storybook-unlocked img {
  filter: saturate(1.08);
}

.gallery-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(111, 90, 125, 0.14);
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: rgba(111, 90, 125, 0.55);
  outline: 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.meta-row span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meta-row span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.meta-days {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.retailer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border: 1px solid rgba(111, 90, 125, 0.24);
  border-radius: 7px;
  background: #faf7fb;
  padding: 7px 8px 7px 11px;
}

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

.card-retailer-panel {
  flex: 1 1 auto;
  min-width: 0;
}

.card-retailer-panel > .card-retailer-rating {
  flex: 1 1 auto;
}

.drawer-retailer-panel {
  padding: 9px 10px 9px 13px;
}

.drawer-retailer-panel .card-retailer-label {
  font-size: 11px;
}

.drawer-retailer-panel .card-retailer-score {
  font-size: 17px;
}

.drawer-retailer-panel .card-product-link {
  min-height: 38px;
  padding-inline: 14px;
}

.card-retailer-rating {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 1px 7px;
  min-width: 0;
}

.card-retailer-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.card-retailer-score {
  color: #72500d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.card-retailer-score span {
  color: #d59a16;
}

.card-retailer-rating-unrated {
  align-self: center;
}

.card-retailer-name {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-retailer-rating small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-product-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  border-radius: 6px;
  background: var(--brand);
  padding: 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background 140ms ease;
}

.card-product-link:hover {
  background: var(--brand-dark);
  color: #fff;
}

.card-product-link:focus-visible {
  outline: 3px solid rgba(111, 90, 125, 0.28);
  outline-offset: 2px;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 28px 0 8px;
}

.summary-count .pager {
  gap: 6px;
}

.pager[hidden] {
  display: none;
}

.pager button,
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.summary-count .pager button {
  width: 26px;
  height: 26px;
  border-color: rgba(213, 222, 211, 0.92);
  color: #6f5a7d;
  font-size: 18px;
  line-height: 1;
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

#pageInfo {
  min-width: 120px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.summary-count #pageInfo {
  min-width: 42px;
  color: #4f5d57;
  font-size: 12px;
  font-weight: 900;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(24, 32, 29, 0.34);
}

.drawer {
  --drawer-content-inset: clamp(16px, 4vw, 30px);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  z-index: 2300;
  width: min(100vw, max(672px, 45.84vw));
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 22px 54px rgba(24, 32, 29, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.985);
  transition: transform 220ms ease, opacity 180ms ease;
}

.drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.pinned-drawer-deck {
  --pinned-drawer-width: clamp(432px, 45.84vw, 672px);
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 56px 18px;
  scroll-snap-type: x proximity;
}

.pinned-drawer-deck[hidden] {
  display: none;
}

.pinned-drawer {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  flex: 0 0 min(calc(100vw - 36px), var(--pinned-drawer-width));
  width: min(calc(100vw - 36px), var(--pinned-drawer-width));
  height: min(880px, calc(100vh - 112px));
  max-height: calc(100vh - 112px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 14px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  scroll-snap-align: start;
}

.pinned-drawer.open {
  transform: none;
}

.close-button {
  position: sticky;
  top: 12px;
  isolation: isolate;
  z-index: 20;
  margin: 0px 12px 0 auto;
}

#detailDrawer > .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.pinned-drawer > .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

#detailDrawer > .close-button,
.pinned-drawer > .close-button {
  z-index: 30;
}

.drawer-inner {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: var(--drawer-content-inset) var(--drawer-content-inset) 30px;
}

.drawer-hero {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.drawer-main-image {
  justify-self: center;
  width: 75%;
  min-width: 0;
}

.drawer .gallery {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
}

.drawer .gallery img {
  cursor: zoom-in;
}

.drawer .gallery-thumbs {
  gap: 8px;
}

.drawer .gallery-thumb {
  flex-basis: 128px;
  width: 128px;
}

.drawer-title {
  display: grid;
  gap: 8px;
}

.drawer-address span {
  font-size: 16px;
}

.drawer-address .fantasy-house-name {
  font-size: 18px;
}

.drawer-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.drawer-address-row .drawer-address {
  min-width: 0;
}

.drawer-address.card-address span,
.drawer-address .fantasy-house-name {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.drawer-activity {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: max-content;
}

.drawer-stats {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #5c6962;
  padding-top: 1px;
}

.drawer-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.drawer-stat svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-stat strong {
  color: #38433e;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.drawer-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-price-row .status {
  align-self: center;
  flex: 0 0 auto;
}

.drawer-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.product-category-pill {
  display: inline-flex;
  align-items: center;
  max-width: min(42vw, 240px);
  overflow: hidden;
  border: 1px solid rgba(111, 90, 125, 0.24);
  border-radius: 999px;
  background: rgba(111, 90, 125, 0.08);
  padding: 5px 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-listing-nav {
  position: fixed;
  inset: 0;
  z-index: 2301;
  pointer-events: none;
}

.drawer-listing-nav-button {
  position: fixed;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(24, 32, 29, 0.48);
  color: #fff;
  cursor: pointer;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  padding: 0 0 5px;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.drawer-listing-nav-button:hover,
.drawer-listing-nav-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(24, 32, 29, 0.62);
  outline: 0;
}

.drawer-listing-prev {
  left: max(18px, calc(50vw - (min(100vw, max(672px, 45.84vw)) / 2) - 64px));
}

.drawer-listing-next {
  right: max(18px, calc(50vw - (min(100vw, max(672px, 45.84vw)) / 2) - 64px));
}

.drawer-listing-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.drawer-save-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.drawer-pin-button,
.drawer-favorite-button,
.drawer-share-button {
  width: 30px;
  height: 30px;
  padding: 0;
}

.drawer-pin-button span,
.drawer-favorite-button span,
.drawer-share-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 0;
  background: rgba(12, 17, 15, 0.82);
  padding: clamp(14px, 3vw, 34px);
}

.photo-lightbox[hidden] {
  display: none;
}

.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  background: rgba(12, 17, 15, 0.78);
  padding: clamp(14px, 3vw, 34px);
}

.map-lightbox[hidden] {
  display: none;
}

.pinned-compare-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  background: rgba(12, 17, 15, 0.72);
  padding: clamp(12px, 2.5vw, 28px);
}

.pinned-compare-modal[hidden] {
  display: none;
}

.pinned-compare-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  width: min(1180px, 96vw);
  height: min(820px, 90vh);
  border: 1px solid rgba(223, 229, 220, 0.84);
  border-radius: 10px;
  background: #f7f9f6;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  padding: 14px;
}

.pinned-compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pinned-compare-header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pinned-compare-header strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.pinned-compare-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.pinned-compare-content {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 14px;
  min-height: 0;
  overflow: auto hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.pinned-compare-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  max-height: 100%;
  overflow-y: auto;
  scroll-snap-align: start;
  border: 1px solid rgba(213, 222, 211, 0.94);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 32, 29, 0.08);
  padding: 12px;
}

.compare-remove-pin {
  justify-self: end;
  height: 30px;
  padding: 0 10px;
}

.pinned-compare-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #e8ece5;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.pinned-compare-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pinned-compare-main {
  display: grid;
  gap: 11px;
}

.pinned-compare-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pinned-compare-price-row strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.pinned-compare-address {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.pinned-compare-address:hover span,
.pinned-compare-address:focus-visible span {
  color: var(--brand-dark);
  text-decoration: underline;
}

.pinned-compare-facts {
  gap: 6px;
}

.pinned-compare-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.pinned-compare-details div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.pinned-compare-details dt {
  color: #65736c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pinned-compare-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.pinned-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.map-lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  width: min(1120px, 94vw);
  height: min(820px, 88vh);
  border: 1px solid rgba(223, 229, 220, 0.2);
  border-radius: 10px;
  background: #f7f9f6;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  padding: 12px;
}

.map-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.map-lightbox-header strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maximized-listing-map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8ece5;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(calc(100vw - 184px), 1180px);
  height: min(calc(100vh - 198px), 820px);
  min-height: 0;
  overflow: visible;
  touch-action: pan-y;
}

.lightbox-stage .storybook-info-button {
  left: 12px;
  top: 12px;
  z-index: 1502;
}

.lightbox-stage .storybook-info-popover {
  left: 50%;
  top: 50px;
  z-index: 1502;
  width: min(460px, calc(100vw - 72px));
  max-height: min(360px, calc(100vh - 148px));
}

.lightbox-stage > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(12, 17, 15, 0.58);
  color: #fff;
  cursor: pointer;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(12, 17, 15, 0.72);
  transform: translateY(-50%) scale(1.03);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: -74px;
}

.lightbox-next {
  right: -74px;
}

.lightbox-thumbs {
  display: flex;
  gap: 6px;
  max-width: min(100%, 860px);
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  scrollbar-width: none;
}

.lightbox-thumbs[hidden] {
  display: none;
}

.lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.lightbox-thumbs .gallery-thumb {
  flex-basis: 144px;
  width: 144px;
  border-color: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1501;
}

.drawer-title h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.map-section {
  gap: 8px;
}

.listing-map {
  position: relative;
  display: grid;
  place-items: center;
  height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8ece5;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.listing-map-wrap {
  position: relative;
}

.map-maximize-button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(213, 222, 211, 0.96);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
  box-shadow: 0 6px 16px rgba(24, 32, 29, 0.14);
  cursor: pointer;
}

.map-maximize-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.map-maximize-button:hover,
.map-maximize-button:focus-visible {
  border-color: rgba(111, 90, 125, 0.42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(111, 90, 125, 0.1), 0 6px 16px rgba(24, 32, 29, 0.14);
  outline: 0;
}

.listing-map .maplibregl-control-container {
  font: initial;
}

.street-view-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  border: 1px solid rgba(111, 90, 125, 0.38);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(111, 90, 125, 0.18);
}

.street-view-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.street-view-link:hover {
  border-color: rgba(111, 90, 125, 0.5);
  background: var(--brand-dark);
}

.detail-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.drawer-inner > .detail-section {
  border-top: 0;
  padding-top: 0;
}

.detail-section h3 {
  font-size: 15px;
  letter-spacing: 0;
}

.detail-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.detail-heading-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hospital-list {
  display: grid;
  gap: 8px;
}

.hospital-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid #eef2ed;
  padding: 8px 0;
}

.hospital-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hospital-item strong {
  overflow: hidden;
  color: #29342f;
  font-size: 14px;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hospital-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hospital-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

.hospital-actions b {
  flex: 0 0 auto;
  border: 1px solid rgba(111, 90, 125, 0.18);
  border-radius: 999px;
  background: rgba(111, 90, 125, 0.07);
  color: var(--brand-dark);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.hospital-actions button {
  flex: 0 0 auto;
  border: 1px solid rgba(111, 90, 125, 0.28);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.hospital-actions button:hover,
.hospital-actions button:focus-visible {
  border-color: rgba(111, 90, 125, 0.48);
  background: rgba(111, 90, 125, 0.08);
  outline: 0;
}

.hospital-actions button[aria-pressed="true"] {
  border-color: rgba(217, 107, 95, 0.42);
  background: #fff0ea;
  color: #9e3f35;
}

.description {
  color: #34413b;
  line-height: 1.55;
  white-space: pre-line;
}

.storybook-riddle {
  border: 1px solid var(--storybook-card-border);
  border-radius: 8px;
  background: var(--storybook-card-bg);
  color: #32443d;
  overflow: clip;
}

.storybook-riddle.adult {
  border-color: rgba(111, 90, 125, 0.25);
  background: #f4faf5;
}

.storybook-riddle.solved {
  border-color: rgba(111, 90, 125, 0.42);
  background: #eaf7ee;
  box-shadow: inset 0 0 0 1px rgba(111, 90, 125, 0.08);
}

.storybook-riddle.solved .storybook-riddle-label,
.storybook-riddle.solved .storybook-riddle-cue,
.storybook-riddle.solved .storybook-riddle-status {
  color: #6f5a7d;
}

.storybook-riddle.solved .storybook-riddle-body {
  border-top-color: rgba(111, 90, 125, 0.18);
}

.storybook-riddle-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.storybook-riddle-toggle::-webkit-details-marker {
  display: none;
}

.storybook-riddle-label {
  color: var(--storybook-label);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storybook-riddle.adult .storybook-riddle-label {
  color: #6f5a7d;
}

.storybook-challenge-control {
  margin-top: 13px;
  width: 100%;
}

.storybook-challenge-slider {
  display: block;
  margin-top: 4px;
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
}

.storybook-challenge-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: #6c756f;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.storybook-challenge-levels button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
  padding: 4px 6px;
}

.storybook-challenge-levels button:hover,
.storybook-challenge-levels button:focus-visible {
  background: var(--theme-soft);
  color: var(--brand);
  outline: 0;
}

.storybook-challenge-levels button.active {
  background: var(--theme-focus);
  color: var(--brand);
}

.storybook-challenge-levels button.unavailable {
  cursor: not-allowed;
  opacity: 0.38;
}

.storybook-challenge-panel {
  display: none;
}

.storybook-challenge-panel.active {
  display: block;
}

.storybook-riddle-cue {
  flex: 0 0 auto;
  border: 1px solid rgba(141, 108, 33, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #6f4f12;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 9px;
}

.storybook-riddle.adult .storybook-riddle-cue {
  border-color: rgba(111, 90, 125, 0.25);
  color: #6f5a7d;
}

.storybook-riddle[open] .storybook-riddle-cue {
  color: #59665f;
}

.storybook-riddle-cue::before {
  content: "Open";
}

.storybook-riddle[open] .storybook-riddle-cue::before {
  content: "Close";
}

.storybook-riddle-body {
  position: relative;
  border-top: 1px solid rgba(155, 138, 91, 0.18);
  padding: 0 16px 14px;
}

.storybook-riddle.adult .storybook-riddle-body {
  border-top-color: rgba(111, 90, 125, 0.14);
}

.storybook-riddle p {
  margin: 12px 0 0;
  line-height: 1.55;
}

.storybook-riddle-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.storybook-riddle-reset {
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid rgba(141, 108, 33, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #7d6121;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 10px;
}

.storybook-riddle-reset:hover,
.storybook-riddle-reset:focus-visible {
  border-color: rgba(141, 108, 33, 0.42);
  background: #fff;
  outline: 0;
}

.storybook-riddle-reset:disabled {
  cursor: default;
  opacity: 0.42;
}

.storybook-riddle-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.storybook-riddle-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.storybook-riddle-form span {
  color: #59665f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.storybook-riddle-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(92, 109, 97, 0.28);
  border-radius: 7px;
  background: #fffef9;
  color: #24352f;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  padding: 10px 11px;
}

.storybook-riddle-form input:focus {
  border-color: rgba(111, 90, 125, 0.55);
  outline: 3px solid rgba(111, 90, 125, 0.14);
}

.storybook-riddle-form button {
  border: 1px solid rgba(111, 90, 125, 0.28);
  border-radius: 7px;
  background: #6f5a7d;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 14px;
}

.storybook-riddle-form button:disabled,
.storybook-riddle-form input:disabled {
  cursor: default;
  opacity: 0.62;
}

.storybook-riddle-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #59665f;
  font-size: 13px;
  font-weight: 750;
}

.storybook-riddle-form.has-error .storybook-riddle-status {
  color: #9e3f35;
}

.storybook-riddle.solved .storybook-riddle-status {
  color: #6f5a7d;
}

.storybook-riddle-answer {
  margin-top: 0;
}

.storybook-riddle-answer summary {
  width: max-content;
  max-width: 100%;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.storybook-riddle-answer strong {
  display: inline-block;
  margin-top: 8px;
  color: #6f4f12;
  font-size: 15px;
  text-transform: capitalize;
}

@media (max-width: 560px) {
  .storybook-riddle-form {
    grid-template-columns: 1fr;
  }

  .storybook-riddle-form button {
    width: 100%;
  }
}

.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 22px;
}

.kv div {
  min-width: 0;
  border-bottom: 1px solid rgba(223, 229, 220, 0.72);
  padding: 9px 0;
}

.kv span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.kv strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.25;
}

.area-insights {
  gap: 12px;
}

.area-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.area-insight-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(187, 197, 190, 0.64);
  border-radius: 8px;
  background: #f4f6f3;
  padding: 11px 12px;
}

.area-insight-card.is-loaded {
  border-color: rgba(187, 197, 190, 0.72);
  background: #f4f6f3;
}

.area-insight-card.is-pending {
  background: #fbfbf8;
}

.area-insight-card.is-crime-good,
.area-insight-card.is-crime-worse {
  border-color: var(--insight-border);
  background: var(--insight-tint);
}

.area-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.area-insight-head span {
  color: #52666f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.area-insight-year {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  border: 1px solid rgba(100, 113, 106, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 2px 5px;
  color: #52666f;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.area-insight-year span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.area-insight-year button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(100, 113, 106, 0.12);
  color: #56635d;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0;
}

.area-insight-year button:disabled {
  opacity: 0.35;
  cursor: default;
}

.area-insight-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(111, 90, 125, 0.1);
  color: #6f5a7d;
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.area-insight-card.is-pending .area-insight-head em {
  background: #eef1ec;
  color: #6c7770;
}

.area-insight-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: #16201c;
  font-size: 18px;
  line-height: 1.05;
}

.area-insight-trend {
  display: block;
  margin-top: 5px;
  color: #236f9f;
  font-size: 14px;
  font-weight: 900;
}

.area-insight-card.is-crime-good .area-insight-trend,
.area-insight-card.is-crime-worse .area-insight-trend {
  color: var(--insight-accent);
}

.area-insight-card small {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  color: #56635d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.area-insight-note {
  display: flex;
  flex-direction: column-reverse;
  margin-top: auto;
  padding-top: 8px;
}

.area-insight-note summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #56635d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  list-style: none;
}

.area-insight-note summary::-webkit-details-marker {
  display: none;
}

.area-insight-note summary::after {
  display: block;
  width: 0;
  height: 0;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  border-left: 5px solid currentColor;
  content: "";
  opacity: 0.85;
  transition: transform 120ms ease;
}

.area-insight-note[open] summary::after {
  transform: rotate(90deg);
}

.area-insight-note p {
  margin: 0 0 6px;
  color: #65716b;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.area-insight-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.area-insight-metrics div {
  min-width: 0;
  border: 1px solid rgba(214, 224, 218, 0.72);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  padding: 7px 8px;
}

.area-insight-metrics div.is-trend-coded {
  border-color: var(--metric-border);
  background: var(--metric-tint);
}

.area-insight-metrics div.is-trend-coded em {
  color: var(--metric-accent);
}

.area-insight-metrics span {
  display: block;
  color: #65716b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.area-insight-metrics strong {
  display: inline;
  margin-right: 4px;
  font-size: 13px;
  line-height: 1.1;
}

.area-insight-metrics em {
  color: #6f5a7d;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.area-attribution {
  display: grid;
  gap: 4px;
  color: #87938d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.area-attribution div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.area-attribution a {
  color: #6f7c75;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.facts-features {
  gap: 18px;
}

.facts-feature-group {
  display: grid;
  gap: 8px;
  border-left: 3px solid rgba(111, 90, 125, 0.22);
  padding: 2px 0 2px 12px;
}

.facts-feature-group h4 {
  margin: 0;
  color: #1f2925;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.facts-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.facts-feature-grid div {
  min-width: 0;
  border: 1px solid rgba(223, 229, 220, 0.86);
  border-radius: 6px;
  background: rgba(251, 253, 249, 0.72);
  padding: 8px 10px;
}

.facts-feature-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.facts-feature-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #1f2925;
  font-size: 14px;
  line-height: 1.25;
}

.drawer-source {
  border-top: 1px solid #eef2ed;
  padding-top: 12px;
  color: #87938d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.empty {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(420px, 100%);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

@media (max-width: 1360px) {
  .topbar {
    grid-template-columns: minmax(150px, max-content) minmax(0, 1fr) 274px;
    align-items: start;
    gap: 2px 4px;
  }

  .brand-block {
    --brand-icon-layout-size: 42px;
    --partner-layout-height: 19px;
    grid-column: 1;
    grid-row: 1;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-block h1 {
    font-size: clamp(25px, 2.05vw, 32px);
  }

  .brand-wordmark {
    font-size: clamp(29px, 1.35vw, 40px);
  }

  .partner-line {
    max-width: min(100%, 240px);
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.15;
  }

  .filter-panel {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: end;
  }

  .filter-panel .search-field {
    grid-column: 1;
    grid-row: 1;
  }

  .filter-panel .filter-options-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
  }

  .filter-options-panel {
    position: absolute;
    z-index: 1250;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 14px 12px;
    width: min(520px, calc(100vw - 24px));
    border: 2px solid rgba(223, 229, 220, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(24, 32, 29, 0.16);
    padding: 14px;
  }

  .filter-options-panel.open {
    display: grid;
  }

  .filter-options-panel .price-range-field {
    grid-column: 1 / -1;
  }

  .filter-options-panel .storybook-field {
    margin-top: 4px;
  }

  .search-field > span,
  .display-panel .storybook-field > span,
  .display-panel .sort-field > span {
    display: none;
  }

  #resultSummary {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    padding-top: 8px;
  }

  .display-panel {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: min(100%, 274px);
  }

}

@media (max-width: 699px) {
  .drawer-main-image {
    width: 70%;
  }
}

@media (max-width: 762px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    display: block;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 1700;
    grid-template-columns: 1fr;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .topbar.mobile-hidden {
    transform: translateY(calc(-100% - 1px));
    box-shadow: none;
    pointer-events: none;
  }

  .brand-block {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: end;
    justify-content: start;
    gap: 12px;
    max-height: 128px;
    min-height: 0;
    width: 100%;
    transition: max-height 180ms ease, opacity 160ms ease, margin 180ms ease;
  }

  .brand-block:has(.partner-line:not([hidden])) {
    padding-bottom: 0;
  }

  .brand-right {
    position: static;
    align-self: start;
    justify-self: end;
    max-width: 100%;
  }

  .topbar.brand-collapsed {
    row-gap: 0;
  }

  .topbar.brand-collapsed .brand-block {
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .topbar {
      transition: none;
    }
  }

  .brand-block h1 {
    max-width: none;
  }

  .drawer-listing-nav {
    display: none;
  }

  .lightbox-stage {
    max-width: 100%;
  }

  .lightbox-nav {
    display: grid;
    width: 46px;
    height: 56px;
    font-size: 40px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .filter-panel {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    align-items: end;
    justify-self: stretch;
    width: 100%;
  }

  .filter-panel .search-field {
    grid-column: 1;
    grid-row: 1;
  }

  .filter-panel .filter-options-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
  }

  .filter-panel > .view-options-toggle {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    justify-self: end;
  }

  .filter-options-panel {
    position: absolute;
    z-index: 1800;
    top: calc(100% + 8px);
    right: auto;
    left: 50%;
    display: none;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 10px;
    width: min(520px, calc(100vw - 24px));
    border: 1px solid rgba(223, 229, 220, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(24, 32, 29, 0.16);
    padding: 12px;
    transform: translateX(-50%);
  }

  .filter-options-panel.open {
    display: grid;
  }

  .filter-options-panel .price-range-field {
    grid-column: 1 / -1;
  }

  .filter-options-panel .detail-field .range-note {
    display: none;
  }

  .filter-options-panel .pinned-field {
    grid-column: 2;
  }

  .filter-options-panel .mobile-filter-action-row {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    margin-top: 0;
    order: 30;
  }

  .filter-options-panel .mobile-filter-action-row .field {
    align-self: end;
    grid-template-rows: 36px;
    justify-items: center;
    width: 100%;
  }

  .filter-options-panel .mobile-filter-action-row .field > span {
    display: none;
  }

  .filter-options-panel .mobile-filter-action-row .pinned-field {
    grid-column: 2;
  }

  .filter-options-panel .mobile-filter-action-row .mobile-filter-reset-field {
    display: grid;
    grid-column: 3;
    align-content: end;
  }

  .filter-options-panel .mobile-filter-action-row .mobile-filter-reset-button {
    grid-row: 1;
  }

  .filter-options-panel .pinned-field {
    justify-self: stretch;
    width: 100%;
  }

  .filter-options-panel .sort-field {
    grid-column: 1 / -1;
    order: 20;
  }

  #resultSummary {
    grid-column: 1;
    grid-row: 3;
  }

  .main-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .listing-pane {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .split-handle {
    display: none;
  }

  .main-map-pane {
    grid-column: 1 / -1;
    display: none;
    height: auto;
  }

  .main-listings-map {
    height: 420px;
    min-height: 360px;
  }

  .pinned-tray {
    width: var(--pinned-tray-mobile-width, min(360px, calc(100vw - 28px)));
  }

  .pinned-tray-compare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    width: 108px;
    height: 55px;
    border: 2px solid color-mix(in srgb, var(--pin-color) 24%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 11%, #fff);
    color: var(--brand);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    padding: 0 10px;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  }

  .pinned-tray-compare:hover,
  .pinned-tray-compare:focus-visible {
    border-color: color-mix(in srgb, var(--pin-color) 82%, transparent);
    background: color-mix(in srgb, var(--brand) 17%, #fff);
    box-shadow: 0 0 0 3px var(--pin-focus);
    outline: 0;
    transform: translateY(-1px);
  }

  .pinned-tray-compare svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .pinned-tray-compare b {
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--theme-soft);
    color: var(--brand);
    font-size: 9px;
  }

  body.mobile-comparison-open {
    overflow: hidden;
  }

  body.mobile-comparison-open .main-map-pane,
  body.mobile-comparison-open .main-layout.comparison-collapsed .main-map-pane {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    height: 100dvh;
    min-width: 0;
    padding: 12px;
    background: rgba(23, 19, 27, 0.72);
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-comparison-open .main-listings-map {
    height: 100%;
    min-height: 0;
    overscroll-behavior: contain;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  }

  body.mobile-comparison-open .comparison-heading {
    padding-right: 46px;
  }

  body.mobile-comparison-open .mobile-comparison-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(111, 90, 125, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-dark);
    box-shadow: 0 5px 16px rgba(38, 32, 43, 0.16);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0 0 2px;
  }

  body.mobile-comparison-open .mobile-comparison-close:hover,
  body.mobile-comparison-open .mobile-comparison-close:focus-visible {
    border-color: rgba(111, 90, 125, 0.54);
    box-shadow: 0 0 0 4px rgba(111, 90, 125, 0.12), 0 5px 16px rgba(38, 32, 43, 0.16);
    outline: 0;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dual-range,
  .dual-range input[type="range"] {
    height: 32px;
  }

  .range-track {
    top: 12px;
    height: 8px;
  }

  .dual-range input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
  }

  .dual-range input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -8px;
  }

  .dual-range input[type="range"]::-moz-range-track {
    height: 8px;
  }

  .dual-range input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }

  .display-panel {
    grid-column: 1;
    grid-row: 4;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    justify-self: stretch;
    width: 100%;
  }

  .display-panel.view-in-filter {
    display: none;
  }

  .display-panel .storybook-field {
    grid-column: 1;
    grid-row: 1;
  }

  .display-panel .sort-field {
    grid-column: 2;
    grid-row: 1;
  }

  .view-options-toggle {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    justify-self: end;
  }

  .filter-options-panel .sort-options {
    top: auto;
    bottom: calc(100% + 6px);
  }

  .view-options-panel {
    position: absolute;
    right: auto;
    left: 50%;
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 1800;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    width: min(520px, calc(100vw - 24px));
    transform: translateX(-50%);
  }

  .view-options-panel > .view-action-row {
    display: grid;
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
  }

  .view-options-panel > .match-field {
    grid-column: 1;
  }

  .view-options-panel > .view-action-row > .field {
    justify-items: center;
    width: 100%;
  }

  .view-options-panel > .view-action-row > .pinned-field {
    grid-column: 1;
  }

  .view-options-panel > .view-action-row > .favorite-field {
    grid-column: 2;
  }

  .view-options-panel > .view-action-row > .reset-field {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .main-layout {
    grid-template-rows: auto auto;
    padding-inline: 10px;
  }

  .main-listings-map {
    height: 340px;
    min-height: 300px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    align-items: end;
  }

  .filter-panel .search-field {
    grid-column: 1;
    grid-row: 1;
  }

  .filter-panel .filter-options-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
  }

  .filter-panel .filter-options-panel {
    right: auto;
    left: 50%;
    z-index: 1800;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    width: min(360px, calc(100vw - 20px));
    max-height: min(72vh, 560px);
    overflow-y: auto;
    transform: translateX(-50%);
  }

  .filter-panel .filter-options-panel .field,
  .filter-panel .filter-options-panel .price-range-field {
    grid-column: 1 / -1;
  }

  .filter-panel .filter-options-panel .mobile-filter-action-row {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-panel .filter-options-panel .pinned-field {
    grid-column: 2;
  }

  .filter-panel .filter-options-panel .pinned-field {
    width: 100%;
  }

  .filter-panel .filter-options-panel .mobile-filter-action-row .pinned-field {
    grid-column: 2;
  }

  .filter-panel .filter-options-panel .mobile-filter-action-row .mobile-filter-reset-field {
    grid-column: 3;
  }

  #resultSummary {
    gap: 7px;
    min-height: 26px;
  }

  #resultSummary.is-empty {
    display: none;
    min-height: 0;
  }

  .summary-count {
    left: 50%;
    transform: translateX(-50%);
  }

  .location-pill {
    max-width: min(42vw, 220px);
  }

  .summary-filters {
    flex-wrap: wrap;
    gap: 5px;
    max-height: 26px;
  }

  #resultSummary.filters-wrapped .summary-filters {
    max-height: none;
  }

  .filter-chip {
    max-width: min(210px, calc(100vw - 40px));
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .display-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
  }

  .view-options-panel {
    grid-template-columns: 1fr;
    width: min(320px, calc(100vw - 20px));
  }

  .search-field,
  .price-range-field,
  .detail-field,
  .zoom-field {
    grid-column: auto;
  }

  .drawer-grid,
  .kv {
    grid-template-columns: 1fr 1fr;
  }

  .drawer-address-row {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .drawer-stats {
    margin-left: auto;
  }

  .pinned-compare-panel {
    width: min(100%, calc(100vw - 16px));
    height: min(92vh, 820px);
    padding: 10px;
  }

  .pinned-compare-content {
    grid-auto-columns: minmax(238px, 84vw);
    gap: 10px;
  }

  .pinned-compare-header strong {
    font-size: 16px;
  }

  .area-insight-grid {
    grid-template-columns: 1fr;
  }
}
