:root {
  --container: 1240px;
  --space-page-top: 24px;
  --space-section: 24px;
  --space-section-tight: 16px;
  --card-padding-lg: 36px;
  --card-padding-md: 24px;
  --card-padding-sm: 16px;
  --grid-gap-lg: 24px;
  --grid-gap-md: 16px;
  --grid-gap-sm: 12px;
  --font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-primary: #17211d;
  --text-secondary: #5f6964;
  --text-muted: #727b76;
  --text-soft: #5f6964;
  --border: #e4e7e2;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --accent: #163a5a;
  --accent-soft: rgba(22, 58, 90, 0.06);
  --accent-soft-strong: rgba(22, 58, 90, 0.1);
  --accent-line: rgba(22, 58, 90, 0.22);
  --focus-ring: rgba(22, 58, 90, 0.24);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --paper: var(--bg);
  --panel: var(--surface);
  --line: var(--border);
  --line-strong: #d8ddd7;
  --sage: #4a5c4d;
  --sage-dark: #334438;
  --cobalt: var(--accent);
  --coral: #b85d47;
  --amber: #c89531;
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: var(--shadow-soft);
  --radius-card: 20px;
  --radius-input: 14px;
  --radius-button: 16px;
  --radius: var(--radius-card);
  --container-max: var(--container);
  --page-padding: var(--space-page-top);
  --panel-padding: var(--card-padding-md);
  --block-gap: var(--space-section);
  --grid-gap: var(--grid-gap-lg);
  --fs-hero: 48px;
  --fs-h1: 36px;
  --fs-h2: 24px;
  --fs-h3: 18px;
  --fs-body-lg: 17px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-label: 11px;
  --fs-section: var(--fs-h2);
  --fs-title: var(--fs-body-lg);
  --fs-body-sm: var(--fs-small);
  --fs-label-strong: var(--fs-label);
  --fs-metric: 16px;
  --lh-tight: 1.05;
  --lh-title: 1.2;
  --lh-body: 1.45;
  --lh-readable: 1.6;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-strong: var(--fw-bold);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: var(--lh-readable);
  letter-spacing: 0;
}

body.lightbox-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.pageContainer,
.shell {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--space-page-top) 0 48px;
}

.topbar {
  position: static;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  min-height: 80px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-wordmark {
  justify-self: start;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--cobalt);
  background: #f3f5f1;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: var(--fw-strong);
}

.brand-title {
  margin: 0;
  font-size: 22px;
  line-height: var(--lh-title);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.35;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-width: 0;
  justify-self: center;
}

.main-nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-body);
  line-height: var(--lh-title);
  font-weight: var(--fw-medium);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.main-nav-link:hover {
  border-color: transparent;
  background: rgba(23, 33, 29, 0.04);
  color: var(--ink);
}

.main-nav-link.is-active {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

.price-note-chip {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: normal;
}

.price-note-chip-card {
  position: static;
  max-width: none;
  text-align: left;
}

.price-note-chip-detail {
  margin-top: 6px;
  justify-self: start;
}

.favorites-link.is-active,
.audit-link.is-active {
  border-color: var(--sage-dark);
  background: rgba(109, 124, 99, 0.12);
  color: var(--sage-dark);
}

.favorites-counter {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(23, 25, 22, 0.08);
  font-size: 12px;
  font-weight: 600;
}

.main-nav-link.is-active .favorites-counter {
  background: rgba(23, 25, 22, 0.12);
}

.ghost-link,
.solid-link,
.text-button,
.button-primary,
.button-secondary,
.button-accent-outline,
.button-ghost {
  --button-border: var(--line);
  --button-bg: #fff;
  --button-color: var(--ink);
  --button-hover-border: var(--line-strong);
  --button-hover-bg: #f7f8f6;
  --button-hover-color: var(--ink);
  --button-active-border: var(--line-strong);
  --button-active-bg: #eef1ec;
  --button-active-color: var(--ink);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: var(--radius-button);
  text-decoration: none;
  white-space: normal;
  text-align: center;
  line-height: var(--lh-title);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-color);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.top-actions .ghost-link,
.top-actions .solid-link,
.top-actions .button-primary,
.top-actions .button-secondary,
.top-actions .button-accent-outline,
.top-actions .button-ghost {
  min-height: 48px;
  min-width: 172px;
  padding: 0 24px;
  border-radius: var(--radius-button);
}

.top-actions .audit-link {
  min-width: auto;
}

.ghost-link:disabled,
.solid-link:disabled,
.text-button:disabled,
.button-primary:disabled,
.button-secondary:disabled,
.button-accent-outline:disabled,
.button-ghost:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}

.ghost-link,
.button-secondary {
  --button-border: var(--line);
  --button-bg: #fff;
  --button-color: var(--ink);
  --button-hover-border: var(--line-strong);
  --button-hover-bg: #f7f8f6;
  --button-hover-color: var(--ink);
  --button-active-border: var(--line-strong);
  --button-active-bg: #eef1ec;
  --button-active-color: var(--ink);
}

.solid-link,
.button-primary {
  --button-border: var(--cobalt);
  --button-bg: var(--cobalt);
  --button-color: #fff;
  --button-hover-border: #0f2f4a;
  --button-hover-bg: #0f2f4a;
  --button-hover-color: #fff;
  --button-active-border: #0d2740;
  --button-active-bg: #0d2740;
  --button-active-color: #fff;
}

.text-button {
  --button-border: var(--line-strong);
  --button-bg: #fff;
  --button-color: var(--ink);
  --button-hover-border: var(--line-strong);
  --button-hover-bg: #f7f8f6;
  --button-hover-color: var(--ink);
  --button-active-border: var(--line-strong);
  --button-active-bg: #eef1ec;
  --button-active-color: var(--ink);
}

.button-accent-outline {
  --button-border: var(--accent-line);
  --button-bg: #fff;
  --button-color: var(--cobalt);
  --button-hover-border: rgba(22, 58, 90, 0.34);
  --button-hover-bg: var(--accent-soft);
  --button-hover-color: var(--cobalt);
  --button-active-border: rgba(22, 58, 90, 0.4);
  --button-active-bg: var(--accent-soft-strong);
  --button-active-color: var(--cobalt);
}

