:root {
    --realty-bg: #faf7f9;
    --realty-brand-navy: #0e2b42;
    --realty-brand-navy-deep: #0a2234;
    --realty-panel: rgba(255, 255, 255, 0.82);
    --realty-panel-solid: #ffffff;
    --realty-border: rgba(15, 23, 42, 0.08);
    --realty-border-strong: rgba(15, 23, 42, 0.14);
    --realty-text: #121826;
    --realty-text-soft: #697285;
    --realty-text-muted: #98a1b2;
    --realty-accent: #1a4fff;
    --realty-accent-soft: rgba(26, 79, 255, 0.1);
    --realty-danger: #191919;
    --realty-warning: #c68531;
    --realty-success: #2a8c52;
    --realty-booked: #14532d;
    --realty-booked-soft: rgba(20, 83, 45, 0.14);
    --realty-sold-navy: #152132;
    --realty-sold-navy-soft: rgba(21, 33, 50, 0.14);
    --realty-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
    --realty-radius-xl: 30px;
    --realty-radius-lg: 22px;
    --realty-radius-md: 16px;
    --realty-radius-sm: 12px;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body.realty-body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    background:
        radial-gradient(ellipse 85% 55% at 8% 12%, rgba(230, 204, 213, 0.28), transparent 42%),
        radial-gradient(ellipse 75% 50% at 92% 88%, rgba(245, 228, 235, 0.45), transparent 48%),
        radial-gradient(circle at 50% 0%, rgba(255, 248, 250, 0.95), transparent 52%),
        linear-gradient(165deg, #fdf9fb 0%, #f7f0f3 42%, #faf6f8 100%);
    color: var(--realty-text);
}

.realty-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.75), transparent 22%),
        radial-gradient(circle at 88% 14%, rgba(230, 204, 213, 0.12), transparent 24%),
        radial-gradient(circle at 72% 82%, rgba(255, 218, 210, 0.1), transparent 22%);
}

.realty-shell {
    position: relative;
    z-index: 1;
    width: min(calc(100vw - 40px), 1500px);
    max-width: 1500px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px 0;
}

.realty-main-panel {
    width: 100%;
    min-width: 0;
    min-height: 800px;
    border: 1px solid var(--realty-border);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: var(--realty-shadow);
}

.realty-brand,
.realty-topbar__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.realty-brand img,
.realty-topbar__brand img {
    width: 100px;
    height: 100px;
    padding: 0;
    border-radius: 8px;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 236, 242, 0.88));
    box-shadow: 0 12px 34px rgba(145, 104, 104, 0.1);
}

.realty-brand span,
.realty-topbar__brand strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.realty-topbar__brand span {
    display: block;
    margin-top: 4px;
    color: var(--realty-text-soft);
    font-size: 13px;
    font-weight: 500;
}

.realty-hero-copy h1,
.realty-panel-head h2,
.realty-view-head h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    padding-bottom: 30px;
}

.realty-panel-head h2,
.realty-view-head h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.realty-lead,
.realty-form-note,
.realty-panel__head span,
.realty-summary-pill,
.realty-list__meta,
.realty-empty {
    color: var(--realty-text-soft);
}

.realty-lead {
    margin: 18px 0 0;
    font-size: 17px;
    line-height: 1.65;
}

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

.realty-glass-card {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: var(--realty-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(250, 240, 244, 0.65));
    box-shadow: 0 14px 40px rgba(145, 104, 104, 0.06);
}

.realty-glass-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--realty-text-soft);
}

.realty-glass-card strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.realty-main-panel {
    padding: 32px 32px 40px;
}

.realty-auth-screen.is-hidden,
.realty-cabinet.is-hidden,
.realty-view,
.realty-data-view.is-hidden,
.realty-modal.is-hidden,
.is-hidden {
    display: none !important;
}

.realty-cabinet,
.realty-auth-screen {
    display: block;
}

.realty-panel-head,
.realty-view-head,
.realty-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.realty-badge,
.realty-summary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--realty-border);
    background: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 600;
}

