/* app/web/static/74cdcd9afd32/app.css */
@font-face {
  font-family: "Noto Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/74cdcd9afd32/vendor/noto-sans/noto-sans-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Noto Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/74cdcd9afd32/vendor/noto-sans/noto-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Noto Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/74cdcd9afd32/vendor/noto-sans/noto-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans Georgian Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/74cdcd9afd32/vendor/noto-sans/noto-sans-georgian-georgian-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

@font-face {
  font-family: "Noto Sans Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 105%;
  ascent-override: 101.8%;
  descent-override: 27.9%;
  line-gap-override: 0%;
}

@layer tokens, base, layout, components, pages, utilities, flow;

@layer tokens {
  :root {
    color-scheme: light dark;
    --font: "Noto Sans Variable", "Noto Sans Fallback", "Noto Sans Georgian Variable", system-ui, sans-serif;

    --paper: #f6f7f9;
    --surface: #ffffff;
    --sunken: #eef1f5;
    --ink: #1a1c20;
    --ink-2: #444a56;
    --ink-3: #565d6a;
    --rule: #e1e5ec;
    --ui: #9aa3b2;
    --accent: #0b57d0;
    --accent-hover: #0842a0;
    --accent-ink: #ffffff;
    --accent-soft: #dbe7fd;
    --accent-text: #0b57d0;
    --danger: #b3261e;
    --danger-soft: #fbe3e1;
    --warn-soft: #fff1cc;
    --warn-ink: #5c4300;

    --tone-good: #1f6fd1;
    --tone-good-ink: #ffffff;
    --tone-mid: #f2b233;
    --tone-mid-ink: #1a1c20;
    --tone-bad: #e0533d;
    --tone-bad-ink: #ffffff;
    --tone-neutral: #b4bccb;
    --tone-neutral-ink: #1a1c20;

    --focus: #0b57d0;
    --shadow-1: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
    --shadow-pop: 0 2px 6px rgb(16 24 40 / 6%), 0 12px 32px -8px rgb(16 24 40 / 18%);
    --map-halo: #ffffff;
    --glass: rgb(255 255 255 / 92%);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444a56' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    --t-xs: 0.75rem;
    --t-sm: 0.875rem;
    --t-base: 1rem;
    --t-md: 1.1875rem;
    --t-lg: 1.5rem;
    --t-xl: 2rem;

    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4.5rem;
    --gutter: clamp(1rem, 4vw, 1.5rem);

    --r-sm: 0.5rem;
    --r-md: 0.75rem;
    --r-lg: 1.25rem;
    --r-xl: 1.75rem;
    --r-pill: 999px;
    --touch: 2.75rem;
    --ease: 140ms ease;
    --measure: 66ch;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --paper: #111316;
      --surface: #1a1c20;
      --sunken: #23262b;
      --ink: #e8eaed;
      --ink-2: #bfc5cf;
      --ink-3: #a3aab6;
      --rule: #2e323a;
      --ui: #6b7280;
      --accent: #a8c7fa;
      --accent-hover: #c8dcfc;
      --accent-ink: #062e6f;
      --accent-soft: #1d3768;
      --accent-text: #a8c7fa;
      --danger: #f2b8b5;
      --danger-soft: #4a1b18;
      --warn-soft: #3d3010;
      --warn-ink: #f6d98a;

      --tone-good: #7cacf8;
      --tone-good-ink: #0d1726;
      --tone-mid: #f5c661;
      --tone-mid-ink: #1a1405;
      --tone-bad: #f28b78;
      --tone-bad-ink: #2a0d08;
      --tone-neutral: #5b6270;
      --tone-neutral-ink: #e8eaed;

      --focus: #a8c7fa;
      --shadow-1: 0 1px 2px rgb(0 0 0 / 40%);
      --shadow-pop: 0 2px 8px rgb(0 0 0 / 35%), 0 16px 40px -10px rgb(0 0 0 / 60%);
      --map-halo: #111316;
      --glass: rgb(26 28 32 / 90%);
      --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfc5cf' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    }
  }
}

@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--t-base);
    line-height: 1.55;
    font-optical-sizing: auto;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
  }

  h1,
  h2,
  h3,
  p,
  ul,
  ol,
  dl,
  dd,
  figure {
    margin: 0;
  }

  h1,
  h2,
  h3 {
    line-height: 1.2;
    text-wrap: balance;
  }

  h1 {
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
    font-weight: 650;
    letter-spacing: -0.022em;
  }

  h2 {
    font-size: var(--t-md);
    font-weight: 620;
    letter-spacing: -0.012em;
  }

  h3 {
    font-size: var(--t-base);
    font-weight: 600;
  }

  p {
    max-width: var(--measure);
  }

  a {
    color: var(--accent-text);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition: color var(--ease);
  }

  a:hover {
    color: var(--accent-hover);
    text-decoration-thickness: 2px;
  }

  strong {
    font-weight: 650;
  }

  img,
  svg,
  video {
    max-width: 100%;
  }

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

  :focus-visible {
    outline: 2.5px solid var(--focus);
    outline-offset: 2px;
  }

  select {
    appearance: none;
    -webkit-appearance: none;
    background-image: var(--chevron);
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1.125rem 1.125rem;
    padding-right: 2.75rem;
    cursor: pointer;
  }

  ::selection {
    background: var(--accent-soft);
  }

  @media (min-width: 640px) {
    h1 {
      font-size: var(--t-xl);
    }
  }
}

@layer layout {
  .skip-link {
    position: absolute;
    left: var(--s-3);
    top: -4rem;
    z-index: 100;
    padding: var(--s-2) var(--s-4);
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--r-sm);
  }

  .skip-link:focus {
    top: var(--s-3);
  }

  .sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .site-header {
    position: relative;
    z-index: 30;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--rule);
  }

  .site-header__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "search search";
    align-items: center;
    gap: var(--s-2) var(--s-4);
    max-width: 80rem;
    margin: 0 auto;
    padding: var(--s-2) var(--gutter);
  }

  .brand {
    grid-area: brand;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: var(--touch);
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    color: var(--ink);
    font-weight: 700;
    font-size: var(--t-md);
    letter-spacing: -0.01em;
    text-decoration: none;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand:hover {
    color: var(--ink);
  }

  .brand .icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--accent-text);
  }

  .primary-nav {
    display: none;
  }

  .header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: var(--s-2);
  }

  .session-state {
    display: contents;
  }

  .lang-switch {
    display: flex;
    gap: var(--s-1);
  }

  .lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink-2);
    text-decoration: none;
  }

  .lang-switch a[aria-current="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }

  .header-search {
    grid-area: search;
    position: relative;
  }

  @media (min-width: 52rem) {
    .site-header__bar {
      grid-template-columns: max-content 1fr auto;
      grid-template-areas: "brand nav actions";
      gap: var(--s-4) var(--s-5);
    }

    .map-page .site-header__bar {
      grid-template-columns: max-content minmax(14rem, 28rem) 1fr auto;
      grid-template-areas: "brand search nav actions";
    }

    .primary-nav {
      grid-area: nav;
      display: flex;
      gap: var(--s-1);
    }

    .primary-nav a {
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      min-height: var(--touch);
      padding: 0 var(--s-3);
      border-radius: var(--r-md);
      color: var(--ink-2);
      font-weight: 500;
      text-decoration: none;
    }

    .primary-nav a:hover,
    .primary-nav a[aria-current="page"] {
      color: var(--ink);
      background: var(--sunken);
    }
  }

  .page {
    flex: 1;
    width: 100%;
    max-width: 62rem;
    margin: 0 auto;
    padding: var(--s-5) var(--gutter) var(--s-8);
  }

  .page--narrow {
    max-width: 44rem;
  }

  .site-footer {
    border-top: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-1) var(--s-5);
    max-width: 80rem;
    margin: 0 auto;
    padding: var(--s-4) var(--gutter);
  }

  .site-footer a {
    color: var(--ink-2);
  }

  .site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-1) var(--s-4);
  }

  .site-footer__credit {
    margin-left: auto;
  }

  .map-page {
    height: 100vh;
    height: 100dvh;
  }

  .map-page .site-footer {
    display: none;
  }

  .map-main {
    flex: 1;
    min-height: 0;
    position: relative;
  }

  .section {
    padding-top: var(--s-5);
    border-top: 1px solid var(--rule);
  }

  .section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-2) var(--s-4);
  }
}