.button-secondary-muted {
  --button-border: rgba(23, 33, 29, 0.1);
  --button-bg: #fff;
  --button-color: var(--muted);
  --button-hover-border: rgba(23, 33, 29, 0.16);
  --button-hover-bg: #f7f8f6;
  --button-hover-color: var(--ink);
  --button-active-border: rgba(23, 33, 29, 0.2);
  --button-active-bg: #eef1ec;
  --button-active-color: var(--ink);
}

.button-ghost {
  --button-border: transparent;
  --button-bg: transparent;
  --button-color: var(--ink);
  --button-hover-border: transparent;
  --button-hover-bg: transparent;
  --button-hover-color: var(--ink);
  --button-active-border: transparent;
  --button-active-bg: transparent;
  --button-active-color: var(--ink);
  min-height: 44px;
  padding: 0 2px;
  border-color: transparent;
  justify-content: flex-start;
  text-align: left;
}

.button-ghost-accent {
  --button-color: var(--cobalt);
  --button-hover-color: #0f2f4a;
  --button-active-color: #0d2740;
}

.button-ghost-arrow::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease;
}

@media (hover: hover) {
  .ghost-link:hover,
  .solid-link:hover,
  .text-button:hover,
  .button-primary:hover,
  .button-secondary:hover,
  .button-accent-outline:hover,
  .button-ghost:hover {
    border-color: var(--button-hover-border);
    background: var(--button-hover-bg);
    color: var(--button-hover-color);
  }

  .button-ghost-arrow:hover::after {
    transform: translateX(2px);
  }
}

.ghost-link:active,
.solid-link:active,
.text-button:active,
.button-primary:active,
.button-secondary:active,
.button-accent-outline:active,
.button-ghost:active {
  border-color: var(--button-active-border);
  background: var(--button-active-bg);
  color: var(--button-active-color);
}

.button-ghost-arrow:active::after {
  transform: translateX(1px);
}

.main-nav-link:focus-visible,
.ghost-link:focus-visible,
.solid-link:focus-visible,
.text-button:focus-visible,
.button-primary:focus-visible,
.button-secondary:focus-visible,
.button-accent-outline:focus-visible,
.button-ghost:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.shell-home,
.favorites-shell,
.detail,
.page-shell {
  display: grid;
  gap: var(--space-section);
}

.section-anchor {
  scroll-margin-top: 96px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: var(--card-padding-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-side {
  display: block;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  max-width: 560px;
}

.hero-side {
  width: min(100%, 520px);
  justify-self: end;
  display: grid;
  gap: 16px;
}

.hero-intro {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-readable);
  font-weight: var(--fw-regular);
  max-width: 520px;
}

.hero-actions,
.contact-actions,
.support-banner-actions,
.contact-dock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .button-ghost {
  justify-content: flex-start;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap-md);
}

.legal-note {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-card);
  background: var(--accent-soft);
}

.legal-note strong {
  margin: 0;
  color: var(--accent);
  font-size: var(--fs-label);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--fs-small);
  line-height: var(--lh-readable);
}

.about-card,
.contact-panel,
.support-banner {
  padding: var(--card-padding-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow);
}

.about-card {
  display: grid;
  gap: 10px;
}

.about-card-primary,
.contact-panel-primary,
.support-banner {
  background: #fff;
  color: var(--ink);
}

.about-card h3,
.contact-panel h3,
.support-banner h2 {
  margin: 0;
  font-size: var(--fs-section);
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
}

.about-card p,
.contact-panel p,
.support-banner p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-readable);
}

.about-card-primary p,
.contact-panel-primary p,
.support-banner p {
  color: var(--muted);
}

.about-card:not(.about-card-primary) p,
.contact-panel:not(.contact-panel-primary) p {
  color: var(--muted);
}

.about-kicker {
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-grid {
  align-items: stretch;
}

.contact-panel {
  display: grid;
  gap: var(--grid-gap-md);
}

.process-list,
.bullet-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.process-list li::marker,
.bullet-list li::marker {
  color: var(--ink);
  font-weight: var(--fw-strong);
}

.page-intro {
  padding: var(--card-padding-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow);
}

.page-intro-copy {
  display: grid;
  gap: 8px;
  max-width: 780px;
}

.page-intro-copy h1 {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
}

.page-intro-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.about-page-hero,
.about-page-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.about-page-hero {
  padding: var(--card-padding-lg);
  display: grid;
  gap: 32px;
}

.about-page-hero-copy {
  display: grid;
  gap: var(--space-section-tight);
}

.about-page-hero-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.about-page-hero-column {
  display: grid;
  gap: var(--space-section-tight);
  padding: 22px 24px;
  border: 1px solid rgba(24, 33, 28, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 249, 247, 0.84) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.about-page-hero-column p + p {
  padding-top: 18px;
  border-top: 1px solid rgba(24, 33, 28, 0.08);
}

.about-page-hero-copy h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: var(--fw-bold);
  color: var(--ink);
}

.about-page-hero-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.5;
}

.about-page-card {
  padding: var(--card-padding-lg);
  display: grid;
  gap: var(--space-section);
}

.about-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-page-workflow {
  gap: 28px;
}

.about-page-card-head {
  display: grid;
  gap: 6px;
}

.about-page-card-head h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  font-weight: var(--fw-bold);
  color: var(--ink);
}

.about-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.about-step {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding-right: 0;
  position: relative;
}

.about-step + .about-step {
  padding-left: 0;
  border-left: 0;
}

.about-step + .about-step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16px;
  width: 1px;
  background: var(--line);
}

.about-step-number {
  color: var(--ink);
  font-size: 40px;
  line-height: 1;
  font-weight: var(--fw-medium);
  letter-spacing: -0.04em;
}

.about-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.5;
}

.about-page-contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(220px, 0.85fr));
  gap: var(--grid-gap-md);
  align-items: stretch;
}