.realty-auth-card,
.realty-panel {
    background: var(--realty-panel);
    border: 1px solid var(--realty-border);
    border-radius: var(--realty-radius-xl);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
}

.realty-auth-card {
    width: min(520px, 100%);
    margin-top: 28px;
    padding: 28px;
}

body.realty-body--auth {
    min-height: 100vh;
    min-height: 100dvh;
}

body.realty-body--auth .realty-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 4vw, 32px) clamp(12px, 3vw, 24px);
    box-sizing: border-box;
}

body.realty-body--auth .realty-main-panel {
    min-height: 0;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 40px);
}

body.realty-body--auth .realty-auth-screen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

body.realty-body--auth .realty-panel-head {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

body.realty-body--auth .realty-panel-head > div:first-child {
    width: 100%;
}

body.realty-body--auth .realty-panel-head h2 {
    padding-bottom: 0;
}

body.realty-body--auth .realty-auth-card {
    width: 100%;
    max-width: none;
    margin-top: 8px;
    margin-left: 0;
    margin-right: 0;
}

.realty-panel {
    padding: 24px;
}

.realty-panel + .realty-panel {
    margin-top: 0px;
}


.realty-input-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.realty-input-group.compact {
    margin-bottom: 0;
}

.realty-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--realty-text-soft);
}

.realty-input-group input,
.realty-input-group select,
.realty-search-input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--realty-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--realty-text);
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.realty-input-group input:focus,
.realty-input-group select:focus {
    outline: none;
    border-color: rgba(26, 79, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(26, 79, 255, 0.1);
}

.realty-primary-btn,
.realty-ghost-btn,
.realty-nav a,
.realty-subtabs button,
.realty-corpus-tabs button {
    appearance: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.realty-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--realty-brand-navy) 0%, var(--realty-brand-navy-deep) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(14, 43, 66, 0.22);
}

.realty-primary-btn--compact {
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(14, 43, 66, 0.18);
}

.realty-primary-btn:hover,
.realty-ghost-btn:hover,
.realty-nav a:hover,
.realty-subtabs button:hover,
.realty-corpus-tabs button:hover {
    transform: translateY(-1px);
}

.realty-ghost-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--realty-text);
    border: 1px solid var(--realty-border);
    font-size: 14px;
    font-weight: 600;
}

.realty-message {
    min-height: 22px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--realty-text-soft);
}

.realty-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--realty-border);
}

.realty-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
}

.realty-nav a,
.realty-subtabs button,
.realty-corpus-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: transparent;
    color: var(--realty-text-soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.realty-subtabs button:not(.is-active),
.realty-corpus-tabs button:not(.is-active) {
    background: rgba(15, 23, 42, 0.07);
    border: 1px solid var(--realty-border);
}

.realty-nav a.is-active,
.realty-subtabs button.is-active,
.realty-corpus-tabs button.is-active {
    background: var(--realty-brand-navy);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 34px rgba(14, 43, 66, 0.22);
}

.realty-topbar__profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.realty-user-chip {
    display: grid;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--realty-border);
}

.realty-user-chip span {
    font-size: 14px;
    font-weight: 700;
}

.realty-user-chip small {
    color: var(--realty-text-soft);
    font-size: 12px;
}

/* Важно: базовое правило выше задаёт .realty-view { display: none !important } —
   без !important активная вкладка остаётся скрытой. */
.realty-view.is-active,
.realty-data-view {
    display: block !important;
}

.realty-stat-grid,
.realty-grid-2 {
    display: grid;
    gap: 20px;
}

.realty-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

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

#realtyViewSettings .realty-grid-2 {
    gap: 28px;
    align-items: stretch;
}

#realtyViewSettings .realty-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    box-sizing: border-box;
}

#realtyViewSettings .realty-panel__head {
    min-height: 76px;
    margin-bottom: 8px;
}

#realtyViewSettings .realty-panel__head span {
    display: block;
    margin-top: 6px;
    line-height: 1.4;
    max-width: 32ch;
}

#realtyViewSettings .realty-input-group {
    margin-bottom: 18px;
}