@layer components {
  .button {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: var(--touch);
    padding: 0 1.25rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
      background-color var(--ease),
      border-color var(--ease),
      color var(--ease),
      transform var(--ease);
  }

  .button:hover {
    background: var(--sunken);
    border-color: var(--ui);
    color: var(--ink);
    text-decoration: none;
  }

  .button:active {
    transform: translateY(1px);
  }

  .button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: var(--shadow-1);
  }

  .button-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--accent-ink);
  }

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

  .button-quiet:hover {
    background: var(--accent-soft);
    color: var(--accent-text);
  }

  .button-danger {
    background: var(--danger-soft);
    border-color: var(--danger);
    color: var(--danger);
  }

  .button-danger:hover {
    background: var(--danger);
    color: var(--paper);
  }

  .button-small {
    min-height: 2.5rem;
    padding: 0 1rem;
    font-size: var(--t-sm);
  }

  .button:disabled {
    opacity: 0.55;
    cursor: progress;
  }

  @media (pointer: coarse) {
    .button-small {
      min-height: var(--touch);
    }
  }

  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-3);
    align-items: center;
  }

  .field {
    display: block;
    font-size: var(--t-sm);
    font-weight: 550;
    color: var(--ink-2);
  }

  .field + .field,
  .field + .notice,
  .notice + .field {
    margin-top: var(--s-4);
  }

  .field input:not([type="hidden"], [type="checkbox"]),
  .field select,
  .field textarea,
  .select,
  .input {
    display: block;
    width: 100%;
    min-height: var(--touch);
    margin-top: var(--s-1);
    padding: var(--s-2) 0.875rem;
    background-color: var(--surface);
    color: var(--ink);
    border: 1px solid var(--ui);
    border-radius: var(--r-md);
    font-size: var(--t-base);
    font-weight: 400;
    max-width: 100%;
    transition:
      border-color var(--ease),
      box-shadow var(--ease);
  }

  .field input:focus,
  .field select:focus,
  .field textarea:focus,
  .select:focus,
  .input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    outline: none;
  }

  .field input[readonly] {
    background: var(--sunken);
  }

  .field-check {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    min-height: var(--touch);
    color: var(--ink);
    font-size: var(--t-base);
    font-weight: 400;
  }

  .field-check input {
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    accent-color: var(--accent);
  }

  fieldset {
    margin: 0;
    padding: var(--s-4);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
  }

  legend {
    padding: 0 var(--s-2);
    color: var(--ink-2);
    font-size: var(--t-sm);
  }

  .notice {
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .subtitle {
    color: var(--ink-2);
    font-size: var(--t-md);
  }

  .form-message {
    min-height: 1.5rem;
    color: var(--ink-2);
    font-size: var(--t-sm);
  }

  .form-message.is-error,
  .is-error {
    color: var(--danger);
    font-weight: 600;
  }

  .callout {
    padding: var(--s-3) var(--s-4);
    background: var(--warn-soft);
    color: var(--warn-ink);
    border-radius: var(--r-lg);
    font-size: var(--t-sm);
  }

  .draft-notice {
    padding: var(--s-3) var(--s-4);
    border: 1px dashed var(--danger);
    border-radius: var(--r-md);
    color: var(--danger);
    font-weight: 600;
    font-size: var(--t-sm);
  }

  .panel {
    padding: var(--s-5);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
  }

  .panel--accent {
    border-color: var(--accent);
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: 0.125rem var(--s-2);
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--sunken);
    color: var(--ink-2);
    font-size: var(--t-xs);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
  }

  .badge-low {
    background: transparent;
    border: 1px dashed var(--ui);
    color: var(--ink-2);
  }

  .badge-medium {
    background: var(--sunken);
    border-color: var(--ui);
    color: var(--ink);
  }

  .badge-high {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-text);
  }

  .badge-excluded,
  .badge-banned {
    background: var(--danger-soft);
    border-color: var(--danger);
    color: var(--danger);
  }

  .badge-realtor {
    background: var(--warn-soft);
    border-color: transparent;
    color: var(--warn-ink);
  }

  .badge-status-occupied {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--accent-text);
  }

  .badge-status-planned,
  .badge-status-construction,
  .badge-status-finishing {
    background: var(--warn-soft);
    border-color: transparent;
    color: var(--warn-ink);
  }

  .badge-status-unconfirmed,
  .badge-pending {
    background: transparent;
    border: 1px dashed var(--ui);
  }

  .district-pluses {
    display: grid;
    gap: var(--s-3);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .district-pluses li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-2);
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    align-items: center;
  }

  .menu {
    position: relative;
  }

  .menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-width: var(--touch);
    min-height: var(--touch);
    padding: 0 var(--s-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    background: var(--surface);
    cursor: pointer;
    list-style: none;
    transition: background-color var(--ease);
  }

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

  .menu > summary:hover,
  .menu[open] > summary {
    background: var(--sunken);
  }

  .menu__avatar {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: var(--t-sm);
    font-weight: 700;
    text-transform: uppercase;
  }

  .menu__name {
    display: none;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--t-sm);
    font-weight: 600;
  }

  .menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + var(--s-2));
    z-index: 40;
    width: min(19rem, calc(100vw - 2 * var(--gutter)));
    padding: var(--s-2);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-pop);
  }

  .menu__who {
    padding: var(--s-2) var(--s-3) var(--s-3);
    border-bottom: 1px solid var(--rule);
    margin-bottom: var(--s-2);
  }

  .menu__who strong {
    display: block;
    overflow-wrap: anywhere;
  }

  .menu__who span,
  .menu__label {
    color: var(--ink-3);
    font-size: var(--t-xs);
  }

  .menu__item {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    width: 100%;
    min-height: var(--touch);
    padding: 0 var(--s-3);
    border: 0;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--ink);
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .menu__item:hover {
    background: var(--sunken);
    color: var(--ink);
    text-decoration: none;
  }

  .menu__item .icon {
    color: var(--ink-3);
  }

  .menu__group {
    margin-top: var(--s-2);
    padding-top: var(--s-2);
    border-top: 1px solid var(--rule);
  }

  .menu__lang {
    display: flex;
    gap: var(--s-1);
    padding: var(--s-1) var(--s-3) var(--s-2);
  }

  .menu__lang a {
    display: inline-grid;
    place-items: center;
    min-width: var(--touch);
    min-height: 2.25rem;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    color: var(--ink-2);
    font-size: var(--t-sm);
    font-weight: 600;
    text-decoration: none;
  }

  .menu__lang a[aria-current="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }

  .menu__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-1) var(--s-4);
    padding: var(--s-2) var(--s-3);
    font-size: var(--t-xs);
  }

  .header-home {
    display: none;
  }

  .header-actions .button,
  .header-actions .lang-switch a,
  .header-actions .menu > summary {
    min-height: 2.5rem;
    padding: 0 var(--s-3);
    font-size: var(--t-sm);
    font-weight: 600;
    line-height: 1;
  }

  .header-actions .menu > summary {
    min-width: 2.5rem;
  }

  .header-actions .lang-switch a {
    min-width: 2.5rem;
    padding: 0 var(--s-2);
  }

  @media (pointer: coarse) {
    .header-actions .button,
    .header-actions .lang-switch a,
    .header-actions .menu > summary {
      min-height: var(--touch);
    }
  }

  @media (min-width: 26rem) {
    .header-home {
      display: inline-flex;
    }
  }

  @media (min-width: 52rem) {
    .menu__name {
      display: inline;
    }
  }

  .login-block {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--s-2);
  }

  .login-bot {
    position: absolute;
    top: calc(100% + var(--s-2));
    right: 0;
    z-index: 40;
    width: min(20rem, calc(100vw - 2 * var(--gutter)));
    padding: var(--s-4);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-pop);
    display: grid;
    gap: var(--s-3);
  }

  .login-bot > * {
    margin: 0;
  }

  .account-banned {
    color: var(--danger);
    font-size: var(--t-sm);
    font-weight: 600;
  }

  .search {
    position: relative;
  }

  .search__field {
    position: relative;
  }

  .search__field .icon {
    position: absolute;
    left: var(--s-4);
    top: 50%;
    translate: 0 -50%;
    color: var(--ink-3);
    pointer-events: none;
  }

  .search input[type="search"] {
    display: block;
    width: 100%;
    min-height: var(--touch);
    padding: 0 var(--s-4) 0 2.75rem;
    background: var(--sunken);
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: var(--t-base);
    transition:
      border-color var(--ease),
      box-shadow var(--ease);
  }

  .search input[type="search"]:focus {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    outline: none;
  }

  .search input[type="search"].is-spotlight {
    animation: spotlight-blink 3.6s ease-out;
  }

  @keyframes spotlight-blink {
    0%, 16%, 32% {
      background-color: var(--tone-mid);
      border-color: var(--tone-mid);
      box-shadow: 0 0 0 4px var(--tone-mid);
    }
    8%, 24% {
      background-color: var(--surface);
      border-color: var(--ui);
      box-shadow: 0 0 0 0 transparent;
    }
    40% {
      background-color: color-mix(in srgb, var(--tone-mid) 70%, var(--surface));
      border-color: var(--tone-mid);
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone-mid) 70%, transparent);
    }
    100% {
      background-color: var(--surface);
      border-color: var(--ui);
      box-shadow: 0 0 0 0 transparent;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .search input[type="search"].is-spotlight {
      animation-name: spotlight-fade;
      animation-duration: 3s;
    }

    @keyframes spotlight-fade {
      0% {
        background-color: var(--tone-mid);
        border-color: var(--tone-mid);
        box-shadow: 0 0 0 4px var(--tone-mid);
      }
      100% {
        background-color: var(--surface);
        border-color: var(--ui);
        box-shadow: 0 0 0 0 transparent;
      }
    }
  }

  .search-results {
    position: absolute;
    top: calc(100% + var(--s-1));
    left: 0;
    right: 0;
    z-index: 50;
    max-height: min(24rem, 60vh);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-pop);
  }

  .search-results:empty {
    display: none;
  }

  .search-list {
    list-style: none;
    margin: 0;
    padding: var(--s-1);
  }

  .search-list a {
    display: block;
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-sm);
    color: var(--ink);
    text-decoration: none;
  }

  .search-list a:hover,
  .search-list a:focus-visible {
    background: var(--sunken);
  }

  .hit-name {
    display: block;
    font-weight: 600;
  }

  .hit-alias {
    display: block;
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .search-empty {
    padding: var(--s-3) var(--s-4);
    color: var(--ink-2);
  }

  .access-search .search-results {
    position: static;
    margin-top: var(--s-2);
  }

  .facts {
    display: grid;
    grid-template-columns: minmax(6rem, max-content) 1fr;
    gap: var(--s-2) var(--s-4);
    font-size: var(--t-sm);
  }

  .facts dt {
    color: var(--ink-3);
  }

  .facts dd {
    overflow-wrap: anywhere;
  }

  .quiet {
    display: block;
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

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

  .table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--t-sm);
    font-variant-numeric: tabular-nums;
  }

  .table th,
  .table td {
    padding: var(--s-3) var(--s-2);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rule);
  }

  .table thead th {
    color: var(--ink-3);
    font-size: var(--t-xs);
    font-weight: 600;
  }

  @media (max-width: 40rem) {
    .table-stack thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }

    .table-stack,
    .table-stack tbody,
    .table-stack tr,
    .table-stack td {
      display: block;
    }

    .table-stack tr {
      padding: var(--s-3) 0;
      border-bottom: 1px solid var(--rule);
    }

    .table-stack td {
      display: flex;
      gap: var(--s-3);
      padding: var(--s-1) 0;
      border: 0;
    }

    .table-stack td::before {
      content: attr(data-label);
      flex: 0 0 6.5rem;
      color: var(--ink-3);
      font-size: var(--t-xs);
    }

    .table-stack td[data-label=""]::before {
      display: none;
    }
  }

  .answers {
    list-style: none;
    padding: 0;
  }

  .answer {
    padding: var(--s-4) 0;
    border-top: 1px solid var(--rule);
  }

  .answers > li:first-child .answer {
    border-top: 0;
    padding-top: 0;
  }

  .answer__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-1) var(--s-3);
    margin-bottom: var(--s-2);
  }

  .answer__title {
    margin-right: auto;
    font-size: var(--t-base);
    font-weight: 650;
  }

  .answer__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-1) var(--s-2);
    color: var(--ink-3);
    font-size: var(--t-xs);
    font-variant-numeric: tabular-nums;
  }

  .answer__value {
    font-size: var(--t-md);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .dist {
    display: flex;
    gap: 2px;
    height: 1.75rem;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--sunken);
  }

  .dist__seg {
    display: grid;
    place-items: center;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 3px;
    overflow: hidden;
    font-size: var(--t-xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .tone-good {
    background: var(--tone-good);
    color: var(--tone-good-ink);
  }

  .tone-mid {
    background: var(--tone-mid);
    color: var(--tone-mid-ink);
  }

  .tone-bad {
    background: var(--tone-bad);
    color: var(--tone-bad-ink);
  }

  .tone-neutral {
    background: var(--tone-neutral);
    color: var(--tone-neutral-ink);
  }

  .dist-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-1) var(--s-4);
    margin-top: var(--s-2);
    padding: 0;
    list-style: none;
    font-size: var(--t-sm);
  }

  .dist-legend li {
    display: inline-flex;
    align-items: baseline;
    gap: var(--s-1);
  }

  .dist-legend li::before {
    content: "";
    flex: none;
    align-self: center;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 2px;
    background: var(--swatch, var(--tone-neutral));
  }

  .dist-legend .is-good {
    --swatch: var(--tone-good);
  }

  .dist-legend .is-mid {
    --swatch: var(--tone-mid);
  }

  .dist-legend .is-bad {
    --swatch: var(--tone-bad);
  }

  .dist-legend b {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .dist-legend .is-own b::after {
    content: " ✓";
    color: var(--accent-text);
  }

  .answer__own {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    margin-top: var(--s-2);
    padding: 0.125rem var(--s-2);
    background: var(--accent-soft);
    color: var(--accent-text);
    border-radius: var(--r-sm);
    font-size: var(--t-sm);
    font-weight: 600;
  }

  .answer__own .icon {
    width: 1rem;
    height: 1rem;
  }

  .answer__more {
    margin-top: var(--s-2);
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .breakdown {
    margin-top: var(--s-2);
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .breakdown-title {
    font-weight: 600;
  }

  .breakdown-line {
    display: block;
  }

  .stale {
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .locked-list {
    list-style: none;
    padding: 0;
  }

  .locked-list li {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    min-height: 2.5rem;
    border-top: 1px solid var(--rule);
    color: var(--ink-2);
  }

  .locked-list li:first-child {
    border-top: 0;
  }

  .locked-list .icon {
    color: var(--ink-3);
  }

  .lock {
    padding: var(--s-5);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
  }

  .lock__title {
    display: flex;
    align-items: center;
    gap: var(--s-2);
  }

  .lock__title .icon {
    color: var(--accent-text);
  }

  .teaser {
    font-weight: 600;
  }

  .env-group + .env-group {
    margin-top: var(--s-4);
  }

  .env-group h3 {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding-bottom: var(--s-2);
    color: var(--ink-2);
    font-size: var(--t-sm);
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .env-group h3 .icon {
    color: var(--accent-text);
  }

  .env-list {
    list-style: none;
    padding: 0;
  }

  .env-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 var(--s-4);
    padding: var(--s-2) 0;
    border-top: 1px solid var(--rule);
    font-variant-numeric: tabular-nums;
  }

  .env-row__value {
    font-weight: 600;
  }

  .env-row .quiet {
    flex-basis: 100%;
    font-size: var(--t-xs);
  }

  .photo-strip {
    display: flex;
    gap: var(--s-3);
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) var(--s-2);
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--gutter);
  }

  .photo-slot {
    flex: 0 0 min(14rem, 62%);
    scroll-snap-align: start;
  }

  .photo-slot h3 {
    font-size: var(--t-sm);
  }

  .photo-slot img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-md);
    background: var(--sunken);
  }

  .photo-slot__empty {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: var(--s-3);
    border: 1px dashed var(--ui);
    border-radius: var(--r-md);
    color: var(--ink-3);
    font-size: var(--t-sm);
    text-align: center;
  }

  .photo-meta,
  .photo-empty {
    margin-top: var(--s-1);
    color: var(--ink-3);
    font-size: var(--t-xs);
  }

  .photo-slot .button {
    margin-top: var(--s-2);
  }

  .photo-complaint {
    margin-top: var(--s-2);
  }

  .photo-complaint summary {
    list-style: none;
    cursor: pointer;
  }

  .photo-complaint summary::-webkit-details-marker {
    display: none;
  }

  .photo-complaint-form {
    display: grid;
    gap: var(--s-2);
    margin-top: var(--s-2);
  }

  .photo-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--r-md);
    background: none;
    cursor: zoom-in;
  }

  .badge-confirmed {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    background: var(--tone-good);
    color: var(--tone-good-ink);
  }

  .photo-count {
    position: absolute;
    right: var(--s-2);
    bottom: var(--s-2);
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: 0.125rem var(--s-2);
    border-radius: var(--r-pill);
    background: rgb(0 0 0 / 68%);
    color: #fff;
    font-size: var(--t-xs);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .capture-uploads {
    display: grid;
    gap: var(--s-3);
    padding: 0;
    list-style: none;
  }

  .capture-uploads li {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: var(--s-2) var(--s-3);
    align-items: center;
  }

  .capture-uploads img {
    grid-row: span 2;
    width: 4.5rem;
    height: 3.5rem;
    border-radius: var(--r-sm);
    background: var(--sunken);
    object-fit: cover;
  }

  .capture-uploads .button {
    justify-self: start;
  }

  .photo-complaint-form select {
    min-height: var(--touch);
    padding: 0 var(--s-2);
    background: var(--surface);
    border: 1px solid var(--ui);
    border-radius: var(--r-md);
  }

  @media (min-width: 52rem) {
    .photo-strip {
      flex-wrap: wrap;
      overflow: visible;
      margin: 0;
      padding: 0;
    }

    .photo-slot {
      flex-basis: calc((100% - 3 * var(--s-3)) / 4);
    }
  }

  .choices {
    display: grid;
    gap: var(--s-2);
  }

  .choice-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--s-3);
    min-height: 3.25rem;
    padding: var(--s-2) var(--s-4);
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition:
      background-color var(--ease),
      border-color var(--ease),
      color var(--ease);
  }

  .choice-btn::before {
    content: "";
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--ui);
    border-radius: 50%;
    background: transparent;
    transition:
      background-color var(--ease),
      border-color var(--ease);
  }

  .choice-btn:hover {
    background: var(--sunken);
  }

  .choice-btn.is-selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 650;
  }

  .choice-btn.is-selected::before {
    border-color: var(--accent-ink);
    background: radial-gradient(circle, var(--accent-ink) 0 38%, transparent 42%);
  }

  .question.is-stale .choice-btn.is-selected {
    background: var(--accent-soft);
    border: 2px dashed var(--accent);
    color: var(--ink);
  }

  .question.is-stale .choice-btn.is-selected::before {
    border-color: var(--accent);
    background: radial-gradient(circle, var(--accent) 0 38%, transparent 42%);
  }

  .question[data-multiple] .choice-btn::before {
    border-radius: var(--r-sm);
  }

  .question[data-multiple] .choice-btn.is-selected::before {
    background: linear-gradient(var(--accent-ink), var(--accent-ink)) center / 50% 50% no-repeat;
  }

  .question.is-pending .choice-btn {
    opacity: 0.7;
  }

  @media (min-width: 40rem) {
    .choices--inline {
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 1fr);
      gap: 0;
    }

    .choices--inline > .choice-btn {
      justify-content: center;
      border-radius: 0;
      margin-left: -1px;
      text-align: center;
    }

    .choices--inline > .choice-btn:first-child {
      border-radius: var(--r-md) 0 0 var(--r-md);
      margin-left: 0;
    }

    .choices--inline > .choice-btn:last-child {
      border-radius: 0 var(--r-md) var(--r-md) 0;
    }

    .choices--inline > .choice-btn:only-child {
      border-radius: var(--r-md);
    }

    .choices--inline > .choice-btn.is-selected {
      z-index: 1;
    }

    .choices--inline > .choice-btn.is-selected + .choice-btn.is-selected {
      border-left-color: var(--accent-ink);
    }
  }

  .question {
    padding: var(--s-4) 0;
    border-top: 1px solid var(--rule);
  }

  .question-title {
    margin-bottom: var(--s-3);
    font-weight: 650;
  }

  .question-status,
  .question-error {
    min-height: 1.25rem;
    margin-top: var(--s-2);
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .question-status {
    display: grid;
    gap: var(--s-1);
    justify-items: start;
  }

  .question-error {
    min-height: 0;
    color: var(--danger);
    font-weight: 600;
  }

  .saved-mark {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    color: var(--accent-text);
    font-weight: 600;
    animation: saved-fade 3.2s ease forwards;
  }

  @keyframes saved-fade {
    0%,
    75% {
      opacity: 1;
    }

    100% {
      opacity: 0;
    }
  }

  .speed,
  .note {
    margin-top: var(--s-3);
  }

  .survey-saved {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: var(--s-2) 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    color: var(--ink-2);
    font-size: var(--t-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .survey-invite {
    color: var(--accent-text);
    white-space: nowrap;
  }

  .flood-more > summary {
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    padding: 0 var(--s-4);
    border: 1px solid var(--ui);
    border-radius: var(--r-md);
    background: var(--surface);
    font-weight: 600;
    cursor: pointer;
  }

  .flood-list {
    list-style: none;
    padding: 0;
  }

  .flood-item {
    padding: var(--s-3) 0;
    border-top: 1px solid var(--rule);
  }

  .flood-item__sources {
    font-size: var(--t-sm);
  }

  .survey-access {
    display: grid;
    gap: var(--s-3);
    justify-items: start;
  }

  .survey > .survey-access:not(:has(*)) {
    display: none;
  }

  .survey > .section:first-child,
  .survey > .survey-access:not(:has(*)) + .section {
    padding-top: 0;
    border-top: 0;
  }

  .survey-access:has(> p) {
    padding: var(--s-4);
    background: var(--warn-soft);
    color: var(--warn-ink);
    border-radius: var(--r-md);
  }

  .survey-access.is-granted {
    background: var(--accent-soft);
    color: var(--accent-text);
  }

  .survey-access.is-granted,
  .survey-access.is-other {
    position: sticky;
    top: var(--s-3);
    z-index: 20;
    box-shadow: var(--shadow-pop);
  }

  .survey-access .actions {
    margin: 0;
  }

  .slot-list {
    list-style: none;
    padding: 0;
  }

  .slot-list li {
    padding: var(--s-4) 0;
    border-top: 1px solid var(--rule);
  }

  .slot-list h3 {
    font-size: var(--t-md);
  }

  .slot-list h3 a {
    display: block;
    text-decoration: none;
  }

  .slot-list p + p {
    margin-top: var(--s-1);
  }

  .capture-actions.is-busy .shutter {
    opacity: 0.6;
    pointer-events: none;
  }

  .capture-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-3);
  }

  .capture-actions .shutter[data-live-open]:not([hidden]) {
    flex: 0 0 4rem;
    width: 4rem;
    padding-inline: 0;
  }

  .capture-actions .shutter {
    position: static;
    flex: 1 1 8rem;
    width: auto;
  }

  .form-message:empty {
    display: none;
  }

  .live {
    display: grid;
    gap: var(--s-3);
  }

  .live video {
    display: block;
    width: 100%;
    max-height: 65vh;
    border-radius: var(--r-lg);
    background: #000;
    object-fit: contain;
  }

  .viewfinder video {
    display: block;
    width: 100%;
    max-height: 70vh;
    border-radius: var(--r-lg);
    background: #000;
    object-fit: contain;
  }

  .shutter {
    position: sticky;
    bottom: var(--s-4);
    width: 100%;
    min-height: 3.5rem;
    font-size: var(--t-md);
  }

  .own-thumb {
    display: block;
    width: 4.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: var(--r-sm);
  }

  .review-thumb {
    display: block;
    width: 100%;
    max-width: 16rem;
    border-radius: var(--r-md);
  }

  .picker-map,
  .building-map {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    background: var(--sunken);
  }

  .picker-map {
    height: 20rem;
  }

  .building-map {
    height: 15rem;
  }

  .map-unavailable {
    margin: 0;
    padding: var(--s-4);
    color: var(--ink-2);
    background: var(--sunken);
    font-size: var(--t-sm);
  }

  .picker-map .map-unavailable {
    height: 100%;
  }

  .candidates ul {
    margin: var(--s-2) 0;
    padding-left: var(--s-5);
  }

  .map {
    width: 100%;
    height: 100%;
  }

  .map-page #map {
    background: #eef1f5 url("/static/74cdcd9afd32/map-placeholder-light.webp") center / auto no-repeat;
  }

  @media (prefers-color-scheme: dark) {
    .map-page #map {
      background-color: #1a1c20;
      background-image: url("/static/74cdcd9afd32/map-placeholder-dark.webp");
    }
  }

  .map-overlay {
    position: absolute;
    top: var(--s-3);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
    pointer-events: none;
  }

  .map-overlay > * {
    pointer-events: auto;
  }

  .top-title {
    display: flex;
    align-items: center;
    gap: var(--s-3);
  }

  .top-title .icon {
    width: 1.5em;
    height: 1.5em;
    flex: none;
    color: var(--accent-text);
  }

  .top-promo {
    padding: var(--s-4);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
    background: var(--sunken);
  }

  .top-rules ul {
    display: grid;
    gap: var(--s-2);
    padding-left: var(--s-5);
  }

  .top-promo__title {
    font-size: var(--t-lg);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.25;
  }

  .map-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
  }

  .map-modes {
    display: flex;
    gap: var(--s-1);
    min-width: 0;
    height: var(--touch);
    margin: 0;
    padding: var(--s-1);
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--rule);
    border-radius: var(--touch);
    box-shadow: var(--shadow-pop);
  }

  .map-modes__option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: var(--s-3);
    border-radius: var(--touch);
    color: var(--ink);
    font-size: var(--t-sm);
    font-weight: 600;
    cursor: pointer;
  }

  .map-modes__option input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  .map-modes__option:has(input:checked) {
    background: var(--accent);
    color: var(--accent-ink);
  }

  .map-modes__option:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .map-sheet.map-prices {
    width: min(30rem, 100%);
    max-height: min(30rem, 52dvh);
  }

  @media (max-width: 40rem) {
    .map-sheet.map-prices {
      max-height: calc(100dvh - 12rem);
      gap: var(--s-2);
      padding: var(--s-3);
    }

    .map-prices .map-prices__body {
      gap: var(--s-2);
    }

  }

  .map-sheet.map-prices:has(.map-prices__summary[aria-expanded="false"]) {
    padding-block: 0;
    padding-inline: var(--s-4);
    border-radius: calc(var(--touch) / 2 + 1px);
  }

  .map-prices__body {
    display: grid;
    gap: var(--s-3);
    min-width: 0;
  }

  .map-prices__body[hidden],
  .map-prices [data-prices-status]:empty {
    display: none;
  }

  .map-prices__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-2);
    min-height: var(--touch);
    padding: 0;
    background: none;
    border: 0;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
  }

  .map-prices__summary::after {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .map-prices__summary[aria-expanded="true"]::after {
    transform: rotate(-135deg);
  }

  .map-prices__collapse {
    justify-self: stretch;
  }

  @media (max-width: 40rem) {
    .map-overlay > .map-bar {
      flex-wrap: nowrap;
      align-self: stretch;
    }

    .map-bar .map-fab {
      flex: none;
    }

    .map-bar .map-modes {
      flex: 1 1 auto;
      gap: 0;
    }

    .map-bar .map-modes__option {
      flex: 1 1 auto;
      min-width: 0;
      padding-inline: var(--s-1);
      font-size: var(--t-xs);
      white-space: nowrap;
    }
  }

  .map-sheet__budget {
    display: grid;
    gap: var(--s-3);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .map-sheet__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
  }

  .map-sheet__pair input {
    width: 100%;
    min-width: 0;
  }

  .house-prices,
  .house-prices__row {
    display: grid;
    gap: var(--s-2);
    font-size: var(--t-sm);
  }

  .is-price-mode .map-legend {
    display: none;
  }

  .map-fab {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--touch);
    height: var(--touch);
    padding: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--rule);
    border-radius: 50%;
    box-shadow: var(--shadow-pop);
    color: var(--ink);
    cursor: pointer;
  }

  .map-fab__label {
    display: none;
  }

  @media (min-width: 52rem) and (pointer: fine) {
    :root:not(.is-miniapp) .map-fab:has(.map-fab__label) {
      display: inline-flex;
      align-items: center;
      gap: var(--s-2);
      width: auto;
      padding-inline: var(--s-4);
      border-radius: var(--touch);
      font-weight: 600;
    }

    :root:not(.is-miniapp) .map-fab__label {
      display: inline;
    }
  }

  .map-fab--top {
    color: var(--accent-text);
    text-decoration: none;
  }

  .map-fab[aria-expanded="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
  }

  .map-fab__dot {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--accent);
    border: 2px solid var(--surface);
    border-radius: 50%;
  }

  .map-sheet {
    position: relative;
    display: grid;
    gap: var(--s-3);
    width: min(24rem, 100%);
    max-height: min(26rem, 48dvh);
    overflow-y: auto;
    padding: var(--s-4) var(--s-7) var(--s-4) var(--s-4);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-pop);
    font-size: var(--t-sm);
  }

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

  .map-sheet__close {
    position: absolute;
    top: var(--s-1);
    right: var(--s-1);
    display: grid;
    place-items: center;
    width: var(--touch);
    height: var(--touch);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--r-md);
    color: var(--ink-3);
    cursor: pointer;
  }

  .map-sheet__close:hover {
    background: var(--sunken);
    color: var(--ink);
  }

  .map-sheet__title {
    font-weight: 700;
  }

  .map-sheet__bot {
    display: grid;
    gap: var(--s-2);
    padding-top: var(--s-3);
    border-top: 1px solid var(--rule);
  }

  .map-sheet__row {
    display: grid;
    gap: var(--s-1);
    color: var(--ink-2);
    font-weight: 600;
  }

  .map-sheet__row select {
    width: 100%;
    min-width: 0;
  }

  .map-sheet__check {
    display: flex;
    align-items: flex-start;
    gap: var(--s-2);
    min-height: var(--touch);
    font-weight: 600;
  }

  .map-sheet__check small {
    display: block;
    font-size: var(--t-xs);
    font-weight: 400;
  }

  .map-sheet.intro {
    width: min(34rem, 100%);
  }

  .intro__title {
    font-size: var(--t-base);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
  }

  .intro__lead {
    font-size: var(--t-sm);
    font-weight: 450;
    line-height: 1.45;
    color: var(--ink-2);
  }

  @media (min-width: 40rem) {
    .intro__lead {
      font-size: var(--t-base);
    }
  }

  .intro .actions {
    margin-top: var(--s-2);
    gap: var(--s-2);
  }

  .map-legend {
    position: absolute;
    left: var(--gutter);
    bottom: var(--s-6);
    z-index: 2;
    padding: var(--s-3);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
    font-size: var(--t-xs);
  }

  .map-legend strong {
    display: block;
    margin-bottom: var(--s-1);
    font-size: var(--t-xs);
  }

  .legend-row {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-1);
  }

  .legend-row--toggle {
    width: 100%;
    margin-top: var(--s-2);
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .legend-row--toggle.is-off {
    color: var(--ink-3);
    text-decoration: line-through;
  }

  .legend-row--toggle.is-off .legend-swatch {
    opacity: 0.25;
  }

  .legend-swatch {
    flex: none;
    width: 0.8rem;
    height: 0.8rem;
    border: 1.5px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--ui);
  }

  .map-lock {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: var(--s-6);
    z-index: 3;
    max-width: 28rem;
    padding: var(--s-3) var(--s-4);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
    font-size: var(--t-sm);
  }

  .cluster-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--cluster-bg, var(--accent));
    color: var(--accent-ink);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cluster-bg, var(--accent)) 28%, transparent);
    font-size: var(--t-sm);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: transform var(--ease);
  }

  .cluster-marker.is-dark-ink {
    color: #1d1b16;
  }

  .cluster-marker.is-light-ink {
    color: #ffffff;
  }

  .cluster-marker.is-faded {
    background: color-mix(in srgb, var(--cluster-bg) 35%, var(--surface));
    color: var(--ink);
  }

  .cluster-marker:hover {
    transform: scale(1.06);
  }

  .popup-number {
    display: inline-block;
    margin-right: var(--s-2);
    padding: 0 var(--s-2);
    border-radius: var(--r-sm);
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .popup-address {
    display: block;
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .admin-item {
    padding: var(--s-4);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
  }

  .admin-item + .admin-item {
    margin-top: var(--s-3);
  }

  .admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--s-2);
    margin-top: var(--s-3);
  }

  .admin-counter {
    font-weight: 650;
  }

  .admin-actions summary {
    list-style: none;
    cursor: pointer;
  }

  .admin-actions summary::-webkit-details-marker {
    display: none;
  }

  .filter-tabs,
  .pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
  }

  .photo-case-body {
    display: grid;
    gap: var(--s-4);
  }

  .case-photo {
    display: block;
    width: 100%;
    max-width: 24rem;
    border-radius: var(--r-md);
  }

  .position-map {
    width: 7.5rem;
    height: 7.5rem;
  }

  .position-bg {
    fill: var(--sunken);
  }

  .position-accuracy {
    fill: color-mix(in srgb, var(--accent) 20%, transparent);
    stroke: var(--accent);
  }

  .position-building {
    fill: var(--ink-2);
  }

  .position-shot {
    fill: var(--tone-bad);
  }

  .complaint-list {
    padding-left: var(--s-4);
  }

  .ban-confirm {
    margin-top: var(--s-3);
    padding: var(--s-3);
    background: var(--danger-soft);
    border-radius: var(--r-md);
  }

  .crumbs {
    font-size: var(--t-sm);
  }

  .crumbs a {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    min-height: var(--touch);
    text-decoration: none;
  }
}