.about-contact-card {
  min-width: 0;
  padding: var(--card-padding-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  display: grid;
  gap: 18px;
}

.about-contact-card h3 {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-title);
  font-weight: var(--fw-bold);
  color: var(--ink);
}

.about-contact-card-primary h3 {
  font-size: 21px;
}

.about-contact-meta {
  display: grid;
  gap: 4px;
}

.about-contact-meta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.about-contact-card-primary .about-contact-meta {
  gap: 3px;
}

.about-contact-card-primary .about-contact-meta p {
  font-size: 16px;
  line-height: 1.3;
}

.about-contact-card-primary .about-contact-meta p:first-child {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

.about-contact-linkset {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.about-contact-linkset a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-body);
  line-height: 1.45;
  font-weight: var(--fw-semibold);
}

.about-contact-card-primary .about-contact-linkset {
  gap: 12px;
}

.about-contact-card-primary .about-contact-linkset a {
  font-size: 17px;
  line-height: 1.4;
}

.about-contact-card-qr {
  justify-items: center;
  align-content: start;
  text-align: center;
}

.about-contact-card-qr .ghost-link {
  width: 100%;
}

.about-contact-card-qr img {
  width: min(100%, 228px);
  height: auto;
  display: block;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list-row {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list-row span {
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-list-row a,
.contact-list-row strong {
  font-size: var(--fs-title);
  line-height: 1.35;
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.support-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 16px;
  align-items: center;
}

.support-banner-copy {
  display: grid;
  gap: 10px;
}

.support-banner-actions {
  justify-content: flex-end;
}

.contact-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(23, 25, 22, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(23, 25, 22, 0.18);
  backdrop-filter: blur(18px);
}

.contact-dock-copy {
  display: grid;
  gap: 4px;
}

.contact-dock-copy span {
  color: var(--sage-dark);
  font-size: var(--fs-label);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-dock-copy strong {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
}

.contact-dock-actions > * {
  flex: 1 1 180px;
}

.dashboard,
.home-catalog {
  display: grid;
  gap: var(--space-section);
  align-items: start;
}

.dashboard {
  grid-template-columns: 290px minmax(0, 1fr);
}

.filters {
  position: static;
  overflow: visible;
  padding: var(--card-padding-md);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filters-horizontal {
  display: grid;
  gap: var(--space-section-tight);
}

.filters h2 {
  margin: 0;
  font-size: 18px;
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
}

.filters-head {
  display: grid;
  gap: 6px;
}

.filters-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 0.95fr) minmax(190px, 0.9fr) minmax(300px, 1.25fr) auto;
  gap: var(--grid-gap-md);
  align-items: start;
}

.filters-grid > .field,
.filters-grid > .filters-toolbar-actions {
  margin: 0;
}

.filter-field-metro {
  position: relative;
}

.metro-filter-dropdown {
  position: relative;
}

.metro-filter-dropdown[open] {
  z-index: 15;
}

.metro-filter-trigger {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.metro-filter-trigger::-webkit-details-marker {
  display: none;
}

.metro-filter-trigger-text {
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metro-filter-trigger-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 16px;
  transition: transform 180ms ease;
}

.metro-filter-dropdown[open] .metro-filter-trigger {
  border-color: var(--line-strong);
}

.metro-filter-dropdown[open] .metro-filter-trigger-arrow {
  transform: rotate(180deg);
}

.metro-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 48px));
}

.metro-filter {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.metro-filter-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.35;
}

.metro-reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sage-dark);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.metro-search-input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.metro-search-input::placeholder {
  color: var(--muted);
}

.metro-filter-list {
  display: grid;
  gap: 6px;
  max-height: 126px;
  overflow: auto;
  padding-right: 4px;
}

.metro-empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.35;
}

.metro-option {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

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

.metro-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  min-height: 0;
  accent-color: var(--sage-dark);
}

.metro-option span {
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  text-transform: none;
  overflow-wrap: anywhere;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field > label {
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field-hint {
  margin: -6px 0 14px;
  color: var(--text-soft);
  font-size: var(--fs-small);
  line-height: 1.35;
}

.field input:not([type="checkbox"]),
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

.field input:not([type="checkbox"]):focus,
.field select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(109, 124, 99, 0.18);
}

.field input:not([type="checkbox"]):disabled,
.field select:disabled {
  background: rgba(241, 244, 236, 0.92);
  color: var(--muted);
  cursor: not-allowed;
}

.range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.filter-actions,
.filters-toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.filters-toolbar-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.filters-toolbar-actions > * {
  min-width: 210px;
}

.filters-inline-hint {
  margin: 0;
  color: var(--text-muted);
}

.filters-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.filters-inline-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--sage-dark);
  flex: 0 0 auto;
}

.filters-inline-toggle span {
  color: var(--text-muted);
}

.filters-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.filters-reset-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  justify-content: flex-start;
}

.filters-reset-link:hover,
.filters-reset-link:active {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.filter-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--fs-body-sm);
}

.content {
  display: grid;
  gap: var(--block-gap);
}

.content-home {
  gap: var(--space-section);
}

.catalog-summary {
  margin: 0;
}

.catalog-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  width: fit-content;
  max-width: min(100%, 760px);
}

.catalog-summary-chip {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 0;
  min-width: 110px;
  padding: 8px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px rgba(23, 25, 22, 0.04);
}

.catalog-summary-chip span {
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  letter-spacing: 0.07em;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
}

.catalog-summary-chip strong {
  display: block;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
}

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

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  padding: 24px;
}

.map-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 40, 0.28);
  cursor: pointer;
}

.map-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 18px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.12);
  overflow: hidden;
}

.map-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.map-modal-copy {
  display: grid;
  gap: 6px;
}

.map-modal-copy h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  font-weight: var(--fw-bold);
}

.map-modal-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 720px;
}

.map-modal-close {
  flex: 0 0 auto;
}

.map-modal-toolbar {
  display: grid;
  gap: 10px;
}

.map-shell-modal {
  min-width: 0;
}

.map-empty {
  padding: 28px;
  text-align: center;
}

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