#realtyViewSettings .realty-input-group:last-of-type {
    margin-bottom: 22px;
}

.realty-stat-card {
    padding: 26px;
    border-radius: 26px;
    border: 1px solid var(--realty-border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 238, 242, 0.82));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.realty-stat-card__title {
    color: var(--realty-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.realty-stat-card__value {
    margin-top: 16px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 800;
}

.realty-stat-card__caption {
    margin-top: 12px;
    color: var(--realty-text-soft);
    font-size: 14px;
}

.realty-panel__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.realty-panel__head h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

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

.realty-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--realty-border);
    background: rgba(255, 255, 255, 0.78);
}

.realty-list-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.realty-list-item span,
.realty-list-item a {
    color: var(--realty-text-soft);
    text-decoration: none;
    font-size: 13px;
}

.realty-filters-panel {
    margin-bottom: 22px;
}

/* Фиксации: узкий фильтр «Квартира», рядом «Лид» */
#realtyViewFixations .realty-filters-panel .realty-fixations-filter-apt {
    flex: 0 1 160px;
    max-width: 160px;
    min-width: 100px;
}

#realtyViewFixations .realty-filters-panel .realty-fixations-filter-apt .realty-apt-combo__wrap .realty-popup-form__input {
    min-width: 0;
}

#realtyViewFixations .realty-filters-panel .realty-fixations-filter-lead {
    flex: 0 1 108px;
    max-width: 120px;
    min-width: 72px;
}

.realty-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 16px 18px;
    flex-wrap: wrap;
}

.realty-filter-row--highlight {
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--realty-border);
}

#realtyViewApartments .realty-filter-row--apartments-line {
    flex-wrap: nowrap;
    gap: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

#realtyViewApartments .realty-filter-row--apartments-line .realty-input-group.compact {
    flex: 0 0 auto;
    min-width: 0;
}

#realtyViewApartments .realty-filter-row--apartments-line .realty-input-group--area {
    width: 92px;
    max-width: 92px;
}

#realtyViewApartments .realty-filter-row--apartments-line .realty-input-group--area input {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
}

#realtyViewApartments .realty-filter-row--apartments-line #realtyHighlightRooms,
#realtyViewApartments .realty-filter-row--apartments-line #realtyFilterBuilding {
    max-width: 148px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
}

#realtyViewApartments .realty-filter-row--apartments-line #realtyApartmentsSort {
    max-width: 172px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    line-height: 1.2;
}

#realtyViewApartments .realty-filter-row--apartments-line #realtyFilterPriceMin,
#realtyViewApartments .realty-filter-row--apartments-line #realtyFilterPriceMax {
    width: 118px;
    max-width: 132px;
    padding: 0 12px;
}

#realtyViewApartments .realty-filter-row--apartments-line .realty-checkbox {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 10px;
    min-height: 54px;
}

#realtyViewApartments .realty-filter-row--apartments-line .realty-apartments-sort {
    flex: 0 0 auto;
    margin-left: auto;
}

.realty-filter-dimmed {
    opacity: 0.22;
    transition: opacity 0.18s ease;
    pointer-events: auto;
}

.realty-filter-dimmed:hover {
    opacity: 0.48;
}

.realty-tabs-row {
    display: flex;
    align-items: center;
    gap: 16px 18px;
    flex-wrap: wrap;
}

#realtyViewApartments .realty-filter-row .realty-input-group.compact {
    margin-bottom: 0;
}

#realtyViewApartments .realty-checkbox {
    align-self: flex-end;
}

#realtyViewApartments > .realty-panel:last-of-type {
    padding: 26px 28px 30px;
}

.realty-tabs-row {
    justify-content: space-between;
    margin-top: 18px;
}

.realty-subtabs,
.realty-corpus-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.realty-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--realty-border);
    background: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 600;
    color: var(--realty-text);
}

.realty-checkbox input {
    width: 18px;
    height: 18px;
}

.realty-meta-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    vertical-align: middle;
}

.realty-meta-inline--center {
    justify-content: center;
    width: 100%;
}

.realty-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.88;
}

.realty-table {
    display: grid;
    gap: 12px;
}