@layer pages {

  .building-head .eyebrow {
    color: var(--ink-3);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .building-head .address {
    color: var(--ink-2);
    font-size: var(--t-md);
  }

  .building-head .actions {
    margin-top: var(--s-4);
  }

  .overview {
    display: grid;
    gap: var(--s-5);
  }

  .overview .building-map-card h2 {
    margin-bottom: var(--s-2);
    font-size: var(--t-sm);
    color: var(--ink-3);
    font-weight: 600;
  }

  @media (min-width: 52rem) {
    .overview {
      grid-template-columns: 1fr 1fr;
      align-items: start;
    }

    .building-page-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
      gap: var(--s-7);
      align-items: start;
    }
  }

  .cta {
    display: grid;
    gap: var(--s-3);
    justify-items: start;
    padding: var(--s-4) var(--s-5);
    background: var(--accent-soft);
    border-radius: var(--r-lg);
  }

  .cta h3 {
    font-size: var(--t-md);
  }

  .cta p {
    color: var(--ink-2);
  }

  .footnote {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    align-items: center;
    padding-top: var(--s-4);
    border-top: 1px solid var(--rule);
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .match-percent {
    font-size: var(--t-lg);
    font-variant-numeric: tabular-nums;
  }

  .match-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-2) var(--s-3);
  }

  .match-lists {
    display: grid;
    gap: var(--s-4);
  }

  @media (min-width: 40rem) {
    .match-lists {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
  }

  .inline-form .select {
    width: auto;
    margin-top: 0;
  }

  .access-options {
    display: grid;
    gap: var(--s-4);
  }

  @media (min-width: 52rem) {
    .access-options {
      grid-template-columns: 1fr 1fr;
      align-items: start;
    }
  }

  .profile-grid {
    display: grid;
    gap: var(--s-5);
  }

  .center-page {
    display: grid;
    justify-items: start;
    gap: var(--s-4);
    padding-top: var(--s-7);
  }

  .center-page .code {
    color: var(--accent-text);
    font-size: var(--t-xl);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .legal p + p {
    margin-top: var(--s-4);
  }

  .legal {
    font-size: var(--t-base);
  }

  .top-rank {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .prices-tools {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    align-items: flex-end;
  }

  .prices-deals {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin: 0;
    padding: 0;
    border: 0;
  }

  .prices-deals label {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: var(--touch);
    padding: 0 var(--s-3);
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    background: var(--surface);
    cursor: pointer;
  }

  @media (max-width: 40rem) {
    .map-prices .prices-deals {
      flex-wrap: nowrap;
      min-width: 0;
      max-width: 100%;
      overflow-x: auto;
      padding-bottom: var(--s-1);
    }

    .map-prices .prices-deals label {
      flex: none;
    }
  }

  .prices-deals label:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  .price-slider {
    flex: 1 1 18rem;
    min-width: 0;
  }

  .price-slider__fields {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
  }

  .price-slider__field {
    display: flex;
    flex: 1 1 8rem;
    flex-direction: column;
    gap: var(--s-1);
    color: var(--ink-2);
    font-size: var(--t-sm);
  }

  .price-slider__track {
    position: relative;
    height: var(--touch);
    margin: var(--s-2) 0.875rem 0;
    background: linear-gradient(var(--sunken), var(--sunken)) center / 100% 0.5rem no-repeat;
    border-radius: var(--r-pill);
    cursor: pointer;
    touch-action: none;
  }

  .price-slider__window {
    position: absolute;
    top: calc(50% - 0.5rem);
    height: 1rem;
    border-radius: var(--r-pill);
    background: var(--accent);
    cursor: grab;
    touch-action: none;
  }

  .price-slider__edge {
    position: absolute;
    top: calc(50% - 0.875rem);
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-1);
    cursor: ew-resize;
    touch-action: none;
  }

  .price-slider__edge--low {
    left: -0.875rem;
  }

  .price-slider__edge--high {
    right: -0.875rem;
  }

  .price-slider__edge:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .prices-legend {
    min-height: calc(2lh + var(--s-2));
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-3);
    align-items: center;
    color: var(--ink-2);
    font-size: var(--t-sm);
  }

  @media (max-width: 30rem) {
    .prices-legend {
      min-height: calc(3lh + 2 * var(--s-2));
    }
  }

  .prices-legend__item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
  }

  .prices-legend__swatch {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--rule);
    border-radius: 0.25rem;
  }

  .map-page .maplibregl-popup {
    z-index: 4;
  }

  .prices-popup {
    color: var(--ink);
    font-size: var(--t-sm);
  }

  .prices-popup p {
    margin: 0;
  }

  .prices-popup__title {
    font-weight: 600;
  }

  .prices-house {
    max-height: min(60vh, 28rem);
    overflow-y: auto;
  }

  .prices-house__medians,
  .prices-house__flats {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .prices-house__subscribe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-3);
  }

  .prices-house__subscribe > p {
    flex: 1 1 12rem;
    margin: 0;
  }

  .prices-flat__card {
    display: flex;
    gap: var(--s-3);
    align-items: flex-start;
  }

  .prices-flat__card--toggle {
    cursor: pointer;
  }

  .prices-flat__card--toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .prices-flat__toggle {
    color: var(--accent);
    font-size: 0.85em;
  }

  .prices-flat__sources {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85em;
    overflow-wrap: anywhere;
  }

  .prices-flat__photo {
    flex: 0 0 4.5rem;
    height: 3.5rem;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--sunken);
  }

  .prices-flat__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .prices-flat__facts {
    min-width: 0;
  }

  .prices-flat__price {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .prices-flat__verdict--cheaper {
    color: var(--tone-good);
  }

  .prices-flat__verdict--pricier {
    color: var(--danger);
  }

  .prices-flat__verdict--typical,
  .prices-flat__verdict--none {
    color: var(--ink-3);
  }

  .prices-key {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: var(--s-3);
    margin: 0;
  }

  .prices-key__item {
    padding: var(--s-3) var(--s-4);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
  }

  .prices-key dt {
    color: var(--ink-3);
    font-size: var(--t-sm);
  }

  .prices-key dd {
    margin: 0;
    font-size: var(--t-lg);
    font-weight: 600;
  }

  .prices-key dd.prices-key__note {
    color: var(--ink-3);
    font-size: var(--t-sm);
    font-weight: 400;
  }

  .prices-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-4);
    align-items: flex-end;
  }

  .prices-controls .map-modes {
    flex: none;
    max-width: 100%;
  }

  .prices-controls__field {
    flex: 1 1 12rem;
    min-width: 0;
    font-size: var(--t-sm);
  }

  .prices-chart {
    min-width: 0;
  }

  .prices-chart__svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .prices-chart__line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linejoin: round;
  }

  .prices-chart__band {
    fill: var(--accent-soft);
    stroke: none;
  }

  .prices-chart__dot {
    fill: var(--accent);
  }

  .prices-chart__grid {
    stroke: var(--rule);
    stroke-width: 1;
  }

  .prices-chart__label {
    fill: var(--ink-3);
    font-size: var(--t-xs);
  }

  .prices-table caption {
    padding-bottom: var(--s-2);
    font-weight: 600;
    text-align: left;
  }

  .prices-table th[scope="row"] {
    font-weight: 600;
    white-space: nowrap;
  }

  .prices-table td {
    white-space: nowrap;
  }

  .prices-rank,
  .prices-bars {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .prices-rank li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-3);
    padding: var(--s-2) var(--s-3);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
  }

  .prices-rank__name {
    flex: 1 1 8rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .prices-rank__value {
    flex: 0 1 auto;
    font-weight: 600;
    text-align: right;
  }

  .prices-bars {
    display: grid;
    grid-template-columns: max-content minmax(2rem, 1fr) max-content;
    gap: var(--s-2) var(--s-3);
  }

  .prices-bars__row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
  }

  .prices-bars__label {
    white-space: nowrap;
  }

  .prices-bars__track {
    height: 0.75rem;
    overflow: hidden;
    background: var(--sunken);
    border-radius: var(--r-pill);
  }

  .prices-bars__fill {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: var(--r-pill);
  }

  .prices-bars__count {
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

  .prices-houses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: var(--s-5);
  }

}