.cards-head h2 {
  margin: 0;
  font-size: var(--fs-section);
  line-height: var(--lh-title);
  font-weight: var(--fw-bold);
}

.cards-head p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.sort-select-wrap {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.sort-select-label {
  color: var(--text-muted);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sort-strip {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.sort-strip-label {
  color: var(--text-muted);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sort-strip-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sort-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  cursor: pointer;
}

.sort-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.scroll-top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(23, 25, 22, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 25, 22, 0.16);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-strong);
  cursor: pointer;
}

.empty h3 {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
}

.empty p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-readable);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f4ef;
  color: var(--ink);
  font-size: var(--fs-small);
  line-height: 1.25;
  font-weight: var(--fw-medium);
}

.map-shell {
  min-width: 0;
}

.site-map {
  height: clamp(320px, 38vw, 520px);
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #f5f6f3;
}

.site-map > div,
.site-map canvas {
  display: block;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-actions > * {
  flex: 0 1 auto;
}

.map-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
}

.map-note:empty {
  display: none;
}

.map-popup {
  display: grid;
  gap: 6px;
  min-width: 210px;
}

.map-popup-floating {
  position: relative;
  width: min(320px, calc(100vw - 56px));
  min-width: 240px;
  max-width: min(320px, calc(100vw - 56px));
  max-height: var(--popup-max-height, 420px);
  padding: 12px;
  border: 1px solid rgba(33, 71, 107, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(23, 25, 22, 0.18);
  overflow: hidden;
}

.mapgl-popup-shell {
  --popup-shift-x: 0px;
  --popup-shift-y: 0px;
  transform: translate(calc(-50% + var(--popup-shift-x)), calc(-100% - 18px + var(--popup-shift-y)));
}

.map-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  cursor: pointer;
}

.map-popup span {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.35;
}

.map-provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-provider-link {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--cobalt);
  text-decoration: none;
  font-size: var(--fs-label-strong);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.map-provider-links-detail .map-provider-link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: var(--fs-body-sm);
}

.map-provider-links-popup .map-provider-link {
  min-height: 26px;
  padding: 0 8px;
}

.map-popup-links {
  display: grid;
  gap: 6px;
  max-height: min(240px, calc(var(--popup-max-height, 420px) - 132px));
  overflow-y: auto;
  padding-right: 4px;
}

.map-popup-office {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(33, 71, 107, 0.1);
  border-radius: 10px;
  background: rgba(33, 71, 107, 0.04);
  color: var(--ink);
  text-decoration: none;
}

.map-popup-office strong {
  flex: 0 0 auto;
  font-size: var(--fs-body-sm);
  line-height: 1.25;
  font-weight: var(--fw-strong);
  white-space: nowrap;
}

.map-popup-office span {
  flex: 0 1 auto;
  color: var(--cobalt);
  font-size: var(--fs-label-strong);
  line-height: 1.3;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.sort-select {
  min-height: 48px;
  min-width: 146px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface);
  padding: 0 36px 0 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap-md);
  width: 100%;
  justify-items: stretch;
}

.office-card {
  position: relative;
  --card-photo-width: 360px;
  --card-photo-height: 220px;
  display: grid;
  grid-template-columns: var(--card-photo-width) minmax(0, 1fr);
  width: 100%;
  max-width: none;
  align-items: start;
  gap: 28px;
  padding: var(--card-padding-md);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.office-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.office-card-combined {
  border-color: rgba(33, 71, 107, 0.18);
  box-shadow: 0 14px 30px rgba(33, 71, 107, 0.08);
}

.card-main {
  min-width: 0;
  width: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
}

.card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
}

.card-image {
  position: relative;
  width: var(--card-photo-width);
  height: var(--card-photo-height);
  overflow: hidden;
  background: #dfe3d8;
  border: 1px solid var(--line);
  border-radius: 16px;
  align-self: start;
  justify-self: start;
}

.card-media-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.card-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.detail-main-image img,
.thumb-button img,
.plan-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(16, 20, 18, 0.36), transparent);
}

.card-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
}