.realty-table__header,
.realty-table__row {
    display: grid;
    grid-template-columns: 90px 80px minmax(170px, 1.3fr) 90px 110px 110px 160px 140px 90px 110px;
    gap: 12px;
    align-items: center;
}

.realty-table__header {
    padding: 0 16px 8px;
    color: var(--realty-text-soft);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.realty-table__row {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--realty-border);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.realty-table__row:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

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

.realty-table__plan-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.realty-table__plan-name {
    display: block;
    line-height: 1.25;
}

.realty-table__plan-fix {
    width: 100%;
}

.realty-table__plan img,
.realty-plan-card__image img,
.realty-modal-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.realty-table__thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--realty-border);
    background: #f8f9fb;
    flex: 0 0 auto;
}

.realty-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.realty-status.is-free {
    color: var(--realty-success);
    background: rgba(42, 140, 82, 0.12);
}

.realty-status.is-reserved {
    color: #f0fdf4;
    background: var(--realty-booked);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.realty-status.is-sold {
    color: #f8fafc;
    background: var(--realty-sold-navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.realty-status.is-gr {
    color: #9f1239;
    background: rgba(255, 228, 233, 0.92);
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.realty-terrassa-flag {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid rgba(26, 79, 255, 0.2);
    background: rgba(26, 79, 255, 0.08);
    position: relative;
    margin-inline: auto;
}

.realty-terrassa-flag::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 5px;
    background: var(--realty-accent);
}

.realty-plan-groups {
    display: grid;
    gap: 18px;
}

.realty-plan-group {
    border: 1px solid var(--realty-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    overflow: hidden;
}

.realty-plan-group__head {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 120px;
    gap: 16px;
    padding: 18px 22px;
    align-items: center;
    cursor: pointer;
}

.realty-plan-group__content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0 22px 22px;
}

.realty-plan-card {
    border-radius: 22px;
    border: 1px solid var(--realty-border);
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.realty-plan-card__image {
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
    background: linear-gradient(180deg, #fafbfd, #f3f6fb);
}

.realty-plan-card__body {
    padding: 16px;
}

.realty-plan-card__title {
    margin: 0 0 8px;
    font-size: 18px;
}

.realty-plan-card__fix-line {
    margin: -4px 0 10px;
}

.realty-plan-card__meta {
    display: grid;
    gap: 8px;
    color: var(--realty-text-soft);
    font-size: 14px;
}

.realty-plan-card__price-line {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--realty-text);
}

.realty-chess {
    display: grid;
    gap: 26px;
    padding: 4px 2px 8px;
}

.realty-chess__floor {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.realty-chess__floor-number {
    position: sticky;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 16px;
    border: 1px solid var(--realty-border);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 800;
}

.realty-chess__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.realty-chess-card {
    padding: 20px 20px 18px;
    border-radius: 22px;
    color: #fff;
    background: #121212;
    cursor: pointer;
}

.realty-chess-card.is-free {
    color: var(--realty-text);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--realty-border);
}

.realty-chess-card.is-reserved {
    color: #ecfdf5;
    background: linear-gradient(145deg, #166534, #14532d);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.realty-chess-card.is-sold {
    color: #5f6772;
    background: rgba(215, 220, 227, 0.55);
    border: 1px solid rgba(167, 175, 186, 0.6);
    opacity: 0.82;
}

.realty-chess-card.is-gr {
    color: #5a2331;
    background: rgba(255, 239, 242, 0.94);
    border: 1px solid rgba(225, 29, 72, 0.22);
}

.realty-table__row.is-gr {
    background: rgba(255, 244, 246, 0.92);
}

.realty-plan-card.is-gr {
    background: rgba(255, 247, 248, 0.9);
    border-color: rgba(225, 29, 72, 0.2);
}

.realty-chess-card.is-sold .realty-icon {
    opacity: 0.95;
}

.realty-chess-card__top,
.realty-modal-stats,
.realty-modal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.realty-chess-card__top {
    margin-bottom: 18px;
    font-size: 13px;
    opacity: 0.9;
}

.realty-chess-card__price {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.realty-chess-card__status {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.35;
    opacity: 0.92;
    margin-bottom: 10px;
    word-break: break-word;
}

.realty-chess-card__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 13px;
    opacity: 0.92;
}

.realty-chess-card.is-free .realty-chess-card__facts {
    color: var(--realty-text-soft);
}

.realty-chess-card.is-free .realty-chess-card__status {
    color: var(--realty-text-soft);
}

.realty-compact-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.realty-compact-table thead th {
    padding: 0 14px 8px;
    color: var(--realty-text-soft);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.realty-compact-table tbody tr {
    background: rgba(255, 255, 255, 0.88);
}

.realty-compact-table tbody tr.realty-fix-row {
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.realty-compact-table tbody tr.realty-fix-row:hover {
    background: rgba(26, 79, 255, 0.07);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}

.realty-compact-table tbody td {
    padding: 16px 14px;
    border-top: 1px solid var(--realty-border);
    border-bottom: 1px solid var(--realty-border);
}

.realty-compact-table tbody td:first-child {
    border-left: 1px solid var(--realty-border);
    border-radius: 16px 0 0 16px;
}

.realty-compact-table tbody td:last-child {
    border-right: 1px solid var(--realty-border);
    border-radius: 0 16px 16px 0;
}

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

.realty-empty {
    padding: 30px 18px;
    text-align: center;
    font-size: 15px;
}

.realty-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.realty-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.44);
    backdrop-filter: blur(12px);
}

.realty-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    margin: 0;
    padding: 24px;
    overflow: auto;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
}

.realty-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 24, 38, 0.08);
    cursor: pointer;
    font-size: 30px;
}

.realty-modal-apartment-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.realty-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 420px);
    gap: 24px;
}

