:root {
  --timbre-verde: #173F36;
  --timbre-marfil: #F4F0E6;
  --timbre-acento: #F2CA52;
  --timbre-fondo: #F3F5EC;
  --timbre-texto: #17312A;
  --timbre-secundario: #56645B;
  --timbre-font: Manrope, system-ui, sans-serif;
}

/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color-scheme: light;
  --page-bg: #f6f3ee;
  --surface: #ffffff;
  --surface-strong: #fffdf9;
  --border: #e9e1d4;
  --border-strong: #dccdb8;
  --text: #231f1a;
  --muted: #6f675c;
  --accent: #f0e4d3;
  --accent-strong: #dcc3a0;
  --shadow: 0 18px 45px rgba(53, 40, 24, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #fbf8f3 0%, var(--page-bg) 55%);
  color: var(--text);
  font-family: var(--timbre-font);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.app-body {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem 2rem;
  background: rgba(246, 243, 238, 0.98);
  border-bottom: 1px solid rgba(233, 225, 212, 0.8);
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem 0.9rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(53, 40, 24, 0.07);
}

.app-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.app-nav__mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--surface-strong);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.app-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.app-user__email {
  max-width: min(34vw, 24rem);
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-language {
  display: flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.app-language form {
  margin: 0;
}

.app-language__button {
  padding: 0.3rem 0.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.app-language__button--active {
  background: var(--text);
  color: var(--surface);
}

.app-sign-out {
  margin: 0;
}

.app-sign-out__button {
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.app-sign-out__button:hover,
.app-sign-out__button:focus-visible {
  border-color: var(--border-strong);
  background: #f8efe2;
}

.feed-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  width: calc(100% - 4rem);
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

.search-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.search-sidebar h2,
.feed-header h1,
.listing-card h2 {
  margin: 0;
}

.search-sidebar__eyebrow,
.feed-header__eyebrow,
.search-link__meta,
.listing-card__url,
.listing-card__facts dt,
.feed-header__count {
  color: var(--muted);
}

.feed-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow);
}

.feed-controls__field {
  display: grid;
  gap: 0.35rem;
}

.feed-controls__field label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.feed-controls__field select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.feed-controls__toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.feed-price-filter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: end;
  gap: 0.75rem 1rem;
  min-width: 0;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.feed-price-filter legend {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.feed-price-filter__currency { display: inline-flex; align-items: center; }
.feed-price-filter__currency input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.feed-price-filter__currency label { min-width: 3rem; padding: 0.65rem 0.8rem; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-size: 0.85rem; font-weight: 800; text-align: center; }
.feed-price-filter__currency label:first-of-type { border-radius: 12px 0 0 12px; }
.feed-price-filter__currency label:last-of-type { border-radius: 0 12px 12px 0; }
.feed-price-filter__currency label + input + label { border-left: 0; }
.feed-price-filter__currency input:checked + label { background: var(--text); color: var(--surface); }
.feed-price-filter__currency input:focus-visible + label { outline: 2px solid var(--border-strong); outline-offset: 2px; }
.feed-price-filter__range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.5rem; }
.feed-price-filter__range input { width: 100%; min-width: 0; min-height: 2.7rem; padding: 0.6rem 0.75rem; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
.feed-price-filter__range span { color: var(--muted); }
.feed-price-filter__expenses { display: flex; align-items: center; gap: 0.5rem; min-height: 2.7rem; color: var(--text); cursor: pointer; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.feed-price-filter__expenses input { width: 1.15rem; height: 1.15rem; accent-color: var(--text); }

.feed-range-filter {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.feed-range-filter legend {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.feed-range-filter__inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
}

.feed-range-filter__inputs--expenses {
  grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr);
}

.feed-range-filter__inputs input,
.feed-range-filter__inputs select {
  width: 100%;
  min-width: 0;
  min-height: 2.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.feed-range-filter label,
.feed-controls__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.feed-controls__checkbox {
  min-height: 2.7rem;
}

.feed-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feed-pagination a,
.feed-pagination span {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  font-weight: 800;
}

.feed-pagination span {
  color: var(--muted);
  font-weight: 700;
}

.feed-controls__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.feed-controls__submit,
.feed-controls__clear {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  font-weight: 800;
}

.feed-controls__submit {
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--surface);
  cursor: pointer;
}

.feed-controls__clear {
  color: var(--muted);
}

.search-sidebar__eyebrow,
.feed-header__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-sidebar__copy {
  margin: 0.75rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.search-sidebar__nav {
  display: grid;
  gap: 0.75rem;
}

.search-link {
  position: relative;
  display: block;
  padding: 0.9rem 3rem 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 18px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.search-link:hover,
.search-link:focus-visible {
  transform: translateY(-1px);
  background: #fbf7f0;
  border-color: var(--border);
  box-shadow: 0 8px 18px rgba(53, 40, 24, 0.06);
}

.search-link--active {
  background: linear-gradient(180deg, #f4e8d7 0%, var(--accent) 100%);
  border-color: var(--border-strong);
  box-shadow: inset 4px 0 0 #b99668, inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.search-link--active:hover,
.search-link--active:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #efdfc8 0%, #e6d2b5 100%);
  border-color: #cfb48f;
  box-shadow: inset 4px 0 0 #9f7949, 0 12px 24px rgba(53, 40, 24, 0.11);
}

.search-link__name,
.search-link__meta {
  display: block;
}

.search-link__name {
  font-weight: 700;
}

.search-link__meta {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.search-link__count {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.feed-main {
  min-width: 0;
}

.feed-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feed-header__context {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feed-header__refresh-cue {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feed-header__count {
  margin: 0;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feed-empty-state {
  padding: 2rem;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feed-empty-state h2 {
  margin: 0;
}

.feed-empty-state p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42rem;
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.listing-card:has(.listing-card__link:hover),
.listing-card:has(.listing-card__link:focus-visible) {
  border-color: rgba(31, 111, 235, 0.32);
  box-shadow: 0 22px 45px rgba(18, 23, 34, 0.14);
  transform: translateY(-2px);
}

.listing-card__link {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
}

.listing-card__link:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.38);
  outline-offset: -3px;
}

.listing-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
}

.listing-card__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.listing-card__price {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.listing-card__score {
  margin: 0;
  color: #35512d;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.listing-card__explanation {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 0.65rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-card__completeness {
  align-self: flex-start;
  margin: 0 0 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #edf4e8;
  color: #35512d;
  font-size: 0.75rem;
  font-weight: 800;
}

.listing-card__matches {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.listing-card h2 {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-card__location {
  min-height: 1.5em;
  margin: 0.45rem 0 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  flex: 1;
  margin: 1rem 0;
}

.listing-card__facts div {
  padding: 0.75rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.listing-card__facts .listing-card__fact--source {
  grid-column: 1 / -1;
}

.listing-card__facts dt,
.listing-card__facts dd {
  margin: 0;
}

.listing-card__facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-card__facts dd {
  margin-top: 0.35rem;
  font-weight: 700;
}

.listing-card__url {
  display: -webkit-box;
  min-height: 3em;
  margin: 0;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1100px) {
  .feed-layout {
    grid-template-columns: 1fr;
  }

  .search-sidebar {
    position: static;
  }

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

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

  .feed-price-filter {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .feed-layout {
    gap: 1.25rem;
    width: calc(100% - 2rem);
    padding: 1rem 0;
  }

  .feed-header {
    align-items: start;
    flex-direction: column;
  }

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

  .feed-controls {
    grid-template-columns: 1fr;
  }

  .feed-price-filter__range {
    grid-template-columns: 1fr;
  }

  .feed-price-filter__range span {
    display: none;
  }

  .feed-range-filter__inputs {
    grid-template-columns: 1fr;
  }

  .feed-range-filter__inputs > span {
    display: none;
  }

  .feed-pagination {
    flex-wrap: wrap;
  }
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-shell {
  width: 100%;
  max-width: 34rem;
}

.auth-card {
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.auth-brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-header {
  margin-bottom: 1.5rem;
}

.auth-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.auth-copy {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field label,
.auth-checkbox-row {
  font-weight: 600;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(220, 195, 160, 0.18);
}

.auth-field__label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.auth-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  max-width: 100%;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.notification-results {
  display: grid;
  gap: 1.5rem;
}

.notification-results__listing + .notification-results__listing {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.notification-results__listing h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.notification-results__listing p {
  margin: 0.5rem 0 1rem;
}

.auth-links {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.auth-links p {
  margin: 0;
}

.auth-links a {
  color: var(--muted);
  text-decoration: none;
}

.auth-links a:hover,
.auth-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.auth-errors,
.auth-flash {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
}

.app-flash {
  margin: 1rem auto 0;
  max-width: 1440px;
  padding: 0.8rem 1rem;
  width: calc(100% - 4rem);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--muted);
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(53, 40, 24, 0.06);
}

.app-flash.flash--notice {
  border-color: #d9d0bb;
  color: #4f6b42;
}

.app-flash.flash--alert {
  border-color: #e3b7a9;
  color: #8a3d2c;
}

.app-nav__link {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.runs-page {
  max-width: 1180px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
}

.runs-workbench {
  min-width: 0;
}

.runs-header,
.run-card__summary,
.source-run {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.runs-header {
  margin-bottom: 1.5rem;
}

.runs-header__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.runs-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
}

.runs-header h1,
.run-card h2 {
  margin: 0;
}

.runs-header__eyebrow,
.runs-header__count,
.run-card__started,
.source-run__meta {
  color: var(--muted);
}

.runs-header__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.runs-header__count {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  font-weight: 700;
}

.source-controls {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow);
}

.source-controls__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.source-controls__explanation {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
}

.source-controls__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-controls h2,
.source-control-card h3,
.source-control-card p {
  margin: 0;
}

.source-controls__header h2 {
  margin-top: 0.35rem;
}

.source-controls__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.source-control-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.maintenance-action-card-form {
  margin: 0;
}

.maintenance-action-card {
  width: 100%;
  height: 100%;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.maintenance-action-card:hover,
.maintenance-action-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(53, 40, 24, 0.1);
  outline: none;
}

.source-control-card p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.source-control-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.source-control-card__status {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.source-control-card__status--active {
  background: rgba(35, 134, 54, 0.12);
  color: #238636;
}

.source-control-card__status--inactive {
  background: rgba(106, 115, 125, 0.14);
  color: #59636e;
}

.source-control-card__button {
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.source-control-card__button:hover,
.source-control-card__button:focus-visible {
  background: #4a4137;
}

.runs-list {
  display: grid;
  gap: 1rem;
}

.run-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow);
}

.run-card__started,
.source-run__name,
.source-run__meta,
.source-run__timeline {
  margin: 0;
}

.source-run__timeline {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.run-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.location-quality-intro {
  max-width: 48rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.run-card__facts div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.run-card__facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.run-card__facts dd {
  margin: 0.2rem 0 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.location-quality-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.location-quality-table th,
.location-quality-table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.location-quality-table thead th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.run-card__error,
.source-run__error {
  border: 1px solid #e3b7a9;
  background: #fff7f3;
  color: #8a3d2c;
}

.run-card__error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
}

.source-runs {
  display: grid;
  gap: 0.75rem;
}

.source-run {
  flex-wrap: wrap;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.source-run__name {
  font-weight: 800;
}

.source-run__error {
  flex-basis: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill--failed,
.status-pill--completed-with-failures {
  border-color: #e3b7a9;
  background: #fff1ea;
  color: #8a3d2c;
}

.status-pill--succeeded {
  border-color: #cbd8bf;
  background: #f1f7ed;
  color: #4f6b42;
}

.search-sidebar__action,
.search-sidebar__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.search-sidebar__action {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--accent);
}

.search-sidebar__item {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid transparent;
  border-radius: 20px;
}

.search-sidebar__item:has(.search-link--active) {
  border-color: var(--border);
  background: rgba(255, 253, 249, 0.55);
}

.search-sidebar__edit {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  padding: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.88);
}

.search-sidebar__edit svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.search-sidebar__edit:hover,
.search-sidebar__edit:focus-visible {
  border-color: var(--border-strong);
  background: var(--accent);
  color: var(--text);
  outline: none;
}

.search-form-page {
  max-width: 920px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
}

.search-form-header {
  margin-bottom: 1.25rem;
}

.search-form-header h1 {
  margin: 0;
}

.search-form-header__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: start;
}

.search-form,
.search-form-danger {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow);
}

.search-form-aside {
  position: sticky;
  top: 7rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf9 0%, #f8efe2 100%);
  box-shadow: var(--shadow);
}

.search-form-aside h2,
.search-form-aside p {
  margin: 0;
}

.search-form-aside h2 {
  margin-bottom: 0.6rem;
}

.search-form-aside p {
  color: var(--muted);
  line-height: 1.45;
}

.search-form-aside__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-form-aside__facts {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.search-form-aside__facts span {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.8);
  font-weight: 800;
}

.search-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.search-form__field {
  display: grid;
  gap: 0.4rem;
}

.search-form__field label,
.search-form__zones legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-form__field select,
.search-form__field input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.search-form__zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.search-form__bedrooms {
  max-width: 18rem;
  margin-top: 1rem;
}

.search-form__price-filter {
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 1rem;
}

.search-form__price-filter .feed-price-filter__expenses {
  grid-column: 1 / -1;
}

.search-form__zones legend {
  padding: 0 0.35rem;
}

.search-form__zones label,
.search-form__toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: 700;
}

.search-form__zones input,
.search-form__toggle input {
  cursor: pointer;
}

.search-form__notification-warning {
  margin: 0.65rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid #ead7a8;
  border-radius: 14px;
  background: #fff8e8;
  color: #6e571f;
  line-height: 1.45;
}

.search-form__notification-warning[hidden] {
  display: none;
}

.search-form__notification-warning a {
  font-weight: 800;
}

.search-form__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.search-form__submit,
.search-form__cancel,
.search-form-danger__button {
  border-radius: 999px;
  font-weight: 800;
}

.search-form__submit {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  background: var(--text);
  color: var(--surface);
  cursor: pointer;
}

.search-form__cancel {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
}

.search-form__submit:hover,
.search-form__submit:focus-visible {
  background: #4a4137;
  transform: translateY(-1px);
}

.search-form__cancel:hover,
.search-form__cancel:focus-visible {
  border-color: var(--border-strong);
  background: var(--accent);
  color: var(--text);
}

.form-errors {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e3b7a9;
  border-radius: 16px;
  background: #fff7f3;
  color: #8a3d2c;
}

.form-errors h2,
.form-errors ul {
  margin: 0;
}

.form-errors ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.search-form-danger {
  margin-top: 1rem;
}

.search-form-danger__button {
  padding: 0.7rem 1rem;
  border: 1px solid #e3b7a9;
  background: #fff1ea;
  color: #8a3d2c;
  cursor: pointer;
}

.search-form-danger__button:hover,
.search-form-danger__button:focus-visible {
  border-color: #c97965;
  background: #fbe2d8;
  transform: translateY(-1px);
}

.delete-confirmation { width: min(30rem, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid #e3b7a9; border-radius: 22px; background: var(--surface-strong); color: var(--text); box-shadow: 0 24px 70px rgba(53, 40, 24, 0.24); }
.delete-confirmation::backdrop { background: rgba(35, 31, 26, 0.45); backdrop-filter: blur(3px); }
.delete-confirmation h2, .delete-confirmation p { margin-top: 0; }
.delete-confirmation p { color: var(--muted); line-height: 1.5; }
.delete-confirmation__actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; margin-top: 1.25rem; }
.delete-confirmation__actions form { margin: 0; }
.delete-confirmation__actions .search-form__cancel { cursor: pointer; font: inherit; }

.auth-errors h2,
.auth-errors ul {
  margin: 0;
}

.auth-errors ul {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.notification-settings {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem;
}

.notification-settings__channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.notification-settings__channel {
  min-width: 0;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid #c8d5df;
  border-radius: 0.75rem;
  background: #f4f8fb;
}

.notification-settings__channels .notification-settings__channel {
  margin: 0;
}

.notification-settings__channel-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notification-settings__channel-state {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: #fff4df;
  font-weight: 800;
}

.notification-settings__channel-state--ready {
  background: #e5f4e9;
  color: #245a32;
}

.notification-settings__web-push h2 {
  margin-top: 0;
}

.notification-settings__web-push [role="status"] {
  min-height: 1.5em;
  margin-bottom: 0;
  font-weight: 600;
}

.notification-settings__device-guides {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #c8d5df;
  color: #526170;
  font-size: 0.9rem;
}

.notification-settings__device-guides h3 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-size: 1rem;
}

.notification-settings__device-guides .notification-settings__disclosure {
  margin-top: 0.55rem;
  padding: 0.75rem;
  background: var(--surface);
}

.notification-settings__device-guides ol {
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
}

.notification-settings__device-guides li + li {
  margin-top: 0.4rem;
}

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

.notification-settings__panel,
.notification-settings__aside {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow);
}

.notification-settings h1,
.notification-settings h2,
.notification-settings__eyebrow {
  margin-top: 0;
}

.notification-settings__eyebrow {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notification-settings__intro,
.notification-settings__aside p,
.notification-settings__field p {
  color: var(--muted);
  line-height: 1.55;
}

.notification-settings__explanation {
  margin: 1.25rem 0;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-strong);
}

.notification-settings__explanation h2 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.notification-settings__explanation h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
}

.notification-settings__explanation p,
.notification-settings__explanation ul {
  color: var(--muted);
  line-height: 1.55;
}

.notification-settings__explanation p {
  margin: 0;
}

.notification-settings__explanation ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.notification-settings__resources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.notification-settings__resources a {
  color: var(--text);
  font-weight: 800;
}

.notification-settings__status {
  display: grid;
  gap: 0.25rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.notification-settings__status--ready {
  background: #edf8ef;
  border-color: #bfdac4;
}

.notification-settings__status--missing {
  background: #fff8e8;
  border-color: #ead7a8;
}

.notification-settings__searches {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-strong);
}

.notification-settings__searches h2,
.notification-settings__troubleshooting h2 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.notification-settings__searches p {
  margin: 0.35rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.notification-settings__searches ul,
.notification-settings__troubleshooting ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.notification-settings__searches a,
.notification-settings__inline-link {
  font-weight: 800;
}

.notification-settings__steps {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  counter-reset: setup-step;
}

.notification-settings__steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.2rem 0.75rem;
  counter-increment: setup-step;
}

.notification-settings__steps li::before {
  display: grid;
  grid-row: 1 / 4;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  content: counter(setup-step);
  font-weight: 800;
}

.notification-settings__steps span {
  color: var(--muted);
  line-height: 1.45;
}

.notification-settings__steps a {
  width: fit-content;
  font-weight: 800;
}

.notification-settings__connected-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
}

.notification-settings__connected-actions form {
  margin: 0;
}

.notification-settings__disclosure {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.notification-settings__disclosure summary {
  cursor: pointer;
  font-weight: 800;
}

.notification-settings__disclosure[open] summary {
  margin-bottom: 1rem;
}

.notification-settings__form,
.notification-settings__field {
  display: grid;
  gap: 0.65rem;
}

.notification-settings__field label {
  font-weight: 800;
}

.notification-settings__field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  font: inherit;
}

.notification-settings__field p {
  margin: 0;
  font-size: 0.85rem;
}

.notification-settings__troubleshooting {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.notification-settings__troubleshooting li {
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.45;
}

.notification-settings__danger {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.1rem;
  border: 1px solid #e3b7a9;
  border-radius: 18px;
  background: #fff8f5;
}

.notification-settings__danger strong {
  color: #7f3122;
}

.notification-settings__danger p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.notification-settings__danger form {
  margin: 0;
}

.notification-settings__remove-button {
  padding: 0.7rem 1rem;
  border: 1px solid #9b3825;
  border-radius: 999px;
  background: #9b3825;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.notification-settings__remove-button:hover,
.notification-settings__remove-button:focus-visible {
  background: #7f2e20;
}

.notification-settings__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.notification-settings__submit {
  padding: 0.8rem 1rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  cursor: pointer;
  font-weight: 800;
}

.notification-settings__cancel {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 720px) {
  .app-header {
    padding: 0.75rem 1rem;
  }

  .app-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .app-user {
    justify-content: space-between;
  }

  .runs-page {
    padding: 0 1rem;
  }

  .search-form-page {
    padding: 0 1rem;
  }

  .runs-header,
  .run-card__summary,
  .source-controls__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-controls__explanation {
    text-align: left;
  }

  .runs-header__tools {
    width: 100%;
    justify-content: space-between;
  }

  .run-card__facts {
    grid-template-columns: 1fr;
  }

  .search-form__grid,
  .search-form__zones {
    grid-template-columns: 1fr;
  }

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

  .notification-settings {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .notification-settings__panel,
  .notification-settings__aside {
    padding: 1.5rem;
  }

  .search-form-aside {
    position: static;
  }

  .app-user__email {
    max-width: 100%;
  }

  .app-flash {
    width: calc(100% - 2rem);
  }

  .auth-body {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .auth-field__label-row {
    flex-direction: column;
    align-items: start;
    gap: 0.35rem;
  }
}

/* Phone layout: keep every surface within the viewport and make primary
   actions comfortably tappable. This block intentionally comes last so it
   can tighten responsive rules shared by the feed and account screens. */
@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .app-header {
    position: static;
    padding: 0.5rem;
  }

  .app-nav {
    gap: 0.65rem;
    padding: 0.7rem;
    border-radius: 18px;
  }

  .app-nav__brand {
    padding-inline: 0.15rem;
    font-size: 0.86rem;
  }

  .app-user {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .app-nav__link,
  .app-sign-out__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 0.65rem;
    text-align: center;
  }

  .app-language {
    justify-content: center;
    min-height: 2.75rem;
  }

  .app-language__button {
    min-width: 2.5rem;
    min-height: 2.25rem;
  }

  .app-user__email {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0 0.2rem;
    font-size: 0.78rem;
    text-align: center;
  }

  .app-sign-out,
  .app-sign-out__button {
    width: 100%;
  }

  .feed-layout,
  .runs-page,
  .search-form-page,
  .notification-settings {
    width: 100%;
    margin-inline: auto;
    padding-inline: 0.75rem;
  }

  .feed-layout {
    gap: 1rem;
  }

  .search-sidebar,
  .feed-controls,
  .listing-card,
  .feed-empty-state,
  .run-card,
  .source-controls,
  .search-form,
  .search-form-danger,
  .search-form-aside,
  .notification-settings__panel,
  .notification-settings__aside {
    border-radius: 18px;
  }

  .search-sidebar {
    padding: 1rem;
  }

  .search-sidebar__copy {
    margin-bottom: 1rem;
  }

  .search-sidebar__nav {
    display: flex;
    gap: 0.6rem;
    margin-inline: -1rem;
    padding: 0 1rem 0.25rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .search-sidebar__item {
    flex: 0 0 min(15rem, 82vw);
    scroll-snap-align: start;
  }

  .feed-header {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .feed-header h1,
  .runs-header h1,
  .search-form-header h1,
  .notification-settings h1 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
    line-height: 1.1;
  }

  .feed-header__count,
  .runs-header__count {
    align-self: flex-start;
    padding: 0.5rem 0.75rem;
  }

  .feed-controls,
  .source-controls,
  .run-card,
  .search-form,
  .search-form-danger,
  .notification-settings__panel,
  .notification-settings__aside {
    padding: 1rem;
  }

  .feed-controls__field select,
  .feed-price-filter__range input,
  .search-form__field select,
  .search-form__field input,
  .notification-settings__field input {
    min-height: 3rem;
    font-size: 1rem;
  }

  .feed-price-filter {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .feed-price-filter__currency {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .search-form__price-filter .feed-price-filter__currency {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-price-filter__currency label {
    display: grid;
    place-items: center;
    min-height: 2.8rem;
    min-width: 0;
    padding-inline: 0.4rem;
  }

  .feed-controls__actions,
  .search-form__actions,
  .notification-settings__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feed-controls__submit,
  .feed-controls__clear,
  .search-form__submit,
  .search-form__cancel,
  .notification-settings__submit,
  .notification-settings__cancel {
    min-height: 2.8rem;
    text-align: center;
  }

  .listing-card__body {
    padding: 1rem;
  }

  .listing-card__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .listing-card h2,
  .listing-card__explanation,
  .listing-card__location,
  .listing-card__url {
    min-height: 0;
  }

  .listing-card__location {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .listing-card__facts {
    gap: 0.5rem;
  }

  .listing-card__facts div {
    min-width: 0;
    padding: 0.65rem;
  }

  .listing-card__facts dd,
  .source-run__meta,
  .source-run__timeline,
  .run-card h2 {
    overflow-wrap: anywhere;
  }

  .runs-header__tools {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .runs-header__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .source-controls__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-control-card,
  .source-run {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-control-card__actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .location-quality-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .auth-body {
    place-items: start center;
    padding: 0.75rem;
  }

  .auth-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .auth-card__topline {
    align-items: flex-start;
  }

  .delete-confirmation__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .delete-confirmation__actions > *,
  .delete-confirmation__actions button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .app-user {
    grid-template-columns: 1fr;
  }

  .app-user__email {
    grid-column: 1;
  }

  .listing-card__facts {
    grid-template-columns: 1fr;
  }

  .listing-card__facts .listing-card__fact--source {
    grid-column: auto;
  }
}

/* Personal apartment tracking */
.listing-card--tracked { display: flex; flex-direction: column; }
.listing-card--tracked .listing-card__link { height: auto; flex: 1; }
.listing-card--tracked .listing-card__body { height: auto; }
.tracking-page { max-width: 1440px; margin: 0 auto; padding: 32px 24px; }
.tracking-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tracking-filter { padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text); text-decoration: none; }
.tracking-filter--active { background: var(--text); color: white; border-color: var(--text); }
.listing-tracking { padding: 16px 20px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.listing-tracking__favorite { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.listing-tracking__favorite input { width: 18px; height: 18px; }
.listing-tracking__history summary { cursor: pointer; padding: 8px 0; color: var(--text); }
.listing-tracking__hint { font-size: 0.85rem; color: var(--muted); margin: 8px 0; }
.listing-tracking__date { display: grid; gap: 4px; margin: 10px 0; }
.listing-tracking__date input { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; color: var(--text); background: white; }
.listing-tracking__dates { margin: 0; padding-left: 18px; font-size: 0.85rem; line-height: 1.6; }
.listing-tracking .feed-controls__submit { justify-self: start; cursor: pointer; padding: 10px 16px; border: 0; }
.search-form__area-filter { margin: 24px 0; }
.search-form__area-filter p { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 600px) { .tracking-page { padding: 20px 16px; } }

.listing-tracking__quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-tracking__quick-actions button { padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: white; color: var(--text); font: inherit; font-size: 0.85rem; cursor: pointer; }
.listing-tracking button:focus-visible, .tracking-filter:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.listing-tracking__notice { margin: 0; padding: 12px 20px 0; color: var(--text); font-size: 0.85rem; }
.listings-grid:has(.listing-card) > .tracking-empty-state { display: none; }
.tracking-empty-state { grid-column: 1 / -1; }

/* Public portfolio tour: independent sample interactions in the app workbench. */
.tour-body { background: var(--page-bg); }
.tour-shell { max-width: 1280px; margin: 0 auto; padding: 32px 24px 64px; }
.tour-header-actions { display: flex; align-items: center; gap: 16px; }
.tour-intro { max-width: 780px; margin-bottom: 32px; }
.tour-intro h1 { margin: 12px 0; color: var(--text); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.035em; }
.tour-intro > p:last-child { font-size: 1.1rem; line-height: 1.65; color: var(--muted); }
.tour-sample-label { display: inline-block; margin: 0; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text); font-size: 0.85rem; }
.tour-workbench { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-guide { position: sticky; top: 120px; padding: 24px; background: var(--accent); border-left: 4px solid var(--text); border-radius: 6px; }
.tour-guide h2 { font-size: 1.1rem; margin: 0 0 20px; }
.tour-guide nav { display: grid; gap: 8px; }
.tour-guide nav a { padding: 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.tour-guide nav a[aria-current] { background: var(--text); color: white; font-weight: 700; }
.tour-guide > p { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.tour-navigation { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tour-panel { padding: 28px; margin-bottom: 24px; background: white; border: 1px solid var(--border); border-radius: 12px; scroll-margin-top: 120px; }
.tour-panel h2 { margin: 0; color: var(--text); font-size: 1.65rem; }
.tour-panel-copy { margin: 16px 0 28px; color: var(--muted); line-height: 1.7; max-width: 70ch; }
.tour-button { display: inline-block; padding: 12px 16px; border: 1px solid var(--text); border-radius: 6px; background: var(--text); color: white; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.tour-button--secondary { background: white; color: var(--text); }
.tour-button:disabled { opacity: 0.45; cursor: default; }
.tour-button[aria-pressed="true"] { background: var(--text); color: white; }
.tour-shell :focus-visible, .tour-header-actions :focus-visible, .tour-invitation a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.tour-panel:focus { outline: none; }
.tour-search-preview { border-top: 3px solid var(--text); padding: 8px 0; }
.tour-facts { display: flex; flex-wrap: wrap; gap: 20px; margin: 20px 0; }
.tour-facts dt { color: var(--muted); font-size: 0.8rem; }
.tour-facts dd { margin: 6px 0 0; color: var(--text); font-weight: 700; }
.tour-search-preview label { display: block; margin-top: 32px; font-weight: 600; }
.tour-search-preview input { width: 100%; margin: 20px 0; accent-color: var(--text); }
.tour-search-preview output { display: block; color: var(--text); font-size: 1.7rem; font-weight: 700; }
.tour-search-preview p { color: var(--muted); line-height: 1.6; }
.tour-listings { display: grid; gap: 16px; }
.tour-listing { padding: 20px; border: 1px solid var(--border-strong); border-radius: 8px; }
.tour-listing-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.tour-listing-heading h3 { margin: 0; font-size: 1.1rem; }
.tour-listing-heading span, .tour-listing > p:last-child { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.tour-price { color: var(--text); font-size: 1.5rem; font-weight: 700; margin: 16px 0; }
.tour-status-label { display: grid; gap: 8px; margin-top: 16px; color: var(--muted); }
.tour-status-label select { padding: 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: white; color: var(--text); font: inherit; width: 100%; }
.tour-alert-preview, .tour-health { line-height: 1.7; }
.tour-notification { margin-top: 24px; padding: 20px; border-left: 4px solid var(--text); background: var(--accent); }
.tour-notification p { margin: 8px 0; }
.tour-health li { margin: 12px 0; }
.tour-health details { margin: 24px 0; padding: 16px; border: 1px solid var(--border-strong); border-radius: 6px; }
.tour-health summary { cursor: pointer; font-weight: 600; color: var(--text); }
.tour-end-link { display: inline-block; margin: 12px; color: var(--text); }
.tour-invitation { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; line-height: 1.6; }
.tour-shell [hidden] { display: none !important; }
@media (max-width: 760px) {
  .tour-shell { padding: 24px 16px; }
  .tour-workbench { grid-template-columns: 1fr; gap: 20px; }
  .tour-guide { position: static; padding: 20px; }
  .tour-guide nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .tour-guide nav a { padding: 10px 8px; font-size: 0.85rem; }
  .tour-panel { padding: 20px; scroll-margin-top: 160px; }
  .tour-header-actions { gap: 8px; }
}


/* Timbre visual system: quiet, architectural, and built around the search. */
:root {
  --page-bg: var(--timbre-fondo);
  --surface: #fffefa;
  --surface-strong: #eeeee5;
  --border: #dedfd4;
  --border-strong: #b9c3b6;
  --text: var(--timbre-texto);
  --muted: var(--timbre-secundario);
  --accent: #e6ece1;
  --accent-strong: var(--timbre-acento);
  --focus: var(--timbre-verde);
  --shadow: 0 8px 28px rgba(36, 62, 53, .045);
}
body { background: var(--page-bg); font-family: var(--timbre-font); line-height: 1.5; }
.app-body, .auth-body { min-height: 100dvh; }
h1, h2, h3 { text-wrap: balance; }
.feed-header h1, .runs-header h1, .search-form-header h1, .notification-settings h1,
.auth-title, .tour-intro h1, .auth-story h2 {
  font-family: var(--timbre-font);
  font-weight: 650; letter-spacing: -.045em; line-height: 1.15;
}
.feed-header h1, .runs-header h1, .search-form-header h1, .notification-settings h1 { font-size: clamp(2.5rem, 4vw, 3.6rem); }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
button, a, input, select { transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--text); }
button:active, input[type="submit"]:active { transform: translateY(1px); }
.app-header { padding: 0 2rem; background: rgba(243, 245, 236, .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.app-nav { min-height: 5rem; padding: .75rem 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 2rem; }
.app-nav__brand { font-size: .92rem; font-weight: 600; letter-spacing: -.025em; flex-shrink: 0; }
.app-nav__mark { width: 2.4rem; height: 2.4rem; border-radius: 50% 50% 4px 4px; background: var(--text); font-family: var(--timbre-font); font-weight: 400; font-size: .72rem; }
.app-user { flex-wrap: wrap; gap: .55rem 1rem; }
.app-nav__link { background: transparent; border: 0; border-radius: 4px; padding: .45rem .2rem; color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none; }
.app-nav__link:hover, .app-nav__link[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px var(--text); background: transparent; }
.app-user__email { max-width: 10rem; font-size: .72rem; font-weight: 400; }
.app-sign-out__button { border-radius: 6px; background: transparent; font-size: .75rem; font-weight: 600; box-shadow: none; }
.app-language { background: transparent; border: 0; border-radius: 6px; }
.app-language__button { border-radius: 4px; font-weight: 600; }
.feed-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 3rem; padding-top: 3rem; }
.search-sidebar { top: 7rem; background: transparent; border: 0; border-right: 1px solid var(--border); border-radius: 0; padding: 0 1.5rem 1.5rem 0; box-shadow: none; backdrop-filter: none; }
.search-sidebar h2 { font-size: 1.1rem; font-weight: 600; }
.search-sidebar__eyebrow, .feed-header__eyebrow { font-size: .65rem; letter-spacing: .15em; color: var(--muted); }
.search-sidebar__copy { font-size: .85rem; line-height: 1.65; }
.search-sidebar__action { border-radius: 6px; background: var(--text); color: var(--surface); box-shadow: none; font-weight: 600; font-size: .85rem; }
.search-sidebar__action:hover { background: #365c4d; }
.search-sidebar__nav { gap: .45rem; }
.search-link { border-radius: 6px; padding: 1rem 2.5rem 1rem .85rem; }
.search-link--active, .search-link--active:hover, .search-link--active:focus-visible { background: var(--accent); border-color: transparent; box-shadow: inset 3px 0 var(--text); transform: none; }
.search-link:hover { background: #eceee5; box-shadow: none; transform: none; }
.search-link__name { font-size: .9rem; font-weight: 600; }
.search-link__meta { font-size: .8rem; }
.search-link__count { border: 0; background: transparent; padding: 0; font-size: .75rem; font-weight: 500; }
.feed-header { padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.feed-header__context { font-size: .95rem; margin-top: .9rem; }
.feed-header__refresh-cue { font-size: .75rem; }
.feed-header__count { border: 0; border-radius: 4px; background: var(--accent); font-size: .8rem; }
.feed-controls { padding: 1.25rem; gap: 1rem; border-radius: 8px; background: #eeeee6; border: 0; box-shadow: none; margin-bottom: 2rem; }
.feed-controls__field label, .feed-controls legend { font-weight: 600; font-size: .72rem; }
.feed-controls :is(select, input[type="number"]), .search-form :is(select, input[type="text"], input[type="number"]), .auth-field input:is([type="email"], [type="password"], [type="text"]), .notification-settings__field input { border-radius: 5px; background: var(--surface); border-color: var(--border); font-size: .9rem; }
.feed-price-filter, .feed-range-filter { border-radius: 5px; border-color: #d4d8cb; padding: .75rem; }
.feed-controls__submit, .search-form__submit, .notification-settings__submit, .auth-submit, .tour-button { background: var(--text); border-color: var(--text); border-radius: 5px; font-weight: 600; }
.feed-controls__submit:hover, .search-form__submit:hover, .notification-settings__submit:hover, .auth-submit:hover, .tour-button:hover { background: #365c4d; color: var(--surface); }
.feed-controls__clear, .search-form__cancel, .notification-settings__cancel { font-size: .85rem; font-weight: 500; border-radius: 5px; }
.listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.listing-card { border-radius: 8px; border: 1px solid var(--border); box-shadow: none; background: var(--surface); }
.listing-card:has(.listing-card__link:hover), .listing-card:has(.listing-card__link:focus-visible) { border-color: var(--border-strong); box-shadow: 0 12px 30px rgba(36,62,53,.08); transform: translateY(-3px); }
.listing-card__body { padding: 1.5rem; }
.listing-card__price { font-size: 1.75rem; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.listing-card__score { padding: .25rem .5rem; background: var(--accent); border-radius: 4px; color: var(--text); font-size: .72rem; }
.listing-card h2 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.025em; }
.listing-card__completeness { background: transparent; color: var(--muted); padding: 0; font-weight: 500; font-size: .7rem; }
.listing-card__location { font-size: .85rem; }
.listing-card__facts { gap: 0; border-top: 1px solid var(--border); }
.listing-card__facts div { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: .7rem 0; }
.listing-card__facts dt { text-transform: none; letter-spacing: 0; font-size: .72rem; font-weight: 500; }
.listing-card__facts dd { font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.listing-card__url { font-size: .7rem; min-height: 0; }
.listing-tracking { background: #f2f3eb; padding: 1rem 1.5rem; font-size: .85rem; }
.listing-tracking__quick-actions button { border-radius: 4px; font-size: .75rem; }
.listing-tracking__quick-actions button:hover { background: var(--accent); }
.tracking-filter { border-radius: 5px; font-size: .85rem; }
.tracking-filter--active { background: var(--text); color: var(--surface); }
.run-card, .source-controls, .search-form, .search-form-danger, .search-form-aside, .notification-settings__panel, .notification-settings__aside, .feed-empty-state { border-radius: 8px; box-shadow: none; background: var(--surface); }
.search-form-aside, .notification-settings__aside { background: var(--accent); }
.run-card__facts div, .source-run, .source-control-card, .search-form__zones, .notification-settings__disclosure { border-radius: 5px; }
.feed-empty-state { padding: 3rem; border: 1px dashed var(--border-strong); }
.feed-empty-state h2 { font-family: var(--timbre-font); font-weight: 650; font-size: 1.8rem; }
.auth-body { padding: 3rem; background: var(--page-bg); }
.auth-shell { display: grid; grid-template-columns: 1.1fr 1fr; max-width: 1080px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 80px rgba(36,62,53,.06); }
.auth-story { display: flex; flex-direction: column; padding: 3rem; background: #e6ebdf; position: relative; overflow: hidden; }
.auth-story__label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.auth-story h2 { font-size: clamp(2.6rem, 4vw, 3.7rem); max-width: 9ch; margin: 3rem 0 1.5rem; }
.auth-story > p { max-width: 32ch; font-size: .95rem; line-height: 1.75; color: var(--muted); margin: 0; }
.auth-story__architecture { margin: auto -1rem 1.5rem; padding-top: 2rem; color: #72836b; }
.auth-story__architecture svg { display: block; width: 100%; }
.auth-story__footnote { font-size: .7rem; color: var(--muted); }
.auth-card { padding: 3rem; border: 0; border-radius: 0; box-shadow: none; background: var(--surface); backdrop-filter: none; }
.auth-card__topline { margin-bottom: 3rem; }
.auth-brand { font-size: .65rem; font-weight: 600; letter-spacing: .08em; }
.auth-title { font-size: 2.8rem; }
.auth-copy { font-size: .9rem; line-height: 1.7; }
.auth-field label { font-weight: 600; font-size: .8rem; }
.auth-field input { min-height: 3rem; }
.auth-submit { min-height: 3rem; }
.tour-invitation { font-size: .8rem; margin-top: 2rem; }
.tour-invitation .tour-button { background: transparent; color: var(--text); border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.tour-shell { padding-top: 3.5rem; }
.tour-intro { max-width: 850px; margin-bottom: 3rem; }
.tour-intro h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); margin: 1.25rem 0; }
.tour-sample-label { border: 0; border-radius: 3px; background: var(--accent); font-size: .7rem; letter-spacing: .06em; }
.tour-guide { border-left: 0; border-radius: 6px; background: var(--accent); }
.tour-guide nav a { border-radius: 4px; font-size: .85rem; }
.tour-panel { border-radius: 8px; padding: 2rem; background: var(--surface); }
.tour-panel h2 { font-family: var(--timbre-font); font-weight: 650; letter-spacing: -.025em; font-size: 2rem; }
.tour-listing { border-radius: 5px; background: var(--page-bg); border-color: var(--border); }
.tour-button--secondary { background: transparent; color: var(--text); }
.tour-price { font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .feed-layout { grid-template-columns: 1fr; gap: 2rem; }
  .search-sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 1.5rem; }
  .search-sidebar__nav { display: flex; flex-wrap: wrap; }
  .search-sidebar__item { flex: 1 1 12rem; }
  .app-nav { gap: 1rem; }
  .app-user__email { display: none; }
}
@media (max-width: 720px) {
  .app-header { padding: .6rem 1rem; position: static; }
  .app-nav { min-height: 0; padding: 0; gap: .8rem; }
  .app-user { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .25rem .75rem; }
  .app-nav__link { min-height: 2.75rem; font-size: .75rem; }
  .app-sign-out { width: auto; margin-left: auto; }
  .app-sign-out__button { width: auto; }
  .feed-layout { padding: 1.5rem 1rem; }
  .search-sidebar__nav { flex-wrap: nowrap; margin-inline: 0; padding-inline: 0; }
  .search-sidebar__item { flex: 0 0 14rem; }
  .feed-header h1, .runs-header h1, .search-form-header h1, .notification-settings h1 { font-size: 2.5rem; }
  .listings-grid { grid-template-columns: 1fr; }
  .listing-card__summary { flex-direction: row; align-items: baseline; }
  .feed-controls { padding: 1rem; }
  .auth-body { padding: 1rem; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { padding: 1.75rem; }
  .auth-story h2 { font-size: 2.7rem; max-width: 15ch; margin: 1.5rem 0 1rem; }
  .auth-story__architecture, .auth-story__footnote { display: none; }
  .auth-story > p { max-width: 40ch; font-size: .85rem; }
  .auth-card { padding: 1.75rem; }
  .auth-card__topline { margin-bottom: 1.5rem; }
  .tour-shell { padding-top: 2rem; }
  .tour-panel { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.auth-field input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(84,119,68,.14); outline: 2px solid var(--focus); outline-offset: 2px; }
.listing-card__link:focus-visible { outline-color: var(--focus); }


/* Phone experience: compact header, thumb navigation, and progressive filters. */
.mobile-navigation, .app-account-menu__toggle, .feed-filter-disclosure > summary { display: none; }
.app-account-menu { min-width: 0; }
.feed-filter-disclosure { margin-bottom: 2rem; }
.feed-filter-disclosure .feed-controls { margin-bottom: 0; }
@media (max-width: 720px) {
  .app-body:not(.tour-body) { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .app-header { padding: .7rem max(1rem, env(safe-area-inset-left)); border-bottom: 1px solid var(--border); }
  .app-nav { flex-direction: row; align-items: center; position: relative; }
  .app-nav__brand { gap: .55rem; font-size: .85rem; }
  .app-nav__mark { width: 2.15rem; height: 2.15rem; }
  .app-account-menu__toggle { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .4rem .75rem; border: 1px solid var(--border); border-radius: 6px; font-size: .75rem; font-weight: 600; cursor: pointer; list-style: none; }
  .app-account-menu__toggle::-webkit-details-marker { display: none; }
  .app-account-menu__toggle span { font-size: 1rem; }
  .app-account-menu[open] .app-account-menu__toggle { background: var(--accent); }
  .app-account-menu .app-user { position: absolute; z-index: 20; top: calc(100% + .75rem); right: 0; width: min(21rem, calc(100vw - 2rem)); display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 16px 40px rgba(36,62,53,.14); }
  .app-account-menu .app-nav__link { justify-content: flex-start; padding: .65rem; border-radius: 5px; font-size: .85rem; }
  .app-account-menu .app-nav__link:hover { background: var(--accent); box-shadow: none; }
  .app-account-menu .app-user__email { display: block; grid-column: 1 / -1; grid-row: auto; max-width: 100%; padding: .65rem; text-align: left; border-top: 1px solid var(--border); }
  .app-account-menu .app-language { justify-content: flex-start; }
  .app-account-menu .app-sign-out { margin: 0; }
  .app-account-menu .app-sign-out__button { width: 100%; }
  .mobile-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; padding: .45rem max(.75rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)); background: rgba(255,254,250,.97); border-top: 1px solid var(--border); backdrop-filter: blur(16px); }
  .mobile-navigation a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 3.25rem; color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none; border-radius: 6px; }
  .mobile-navigation a[aria-current="page"] { background: var(--accent); color: var(--text); }
  .mobile-navigation svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .feed-layout { gap: 1.5rem; padding-top: 1.5rem; }
  .search-sidebar { padding-bottom: 1rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem; }
  .search-sidebar__eyebrow, .search-sidebar__copy { display: none; }
  .search-sidebar h2 { font-size: .85rem; }
  .search-sidebar__action { margin: 0; padding: .65rem .85rem; min-height: 2.75rem; font-size: .8rem; }
  .search-sidebar__nav { grid-column: 1 / -1; width: 100%; gap: .6rem; padding-bottom: .35rem; scrollbar-width: none; }
  .search-sidebar__nav::-webkit-scrollbar { display: none; }
  .search-sidebar__item { flex-basis: 12.5rem; }
  .search-link { padding: .75rem 2.6rem .75rem .8rem; border: 1px solid var(--border); background: var(--surface); }
  .search-link__meta { font-size: .75rem; }
  .search-link__count { margin-top: .4rem; }
  .search-sidebar__edit { width: 2.75rem; height: 2.75rem; }
  .feed-header { position: relative; gap: .65rem; padding-bottom: 1.25rem; margin-bottom: 1rem; }
  .feed-header h1, .runs-header h1, .search-form-header h1, .notification-settings h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .feed-header__eyebrow { margin-bottom: .5rem; }
  .feed-header__count { padding: .35rem .65rem; font-size: .75rem; }
  .feed-header__context { font-size: .85rem; }
  .feed-header__refresh-cue { max-width: 35ch; line-height: 1.6; }
  .feed-filter-disclosure { margin-bottom: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: clip; }
  .feed-filter-disclosure > summary { display: flex; align-items: center; gap: .6rem; min-height: 3.5rem; padding: .8rem 1rem; cursor: pointer; list-style: none; font-size: .85rem; font-weight: 600; }
  .feed-filter-disclosure > summary::-webkit-details-marker { display: none; }
  .feed-filter-disclosure__hint { margin-left: auto; color: var(--muted); font-size: .7rem; font-weight: 400; }
  .feed-filter-disclosure__chevron { width: .5rem; height: .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -.2rem .1rem 0 .3rem; }
  .feed-filter-disclosure[open] .feed-filter-disclosure__chevron { transform: rotate(225deg); margin-top: .25rem; }
  .feed-filter-disclosure .feed-controls { border-radius: 0; border-top: 1px solid var(--border); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
  .feed-price-filter, .feed-range-filter, .feed-controls__actions { grid-column: 1 / -1; }
  .feed-price-filter__range, .feed-range-filter__inputs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .4rem; }
  .feed-price-filter__range span, .feed-range-filter__inputs > span { display: block; }
  .feed-range-filter__inputs--expenses { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .feed-controls__actions { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .feed-controls__clear { display: grid; place-items: center; padding-inline: .5rem; }
  .feed-controls :is(select, input[type="number"]), .search-form :is(select, input[type="text"], input[type="number"]), .auth-field input, .notification-settings__field input, .tour-status-label select, .listing-tracking__date input { font-size: 1rem; min-height: 3rem; }
  .feed-controls label { line-height: 1.5; }
  .feed-price-filter__expenses { white-space: normal; }
  .feed-controls input[type="checkbox"], .search-form input[type="checkbox"] { flex-shrink: 0; width: 1.15rem; height: 1.15rem; }
  .listing-card { border-radius: 10px; }
  .listing-card__body { padding: 1.25rem; }
  .listing-card__summary { flex-wrap: wrap; gap: .5rem; }
  .listing-card__price { font-size: 1.9rem; margin-bottom: .5rem; }
  .listing-card h2 { font-size: 1.2rem; line-height: 1.4; }
  .listing-card__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; margin-bottom: .75rem; }
  .listing-card__facts dd { overflow-wrap: anywhere; }
  .listing-card__url { -webkit-line-clamp: 1; }
  .listing-tracking { padding: 1rem 1.25rem; gap: .75rem; }
  .listing-tracking__favorite, .listing-tracking__history summary { min-height: 2.75rem; align-content: center; }
  .listing-tracking__quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .listing-tracking__quick-actions button { min-height: 2.75rem; padding: .65rem .5rem; font-size: .8rem; text-wrap: balance; }
  .listing-tracking .feed-controls__submit { justify-self: stretch; min-height: 2.75rem; font-size: .9rem; }
  .tracking-page { padding: 1.5rem 1rem; }
  .tracking-filters { flex-wrap: nowrap; overflow-x: auto; gap: .5rem; padding-bottom: .35rem; scrollbar-width: thin; }
  .tracking-filter { flex: 0 0 auto; min-height: 2.75rem; padding: .65rem .85rem; }
  .feed-pagination { flex-wrap: wrap; font-size: .8rem; gap: .5rem; }
  .feed-pagination a { min-height: 2.75rem; display: grid; place-items: center; }
  .feed-empty-state { padding: 2rem 1.25rem; }
  .feed-empty-state h2 { font-size: 1.65rem; }
  .search-form-page, .runs-page { padding-inline: 1rem; margin-top: 1.5rem; }
  .search-form, .search-form-danger, .notification-settings__panel, .notification-settings__aside { padding: 1.25rem; }
  .search-form__zones { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .75rem; }
  .search-form__zones label { min-height: 2.75rem; font-size: .85rem; }
  .search-form__actions, .notification-settings__actions { gap: .75rem; }
  .search-form__submit, .search-form__cancel, .notification-settings__submit, .notification-settings__cancel { display: grid; place-items: center; min-height: 3rem; }
  .search-form-aside { padding: 1.25rem; }
  .notification-settings { padding: 1.5rem 1rem; gap: 1rem; }
  .notification-settings__resources { gap: .75rem; }
  .notification-settings__resources a { overflow-wrap: anywhere; }
  .auth-body { display: block; padding: max(1rem, env(safe-area-inset-top)) 1rem 2rem; }
  .auth-shell { max-width: 30rem; margin-inline: auto; border-radius: 12px; }
  .auth-story { padding: 1.5rem; }
  .auth-story__label { font-size: .6rem; }
  .auth-story h2 { font-size: clamp(2rem, 9vw, 2.7rem); margin: 1rem 0 .75rem; }
  .auth-story > p { font-size: .8rem; line-height: 1.6; }
  .auth-card { padding: 1.5rem; }
  .auth-title { font-size: 2.2rem; }
  .auth-card__topline { margin-bottom: 1rem; }
  .auth-submit { min-height: 3rem; }
  .auth-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .app-language__button { min-width: 2.75rem; min-height: 2.75rem; }
  .tour-header-actions { gap: .4rem; }
  .tour-body .app-nav { flex-wrap: wrap; }
  .tour-shell { padding: 1.5rem 1rem 3rem; }
  .tour-intro { margin-bottom: 1.5rem; }
  .tour-intro h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
  .tour-intro > p:last-child { font-size: .95rem; line-height: 1.7; }
  .tour-guide { padding: 1rem; }
  .tour-guide nav { display: flex; overflow-x: auto; gap: .5rem; scroll-snap-type: x proximity; }
  .tour-guide nav a { flex: 0 0 11rem; min-height: 2.75rem; scroll-snap-align: start; border: 1px solid var(--border-strong); }
  .tour-guide h2 { margin-bottom: .75rem; }
  .tour-guide > p { margin-bottom: .5rem; }
  .tour-navigation { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; }
  .tour-button { min-height: 2.75rem; text-align: center; }
  .tour-panel { scroll-margin-top: 1rem; }
  .tour-panel h2 { font-size: 1.7rem; }
  .tour-facts { gap: .75rem 1.25rem; }
}
@media (max-width: 360px) {
  .feed-filter-disclosure__hint { display: none; }
  .feed-filter-disclosure__chevron { margin-left: auto; }
  .search-form__zones { grid-template-columns: 1fr; }
  .auth-card, .auth-story { padding: 1.25rem; }
}

@media (max-width: 720px) {
  .auth-field input:is([type="email"], [type="password"], [type="text"]) { font-size: 1rem; }
  .search-form__price-filter { grid-template-columns: 1fr; }
  .search-form__bedrooms { max-width: none; }
  .feed-controls__checkbox { min-height: 3rem; }
  .tour-invitation .tour-button { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .tour-header-actions .app-nav__link { min-height: 2.75rem; }
}


/* Feed refinements: primary choices first, optional requirements on demand. */
.feed-main {
  --filter-surface: #fffefa;
  --filter-input: #f6f7f2;
  --filter-ink: var(--timbre-texto);
  --filter-muted: var(--timbre-secundario);
  --filter-rule: #d7ddd2;
}
.feed-header h1 { font-size: clamp(2.1rem, 3.1vw, 3rem); }
.feed-header { align-items: center; padding-bottom: 1.5rem; }
.feed-header__count { background: transparent; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-weight: 500; }
.feed-controls {
  padding: 1.5rem;
  gap: 1.25rem 1rem;
  background: var(--filter-surface);
  border: 1px solid var(--filter-rule);
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(36,62,53,.025);
  font-family: var(--timbre-font);
}
.feed-controls__field { gap: .5rem; }
.feed-controls__field label, .feed-controls legend { color: var(--filter-muted); font-size: .8125rem; font-weight: 500; }
.feed-controls :is(select, input[type="number"]) {
  min-height: 2.875rem;
  border: 1px solid var(--filter-rule);
  border-radius: 8px;
  padding: .65rem .8rem;
  background: var(--filter-input);
  color: var(--filter-ink);
  font-size: .9375rem;
  font-weight: 400;
}
.feed-controls :is(select, input[type="number"]):hover { border-color: var(--border-strong); }
.feed-controls :is(select, input[type="number"]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.feed-controls input::placeholder { color: var(--filter-muted); opacity: 1; }
.feed-controls .feed-price-filter {
  grid-template-columns: auto minmax(12rem, 1fr) minmax(10rem, auto);
  gap: 1rem;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid var(--filter-rule);
  border-radius: 0;
}
.feed-controls .feed-price-filter legend { padding: 0 .65rem 0 0; }
.feed-controls .feed-price-filter__currency { padding: .25rem; gap: .2rem; background: var(--filter-input); border: 1px solid var(--filter-rule); border-radius: 9px; }
.feed-controls .feed-price-filter__currency label { min-height: 2.3rem; min-width: 3.2rem; display: grid; place-items: center; padding: .4rem .65rem; border: 0; border-radius: 6px; font-size: .875rem; font-weight: 500; color: var(--filter-muted); background: transparent; }
.feed-controls .feed-price-filter__currency input:checked + label { background: var(--filter-ink); color: var(--filter-surface); box-shadow: 0 1px 3px rgba(36,62,53,.12); }
.feed-controls .feed-price-filter__currency input:focus-visible + label { outline-color: var(--focus); }
.feed-controls .feed-price-filter__expenses { font-size: .8125rem; font-weight: 400; color: var(--filter-ink); white-space: normal; min-height: 2.875rem; }
.feed-controls input[type="checkbox"] { width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--filter-ink); }
.feed-advanced-filters { grid-column: 1 / -1; border-top: 1px solid var(--filter-rule); }
.feed-advanced-filters > summary { display: flex; justify-content: space-between; align-items: center; min-height: 2.875rem; padding-top: .5rem; cursor: pointer; list-style: none; color: var(--filter-ink); font-size: .875rem; font-weight: 500; }
.feed-advanced-filters > summary::-webkit-details-marker { display: none; }
.feed-advanced-filters > summary span { font-size: 1.2rem; font-weight: 400; }
.feed-advanced-filters[open] > summary span { transform: rotate(45deg); }
.feed-advanced-filters__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 1rem 1.5rem; padding-top: .75rem; }
.feed-advanced-filters__grid .feed-range-filter { padding: 0; border: 0; grid-column: auto; gap: .5rem; }
.feed-advanced-filters__grid legend { margin-bottom: .5rem; padding: 0; }
.feed-advanced-filters__grid .feed-range-filter label { min-height: 2.75rem; font-size: .8125rem; font-weight: 400; color: var(--filter-muted); }
.feed-advanced-filters__grid .feed-controls__checkbox { font-size: .875rem; font-weight: 400; min-height: 2.875rem; color: var(--filter-ink); }
.feed-controls__actions { grid-column: 1 / -1; justify-content: flex-end; gap: 1rem; padding-top: .25rem; }
.feed-controls .feed-controls__submit { min-height: 2.875rem; padding: .65rem 1.35rem; border-radius: 8px; font-size: .875rem; font-weight: 600; }
.feed-controls__clear { display: inline-flex; align-items: center; min-height: 2.875rem; padding: .5rem .25rem; font-size: .875rem; text-underline-offset: .2rem; }
@media (max-width: 1100px) {
  .feed-controls .feed-price-filter { grid-template-columns: auto minmax(0, 1fr); }
  .feed-controls .feed-price-filter__expenses { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .feed-filter-disclosure { border-radius: 12px; border-color: var(--filter-rule); background: var(--filter-surface); }
  .feed-filter-disclosure > summary { min-height: 3.5rem; font-size: .9375rem; }
  .feed-filter-disclosure .feed-controls { border: 0; border-top: 1px solid var(--filter-rule); border-radius: 0; background: var(--filter-surface); padding: 1.25rem 1rem; box-shadow: none; }
  .feed-controls .feed-price-filter { grid-template-columns: 1fr; gap: .75rem; }
  .feed-controls .feed-price-filter__currency { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed-controls .feed-price-filter__currency label { min-height: 2.75rem; }
  .feed-controls :is(select, input[type="number"]) { font-size: 1rem; min-height: 3rem; }
  .feed-controls__field label, .feed-controls legend { font-size: .875rem; }
  .feed-controls .feed-price-filter__expenses, .feed-advanced-filters__grid .feed-range-filter label { font-size: .875rem; }
  .feed-advanced-filters__grid { grid-template-columns: 1fr; gap: 1rem; }
  .feed-advanced-filters > summary { min-height: 3rem; }
  .feed-controls__actions { display: flex; flex-direction: row-reverse; justify-content: space-between; }
  .feed-controls .feed-controls__submit { flex: 1; min-height: 3rem; }
  .feed-controls__clear { min-width: 3.5rem; }
  .feed-header h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
}
@media (max-width: 360px) {
  .feed-filter-disclosure .feed-controls { grid-template-columns: 1fr; }
}
@media (prefers-contrast: more) {
  .feed-main { --filter-rule: #626d63; }
}
@media (prefers-reduced-transparency: reduce) {
  .app-header { background: var(--page-bg); backdrop-filter: none; }
  .mobile-navigation { background: var(--surface); backdrop-filter: none; }
}


/* Keep the inventory easy to scan without squeezing cards on smaller screens. */
@media (min-width: 1280px) {
  .listings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .listing-card__body { padding: 1.25rem; }
  .listing-card__price { font-size: 1.5rem; }
  .listing-card h2 { font-size: 1.05rem; }
  .listing-card__summary { flex-wrap: wrap; gap: .25rem .5rem; }
  .listing-card__facts { margin: .75rem 0; }
  .listing-card__facts div { padding: .55rem 0; }
  .listing-card__facts dd { font-size: .85rem; }
  .listing-tracking { padding: .85rem 1.25rem; gap: .6rem; }
  .listing-tracking__quick-actions { gap: .4rem; }
}

/* Approved Timbre identity: the custom door is already the t in the wordmark. */
.timbre-logo { display: block; width: 8.6rem; height: auto; }
.app-nav__brand { min-height: 2.75rem; }
.app-primary-navigation { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.app-primary-navigation .app-nav__link { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 1100px) {
  .app-primary-navigation { gap: .8rem; }
  .app-user__email { display: none; }
}
@media (max-width: 720px) {
  .app-primary-navigation { display: none; }
  .mobile-navigation { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Alerts: enable the current device first; secondary setup and help unfold. */
.notification-settings--focused { grid-template-columns: minmax(0, 1fr); max-width: 54rem; gap: 1rem; }
.notification-settings--focused .notification-settings__intro { margin-bottom: 1.5rem; }
.notification-settings--focused .notification-settings__channels { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.notification-settings--focused .notification-settings__channel { background: var(--page-bg); border-color: var(--border); border-radius: 8px; }
.notification-settings--focused .notification-settings__status { margin: 0; font-size: .9rem; }
.notification-settings--focused .notification-settings__web-push > .notification-settings__disclosure { margin-top: 1rem; padding: 0; border: 0; background: transparent; }
.notification-settings__web-push [role="status"]:empty { display: none; }
.notification-settings__pushover > summary { cursor: pointer; min-height: 2.75rem; align-content: center; font-weight: 600; }
.notification-settings__summary-state { display: block; margin-top: .35rem; color: var(--muted); font-size: .85rem; font-weight: 450; }
.notification-settings__pushover-content { padding-top: 1.25rem; margin-top: 1rem; border-top: 1px solid var(--border); }
.notification-settings__help { margin: 0; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.notification-settings__help-content { padding-top: 1.25rem; color: var(--muted); }
.notification-settings__help-content h2 { color: var(--text); font-size: 1.25rem; }
.notification-settings--focused .notification-settings__searches h2 { font-size: 1.25rem; }
.auth-brand { letter-spacing: normal; text-transform: none; }
.auth-brand .timbre-logo { width: 8.5rem; }
input, select, textarea { font-family: var(--timbre-font); }
.listing-card__price, .listing-card__facts dd { font-variant-numeric: tabular-nums; }
.auth-submit, .search-sidebar__action, .feed-controls .feed-controls__submit,
.search-form__submit, .notification-settings__submit {
  background: var(--timbre-acento); border-color: transparent; color: var(--timbre-texto);
}
.auth-submit:hover, .search-sidebar__action:hover, .feed-controls .feed-controls__submit:hover,
.search-form__submit:hover, .notification-settings__submit:hover {
  background: #e8bb36; color: var(--timbre-texto);
}
.auth-story {
  --muted: var(--timbre-marfil);
  background: var(--timbre-verde); color: var(--timbre-marfil);
}
.auth-story__label { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.auth-story h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); max-width: 14ch; margin: 2.5rem 0 1.25rem; }
.auth-story > p { font-size: 1rem; max-width: 35ch; }
.auth-story__footnote { font-size: .8rem; }
.timbre-motion { margin: auto 0 1.5rem; padding-top: 2rem; min-width: 0; }
.timbre-motion__art { width: 100%; aspect-ratio: 550 / 160; }
.timbre-motion__art > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.timbre-motion [data-part] { transform-box: view-box; transform-origin: 0 0; }
.timbre-motion__replay {
  min-height: 2.75rem; margin-top: .75rem; padding: .5rem 0;
  border: 0; background: transparent; color: inherit; font-size: .8rem;
  cursor: pointer; text-decoration: underline; text-underline-offset: .25em;
}
.timbre-motion__replay:focus-visible { outline-color: var(--timbre-marfil); }
/* First-search onboarding. The task stays primary; the summary follows along. */
.onboarding-welcome.feed-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); max-width: 1120px; margin: 3rem auto; padding: 2rem; }
.onboarding-welcome__intro h1 { max-width: 14ch; margin: 1rem 0 1.5rem; font-size: clamp(2.7rem, 4.7vw, 4rem); line-height: 1.1; font-weight: 650; letter-spacing: -.05em; }
.onboarding-kicker { margin: 0; color: var(--muted); font-size: .9rem; }
.onboarding-lead { max-width: 41ch; margin: 0 0 2rem; color: var(--muted); font-size: 1.05rem; line-height: 1.75; text-wrap: pretty; }
.onboarding-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .85rem 1.3rem; border: 1px solid transparent; border-radius: 8px; background: var(--timbre-acento); color: var(--timbre-texto); font: 600 .95rem/1.4 var(--timbre-font); text-align: center; text-decoration: none; cursor: pointer; transition: background-color 160ms, transform 160ms; }
.onboarding-primary:hover { background: #e8bb36; }
.onboarding-primary:active { transform: translateY(1px); }
.onboarding-text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); font: 500 .9rem/1.5 var(--timbre-font); text-decoration: underline; text-underline-offset: .25em; }
.onboarding-note { color: var(--muted); font-size: .82rem; line-height: 1.6; }
.onboarding-welcome__intro > .onboarding-note { margin: .8rem 0 1.3rem; }
.onboarding-welcome__story { padding: 2.25rem; border-radius: 2rem 2rem .5rem .5rem; background: var(--accent); }
.onboarding-welcome__door { display: block; width: 5.5rem; height: 5.5rem; object-fit: contain; margin-bottom: 1.75rem; }
.onboarding-welcome__story h2 { margin: 0 0 1.5rem; font-size: 1.4rem; font-weight: 650; letter-spacing: -.03em; }
.onboarding-how { margin: 0; padding-left: 1.3rem; }
.onboarding-how li { padding: 0 0 1.25rem .5rem; }
.onboarding-how li::marker { color: var(--muted); font-size: .85rem; }
.onboarding-how strong { font-weight: 650; }
.onboarding-how p { margin: .35rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.onboarding-welcome__footnote { margin: .5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border-strong); font-size: .8rem; color: var(--muted); }
.onboarding-page { max-width: 1080px; margin: 2rem auto 4rem; padding: 0 2rem; }
.onboarding-header { margin-bottom: 1.75rem; }
.onboarding-header h1 { margin: .75rem 0 .5rem; font-size: clamp(2rem, 3.3vw, 2.8rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.2; }
.onboarding-header > p { margin: 0; color: var(--muted); }
.onboarding-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2rem; align-items: start; }
.onboarding-form.search-form { padding: 2rem; min-width: 0; border-radius: 12px; }
.onboarding-progress { display: flex; justify-content: space-between; gap: .75rem; list-style: none; margin: 0 0 2rem; padding: 0 0 1.5rem; border-bottom: 1px solid var(--border); }
.onboarding-progress li { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); }
.onboarding-progress span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1px solid var(--border-strong); border-radius: 50%; font-variant-numeric: tabular-nums; }
.onboarding-progress [aria-current="step"] { color: var(--text); font-weight: 700; }
.onboarding-progress [aria-current="step"] span { background: var(--timbre-verde); border-color: var(--timbre-verde); color: var(--timbre-marfil); }
.onboarding-progress .is-complete span { background: var(--accent); }
.onboarding-form [data-onboarding-panel] + [data-onboarding-panel] { margin-top: 2rem; }
.onboarding-form[data-initialized] [data-onboarding-panel] { margin-top: 0; }
.onboarding-form h2 { margin: 0 0 .6rem; font-size: 1.5rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.3; }
.onboarding-description { margin: 0 0 1.5rem; max-width: 45ch; color: var(--muted); font-size: .95rem; }
.onboarding-zone-filter { display: grid; gap: .5rem; margin-bottom: 1rem; }
.onboarding-zone-filter label { font-size: .85rem; font-weight: 600; }
.onboarding-zone-filter input { width: 100%; min-height: 3rem; padding: .7rem .85rem; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
.onboarding-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; max-height: 16rem; overflow-y: auto; margin: 0; padding: .2rem; border: 0; overscroll-behavior: contain; }
.onboarding-zones label { display: flex; align-items: center; gap: .65rem; min-height: 2.9rem; padding: .5rem .65rem; border: 1px solid var(--border); border-radius: 7px; font-size: .85rem; cursor: pointer; }
.onboarding-zones label:has(:checked) { border-color: var(--timbre-verde); background: var(--accent); }
.onboarding-form input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0; flex-shrink: 0; accent-color: var(--timbre-verde); }
.onboarding-form .search-form__field { margin: 1rem 0; }
.onboarding-form .search-form__field :is(input, select) { width: 100%; min-width: 0; min-height: 3rem; font-size: 1rem; border-color: var(--border-strong); }
.onboarding-budget { margin: 0; padding: 0; border: 0; }
.onboarding-budget legend { padding: 0; font-weight: 600; font-size: .9rem; }
.onboarding-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.onboarding-checkbox { display: flex; align-items: center; gap: .75rem; min-height: 3rem; cursor: pointer; font-size: .9rem; }
.onboarding-extra { margin-top: 1.5rem; border-block: 1px solid var(--border); }
.onboarding-extra summary { padding-block: .85rem; cursor: pointer; font-size: .9rem; font-weight: 600; }
.onboarding-alert-choice { align-items: flex-start; padding: 1.2rem; margin: 1.5rem 0 .75rem; background: var(--accent); border-radius: 8px; }
.onboarding-alert-choice input { margin-top: .2rem !important; }
.onboarding-alert-choice strong { display: block; font-weight: 600; }
.onboarding-alert-choice small { display: block; margin-top: .4rem; color: var(--muted); font-size: .82rem; }
.onboarding-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.onboarding-back { margin-right: auto; padding: .5rem 0; border: 0; background: none; cursor: pointer; }
.onboarding-summary { position: sticky; top: 2rem; padding: 1.75rem; border-radius: 12px; background: var(--accent); }
.onboarding-summary img { object-fit: contain; }
.onboarding-summary h2 { font-size: 1.2rem; font-weight: 650; line-height: 1.4; margin: 1.25rem 0; letter-spacing: -.025em; }
.onboarding-summary dl { margin: 0; }
.onboarding-summary dl > div { padding: .8rem 0; border-bottom: 1px solid var(--border-strong); }
.onboarding-summary dt { margin-bottom: .3rem; color: var(--muted); font-size: .75rem; }
.onboarding-summary dd { margin: 0; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.onboarding-summary > p { margin: 1.25rem 0 0; font-size: .8rem; color: var(--muted); }
.onboarding-complete { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; padding: 1.5rem; background: var(--accent); border-radius: 12px; }
.onboarding-complete__check { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--timbre-verde); color: var(--timbre-marfil); }
.onboarding-complete h2 { margin: 0; font-size: 1.25rem; font-weight: 650; }
.onboarding-complete p { margin: .5rem 0 1rem; max-width: 60ch; color: var(--muted); font-size: .9rem; }
.onboarding-complete .onboarding-text-link { margin-left: 1rem; }
.onboarding-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.onboarding-page [hidden], .onboarding-complete [hidden] { display: none !important; }
.onboarding-page :is(button, a, input, select, summary):focus-visible, .onboarding-welcome a:focus-visible, .onboarding-complete a:focus-visible { outline: 2px solid var(--timbre-verde); outline-offset: 3px; }
.onboarding-page h2:focus { outline: none; }
@media (max-width: 800px) {
  .onboarding-welcome.feed-layout { margin-block: 1rem; gap: 2rem; padding: 1.5rem; }
  .onboarding-welcome__story { padding: 1.5rem; }
  .onboarding-layout { grid-template-columns: minmax(0, 1fr) 15rem; gap: 1rem; }
  .onboarding-page { padding: 0 1rem; }
  .onboarding-form.search-form { padding: 1.5rem; }
  .onboarding-summary { padding: 1.25rem; }
}
@media (max-width: 720px) {
  .onboarding-welcome.feed-layout { grid-template-columns: 1fr; margin: .5rem auto 1.5rem; padding: 1.25rem 1rem; }
  .onboarding-welcome__intro h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); max-width: 15ch; }
  .onboarding-welcome__intro > .onboarding-primary { width: 100%; box-sizing: border-box; }
  .onboarding-welcome__story { border-radius: 1.5rem 1.5rem .5rem .5rem; }
  .onboarding-welcome__door { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; }
  .onboarding-layout { grid-template-columns: minmax(0, 1fr); }
  .onboarding-page { margin-top: 1rem; }
  .onboarding-header h1 { font-size: 2rem; }
  .onboarding-header > p { font-size: .9rem; }
  .onboarding-form.search-form { padding: 1.25rem; }
  .onboarding-progress { gap: .4rem; }
  .onboarding-progress li { gap: .3rem; font-size: .72rem; }
  .onboarding-progress span { width: 1.45rem; height: 1.45rem; }
  .onboarding-fields { grid-template-columns: 1fr; }
  .onboarding-summary { position: static; }
  .onboarding-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .onboarding-summary dl > div { min-width: 0; }
  .onboarding-summary img { display: none; }
  .onboarding-summary h2 { margin-top: 0; }
  .onboarding-complete { padding: 1.25rem; }
  .onboarding-complete .onboarding-text-link { margin: .5rem 0 0; }
}
@media (max-width: 360px) {
  .onboarding-zones { grid-template-columns: 1fr; }
  .onboarding-progress span { display: none; }
  .onboarding-progress [aria-current="step"] { text-decoration: underline; text-underline-offset: .35em; }
  .onboarding-actions { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .onboarding-primary { transition: none; }
}
@media (max-width: 720px) {
  .timbre-logo { width: 7.5rem; }
  .auth-story h2 { font-size: clamp(1.9rem, 7vw, 2.5rem); margin: 1rem 0 .75rem; max-width: 17ch; }
  .auth-story > p { font-size: .9rem; }
  .timbre-motion { width: min(100%, 15rem); padding-top: 1.25rem; margin: 0; }
  .timbre-motion__replay { margin-top: 0; }
}


/* Hallmark · pre-emit critique: P5 H4 E4 S5 R5 V4
 * Timbre tour · genre: playful · macrostructure: interactive brand stage → journey
 * Existing Patio tokens and Manrope; one deliberate entrance, functional chapters.
 */
html:has(.tour-body), .tour-body { overflow-x: clip; }
.tour-body [hidden] { display: none !important; }
.tour-entrance {
  --focus: var(--timbre-acento);
  min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 3vw, 3rem);
  background: var(--timbre-verde); color: var(--timbre-marfil);
}
.tour-entrance__top, .tour-entrance__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; font-size: .85rem; }
.tour-entrance__top .app-language { color: inherit; }
.tour-entrance__top .app-language__button { color: inherit; }
.tour-entrance__top .app-language__button[aria-pressed="true"] { background: var(--timbre-marfil); color: var(--timbre-verde); }
.tour-entrance__center { display: grid; place-content: center; justify-items: center; min-width: 0; padding: 5rem 0; }
.tour-entrance__motion { width: min(54rem, 90vw); margin: 0; padding: 0; }
.tour-entrance__bell { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; transform: scale(var(--tour-symbol-scale, 1)); transition: color 180ms ease, transform 900ms cubic-bezier(.22,.7,.2,1); }
.tour-entrance[data-opening] .tour-entrance__bell { transform: scale(1); }
.tour-entrance__bell:disabled { cursor: default; }
.tour-entrance__bell:not(:disabled):active { color: var(--timbre-acento); }
.tour-entrance__bell:focus-visible { outline-offset: .8rem; border-radius: 1rem; }
.tour-entrance__bell .timbre-motion__art { display: block; animation: tour-arrive 1100ms cubic-bezier(.16,1,.3,1) both; }
.tour-entrance__motion[data-scene="idle"] [data-part="composition"] { transform: translateX(199px); }
.tour-entrance__motion[data-scene="idle"] [data-part="tail"] { opacity: 0; }
.tour-entrance__motion[data-scene="idle"] [data-part="waves"] { opacity: 1; color: var(--timbre-acento); }
.tour-entrance__motion[data-scene="idle"] [data-part="waves"] circle { transform-box: fill-box; transform-origin: center; animation: tour-ring 2400ms ease-out 800ms infinite both; }
.tour-entrance__motion[data-scene="idle"] [data-part="waves"] circle + circle { animation-delay: 1150ms; }
.tour-entrance__hint { margin: 3rem 0 0; text-align: center; font-size: clamp(.9rem, 1.5vw, 1.05rem); }
.tour-entrance__bottom p { margin: 0; max-width: 26ch; }
.tour-entrance__bottom button { flex-shrink: 0; min-height: 2.75rem; padding: .5rem 0; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; white-space: nowrap; }
@media (hover: hover) {
  .tour-entrance__bell:not(:disabled):hover { color: var(--timbre-acento); }
  .tour-entrance__bottom button:hover { color: var(--timbre-acento); }
}
@keyframes tour-arrive { from { opacity: 0; transform: translateY(2rem) scale(.45); } to { opacity: 1; transform: none; } }
@keyframes tour-ring { 0% { opacity: 0; transform: scale(.7); } 18% { opacity: .8; } 75%, 100% { opacity: 0; transform: scale(1.7); } }

.tour-body .app-header { position: static; }
.tour-shell { max-width: 1280px; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) 2rem; }
.tour-intro { max-width: none; display: grid; grid-template-columns: 1.15fr 1fr; gap: .75rem 4rem; align-items: end; margin-bottom: 2.5rem; }
.tour-sample-label { grid-column: 1 / -1; justify-self: start; padding: 0; background: transparent; letter-spacing: 0; color: var(--muted); font-size: .75rem; }
.tour-intro h1 { margin: 0; max-width: 23ch; font-size: clamp(1.8rem, 3vw, 2.5rem); overflow-wrap: anywhere; min-width: 0; }
.tour-intro > p:last-child { max-width: 47ch; margin: 0; font-size: .9rem; line-height: 1.7; color: var(--muted); }
.tour-workbench { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.tour-guide { position: static; padding: 0; border: 0; background: transparent; }
.tour-guide h2 { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tour-guide nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.tour-guide nav a { display: flex; align-items: center; flex: 0 1 auto; gap: .6rem; padding: .9rem 0; border: 0; border-radius: 0; border-bottom: 2px solid var(--border); font-size: .78rem; font-weight: 500; white-space: nowrap; }
.tour-guide nav a[aria-current] { background: transparent; color: var(--text); border-color: var(--timbre-verde); font-weight: 700; }
.tour-step-number { display: grid; place-items: center; flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); font-size: .72rem; font-variant-numeric: tabular-nums; }
[aria-current="step"] .tour-step-number { background: var(--timbre-verde); color: var(--timbre-marfil); }
.tour-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem clamp(2rem, 6vw, 5rem); align-items: start; padding: 1rem 0; margin: 0; border: 0; background: transparent; border-radius: 0; scroll-margin-top: 2rem; }
.tour-panel-story { grid-column: 1; }
.tour-panel h2 { max-width: 12ch; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.05em; overflow-wrap: anywhere; min-width: 0; }
.tour-panel-copy { max-width: 39ch; margin-top: 1.5rem; font-size: 1rem; }
.tour-panel > :not(.tour-panel-story) { grid-column: 2; min-width: 0; }
.tour-panel > :nth-child(2) { grid-row: 1 / span 2; }
.tour-search-preview { padding: 1.75rem 2rem; border: 1px solid var(--border); border-radius: 1.5rem 1.5rem .5rem .5rem; background: var(--surface); }
.tour-search-preview h3 { margin: 0 0 1.5rem; font-size: 1.2rem; letter-spacing: -.025em; }
.tour-search-preview .tour-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tour-search-preview output { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.tour-search-preview input { min-height: 2rem; cursor: pointer; }
.tour-listing { background: var(--surface); border-color: var(--border); border-radius: 8px; padding: 1.5rem; }
.tour-listing .tour-price { font-size: 2rem; letter-spacing: -.04em; margin: .75rem 0; }
.tour-listing .tour-facts { margin: .75rem 0; }
.tour-listing-heading { gap: .5rem; }
.tour-listing-heading h3 { max-width: 25ch; }
.tour-alert-preview { padding: 2rem; background: var(--accent); border-radius: 1.5rem 1.5rem .5rem .5rem; }
.tour-alert-preview h3, .tour-health h3 { margin-top: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.tour-notification { border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); }
.tour-health ul { padding-left: 1.2rem; }
.tour-health details { background: var(--surface); }
.tour-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tour-footer__context { max-width: 51ch; font-size: .75rem; color: var(--muted); }
.tour-footer__context > p { margin: .25rem 0; }
.tour-progress { color: var(--text); font-weight: 600; }
.tour-navigation { flex-shrink: 0; margin: 0; }
.tour-body .tour-button, .tour-end-link { white-space: nowrap; }
.tour-body .tour-button { color: var(--timbre-marfil); }
.tour-body .tour-button--secondary { color: var(--text); }
.tour-body .tour-button[aria-pressed="true"] { color: var(--timbre-marfil); }
@media (hover: hover) { .tour-body .tour-button--secondary:hover { background: var(--accent); color: var(--text); } }
@media (max-width: 1100px) {
  .tour-guide nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; overflow: visible; }
  .tour-guide nav a { justify-content: center; padding: .6rem 0; min-width: 0; }
  .tour-guide nav a > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tour-step-number { flex-basis: 2rem; height: 2rem; font-size: .8rem; }
}
@media (max-width: 760px) {
  .tour-entrance { --tour-symbol-scale: 2; }
  .tour-body .app-nav__brand .timbre-logo { width: 6rem; }
  .tour-intro { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
  .tour-intro h1 { max-width: 24ch; }
  .tour-intro > p:last-child { max-width: 52ch; }
  .tour-workbench { gap: 1.75rem; }
  .tour-panel { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .tour-panel > :not(.tour-panel-story), .tour-panel > :nth-child(2) { grid-column: 1; grid-row: auto; }
  .tour-panel h2 { font-size: clamp(2.5rem, 8vw, 3.3rem); max-width: 16ch; }
  .tour-panel-copy { max-width: 52ch; margin: 1rem 0; font-size: .9rem; }
  .tour-search-preview, .tour-alert-preview { padding: 1.5rem; }
  .tour-facts { gap: 1rem; }
  .tour-footer { flex-direction: column-reverse; align-items: stretch; gap: 1.25rem; margin-top: 1.5rem; }
  .tour-navigation { justify-content: space-between; }
  .tour-footer__context { max-width: 58ch; }
  .tour-entrance__bottom { align-items: end; font-size: .75rem; }
  .tour-entrance__bottom p { max-width: 22ch; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-entrance__motion[data-scene="idle"] [data-part="waves"] circle { opacity: .6; }
}