@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  [hidden] {
    display: none;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      transition-duration: 0.01ms;
      animation-duration: 0.01ms;
      scroll-behavior: auto;
    }

    .saved-mark {
      animation: none;
    }
  }
}

@layer components {
  .pct-0 { flex-basis: 0%; }
  .pct-1 { flex-basis: 1%; }
  .pct-2 { flex-basis: 2%; }
  .pct-3 { flex-basis: 3%; }
  .pct-4 { flex-basis: 4%; }
  .pct-5 { flex-basis: 5%; }
  .pct-6 { flex-basis: 6%; }
  .pct-7 { flex-basis: 7%; }
  .pct-8 { flex-basis: 8%; }
  .pct-9 { flex-basis: 9%; }
  .pct-10 { flex-basis: 10%; }
  .pct-11 { flex-basis: 11%; }
  .pct-12 { flex-basis: 12%; }
  .pct-13 { flex-basis: 13%; }
  .pct-14 { flex-basis: 14%; }
  .pct-15 { flex-basis: 15%; }
  .pct-16 { flex-basis: 16%; }
  .pct-17 { flex-basis: 17%; }
  .pct-18 { flex-basis: 18%; }
  .pct-19 { flex-basis: 19%; }
  .pct-20 { flex-basis: 20%; }
  .pct-21 { flex-basis: 21%; }
  .pct-22 { flex-basis: 22%; }
  .pct-23 { flex-basis: 23%; }
  .pct-24 { flex-basis: 24%; }
  .pct-25 { flex-basis: 25%; }
  .pct-26 { flex-basis: 26%; }
  .pct-27 { flex-basis: 27%; }
  .pct-28 { flex-basis: 28%; }
  .pct-29 { flex-basis: 29%; }
  .pct-30 { flex-basis: 30%; }
  .pct-31 { flex-basis: 31%; }
  .pct-32 { flex-basis: 32%; }
  .pct-33 { flex-basis: 33%; }
  .pct-34 { flex-basis: 34%; }
  .pct-35 { flex-basis: 35%; }
  .pct-36 { flex-basis: 36%; }
  .pct-37 { flex-basis: 37%; }
  .pct-38 { flex-basis: 38%; }
  .pct-39 { flex-basis: 39%; }
  .pct-40 { flex-basis: 40%; }
  .pct-41 { flex-basis: 41%; }
  .pct-42 { flex-basis: 42%; }
  .pct-43 { flex-basis: 43%; }
  .pct-44 { flex-basis: 44%; }
  .pct-45 { flex-basis: 45%; }
  .pct-46 { flex-basis: 46%; }
  .pct-47 { flex-basis: 47%; }
  .pct-48 { flex-basis: 48%; }
  .pct-49 { flex-basis: 49%; }
  .pct-50 { flex-basis: 50%; }
  .pct-51 { flex-basis: 51%; }
  .pct-52 { flex-basis: 52%; }
  .pct-53 { flex-basis: 53%; }
  .pct-54 { flex-basis: 54%; }
  .pct-55 { flex-basis: 55%; }
  .pct-56 { flex-basis: 56%; }
  .pct-57 { flex-basis: 57%; }
  .pct-58 { flex-basis: 58%; }
  .pct-59 { flex-basis: 59%; }
  .pct-60 { flex-basis: 60%; }
  .pct-61 { flex-basis: 61%; }
  .pct-62 { flex-basis: 62%; }
  .pct-63 { flex-basis: 63%; }
  .pct-64 { flex-basis: 64%; }
  .pct-65 { flex-basis: 65%; }
  .pct-66 { flex-basis: 66%; }
  .pct-67 { flex-basis: 67%; }
  .pct-68 { flex-basis: 68%; }
  .pct-69 { flex-basis: 69%; }
  .pct-70 { flex-basis: 70%; }
  .pct-71 { flex-basis: 71%; }
  .pct-72 { flex-basis: 72%; }
  .pct-73 { flex-basis: 73%; }
  .pct-74 { flex-basis: 74%; }
  .pct-75 { flex-basis: 75%; }
  .pct-76 { flex-basis: 76%; }
  .pct-77 { flex-basis: 77%; }
  .pct-78 { flex-basis: 78%; }
  .pct-79 { flex-basis: 79%; }
  .pct-80 { flex-basis: 80%; }
  .pct-81 { flex-basis: 81%; }
  .pct-82 { flex-basis: 82%; }
  .pct-83 { flex-basis: 83%; }
  .pct-84 { flex-basis: 84%; }
  .pct-85 { flex-basis: 85%; }
  .pct-86 { flex-basis: 86%; }
  .pct-87 { flex-basis: 87%; }
  .pct-88 { flex-basis: 88%; }
  .pct-89 { flex-basis: 89%; }
  .pct-90 { flex-basis: 90%; }
  .pct-91 { flex-basis: 91%; }
  .pct-92 { flex-basis: 92%; }
  .pct-93 { flex-basis: 93%; }
  .pct-94 { flex-basis: 94%; }
  .pct-95 { flex-basis: 95%; }
  .pct-96 { flex-basis: 96%; }
  .pct-97 { flex-basis: 97%; }
  .pct-98 { flex-basis: 98%; }
  .pct-99 { flex-basis: 99%; }
  .pct-100 { flex-basis: 100%; }
}