.card-status.pill {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 32px;
  padding: 0 12px;
  text-align: left;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.favorite-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.favorite-toggle.active {
  border-color: var(--sage-dark);
  background: rgba(109, 124, 99, 0.14);
  color: var(--sage-dark);
}

.favorite-toggle-favorites.active {
  border-color: rgba(74, 92, 77, 0.18);
  background: linear-gradient(180deg, #f7faf4 0%, #eef4ea 100%);
}

.favorite-toggle-inline,
.favorite-toggle-detail,
.favorite-toggle-favorites {
  min-height: 40px;
  padding: 0 12px;
}

.favorite-toggle-detail {
  min-height: 40px;
  min-width: 40px;
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #7a837d;
  border-color: var(--line);
  background: var(--surface);
}

.favorite-toggle-detail.active {
  border-color: #cdd8e3;
  background: #f7fafc;
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.favorite-toggle-table {
  min-height: 34px;
  padding: 0 12px;
}

.card-carousel-button,
.card-carousel-counter,
.card-plan-chip {
  position: absolute;
  z-index: 2;
}

.card-carousel-button {
  top: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(23, 25, 22, 0.62);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.card-carousel-button.prev {
  left: 12px;
}

.card-carousel-button.next {
  right: 12px;
}

.card-carousel-counter,
.card-plan-chip {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(23, 25, 22, 0.68);
  color: #fff;
  font-size: var(--fs-small);
  line-height: 1.2;
  font-weight: var(--fw-semibold);
}

.card-carousel-counter {
  right: 12px;
  bottom: 12px;
}

.card-plan-chip {
  top: 12px;
  right: 12px;
  display: none;
}

.card-plan-chip.visible {
  display: inline-flex;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--cobalt);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

.pill.free {
  background: var(--sage-dark);
}

.pill.readiness {
  background: var(--amber);
  color: #201607;
}

.pill.release {
  background: var(--coral);
}

.pill.unknown {
  background: #777b73;
}

.card-actions {
  min-width: 0;
  justify-self: end;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions .favorite-toggle-inline {
  min-height: 40px;
  min-width: 40px;
  width: 40px;
  padding: 0;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  max-width: none;
  display: grid;
  place-items: center;
  color: #7a837d;
  border-color: var(--line);
  background: var(--surface);
}

.card-actions .favorite-toggle-inline.active {
  color: var(--accent);
  border-color: #cdd8e3;
  background: #f7fafc;
}

.favorite-toggle-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 180ms ease, stroke 180ms ease, color 180ms ease;
}

.favorite-toggle-inline.active .favorite-toggle-icon,
.favorite-toggle-detail.active .favorite-toggle-icon {
  fill: currentColor;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.card-title {
  min-width: 0;
  min-height: 0;
}

.card-title h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}

.card-title p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}

.card-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 0;
  margin-top: 12px;
  max-width: none;
  min-width: 0;
}

.card-metric {
  display: grid;
  gap: 4px;
  padding: 10px 0 8px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.card-metric span {
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}

.card-metric strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  font-weight: var(--fw-bold);
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.card-fit-note-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.card-detail-link {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.card-fit-note {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  min-height: 24px;
  border-radius: 999px;
  background: #f1f4ef;
  color: var(--sage-dark);
  font-size: 11px;
  line-height: 1.2;
  font-weight: var(--fw-medium);
}

.card-fit-note-combined {
  background: rgba(33, 71, 107, 0.12);
  color: #21476b;
}

.card-fit-note-combined-detail {
  background: rgba(33, 71, 107, 0.08);
  color: #21476b;
  white-space: normal;
}

.favorite-combo-toggle {
  cursor: pointer;
}

.favorite-combo-toggle-card {
  margin-left: auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(33, 71, 107, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #21476b;
  font-size: 11px;
  line-height: 1.2;
  font-weight: var(--fw-medium);
}

.favorite-combo-toggle-card.active {
  border-color: rgba(33, 71, 107, 0.28);
  background: rgba(33, 71, 107, 0.12);
}

.empty {
  padding: var(--card-padding-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.detail {
  display: grid;
  gap: var(--block-gap);
}

.shell.detail {
  width: min(var(--container), calc(100% - 48px));
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(0, 1fr);
  gap: var(--grid-gap);
  align-items: stretch;
}

.detail-media {
  display: grid;
  gap: 10px;
}

.detail-main-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe3d8;
  border: 1px solid var(--line);
}

.detail-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: var(--grid-gap);
  height: 100%;
  padding: var(--panel-padding);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-intro {
  display: grid;
  gap: 8px;
}

.detail-intro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-intro-head > .pill {
  justify-self: start;
  min-height: 20px;
  padding: 0 10px;
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
}

.detail-panel h1 {
  margin: 2px 0 0;
  font-size: var(--fs-h1);
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
}

.detail-location-line {
  margin: 0;
  color: var(--sage-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
}

.detail-map-link {
  color: var(--cobalt);
  text-decoration: none;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}

.detail-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail-terms-cta {
  margin-top: 16px;
}

.detail-description {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-readable);
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
  border-top: 1px solid var(--line);
  align-content: end;
}

.detail-fact {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 64px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-fact span {
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: var(--fw-semibold);
}

.detail-fact strong {
  display: block;
  font-size: var(--fs-metric);
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
}

.section {
  display: grid;
  gap: var(--space-section-tight);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--grid-gap-md);
}

.section h2 {
  margin: 0;
  font-size: var(--fs-section);
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.favorites-shell {
  gap: var(--space-section);
}

.favorites-summary {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(0, 1.65fr);
  gap: var(--grid-gap-md);
  align-items: stretch;
}

.favorites-summary-main,
.favorites-summary-stats {
  border-radius: var(--radius-card);
}

.favorites-summary-main {
  background: #fff;
  color: var(--ink);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding: var(--card-padding-md);
  border: 1px solid var(--line);
}

.favorites-summary-main h2 {
  margin: 0;
  max-width: 420px;
  font-size: var(--fs-h2);
  line-height: 1.15;
  font-weight: var(--fw-bold);
}

.favorites-summary-copy {
  display: grid;
  gap: 10px;
}

.favorites-summary-copy p {
  margin: 0;
  max-width: 520px;
  color: var(--text-secondary);
}

.favorites-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.favorites-summary-page {
  gap: var(--grid-gap-md);
}

.favorites-summary-stats-only {
  display: block;
}

.favorites-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap-md);
  align-items: stretch;
}

.favorites-summary-stats-compact {
  gap: 14px;
}

.favorites-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 88px;
  height: 100%;
  padding: var(--card-padding-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}

.favorites-summary-stats-compact .favorites-stat {
  min-height: 0;
  gap: 8px;
  padding: 18px 20px;
}

.favorites-stat span {
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  letter-spacing: 0.08em;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
}

.favorites-stat strong {
  display: block;
  font-size: var(--fs-metric);
  line-height: 1.25;
  font-weight: var(--fw-bold);
}

.analytics-note {
  margin: 0;
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.favorites-empty {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.favorites-empty h2,
.favorites-empty p {
  margin: 0;
}

.favorites-empty p {
  max-width: 640px;
  line-height: 1.5;
}

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

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 47;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 40, 0.32);
  cursor: pointer;
}

.lead-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16);
  overflow-y: auto;
}

.lead-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.lead-modal-copy {
  display: grid;
  gap: 6px;
}

.lead-modal-copy h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  font-weight: var(--fw-bold);
}

.lead-modal-copy p {
  margin: 0;
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.lead-form {
  display: grid;
  gap: 18px;
}

.lead-form[hidden],
.lead-form-result[hidden] {
  display: none;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

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

.lead-form-field span {
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lead-form-field input,
.lead-form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
}

.lead-form-field input {
  min-height: 48px;
}

.lead-form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.lead-form-field input:focus,
.lead-form-field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(109, 124, 99, 0.18);
}

.lead-form-note {
  margin: 0;
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.lead-form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: var(--lh-body);
}

.lead-form-status.is-error {
  border-color: rgba(167, 82, 69, 0.18);
  background: rgba(167, 82, 69, 0.08);
  color: #7b2d1e;
}

.lead-form-status.is-success {
  border-color: rgba(74, 92, 77, 0.18);
  background: rgba(74, 92, 77, 0.08);
  color: #2d4d34;
}

.lead-form-actions {
  display: flex;
  justify-content: flex-start;
}

.lead-form-result {
  display: grid;
  gap: 16px;
}

.lead-form-result h3,
.lead-form-result p {
  margin: 0;
}

.lead-form-result p {
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.lead-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.detail-mobile-cta {
  display: none;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}

.favorites-comparison-section {
  gap: var(--space-section-tight);
}

.favorites-section-head {
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--grid-gap-md);
}

.favorites-section-copy {
  display: grid;
  gap: 6px;
  align-content: end;
}

.favorites-section-head .section-subtitle {
  margin-top: 0;
  max-width: 560px;
}

.favorites-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
}

.favorites-layout-switch {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.favorites-layout-chip {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-title);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.favorites-section-actions .text-button {
  min-height: 48px;
  padding: 0 22px;
  border-color: var(--line);
  border-radius: var(--radius-button);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.favorites-layout-chip.active {
  border-color: var(--line-strong);
  background: #f8fafb;
  color: var(--ink);
}

.compare-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: var(--card-padding-sm) var(--grid-gap-md);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.compare-table thead th {
  background: transparent;
  vertical-align: middle;
}

.compare-table thead th:not(.compare-row-head) {
  vertical-align: top;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-row-head {
  min-width: 220px;
  color: var(--text-muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  letter-spacing: 0.08em;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
}

.compare-column-head {
  display: grid;
  gap: 10px;
  justify-items: start;
  align-content: start;
  min-width: 244px;
}

.compare-column-gallery {
  position: relative;
  width: 228px;
  max-width: 100%;
  height: 204px;
}

.compare-column-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #dfe3d8;
  touch-action: pan-x pinch-zoom;
}

.compare-column-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.compare-column-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.compare-gallery-counter {
  position: absolute;
  z-index: 2;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(23, 25, 22, 0.68);
  color: #fff;
  font-size: 12px;
  font-weight: var(--fw-semibold);
}

.compare-gallery-counter {
  right: 10px;
  bottom: 10px;
}

.compare-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(23, 25, 22, 0.62);
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
}

.compare-gallery-nav.prev {
  left: 10px;
}

.compare-gallery-nav.next {
  right: 10px;
}

.compare-column-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.favorites-bundle-note {
  display: block;
  color: var(--cobalt);
  font-size: var(--fs-body-sm);
  line-height: 1.35;
  font-weight: var(--fw-medium);
}

.compare-open-link {
  min-height: 44px;
}

.compare-column-head a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.compare-column-head span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.compare-table-wrap-horizontal {
  background: #fff;
}

.favorites-horizontal-table {
  min-width: 1380px;
}

.favorites-horizontal-table thead th {
  background: transparent;
}

.favorites-horizontal-table th,
.favorites-horizontal-table td {
  padding: var(--card-padding-sm) var(--grid-gap-md);
  vertical-align: middle;
}

.favorites-horizontal-table thead th,
.favorites-horizontal-table tbody td {
  line-height: var(--lh-body);
}

.favorites-horizontal-photo-cell {
  width: 148px;
}

.favorites-horizontal-photo {
  position: relative;
  display: block;
  width: 120px;
  height: 86px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #eef1ed;
  cursor: zoom-in;
}

.favorites-horizontal-photo.empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: default;
}

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

.favorites-horizontal-photo-counter {
  position: absolute;
  z-index: 1;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(23, 25, 22, 0.68);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: var(--fw-semibold);
}

.favorites-horizontal-photo-counter {
  right: 8px;
  bottom: 8px;
}

.favorites-site-cell {
  display: grid;
  gap: 6px;
  min-width: 168px;
  align-content: center;
}

.favorites-site-cell a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.favorites-site-cell small {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorites-site-cell .favorites-bundle-note {
  white-space: normal;
}

.favorites-table-value {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.favorites-actions-cell {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.favorites-actions-cell > *,
.compare-column-actions > * {
  min-width: 120px;
}

.favorites-actions-cell .ghost-link,
.favorites-actions-cell .favorite-toggle-favorites,
.favorites-actions-cell .favorite-combo-toggle-favorites,
.compare-column-actions .ghost-link,
.compare-column-actions .favorite-toggle-favorites,
.compare-column-actions .favorite-combo-toggle-favorites {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-title);
}

.favorites-actions-cell .favorite-toggle-favorites.active,
.favorites-actions-cell .favorite-combo-toggle-favorites.active,
.compare-column-actions .favorite-toggle-favorites.active,
.compare-column-actions .favorite-combo-toggle-favorites.active {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.favorites-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.favorites-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4f8a57;
  flex: 0 0 auto;
}

.favorites-status-text {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 96px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.thumb-button {
  aspect-ratio: 5 / 4;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  background: #dfe3d8;
  cursor: pointer;
}

.thumb-button.active {
  border-color: var(--sage-dark);
}

.detail-main-image.zoomable {
  cursor: zoom-in;
}

.terms-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.terms-table th,
.terms-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.terms-table th {
  color: var(--muted);
  font-size: var(--fs-label);
  line-height: 1.25;
  letter-spacing: 0.07em;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
}

.compact-table td {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.compact-table td strong {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}

.terms-table tr:last-child td {
  border-bottom: 0;
}

.audit-table {
  min-width: 1640px;
}

.audit-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-label-strong);
}

.audit-row-has-issues td {
  background: rgba(184, 93, 71, 0.06);
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--fs-label-strong);
  font-weight: var(--fw-strong);
  white-space: nowrap;
}

.audit-badge.ok {
  background: rgba(109, 124, 99, 0.14);
  color: var(--sage-dark);
}

.audit-badge.warn {
  background: rgba(200, 149, 49, 0.18);
  color: #7a5400;
}

.audit-badge.bad {
  background: rgba(184, 93, 71, 0.16);
  color: #8c2f1d;
}

.audit-link-cell {
  color: var(--ink);
  text-decoration: none;
  font-weight: var(--fw-strong);
}

.audit-media-cell {
  min-width: 118px;
}

.audit-thumb-carousel {
  position: relative;
  width: 102px;
}

.audit-thumb {
  display: grid;
  place-items: center;
  width: 102px;
  aspect-ratio: 5 / 4;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #eef1e8;
  cursor: zoom-in;
}

.audit-thumb.office {
  width: 100%;
}

.audit-thumb.plan {
  background: #fff;
}

.audit-thumb.empty {
  color: var(--muted);
  font-size: var(--fs-title);
  font-weight: var(--fw-medium);
  cursor: default;
  background: rgba(245, 246, 241, 0.92);
  border-style: dashed;
}

.audit-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.audit-thumb.plan img {
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.audit-thumb-nav,
.audit-preview-nav {
  border: 1px solid rgba(42, 48, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(21, 24, 18, 0.12);
}

.audit-thumb-nav {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: var(--fs-body);
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.audit-thumb-nav.prev {
  left: 6px;
}

.audit-thumb-nav.next {
  right: 6px;
}

.audit-thumb-counter {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(23, 25, 22, 0.68);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: var(--fw-strong);
}

.audit-notes {
  display: grid;
  gap: 4px;
  min-width: 260px;
}

.audit-notes span {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.35;
}

.audit-notes strong {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: 1.45;
}

.audit-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  padding: 26px;
}

.audit-preview-modal[hidden] {
  display: none;
}

.audit-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 15, 11, 0.72);
  cursor: pointer;
}

.audit-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(94vw, 1380px);
  max-height: calc(100vh - 52px);
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: rgba(250, 250, 246, 0.98);
  box-shadow: 0 24px 60px rgba(11, 12, 10, 0.26);
}

.audit-preview-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.audit-preview-nav.prev {
  left: 14px;
}

.audit-preview-nav.next {
  right: 14px;
}

.audit-preview-stage {
  display: grid;
  place-items: center;
  min-height: 0;
}

.audit-preview-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 154px);
  border-radius: 16px;
}

.audit-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(42, 48, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: var(--fw-strong);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(21, 24, 18, 0.12);
}

.audit-preview-caption {
  min-height: 20px;
  padding: 0 8px 2px;
  color: var(--muted);
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  text-align: center;
}

.options-table tr.current td {
  background: rgba(109, 124, 99, 0.08);
}

.options-table th:last-child,
.options-table td:last-child {
  text-align: right;
}

.option-favorite-cell {
  white-space: nowrap;
}

.option-size-link {
  display: inline-grid;
  gap: 3px;
  color: var(--cobalt);
  text-decoration: none;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-semibold);
}