.realty-modal-fix-panel {
    width: 100%;
    box-sizing: border-box;
    padding-top: 18px;
    border-top: 1px solid var(--realty-border);
}

.realty-modal-fix-panel.is-hidden {
    display: none;
}

.realty-fix-tabs__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 10px;
}

.realty-modal-fix-panel .realty-fix-tabs__head {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.realty-modal-gallery {
    padding: 8px 12px 12px;
    border-radius: 26px;
    background: linear-gradient(180deg, #fbfcfe, #eef2f8);
}

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

.realty-modal-gallery__cell {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--realty-border);
    aspect-ratio: 4 / 3;
    text-decoration: none;
    color: inherit;
    cursor: zoom-in;
    outline: none;
}

.realty-modal-gallery__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.realty-modal-info {
    display: grid;
    gap: 16px;
}

.realty-modal-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--realty-border);
    background: rgba(255, 255, 255, 0.94);
}

.realty-modal-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.realty-modal-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin: 14px 0 0;
}

.realty-modal-price__value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.1;
}

.realty-modal-meta {
    flex-wrap: wrap;
    margin-top: 16px;
    color: var(--realty-text-soft);
    font-size: 14px;
}

.realty-modal-stats {
    flex-wrap: wrap;
    margin-top: 18px;
}

.realty-modal-stat {
    min-width: 110px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(26, 79, 255, 0.06);
}

.realty-modal-stat span {
    display: block;
    font-size: 12px;
    color: var(--realty-text-soft);
}

.realty-modal-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
}

.realty-modal-stat__terr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.realty-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.realty-modal-actions a {
    text-decoration: none;
}

.realty-modal-actions__note {
    font-size: 13px;
    color: var(--realty-text-soft);
    align-self: center;
}

.realty-btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid var(--realty-border);
    background: rgba(255, 255, 255, 0.95);
    color: var(--realty-text);
    font-size: 15px;
    font-weight: 600;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.realty-btn-pdf:hover {
    border-color: rgba(26, 79, 255, 0.35);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.realty-btn-pdf__svg {
    flex-shrink: 0;
    opacity: 0.92;
}

.realty-popup-form {
    max-width: 420px;
    padding: 8px 6px 12px;
    font-size: 15px;
    color: var(--realty-text);
}

.realty-popup-form__title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.realty-popup-form__line {
    margin: 0 0 8px;
    color: var(--realty-text-soft);
    font-size: 14px;
    line-height: 1.45;
}

.realty-popup-form__hint {
    margin: 14px 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--realty-text-soft);
}