.lang-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  flex: none;
  padding: var(--s-1) var(--gutter);
  background: var(--sunken);
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
}

.lang-hint-closed .lang-hint,
.lang-hint[hidden] {
  display: none;
}

.lang-hint__text {
  margin: 0;
  min-width: 0;
}

.lang-hint__close {
  flex: none;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.checkin {
  background: var(--sunken);
  border-bottom: 1px solid var(--rule);
}

.checkin__inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: var(--s-3) var(--gutter);
}

.checkin__title {
  font-weight: 700;
}

.checkin .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.question-title .flip {
  color: var(--accent-text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.viewing-checks {
  margin-top: var(--s-4);
}

.viewing-checks ul {
  margin: var(--s-2) 0 var(--s-3);
  padding-left: var(--s-5);
}

.viewing-checks li + li {
  margin-top: var(--s-1);
}

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

.compare th,
.compare td {
  min-width: 9rem;
  vertical-align: top;
}

.narrow-only {
  display: none;
}

.map-page:has(.map-sheet:not([hidden])) .rage {
  display: none;
}

@media (max-width: 30rem) {
  .wide-only {
    display: none;
  }

  main p > .button:only-child,
  main .actions > .button,
  main .capture-actions > .button {
    display: flex;
    width: 100%;
  }

  main .actions,
  main .capture-actions {
    flex-direction: column;
    align-items: stretch;
  }

  main .capture-actions[data-capture-picker] {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  main .capture-actions[data-capture-picker] > .shutter[data-live-open]:not([hidden]) {
    display: flex;
    flex: 0 0 4rem;
    width: 4rem;
  }

  main .capture-actions[data-capture-picker] > .shutter {
    flex: 1 1 0;
    width: auto;
  }

  .narrow-only {
    display: inline;
  }

  .lang-switch a[aria-current="true"] {
    display: none;
  }

  .intro .notice {
    font-size: var(--t-xs);
  }

  .intro .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .intro .actions .button {
    min-width: 0;
    padding: 0 var(--s-3);
  }

}

.criteria-panel {
  display: grid;
  gap: var(--s-1);
  max-width: 20rem;
  padding: var(--s-3);
  border: 1px solid var(--ui);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  font-size: var(--t-sm);
}

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

.criteria-panel legend {
  font-weight: 700;
}

.criteria-purpose {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.low-trust {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: help;
}

.low-trust:hover::after,
.low-trust:focus::after {
  content: attr(title);
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 10;
  width: max-content;
  max-width: 16rem;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: normal;
}

.rage {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  box-shadow: 0 6px 18px rgb(198 40 40 / 45%);
  cursor: pointer;
  animation: rage-boil 2.4s ease-in-out infinite;
}

.rage .icon {
  width: 2rem;
  height: 2rem;
  stroke-width: 2;
}

.rage:hover {
  background: #a61e1e;
}

.map-page .rage {
  right: calc(var(--s-3) + 1.4375rem - 1.75rem);
  bottom: calc(13.5rem + env(safe-area-inset-bottom, 0px));
}

@keyframes rage-boil {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

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

.house-lead {
  padding: var(--s-4);
  border-radius: var(--r-xl);
  background: var(--accent-soft);
  color: var(--ink);
}

.house-lead h2 {
  font-size: var(--t-md);
}

.cta-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 24;
  display: flex;
  justify-content: center;
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.cta-bar.is-away {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cta-bar .button {
  width: 100%;
  max-width: 28rem;
}

.has-cta .site-footer {
  padding-bottom: 5.5rem;
}

.has-cta .rage {
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.rage-dialog {
  max-width: 24rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}

.rage-dialog::backdrop {
  background: rgb(0 0 0 / 45%);
}

.viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0d0e10;
  color: #f1f3f6;
  color-scheme: dark;
}

.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.viewer::backdrop {
  background: rgb(0 0 0 / 80%);
}

.viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: calc(var(--s-3) + env(safe-area-inset-top, 0px)) var(--s-4) var(--s-3);
}

.viewer__position {
  font-variant-numeric: tabular-nums;
}

.viewer__track {
  display: flex;
  min-height: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.viewer__track::-webkit-scrollbar {
  display: none;
}

.viewer__slide {
  display: grid;
  flex: 0 0 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--s-4);
  min-height: 0;
  margin: 0;
  padding: 0 var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.viewer__slide img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: contain;
}

.viewer__caption {
  display: grid;
  gap: var(--s-3);
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.viewer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s-3);
}

.viewer__actions .photo-complaint {
  margin: 0;
}

.viewer__nav {
  position: absolute;
  top: 45%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 16%);
  color: #fff;
  cursor: pointer;
}

.viewer__nav--prev {
  left: var(--s-3);
}

.viewer__nav--next {
  right: var(--s-3);
}

.viewer__nav--next .icon {
  transform: scaleX(-1);
}

.viewer > .form-message {
  padding: 0 var(--s-4) var(--s-3);
}

@media (pointer: coarse) {
  .viewer__nav {
    display: none;
  }
}

@media (max-width: 30rem) {
  .viewer__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .viewer__actions .button,
  .viewer__actions .photo-complaint summary {
    width: 100%;
  }
}

.rage-dialog__inner {
  padding: var(--s-4);
}

.rage-search .search-results {
  position: static;
  max-height: 40vh;
  overflow-y: auto;
}

.rage-dialog__title {
  font-size: var(--t-md);
  font-weight: 700;
}

.maplibregl-map {
  font-family: var(--font);
}

.maplibregl-map .maplibregl-ctrl-group {
  background: var(--surface);
  border: 1px solid var(--ui);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.maplibregl-map .maplibregl-ctrl-group button {
  width: var(--touch);
  height: var(--touch);
}

.maplibregl-map .maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--rule);
}

.maplibregl-map .maplibregl-ctrl-group button:hover {
  background-color: var(--sunken);
}

.maplibregl-map .maplibregl-ctrl-group:not(:empty) {
  box-shadow: var(--shadow-pop);
}

.maplibregl-map .maplibregl-ctrl-bottom-right .maplibregl-ctrl {
  margin: 0 var(--s-3) var(--s-3) 0;
}

.maplibregl-map .maplibregl-ctrl-attrib.maplibregl-compact {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink-2);
  border-radius: var(--r-md);
}

.maplibregl-map .maplibregl-ctrl-attrib a {
  color: var(--ink-2);
}

.maplibregl-map .maplibregl-popup-content {
  min-width: 15rem;
  padding: var(--s-4);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.4;
}

.maplibregl-map .maplibregl-popup-content strong {
  font-weight: 650;
}

.maplibregl-map .maplibregl-popup-content a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  margin-top: var(--s-1);
  color: var(--accent-text);
  font-weight: 600;
}