.option-size-link small {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 1.35;
}

.option-size-link.current {
  color: var(--sage-dark);
}

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

.plans-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plans-grid.single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.plan-card {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.plans-grid.single .plan-card {
  width: min(920px, 100%);
}

.plan-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.plan-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 560px;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
}

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

.detail-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 15, 11, 0.76);
  cursor: pointer;
}

.detail-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(92vw, 1480px);
  max-height: calc(100vh - 56px);
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: rgba(250, 250, 246, 0.98);
  box-shadow: 0 24px 60px rgba(11, 12, 10, 0.28);
}

.detail-lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
}

.detail-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  border-radius: 18px;
}

.detail-lightbox-close,
.detail-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(42, 48, 38, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(21, 24, 18, 0.12);
}

.detail-lightbox-close {
  top: 14px;
  right: 14px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--fs-body);
  font-weight: var(--fw-strong);
  cursor: pointer;
}

.detail-lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.detail-lightbox-nav.prev {
  left: 14px;
}

.detail-lightbox-nav.next {
  right: 14px;
}

.detail-lightbox-caption {
  min-height: 20px;
  padding: 0 8px 2px;
  color: var(--muted);
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  text-align: center;
}

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

.video-grid video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: #000;
}

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

  .brand-wordmark,
  .main-nav,
  .top-actions {
    justify-self: start;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-panel,
  .support-banner {
    grid-template-columns: 1fr;
  }

  .hero-side {
    width: 100%;
    justify-self: stretch;
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-toolbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1120px) {
  .office-card {
    --card-photo-width: 320px;
    --card-photo-height: 204px;
    gap: 24px;
  }

  .card-params {
    gap: 0 24px;
  }
}

@media (max-width: 900px) {
  .office-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    min-height: 0;
  }

  .card-image {
    width: 100%;
    max-width: none;
    height: 220px;
    justify-self: stretch;
  }

  .card-main {
    gap: 12px;
  }

  .card-head {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .card-actions {
    justify-self: start;
    margin-top: 12px;
  }

  .card-actions .favorite-toggle-inline {
    min-height: 32px;
    min-width: 32px;
    width: 32px;
    padding: 0;
  }

  .card-params {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

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

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-page-hero,
  .about-page-contacts-grid {
    grid-template-columns: 1fr;
  }

  .about-page-hero-columns {
    grid-template-columns: 1fr;
  }

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

  .about-step {
    padding-right: 0;
    padding-bottom: 24px;
  }

  .about-step + .about-step {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cards-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-select-wrap,
  .sort-strip {
    justify-items: start;
  }

  .sort-strip-options {
    justify-content: flex-start;
  }

  .favorites-summary {
    grid-template-columns: 1fr;
  }

  .favorites-summary-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .favorites-summary-actions {
    margin-left: 0;
  }

  .favorites-summary-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .shell {
    padding: var(--space-page-top) 0 48px;
  }

  .topbar {
    padding: 14px;
    gap: 14px;
  }

  .brand {
    align-items: center;
  }

  .main-nav {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
    justify-content: flex-start;
    gap: 10px;
  }

  .main-nav-link {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .hero-panel {
    padding: var(--card-padding-md);
  }

  .about-page-hero,
  .about-page-card {
    padding: var(--card-padding-md);
  }

  .filters {
    padding: var(--card-padding-md);
  }

  .cards-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .favorites-section-actions {
    justify-content: flex-start;
  }

  .filters-footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-page-hero {
    gap: 24px;
  }

  .about-page-hero-columns {
    gap: 24px;
  }

  .about-page-hero-column {
    padding: 18px 18px;
    border-radius: 18px;
  }

  .about-page-hero-column p + p {
    padding-top: 16px;
  }

  .about-contact-card {
    padding: 20px;
  }

  .favorites-summary-main {
    min-height: 0;
    padding: 24px;
  }

  .favorites-stat {
    min-height: 0;
  }

  .favorites-section-actions,
  .favorites-layout-switch {
    width: 100%;
  }

  .favorites-layout-switch {
    flex-direction: column;
  }

  .favorites-layout-chip,
  .favorites-section-actions .text-button {
    width: 100%;
  }

  .plans-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .catalog-summary-bar {
    width: 100%;
  }

  .catalog-summary-chip {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 32px;
  }

  .page-intro-copy h1,
  .detail-panel h1 {
    font-size: 30px;
  }

  .about-page-hero-copy h1 {
    font-size: 24px;
  }

  .favorites-summary-main h2 {
    font-size: 24px;
  }

  .empty-actions {
    flex-direction: column;
  }

  .empty-actions .ghost-link,
  .empty-actions .solid-link {
    width: 100%;
  }

  .scroll-top-button {
    right: 18px;
    bottom: 18px;
  }

  .detail-main-image {
    min-height: 0;
  }

  .detail-kpis {
    grid-template-columns: 1fr;
  }

  .detail-fact strong {
    font-size: 17px;
  }

  .site-map {
    height: 340px;
    min-height: 340px;
  }

  .metro-filter-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .map-modal {
    padding: 18px;
  }

  .map-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 36px);
    padding: 18px;
  }

  .map-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .map-actions {
    flex-direction: column;
  }

  .map-actions > * {
    width: 100%;
  }

  .lead-modal {
    padding: 18px;
  }

  .lead-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 36px);
    padding: 18px;
  }

  .lead-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .shell.detail {
    padding-bottom: 136px;
  }

  .detail-mobile-cta {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 42;
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(23, 25, 22, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(23, 25, 22, 0.16);
    backdrop-filter: blur(18px);
  }

  .detail-mobile-cta > * {
    flex: 1 1 0;
  }

  .detail-lightbox {
    padding: 18px;
  }

  .detail-lightbox-dialog {
    width: min(96vw, 1120px);
    padding: 18px 18px 16px;
  }

  .detail-lightbox-image {
    max-height: calc(100vh - 150px);
  }

  .audit-preview-modal {
    padding: 18px;
  }

  .audit-preview-dialog {
    width: min(96vw, 1120px);
    padding: 18px 18px 16px;
  }

  .audit-preview-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .audit-preview-image {
    max-height: calc(100vh - 144px);
  }

  .contact-dock {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }
}

@media (max-width: 680px) {
  .brand-wordmark,
  .main-nav,
  .top-actions {
    width: 100%;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav-link {
    width: 100%;
    padding: 0 12px;
  }

  .top-actions {
    justify-content: stretch;
  }

  .office-card {
    grid-template-columns: 1fr;
  }

  .card-image {
    width: 100%;
    height: 220px;
  }

  .card-title h3 {
    font-size: 18px;
  }

  .card-params {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .thumbs {
    grid-auto-columns: 78px;
  }

  .hero-actions,
  .contact-actions,
  .support-banner-actions,
  .contact-dock-actions {
    flex-direction: column;
  }

  .hero-actions > *,
  .contact-actions > *,
  .support-banner-actions > *,
  .contact-dock-actions > * {
    width: 100%;
  }

  .filters-toolbar-actions {
    flex-direction: column;
  }

  .filters-toolbar-actions > * {
    width: 100%;
    min-width: 0;
  }

  .about-contact-actions,
  .favorites-summary-actions,
  .lead-form-actions,
  .detail-mobile-cta {
    flex-direction: column;
  }

  .about-contact-actions > *,
  .favorites-summary-actions > *,
  .lead-form-actions > *,
  .detail-mobile-cta > * {
    width: 100%;
  }

  .top-actions .ghost-link,
  .top-actions .solid-link,
  .top-actions .button-primary,
  .top-actions .button-secondary,
  .top-actions .button-accent-outline,
  .top-actions .button-ghost {
    width: 100%;
    min-width: 0;
  }

  .favorites-summary-stats {
    grid-template-columns: 1fr;
  }

  .about-contact-card-qr img {
    width: min(100%, 180px);
  }

  .favorites-actions-cell {
    justify-items: stretch;
  }

  .favorites-actions-cell > *,
  .compare-column-actions > * {
    width: 100%;
  }

  .compare-column-head {
    min-width: 200px;
  }

  .compare-column-gallery {
    width: 100%;
    height: 188px;
  }

  .audit-thumb {
    width: 84px;
  }

  .audit-thumb-carousel {
    width: 84px;
  }

  .audit-thumb-nav {
    width: 22px;
    height: 22px;
    font-size: 14px;
  }

  .plan-card {
    padding: 12px;
  }

  .plan-card img {
    max-height: 420px;
  }

  .detail-lightbox {
    padding: 10px;
  }

  .detail-lightbox-dialog {
    width: 100%;
    padding: 54px 12px 12px;
    border-radius: 18px;
  }

  .detail-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .detail-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .detail-lightbox-nav.prev {
    left: 8px;
  }

  .detail-lightbox-nav.next {
    right: 8px;
  }

  .detail-lightbox-image {
    max-height: calc(100vh - 136px);
  }

  .audit-preview-modal {
    padding: 10px;
  }

  .audit-preview-dialog {
    width: 100%;
    padding: 54px 12px 12px;
    border-radius: 18px;
  }

  .audit-preview-close {
    top: 10px;
    right: 10px;
  }

  .audit-preview-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .audit-preview-nav.prev {
    left: 8px;
  }

  .audit-preview-nav.next {
    right: 8px;
  }

  .audit-preview-image {
    max-height: calc(100vh - 132px);
  }
}