.realty-popup-form__label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--realty-text-soft);
}

.realty-popup-form__input {
    width: 100%;
    box-sizing: border-box;
    height: 50px;
    margin-bottom: 12px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--realty-border);
    font-size: 15px;
}

.realty-popup-form__privacy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 0 16px;
    font-size: 12px;
    color: var(--realty-text-soft);
    line-height: 1.4;
}

.realty-popup-form__privacy input {
    margin-top: 3px;
}

.realty-popup-form__privacy a {
    color: var(--realty-accent);
}

.realty-popup-form__send {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: var(--realty-brand-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.realty-popup-form__send:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.realty-popup-form__status {
    margin-bottom: 10px;
    font-size: 14px;
}

.realty-popup-form--agency-add {
    max-width: 560px;
}

.realty-popup-form--agency-add textarea.realty-popup-form__input {
    min-height: 94px;
    resize: vertical;
}

.realty-ghost-btn--mini {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
}

.realty-agencies-name-btn {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--realty-brand-navy);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.realty-agencies-name-btn:hover {
    color: var(--realty-brand-navy-deep);
}

.realty-agent-name--internal {
    color: var(--realty-brand-navy-deep);
    font-weight: 600;
}

.realty-journal-code-btn {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--realty-accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.realty-journal-code-btn:hover {
    color: var(--realty-brand-navy-deep);
}

.realty-journal-req-tooltip {
    position: fixed;
    z-index: 12000;
    min-width: 240px;
    min-height: 0;
    max-width: min(420px, calc(100vw - 24px));
    max-height: min(55vh, 360px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--realty-panel-solid);
    border: 1px solid var(--realty-border-strong);
    border-radius: var(--realty-radius-md);
    box-shadow: var(--realty-shadow);
}

.realty-journal-req-tooltip.is-hidden {
    display: none !important;
}

.realty-journal-req-tooltip__head {
    flex-shrink: 0;
    padding: 10px 36px 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--realty-text-soft);
    border-bottom: 1px solid var(--realty-border);
}

.realty-journal-req-tooltip__pre {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 12px 14px;
    overflow: auto;
    font-size: 11px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--realty-text);
}

.realty-journal-req-tooltip__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: var(--realty-radius-sm);
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: var(--realty-text-muted);
    cursor: pointer;
}

.realty-journal-req-tooltip__close:hover {
    background: var(--realty-accent-soft);
    color: var(--realty-text);
}

.realty-fix-exagent-phone {
    white-space: nowrap;
    color: var(--realty-text-muted);
    font-size: 0.92em;
}

.realty-fix-source-cell {
    vertical-align: top;
    line-height: 1.35;
}

.realty-fix-source-main {
    font-weight: 600;
}

.realty-fix-b24-lead-link {
    margin-left: 6px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.realty-fix-b24-lead-link:hover {
    text-decoration: underline;
}

.realty-fix-b24-status {
    display: block;
    margin-top: 4px;
    font-size: 0.88em;
    font-weight: 500;
    color: var(--realty-text-muted);
}

.realty-fixation-info-col {
    width: 42px;
    text-align: center;
}

.realty-fixation-info-cell {
    text-align: center;
    vertical-align: middle;
}

.realty-fixation-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(26, 79, 255, 0.1);
    color: var(--realty-accent);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.realty-fixation-info-btn:hover {
    background: var(--realty-accent-soft);
    color: var(--realty-brand-navy-deep);
}

.realty-fixation-info-btn__svg {
    display: block;
}

.realty-fixation-journal-tooltip {
    position: fixed;
    z-index: 12000;
    min-width: 260px;
    min-height: 0;
    max-width: min(380px, calc(100vw - 24px));
    max-height: min(50vh, 300px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--realty-panel-solid);
    border: 1px solid var(--realty-border-strong);
    border-radius: var(--realty-radius-md);
    box-shadow: var(--realty-shadow);
}

.realty-fixation-journal-tooltip.is-hidden {
    display: none !important;
}

.realty-fixation-journal-tooltip__head {
    flex-shrink: 0;
    position: relative;
    padding: 10px 36px 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--realty-text-soft);
    border-bottom: 1px solid var(--realty-border);
}

