    :root {
      color-scheme: light;
      /* Map to unified design system from content.css */
      --bg: var(--myge-bg, #f6f8fb);
      --panel: var(--myge-surface, #ffffff);
      --panel-soft: var(--myge-surface-soft, #f8fafc);
      --ink: var(--myge-text, #0f172a);
      --muted: var(--myge-muted, #64748b);
      --line: var(--myge-border, #e2e8f0);
      --accent: var(--myge-orange, #e97832);
      --accent-hover: var(--myge-orange-hover, #d96524);
      --accent-dark: var(--myge-blue, #2563eb);
      --accent-soft: var(--myge-orange-soft, #fff7ed);
      --ok: var(--myge-green-soft, #ecfdf5);
      --warn: var(--myge-orange-soft, #fff7ed);
      --err: var(--myge-red-soft, #fff1f2);
      --shadow: var(--myge-shadow-md, 0 8px 24px rgba(15, 23, 42, 0.08));
      --shadow-soft: var(--myge-shadow-sm, 0 4px 12px rgba(15, 23, 42, 0.06));
      --radius: var(--myge-radius-xl, 20px);
}

.search-explainer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.search-explainer summary::-webkit-details-marker {
  display: none;
}

.search-explainer summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--myge-blue, #2563eb);
  border-radius: var(--myge-radius-full, 999px);
  color: var(--myge-blue, #2563eb);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: all var(--myge-transition-fast);
}

.search-explainer summary:hover::after {
  background: var(--myge-blue-soft, #eef2ff);
}

.search-explainer[open] summary::after {
  content: "-";
}

.search-explainer summary h2 {
  margin: 0;
}

.search-explainer:not([open]) {
  padding-bottom: 18px;
}

.search-explainer[open] p {
  margin-top: 10px;
}

.filter-summary-bar.favorites-mode {
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.26), transparent 38%),
    linear-gradient(180deg, #fff7ed, #ffedd5);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.18);
}

.filter-summary-bar.favorites-mode .filter-summary-actions {
  display: none;
}

.filter-summary-bar.favorites-mode .filter-summary-chips {
  display: block;
}

.filter-summary-bar.favorites-mode .favorite-mode-note {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7c2d12;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

.filter-visibility-actions {
  margin: 12px 0 16px;
}

.filter-visibility-btn {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--myge-blue, #2563eb);
  border-radius: var(--myge-radius-lg, 16px);
  color: var(--myge-blue, #2563eb);
  background: var(--myge-surface, #fff);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: var(--myge-shadow-sm);
  cursor: pointer;
  transition: all var(--myge-transition-fast);
}

.filter-visibility-btn:hover {
  background: var(--myge-blue-soft, #eef2ff);
  border-color: var(--myge-blue-hover, #1d4ed8);
  box-shadow: var(--myge-shadow-md);
}

.filter-visibility-btn:active {
  transform: scale(0.98);
}

.filter-visibility-btn.is-open {
  color: #fff;
  border-color: var(--myge-orange, #e97832);
  background: linear-gradient(180deg, var(--myge-orange, #e97832) 0%, var(--myge-orange-hover, #d96524) 100%);
  box-shadow: 0 8px 20px rgba(233, 120, 50, 0.3);
}

    /* Final cascade overrides for second pass */
    .page {
      padding: 24px 18px 56px;
    }

    body[data-page-kind="public"] .page {
      padding-left: 18px;
      padding-right: 18px;
    }

    .hero {
      border-radius: 28px;
      padding: 18px;
      background:
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(36, 52, 71, 0.04), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.96));
      box-shadow: 0 20px 50px rgba(36, 52, 71, 0.09);
    }

    .page-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      padding: 10px 12px 10px 16px;
      border: 0;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 12px 30px rgba(36, 52, 71, 0.08);
    }

    .toolbar-brand {
      font-size: 18px;
      letter-spacing: -0.05em;
    }

    .toolbar-brand-home {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
      border-radius: 16px;
      transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

    .toolbar-brand-home:hover,
    .toolbar-brand-home:focus-visible {
      background: rgba(249, 250, 251, 0.86);
      box-shadow: 0 10px 24px rgba(36, 52, 71, 0.08);
      transform: translateY(-1px);
    }

    .toolbar-brand-home-hint {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 6px 10px;
      border: 1px solid rgba(231, 225, 216, 0.92);
      border-radius: 999px;
      background: #fff;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .toolbar-actions {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 46px;
      gap: 8px;
      padding: 2px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(247, 244, 239, 0.96), rgba(240, 236, 230, 0.9));
    }

    .toolbar-icon-btn {
      width: 46px;
      height: 46px;
      min-width: 46px;
      min-height: 46px;
      border: 0;
      border-radius: 15px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--accent-dark);
      box-shadow: inset 0 0 0 1px rgba(231, 225, 216, 0.72);
    }

    .toolbar-svg {
      width: 25px;
      height: 25px;
    }

    .toolbar-menu-panel {
      top: calc(100% + 12px);
      width: min(236px, calc(100vw - 24px));
      border-radius: 20px;
      border: 1px solid rgba(231, 225, 216, 0.92);
      box-shadow: 0 18px 40px rgba(36, 52, 71, 0.12);
    }

    .control-shell-summary {
      margin-top: 0;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      backdrop-filter: none;
    }

    .filter-summary-bar {
      display: grid;
      gap: 16px;
      margin-top: 0;
      padding: 20px;
      border: 0;
      border-radius: 24px;
      background:
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.96));
      box-shadow: 0 14px 36px rgba(36, 52, 71, 0.08);
    }

    .search-explainer {
      margin-top: 12px;
      padding: 16px 20px;
      border: 1px solid var(--myge-border, #e2e8f0);
      border-radius: var(--myge-radius-xl, 20px);
      background: var(--myge-surface, #fff);
      color: var(--muted);
      box-shadow: var(--myge-shadow-sm);
    }

    .search-explainer h2 {
      margin: 0 0 8px;
      color: var(--ink);
      font-size: 16px;
      font-weight: 700;
      line-height: 1.3;
      letter-spacing: 0;
    }

    .search-explainer p {
      margin: 0;
      max-width: 980px;
      font-size: 14px;
      line-height: 1.6;
      color: var(--myge-muted, #64748b);
    }

    .filter-summary-meta {
      gap: 12px;
    }

    .filter-summary-label {
      font-size: 11px;
      letter-spacing: 0.1em;
      color: rgba(107, 114, 128, 0.82);
    }

    .filter-summary-chips {
      gap: 8px;
    }

    .filter-summary-chip {
      min-height: 30px;
      padding: 6px 12px;
      border: 1px solid rgba(231, 225, 216, 0.92);
      background: rgba(255, 255, 255, 0.88);
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      border-radius: 999px;
      box-shadow: none;
    }

    .filter-summary-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      width: 100%;
    }

    .filter-summary-actions .filter-summary-btn {
      width: 100%;
      min-height: 50px;
      border-radius: 14px;
      font-size: 15px;
      font-weight: 700;
    }

    .ghost-btn.filter-summary-btn {
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(231, 225, 216, 0.95);
      color: var(--ink);
    }

    .search-submit.filter-summary-btn {
      background: var(--accent);
      border: 0;
      color: #fff;
      box-shadow: 0 12px 24px rgba(201, 106, 43, 0.2);
    }

    .search-submit.filter-summary-btn:hover,
    .search-submit.filter-summary-btn:focus-visible {
      background: var(--accent-hover);
    }

    .top-actions {
      margin-top: 14px;
      gap: 10px;
      padding: 0 2px;
      opacity: 0.88;
    }

    .top-actions .ghost-btn,
    .top-actions .danger-btn,
    .top-actions form button {
      min-height: 40px;
      border-radius: 14px;
      font-size: 13px;
    }

    .table-wrap {
      margin-top: 30px;
      border: 0;
      border-radius: 28px;
      box-shadow: 0 18px 42px rgba(36, 52, 71, 0.08);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.98));
    }

    .results-head {
      display: grid;
      gap: 10px;
      padding: 22px 20px 8px;
      border-bottom: 0;
      background: transparent;
    }

    .results-title {
      margin-top: 0;
      font-size: 18px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .results-subtitle,
    .results-note {
      color: rgba(107, 114, 128, 0.82);
      font-size: 12px;
      line-height: 1.6;
    }

    .results-note {
      padding: 4px 20px 0;
    }

    .results-sort-tools {
      gap: 8px;
      align-items: end;
    }

    .results-sort-field {
      gap: 5px;
      min-width: min(100%, 230px);
    }

    .results-sort-field span {
      font-size: 10px;
      letter-spacing: 0.1em;
      color: rgba(107, 114, 128, 0.76);
    }

    .results-sort-select {
      min-height: 42px;
      border-radius: 14px;
      border-color: rgba(231, 225, 216, 0.96);
      background-color: rgba(255, 255, 255, 0.94);
      color: var(--ink);
      box-shadow: none;
    }

    .results-sort-direction-group {
      min-height: 42px;
      gap: 8px;
    }

    .results-sort-direction-btn {
      min-width: 40px;
      min-height: 40px;
      border-radius: 14px;
      border-color: rgba(231, 225, 216, 0.96);
      background: rgba(255, 255, 255, 0.92);
      color: rgba(31, 41, 55, 0.7);
    }

    .mobile-results {
      padding: 10px 14px 18px;
      gap: 18px;
    }

    .mobile-card {
      border: 0;
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(253, 251, 247, 0.98));
      box-shadow: 0 18px 36px rgba(36, 52, 71, 0.08);
      overflow: visible;
    }

    .mobile-card-gallery {
      padding: 0;
      background: transparent;
    }

    .mobile-card-gallery-frame {
      aspect-ratio: 1.12 / 1;
      border-radius: 24px 24px 0 0;
    }

    .mobile-card-gallery-counter {
      top: 14px;
      right: 14px;
      min-height: 30px;
      padding: 5px 10px;
      background: rgba(36, 52, 71, 0.76);
      backdrop-filter: blur(10px);
    }

    .mobile-card-gallery-dots {
      bottom: 14px;
    }

    .mobile-card-body {
      gap: 12px;
      padding: 16px 18px 20px;
    }

    .mobile-card-price-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .mobile-card-price-wrap {
      display: grid;
      gap: 5px;
      min-width: 0;
    }

    .mobile-card-price {
      font-size: clamp(32px, 8.5vw, 40px);
      font-weight: 800;
      letter-spacing: -0.05em;
      line-height: 0.95;
      color: var(--ink);
    }

    .mobile-card-price-secondary {
      color: rgba(107, 114, 128, 0.86);
      font-size: 12px;
      font-weight: 600;
      line-height: 1.35;
    }

    .favorite-btn-card {
      width: 42px;
      height: 42px;
      min-width: 42px;
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid rgba(231, 225, 216, 0.94);
      background: rgba(255, 255, 255, 0.94);
      color: var(--muted);
      box-shadow: none;
    }

    .mobile-card-title {
      font-size: 17px;
      line-height: 1.35;
      font-weight: 650;
      letter-spacing: -0.02em;
    }

    .mobile-card-meta {
      gap: 0;
      color: rgba(107, 114, 128, 0.92);
      font-size: 12px;
      line-height: 1.55;
    }

    .mobile-card-meta span + span::before {
      margin: 0 7px;
      color: #c8bfaf;
    }

    .mobile-card-location,
    .mobile-card-address,
    .mobile-card-updated {
      color: rgba(107, 114, 128, 0.82);
      font-size: 12px;
      line-height: 1.45;
    }

    .mobile-card-address {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .mobile-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-top: 2px;
    }

    .mobile-card-source {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      min-width: 0;
    }

    .source-chip,
    .data-chip {
      min-height: 26px;
      padding: 5px 10px;
      border-radius: 999px;
      background: var(--accent-soft);
      border-color: rgba(231, 225, 216, 0.96);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .data-chip-db,
    .data-chip-live,
    .data-chip-fallback {
      background: rgba(255, 255, 255, 0.88);
    }

    @media (max-width: 760px) {
      .hero {
        padding: 14px;
        border-radius: 24px;
      }

      .page-toolbar {
        padding: 10px 10px 10px 14px;
        border-radius: 20px;
      }

      .toolbar-actions {
        grid-auto-columns: 44px;
      }

      .toolbar-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
      }

      .filter-summary-bar {
        padding: 18px;
        border-radius: 22px;
      }

      .results-head {
        padding: 20px 16px 6px;
      }

      .results-note {
        padding: 4px 16px 0;
      }
    }

    @media (max-width: 520px) {
      .page {
        padding: 16px 10px 44px;
      }

      body[data-page-kind="public"] .page {
        padding-left: 10px;
        padding-right: 10px;
      }

      .page-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
      }

      .toolbar-brand {
        font-size: 16px;
      }

      .toolbar-brand-home {
        gap: 6px;
      }

      .toolbar-brand-home-hint {
        display: none;
      }

      .toolbar-actions {
        gap: 6px;
        padding: 2px;
      }

      .toolbar-icon-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        border-radius: 14px;
      }

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

      .filter-summary-actions .filter-summary-btn {
        min-height: 48px;
      }

      .top-actions {
        display: none;
      }

      .mobile-card-body {
        padding: 16px 16px 18px;
      }

      .mobile-card-footer {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    .filter-visibility-btn[aria-expanded="false"] {
      color: #1d4ed8 !important;
      border-color: rgba(191, 219, 254, 0.95) !important;
      background: rgba(255, 255, 255, 0.88) !important;
      box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08) !important;
    }

    .filter-visibility-btn[aria-expanded="true"] {
      color: #ffffff !important;
      border-color: #ea580c !important;
      background: #f97316 !important;
      box-shadow: 0 12px 24px rgba(249, 115, 22, 0.2) !important;
    }

    /* Search mobile width guard: keep cards and controls inside the viewport. */
    @media (max-width: 520px) {
      html,
      body {
        max-width: 100%;
        overflow-x: hidden;
      }

      body[data-page-kind="public"] .page,
      body[data-page-kind="public"] .hero,
      body[data-page-kind="public"] .search-page-heading,
      body[data-page-kind="public"] .control-shell,
      body[data-page-kind="public"] .filter-summary-bar,
      body[data-page-kind="public"] .filter-summary-meta,
      body[data-page-kind="public"] .filter-summary-chips,
      body[data-page-kind="public"] .filter-summary-actions,
      body[data-page-kind="public"] .table-wrap,
      body[data-page-kind="public"] .results-head,
      body[data-page-kind="public"] .results-sort-tools,
      body[data-page-kind="public"] .mobile-results,
      body[data-page-kind="public"] .mobile-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
      }

      body[data-page-kind="public"] .search-page-heading h1,
      body[data-page-kind="public"] .search-page-heading p,
      body[data-page-kind="public"] .filter-summary-chip {
        max-width: 100%;
        overflow-wrap: anywhere;
      }

      body[data-page-kind="public"] .filter-summary-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      body[data-page-kind="public"] .results-sort-field {
        min-width: 0;
        flex: 1 1 190px;
      }

      body[data-page-kind="public"] .results-sort-select {
        width: 100%;
        max-width: 100%;
      }
    }

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

    .modal-title {
      margin: 0 0 8px;
      font-size: clamp(24px, 4vw, 34px);
      font-weight: 800;
      line-height: 1;
    }

    .mobile-card-source-link {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      min-height: 34px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
      text-decoration: none;
    }

    .mobile-card-source-link:hover,
    .mobile-card-source-link:focus-visible {
      text-decoration: underline;
    }

    @media (max-width: 520px) {
      .search-page-heading h1 {
        overflow-wrap: anywhere;
      }

      .results-sort-tools {
        width: 100%;
      }

      .results-sort-field {
        min-width: 0;
        flex: 1 1 auto;
      }

      .results-sort-select {
        max-width: 100%;
      }
    }

    @media (max-width: 760px) {
      .toolbar-menu[data-open="true"]::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(15, 23, 42, 0.18);
      }

      .toolbar-menu-panel {
        position: fixed !important;
        top: 68px !important;
        right: 10px !important;
        z-index: 9999 !important;
        max-height: calc(100dvh - 84px);
        overflow-y: auto;
      }
    }

    /* Ultimate override: modern premium app-like UI */
    :root {
      --bg: #f5f5f7;
      --panel: #ffffff;
      --panel-soft: #ffffff;
      --ink: #111111;
      --muted: #6b7280;
      --line: #e5e7eb;
      --accent: #2563eb;
      --accent-hover: #1d4ed8;
      --accent-dark: #111111;
      --accent-soft: #f3f4f6;
      --shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
      --shadow-soft: 0 10px 26px rgba(17, 17, 17, 0.05);
    }

    body {
      background: linear-gradient(180deg, #fafafb 0%, #f5f5f7 100%);
      color: #111111;
    }

    .hero {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .hero::before,
    .top-actions {
      display: none;
    }

    .page-toolbar {
      position: sticky;
      top: 8px;
      z-index: 10;
      margin-bottom: 18px;
      padding: 14px 16px;
      border: 1px solid rgba(229, 231, 235, 0.72);
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(14px);
      box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
    }

    .toolbar-actions {
      display: inline-flex;
      gap: 2px;
      padding: 0;
      background: transparent;
    }

    .toolbar-icon-btn,
    .favorite-toolbar-btn,
    .toolbar-filter-btn,
    .toolbar-menu-btn {
      border: 0;
      background: transparent;
      color: #111111;
      box-shadow: none;
    }

    .toolbar-icon-btn:hover,
    .toolbar-icon-btn:focus-visible,
    .favorite-toolbar-btn:hover,
    .favorite-toolbar-btn:focus-visible,
    .toolbar-menu-btn:hover,
    .toolbar-menu-btn:focus-visible {
      background: #f0f0f0;
    }

    .favorite-toolbar-badge,
    .toolbar-icon-badge {
      background: #2563eb;
      box-shadow: none;
    }

    .filter-summary-bar {
      padding: 20px;
      border: 0;
      border-radius: 24px;
      background: #ffffff;
      box-shadow: var(--shadow-soft);
    }

    .filter-summary-chip {
      border: 0;
      background: #f3f4f6;
      color: #111111;
      font-weight: 600;
    }

    .ghost-btn.filter-summary-btn {
      border: 0;
      background: transparent;
      color: #111111;
    }

    .ghost-btn.filter-summary-btn:hover,
    .ghost-btn.filter-summary-btn:focus-visible {
      background: #f3f4f6;
    }

    .search-submit.filter-summary-btn {
      border: 0;
      background: #111111;
      color: #ffffff;
      box-shadow: 0 14px 28px rgba(17, 17, 17, 0.14);
    }

    .search-submit.filter-summary-btn:hover,
    .search-submit.filter-summary-btn:focus-visible {
      background: rgba(17, 17, 17, 0.92);
    }

    .table-wrap {
      margin-top: 24px;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .results-head,
    .results-note {
      background: transparent;
      color: #6b7280;
    }

    .results-title {
      font-size: 15px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .results-sort-select,
    .page-size-select {
      border: 1px solid #e5e7eb;
      background-color: #ffffff;
      color: #111111;
    }

    .results-sort-direction-btn,
    .page-button {
      border: 0;
      background: #ffffff;
      color: #6b7280;
    }

    .results-sort-direction-btn.is-active,
    .page-button.is-active {
      background: rgba(37, 99, 235, 0.1);
      color: #2563eb;
    }

    th {
      background: #ffffff;
      color: #6b7280;
    }

    .filter-row th,
    tbody tr:nth-child(even),
    tbody tr:hover {
      background: #ffffff;
    }

    .column-filter,
    .column-select {
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      color: #111111;
    }

    .source-chip,
    .data-chip {
      border: 0;
      background: #f3f4f6;
      color: #6b7280;
      font-weight: 600;
    }

    .mobile-card {
      border: 0;
      border-radius: 26px;
      background: #ffffff;
      box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
    }

    .mobile-card-gallery-frame {
      border-radius: 0;
    }

    .mobile-card-price {
      color: #111111;
      font-size: clamp(38px, 9vw, 44px);
      font-weight: 800;
    }

    .mobile-card-title {
      color: #111111;
      font-weight: 600;
    }

    .mobile-card-meta,
    .mobile-card-location,
    .mobile-card-address,
    .mobile-card-updated,
    .mobile-card-price-secondary,
    .results-subtitle {
      color: #6b7280;
    }

    .favorite-btn,
    .favorite-btn-card,
    .favorite-btn-modal {
      border: 0;
      background: #f3f4f6;
      box-shadow: none;
    }

    .favorite-toolbar-btn.is-active,
    .favorite-btn.is-favorite {
      color: #dc2626;
      background: rgba(220, 38, 38, 0.08);
    }

    .favorite-toolbar-btn.is-active .fav-svg,
    .favorite-btn.is-favorite .fav-svg,
    .favorite-toolbar-btn.is-active .favorite-toolbar-icon {
      color: #dc2626;
    }

    /* Modern premium redesign: final visual layer */
    :root {
      --bg: #f5f5f7;
      --panel: #ffffff;
      --panel-soft: #ffffff;
      --ink: #111111;
      --muted: #6b7280;
      --line: #e5e7eb;
      --accent: #2563eb;
      --accent-hover: #1d4ed8;
      --accent-dark: #111111;
      --accent-soft: #f3f4f6;
      --shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
      --shadow-soft: 0 10px 26px rgba(17, 17, 17, 0.05);
      --radius: 18px;
    }

    body {
      background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 26%),
        linear-gradient(180deg, #fafafb 0%, var(--bg) 100%);
      color: var(--ink);
    }

    .page {
      padding: 20px 12px 56px;
    }

    body[data-page-kind="public"] .page {
      padding-left: 12px;
      padding-right: 12px;
    }

    .hero {
      border-radius: 0;
      padding: 0;
      background: transparent;
      box-shadow: none;
      border: 0;
    }

    .hero::before {
      display: none;
    }

    .page-toolbar {
      position: sticky;
      top: 10px;
      z-index: 8;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      margin: 0 0 18px;
      padding: 14px 16px;
      border: 1px solid rgba(229, 231, 235, 0.72);
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(14px);
      box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
    }

    .toolbar-brand {
      font-family: "Manrope", "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
      font-size: 20px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: -0.05em;
      color: var(--ink);
    }

    .toolbar-actions {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 0;
      border-radius: 0;
      background: transparent;
    }

    .toolbar-icon-btn,
    .favorite-toolbar-btn,
    .toolbar-filter-btn,
    .toolbar-menu-btn {
      width: 42px;
      height: 42px;
      min-width: 42px;
      min-height: 42px;
      padding: 0;
      border: 0;
      border-radius: 14px;
      background: transparent;
      color: var(--ink);
      box-shadow: none;
    }

    .toolbar-icon-btn:hover,
    .toolbar-icon-btn:focus-visible,
    .toolbar-menu-btn:hover,
    .toolbar-menu-btn:focus-visible,
    .favorite-toolbar-btn:hover,
    .favorite-toolbar-btn:focus-visible {
      background: #f0f0f0;
      color: var(--ink);
    }

    .toolbar-svg {
      width: 23px;
      height: 23px;
    }

    .favorite-toolbar-badge,
    .toolbar-icon-badge {
      top: 4px;
      right: 4px;
      min-width: 16px;
      height: 16px;
      padding: 0 3px;
      background: var(--accent);
      color: #fff;
      font-size: 9px;
      line-height: 16px;
      box-shadow: none;
    }

    .toolbar-menu-panel {
      top: calc(100% + 8px);
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 20px 34px rgba(17, 17, 17, 0.08);
    }

    .toolbar-menu-option,
    .toolbar-menu-action {
      border-color: var(--line);
      border-radius: 12px;
      background: #fff;
      color: var(--ink);
      text-transform: none;
      letter-spacing: 0;
    }

    .toolbar-menu-option.is-active,
    .lang-switch-btn.is-active,
    .currency-switch-btn.is-active {
      background: var(--accent-soft);
      color: var(--accent);
      border-color: transparent;
    }

    .control-shell-summary {
      margin-top: 0;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .filter-summary-bar {
      display: grid;
      gap: 16px;
      margin-top: 0;
      padding: 20px;
      border: 0;
      border-radius: 24px;
      background: #ffffff;
      box-shadow: var(--shadow-soft);
    }

    .filter-summary-meta {
      gap: 12px;
    }

    .filter-summary-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .filter-summary-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .filter-summary-chip {
      min-height: 32px;
      padding: 7px 12px;
      border: 0;
      border-radius: 999px;
      background: #f3f4f6;
      color: #111111;
      font-size: 12px;
      font-weight: 600;
      box-shadow: none;
    }

    .filter-summary-actions {
      display: grid;
      grid-template-columns: 1fr 1.25fr;
      gap: 10px;
      width: 100%;
    }

    .filter-summary-actions .filter-summary-btn {
      width: 100%;
      min-height: 52px;
      border-radius: 14px;
      font-size: 15px;
      font-weight: 600;
      box-shadow: none;
    }

    .ghost-btn.filter-summary-btn {
      border: 0;
      background: transparent;
      color: var(--ink);
    }

    .ghost-btn.filter-summary-btn:hover,
    .ghost-btn.filter-summary-btn:focus-visible {
      background: #f3f4f6;
    }

    .search-submit.filter-summary-btn {
      border: 0;
      background: #111111;
      color: #ffffff;
      box-shadow: 0 14px 28px rgba(17, 17, 17, 0.14);
    }

    .search-submit.filter-summary-btn:hover,
    .search-submit.filter-summary-btn:focus-visible {
      background: rgba(17, 17, 17, 0.92);
    }

    .top-actions {
      display: none;
    }

    .table-wrap {
      margin-top: 24px;
      border: 0;
      border-radius: 28px;
      overflow: hidden;
      background: transparent;
      box-shadow: none;
    }

    .results-head {
      display: grid;
      gap: 8px;
      padding: 2px 2px 10px;
      border: 0;
      background: transparent;
    }

    .results-title {
      margin-top: 0;
      font-size: 15px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink);
    }

    .results-subtitle,
    .results-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .results-note {
      padding: 0 2px 10px;
    }

    .results-sort-tools {
      display: flex;
      align-items: end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .results-sort-field {
      display: grid;
      gap: 4px;
      min-width: min(100%, 220px);
    }

    .results-sort-field span {
      color: var(--muted);
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .results-sort-select,
    .page-size-select {
      min-height: 42px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background-color: #ffffff;
      color: var(--ink);
      box-shadow: none;
    }

    .results-sort-direction-group {
      gap: 8px;
      min-height: 42px;
    }

    .results-sort-direction-btn,
    .page-button {
      min-width: 40px;
      min-height: 40px;
      border: 0;
      border-radius: 12px;
      background: #ffffff;
      color: var(--muted);
      box-shadow: none;
    }

    .results-sort-direction-btn.is-active,
    .page-button.is-active {
      background: rgba(37, 99, 235, 0.1);
      color: var(--accent);
      border-color: transparent;
    }

    table {
      min-width: 1680px;
      background: #ffffff;
      border-radius: 24px;
    }

    th,
    td {
      border-bottom: 1px solid rgba(229, 231, 235, 0.6);
      color: var(--ink);
    }

    th {
      background: #ffffff;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
    }

    .filter-row th {
      background: #ffffff;
    }

    .column-filter,
    .column-select {
      border: 1px solid var(--line);
      background: #f9fafb;
      color: var(--ink);
    }

    tbody tr:nth-child(even) {
      background: #ffffff;
    }

    tbody tr:hover {
      background: #fafafa;
    }

    .source-chip,
    .data-chip {
      min-height: 24px;
      padding: 4px 9px;
      border: 0;
      border-radius: 999px;
      background: #f3f4f6;
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
      box-shadow: none;
    }

    .price-main,
    .mobile-card-price {
      color: #111111;
      font-weight: 800;
    }

    .title-main,
    .mobile-card-title {
      color: #111111;
      font-weight: 600;
    }

    .address-secondary,
    .updated-secondary,
    .price-secondary,
    .price-secondary-per-m2,
    .mobile-card-location,
    .mobile-card-address,
    .mobile-card-updated,
    .mobile-card-meta {
      color: var(--muted);
    }

    .mobile-results {
      display: grid;
      padding: 6px 0 18px;
      gap: 20px;
    }

    .mobile-card {
      border: 0;
      border-radius: 26px;
      background: #ffffff;
      box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
      overflow: hidden;
    }

    .mobile-card-gallery {
      padding: 0;
      background: transparent;
    }

    .mobile-card-gallery-frame {
      aspect-ratio: 1.14 / 1;
      border-radius: 0;
      overflow: hidden;
    }

    .mobile-card-hero {
      object-fit: cover;
    }

    .mobile-card-gallery-counter {
      top: 14px;
      right: 14px;
      min-height: 28px;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(17, 17, 17, 0.56);
      color: #ffffff;
      font-size: 12px;
      font-weight: 700;
      backdrop-filter: blur(10px);
    }

    .mobile-card-gallery-dots {
      bottom: 14px;
    }

    .mobile-card-gallery-dot {
      width: 6px;
      height: 6px;
      background: rgba(255, 255, 255, 0.46);
    }

    .mobile-card-gallery-dot.is-active {
      background: #ffffff;
    }

    .mobile-card-body {
      display: grid;
      gap: 12px;
      padding: 18px 18px 20px;
    }

    .mobile-card-price-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .mobile-card-price-wrap {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .mobile-card-price {
      font-size: clamp(38px, 9vw, 44px);
      line-height: 0.94;
      letter-spacing: -0.05em;
    }

    .mobile-card-price-secondary {
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
    }

    .favorite-btn,
    .favorite-btn-card,
    .favorite-btn-modal {
      border: 0;
      background: #f3f4f6;
      color: var(--muted);
      box-shadow: none;
    }

    .favorite-btn-card {
      width: 40px;
      height: 40px;
      min-width: 40px;
      min-height: 40px;
      border-radius: 14px;
    }

    .mobile-card-title {
      font-size: 17px;
      line-height: 1.38;
      letter-spacing: -0.02em;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .mobile-card-meta {
      font-size: 12px;
      line-height: 1.5;
    }

    .mobile-card-meta span + span::before {
      color: #c7ccd4;
      margin: 0 7px;
    }

    .mobile-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-top: 2px;
    }

    .mobile-card-source {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .favorite-toolbar-btn.is-active,
    .favorite-btn.is-favorite {
      color: #dc2626;
      background: rgba(220, 38, 38, 0.08);
    }

    .favorite-toolbar-btn.is-active .fav-svg,
    .favorite-btn.is-favorite .fav-svg,
    .favorite-toolbar-btn.is-active .favorite-toolbar-icon {
      color: #dc2626;
    }

    .pagination-head {
      color: var(--muted);
      font-size: 12px;
    }

    .table-pagination {
      padding: 8px 2px 0;
    }

    .empty,
    .results-loading-inline {
      color: var(--muted);
    }

    @media (max-width: 760px) {
      .page {
        padding: 16px 10px 44px;
      }

      body[data-page-kind="public"] .page {
        padding-left: 10px;
        padding-right: 10px;
      }

      .page-toolbar {
        top: 8px;
        padding: 12px 14px;
        border-radius: 22px;
      }

      .toolbar-brand {
        font-size: 18px;
      }

      .filter-summary-bar {
        padding: 18px;
        border-radius: 22px;
      }
    }

    @media (max-width: 520px) {
      .page-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
      }

      .toolbar-actions {
        gap: 2px;
      }

      .toolbar-icon-btn,
      .favorite-toolbar-btn,
      .toolbar-filter-btn,
      .toolbar-menu-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
      }

      .filter-summary-actions {
        grid-template-columns: 1fr 1.15fr;
      }

      .filter-summary-actions .filter-summary-btn {
        min-height: 50px;
      }

      .results-head {
        padding: 0 2px 8px;
      }

      .mobile-card {
        border-radius: 24px;
      }

      .mobile-card-body {
        padding: 16px 16px 18px;
      }
    }

    .favorite-toolbar-btn.is-active,
    .favorite-btn.is-favorite {
      color: #c0392b;
      border-color: rgba(192, 57, 43, 0.18);
      background: rgba(192, 57, 43, 0.08);
    }

    .favorite-toolbar-btn.is-active .fav-svg,
    .favorite-btn.is-favorite .fav-svg,
    .favorite-toolbar-btn.is-active .favorite-toolbar-icon,
    .favorite-btn.is-favorite {
      color: #c0392b;
    }

    /* Second pass: stronger app-like composition without changing logic */
    .page {
      padding: 24px 18px 56px;
    }

    body[data-page-kind="public"] .page {
      padding-left: 18px;
      padding-right: 18px;
    }

    .hero {
      border-radius: 28px;
      padding: 18px;
      background:
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(36, 52, 71, 0.04), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.96));
      box-shadow: 0 20px 50px rgba(36, 52, 71, 0.09);
    }

    .page-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      padding: 10px 12px 10px 16px;
      border: 0;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 12px 30px rgba(36, 52, 71, 0.08);
    }

    .toolbar-brand {
      font-size: 18px;
      letter-spacing: -0.05em;
    }

    .toolbar-actions {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 46px;
      gap: 8px;
      padding: 2px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(247, 244, 239, 0.96), rgba(240, 236, 230, 0.9));
    }

    .toolbar-icon-btn {
      width: 46px;
      height: 46px;
      min-width: 46px;
      min-height: 46px;
      border: 0;
      border-radius: 15px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--accent-dark);
      box-shadow: inset 0 0 0 1px rgba(231, 225, 216, 0.72);
    }

    .toolbar-svg {
      width: 25px;
      height: 25px;
    }

    .toolbar-menu-panel {
      top: calc(100% + 12px);
      width: min(236px, calc(100vw - 24px));
      border-radius: 20px;
      border: 1px solid rgba(231, 225, 216, 0.92);
      box-shadow: 0 18px 40px rgba(36, 52, 71, 0.12);
    }

    .control-shell-summary {
      margin-top: 0;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      backdrop-filter: none;
    }

    .filter-summary-bar {
      display: grid;
      gap: 16px;
      margin-top: 0;
      padding: 20px;
      border: 0;
      border-radius: 24px;
      background:
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.96));
      box-shadow: 0 14px 36px rgba(36, 52, 71, 0.08);
    }

    .filter-summary-meta {
      gap: 12px;
    }

    .filter-summary-label {
      font-size: 11px;
      letter-spacing: 0.1em;
      color: rgba(107, 114, 128, 0.82);
    }

    .filter-summary-chips {
      gap: 8px;
    }

    .filter-summary-chip {
      min-height: 30px;
      padding: 6px 12px;
      border: 1px solid rgba(231, 225, 216, 0.92);
      background: rgba(255, 255, 255, 0.88);
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      border-radius: 999px;
      box-shadow: none;
    }

    .filter-summary-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      width: 100%;
    }

    .filter-summary-actions .filter-summary-btn {
      width: 100%;
      min-height: 50px;
      border-radius: 14px;
      font-size: 15px;
      font-weight: 700;
    }

    .ghost-btn.filter-summary-btn {
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(231, 225, 216, 0.95);
      color: var(--ink);
    }

    .search-submit.filter-summary-btn {
      background: var(--accent);
      border: 0;
      color: #fff;
      box-shadow: 0 12px 24px rgba(201, 106, 43, 0.2);
    }

    .search-submit.filter-summary-btn:hover,
    .search-submit.filter-summary-btn:focus-visible {
      background: var(--accent-hover);
    }

    .top-actions {
      margin-top: 14px;
      gap: 10px;
      padding: 0 2px;
      opacity: 0.88;
    }

    .top-actions .ghost-btn,
    .top-actions .danger-btn,
    .top-actions form button {
      min-height: 40px;
      border-radius: 14px;
      font-size: 13px;
    }

    .table-wrap {
      margin-top: 30px;
      border: 0;
      border-radius: 28px;
      box-shadow: 0 18px 42px rgba(36, 52, 71, 0.08);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.98));
    }

    .results-head {
      display: grid;
      gap: 10px;
      padding: 22px 20px 8px;
      border-bottom: 0;
      background: transparent;
    }

    .results-title {
      margin-top: 0;
      font-size: 18px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .results-subtitle,
    .results-note {
      color: rgba(107, 114, 128, 0.82);
      font-size: 12px;
      line-height: 1.6;
    }

    .results-note {
      padding: 4px 20px 0;
    }

    .results-sort-tools {
      gap: 8px;
      align-items: end;
    }

    .results-sort-field {
      gap: 5px;
      min-width: min(100%, 230px);
    }

    .results-sort-field span {
      font-size: 10px;
      letter-spacing: 0.1em;
      color: rgba(107, 114, 128, 0.76);
    }

    .results-sort-select {
      min-height: 42px;
      border-radius: 14px;
      border-color: rgba(231, 225, 216, 0.96);
      background-color: rgba(255, 255, 255, 0.94);
      color: var(--ink);
      box-shadow: none;
    }

    .results-sort-direction-group {
      min-height: 42px;
      gap: 8px;
    }

    .results-sort-direction-btn {
      min-width: 40px;
      min-height: 40px;
      border-radius: 14px;
      border-color: rgba(231, 225, 216, 0.96);
      background: rgba(255, 255, 255, 0.92);
      color: rgba(31, 41, 55, 0.7);
    }

    .mobile-results {
      padding: 10px 14px 18px;
      gap: 18px;
    }

    .mobile-card {
      border: 0;
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(253, 251, 247, 0.98));
      box-shadow: 0 18px 36px rgba(36, 52, 71, 0.08);
      overflow: visible;
    }

    .mobile-card-gallery {
      padding: 0;
      background: transparent;
    }

    .mobile-card-gallery-frame {
      aspect-ratio: 1.12 / 1;
      border-radius: 24px 24px 0 0;
    }

    .mobile-card-gallery-counter {
      top: 14px;
      right: 14px;
      min-height: 30px;
      padding: 5px 10px;
      background: rgba(36, 52, 71, 0.76);
      backdrop-filter: blur(10px);
    }

    .mobile-card-gallery-dots {
      bottom: 14px;
    }

    .mobile-card-body {
      gap: 12px;
      padding: 16px 18px 20px;
    }

    .mobile-card-price-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .mobile-card-price-wrap {
      display: grid;
      gap: 5px;
      min-width: 0;
    }

    .mobile-card-price {
      font-size: clamp(32px, 8.5vw, 40px);
      font-weight: 800;
      letter-spacing: -0.05em;
      line-height: 0.95;
      color: var(--ink);
    }

    .mobile-card-price-secondary {
      color: rgba(107, 114, 128, 0.86);
      font-size: 12px;
      font-weight: 600;
      line-height: 1.35;
    }

    .favorite-btn-card {
      width: 42px;
      height: 42px;
      min-width: 42px;
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid rgba(231, 225, 216, 0.94);
      background: rgba(255, 255, 255, 0.94);
      color: var(--muted);
      box-shadow: none;
    }

    .mobile-card-title {
      font-size: 17px;
      line-height: 1.35;
      font-weight: 650;
      letter-spacing: -0.02em;
    }

    .mobile-card-meta {
      gap: 0;
      color: rgba(107, 114, 128, 0.92);
      font-size: 12px;
      line-height: 1.55;
    }

    .mobile-card-meta span + span::before {
      margin: 0 7px;
      color: #c8bfaf;
    }

    .mobile-card-location,
    .mobile-card-address,
    .mobile-card-updated {
      color: rgba(107, 114, 128, 0.82);
      font-size: 12px;
      line-height: 1.45;
    }

    .mobile-card-address {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .mobile-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-top: 2px;
    }

    .mobile-card-source {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      min-width: 0;
    }

    .source-chip,
    .data-chip {
      min-height: 26px;
      padding: 5px 10px;
      border-radius: 999px;
      background: var(--accent-soft);
      border-color: rgba(231, 225, 216, 0.96);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .data-chip-db,
    .data-chip-live,
    .data-chip-fallback {
      background: rgba(255, 255, 255, 0.88);
    }

    @media (max-width: 760px) {
      .hero {
        padding: 14px;
        border-radius: 24px;
      }

      .page-toolbar {
        padding: 10px 10px 10px 14px;
        border-radius: 20px;
      }

      .toolbar-actions {
        grid-auto-columns: 44px;
      }

      .toolbar-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
      }

      .filter-summary-bar {
        padding: 18px;
        border-radius: 22px;
      }

      .results-head {
        padding: 20px 16px 6px;
      }

      .results-note {
        padding: 4px 16px 0;
      }
    }

    @media (max-width: 520px) {
      .page {
        padding: 16px 10px 44px;
      }

      body[data-page-kind="public"] .page {
        padding-left: 10px;
        padding-right: 10px;
      }

      .page-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
      }

      .toolbar-brand {
        font-size: 16px;
      }

      .toolbar-actions {
        gap: 6px;
        padding: 2px;
      }

      .toolbar-icon-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        border-radius: 14px;
      }

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

      .filter-summary-actions .filter-summary-btn {
        min-height: 48px;
      }

      .top-actions {
        display: none;
      }

      .mobile-card-body {
        padding: 16px 16px 18px;
      }

      .mobile-card-footer {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    @media (max-width: 420px) {
      .page-toolbar {
        gap: 8px;
      }

      .toolbar-brand {
        font-size: 20px;
      }

      .toolbar-actions {
        gap: 5px;
      }

      .toolbar-cycle-btn {
        min-width: 42px;
        padding: 0 8px;
      }

      .toolbar-menu-panel {
        width: min(196px, calc(100vw - 20px));
      }
    }

    .page-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
      gap: 12px;
      flex-wrap: nowrap;
      min-width: 0;
      padding: 14px 16px;
      border-radius: var(--radius);
      background: var(--panel);
      border: 1px solid rgba(231, 225, 216, 0.72);
      box-shadow: 0 8px 20px rgba(36, 52, 71, 0.06);
    }

    .toolbar-brand {
      flex: 0 1 auto;
      min-width: 0;
      color: var(--ink);
      text-decoration: none;
      font-family: "Manrope", "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
      font-size: 24px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: -0.04em;
      white-space: nowrap;
    }

    .toolbar-brand-link {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: inherit;
    }

    .toolbar-brand-link:hover,
    .toolbar-brand-link:focus-visible,
    .toolbar-brand-link:visited {
      color: inherit;
      text-decoration: none;
    }

    .toolbar-brand-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      flex: 0 0 auto;
    }

    .toolbar-brand-house {
      display: block;
      width: 100%;
      height: 100%;
    }

    .toolbar-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex: 0 0 auto;
      min-width: 0;
    }

    .toolbar-cycle-btn {
      min-width: 48px;
      min-height: 34px;
      padding: 0 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-size: 12px;
      line-height: 1;
    }

    .toolbar-icon-btn {
      min-width: 34px;
      min-height: 34px;
      padding: 0;
      border-radius: 14px;
      font-size: 18px;
      line-height: 1;
      box-shadow: none;
    }

    .toolbar-chip-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--muted);
      border-radius: 999px;
      box-shadow: none;
      cursor: pointer;
    }

    .toolbar-svg {
      width: 24px;
      height: 24px;
      display: block;
      flex: 0 0 auto;
    }

    .toolbar-chip-icon,
    .toolbar-menu-label-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }

    .toolbar-chip-label {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
    }

    .favorite-toolbar-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--accent-dark);
      cursor: pointer;
    }

    .favorite-toolbar-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      line-height: 1;
    }

    .favorite-toolbar-badge,
    .toolbar-icon-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      min-width: 19px;
      height: 19px;
      padding: 0 4px;
      border-radius: 999px;
      background: var(--accent);
      color: #fffdf8;
      font-size: 10px;
      font-weight: 800;
      line-height: 19px;
      text-align: center;
      box-shadow: 0 8px 18px rgba(201, 106, 43, 0.2);
    }

    .toolbar-menu {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .toolbar-menu-btn {
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--accent-dark);
      font-size: 16px;
    }

    .toolbar-menu-panel {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      width: min(220px, calc(100vw - 28px));
      padding: 12px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(14px);
      box-shadow: 0 14px 32px rgba(36, 52, 71, 0.12);
      z-index: 12;
    }

    .toolbar-menu-section+.toolbar-menu-section {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }

    .toolbar-menu-label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 8px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .toolbar-menu-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .toolbar-menu-option {
      min-height: 34px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--panel);
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      box-shadow: none;
    }

    .favorite-toolbar-btn.is-active {
      color: var(--accent-dark);
      border-color: #e4d4ca;
      background: var(--accent-soft);
    }

    .lang-switch-btn.is-active,
    .currency-switch-btn.is-active {
      background: #2563eb;
      color: #ffffff;
      border-color: #2563eb;
      box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    }

    .toolbar-chip-btn,
    .toolbar-menu-option {
      gap: 6px;
    }

    body.sheet-open {
      overflow: hidden;
    }

    .page-toolbar {
      margin-bottom: 12px;
    }

    .toolbar-actions {
      gap: 10px;
    }

    .toolbar-svg {
      width: 22px;
      height: 22px;
    }

    .toolbar-icon-btn {
      width: 42px;
      height: 42px;
      min-width: 42px;
      min-height: 42px;
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--accent-dark);
    }

    .favorite-toolbar-btn,
    .toolbar-filter-btn,
    .toolbar-menu-btn {
      background: var(--panel);
    }

    .toolbar-menu-panel {
      width: min(224px, calc(100vw - 24px));
      padding: 12px;
      border-radius: 18px;
    }

    .toolbar-menu-actions {
      display: grid;
      gap: 8px;
    }

    .toolbar-menu-action {
      width: 100%;
      min-height: 38px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--panel);
      color: var(--ink);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.2;
      text-align: left;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      box-shadow: none;
    }

    .toolbar-menu-link:hover,
    .toolbar-menu-link:focus-visible,
    .toolbar-menu-link:visited {
      color: var(--ink);
      text-decoration: none;
    }

    .toolbar-icon-btn:hover,
    .toolbar-icon-btn:focus-visible,
    .toolbar-chip-btn:hover,
    .toolbar-chip-btn:focus-visible,
    .toolbar-menu-option:hover,
    .toolbar-menu-option:focus-visible,
    .toolbar-menu-action:hover,
    .toolbar-menu-action:focus-visible {
      background: var(--accent-soft);
      color: var(--ink);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Manrope", "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
      color: var(--ink);
      -webkit-tap-highlight-color: transparent;
      -webkit-text-size-adjust: 100%;
      background:
        radial-gradient(circle at top left, rgba(201, 106, 43, 0.09), transparent 28%),
        radial-gradient(circle at top right, rgba(36, 52, 71, 0.05), transparent 34%),
        linear-gradient(180deg, #faf8f4 0%, var(--bg) 100%);
    }

    .page {
      max-width: none;
      margin: 0 auto;
      padding: 32px 24px 48px;
    }

    body[data-page-kind="public"] .page {
      max-width: none;
      padding-left: 24px;
      padding-right: 24px;
    }

    .hero {
      position: relative;
      background:
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.06), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.96));
      border: 1px solid rgba(231, 225, 216, 0.72);
      border-radius: 20px;
      box-shadow: var(--shadow);
      padding: 32px;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(36, 52, 71, 0.02), transparent 22%);
    }

    .hero-grid {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
      gap: 24px;
      align-items: start;
    }

    .hero-copy {
      display: grid;
      gap: 16px;
    }

    .search-page-heading {
      position: relative;
      max-width: 760px;
      margin: 16px auto 12px;
      display: grid;
      gap: 8px;
      text-align: center;
    }

    .search-page-heading h1 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(28px, 4vw, 42px);
      line-height: 1.1;
      letter-spacing: -0.02em;
      font-family: var(--myge-font-serif, "Fraunces", Georgia, serif);
    }

    .search-page-heading p {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.5;
    }

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

    .hero-ribbon-card {
      padding: 14px 16px;
      border-radius: 20px;
      border: 1px solid rgba(20, 32, 51, 0.08);
      background: rgba(255, 255, 255, 0.72);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(10px);
    }

    .hero-ribbon-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .hero-ribbon-value {
      margin-top: 8px;
      color: var(--ink);
      font-size: 15px;
      line-height: 1.45;
      font-weight: 700;
    }

    .hero-brief {
      position: relative;
      padding: 22px;
      border-radius: 28px;
      border: 1px solid rgba(20, 32, 51, 0.08);
      background:
        radial-gradient(circle at top right, rgba(208, 106, 49, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(24, 41, 64, 0.98), rgba(19, 32, 51, 0.96));
      color: #edf4ff;
      box-shadow: 0 20px 54px rgba(19, 32, 51, 0.2);
      overflow: hidden;
    }

    .hero-brief::after {
      content: "";
      position: absolute;
      inset: auto -24px -24px auto;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
      filter: blur(4px);
    }

    .hero-brief-kicker {
      color: rgba(237, 244, 255, 0.72);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .hero-brief-title {
      margin-top: 10px;
      font-family: "Fraunces", "Georgia", serif;
      font-size: 28px;
      line-height: 1.12;
      letter-spacing: -0.03em;
      font-weight: 500;
    }

    .hero-brief-copy {
      margin-top: 12px;
      color: rgba(237, 244, 255, 0.78);
      font-size: 14px;
      line-height: 1.7;
    }

    .hero-brief-points {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    .hero-brief-point {
      position: relative;
      padding-left: 18px;
      color: rgba(237, 244, 255, 0.88);
      font-size: 13px;
      line-height: 1.55;
    }

    .hero-brief-point::before {
      content: "";
      position: absolute;
      top: 8px;
      left: 0;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: linear-gradient(135deg, #f2b07e, #ffffff);
    }

    .eyebrow {
      display: inline-block;
      padding: 8px 14px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-dark);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    h1 {
      margin: 14px 0 8px;
      max-width: 860px;
      font-family: "Fraunces", "Georgia", serif;
      font-size: clamp(34px, 5vw, 56px);
      line-height: 1;
      letter-spacing: -0.035em;
      font-weight: 600;
    }

    .sub {
      max-width: 820px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.7;
      text-wrap: balance;
    }

    .modal-copy .sub {
      text-align: justify;
      text-wrap: pretty;
      white-space: pre-line;
      font-size: 15px;
      line-height: 1.8;
    }

    .badge-translate {
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      font-size: 12px;
      min-height: 0;
      height: auto;
      padding: 7px 10px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: var(--accent-soft);
      color: var(--muted);
      box-shadow: none;
      line-height: 1;
      transition: opacity 0.15s;
    }

    .badge-translate:hover {
      opacity: 0.7;
    }

    form {
      margin-top: 24px;
      display: grid;
      gap: 14px;
    }

    .control-shell {
      margin-top: 24px;
      padding: 24px;
      border-radius: 18px;
      border: 1px solid rgba(231, 225, 216, 0.86);
      background: rgba(255, 255, 255, 0.92);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(10px);
    }

    .control-shell.is-collapsed form {
      display: none;
    }

    .control-shell-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-top: 6px;
      margin-bottom: 4px;
    }

    .control-shell-title {
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.1;
    }

    .control-shell-copy {
      margin-top: 6px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
      max-width: 560px;
    }

    .filter-summary-bar {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-top: 14px;
      padding: 18px 20px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background:
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.06), transparent 36%),
        rgba(255, 255, 255, 0.96);
    }

    .filter-summary-meta {
      display: grid;
      gap: 10px;
      min-width: 0;
      flex: 1 1 auto;
    }

    .filter-summary-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .filter-summary-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      min-width: 0;
    }

    .filter-summary-chip {
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.35;
      white-space: normal;
      word-break: break-word;
    }

    .filter-summary-btn {
      min-width: 118px;
      align-self: center;
      flex: 0 0 auto;
    }

    .filter-summary-actions {
      display: flex;
      gap: 10px;
      flex: 1;
      width: 100%;
    }

    .filter-summary-actions .filter-summary-btn {
      flex: 1;
    }

    .control-shell-summary {
      margin-top: 16px;
      padding: 14px;
      border-radius: 16px;
    }

    .control-shell-summary .filter-summary-bar {
      margin-top: 0;
      align-items: center;
      padding: 14px 16px;
      border-radius: 16px;
    }

    .control-shell-summary .filter-summary-meta {
      gap: 8px;
    }

    .control-shell-summary .filter-summary-label {
      font-size: 11px;
    }

    .control-shell-summary .filter-summary-chip {
      min-height: 28px;
      padding: 5px 10px;
      font-size: 12px;
    }

    .filters-sheet {
      position: fixed;
      inset: 0;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      display: none;
      align-items: stretch;
      justify-content: stretch;
      z-index: 120;
      padding: 0;
      width: 100vw;
      height: 100vh;
      min-height: 100vh;
      min-height: 100dvh;
      background: rgba(255, 255, 255, 1);
      overflow: hidden;
    }

    .filters-sheet[data-open="true"] {
      display: flex;
    }

    .filters-sheet-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(31, 41, 55, 0.42);
      backdrop-filter: blur(6px);
    }

    .filters-sheet-panel {
      position: fixed;
      inset: 0;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 100vw;
      min-width: 100vw;
      max-width: 100vw;
      height: 100vh;
      min-height: 100vh;
      height: 100dvh;
      max-height: 100dvh;
      display: flex;
      flex-direction: column;
      border-radius: 0;
      border: 0;
      background: rgba(247, 244, 239, 0.98);
      box-shadow: 0 18px 42px rgba(36, 52, 71, 0.16);
      overflow: hidden;
      overscroll-behavior: contain;
    }

    .filters-sheet-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 12px;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.96);
    }

    .filters-sheet-title {
      margin-top: 6px;
      color: var(--ink);
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.08;
    }

    .filters-sheet-close {
      flex: 0 0 auto;
    }

    .filters-sheet-form {
      margin-top: 0;
      height: auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
      flex: 1 1 0;
      overflow: hidden;
    }

    .filters-sheet-scroll {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding: 16px 16px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }

    .filters-sheet-note {
      margin-top: 4px;
      padding-bottom: 14px;
    }

    .filters-sheet-scroll .grid {
      margin-bottom: 0;
    }

    .filters-sheet-footer {
      flex-shrink: 0;
      position: relative;
      bottom: auto;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
      margin-top: 0;
      border-top: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 -10px 24px rgba(36, 52, 71, 0.05);
    }

    .filters-sheet-footer .search-submit,
    .filters-sheet-footer .ghost-btn {
      box-sizing: border-box;
      width: 100%;
      min-width: 0;
      max-width: 100%;
      padding-left: 10px;
      padding-right: 10px;
      white-space: nowrap;
    }

    .search-city-menu,
    .search-district-menu {
      max-height: 280px;
      border-radius: 14px;
    }

    .search-city-option,
    .search-district-option {
      min-height: 44px;
      padding: 10px 14px;
      font-size: 14px;
    }

    .control-shell-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(29, 79, 145, 0.08);
      color: var(--accent-dark);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      white-space: nowrap;
    }

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

    body[data-page-kind="public"] .control-shell {
      padding: 24px 26px;
    }

    body[data-page-kind="public"] .control-shell-copy {
      max-width: none;
    }

    body[data-page-kind="public"] .grid {
      grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    body[data-page-kind="public"] .search-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: end;
    }

    body[data-page-kind="admin"] .search-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: end;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .search-city-dropdown,
    .search-district-dropdown {
      position: relative;
    }

    .search-city-trigger,
    .search-district-trigger {
      width: 100%;
      min-height: 48px;
      padding: 0 46px 0 14px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--ink);
      box-shadow: none;
      font-size: 15px;
      font-weight: 600;
      text-align: left;
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .search-city-trigger-badge,
    .search-district-trigger-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 38px;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
      line-height: 1;
      flex: 0 0 auto;
    }

    .search-city-trigger::after,
    .search-district-trigger::after {
      content: "▾";
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 14px;
      line-height: 1;
    }

    .search-city-dropdown[data-open="true"] .search-city-trigger::after,
    .search-district-dropdown[data-open="true"] .search-district-trigger::after {
      content: "▴";
    }

    .search-city-menu,
    .search-district-menu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      z-index: 30;
      display: grid;
      max-height: 320px;
      overflow-y: auto;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 14px 32px rgba(36, 52, 71, 0.12);
      backdrop-filter: blur(10px);
    }

    .search-city-menu[hidden],
    .search-district-menu[hidden] {
      display: none;
    }

    .search-city-option,
    .search-district-option {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      align-items: center;
      column-gap: 12px;
      justify-content: start;
      min-height: 52px;
      padding: 10px 16px;
      border-radius: 0;
      border: 0;
      border-top: 1px solid rgba(231, 225, 216, 0.72);
      background: rgba(255, 255, 255, 0.98);
      color: var(--ink);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
    }

    .search-city-option span,
    .search-district-option span {
      display: block;
      text-align: left;
      line-height: 1.25;
    }

    .search-city-option:first-child,
    .search-district-option:first-child {
      border-top: 0;
    }

    .search-city-option:hover,
    .search-district-option:hover {
      background: var(--accent-soft);
    }

    .search-city-option-all {
      font-weight: 700;
    }

    .search-city-option input,
    .search-district-option input,
    .collection-source-option input,
    input[type="checkbox"],
    input[type="radio"] {
      width: 18px;
      height: 18px;
      min-height: 18px;
      margin: 0;
      padding: 0;
      border-radius: 4px;
      box-shadow: none;
      flex: 0 0 auto;
      accent-color: var(--accent);
    }

    label {
      font-size: 13px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    input:not([type="checkbox"]):not([type="radio"]),
    select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.98);
      color: var(--ink);
      min-height: 48px;
      padding: 12px 14px;
      font-size: 15px;
      box-shadow: none;
    }

    input,
    select,
    button {
      touch-action: manipulation;
    }

    .readonly {
      background: #f1f5fb;
      color: #66758b;
    }

    .actions {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .top-actions {
      margin-top: 18px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }

    button {
      border: 0;
      border-radius: 12px;
      min-height: 48px;
      padding: 0 20px;
      background: var(--accent);
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 10px 20px rgba(201, 106, 43, 0.18);
      transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    }

    button:hover {
      transform: translateY(-1px);
      background: var(--accent-hover);
    }

    button:disabled {
      cursor: wait;
      opacity: 0.84;
    }

    .search-submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-width: 132px;
    }

    .search-submit-spinner {
      display: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.34);
      border-top-color: #fff;
      animation: searchSpin 0.8s linear infinite;
      flex: 0 0 auto;
    }

    .search-submit[data-loading="true"] .search-submit-spinner {
      display: inline-block;
    }

    @keyframes searchSpin {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }

    .danger-btn {
      background: var(--accent-dark);
      box-shadow: 0 10px 20px rgba(36, 52, 71, 0.16);
    }

    .secondary-btn {
      background: var(--panel);
      border: 1px solid var(--line);
      color: var(--ink);
      box-shadow: none;
    }

    .secondary-btn:hover,
    .secondary-btn:focus-visible {
      background: var(--accent-soft);
      color: var(--ink);
    }

    .ghost-stop-btn {
      min-width: 152px;
      box-shadow: 0 10px 24px rgba(16, 22, 29, 0.12);
    }

    .note {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .favorite-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 36px;
      min-height: 36px;
      padding: 0;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--muted);
      box-shadow: none;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
    }

    .favorite-btn.is-favorite {
      color: var(--accent-dark);
      border-color: #e4d4ca;
      background: var(--accent-soft);
    }

    .favorite-btn-modal {
      flex: 0 0 auto;
    }

    .mobile-card-price-wrap {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .favorite-btn-card {
      min-width: 34px;
      min-height: 34px;
      font-size: 17px;
    }

    .fav-svg {
      width: 20px;
      height: 20px;
      display: block;
      flex: 0 0 auto;
    }

    .source-list {
      display: none;
    }

    .source-card {
      border-radius: 22px;
      padding: 18px;
      border: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
      box-shadow: var(--shadow-soft);
    }

    .source-ok {
      background: var(--ok);
    }

    .source-error {
      background: var(--err);
    }

    .source-name {
      font-weight: 800;
      margin-bottom: 6px;
      letter-spacing: -0.02em;
    }

    .source-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
    }

    .source-new-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      min-width: 46px;
      padding: 4px 10px;
      border-radius: 999px;
      background: #d7263d;
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      line-height: 1;
      box-shadow: 0 10px 20px rgba(215, 38, 61, 0.22);
    }

    .source-new-badge.is-hidden {
      display: none;
    }

    .source-stat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 10px;
    }

    .source-stat {
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.76);
      border: 1px solid rgba(20, 32, 51, 0.08);
    }

    .source-stat-label {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.3;
      margin-bottom: 4px;
    }

    .source-stat-value {
      color: var(--ink);
      font-size: 22px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: -0.02em;
    }

    .source-meta {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .ingestion-panel {
      margin-top: 18px;
      padding: 20px;
      border-radius: 24px;
      border: 1px solid rgba(20, 32, 51, 0.08);
      background: var(--panel-soft);
      box-shadow: var(--shadow-soft);
      display: grid;
      gap: 16px;
    }

    .collection-progress-card {
      border-radius: 22px;
      border: 1px solid rgba(20, 32, 51, 0.08);
      background: rgba(255, 255, 255, 0.82);
      padding: 16px;
      display: grid;
      gap: 12px;
    }

    .collection-speed-card {
      border-radius: 22px;
      border: 1px solid rgba(20, 32, 51, 0.08);
      background: rgba(255, 255, 255, 0.82);
      padding: 16px;
      display: grid;
      gap: 14px;
    }

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

    .collection-speed-metric,
    .collection-source-pages-card {
      border: 1px solid rgba(20, 32, 51, 0.08);
      border-radius: 18px;
      background: #fff;
      padding: 14px 16px;
    }

    .collection-speed-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .collection-speed-value {
      margin-top: 8px;
      color: #183a67;
      font-size: 30px;
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.04em;
    }

    .collection-speed-subvalue {
      margin-top: 8px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .collection-source-pages-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .collection-source-pages-list {
      margin-top: 10px;
      color: var(--ink);
      font-size: 13px;
      line-height: 1.55;
      min-height: 44px;
    }

    .collection-source-pages-list.is-idle {
      color: var(--muted);
    }

    .collection-source-page-line+.collection-source-page-line {
      margin-top: 6px;
    }

    .repair-status-value {
      font-size: 24px;
      text-transform: lowercase;
    }

    .repair-source-line+.repair-source-line {
      margin-top: 6px;
    }

    .repair-source-line strong {
      color: #183a67;
      font-weight: 800;
    }

    .collection-progress-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .collection-progress-table-wrap {
      overflow-x: auto;
    }

    .collection-progress-table {
      width: 100%;
      border-collapse: collapse;
      overflow: hidden;
      border-radius: 18px;
      border: 1px solid rgba(20, 32, 51, 0.08);
      background: #fff;
    }

    .collection-progress-table thead th {
      background: #1e2d45;
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      padding: 12px 10px;
      text-align: center;
    }

    .collection-progress-table tbody td {
      border-top: 1px solid rgba(20, 32, 51, 0.08);
      padding: 12px 10px;
      vertical-align: top;
      text-align: center;
    }

    .collection-progress-city {
      min-width: 120px;
      text-align: left;
      font-weight: 800;
      color: var(--ink);
    }

    .progress-cell {
      min-width: 88px;
    }

    .progress-cell-value {
      font-size: 24px;
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #183a67;
    }

    .progress-cell-value.is-zero {
      color: #9ba8ba;
    }

    .progress-cell-meta {
      margin-top: 6px;
      font-size: 12px;
      line-height: 1.4;
      color: var(--muted);
    }

    .progress-cell-window {
      margin-top: 4px;
      font-size: 11px;
      line-height: 1.35;
      color: #6a7b92;
    }

    .progress-cell-status {
      display: inline-flex;
      margin-top: 8px;
      min-height: 24px;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .progress-status-running {
      background: rgba(29, 79, 145, 0.12);
      color: #1d4f91;
    }

    .progress-status-completed {
      background: rgba(57, 133, 78, 0.12);
      color: #2e7c48;
    }

    .progress-status-failed,
    .progress-status-interrupted {
      background: rgba(210, 50, 50, 0.12);
      color: #b22222;
    }

    @media (max-width: 1100px) {

      .collection-speed-grid,
      .collection-source-pages-grid {
        grid-template-columns: 1fr;
      }
    }

    .progress-status-idle {
      background: rgba(128, 142, 160, 0.12);
      color: #738197;
    }

    .dashboard-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
      margin-top: 18px;
      align-items: start;
    }

    .ingestion-head {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
    }

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

    .collection-source-picker {
      display: flex;
      gap: 12px;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
      color: #53627a;
      font-size: 13px;
      font-weight: 600;
    }

    .collection-city-picker {
      display: flex;
      gap: 10px 12px;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
      max-width: 920px;
      color: #53627a;
      font-size: 13px;
      font-weight: 600;
    }

    .collection-source-picker-label {
      color: #7d8797;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 11px;
    }

    .collection-source-option {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }

    .collection-city-picker .collection-source-picker-label {
      flex: 0 0 100%;
      text-align: right;
    }

    .collection-city-picker .collection-source-option {
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid rgba(20, 32, 51, 0.08);
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 8px 18px rgba(20, 32, 51, 0.06);
    }

    .collection-buttons {
      display: flex;
      gap: 10px;
      align-items: stretch;
      justify-content: flex-end;
      flex-wrap: wrap;
    }

    .collection-mode-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-width: 132px;
      min-height: 48px;
    }

    .collection-mode-fast {
      background: linear-gradient(135deg, #386748, #1e4e33);
      box-shadow: 0 10px 24px rgba(30, 78, 51, 0.24);
    }

    .collection-mode-turbo {
      background: linear-gradient(135deg, #9a5a18, #c7672f);
      box-shadow: 0 10px 24px rgba(199, 103, 47, 0.24);
    }

    .collection-mode-incremental {
      background: linear-gradient(135deg, #243342, #10161d);
      box-shadow: 0 10px 24px rgba(16, 22, 29, 0.22);
    }

    .collect-submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-width: 168px;
      min-height: 48px;
    }

    .collection-buttons .ghost-stop-btn {
      min-height: 48px;
    }

    .collection-buttons .ghost-stop-btn:disabled {
      cursor: default;
    }

    .collect-submit-spinner {
      display: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.34);
      border-top-color: #fff;
      animation: searchSpin 0.8s linear infinite;
      flex: 0 0 auto;
    }

    .collect-submit[data-loading="true"] .collect-submit-spinner {
      display: inline-block;
    }

    .ingestion-status-line {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .analysis-panel {
      margin-top: 18px;
      padding: 20px;
      border-radius: 24px;
      border: 1px solid rgba(20, 32, 51, 0.08);
      background: var(--panel-soft);
      box-shadow: var(--shadow-soft);
      display: grid;
      gap: 14px;
    }

    .analysis-head {
      display: flex;
      gap: 18px;
      align-items: flex-start;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    .analysis-copy {
      display: grid;
      gap: 6px;
      max-width: 680px;
    }

    .section-kicker {
      color: var(--accent-dark);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .analysis-tools {
      display: grid;
      gap: 10px;
      justify-items: end;
      max-width: 360px;
    }

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

    .analysis-note {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      text-align: right;
    }

    .analysis-toggle {
      min-width: 116px;
    }

    .analyze-submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-width: 132px;
    }

    .analysis-table-wrap {
      overflow-x: auto;
      border: 1px solid rgba(20, 32, 51, 0.08);
      border-radius: 20px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.95));
    }

    .analysis-panel[data-collapsed="true"] .analysis-table-wrap {
      display: none;
    }

    .analysis-panel.is-collapsed .analysis-table-wrap {
      display: none;
    }

    .analysis-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 860px;
    }

    .analysis-table th,
    .analysis-table td {
      padding: 14px 16px;
      border-bottom: 1px solid rgba(20, 32, 51, 0.08);
      text-align: center;
      vertical-align: middle;
      font-size: 14px;
    }

    .analysis-table th {
      background: #1b2940;
      color: #f8fbff;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .analysis-row-total td {
      background: rgba(247, 250, 255, 0.92);
    }

    .analysis-city-cell {
      min-width: 120px;
      text-align: left !important;
      font-weight: 800;
      color: var(--ink);
      vertical-align: middle !important;
    }

    .analysis-kind-cell {
      min-width: 72px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .analysis-cell-site,
    .analysis-cell-db,
    .analysis-cell-muted,
    .analysis-cell-error {
      display: inline-flex;
      min-height: 32px;
      align-items: center;
      justify-content: center;
      min-width: 68px;
      padding: 4px 8px;
      border-radius: 999px;
      font-weight: 800;
      line-height: 1;
    }

    .analysis-cell-site {
      background: rgba(208, 106, 49, 0.12);
      color: #9a4d1f;
    }

    .analysis-cell-db {
      background: rgba(29, 79, 145, 0.10);
      color: #1d4f91;
    }

    .analysis-cell-muted {
      background: rgba(94, 109, 130, 0.08);
      color: #6c7b8e;
    }

    .analysis-cell-error {
      background: rgba(180, 35, 24, 0.12);
      color: #b42318;
    }

    .analysis-scope-stack {
      display: grid;
      gap: 6px;
      min-width: 110px;
    }

    .analysis-scope-title {
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .analysis-scope-subtitle {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.3;
    }

    .analysis-metric {
      display: grid;
      gap: 8px;
      min-width: 210px;
    }

    .analysis-metric-grid {
      display: grid;
      grid-template-columns: minmax(56px, 1fr) auto minmax(56px, 1fr);
      gap: 10px;
      align-items: center;
    }

    .analysis-metric-side {
      display: grid;
      gap: 3px;
    }

    .analysis-metric-side-right {
      text-align: right;
    }

    .analysis-metric-value {
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1;
      color: #9a4d1f;
    }

    .analysis-metric-side-label {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.2;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .analysis-metric-main {
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.15;
      color: #9a4d1f;
    }

    .analysis-metric-support {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.3;
      text-transform: lowercase;
    }

    .analysis-metric-pending .analysis-metric-main {
      color: #7a889c;
    }

    .analysis-metric-error .analysis-metric-main {
      color: #b42318;
    }

    .analysis-metric-pending .analysis-metric-value {
      color: #7a889c;
    }

    .analysis-metric-error .analysis-metric-value {
      color: #b42318;
    }

    .analysis-metric-delta {
      width: fit-content;
      min-width: 88px;
      min-height: 34px;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.06em;
      justify-self: center;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .analysis-delta,
    .analysis-status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .analysis-delta-up {
      background: rgba(208, 106, 49, 0.12);
      color: #9a4d1f;
    }

    .analysis-delta-down {
      background: rgba(29, 79, 145, 0.12);
      color: #1d4f91;
    }

    .analysis-delta-neutral {
      background: rgba(20, 32, 51, 0.08);
      color: #34445b;
    }

    .analysis-delta-pending {
      background: rgba(94, 109, 130, 0.1);
      color: #6c7b8e;
    }

    .analysis-status-aligned {
      background: rgba(56, 103, 72, 0.14);
      color: #225236;
    }

    .analysis-status-warning {
      background: rgba(208, 106, 49, 0.12);
      color: #9a4d1f;
    }

    .analysis-status-info {
      background: rgba(29, 79, 145, 0.12);
      color: #1d4f91;
    }

    .analysis-status-pending {
      background: rgba(94, 109, 130, 0.1);
      color: #6c7b8e;
    }

    .analysis-status-error {
      background: rgba(180, 35, 24, 0.12);
      color: #b42318;
    }

    .analysis-inline-error {
      color: #b42318;
      font-size: 12px;
      line-height: 1.45;
      word-break: break-word;
      margin-top: 2px;
      text-align: center;
    }

    .collection-stats {
      display: none;
    }

    .collection-card {
      padding: 16px 18px;
      border-radius: 20px;
      border: 1px solid rgba(20, 32, 51, 0.08);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
      box-shadow: var(--shadow-soft);
    }

    .collection-label {
      color: var(--muted);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .collection-value {
      margin-top: 6px;
      font-size: 30px;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1;
      color: var(--accent-dark);
    }

    .collection-subvalue {
      margin-top: 6px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .table-wrap {
      margin-top: 24px;
      border-radius: 18px;
      overflow-x: auto;
      overflow-y: hidden;
      border: 1px solid rgba(231, 225, 216, 0.9);
      box-shadow: var(--shadow);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.98));
    }

    .results-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      padding: 18px 18px 8px;
      border-bottom: 1px solid rgba(231, 225, 216, 0.8);
      background:
        linear-gradient(180deg, rgba(247, 244, 239, 0.92), rgba(255, 255, 255, 0.88));
    }

    .results-sort-tools {
      display: flex;
      align-items: end;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-start;
    }

    .results-sort-field {
      display: grid;
      gap: 6px;
      min-width: 220px;
    }

    .results-sort-field span {
      color: var(--muted);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .results-sort-select {
      min-height: 42px;
      border-radius: 12px;
      font-size: 14px;
      background-image:
        linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%),
        linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%);
      background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      appearance: none;
    }

    .results-sort-direction-group {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
    }

    .results-sort-direction-btn {
      min-width: 42px;
      min-height: 42px;
      padding: 0;
      font-size: 18px;
      font-weight: 700;
      line-height: 1;
    }

    .results-sort-direction-btn.is-active {
      background: var(--accent-soft);
      color: var(--ink);
      border-color: #e4d4ca;
      box-shadow: none;
    }

    .results-title {
      margin-top: 6px;
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.1;
    }

    .results-subtitle {
      margin-top: 8px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
      max-width: 640px;
    }

    table {
      width: 100%;
      min-width: 1780px;
      border-collapse: collapse;
    }

    th,
    td {
      padding: 14px 16px;
      border-bottom: 1px solid rgba(23, 32, 42, 0.08);
      text-align: left;
      vertical-align: top;
      font-size: 14px;
    }

    th {
      background: #1b2940;
      color: #fff;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .th-button {
      width: 100%;
      border: 0;
      background: transparent;
      color: inherit;
      box-shadow: none;
      padding: 0;
      min-height: auto;
      text-align: left;
      font-size: 12px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      cursor: pointer;
    }

    .filter-row th {
      background: #243750;
      padding-top: 10px;
      padding-bottom: 10px;
    }

    .column-filter,
    .column-select {
      width: 100%;
      min-height: 38px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.96);
      color: #17202a;
      font-size: 13px;
      padding: 8px 10px;
    }

    tbody tr:nth-child(even) {
      background: rgba(244, 247, 252, 0.84);
    }

    tbody tr:hover {
      background: rgba(208, 106, 49, 0.08);
      transition: background 0.18s ease;
    }

    .analysis-scope {
      display: inline-flex;
      flex-direction: column;
      gap: 10px;
    }

    .analysis-chip {
      display: inline-flex;
      width: fit-content;
      align-items: center;
      border-radius: 999px;
      padding: 6px 10px;
      background: rgba(29, 79, 145, 0.1);
      color: var(--accent-dark);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    a {
      color: var(--accent-dark);
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    .empty {
      text-align: center;
      color: var(--muted);
      padding: 32px 16px;
    }

    tbody tr {
      cursor: pointer;
    }

    .source-chip,
    .data-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 24px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.02em;
      text-transform: none;
      white-space: nowrap;
      border: 1px solid transparent;
    }

    .source-chip {
      background: var(--accent-soft);
      color: var(--muted);
      border-color: rgba(231, 225, 216, 0.9);
    }

    .data-chip-db {
      background: var(--panel);
      color: var(--muted);
      border-color: rgba(231, 225, 216, 0.9);
    }

    .data-chip-live {
      background: var(--panel);
      color: var(--muted);
      border-color: rgba(231, 225, 216, 0.9);
    }

    .data-chip-fallback {
      background: var(--panel);
      color: var(--muted);
      border-color: rgba(231, 225, 216, 0.9);
    }

    .source-stack,
    .title-stack,
    .address-stack,
    .price-stack,
    .updated-stack {
      display: grid;
      gap: 4px;
    }

    .list-source-label {
      display: inline-flex;
      align-items: center;
      min-height: 20px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      line-height: 1.35;
      white-space: nowrap;
    }

    .listing-thumb-cell {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .listing-thumb,
    .mobile-card-thumb {
      display: block;
      width: 64px;
      height: 48px;
      border-radius: 12px;
      object-fit: cover;
      background: rgba(31, 41, 55, 0.06);
      border: 0;
    }

    .listing-thumb.is-empty,
    .mobile-card-thumb.is-empty {
      background: rgba(29, 37, 45, 0.06);
    }

    .title-main {
      font-weight: 700;
      line-height: 1.35;
    }

    .address-secondary,
    .updated-secondary {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .price-main {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--accent-dark);
      line-height: 1;
    }

    .price-main-per-m2 {
      font-size: 17px;
      font-weight: 750;
    }

    .price-secondary {
      color: var(--muted);
      font-size: 12px;
    }

    .price-secondary-per-m2 {
      font-size: 11px;
    }

    .results-note {
      margin: 0;
      padding: 14px 18px 4px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .results-loading-row td.empty {
      position: relative;
      overflow: hidden;
    }

    .results-loading-inline {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      color: var(--muted);
      animation: loadingPulse 1.35s ease-in-out infinite;
    }

    .loading-dots::after {
      content: "";
      display: inline-block;
      width: 1.4em;
      text-align: left;
      animation: loadingDots 1.2s steps(4, end) infinite;
    }

    .results-loading-card {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 140px;
      padding: 24px 16px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: var(--panel, #fff);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
      text-align: center;
    }

    .results-loading-inline {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 15px;
      font-weight: 600;
      color: var(--muted);
    }

    .search-wait-notice {
      position: fixed;
      z-index: 1200;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      align-items: center;
      gap: 10px;
      max-width: min(360px, calc(100vw - 36px));
      padding: 12px 12px 12px 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(241, 247, 255, 0.96);
      border-color: rgba(76, 134, 196, 0.25);
      box-shadow: 0 8px 24px rgba(47, 91, 137, 0.14);
      color: var(--text);
      font-size: 14px;
      line-height: 1.35;
    }

    .search-wait-notice .loading-spinner {
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      border-width: 2px;
    }

    .search-wait-notice-text {
      flex: 1 1 auto;
    }

    .search-wait-notice-close {
      width: 28px;
      height: 28px;
      padding: 0;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-size: 21px;
      line-height: 1;
      cursor: pointer;
    }

    .search-wait-notice-close:hover,
    .search-wait-notice-close:focus-visible {
      background: var(--surface-soft, #f5f7fa);
      color: var(--text);
    }

    .loading-spinner {
      width: 22px;
      height: 22px;
      border: 3px solid var(--line, #e5e7eb);
      border-top-color: var(--accent, #c96a2b);
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
      flex-shrink: 0;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .loading-dots::after {
      content: "";
      display: inline-block;
      width: 1.4em;
      text-align: left;
      animation: loadingDots 1.2s steps(4, end) infinite;
    }
      }

      100% {
        opacity: 0.55;
      }
    }

    .table-pagination {
      display: grid;
      gap: 12px;
      padding: 10px 18px 18px;
    }

    .pagination-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 13px;
    }

    .page-size-control {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--ink);
      font-weight: 600;
    }

    .page-size-select {
      min-height: 40px;
      border-radius: 12px;
      border: 1px solid var(--line);
      padding: 0 12px;
      background: #fff;
      color: var(--ink);
      font: inherit;
    }

    .pagination-pages {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    body[data-page-kind="public"] .pagination-pages {
      justify-content: center;
    }

    .page-button {
      min-width: 40px;
      min-height: 40px;
      padding: 0 12px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      font-weight: 600;
      cursor: pointer;
      box-shadow: none;
    }

    .page-button[disabled] {
      opacity: 0.5;
      cursor: default;
    }

    .page-button.is-active {
      background: var(--accent-dark);
      color: #fff;
      border-color: var(--accent-dark);
    }

    .page-button.page-button-more {
      min-width: 180px;
      background: #f28c28;
      color: #fff;
      border-color: #f28c28;
      box-shadow: 0 10px 24px rgba(242, 140, 40, 0.22);
    }

    .page-button.page-button-more:hover:not([disabled]),
    .page-button.page-button-more:focus-visible:not([disabled]) {
      background: #e17d1d;
      border-color: #e17d1d;
      color: #fff;
    }

    .page-ellipsis {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      color: var(--muted);
    }

    .mobile-results {
      display: none;
      padding: 12px;
      gap: 12px;
    }

    .mobile-card {
      border: 1px solid rgba(231, 225, 216, 0.9);
      border-radius: 16px;
      padding: 0;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: var(--shadow-soft);
      display: grid;
      gap: 0;
      cursor: pointer;
      overflow: hidden;
    }

    .hero,
    .control-shell,
    .ingestion-panel,
    .analysis-panel,
    .table-wrap {
      animation: panelEnter 0.55s ease both;
    }

    .control-shell {
      animation-delay: 0.04s;
    }

    .dashboard-grid {
      animation: panelEnter 0.55s ease both;
      animation-delay: 0.08s;
    }

    .table-wrap {
      animation-delay: 0.12s;
    }

    @keyframes panelEnter {
      from {
        opacity: 0;
        transform: translateY(12px);
      }

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

    .mobile-card-title {
      font-weight: 600;
      line-height: 1.4;
      font-size: 16px;
      color: var(--ink);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .mobile-card-price {
      font-size: 30px;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ink);
      white-space: nowrap;
    }

    .mobile-card-gallery {
      position: relative;
      overflow: hidden;
      background: rgba(31, 41, 55, 0.04);
      touch-action: pan-y;
      padding: 12px 12px 0;
    }

    .mobile-card-gallery-frame {
      position: relative;
      aspect-ratio: 1.24 / 1;
      border-radius: 12px;
      overflow: hidden;
    }

    .mobile-card-hero {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      background: rgba(31, 41, 55, 0.06);
    }

    .mobile-card-hero.is-empty {
      background: rgba(20, 32, 51, 0.06);
    }

    .mobile-card-gallery-frame.is-empty {
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    }

    .mobile-card-no-photo {
      width: 100%;
      height: 100%;
      display: grid;
      align-content: center;
      justify-items: center;
      gap: 10px;
      padding: 28px;
      color: #64748b;
      background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.92) 0 26%, transparent 27%),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    }

    .mobile-card-no-photo svg {
      width: min(38vw, 148px);
      max-width: 62%;
      height: auto;
      fill: none;
      stroke: currentColor;
      stroke-width: 8;
      stroke-linecap: round;
      stroke-linejoin: round;
      opacity: 0.74;
    }

    .mobile-card-no-photo span {
      color: #475569;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    .mobile-card-gallery-counter {
      position: absolute;
      top: 12px;
      right: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(36, 52, 71, 0.72);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
    }

    .mobile-card-gallery-dots {
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 12px;
      display: flex;
      gap: 6px;
      justify-content: center;
    }

    .mobile-card-gallery-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.54);
    }

    .mobile-card-gallery-dot.is-active {
      background: #fff;
    }

    .mobile-card-body {
      display: grid;
      gap: 12px;
      padding: 20px 18px 22px;
    }

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

    .mobile-card-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .mobile-card-meta span {
      display: inline;
      padding: 0;
      border-radius: 0;
      background: transparent;
      white-space: nowrap;
    }

    .mobile-card-meta span + span::before {
      content: "•";
      display: inline-block;
      margin: 0 8px;
      color: #b8ae9f;
    }

    .mobile-card-meta .mobile-card-meta-price-per-m2 {
      font-size: inherit;
      font-weight: 500;
      letter-spacing: 0;
      color: var(--muted);
      background: transparent;
      border: 0;
      padding: 0;
      line-height: inherit;
    }

    .mobile-card-address {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .mobile-card-district {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .mobile-card-updated {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(17, 22, 27, 0.68);
      z-index: 30;
    }

    .modal[data-open="true"] {
      display: flex;
      animation: modalFadeIn 0.2s ease;
    }

    .modal-card {
      display: flex;
      flex-direction: column;
      width: min(1080px, 100%);
      max-height: min(88vh, 920px);
      overflow: auto;
      border-radius: 26px;
      background: #fffdfa;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
      border: 1px solid rgba(23, 32, 42, 0.08);
    }

    @keyframes modalFadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

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

    .modal-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      padding: 16px 20px;
      position: sticky;
      top: 0;
      z-index: 5;
      background: rgba(255, 253, 250, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(23, 32, 42, 0.08);
    }

    .modal-head-main {
      min-width: 0;
      flex: 1;
      display: grid;
      gap: 2px;
    }

    .modal-head-title {
      font-size: 16px;
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .modal-head-meta {
      font-size: 12px;
      color: var(--muted);
    }

    .modal-nav {
      display: flex;
      gap: 10px;
    }

    .icon-btn {
      min-height: 42px;
      min-width: 42px;
      padding: 0;
      border-radius: 50%;
      background: #fff;
      color: var(--ink);
      border: 1px solid var(--line);
      box-shadow: none;
      font-size: 18px;
    }

    .modal-top {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
      gap: 24px;
      padding: 20px;
    }

    .gallery-panel {
      display: grid;
      gap: 12px;
    }

    .gallery-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 4 / 3;
      border-radius: 18px;
      overflow: hidden;
      background: #ede6db;
    }

    .modal-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.2s ease, opacity 0.2s ease;
      cursor: zoom-in;
      will-change: transform;
      touch-action: none;
    }

    .modal-image.zoomed {
      transform: scale(1.8);
      cursor: zoom-out;
    }

    .gallery-placeholder {
      position: absolute;
      inset: 0;
      display: none;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 13px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.04));
    }

    .placeholder-art {
      width: 88px;
      height: 88px;
      border-radius: 22px;
      border: 1px solid rgba(23, 32, 42, 0.08);
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 231, 220, 0.92));
      position: relative;
      overflow: hidden;
    }

    .placeholder-art::before {
      content: "";
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 18px;
      height: 26px;
      border-radius: 12px 12px 8px 8px;
      background: rgba(199, 103, 47, 0.22);
      clip-path: polygon(0 100%, 0 48%, 28% 66%, 48% 38%, 68% 62%, 100% 26%, 100% 100%);
    }

    .placeholder-art::after {
      content: "";
      position: absolute;
      top: 18px;
      right: 16px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(199, 103, 47, 0.28);
    }

    .placeholder-text {
      font-size: 13px;
      color: var(--muted);
    }

    .gallery-frame[data-loading="true"] .gallery-placeholder {
      display: flex;
    }

    .gallery-frame[data-empty="true"] .gallery-placeholder {
      display: flex;
    }

    .gallery-frame[data-empty="true"] .gallery-nav,
    .gallery-frame[data-empty="true"] .gallery-toolbar {
      opacity: 0.45;
      pointer-events: none;
    }

    .gallery-frame.swiping .modal-image,
    .fullscreen-stage.swiping .fullscreen-image {
      transition: none;
    }

    .gallery-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      min-height: 40px;
      min-width: 40px;
      padding: 0;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.45);
      background: rgba(17, 22, 27, 0.56);
      color: #fff;
      box-shadow: none;
      z-index: 2;
    }

    .gallery-nav.prev {
      left: 12px;
    }

    .gallery-nav.next {
      right: 12px;
    }

    .gallery-toolbar {
      position: absolute;
      right: 12px;
      bottom: 12px;
      display: flex;
      gap: 8px;
      z-index: 2;
    }

    .gallery-counter {
      position: absolute;
      left: 12px;
      bottom: 12px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(17, 22, 27, 0.64);
      color: #fff;
      font-size: 12px;
      z-index: 2;
    }

    .gallery-thumbs {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
      gap: 10px;
    }

    .gallery-thumb {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 12px;
      object-fit: cover;
      border: 2px solid transparent;
      cursor: pointer;
      background: #ede6db;
      transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
    }

    .gallery-thumb.active {
      border-color: var(--accent);
      transform: translateY(-1px);
    }

    .skeleton-block {
      position: relative;
      color: transparent !important;
      user-select: none;
    }

    .skeleton-block::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 12px;
      background:
        linear-gradient(90deg, rgba(229, 223, 213, 0.92) 0%, rgba(248, 244, 238, 0.98) 50%, rgba(229, 223, 213, 0.92) 100%);
      background-size: 220% 100%;
      animation: shimmer 1.2s linear infinite;
    }

    .skeleton-line-sm {
      min-height: 18px;
    }

    .skeleton-line-md {
      min-height: 24px;
    }

    .skeleton-line-lg {
      min-height: 42px;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    .modal-copy h2 {
      margin: 0 0 8px;
      font-size: clamp(24px, 4vw, 34px);
      line-height: 1;
    }

    .modal-price {
      font-size: clamp(28px, 5vw, 40px);
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--accent-dark);
      margin: 10px 0 0;
    }

    .modal-meta-inline {
      color: var(--muted);
      font-size: 13px;
      margin-top: 6px;
    }

    .modal-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 12px 0 14px;
    }

    .badge {
      padding: 7px 10px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
    }

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

    .metric {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 12px;
      background: #fff;
    }

    .metric-label {
      color: var(--muted);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 6px;
    }

    .metric-value {
      font-size: 15px;
      line-height: 1.45;
    }

    .modal-actions {
      display: flex;
      gap: 12px;
      padding: 0 20px 22px;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    .modal-actions-left,
    .modal-actions-right {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
    }

    .modal-actions-main {
      display: grid;
      gap: 10px;
      flex: 1 1 420px;
      min-width: min(420px, 100%);
    }

    .modal-actions-row {
      display: grid;
      gap: 12px;
    }

    .modal-actions-row-primary {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal-actions-row-secondary {
      grid-template-columns: minmax(0, 1fr);
    }

    .tooltip-badge {
      position: relative;
    }

    .app-tooltip {
      position: fixed;
      max-width: 260px;
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(17, 22, 27, 0.96);
      color: #fff;
      font-size: 12px;
      line-height: 1.45;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
      opacity: 0;
      transform: translateY(6px);
      pointer-events: none;
      transition: opacity 0.16s ease, transform 0.16s ease;
      z-index: 60;
      white-space: pre-line;
    }

    .app-tooltip[data-open="true"] {
      opacity: 1;
      transform: translateY(0);
    }

    .toast-stack {
      position: fixed;
      right: 18px;
      bottom: 18px;
      display: grid;
      gap: 10px;
      z-index: 70;
      pointer-events: none;
    }

    .toast {
      min-width: 180px;
      max-width: 320px;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(17, 22, 27, 0.96);
      color: #fff;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .toast[data-open="true"] {
      opacity: 1;
      transform: translateY(0);
    }

    .fullscreen {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(7, 10, 14, 0.94);
      z-index: 40;
      padding: 18px;
    }

    .fullscreen[data-open="true"] {
      display: flex;
      animation: modalFadeIn 0.16s ease;
    }

    .fullscreen-card {
      width: min(1240px, 100%);
      height: min(92vh, 980px);
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 14px;
      color: #fff;
    }

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

    .fullscreen-tools {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .fullscreen-stage {
      position: relative;
      min-height: 0;
      border-radius: 22px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      display: grid;
      place-items: center;
    }

    .fullscreen-image {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      transition: transform 0.2s ease, opacity 0.2s ease;
      cursor: zoom-in;
      will-change: transform;
      touch-action: pan-y;
    }

    .fullscreen-image.zoomed {
      transform: scale(1.8);
      cursor: zoom-out;
    }

    .fullscreen-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      min-width: 48px;
      min-height: 48px;
      background: rgba(17, 22, 27, 0.64);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: none;
    }

    .fullscreen-nav.prev {
      left: 18px;
    }

    .fullscreen-nav.next {
      right: 18px;
    }

    .fullscreen-thumbs {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 88px;
      gap: 10px;
      justify-content: flex-start;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 2px 2px 8px;
      scrollbar-width: thin;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
    }

    .fullscreen-thumb {
      width: 88px;
      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 12px;
      border: 2px solid transparent;
      cursor: pointer;
      opacity: 0.82;
      transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
      scroll-snap-align: start;
      flex: 0 0 auto;
    }

    .fullscreen-thumb.active {
      border-color: #fff;
      opacity: 1;
      transform: translateY(-1px);
    }

    .modal-action-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.98);
      border: 1px solid var(--line);
      color: var(--ink);
      font-weight: 600;
      font-size: 14px;
      line-height: 1.2;
      text-align: center;
      text-decoration: none;
      white-space: normal;
      font-family: inherit;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      box-shadow: none;
    }

    .modal-action-btn:hover,
    .modal-action-btn:focus-visible,
    .modal-action-btn:active,
    .modal-action-btn:visited {
      color: var(--ink);
      text-decoration: none;
    }

    .modal-action-btn:hover,
    .modal-action-btn:focus-visible,
    .ghost-btn:hover,
    .ghost-btn:focus-visible,
    .favorite-btn:hover,
    .favorite-btn:focus-visible {
      background: var(--accent-soft);
      color: var(--ink);
    }

    .modal-action-btn.is-disabled {
      opacity: 0.55;
      cursor: not-allowed;
      pointer-events: none;
      box-shadow: none;
    }

    .ghost-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.98);
      color: var(--ink);
      font-weight: 600;
      font-size: 14px;
      line-height: 1.2;
      text-align: center;
      white-space: normal;
      cursor: pointer;
      box-shadow: none;
    }

    .modal-actions-row .modal-action-btn {
      width: 100%;
      min-width: 0;
    }

    .maps-warning-text {
      display: none;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(201, 106, 43, 0.18);
      background: rgba(201, 106, 43, 0.08);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .maps-warning-text[data-visible="true"] {
      display: block;
    }

    @media (max-width: 980px) {

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

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

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

      body[data-page-kind="public"] .page {
        max-width: none;
        padding-left: 18px;
        padding-right: 18px;
      }

      body[data-page-kind="public"] .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      body[data-page-kind="public"] .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      body[data-page-kind="admin"] .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      body[data-page-kind="public"] .page-toolbar {
        position: sticky;
        top: 10px;
        z-index: 8;
        padding: 10px 12px;
        margin: -6px -6px 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(231, 225, 216, 0.9);
        box-shadow: 0 10px 24px rgba(36, 52, 71, 0.07);
      }

      .actions {
        grid-column: 1 / -1;
      }

      .table-wrap {
        overflow-x: auto;
      }

      table {
        min-width: 920px;
      }

      .modal-top {
        grid-template-columns: 1fr;
      }

      .gallery-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    @media (max-width: 820px) {
      .page {
        padding: 20px 14px 32px;
      }

      body[data-page-kind="public"] .page {
        padding-left: 14px;
        padding-right: 14px;
      }

      .hero {
        padding: 20px;
        border-radius: 22px;
      }

      .sub {
        font-size: 15px;
      }

      .top-actions,
      .ingestion-head,
      .ingestion-actions,
      .analysis-head,
      .control-shell-head {
        align-items: stretch;
      }

      .top-actions form,
      .ingestion-actions,
      .actions,
      .analysis-tools,
      .control-shell-badge {
        width: 100%;
      }

      .top-actions form button,
      .ingestion-actions button,
      .collection-buttons button,
      .actions button {
        width: 100%;
      }

      .ingestion-actions {
        flex-direction: column;
        justify-items: stretch;
      }

      .collection-city-picker,
      .collection-source-picker {
        justify-content: flex-start;
        max-width: none;
      }

      .collection-city-picker .collection-source-picker-label {
        text-align: left;
      }

      .analysis-tools {
        justify-items: stretch;
      }

      .analysis-note {
        text-align: left;
      }

      .collection-buttons {
        justify-content: stretch;
      }

      .results-head {
        padding: 16px 16px 8px;
        flex-direction: column;
        align-items: stretch;
      }

      .results-sort-tools {
        width: 100%;
        justify-content: flex-start;
      }

      .results-sort-field {
        min-width: 0;
        flex: 1 1 220px;
      }

      .collection-stats,
      .source-list {
        grid-template-columns: 1fr;
      }

      .filter-summary-bar {
        flex-direction: column;
        align-items: stretch;
      }

      .filter-summary-btn {
        width: 100%;
      }

      .filters-sheet-panel {
        width: 100vw;
        height: 100dvh;
      }
    }

    @media (max-width: 640px) {
      .page {
        padding: 12px 10px calc(24px + env(safe-area-inset-bottom, 0px));
      }

      .hero {
        padding: 16px;
        border-radius: 16px;
      }

      .search-page-heading {
        margin: 14px 0 12px;
        gap: 6px;
      }

      .search-page-heading h1 {
        font-size: clamp(24px, 7.2vw, 31px);
      }

      .search-page-heading p {
        font-size: 14px;
        line-height: 1.45;
      }

      .hero-brief {
        padding: 18px;
        border-radius: 22px;
      }

      .control-shell {
        padding: 16px;
        border-radius: 16px;
      }

      h1 {
        margin-top: 12px;
        font-size: clamp(28px, 9vw, 38px);
        line-height: 1;
      }

      .sub,
      .note,
      .ingestion-status-line,
      .source-meta,
      .analysis-note {
        font-size: 13px;
      }

      .modal-copy .sub {
        font-size: 15px;
        line-height: 1.75;
      }

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

      body[data-page-kind="public"] .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      body[data-page-kind="admin"] .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      body[data-page-kind="public"] .search-grid .field-full-mobile {
        grid-column: 1 / -1;
      }

      body[data-page-kind="admin"] .search-grid .field-full-mobile {
        grid-column: 1 / -1;
      }

      body[data-page-kind="public"] .page-toolbar {
        top: 6px;
        gap: 10px;
        justify-content: space-between;
      }

      .toolbar-brand {
        font-size: 22px;
      }

      .toolbar-brand-icon {
        width: 22px;
        height: 22px;
      }

      .toolbar-actions {
        gap: 10px;
      }

      .toolbar-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
      }

      .favorite-toolbar-badge,
      .toolbar-icon-badge {
        min-width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 9px;
      }

      .toolbar-menu-panel {
        width: min(210px, calc(100vw - 24px));
        right: -2px;
      }

      body[data-page-kind="public"] .control-shell {
        padding: 12px;
      }

      .field {
        gap: 6px;
      }

      label {
        font-size: 11px;
      }

      input:not([type="checkbox"]):not([type="radio"]),
      select {
        min-height: 46px;
        font-size: 14px;
        padding: 11px 12px;
      }

      select option {
        font-size: 14px;
      }

      .top-actions {
        margin-top: 14px;
      }

      .ingestion-panel,
      .source-card,
      .collection-card,
      .mobile-card,
      .analysis-panel {
        border-radius: 16px;
      }

      .ingestion-panel {
        padding: 14px;
      }

      .collection-card {
        padding: 12px 14px;
      }

      .collection-value {
        font-size: 24px;
      }

      .source-card {
        padding: 14px;
      }

      .results-sort-tools {
        flex: none;
        width: 100%;
        display: flex;
        align-items: end;
        gap: 10px;
        justify-content: flex-start;
      }

      .results-sort-field {
        flex: 1;
        min-width: 0;
      }

      .results-sort-select {
        width: 100%;
      }

      .source-stat {
        padding: 9px 10px;
        border-radius: 12px;
      }

      .source-stat-value {
        font-size: 20px;
      }

      table {
        display: none;
      }

      .mobile-results {
        display: grid;
        padding: 12px;
        gap: 12px;
      }

      .mobile-card {
        border-radius: 16px;
      }

      .mobile-card-title {
        font-size: 16px;
        line-height: 1.3;
      }

      .mobile-card-price {
        font-size: 28px;
      }

      .mobile-card-body {
        padding: 18px 16px 20px;
      }

      .mobile-card-meta {
        font-size: 12px;
      }

      .mobile-card-meta span {
        font-size: inherit;
        padding: 0;
      }

      .mobile-card-meta .mobile-card-meta-price-per-m2 {
        font-size: inherit;
        padding: 0;
      }

      .table-wrap {
        margin-top: 18px;
        border-radius: 18px;
      }

      .filter-row th {
        padding-top: 8px;
        padding-bottom: 8px;
      }

      .results-note {
        padding: 0 12px;
      }

      .table-pagination {
        padding-left: 12px;
        padding-right: 12px;
      }

      .filters-sheet {
        padding: 0;
        align-items: stretch;
        height: 100svh;
        min-height: 100svh;
      }

      .filters-sheet-panel {
        inset: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
        border-radius: 0;
        border: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }

      .filters-sheet-head {
        padding: 16px 14px 12px;
      }

      .filters-sheet-title {
        font-size: 22px;
      }

      .filters-sheet-form {
        flex: 1 1 0;
        height: auto;
        min-height: 0;
        overflow: hidden;
      }

      .filters-sheet-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 14px;
        -webkit-overflow-scrolling: touch;
      }

      .filters-sheet-footer {
        position: relative;
        bottom: auto;
        margin: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.99);
        z-index: 2;
      }

      .filters-sheet-footer .search-submit,
      .filters-sheet-footer .ghost-btn {
        min-height: 46px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 14px;
      }

      .pagination-head {
        align-items: flex-start;
      }

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

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

      .modal-card {
        width: 100%;
        max-width: none;
        max-height: 100dvh;
        height: min(100dvh, 100%);
        border-radius: 22px 22px 0 0;
      }

      .modal-head {
        padding: 12px 12px 10px;
      }

      .modal-top,
      .modal-grid,
      .modal-actions {
        padding-left: 12px;
        padding-right: 12px;
      }

      .modal-actions {
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
      }

      .modal-actions-main,
      .modal-actions-right {
        width: 100%;
      }

      .modal-actions-row-primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .gallery-frame {
        border-radius: 14px;
      }

      .fullscreen {
        padding: 0;
      }

      .fullscreen-card {
        width: 100%;
        height: 100dvh;
        gap: 10px;
        padding: 12px;
      }

      .fullscreen-thumbs {
        grid-auto-columns: 72px;
        gap: 8px;
        padding-bottom: 6px;
      }

      .fullscreen-thumb {
        width: 72px;
        border-radius: 10px;
      }

      .fullscreen-stage {
        border-radius: 16px;
      }

      .toast-stack {
        left: 12px;
        right: 12px;
        bottom: 12px;
      }

      .toast {
        max-width: none;
      }
    }

    /* Final cascade overrides for second pass */
    .page {
      padding: 24px 18px 56px;
    }

    body[data-page-kind="public"] .page {
      padding-left: 18px;
      padding-right: 18px;
    }

    .hero {
      border-radius: 28px;
      padding: 18px;
      background:
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(36, 52, 71, 0.04), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.96));
      box-shadow: 0 20px 50px rgba(36, 52, 71, 0.09);
    }

    .page-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      padding: 10px 12px 10px 16px;
      border: 0;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 12px 30px rgba(36, 52, 71, 0.08);
    }

    .toolbar-brand {
      font-size: 18px;
      letter-spacing: -0.05em;
    }

    .toolbar-actions {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 46px;
      gap: 8px;
      padding: 2px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(247, 244, 239, 0.96), rgba(240, 236, 230, 0.9));
    }

    .toolbar-icon-btn {
      width: 46px;
      height: 46px;
      min-width: 46px;
      min-height: 46px;
      border: 0;
      border-radius: 15px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--accent-dark);
      box-shadow: inset 0 0 0 1px rgba(231, 225, 216, 0.72);
    }

    .toolbar-svg {
      width: 25px;
      height: 25px;
    }

    .toolbar-menu-panel {
      top: calc(100% + 12px);
      width: min(236px, calc(100vw - 24px));
      border-radius: 20px;
      border: 1px solid rgba(231, 225, 216, 0.92);
      box-shadow: 0 18px 40px rgba(36, 52, 71, 0.12);
    }

    .control-shell-summary {
      margin-top: 0;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      backdrop-filter: none;
    }

    .filter-summary-bar {
      display: grid;
      gap: 16px;
      margin-top: 0;
      padding: 20px;
      border: 0;
      border-radius: 24px;
      background:
        radial-gradient(circle at top right, rgba(201, 106, 43, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.96));
      box-shadow: 0 14px 36px rgba(36, 52, 71, 0.08);
    }

    .filter-summary-meta {
      gap: 12px;
    }

    .filter-summary-label {
      font-size: 11px;
      letter-spacing: 0.1em;
      color: rgba(107, 114, 128, 0.82);
    }

    .filter-summary-chips {
      gap: 8px;
    }

    .filter-summary-chip {
      min-height: 30px;
      padding: 6px 12px;
      border: 1px solid rgba(231, 225, 216, 0.92);
      background: rgba(255, 255, 255, 0.88);
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      border-radius: 999px;
      box-shadow: none;
    }

    .filter-summary-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      width: 100%;
    }

    .filter-summary-actions .filter-summary-btn {
      width: 100%;
      min-height: 50px;
      border-radius: 14px;
      font-size: 15px;
      font-weight: 700;
    }

    .ghost-btn.filter-summary-btn {
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(231, 225, 216, 0.95);
      color: var(--ink);
    }

    .search-submit.filter-summary-btn {
      background: var(--accent);
      border: 0;
      color: #fff;
      box-shadow: 0 12px 24px rgba(201, 106, 43, 0.2);
    }

    .search-submit.filter-summary-btn:hover,
    .search-submit.filter-summary-btn:focus-visible {
      background: var(--accent-hover);
    }

    .top-actions {
      margin-top: 14px;
      gap: 10px;
      padding: 0 2px;
      opacity: 0.88;
    }

    .top-actions .ghost-btn,
    .top-actions .danger-btn,
    .top-actions form button {
      min-height: 40px;
      border-radius: 14px;
      font-size: 13px;
    }

    .table-wrap {
      margin-top: 30px;
      border: 0;
      border-radius: 28px;
      box-shadow: 0 18px 42px rgba(36, 52, 71, 0.08);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.98));
    }

    .results-head {
      display: grid;
      gap: 10px;
      padding: 22px 20px 8px;
      border-bottom: 0;
      background: transparent;
    }

    .results-title {
      margin-top: 0;
      font-size: 18px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .results-subtitle,
    .results-note {
      color: rgba(107, 114, 128, 0.82);
      font-size: 12px;
      line-height: 1.6;
    }

    .results-note {
      padding: 4px 20px 0;
    }

    .results-sort-tools {
      gap: 8px;
      align-items: end;
    }

    .results-sort-field {
      gap: 5px;
      min-width: min(100%, 230px);
    }

    .results-sort-field span {
      font-size: 10px;
      letter-spacing: 0.1em;
      color: rgba(107, 114, 128, 0.76);
    }

    .results-sort-select {
      min-height: 42px;
      border-radius: 14px;
      border-color: rgba(231, 225, 216, 0.96);
      background-color: rgba(255, 255, 255, 0.94);
      color: var(--ink);
      box-shadow: none;
    }

    .results-sort-direction-group {
      min-height: 42px;
      gap: 8px;
    }

    .results-sort-direction-btn {
      min-width: 40px;
      min-height: 40px;
      border-radius: 14px;
      border-color: rgba(231, 225, 216, 0.96);
      background: rgba(255, 255, 255, 0.92);
      color: rgba(31, 41, 55, 0.7);
    }

    .mobile-results {
      padding: 10px 14px 18px;
      gap: 18px;
    }

    .mobile-card {
      border: 0;
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(253, 251, 247, 0.98));
      box-shadow: 0 18px 36px rgba(36, 52, 71, 0.08);
      overflow: visible;
    }

    .mobile-card-gallery {
      padding: 0;
      background: transparent;
    }

    .mobile-card-gallery-frame {
      aspect-ratio: 1.12 / 1;
      border-radius: 24px 24px 0 0;
    }

    .mobile-card-gallery-counter {
      top: 14px;
      right: 14px;
      min-height: 30px;
      padding: 5px 10px;
      background: rgba(36, 52, 71, 0.76);
      backdrop-filter: blur(10px);
    }

    .mobile-card-gallery-dots {
      bottom: 14px;
    }

    .mobile-card-body {
      gap: 12px;
      padding: 16px 18px 20px;
    }

    .mobile-card-price-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .mobile-card-price-wrap {
      display: grid;
      gap: 5px;
      min-width: 0;
    }

    .mobile-card-price {
      font-size: clamp(32px, 8.5vw, 40px);
      font-weight: 800;
      letter-spacing: -0.05em;
      line-height: 0.95;
      color: var(--ink);
    }

    .mobile-card-price-secondary {
      color: rgba(107, 114, 128, 0.86);
      font-size: 12px;
      font-weight: 600;
      line-height: 1.35;
    }

    .favorite-btn-card {
      width: 42px;
      height: 42px;
      min-width: 42px;
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid rgba(231, 225, 216, 0.94);
      background: rgba(255, 255, 255, 0.94);
      color: var(--muted);
      box-shadow: none;
    }

    .mobile-card-title {
      font-size: 17px;
      line-height: 1.35;
      font-weight: 650;
      letter-spacing: -0.02em;
    }

    .mobile-card-meta {
      gap: 0;
      color: rgba(107, 114, 128, 0.92);
      font-size: 12px;
      line-height: 1.55;
    }

    .mobile-card-meta span + span::before {
      margin: 0 7px;
      color: #c8bfaf;
    }

    .mobile-card-location,
    .mobile-card-address,
    .mobile-card-updated {
      color: rgba(107, 114, 128, 0.82);
      font-size: 12px;
      line-height: 1.45;
    }

    .mobile-card-address {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .mobile-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-top: 2px;
    }

    .mobile-card-source {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      min-width: 0;
    }

    .source-chip,
    .data-chip {
      min-height: 26px;
      padding: 5px 10px;
      border-radius: 999px;
      background: var(--accent-soft);
      border-color: rgba(231, 225, 216, 0.96);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .data-chip-db,
    .data-chip-live,
    .data-chip-fallback {
      background: rgba(255, 255, 255, 0.88);
    }

    @media (max-width: 760px) {
      .hero {
        padding: 14px;
        border-radius: 24px;
      }

      .page-toolbar {
        padding: 10px 10px 10px 14px;
        border-radius: 20px;
      }

      .toolbar-actions {
        grid-auto-columns: 44px;
      }

      .toolbar-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
      }

      .filter-summary-bar {
        padding: 18px;
        border-radius: 22px;
      }

      .results-head {
        padding: 20px 16px 6px;
      }

      .results-note {
        padding: 4px 16px 0;
      }
    }

    @media (max-width: 520px) {
      .page {
        padding: 16px 10px 44px;
      }

      body[data-page-kind="public"] .page {
        padding-left: 10px;
        padding-right: 10px;
      }

      .page-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
      }

      .toolbar-brand {
        font-size: 16px;
      }

      .toolbar-actions {
        gap: 6px;
        padding: 2px;
      }

      .toolbar-icon-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        border-radius: 14px;
      }

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

      .filter-summary-actions .filter-summary-btn {
        min-height: 48px;
      }

      .top-actions {
        display: none;
      }

      .mobile-card-body {
        padding: 16px 16px 18px;
      }

      .mobile-card-footer {
        align-items: flex-start;
        flex-direction: column;
      }
    }
