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

.master-app, .tenant-crm {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem;
}

.sidebar-brand { font-weight: 700; margin-bottom: 1.5rem; }
.sidebar nav { display: grid; gap: .35rem; }
.sidebar nav a { padding: .55rem .75rem; border-radius: .45rem; color: #cbd5e1; }
.sidebar nav a.active, .sidebar nav a:hover { background: #1e293b; color: #fff; }
.main-wrapper { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.content { padding: 1.5rem; flex: 1; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; padding: 1rem; }
.stat-card.success { border-color: #86efac; }
.stat-card.warning { border-color: #fde68a; }
.stat-card.danger { border-color: #fca5a5; }
.stat-label { display: block; color: #64748b; font-size: .85rem; }
.stat-value { font-size: 1.6rem; display: block; }
.panel { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; padding: 1rem; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.table-wrap { overflow: auto; }
.status-badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.status-active { background: #dcfce7; color: #166534; }
.status-inactive { background: #fef3c7; color: #92400e; }
.status-error { background: #fee2e2; color: #991b1b; }
.actions { display: flex; gap: .35rem; flex-wrap: wrap; }

.hi-notify-stack {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 2200;
    display: grid;
    gap: 0.55rem;
    width: min(380px, calc(100vw - 24px));
}

.hi-notify {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: start;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.7rem 0.7rem 0.7rem 0.8rem;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    animation: hiNotifyIn .2s ease-out;
}

.hi-notify.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
}

.hi-notify__title {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.hi-notify__message {
    margin: 0;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.35;
}

.hi-notify__close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.1rem 0.2rem;
    border-radius: 6px;
}

.hi-notify__close:hover {
    background: rgba(15, 23, 42, 0.08);
}

.hi-notify--info {
    border-left: 4px solid var(--primary, #1e40af);
    background: linear-gradient(0deg, rgba(30, 64, 175, 0.06), rgba(30, 64, 175, 0.06)), #fff;
}

.hi-notify--info .hi-notify__title {
    color: var(--primary, #1e40af);
}

.hi-notify--success {
    border-left: 4px solid var(--secondary, #0f766e);
    background: linear-gradient(0deg, rgba(15, 118, 110, 0.07), rgba(15, 118, 110, 0.07)), #fff;
}

.hi-notify--success .hi-notify__title {
    color: var(--secondary, #0f766e);
}

.hi-notify--warning {
    border-left: 4px solid var(--accent, #c4715a);
    background: linear-gradient(0deg, rgba(196, 113, 90, 0.08), rgba(196, 113, 90, 0.08)), #fff;
}

.hi-notify--warning .hi-notify__title {
    color: var(--accent, #c4715a);
}

.hi-notify--error {
    border-left: 4px solid #b91c1c;
    background: linear-gradient(0deg, rgba(185, 28, 28, 0.07), rgba(185, 28, 28, 0.07)), #fff;
}

.hi-notify--error .hi-notify__title {
    color: #b91c1c;
}

.hi-native-dialog {
    width: min(520px, 100%);
}

.hi-native-dialog__message {
    color: #334155;
    line-height: 1.45;
    font-size: 0.95rem;
}

.hi-native-dialog__input-wrap {
    width: 100%;
}

.hi-native-dialog .hi-modal-header h3 {
    font-size: 1rem;
}

@keyframes hiNotifyIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* flex em <td> impede a célula de acompanhar a altura da linha */
table td.actions {
    display: table-cell;
    vertical-align: middle;
}

table td.actions > .btn,
table td.actions > a.btn,
table td.actions > button {
    vertical-align: middle;
    margin: 0.15rem 0.35rem 0.15rem 0;
}
.crm-properties-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(150px, 220px));
    gap: .75rem;
    align-items: end;
    margin-bottom: 1rem;
}
.crm-properties-toolbar__search { min-width: 0; }
.crm-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.crm-property-card {
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    background: #fff;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}
.crm-property-card__cover {
    height: 140px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    color: #64748b;
    font-size: .85rem;
    font-weight: 600;
}
.crm-property-card__cover-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.crm-property-card__cover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.crm-property-card__body { padding: .85rem; display: grid; gap: .5rem; }
.crm-property-card__meta { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.crm-property-card__title { margin: 0; font-size: 1.05rem; line-height: 1.3; color: #0f172a; }
.crm-property-card__client { color: #475569; font-size: .88rem; font-weight: 600; }
.crm-property-card__location { color: #64748b; font-size: .9rem; }
.crm-property-card__price { font-weight: 700; color: #0f172a; }
.crm-property-card__features { display: flex; flex-wrap: wrap; gap: .35rem .75rem; color: #475569; font-size: .86rem; }
.crm-property-card__actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .2rem; }
.crm-property-empty {
    border: 1px dashed #cbd5e1;
    border-radius: .75rem;
    padding: 1.25rem;
    color: #64748b;
    text-align: center;
}
.crm-properties-pagination {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.crm-properties-pagination__meta { color: #64748b; font-size: .9rem; }
.crm-properties-pagination__actions { display: flex; gap: .5rem; }
@media (max-width: 900px) {
    .crm-properties-toolbar { grid-template-columns: 1fr; }
}

/* Modais HouseIndex — prefixo hi- para não conflitar com Bootstrap .modal */
.hi-modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 1050; padding: 1rem; }
#hi-native-dialog-overlay { z-index: 1400; }
.hi-modal-overlay.hidden { display: none; }
.hi-modal { width: min(640px, 100%); background: #fff; border-radius: .75rem; overflow: hidden; box-shadow: 0 1rem 3rem rgba(15, 23, 42, .2); }
.hi-modal--wide { width: min(960px, 100%); }
.hi-photo-manager { width: 100%; max-width: 100%; overflow: hidden; }
.hi-media-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.hi-media-summary__item { min-height: 68px; padding: .7rem .8rem; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; }
.hi-media-summary__item strong { display: block; color: #0f172a; font-size: 1.15rem; line-height: 1.15; }
.hi-media-summary__item span { display: block; margin-top: .25rem; overflow: hidden; color: #64748b; font-size: .78rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hi-photo-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 1px solid #e2e8f0; padding-bottom: .55rem; }
.hi-photo-tabs__btn { min-height: 38px; border: 1px solid transparent; background: transparent; padding: .45rem .85rem; border-radius: 7px; font-size: .875rem; color: #64748b; cursor: pointer; }
.hi-photo-tabs__btn:hover { border-color: #dbe3ef; color: #334155; background: #fff; }
.hi-photo-tabs__btn.is-active { border-color: rgba(30, 64, 175, .18); background: rgba(30, 64, 175, .08); color: var(--primary, #1e40af); font-weight: 700; }
.hi-photo-panel.hidden { display: none; }
.hi-media-panel-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.hi-media-panel-head strong { display: block; color: #0f172a; font-size: .98rem; }
.hi-media-panel-head span { display: block; margin-top: .15rem; color: #64748b; font-size: .78rem; line-height: 1.35; }
.hi-photo-room-form { display: flex; gap: .5rem; margin-bottom: .75rem; }
.hi-photo-room-form .form-control { flex: 1; min-width: 0; }
.hi-photo-rooms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.hi-photo-room-item { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .8rem .85rem; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; }
.hi-photo-room-item__main { display: grid; min-width: 0; gap: .18rem; }
.hi-photo-room-item__main strong { overflow: hidden; color: #0f172a; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.hi-photo-room-item__main span { color: #64748b; font-size: .78rem; }
.hi-photo-room-item__actions { display: flex; flex-wrap: wrap; gap: .25rem; }
.hi-media-empty { display: grid; gap: .25rem; width: 100%; padding: 1rem; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; color: #64748b; font-size: .82rem; line-height: 1.4; }
.hi-media-empty strong { color: #334155; font-size: .9rem; }
.hi-photo-pano-group { margin-bottom: 1.25rem; }
.hi-photo-pano-group__title { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: 0 0 .6rem; }
.hi-photo-pano-group__title h4 { margin: 0; color: #0f172a; font-size: .98rem; }
.hi-photo-pano-group__title span { flex: 0 0 auto; color: #64748b; font-size: .76rem; font-weight: 700; }
.hi-photo-card__room { padding: .35rem .4rem 0; }
.hi-photo-card__room .form-select { font-size: .75rem; }
.hi-photo-card__badge--pano { background: #0f766e; }
.hi-photo-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; padding: .75rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.hi-photo-paste-zone { border: 2px dashed #cbd5e1; border-radius: .5rem; padding: 1rem; text-align: center; color: #64748b; margin-bottom: 1rem; cursor: pointer; outline: none; }
.hi-photo-paste-zone:focus { border-color: var(--primary, #1e40af); color: #334155; }
.hi-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: .85rem; width: 100%; align-items: start; }
.hi-photo-card { position: relative; border: 1px solid #dbe3ef; border-radius: 8px; overflow: hidden; background: #f8fafc; }
.hi-photo-card.is-cover { border-color: var(--primary, #1e40af); box-shadow: 0 0 0 2px rgba(30, 64, 175, .15); }
.hi-photo-card img { width: 100%; height: 128px; max-width: 100%; object-fit: cover; display: block; background: #f1f5f9; }
.hi-photo-card__pano-placeholder { display: grid; height: 136px; place-items: center; align-content: center; gap: .18rem; background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 48%, #d1fae5 100%); color: #0f766e; }
.hi-photo-card__pano-placeholder strong { font-size: 1.65rem; line-height: 1; letter-spacing: 0; }
.hi-photo-card__pano-placeholder span { color: #475569; font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.hi-photo-card__badge { position: absolute; top: .4rem; left: .4rem; z-index: 1; background: var(--primary, #1e40af); color: #fff; font-size: .7rem; font-weight: 600; padding: .15rem .45rem; border-radius: 999px; }
.hi-photo-card__meta { display: grid; gap: .1rem; padding: .55rem .55rem 0; }
.hi-photo-card__meta strong, .hi-photo-card__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-photo-card__meta strong { color: #0f172a; font-size: .84rem; }
.hi-photo-card__meta span { color: #64748b; font-size: .74rem; }
.hi-photo-card__actions { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem; }
.hi-photo-card__actions .btn { flex: 1 1 calc(50% - .25rem); min-width: 0; }
.hi-photo-card__primary-action { flex-basis: 100% !important; }
.hi-photo-card--pano img { height: 136px; }
.property-media-manager .hi-photo-manager--inline {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: #f8fafc;
}
.property-media-manager .hi-photo-tabs {
    margin-bottom: .85rem;
}
.hi-tour-editor-link {
    margin-left: auto;
}
.property-media-manager .hi-photo-panel {
    min-height: 120px;
}
.property-media-manager .hi-photo-card {
    background: #fff;
}
.property-media-manager .hi-photo-card__actions .btn {
    min-height: 30px;
    padding-left: .35rem;
    padding-right: .35rem;
}
@media (max-width: 720px) {
    .hi-media-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hi-media-panel-head { align-items: flex-start; flex-direction: column; }
    .hi-photo-room-form, .hi-photo-room-item, .hi-photo-toolbar { align-items: stretch; flex-direction: column; }
    .hi-photo-room-item__actions .btn, .hi-photo-toolbar .btn, .hi-photo-toolbar .form-select { width: 100%; max-width: none !important; }
    .hi-photo-grid { grid-template-columns: minmax(0, 1fr); }
    .hi-tour-editor-link { width: 100%; margin-left: 0; }
}
.property-hotspot-editor-backdrop { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 1rem; background: rgba(15, 23, 42, .62); }
.property-hotspot-editor { width: min(1180px, 100%); max-height: calc(100vh - 2rem); overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 8px; box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .3); }
.property-hotspot-editor__header, .property-hotspot-editor__footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid #e2e8f0; }
.property-hotspot-editor__header h3 { margin: 0; color: #0f172a; font-size: 1.1rem; }
.property-hotspot-editor__eyebrow { margin: 0 0 .1rem; color: #0f766e; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.property-hotspot-editor__room { display: block; margin-top: .15rem; color: #64748b; font-size: .78rem; }
.property-hotspot-editor__steps { display: flex; gap: 1rem; margin: 0 auto; padding: 0; list-style: none; }
.property-hotspot-editor__steps li { display: flex; gap: .4rem; align-items: center; color: #64748b; font-size: .74rem; font-weight: 600; }
.property-hotspot-editor__steps b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #e6fffb; color: #0f766e; font-size: .7rem; }
.property-hotspot-editor__footer { justify-content: flex-end; border-top: 1px solid #e2e8f0; border-bottom: 0; }
.property-hotspot-editor__save-status { margin-right: auto; color: #64748b; font-size: .82rem; font-weight: 600; }
.property-hotspot-editor__save-status.is-success { color: #15803d; }
.property-hotspot-editor__save-status.is-error { color: #b91c1c; }
.property-hotspot-editor__save-status.is-pending { color: #b45309; }
.property-hotspot-editor__layout { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; overflow: hidden; }
.property-hotspot-editor__stage-wrap { min-width: 0; display: grid; gap: .7rem; align-content: start; padding: 1rem; background: #f8fafc; }
.property-hotspot-editor__toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #64748b; font-size: .76rem; }
.property-hotspot-editor__modes { display: inline-flex; flex: 0 0 auto; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; }
.property-hotspot-editor__modes button { min-height: 30px; padding: .25rem .65rem; border: 0; border-right: 1px solid #cbd5e1; background: #fff; color: #475569; font-size: .78rem; cursor: pointer; }
.property-hotspot-editor__modes button:last-child { border-right: 0; }
.property-hotspot-editor__modes button.is-active { background: #0f766e; color: #fff; }
.property-hotspot-editor__stage-shell { position: relative; min-width: 0; }
.property-hotspot-editor__stage { width: 100%; height: min(60vh, 590px); overflow: hidden; border: 1px solid #cbd5e1; border-radius: 8px; background: #0f172a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 .45rem 1.1rem rgba(15, 23, 42, .08); }
.property-hotspot-editor__stage--branded-loader .pnlm-load-box { width: 176px; height: 176px; margin: -88px 0 0 -88px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .22); color: transparent; }
.property-hotspot-editor__stage--branded-loader .pnlm-load-box::before { content: ""; position: absolute; top: 38px; left: 50%; width: 82px; height: 54px; transform: translateX(-50%); background: var(--tour-loader-logo) center / contain no-repeat; filter: drop-shadow(0 .25rem .35rem rgba(15, 23, 42, .12)); z-index: 2; }
.property-hotspot-editor__stage--branded-loader .pnlm-load-box::after { content: ""; position: absolute; top: 25px; left: 50%; width: 106px; height: 106px; margin-left: -53px; border: 2px solid rgba(15, 118, 110, .14); border-top-color: var(--primary, #0f766e); border-radius: 50%; animation: hi-tour-loader-spin 1.1s linear infinite; }
.property-hotspot-editor__stage--branded-loader .pnlm-load-box > p:first-child { margin: 0; font-size: 0; line-height: 0; }
.property-hotspot-editor__stage--branded-loader .pnlm-lbox { display: none !important; }
.property-hotspot-editor__stage--branded-loader .pnlm-lbar { position: absolute; right: 28px; bottom: 32px; left: 28px; width: auto; height: 5px; margin: 0; overflow: hidden; border: 0; border-radius: 999px; background: rgba(15, 23, 42, .1); }
.property-hotspot-editor__stage--branded-loader .pnlm-lbar-fill { border-radius: inherit; background: var(--primary, #0f766e); }
.property-hotspot-editor__stage--branded-loader .pnlm-lmsg { position: absolute; right: 0; bottom: 14px; left: 0; margin: 0; color: #64748b; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
@keyframes hi-tour-loader-spin {
    to { transform: rotate(360deg); }
}
.property-hotspot-editor__empty { display: grid; min-height: 100%; place-items: center; margin: 0; color: #cbd5e1; }
.property-hotspot-editor__context { position: absolute; z-index: 12; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .18); }
.property-hotspot-editor__context[hidden] { display: none; }
.property-hotspot-editor__context button { padding: .55rem .7rem; border: 0; background: #fff; color: #334155; font-size: .78rem; cursor: pointer; }
.property-hotspot-editor__context button:hover { background: #f1f5f9; }
.property-hotspot-editor__context button.is-danger { color: #b91c1c; font-weight: 700; }
.property-hotspot-editor__context button.is-danger:hover { background: #fef2f2; }
.property-hotspot-editor__controls { display: flex; flex-wrap: wrap; gap: .35rem; }
.property-hotspot-editor__controls button { width: 34px; height: 32px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #334155; font-size: .9rem; font-weight: 700; cursor: pointer; }
.property-hotspot-editor__controls button:hover { border-color: #0f766e; color: #0f766e; }
.property-hotspot-editor__scenes-head { display: flex; gap: .45rem; align-items: baseline; margin-top: .1rem; color: #334155; font-size: .82rem; }
.property-hotspot-editor__scenes-head span { color: #94a3b8; font-size: .72rem; }
.property-hotspot-editor__scenes { display: flex; gap: .45rem; overflow-x: auto; padding: .1rem 0 .25rem; }
.property-hotspot-editor__scene { display: grid; grid-template-columns: 62px minmax(92px, 1fr); gap: .5rem; flex: 0 0 190px; align-items: center; overflow: hidden; padding: .35rem; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; color: #334155; text-align: left; cursor: pointer; }
.property-hotspot-editor__scene:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
.property-hotspot-editor__scene-thumb { position: relative; display: grid; width: 56px; height: 42px; place-items: center; overflow: hidden; border-radius: 4px; background: linear-gradient(135deg, #e2e8f0, #f8fafc); color: #0f766e; font-size: .68rem; font-weight: 800; }
.property-hotspot-editor__scene-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.property-hotspot-editor__scene-thumb:not(.is-missing) b { opacity: 0; }
.property-hotspot-editor__scene-text { display: grid; min-width: 0; gap: .1rem; }
.property-hotspot-editor__scene-name { display: block; min-width: 0; overflow: hidden; color: #1e293b; font-size: .76rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.property-hotspot-editor__scene-rename { width: fit-content; min-height: 24px; margin-top: .1rem; padding: .08rem .38rem; border: 1px solid #dbe3ef; border-radius: 6px; background: #f8fafc; color: #475569; font-size: .64rem; font-weight: 700; }
.property-hotspot-editor__scene-rename:hover,
.property-hotspot-editor__scene-rename:focus-visible { border-color: #0f766e; color: #0f766e; outline: none; }
.property-hotspot-editor__scene strong, .property-hotspot-editor__scene small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property-hotspot-editor__scene strong { font-size: .76rem; }
.property-hotspot-editor__scene small { color: #64748b; font-size: .68rem; }
.property-hotspot-editor__scene.is-active { border-color: #0f766e; background: #f0fdfa; box-shadow: 0 0 0 2px rgba(15, 118, 110, .12); }
.property-hotspot-editor__panel { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-left: 1px solid #e2e8f0; }
.property-hotspot-editor__panel-intro h4 { margin: .15rem 0 .25rem; color: #0f172a; font-size: 1rem; }
.property-hotspot-editor__panel-intro p:last-child { margin: 0; color: #64748b; font-size: .78rem; line-height: 1.45; }
.property-hotspot-editor__legend { display: flex; gap: .65rem; flex-wrap: wrap; padding: .55rem .65rem; border-radius: 8px; background: #f8fafc; color: #64748b; font-size: .72rem; }
.property-hotspot-editor__legend span { display: flex; gap: .3rem; align-items: center; }
.property-hotspot-editor__legend i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; font-style: normal; font-size: .68rem; font-weight: 700; }
.property-hotspot-editor__legend .is-info { background: #0f766e; }
.property-hotspot-editor__legend .is-navigation { background: #1d4ed8; }
.property-hotspot-editor__panel-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.property-hotspot-editor__list { display: grid; gap: .35rem; max-height: 185px; overflow: auto; }
.property-hotspot-editor__item { display: grid; gap: .15rem; width: 100%; padding: .6rem .65rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #334155; text-align: left; cursor: pointer; }
.property-hotspot-editor__item span { color: #64748b; font-size: .72rem; }
.property-hotspot-editor__item.is-active { border-color: #0f766e; background: #f0fdfa; }
.property-hotspot-editor__empty-list { display: grid; gap: .25rem; padding: .85rem; border: 1px dashed #cbd5e1; border-radius: 8px; color: #64748b; font-size: .76rem; line-height: 1.4; }
.property-hotspot-editor__empty-list strong { color: #334155; }
.property-hotspot-editor__form { display: grid; gap: .55rem; padding-top: .75rem; border-top: 1px solid #e2e8f0; }
.property-hotspot-editor__form label { display: grid; gap: .2rem; margin: 0; color: #475569; font-size: .78rem; font-weight: 600; }
.property-hotspot-editor__form.is-disabled { opacity: .68; }
.property-hotspot-editor__form-title { display: grid; gap: .1rem; color: #334155; font-size: .82rem; }
.property-hotspot-editor__form-title span { color: #94a3b8; font-size: .72rem; font-weight: 500; }
.property-hotspot-editor__action-picker { display: grid; grid-template-columns: 1fr; gap: .4rem; }
.property-hotspot-editor__action-picker button,
.property-hotspot-editor__target-choice { display: grid; gap: .12rem; width: 100%; padding: .58rem .65rem; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; color: #334155; text-align: left; cursor: pointer; }
.property-hotspot-editor__action-picker button:hover,
.property-hotspot-editor__target-choice:hover { border-color: #0f766e; background: #f8fffd; }
.property-hotspot-editor__action-picker button.is-active,
.property-hotspot-editor__target-choice.is-active { border-color: #0f766e; background: #f0fdfa; box-shadow: 0 0 0 2px rgba(15, 118, 110, .12); }
.property-hotspot-editor__action-picker button strong,
.property-hotspot-editor__target-choice strong { color: #0f172a; font-size: .78rem; }
.property-hotspot-editor__action-picker button span,
.property-hotspot-editor__target-choice span,
.property-hotspot-editor__target-wrap > span { color: #64748b; font-size: .7rem; line-height: 1.35; }
.property-hotspot-editor__target-wrap { display: grid; gap: .38rem; padding: .6rem; border: 1px solid #dbe3ef; border-radius: 8px; background: #f8fafc; }
.property-hotspot-editor__target-wrap > strong { color: #334155; font-size: .78rem; }
.property-hotspot-editor__target-choices { display: grid; gap: .35rem; }
.property-hotspot-editor__target-empty { padding: .55rem; border: 1px dashed #cbd5e1; border-radius: 7px; color: #64748b; font-size: .72rem; line-height: 1.35; }
.property-hotspot-editor__advanced { padding: .45rem .55rem; border: 1px solid #e2e8f0; border-radius: 7px; background: #f8fafc; }
.property-hotspot-editor__advanced summary { color: #64748b; cursor: pointer; font-size: .76rem; font-weight: 600; }
.property-hotspot-editor__coords { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.property-hotspot-editor__advanced .property-hotspot-editor__coords { padding-top: .5rem; }
.property-hotspot-editor__form-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.property-hotspot-marker-anchor { width: auto !important; height: auto !important; }
.property-hotspot-marker { display: flex; min-width: 38px; min-height: 38px; align-items: center; gap: .4rem; padding: .18rem .7rem .18rem .22rem; border: 2px solid #fff; border-radius: 999px; background: #0f766e; color: #fff; box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .42), 0 0 0 4px rgba(255, 255, 255, .32); cursor: grab; touch-action: none; }
.property-hotspot-marker.is-drag-source { opacity: .22; }
.property-hotspot-drag-preview { position: absolute; z-index: 30; pointer-events: none; cursor: grabbing; opacity: .96; }
.property-hotspot-marker::before { content: "i"; display: grid; width: 28px; height: 28px; place-items: center; flex: 0 0 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 15px; font-weight: 800; line-height: 1; }
.property-hotspot-marker span { max-width: 150px; overflow: hidden; font-size: .76rem; font-weight: 800; line-height: 1.1; text-shadow: 0 1px 1px rgba(15, 23, 42, .35); text-overflow: ellipsis; white-space: nowrap; }
.property-hotspot-marker--navigate { background: #1d4ed8; }
.property-hotspot-marker--navigate::before { content: ">"; }
.property-hotspot-marker.is-selected { box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .42), 0 0 0 5px rgba(245, 158, 11, .45), 0 0 0 8px rgba(255, 255, 255, .4); }
.property-hotspot-marker--icon-info::before { content: "i"; }
.property-hotspot-marker--icon-arrow::before { content: ">"; }
.property-hotspot-marker--icon-door::before { content: "D"; }
.property-hotspot-marker--icon-star::before { content: "*"; }
.property-hotspot-marker--icon-photo::before { content: "P"; }
.tour-editor-launchpad { max-width: 1280px; }
.tour-editor-launchpad__head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tour-editor-launchpad__head h2 { margin: 0 0 .35rem; color: #0f172a; font-size: 1.35rem; }
.property-hotspot-editor-backdrop--page { padding: 0; background: #eef2f6; }
.property-hotspot-editor-backdrop--page .property-hotspot-editor { width: 100%; height: 100vh; max-height: none; border-radius: 0; box-shadow: none; }
.property-hotspot-editor-backdrop--page .property-hotspot-editor__layout { flex: 1; grid-template-columns: minmax(0, 1fr) 400px; }
.property-hotspot-editor-backdrop--page .property-hotspot-editor__stage-wrap { align-content: stretch; grid-template-rows: auto minmax(0, 1fr) auto auto auto; padding: 1rem 1.25rem; }
.property-hotspot-editor-backdrop--page .property-hotspot-editor__stage-shell,
.property-hotspot-editor-backdrop--page .property-hotspot-editor__stage { height: 100%; min-height: 440px; }
@media (max-width: 860px) {
    .property-hotspot-editor__steps { display: none; }
    .property-hotspot-editor__layout { grid-template-columns: 1fr; overflow: auto; }
    .property-hotspot-editor__stage { height: 42vh; min-height: 260px; }
    .property-hotspot-editor__panel { overflow: visible; border-top: 1px solid #e2e8f0; border-left: 0; }
    .property-hotspot-editor-backdrop--page .property-hotspot-editor__layout { grid-template-columns: 1fr; }
    .property-hotspot-editor-backdrop--page .property-hotspot-editor__stage-shell,
    .property-hotspot-editor-backdrop--page .property-hotspot-editor__stage { height: 48vh; min-height: 300px; }
}
.hi-modal-header, .hi-modal-footer { padding: 1rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.hi-modal-footer { border-bottom: 0; border-top: 1px solid #e2e8f0; justify-content: flex-end; }
.hi-modal-body { padding: 1rem; max-height: 70vh; overflow: auto; overflow-x: hidden; }
.hi-modal-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #64748b; }
.hi-property-picker { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; }
.hi-property-picker__selected { min-height: 38px; border: 1px solid #dbe3ef; border-radius: .5rem; padding: .5rem .65rem; color: #334155; background: #f8fafc; }
.hi-property-picker-modal-backdrop { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 23, 42, .5); display: grid; place-items: center; padding: 1rem; }
.hi-property-picker-modal { width: min(760px, 100%); max-height: 84vh; overflow: hidden; background: #fff; border-radius: .75rem; box-shadow: 0 1rem 3rem rgba(15, 23, 42, .2); display: flex; flex-direction: column; }
.hi-property-picker-modal__header { padding: .9rem 1rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.hi-property-picker-modal__header h4 { margin: 0; font-size: 1rem; }
.hi-property-picker-modal__close { border: 0; background: transparent; font-size: 1.35rem; color: #64748b; line-height: 1; }
.hi-property-picker-modal__body { padding: .9rem; overflow: auto; display: grid; gap: .5rem; }
.hi-property-picker-modal__item { border: 1px solid #e2e8f0; background: #fff; border-radius: .6rem; padding: .45rem; display: grid; grid-template-columns: 84px 1fr auto; gap: .7rem; align-items: center; text-align: left; }
.hi-property-picker-modal__thumb { width: 84px; height: 58px; border-radius: .45rem; overflow: hidden; background: #f1f5f9; display: block; }
.hi-property-picker-modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hi-property-picker-modal__thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #94a3b8; font-size: .7rem; }
.hi-property-picker-modal__info { display: grid; gap: .1rem; }
.hi-property-picker-modal__info strong { color: #0f172a; font-size: .92rem; }
.hi-property-picker-modal__info small { color: #64748b; }
.hi-property-picker-modal__check { font-size: .82rem; color: #1e40af; font-weight: 600; }
.crm-visits-calendar { display: grid; gap: .8rem; }
.crm-visits-calendar__toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.crm-visits-calendar__toolbar strong { text-transform: capitalize; }
.crm-visits-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.crm-visits-filters__actions { display: flex; align-items: end; }
.crm-visits-calendar__weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; font-size: .78rem; color: #64748b; font-weight: 600; }
.crm-visits-calendar__weekdays span { text-align: center; padding: .25rem 0; }
.crm-visits-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
.crm-visits-day { border: 1px solid #e2e8f0; border-radius: .6rem; min-height: 180px; padding: .45rem; background: #fff; display: grid; grid-template-rows: auto 1fr; gap: .45rem; }
.crm-visits-day.is-empty { background: #f8fafc; border-style: dashed; min-height: 100px; }
.crm-visits-day__date { font-weight: 700; color: #334155; font-size: .9rem; }
.crm-visits-day__items { display: grid; gap: .4rem; align-content: start; }
.crm-visits-day__empty { font-size: .76rem; color: #94a3b8; }
.crm-visits-today { border: 1px solid #e2e8f0; border-radius: .7rem; padding: .8rem; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.crm-visits-today__header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.crm-visits-today__header h3 { margin: 0; font-size: .98rem; color: #0f172a; }
.crm-visits-today__count { font-size: .78rem; color: #475569; font-weight: 600; }
.crm-visits-today__empty { font-size: .85rem; color: #64748b; padding: .2rem 0; }
.crm-visits-today__list { display: grid; gap: .55rem; }
.crm-visits-today-card { border: 1px solid #dbe3ef; border-radius: .6rem; background: #fff; display: grid; grid-template-columns: 86px 1fr; gap: .65rem; padding: .5rem; }
.crm-visits-today-card__thumb { width: 86px; height: 86px; border-radius: .5rem; overflow: hidden; background: #e2e8f0; }
.crm-visits-today-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crm-visits-today-card__body { min-width: 0; display: grid; gap: .35rem; }
.crm-visits-today-card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.crm-visits-today-card__top strong { font-size: .9rem; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-visits-today-card__meta { font-size: .78rem; color: #475569; }
.crm-visits-today-card__notes { font-size: .77rem; color: #64748b; line-height: 1.35; }
.crm-visits-today-card__actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.hi-modal--reschedule { width: min(520px, 100%); }
.crm-visit-reschedule__presets { display: flex; gap: .45rem; flex-wrap: wrap; }
.crm-visit-reschedule__presets .btn { border-radius: 999px; }
.crm-visits-card { border: 1px solid #dbe3ef; border-radius: .5rem; padding: .35rem; display: grid; grid-template-columns: 52px 1fr; gap: .45rem; background: #f8fafc; cursor: pointer; }
.crm-visits-card:hover { border-color: #bfdbfe; background: #eff6ff; }
.crm-visits-card__thumb { width: 52px; height: 52px; border-radius: .4rem; overflow: hidden; background: #e2e8f0; }
.crm-visits-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crm-visits-card__thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #94a3b8; font-size: .6rem; text-align: center; padding: 2px; }
.crm-visits-card__content { display: grid; gap: .1rem; min-width: 0; }
.crm-visits-card__content strong, .crm-visits-card__content span, .crm-visits-card__content small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crm-visits-card__content strong { font-size: .78rem; color: #0f172a; }
.crm-visits-card__content span { font-size: .74rem; color: #334155; }
.crm-visits-card__content small { font-size: .7rem; color: #64748b; }
.crm-visit-detail { display: grid; gap: .65rem; }
.crm-visit-detail__row { display: grid; gap: .15rem; }
.crm-visit-detail__row strong,
.crm-visit-detail__notes strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.crm-visit-detail__row span { color: #0f172a; }
.crm-visit-detail__notes p { margin: .2rem 0 0; color: #334155; white-space: pre-wrap; }
.crm-visits-attention,
.crm-visits-report-section { border: 1px solid #e2e8f0; border-radius: .7rem; padding: .8rem; background: #fff; }
.crm-visits-attention { border-color: #fecaca; background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%); }
.crm-visits-attention__header,
.crm-visits-report-section__header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.crm-visits-attention__header h3,
.crm-visits-report-section__header h3 { margin: 0; font-size: .98rem; color: #0f172a; }
.crm-visits-attention__count { font-size: .78rem; color: #b91c1c; font-weight: 700; }
.crm-visits-report-section__count { font-size: .78rem; color: #475569; font-weight: 600; }
.crm-visits-attention__hint,
.crm-visits-report-section__hint { margin: 0 0 .65rem; font-size: .8rem; color: #64748b; line-height: 1.4; }
.crm-visits-attention__empty,
.crm-visits-report-section__empty { font-size: .85rem; color: #64748b; }
.crm-visits-report-wrap { overflow-x: auto; }
.crm-visits-report { width: 100%; border-collapse: collapse; font-size: .84rem; }
.crm-visits-report th,
.crm-visits-report td { padding: .5rem .55rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: middle; }
.crm-visits-report th { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: #64748b; background: #f8fafc; }
.crm-visits-report-row { cursor: pointer; }
.crm-visits-report-row:hover td { background: #f8fafc; }
.crm-visits-report-row.is-attention td { background: #fff1f2; }
.crm-visits-report-row.is-attention:hover td { background: #ffe4e6; }
.crm-visits-report__actions { white-space: nowrap; }
.crm-visits-report__actions .btn { margin-right: .25rem; margin-bottom: .2rem; }
@media (max-width: 991.98px) {
    .crm-visits-filters { grid-template-columns: 1fr; }
    .crm-visits-calendar__grid,
    .crm-visits-calendar__weekdays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crm-visits-day.is-empty { display: none; }
    .crm-visits-today-card { grid-template-columns: 72px 1fr; }
    .crm-visits-today-card__thumb { width: 72px; height: 72px; }
}

.property-editor-page .property-detail--editor {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
}

.property-editor-page .property-layout {
    padding: 1.25rem;
}

.pe-editable {
    cursor: pointer;
    border-radius: .35rem;
    transition: background .2s, box-shadow .2s;
}

.pe-editable:hover {
    background: #eff6ff;
    box-shadow: 0 0 0 1px #bfdbfe inset;
}

.pe-editable.is-editing {
    background: #dbeafe;
    box-shadow: 0 0 0 2px #60a5fa inset;
}

.pe-editable--block {
    display: block;
    min-height: 80px;
    padding: .5rem;
}

.pe-inline-input,
.pe-inline-textarea {
    width: 100%;
    border: 1px solid #93c5fd;
    border-radius: .4rem;
    background: #fff;
    color: #0f172a;
    padding: .35rem .5rem;
    font: inherit;
}

.pe-inline-input:focus,
.pe-inline-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

.pe-inline-textarea {
    min-height: 120px;
    resize: vertical;
}

.pe-action-bubble {
    position: fixed;
    z-index: 1200;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .2);
    padding: .3rem;
    display: inline-flex;
    gap: .3rem;
    align-items: center;
}

.pe-action-bubble.hidden {
    display: none;
}

.pe-action-bubble .btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 700;
}

/* Tenant CRM redesign */
.tenant-crm {
    --crm-sidebar-width: 228px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --radius-sm: var(--hi-radius-sm, 10px);
    --radius-md: var(--hi-radius-md, 14px);
    --radius-lg: var(--hi-radius-lg, 20px);
    --color-primary: var(--primary, #2563eb);
    --color-primary-dark: var(--secondary, #1d4ed8);
    --color-sidebar: var(--hi-sidebar-bg, var(--primary, #172554));
    --color-bg: var(--bg, #f8fafc);
    --color-surface: var(--surface, #ffffff);
    --color-border: var(--color-border, #e2e8f0);
    --color-text: var(--text, #0f172a);
    --color-muted: var(--text-muted, #64748b);
    --color-success-bg: #dcfce7;
    --color-success-text: #166534;
    --color-danger: #ef4444;
    font-family: "Inter", "Plus Jakarta Sans", "DM Sans", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
}

.tenant-crm *,
.tenant-crm *::before,
.tenant-crm *::after {
    transition-property: background-color, border-color, color, box-shadow, transform, opacity;
    transition-duration: 180ms;
    transition-timing-function: ease;
}

.tenant-crm .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    width: var(--crm-sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: var(--hi-sidebar-bg, var(--primary, #172554)) !important;
    color: #e2e8f0;
    padding: var(--space-xl) var(--space-md);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
    overflow-x: hidden;
    overflow-y: auto;
}

.tenant-crm .sidebar-brand {
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-sm);
    display: grid;
    gap: var(--space-xs);
}

.tenant-crm .sidebar-brand__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(226, 232, 240, 0.65);
    font-weight: 700;
}

.tenant-crm .sidebar-brand__name {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.tenant-crm .sidebar-brand__logo-link {
    display: block;
    line-height: 0;
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
}

.tenant-crm .sidebar-brand__logo {
    display: block;
    max-width: 100%;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tenant-crm .sidebar-brand__name--below {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.3;
}

.tenant-crm .sidebar-brand__slug {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: #fff;
}

.tenant-auth .auth-card__logo {
    display: block;
    max-width: 180px;
    max-height: 64px;
    width: auto;
    height: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.tenant-crm .settings-section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.tenant-crm .settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tenant-crm .settings-section__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.tenant-crm .settings-section__desc {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.tenant-crm .settings-branding__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.tenant-crm .settings-branding__img {
    max-width: 220px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tenant-crm .settings-branding__empty {
    font-size: 0.875rem;
    color: #94a3b8;
}

.tenant-crm .settings-branding__form {
    max-width: 520px;
}

.tenant-crm .settings-hero-media__preview {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 640px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.tenant-crm .settings-hero-media__preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #000;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.tenant-crm .settings-hero-media__preview-img,
.tenant-crm .settings-hero-media__preview-video {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tenant-crm .settings-hero-media__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.tenant-crm .settings-hero-media__form {
    max-width: 640px;
}

.tenant-crm .settings-branding__variants {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .tenant-crm .settings-branding__variants {
        grid-template-columns: 1fr;
    }
}

.tenant-crm .settings-branding__variant {
    border-radius: var(--radius-md);
    padding: 0.85rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tenant-crm .settings-branding__variant--dark-bg {
    background: #1e293b;
}

.tenant-crm .settings-branding__variant--light-bg {
    background: #f8fafc;
    border: 1px solid var(--color-border);
}

.tenant-crm .settings-branding__variant-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.tenant-crm .settings-branding__variant--dark-bg .settings-branding__variant-label {
    color: rgba(255, 255, 255, 0.72);
}

.tenant-crm .settings-branding__sizes {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tenant-crm .settings-branding__size-group + .settings-branding__size-group {
    margin-top: 1rem;
}

.tenant-crm .settings-branding__size-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.tenant-crm .settings-branding__fields {
    display: grid;
    gap: 0.85rem;
}

.tenant-crm .settings-theme__layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(300px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .tenant-crm .settings-theme__layout {
        grid-template-columns: 1fr;
    }
}

.tenant-crm .settings-theme__group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem 1.1rem;
    margin: 0 0 1rem;
    background: var(--color-surface);
}

.tenant-crm .settings-theme__group legend {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    padding: 0 0.35rem;
    margin-bottom: 0.75rem;
}

.tenant-crm .settings-theme__colors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.tenant-crm .settings-theme__color {
    display: grid;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--color-text);
    margin: 0;
}

.tenant-crm .settings-theme__color input[type="color"] {
    width: 100%;
    height: 2.25rem;
    padding: 0.15rem;
    border: var(--hi-border-width, 1px) solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: #fff;
}

.tenant-crm .settings-theme__range {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text);
}

.tenant-crm .settings-theme__range:last-child {
    margin-bottom: 0;
}

.tenant-crm .settings-theme__io {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.tenant-crm .settings-theme__io-desc {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.tenant-crm .settings-theme__io-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tenant-crm .settings-theme__preview-wrap {
    position: sticky;
    top: 1rem;
}

.tenant-crm .settings-theme__preview-title {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-muted);
}

.tenant-crm .settings-theme__preview {
    display: grid;
    grid-template-columns: 120px 1fr;
    min-height: 280px;
    border: var(--hi-border-width, 1px) solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.tenant-crm .settings-theme__preview-sidebar {
    background: var(--hi-sidebar-bg, var(--primary));
    color: #fff;
    padding: 1rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.tenant-crm .settings-theme__preview-main {
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
    background: var(--bg);
}

.tenant-crm .settings-theme__preview-card {
    border: var(--hi-border-width, 1px) solid var(--color-border);
    border-radius: var(--bs-border-radius, var(--radius-md));
    background: var(--surface);
}

.tenant-crm .settings-theme__preview-card .card-title {
    color: var(--text);
}

.tenant-crm .settings-theme__preview-form .form-control {
    border-width: var(--hi-border-width, 1px);
    border-radius: var(--bs-border-radius, var(--radius-md));
}

.tenant-crm .settings-theme__preview-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tenant-crm .settings-theme__preview-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.tenant-crm .settings-theme__preview-link:hover {
    color: var(--secondary);
}

.estate-logo-preview__img {
    max-height: 56px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem;
    background: #fff;
}

.tenant-crm .sidebar-nav {
    display: grid;
    gap: var(--space-xs);
    padding-bottom: var(--space-lg);
}

.tenant-crm .sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 550;
}

.tenant-crm .sidebar-link__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.tenant-crm .sidebar-link__icon svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.tenant-crm .sidebar-link__icon .hi-icons8-icon--sidebar {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.86;
}

.tenant-crm .sidebar-link.active .sidebar-link__icon,
.tenant-crm .sidebar-link:hover .sidebar-link__icon {
    background: rgba(255, 255, 255, 0.18);
}

.tenant-crm .sidebar-link.active .sidebar-link__icon svg,
.tenant-crm .sidebar-link:hover .sidebar-link__icon svg {
    stroke: #fff;
}

.tenant-crm .sidebar-link.active .sidebar-link__icon .hi-icons8-icon--sidebar,
.tenant-crm .sidebar-link:hover .sidebar-link__icon .hi-icons8-icon--sidebar {
    opacity: 1;
}

.tenant-crm .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(2px);
}

.tenant-crm .sidebar-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.tenant-crm .main-wrapper {
    margin-left: var(--crm-sidebar-width);
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.tenant-crm .panel {
    min-width: 0;
    max-width: 100%;
}

.tenant-crm .topbar {
    min-height: 72px;
    padding: 0 var(--space-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.tenant-crm .topbar-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tenant-crm .topbar-title {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
    font-weight: 750;
}

.tenant-crm .topbar-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--color-muted);
}

.tenant-crm .topbar-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tenant-crm .topbar-user__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    background: #fff;
}

.tenant-crm .topbar-user__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
}

.tenant-crm .topbar-user__name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.tenant-crm .btn-logout {
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #334155;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
}

.tenant-crm .btn-logout:hover {
    border-color: #c5d2e4;
    background: #f8fafc;
}

.tenant-crm .content {
    min-width: 0;
    padding: var(--space-xl);
}

.tenant-crm .cards-grid {
    gap: var(--space-md);
}

.tenant-crm .stat-card,
.tenant-crm .panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
}

.tenant-crm .panel {
    padding: var(--space-xl);
}

.tenant-crm .panel-header {
    margin-bottom: var(--space-lg);
}

.tenant-crm .panel-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.tenant-crm .btn {
    border-radius: 12px;
    font-weight: 600;
}

.tenant-crm .btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
    color: #fff;
    padding: 11px 16px;
}

.tenant-crm .btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.tenant-crm .btn-new-record {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tenant-crm .btn-new-record__icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.tenant-crm .btn-outline-secondary,
.tenant-crm .btn-outline-primary,
.tenant-crm .btn-outline-danger {
    border-radius: 10px;
    border-width: 1px;
    font-weight: 600;
    background: #fff;
}

.tenant-crm .btn-outline-secondary {
    border-color: #dbe3ef;
    color: #334155;
}

.tenant-crm .btn-outline-primary {
    border-color: #bfd3ff;
    color: #1d4ed8;
}

.tenant-crm .btn-outline-danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.tenant-crm .btn-outline-secondary:hover,
.tenant-crm .btn-outline-primary:hover,
.tenant-crm .btn-outline-danger:hover {
    transform: translateY(-1px);
}

.tenant-crm .form-label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 650;
    color: #334155;
}

.tenant-crm .form-control,
.tenant-crm .form-select {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    background: #fff;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 15px;
}

.tenant-crm textarea.form-control {
    min-height: 120px;
}

.tenant-crm .form-control:focus,
.tenant-crm .form-select:focus,
.tenant-crm .btn:focus-visible,
.tenant-crm .sidebar-link:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.tenant-crm .crm-properties-toolbar {
    grid-template-columns: minmax(260px, 1.2fr) repeat(4, minmax(140px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tenant-crm .crm-properties-toolbar.has-active-filters {
    border-color: #bfdbfe;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.tenant-crm .crm-properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: var(--space-lg);
}

.tenant-crm .crm-property-card {
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.tenant-crm .crm-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.tenant-crm .crm-property-card__cover {
    height: 190px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
}

.tenant-crm .crm-property-card__body {
    padding: 20px;
    gap: 12px;
}

.tenant-crm .crm-property-card__meta {
    align-items: flex-start;
}

.tenant-crm .status-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.tenant-crm .status-active {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.tenant-crm .status-inactive {
    background: #fef3c7;
    color: #92400e;
}

.tenant-crm .crm-property-card__price {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tenant-crm .crm-property-card__title {
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
}

.tenant-crm .crm-property-card__client {
    font-size: 13px;
    color: #334155;
}

.tenant-crm .crm-property-card__location {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 7px;
}

.tenant-crm .crm-property-card__location svg {
    width: 15px;
    height: 15px;
    color: #94a3b8;
    flex-shrink: 0;
}

.tenant-crm .crm-property-card__features {
    font-size: 14px;
    color: #475569;
    gap: 8px;
}

.tenant-crm .crm-property-card__actions {
    margin-top: 10px;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.tenant-crm .crm-property-card__actions .btn {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(25% - 8px);
    box-shadow: none;
}

.tenant-crm .crm-action-btn {
    min-width: 0;
}

.tenant-crm .crm-property-card__actions .btn-property-visits,
.tenant-crm .crm-property-card__actions .btn-photos {
    border-color: #dbe3ef;
    color: #334155;
    background: #fff;
}

.tenant-crm .crm-property-card__actions .btn-edit {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.tenant-crm .crm-property-card__actions .btn-delete {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fff5f5;
}

.tenant-crm .crm-property-empty {
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    background: #fff;
}

.tenant-crm .crm-property-card--skeleton {
    pointer-events: none;
}

.tenant-crm .crm-property-card--skeleton .crm-property-card__cover {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: crmShimmer 1.3s ease-in-out infinite;
}

.tenant-crm .crm-property-card__skeleton-line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: crmShimmer 1.3s ease-in-out infinite;
}

.tenant-crm .crm-property-card__skeleton-line.is-short {
    width: 35%;
}

.tenant-crm .crm-property-card__skeleton-line.is-medium {
    width: 60%;
}

.tenant-crm .crm-property-card__skeleton-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.tenant-crm .crm-property-card__skeleton-actions span {
    height: 30px;
    border-radius: 10px;
    flex: 1;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: crmShimmer 1.3s ease-in-out infinite;
}

@keyframes crmShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.tenant-crm .crm-properties-pagination {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid #e5e7eb;
}

.tenant-crm .crm-properties-pagination__meta {
    font-size: 14px;
}

.tenant-crm .crm-owners-module {
    display: grid;
    gap: 14px;
}

.tenant-crm .crm-owners-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tenant-crm .crm-owners-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 10px;
}

.tenant-crm .crm-people-module {
    display: grid;
    gap: 12px;
}

.tenant-crm .crm-people-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.tenant-crm .crm-people-filters {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) repeat(6, minmax(120px, 1fr)) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.tenant-crm .crm-people-filters.has-active-filters {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.tenant-crm .crm-people-filters__clear {
    white-space: nowrap;
    align-self: stretch;
}

.tenant-crm .crm-people-results-meta {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.tenant-crm .crm-people-filters-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    background: #fff;
}

.tenant-crm .crm-people-property-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(100%, 520px);
    padding: 0.35rem 0.5rem 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 600;
}

.tenant-crm .crm-people-property-chip__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 360px;
}

.tenant-crm .crm-people-property-chip__id {
    color: #64748b;
    font-weight: 500;
}

.tenant-crm .crm-people-property-chip__clear {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.15rem;
    cursor: pointer;
}

.tenant-crm .crm-people-property-chip__clear:hover {
    color: #b91c1c;
}

.hi-property-picker-modal--filter .hi-property-picker-modal__toolbar {
    padding: 0 0.9rem 0.65rem;
    border-bottom: 1px solid #e2e8f0;
}

.hi-property-picker-modal--filter .hi-property-picker-modal__header {
    border-bottom: 0;
}

.tenant-crm .crm-from-lead-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #ecfdf5;
    color: #047857;
    vertical-align: middle;
}

.tenant-crm .crm-owner-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-crm .crm-owner-cell__avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.tenant-crm .crm-owner-cell strong {
    display: block;
}

.tenant-crm .crm-owner-cell small,
.tenant-crm .crm-owner-contact small,
.tenant-crm .crm-owner-properties-stat small {
    color: #64748b;
    font-size: 12px;
}

.tenant-crm .crm-owner-contact,
.tenant-crm .crm-owner-properties-stat {
    display: grid;
}

.tenant-crm .crm-owner-profile {
    display: grid;
    gap: 12px;
}

.tenant-crm .crm-owner-profile__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-crm .crm-owner-profile__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.tenant-crm .crm-owner-profile__header h4 {
    margin: 0 0 2px;
}

.tenant-crm .crm-owner-profile__header p {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 13px;
}

.tenant-crm .crm-owner-profile__meta {
    display: grid;
    gap: 6px;
}

.tenant-crm .crm-owner-profile__meta p {
    margin: 0;
    color: #334155;
}

.tenant-crm .crm-owner-properties {
    display: grid;
    gap: 8px;
}

.tenant-crm .crm-owner-properties__item {
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    padding: 10px;
    display: grid;
    gap: 4px;
}

.tenant-crm .crm-owner-properties__item small {
    color: #64748b;
}

.tenant-crm .crm-owners-table td.actions {
    min-width: 220px;
}

.tenant-crm .crm-owner-actions {
    display: grid;
    gap: 8px;
}

.tenant-crm .crm-owner-actions__main,
.tenant-crm .crm-owner-actions__secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tenant-crm .crm-owner-actions__main .btn {
    border-color: #dbe3ef;
    background: #fff;
    color: #334155;
    font-weight: 600;
}

.tenant-crm .crm-owner-actions__secondary .btn-owner-add-property {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.tenant-crm .crm-owner-actions__secondary .btn-edit {
    border-color: #dbe3ef;
    background: #fff;
    color: #334155;
}

.tenant-crm .crm-owner-actions__secondary .btn-owner-archive {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.tenant-crm .table-wrap {
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: var(--radius-md);
    background: #fff;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tenant-crm .table-wrap .crm-table[data-module="proposals"] {
    min-width: 52rem;
}

.tenant-crm .crm-table {
    margin: 0;
}

.tenant-crm .crm-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px;
}

.tenant-crm .crm-table td {
    padding: 14px;
    vertical-align: middle;
}

.tenant-crm .crm-table td.actions {
    display: table-cell;
    vertical-align: middle;
    min-width: 7.5rem;
}

.tenant-crm .crm-table td.actions .crm-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm, 0.35rem);
    align-items: center;
}

.tenant-crm .actions {
    gap: var(--space-sm);
}

.tenant-crm .settings-panel p {
    color: #64748b;
}

.tenant-crm .settings-form {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.tenant-crm .settings-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tenant-crm .settings-form__message {
    font-size: 13px;
    font-weight: 600;
}

.tenant-crm .settings-form__message.is-success {
    color: #166534;
}

.tenant-crm .settings-form__message.is-error {
    color: #b91c1c;
}

.tenant-crm .settings-form__preview {
    margin-top: 14px;
}

.tenant-crm .settings-form__preview p {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.tenant-crm .settings-types-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tenant-crm .settings-type-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.tenant-crm.property-editor-page .property-editor-shell {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tenant-crm.property-editor-page .property-layout {
    padding: 24px;
    gap: 24px 28px;
}

.tenant-crm.property-editor-page .property-main,
.tenant-crm.property-editor-page .property-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.tenant-crm.property-editor-page .property-main {
    padding: 24px;
}

.tenant-crm.property-editor-page .property-sidebar {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.tenant-crm.property-editor-page .property-card-side {
    border-radius: 14px;
}

.tenant-crm.property-editor-page .property-card-side h2 {
    font-size: 20px;
    font-weight: 700;
}

.tenant-crm.property-editor-page .property-location {
    font-size: 13px;
    margin-bottom: 4px;
}

.tenant-crm.property-editor-page .property-title {
    margin-bottom: 10px;
}

.tenant-crm.property-editor-page .property-price {
    margin-bottom: 20px;
}

.tenant-crm.property-editor-page .property-description,
.tenant-crm.property-editor-page .property-amenities {
    margin-top: 18px;
    padding-top: 14px;
}

.tenant-crm.property-editor-page .property-description h2,
.tenant-crm.property-editor-page .property-amenities h2 {
    font-size: 18px;
    font-weight: 700;
}

.tenant-crm.property-editor-page .pe-editable {
    border-radius: 10px;
}

.tenant-crm.property-editor-page .pe-editable--block {
    min-height: 92px;
    padding: 10px;
}

.tenant-crm.property-editor-page .property-card-side dl {
    gap: 10px;
}

.tenant-crm.property-editor-page .property-card-side dl div {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.tenant-crm.property-editor-page .property-card-side dl div:last-child {
    border-bottom: 0;
}

.tenant-crm.property-editor-page .property-wizard__hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.tenant-crm.property-editor-page .property-wizard__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
}

.tenant-crm.property-editor-page .property-wizard__title {
    margin: 0;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.tenant-crm.property-editor-page .property-wizard__subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: #64748b;
}

.tenant-crm.property-editor-page .property-wizard__progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tenant-crm.property-editor-page .property-wizard__progress-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    flex: 1;
    overflow: hidden;
}

.tenant-crm.property-editor-page .property-wizard__progress-track span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #1d4ed8);
}

.tenant-crm.property-editor-page #property-progress-label {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.tenant-crm.property-editor-page .property-form {
    display: grid;
    gap: 18px;
}

.tenant-crm.property-editor-page .property-form-section {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.tenant-crm.property-editor-page .property-form-section h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
}

.tenant-crm.property-editor-page .property-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: start;
}

.tenant-crm.property-editor-page .property-form-grid__full {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tenant-crm.property-editor-page .property-reference-field {
    display: flex;
    gap: 8px;
}

.tenant-crm.property-editor-page .property-reference-field .form-control {
    flex: 1;
}

.tenant-crm.property-editor-page .property-form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.tenant-crm.property-editor-page .property-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.tenant-crm.property-editor-page .property-form-label-row .form-label {
    margin-bottom: 0;
}

.tenant-crm.property-editor-page .property-commission-preview {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px 14px;
}

.tenant-crm.property-editor-page .property-commission-preview p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #334155;
}

.tenant-crm.property-editor-page .property-commission-preview p:last-child {
    margin-bottom: 0;
}

.tenant-crm.property-editor-page .commission-guide-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(15, 23, 42, 0.55);
    display: grid;
    place-items: center;
    padding: 16px;
}

.tenant-crm.property-editor-page .commission-guide-modal {
    width: min(920px, 100%);
    max-height: 86vh;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dbe3ef;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
}

.tenant-crm.property-editor-page .commission-guide-modal__header {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tenant-crm.property-editor-page .commission-guide-modal__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.tenant-crm.property-editor-page .commission-guide-modal__close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.tenant-crm.property-editor-page .commission-guide-modal__body {
    padding: 14px 16px 18px;
    overflow: auto;
    display: grid;
    gap: 12px;
}

.tenant-crm.property-editor-page .commission-guide-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
}

.tenant-crm.property-editor-page .commission-guide-card h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.tenant-crm.property-editor-page .commission-guide-card p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #334155;
}

.tenant-crm.property-editor-page .commission-guide-card pre {
    margin: 0;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.45;
    padding: 10px;
    white-space: pre-wrap;
}

.tenant-crm.property-editor-page .form-check.is-required .form-check-label {
    color: #b91c1c;
    font-weight: 600;
}

.tenant-crm.property-editor-page .quill-editor {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 2px;
}

.tenant-crm.property-editor-page .quill-editor .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tenant-crm.property-editor-page .quill-editor .ql-container.ql-snow {
    border: 0;
    min-height: 180px;
    font-family: inherit;
    font-size: 15px;
}

.tenant-crm.property-editor-page .property-counter {
    display: grid;
    gap: 8px;
}

.tenant-crm.property-editor-page .property-counter__options {
    display: flex;
    gap: 8px;
}

.tenant-crm.property-editor-page .property-counter__btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
}

.tenant-crm.property-editor-page .property-counter__btn.is-active,
.tenant-crm.property-editor-page .property-counter__btn:hover {
    border-color: #60a5fa;
    background: #dbeafe;
    color: #1d4ed8;
}

.tenant-crm.property-editor-page .property-counter__custom {
    display: none;
}

.tenant-crm.property-editor-page .property-counter__custom.is-visible {
    display: block;
}

.tenant-crm.property-editor-page .property-status-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-crm.property-editor-page .property-status-field .form-select {
    flex: 1;
}

.tenant-crm .status-warning {
    background: #fef3c7;
    color: #92400e;
}

.tenant-crm.property-editor-page .energy-rating-selector {
    display: grid;
    gap: 6px;
}

.tenant-crm.property-editor-page .energy-rating-selector__option {
    height: 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 0 12px;
    opacity: 0.45;
    cursor: pointer;
    width: 100%;
}

.tenant-crm.property-editor-page .energy-rating-selector__option span {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.tenant-crm.property-editor-page .energy-rating-selector__option--a { background: #77c38d; width: 56%; }
.tenant-crm.property-editor-page .energy-rating-selector__option--b { background: #8fce9f; width: 64%; }
.tenant-crm.property-editor-page .energy-rating-selector__option--c { background: #aacd8a; width: 72%; }
.tenant-crm.property-editor-page .energy-rating-selector__option--d { background: #dccb8a; width: 80%; }
.tenant-crm.property-editor-page .energy-rating-selector__option--e { background: #e4be79; width: 88%; }
.tenant-crm.property-editor-page .energy-rating-selector__option--f { background: #df9e86; width: 94%; }
.tenant-crm.property-editor-page .energy-rating-selector__option--g { background: #df5353; width: 100%; }

.tenant-crm.property-editor-page .energy-rating-selector__option:hover,
.tenant-crm.property-editor-page .energy-rating-selector__option.is-active {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.tenant-crm.property-editor-page .energy-rating-selector__option.is-active {
    border-color: rgba(255, 255, 255, 0.4);
}

.tenant-crm.property-editor-page .property-publish-card__status {
    margin: 0 0 12px;
    font-size: 14px;
}

.tenant-crm.property-editor-page .property-publish-card__confirm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 12px;
}

.tenant-crm.property-editor-page .property-publish-card__actions {
    display: grid;
    gap: 8px;
}

.tenant-crm.property-editor-page .property-editor-feedback {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
}

.tenant-crm.property-editor-page .property-editor-feedback.is-error {
    color: #b91c1c;
}

.tenant-crm.property-editor-page .property-editor-feedback.is-success {
    color: #166534;
}

.tenant-crm.property-editor-page .property-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.tenant-crm.property-editor-page .property-checklist li {
    position: relative;
    padding-left: 24px;
    font-size: 13px;
    color: #64748b;
}

.tenant-crm.property-editor-page .property-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.tenant-crm.property-editor-page .property-checklist li.is-done {
    color: #166534;
}

.tenant-crm.property-editor-page .property-checklist li.is-done::before {
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: inset 0 0 0 3px #fff;
}

.tenant-crm.property-editor-page .amenities-builder {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.tenant-crm.property-editor-page .amenities-builder__input-wrap {
    display: flex;
    gap: 8px;
}

.tenant-crm.property-editor-page .amenities-builder__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tenant-crm.property-editor-page .amenities-builder__preset-btn {
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
}

.tenant-crm.property-editor-page .amenities-builder__preset-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.tenant-crm.property-editor-page .amenities-builder__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
}

.tenant-crm.property-editor-page .amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    padding: 5px 8px 5px 10px;
    font-size: 13px;
    font-weight: 600;
}

.tenant-crm.property-editor-page .amenity-chip__remove {
    border: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    line-height: 1;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.tenant-crm.property-editor-page .amenity-chip__remove:hover {
    background: #cbd5e1;
}

.tenant-crm.property-editor-page .amenities-builder__empty {
    font-size: 13px;
    color: #94a3b8;
}

.tenant-crm.property-editor-page .property-form-divider {
    grid-column: 1 / -1;
    margin: 2px 0 8px;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.tenant-crm.property-editor-page .proposal-choice-picker {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: #f8fafc;
}

.tenant-crm.property-editor-page .proposal-choice-picker__value {
    font-weight: 600;
    color: #0f172a;
}

.tenant-crm.property-editor-page .proposal-choice-picker__actions {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.tenant-crm.property-editor-page .proposal-picker-modal.hidden {
    display: none;
}

.tenant-crm.property-editor-page .proposal-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
}

.tenant-crm.property-editor-page .proposal-picker-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
}

.tenant-crm.property-editor-page .proposal-picker-modal__dialog {
    position: relative;
    width: min(760px, calc(100vw - 1.5rem));
    max-height: min(84vh, 760px);
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .25);
    padding: 1rem;
    overflow: auto;
}

.tenant-crm.property-editor-page .proposal-picker-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.tenant-crm.property-editor-page .proposal-picker-modal__header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.tenant-crm.property-editor-page .proposal-picker-modal__search {
    margin-bottom: .75rem;
}

.tenant-crm.property-editor-page .proposal-property-option,
.tenant-crm.property-editor-page .proposal-choice-picker__option {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: .7rem .8rem;
    text-align: left;
    margin-bottom: .5rem;
    cursor: pointer;
}

.tenant-crm.property-editor-page .proposal-property-option.is-selected,
.tenant-crm.property-editor-page .proposal-property-option:hover,
.tenant-crm.property-editor-page .proposal-choice-picker__option:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.tenant-crm.property-editor-page .proposal-property-option__title {
    display: block;
    font-weight: 600;
    color: #0f172a;
}

.tenant-crm.property-editor-page .proposal-property-option__meta {
    display: block;
    color: #64748b;
    font-size: .8rem;
}

.tenant-crm.property-editor-page .proposal-terms-editor {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: .9rem;
    margin-top: .75rem;
}

.tenant-crm.property-editor-page .proposal-terms-editor header h4 {
    margin: 0 0 .25rem;
    font-size: 1rem;
}

.tenant-crm.property-editor-page .proposal-terms-editor header p {
    margin: 0 0 .75rem;
    color: #64748b;
    font-size: .87rem;
}

.tenant-crm.property-editor-page .proposal-terms-editor__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .65rem;
}

.tenant-crm.property-editor-page .proposal-row-editor {
    margin-top: .8rem;
}

.tenant-crm.property-editor-page .proposal-row-editor__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
}

.tenant-crm.property-editor-page .proposal-row-editor__row {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: .65rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .55rem;
    margin-bottom: .55rem;
}

.tenant-crm.property-editor-page .proposal-row-editor__remove {
    grid-column: 1 / -1;
}

.tenant-crm.property-editor-page .proposal-notes-tools {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: .75rem;
    margin-bottom: .55rem;
    background: #f8fafc;
}

.tenant-crm.property-editor-page .proposal-notes-tools__title {
    margin: 0 0 .45rem;
    font-size: .83rem;
    color: #64748b;
}

.tenant-crm.property-editor-page .proposal-notes-tools__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.tenant-crm .hi-modal-overlay {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.tenant-crm .hi-modal {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.tenant-crm .hi-modal-header,
.tenant-crm .hi-modal-footer,
.tenant-crm .hi-modal-body {
    padding: var(--space-lg);
}

.crm-districts-panel .panel-header {
    align-items: flex-start;
    gap: 1rem;
}

.crm-districts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}

.crm-districts-counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.crm-districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.crm-district-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crm-district-card:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.crm-district-card__media {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 5;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    margin: 0;
}

.crm-district-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crm-district-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

.crm-district-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.crm-district-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.crm-district-card__hint {
    line-height: 1.35;
}

.crm-district-badges {
    margin-top: 0.75rem;
}

.crm-district-badges__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (max-width: 720px) {
    .crm-district-badges__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .crm-district-card {
        grid-template-columns: 1fr;
    }

    .crm-district-card__media {
        aspect-ratio: 16 / 10;
    }
}

.tenant-crm .sidebar-toggle,
.tenant-crm .sidebar-backdrop {
    display: none;
}

.tenant-crm .sidebar-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.tenant-crm .sidebar-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

@media (max-width: 1200px) {
    .tenant-crm .topbar {
        padding: 0 var(--space-lg);
    }

    .tenant-crm .content {
        padding: var(--space-lg);
    }
}

@media (max-width: 991.98px) {
    .tenant-crm .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(300px, 88vw);
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }

    .tenant-crm .main-wrapper {
        margin-left: 0;
        max-width: 100%;
    }

    .tenant-crm .sidebar-toggle {
        display: inline-flex;
    }

    .tenant-crm .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(15, 23, 42, 0.45);
        border: 0;
        cursor: pointer;
    }

    .tenant-crm.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .tenant-crm.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .tenant-crm .crm-properties-toolbar {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

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

    .tenant-crm.property-editor-page .property-layout {
        padding: 16px;
    }

    .tenant-crm.property-editor-page .property-main {
        padding: 18px;
    }

    .tenant-crm.property-editor-page .property-form-grid {
        grid-template-columns: 1fr;
    }

    .tenant-crm.property-editor-page .amenities-builder__input-wrap {
        flex-direction: column;
    }

    .tenant-crm.property-editor-page .amenities-builder__presets {
        gap: 6px;
    }

    .tenant-crm.property-editor-page .property-reference-field {
        flex-direction: column;
    }
}

/* ── CRM Dashboard ──────────────────────────────────────────────────── */
.crm-dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.crm-dashboard-welcome__name {
    margin: 0 0 0.3rem;
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.crm-dashboard-welcome__role {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.crm-dashboard-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.crm-dashboard-actions .btn {
    min-height: 40px;
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.crm-dashboard-actions .btn-outline-primary,
.crm-dashboard-actions .btn-outline-secondary {
    background: #fff;
}

.crm-dashboard-actions .btn-outline-primary {
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.crm-dashboard-actions .btn-outline-secondary {
    border-color: #cbd5e1;
    color: #334155;
}

.crm-dashboard-actions .btn-outline-primary:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.crm-dashboard-actions .btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.crm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.crm-kpi-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.crm-kpi-card--link {
    text-decoration: none;
    color: inherit;
}

.crm-kpi-card:not(.crm-kpi-card--skeleton):hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.crm-kpi-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.crm-kpi-card__icon svg {
    width: 20px;
    height: 20px;
}

.crm-kpi-card__icon .hi-icons8-icon--kpi {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.crm-kpi-card__value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}

.crm-kpi-card__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-muted);
    font-weight: 500;
}

.crm-kpi-card__sub {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.crm-kpi-card__sub strong {
    color: #166534;
    font-weight: 600;
}

.crm-kpi-card__cta {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
}

.crm-dashboard-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.crm-dashboard-panel {
    grid-column: span 8;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.05rem 1.1rem;
}

.crm-dashboard-panel--attention {
    grid-column: 1 / 9;
    grid-row: 1;
}

.crm-dashboard-panel--side {
    grid-column: 9 / 13;
    grid-row: 1 / span 4;
    align-self: start;
}

.crm-dashboard-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.crm-dashboard-panel__header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
}

.crm-dashboard-panel__header p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.crm-dashboard-panel__link {
    font-size: 0.8rem;
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
}

.crm-dashboard-panel__body--quicklinks {
    display: flex;
    flex-direction: column;
}

.crm-feed-list {
    display: grid;
    gap: 0.6rem;
}

.crm-feed-item {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.crm-feed-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.crm-feed-item__top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.crm-feed-item__meta {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.crm-attention-list {
    display: grid;
    gap: 0.55rem;
}

.crm-attention-item {
    display: block;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #fdba74;
}

.crm-empty-state {
    display: grid;
    gap: 0.45rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--color-muted);
}

.crm-empty-state strong {
    color: var(--color-text);
}

/* Skeleton */
.crm-kpi-card--skeleton { pointer-events: none; }

.crm-kpi-skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: crmShimmer 1.3s ease-in-out infinite;
}

.crm-kpi-skeleton-value {
    height: 2.25rem;
    width: 55%;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: crmShimmer 1.3s ease-in-out infinite;
}

.crm-kpi-skeleton-label {
    height: 0.8125rem;
    width: 70%;
    border-radius: 6px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: crmShimmer 1.3s ease-in-out infinite;
}

/* Quick links */
.crm-dashboard-quicklinks__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

.crm-quicklink-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    background: var(--ql-bg, #f8fafc);
    color: var(--ql-color, #334155);
    border-radius: 14px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.crm-quicklink-btn:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
    color: var(--ql-color, #334155);
}

.crm-quicklink-btn__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-quicklink-btn__icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.crm-quicklink-btn__icon .hi-icons8-icon--quicklink {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.crm-dashboard-metrics {
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.9rem;
    display: grid;
    gap: 0.75rem;
}

.crm-dashboard-metrics__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.crm-dashboard-metrics__header h4 {
    margin: 0;
    font-size: 0.95rem;
}

.crm-dashboard-metrics__header small {
    color: #64748b;
    font-size: 0.75rem;
}

.crm-dashboard-metrics__row {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem;
    background: #fff;
    display: grid;
    gap: 0.5rem;
}

.crm-dashboard-metrics__head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.82rem;
}

.crm-dashboard-metrics__head span {
    color: #334155;
}

.crm-dashboard-metrics__bar {
    background: #f1f5f9;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.crm-dashboard-metrics__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.crm-dashboard-metrics__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.65rem;
    font-size: 0.76rem;
    color: #475569;
}

.crm-dashboard-metrics__grid strong {
    color: #0f172a;
}

.crm-dashboard-metrics__footer {
    display: flex;
    justify-content: flex-end;
}

.crm-rental-followup {
    display: grid;
    gap: 0.9rem;
}

.crm-rental-followup__hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e2e8f0;
}

.crm-rental-followup__kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.crm-rental-followup__next {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    background: #f8fafc;
}

.crm-rental-followup__next h4,
.crm-rental-followup__timeline h4 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
}

.crm-rental-followup__timeline {
    display: grid;
    gap: 0.55rem;
}

.crm-rental-timeline__item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem;
    background: #fff;
    display: grid;
    gap: 0.45rem;
}

.crm-rental-timeline__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crm-rental-timeline__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.7rem;
    font-size: 0.8rem;
    color: #475569;
}

.crm-rental-timeline__actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.crm-rental-board-panel {
    display: grid;
    gap: 0.9rem;
}

.crm-rental-board-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.crm-rental-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.8rem;
}

.crm-rental-board-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem;
    background: #fff;
    display: grid;
    gap: 0.7rem;
}

.crm-rental-board-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: flex-start;
}

.crm-rental-board-card__head h3 {
    margin: 0;
    font-size: 1rem;
}

.crm-rental-board-card__property {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.7rem;
    align-items: flex-start;
}

.crm-rental-board-card__cover {
    width: 96px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-rental-board-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crm-rental-board-card__cover-fallback {
    font-size: 0.72rem;
    color: #64748b;
}

.crm-rental-board-card__info {
    min-width: 0;
}

.crm-rental-board-card__next {
    display: grid;
    gap: 0.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    background: #f8fafc;
}

.crm-rental-board-card__next span {
    color: #64748b;
    font-size: 0.78rem;
}

.crm-rental-board-card__next strong {
    color: #0f172a;
    font-size: 1rem;
}

.crm-rental-board-card__next small {
    color: #475569;
}

.crm-rental-board-card__timeline {
    display: grid;
    gap: 0.5rem;
}

.crm-rental-board-card__cycle {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem;
    background: #fff;
    display: grid;
    gap: 0.35rem;
}

.crm-rental-board-card__cycle-head {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
}

.crm-rental-board-card__cycle-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #475569;
}

.crm-rental-board-card__cycle-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.crm-rental-board-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

@media (max-width: 767.98px) {
    .crm-dashboard-welcome__name { font-size: 1.5rem; }
    .crm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .crm-dashboard-layout { grid-template-columns: 1fr; }
    .crm-dashboard-panel,
    .crm-dashboard-panel--attention,
    .crm-dashboard-panel--side { grid-column: auto; grid-row: auto; }
    .crm-dashboard-quicklinks__grid { grid-template-columns: 1fr; }
    .crm-dashboard-metrics__grid { grid-template-columns: 1fr; }
    .crm-rental-followup__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crm-rental-timeline__meta { grid-template-columns: 1fr; }
    .crm-rental-board-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crm-rental-board-grid { grid-template-columns: 1fr; }
    .crm-rental-board-card__property { grid-template-columns: 1fr; }
    .crm-rental-board-card__cover { width: 100%; height: 160px; }
    .crm-rental-board-card__cycle-meta { grid-template-columns: 1fr; }
    .crm-rental-board-card__actions .btn { width: 100%; }
    .hi-native-dialog { width: min(96vw, 520px); }
}

/* ── End CRM Dashboard ────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .tenant-crm .topbar {
        min-height: 64px;
        padding: 10px 14px;
    }

    .tenant-crm .topbar-subtitle,
    .tenant-crm .topbar-user__name {
        display: none;
    }

    .tenant-crm .content {
        padding: var(--space-md);
    }

    .tenant-crm .panel {
        padding: var(--space-lg);
        border-radius: 16px;
    }

    .tenant-crm .panel-header h2 {
        font-size: 22px;
    }

    .tenant-crm .crm-properties-toolbar {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }

    .tenant-crm .crm-properties-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .tenant-crm .crm-owners-kpis,
    .tenant-crm .crm-owners-filters,
    .tenant-crm .crm-people-kpis,
    .tenant-crm .crm-people-filters {
        grid-template-columns: 1fr;
    }

    .tenant-crm .crm-property-card__actions .btn {
        flex: 1 1 30%;
    }
}

/* Master admin: estrutura CRM com paleta fixa da plataforma (não herda tema do tenant) */
.tenant-crm--master {
    --primary: #1e40af;
    --secondary: #3b82f6;
    --accent: #2563eb;
    --bg: #f8fafc;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --color-border: #e2e8f0;
    --hi-sidebar-bg: #0f172a;
    --color-primary: #1e40af;
    --color-sidebar: #0f172a;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-muted: #64748b;
}

.tenant-crm--master .sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
}

.tenant-crm--master .sidebar-link:hover,
.tenant-crm--master .sidebar-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.tenant-crm--master .sidebar-link__label {
    line-height: 1.3;
}

.tenant-crm--master .btn-logout {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}