.realty-fixation-journal-tooltip__body {
    flex: 1;
    min-height: 0;
    padding: 10px 14px 12px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.45;
    color: var(--realty-text);
}

.realty-fixation-journal-tooltip__line {
    padding: 6px 0;
    border-bottom: 1px solid var(--realty-border);
}

.realty-fixation-journal-tooltip__line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.realty-fixation-journal-tooltip__sep {
    margin: 0 5px;
    color: var(--realty-text-muted);
}

.realty-fixation-journal-tooltip__dt {
    color: var(--realty-text-soft);
    white-space: nowrap;
}

.realty-fixation-journal-tooltip__src {
    color: var(--realty-text);
    word-break: break-word;
}

.realty-fixation-journal-tooltip__loading,
.realty-fixation-journal-tooltip__empty {
    color: var(--realty-text-soft);
    font-size: 12px;
}

.realty-fixation-journal-tooltip__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: var(--realty-radius-sm);
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: var(--realty-text-muted);
    cursor: pointer;
}


.realty-fixation-journal-tooltip__close:hover {
    background: var(--realty-accent-soft);
    color: var(--realty-text);
}

.realty-fix-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: normal;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(16, 45, 69, 0.08);
    color: #102d45;
}

.realty-fix-badge--modal {
    flex: 0 0 auto;
    max-width: min(100%, 280px);
}

.realty-fix-status-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

.realty-fix-status-pill {
    border: 1px solid rgba(16, 45, 69, 0.22);
    background: #fff;
    color: #102d45;
    border-radius: 999px;
    padding: 8px 14px;
    min-height: 38px;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: normal;
    white-space: normal;
    text-align: center;
}

.realty-fix-status-pill.is-active {
    background: rgba(16, 45, 69, 0.12);
}

.fancybox__container:has(.realty-popup-form--fixation-add) {
    --fancybox-bg: rgba(17, 24, 39, 0.42);
}

.fancybox__container:has(.realty-popup-form--agency-add) {
    --fancybox-bg: rgba(17, 24, 39, 0.21);
}

.realty-popup-form--fixation-add {
    max-width: 720px;
}

.realty-fixation-form__full {
    grid-column: 1 / -1;
}

.realty-fixation-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    align-items: start;
}

.realty-fixation-form__grid > .realty-apt-combo {
    min-width: 0;
}

.realty-fixation-form__grid .realty-popup-form__hint {
    margin-top: 4px;
}

.realty-fix-action-row {
    margin-bottom: 0;
}

.realty-fixation-form__extra-section {
    margin-top: 22px;
}

.realty-fix-extra-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 12px;
}

.realty-fix-extra-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--realty-text);
    cursor: pointer;
    user-select: none;
}

.realty-fix-extra-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.realty-popup-form--fixation-add textarea.realty-popup-form__input {
    height: auto;
    min-height: 88px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.realty-fixation-form__delete-btn {
    margin-top: 10px;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(192, 58, 43, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: #b83226;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.realty-fixation-form__delete-btn:hover {
    background: rgba(192, 58, 43, 0.08);
    border-color: rgba(192, 58, 43, 0.55);
}

.realty-apt-combo__wrap {
    position: relative;
}

.realty-apt-combo__wrap .realty-popup-form__input {
    margin-bottom: 0;
}

.realty-apt-combo {
    margin-bottom: 12px;
}

.realty-apt-combo__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--realty-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.realty-apt-combo__list.is-hidden {
    display: none;
}

.realty-apt-combo__list li {
    margin: 0;
}

.realty-apt-combo__item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--realty-text);
}

.realty-apt-combo__item:hover {
    background: rgba(16, 45, 69, 0.06);
}

.realty-apt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    min-height: 0;
}