.maplibregl-map .maplibregl-popup-content > div > :first-child {
  display: block;
  padding-right: 1.75rem;
}

.maplibregl-map .maplibregl-popup-content .popup-actions {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.maplibregl-map .maplibregl-popup-content .popup-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0;
  padding: 0 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--accent-text);
  font-size: var(--t-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.maplibregl-map .maplibregl-popup-content .popup-action:hover {
  background: var(--sunken);
}

.maplibregl-map .maplibregl-popup-content .popup-action--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.maplibregl-map .maplibregl-popup-content .popup-action--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.maplibregl-map .maplibregl-popup-close-button {
  top: 0;
  right: 0;
  width: var(--touch);
  height: var(--touch);
  color: var(--ink-3);
  font-size: 1.5rem;
  border-radius: var(--r-md);
}

.maplibregl-map .maplibregl-popup-close-button:hover {
  background: var(--sunken);
  color: var(--ink);
}

.maplibregl-map .maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-map .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-map .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: var(--surface);
}

.maplibregl-map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-map .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-map .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: var(--surface);
}

.maplibregl-map .maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: var(--surface);
}

.maplibregl-map .maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: var(--surface);
}

@media (prefers-color-scheme: dark) {
  .maplibregl-map .maplibregl-ctrl-icon {
    filter: invert(1) hue-rotate(180deg);
  }
}