.realty-apt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    font-size: 0.875rem;
    line-height: 1.3;
    background: var(--realty-accent-soft);
    color: var(--realty-brand-navy);
    border-radius: 999px;
    border: 1px solid var(--realty-border);
}

.realty-apt-chip__text {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.realty-apt-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: var(--realty-text);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.realty-apt-chip__remove:hover {
    background: rgba(192, 58, 43, 0.15);
    color: #c03a2b;
}

@media (max-width: 640px) {
    .fancybox__container:has(.realty-popup-form--fixation-add) .fancybox__content {
        padding: 1.25rem;
    }

    .realty-fixation-form__grid {
        grid-template-columns: 1fr;
    }
}

.is-fix-fix {
    background: rgba(66, 104, 130, 0.08);
}

.is-fix-book {
    background: rgba(34, 108, 76, 0.1);
}

.is-fix-oral {
    background: rgba(202, 140, 26, 0.12);
}

.is-fix-deal {
    background: rgba(171, 67, 52, 0.14);
}

/* Подсветка фиксации поверх «свободной» шахматки (иначе .is-free перекрывает цвет) */
.realty-chess-card.is-free.is-fix-oral {
    background: rgba(202, 140, 26, 0.2);
    border-color: rgba(202, 140, 26, 0.42);
    color: var(--realty-text);
}

.realty-chess-card.is-free.is-fix-book {
    background: rgba(34, 108, 76, 0.16);
    border-color: rgba(34, 108, 76, 0.35);
    color: var(--realty-text);
}

.realty-chess-card.is-free.is-fix-fix {
    background: rgba(66, 104, 130, 0.14);
    border-color: rgba(66, 104, 130, 0.32);
    color: var(--realty-text);
}

.realty-chess-card.is-free.is-fix-deal {
    background: rgba(171, 67, 52, 0.16);
    border-color: rgba(171, 67, 52, 0.38);
    color: var(--realty-text);
}

.realty-fix-tabs__table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.realty-fix-tabs {
    margin-top: 14px;
}

.realty-modal-fix-panel.realty-fix-tabs {
    margin-top: 0;
}

.realty-fix-tabs.is-hidden {
    display: none;
}

.realty-fix-tabs__head {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.realty-fix-tabs__head button {
    border: 1px solid rgba(16, 45, 69, 0.2);
    border-radius: 999px;
    background: #fff;
    padding: 5px 12px;
    color: #102d45;
    cursor: pointer;
}

.realty-fix-tabs__head button.is-active {
    background: rgba(16, 45, 69, 0.08);
}

#realtyProfileBasePhone[readonly] {
    background: rgba(19, 34, 52, 0.08);
    color: rgba(19, 34, 52, 0.72);
    cursor: not-allowed;
}

@media (max-width: 1080px) {
    .realty-grid-2,
    .realty-modal-grid,
    .realty-plan-group__content,
    .realty-stat-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .realty-shell {
        width: calc(100vw - 16px);
        padding: 8px 0;
    }

    body.realty-body--auth .realty-shell {
        width: min(calc(100vw - 16px), 1500px);
        padding: clamp(12px, 4vw, 24px) clamp(8px, 3vw, 16px);
    }

    .realty-main-panel {
        border-radius: 24px;
        padding: 18px;
    }

    body.realty-body--auth .realty-main-panel {
        max-width: min(460px, calc(100vw - 24px));
    }

    .realty-topbar,
    .realty-panel-head,
    .realty-view-head,
    .realty-filter-row:not(.realty-filter-row--apartments-line),
    .realty-tabs-row,
    .realty-topbar__profile {
        flex-direction: column;
        align-items: stretch;
    }

    #realtyViewApartments .realty-filter-row--apartments-line {
        flex-direction: row;
        align-items: flex-end;
    }

    .realty-nav,
    .realty-subtabs,
    .realty-corpus-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .realty-compact-table {
        display: block;
        overflow-x: auto;
    }

    .realty-modal__dialog {
        width: calc(100vw - 16px);
        margin: 8px auto;
        padding: 16px;
        border-radius: 24px;
    }
}