@layer flow {
  .maplibregl-popup-content .house-prices {
    margin-top: var(--s-3);
  }

  .prices-popup > * + * {
    margin-top: var(--s-2);
  }

  .prices-house__medians > * + *,
  .prices-house__flats > * + * {
    margin-top: var(--s-2);
  }

  .prices-flat__facts > * + * {
    margin-top: var(--s-1);
  }

  .prices-flat > * + * {
    margin-top: var(--s-2);
  }

  .prices-flat__sources > * + * {
    margin-top: var(--s-2);
  }

  .prices-flat__source > * + * {
    margin-top: var(--s-1);
  }

  .page > * + * {
    margin-top: var(--s-5);
  }

  .stack > * + * {
    margin-top: var(--s-4);
  }

  .top-rules > * + * {
    margin-top: var(--s-3);
  }

  .top-promo > * + * {
    margin-top: var(--s-3);
  }

  .section > * + * {
    margin-top: var(--s-4);
  }

  .panel > * + * {
    margin-top: var(--s-3);
  }

  .lock > * + * {
    margin-top: var(--s-3);
  }

  .capture > [data-capture-consent] > * + * {
    margin-top: var(--s-3);
  }

  .building-head > * + * {
    margin-top: var(--s-2);
  }

  .checkin__inner > * + * {
    margin-top: var(--s-2);
  }

  .rage-dialog__inner > * + * {
    margin-top: var(--s-3);
  }

  .house-lead > * + * {
    margin-top: var(--s-3);
  }

  .photo-slot > * + * {
    margin-top: var(--s-2);
  }

  .flood-more > * + *,
  .flood-item > * + * {
    margin-top: var(--s-2);
  }

  .env-group > * + *,
  .viewing-checks > * + *,
  .resident-ask > * + * {
    margin-top: var(--s-2);
  }

  .env-group + .env-group,
  .viewing-checks + .resident-ask {
    margin-top: var(--s-5);
  }

  .section p:has(> .button:only-child),
  .panel p:has(> .button:only-child),
  .resident-ask p:has(> .button:only-child),
  .viewing-checks p:has(> .button:only-child) {
    margin-top: var(--s-4);
  }

  .section__head + * {
    margin-top: var(--s-4);
  }

  .prices-key__item > * + * {
    margin-top: var(--s-1);
  }

  .prices-tables > * + * {
    margin-top: var(--s-4);
  }

  .prices-rank > * + *,
  .prices-bars > * + *,
  .prices-houses__group > * + * {
    margin-top: var(--s-2);
  }
}
