/* Rentals workspace: navigation, visual system and responsive data views. */
:root {
    --ink: #172f34;
    --muted: #667d7d;
    --line: #dfe7e3;
    --green: #16765e;
    --navy: #152f34;
    --surface: #fff;
    color: var(--ink);
    background: #f5f7f4;
}

body {
    color: var(--ink);
    background: #f5f7f4;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.app-shell {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 25px 13px 18px;
    overflow: auto;
    color: #d7e5e0;
    background: #173237;
    border-right: 1px solid #24484b;
}

.sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin: 2px 10px 50px;
    color: #f7fcf9;
    white-space: nowrap;
}

.sidebar-brand .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    background: #dcf5e9;
    color: #155a49;
    box-shadow: inset 0 -3px #addfc7;
    font-size: 22px;
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    color: #fff;
    font-size: 15px;
    font-weight: 790;
    letter-spacing: -.035em;
}

.brand-copy small {
    color: #8faba9;
    font-size: 9px;
    font-weight: 790;
    letter-spacing: .17em;
}

.sidebar-nav {
    display: grid;
    align-content: start;
    gap: 3px;
}

.nav-caption {
    display: block;
    padding: 0 14px 9px;
    color: #789997;
    font-size: 9px;
    font-weight: 840;
    letter-spacing: .18em;
}

.nav-caption-secondary { padding-top: 29px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #a8bfba;
    font-size: 12px;
    font-weight: 700;
    transition: background .15s ease, color .15s ease;
}

.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .82; }
.nav-item:hover { background: #ffffff10; color: #fff; }
.nav-item:focus-visible { outline: 2px solid #a9e9be; outline-offset: 2px; }
.nav-item.is-active { color: #fff; background: #335950; border-color: #477265; box-shadow: inset 3px 0 #9adcb6; }
.nav-item.is-active svg { color: #a9e9be; opacity: 1; }

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 14px 12px;
    border: 1px solid #42615c;
    border-radius: 11px;
    background: #ffffff09;
}

.sidebar-footer-dot {
    width: 9px;
    height: 9px;
    flex: none;
    border-radius: 50%;
    background: #8be2ae;
    box-shadow: 0 0 0 4px #8be2ae1b;
}

.sidebar-footer strong,
.sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: 11px; color: #dcece3; }
.sidebar-footer small { margin-top: 3px; color: #8ca9a4; font-size: 10px; }

.workspace { min-width: 0; }

.workspace-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 70px;
    padding: 0 35px;
    background: #f9fbf8f2;
    border-bottom: 1px solid #e0e8e2;
    backdrop-filter: blur(14px);
}

.workspace-header-title { display: grid; gap: 3px; color: #263f42; font-size: 12px; font-weight: 720; }
.workspace-header-eyebrow { color: #708b87; font-size: 9px; font-weight: 820; letter-spacing: .14em; }
.workspace-header-actions { display: flex; align-items: center; gap: 20px; }
.workspace-date { color: #7d908f; font-size: 11px; white-space: nowrap; }
.workspace-header-actions form { margin: 0; }
.logout-button {
    height: 32px;
    padding: 0 11px;
    border: 1px solid #dce6e0;
    border-radius: 7px;
    color: #4b6668;
    background: #fff;
    font-size: 11px;
    font-weight: 750;
}
.logout-button:hover { border-color: #9fc9b5; color: #156f59; }
.logout-button span { margin-left: 6px; }

.workspace main.shell {
    width: min(100%, 1540px);
    padding: 32px 34px 80px;
}

.is-guest .guest-header {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 34px;
    background: #173237;
}
.is-guest .guest-header .sidebar-brand { margin: 0; }
.is-guest main.shell { padding-top: 45px; }

h1 { font-size: clamp(31px, 3vw, 42px); font-weight: 760; letter-spacing: -.055em; }
h2 { font-size: 18px; font-weight: 760; letter-spacing: -.035em; }
.eyebrow, .section-kicker { color: #15795e; letter-spacing: .15em; font-size: 10px; }
.eyebrow-light { color: #9bdeb9; }
.page-heading { align-items: center; margin: 0 0 22px; }
.page-heading .muted { font-size: 13px; line-height: 1.55; }
.stage-pill, .panel-count { background: #e7f4e9; border-color: #cde9d6; color: #176b51; font-size: 11px; }

.overview-hero,
.statistics-hero,
.run-hero {
    position: relative;
    overflow: hidden;
    min-height: 204px;
    padding: 30px 33px;
    border: 1px solid #2f5b57;
    border-radius: 16px;
    background: linear-gradient(115deg, #173437 0%, #204946 62%, #315b4a 100%);
    box-shadow: 0 10px 25px #1c413315;
}

.overview-hero::after,
.statistics-hero::after,
.run-hero::after {
    content: "";
    position: absolute;
    top: -135px;
    right: 17%;
    width: 325px;
    height: 325px;
    border: 1px solid #cceada18;
    border-radius: 50%;
    box-shadow: 0 0 0 70px #cceada08, 0 0 0 145px #cceada06;
    pointer-events: none;
}
.overview-hero > *, .statistics-hero > *, .run-hero > * { position: relative; z-index: 1; }
.overview-hero p, .statistics-hero p { max-width: 590px; color: #bcd8d0; }
.hero-mode, .live-position {
    border: 1px solid #9cd6b747;
    background: #ffffff12;
    box-shadow: inset 0 1px #ffffff14;
}
.hero-mode { width: 255px; padding: 18px; }
.hero-mode strong { font-size: 12px; letter-spacing: .01em; }
.hero-mode small { color: #c4dcd2; font-size: 11px; }
.hero-link { margin-top: 18px; color: #b9edc9; border-color: #8bcca4; }
.hero-link:hover { color: #fff; }
.mode-dot { background: #8ee2ac; }

.stats { gap: 12px; margin-bottom: 21px; }
.stat, .summary-tile, .review-metric {
    position: relative;
    border: 1px solid #e1e9e3;
    border-radius: 12px;
    box-shadow: 0 2px 7px #1a3e2a08;
}
.stat { min-height: 124px; padding: 20px 21px; }
.stat::before, .summary-tile::before, .review-metric::before {
    content: "";
    position: absolute;
    top: 0;
    left: 19px;
    width: 34px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #4cb986;
}
.stat > span, .summary-tile > span { color: #627e7b; font-size: 11px; font-weight: 750; }
.stat strong { color: #173438; font-size: 33px; font-weight: 790; }
.stat small { color: #7e9290; font-size: 10px; }
a.stat:hover, a.review-metric:hover { transform: translateY(-2px); border-color: #a6d7bd; }

.notice { border-radius: 10px; }
.notice-amber { background: #fff9ec; border-color: #eedfc2; }
.panel {
    border: 1px solid #e0e9e3;
    border-radius: 13px;
    box-shadow: 0 2px 7px #1a3e2a06;
}
.panel-heading { padding: 20px 23px 18px; }
.panel-heading p { color: #708580; font-size: 12px; }
.source-filters, .filter-panel { background: #fafcf9; padding: 17px 22px; }
.filter-field { gap: 6px; color: #536f6a; font-size: 10px; font-weight: 790; letter-spacing: .015em; }
.filter-field input, .filter-field select {
    height: 39px;
    padding: 0 11px;
    border-color: #d9e4dc;
    border-radius: 7px;
    color: #244541;
    font-size: 12px;
}
.filter-field input:focus, .filter-field select:focus { border-color: #399977; box-shadow: 0 0 0 3px #40ad7b22; }
.primary-button, .secondary-button { border-radius: 7px; font-size: 11px; letter-spacing: .01em; }
.primary-button { background: #176d55; border-color: #176d55; box-shadow: none; }
.primary-button:hover { background: #115840; }
.secondary-button { border-color: #cbded1; color: #176d55; }
.text-button { font-size: 11px; }
.source-filters { display: grid; grid-template-columns: minmax(210px, 2fr) repeat(3, minmax(135px, 1fr)) auto; gap: 10px; }
.source-filters .filter-field { min-width: 0; }
.source-filters .filter-actions { justify-content: flex-end; }
.filter-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.filter-panel .filter-search { grid-column: span 2; min-width: 0; }
.filter-panel .filter-field { min-width: 0; }
.filter-panel .filter-actions { justify-content: flex-end; }
.filter-direction { max-width: 165px; }

.table-wrap { scrollbar-color: #c6d9cb transparent; }
.sources-panel .table-wrap { max-height: 680px; overflow: auto; }
.data-table { font-size: 12px; }
.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 40px;
    background: #f6f9f5;
    color: #738a84;
    font-size: 9px;
    font-weight: 840;
}
.data-table th, .data-table td { padding: 12px 16px; border-color: #edf2ed; }
.data-table tbody tr:hover { background: #f7fbf7; }
.data-table td { color: #4c6461; }
.source-identity strong, .listing-identity strong, .strong-link { color: #173b39; }
.source-monogram { border-radius: 8px; color: #176d55; background: #e3f1e7; }
.source-identity small, .listing-identity small, .cell-secondary { color: #81948e; }
.row-arrow { background: #eaf4eb; color: #136c54; }
.row-arrow:hover { background: #d0e9d6; }

.status { gap: 6px; padding: 6px 9px; border-radius: 6px; font-size: 10px; font-weight: 780; }
.status::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.status-healthy, .status-active, .status-accepted, .status-probe_ready { background: #e5f5e9; color: #137250; }
.status-ready, .status-imported { background: #e9eff9; color: #426895; }
.status-quarantined, .status-suspect { background: #fff1d9; color: #956527; }
.status-failed, .status-withdrawn { background: #fbeae7; color: #ae554c; }
.status-delayed { background: #fff4db; color: #986723; }
.quality-meter { grid-template-columns: 38px minmax(42px, 66px); }
.quality-track { height: 5px; background: #e6ede7; }
.quality-high .quality-track > span { background: #249b70; }

.inventory-table { min-width: 1080px; }
.inventory-table .listing-identity { min-width: 245px; gap: 10px; }
.inventory-table .listing-thumbnail, .inventory-table .image-placeholder { width: 58px; height: 51px; border-radius: 7px; }
.inventory-table .listing-copy { display: block; min-width: 0; }
.inventory-table .strong-link { display: block; font-size: 12px; }
.inventory-table .listing-copy > small { max-width: 235px; margin-top: 5px; }
.listing-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: #81958d; font-size: 10px; }
.target-chip { display: inline-flex; padding: 2px 5px; border-radius: 4px; background: #e9f2e8; color: #477752; font-weight: 730; }
.landlord-cell { max-width: 150px; color: #375953!important; font-weight: 650; }
.property-cell { white-space: nowrap; }
.property-cell strong { display: block; color: #284844; font-size: 11px; font-weight: 720; }
.property-cell small, .rent-cell small, .timeline-cell small { display: block; margin-top: 5px; color: #93a39c; font-size: 10px; font-weight: 500; }
.property-separator { color: #b6c5bc; padding: 0 3px; }
.rent-cell { font-size: 12px; }
.timeline-cell strong { color: #344f4b; font-size: 11px; font-weight: 690; }
.table-footer { padding: 12px 20px; font-size: 11px; }
.table-footer strong { color: #244e42; }

.source-summary { gap: 11px; }
.summary-tile { min-height: 110px; }
.source-summary .summary-tile strong { color: #193d3b; }
.quality-overview { border-left: 3px solid #64b991; }
.quality-overview h2 { color: #193d3b; }
.detail-panel .details-grid { gap: 0; padding: 0; }
.details-grid > div {
    min-height: 88px;
    align-content: center;
    padding: 17px 20px;
    border-right: 1px solid #edf2ed;
    border-bottom: 1px solid #edf2ed;
}
.details-grid > div:nth-child(4n) { border-right: 0; }
.details-grid span { color: #718981; }
.details-grid strong { color: #254943; }
.detail-body { padding: 25px; }
.description { white-space: pre-wrap; font-size: 13px; line-height: 1.75; }
.listing-preview { max-width: min(100%, 540px); max-height: 360px; }
.raw-description { background: #f6f9f5; }
.media-review { display: grid; gap: 14px; padding-top: 4px; }
.media-review-title { display: flex; align-items: baseline; gap: 10px; }
.media-review-title strong { color: #1b4139; font-size: 15px; }
.media-review-title span { color: #778d83; font-size: 11px; font-weight: 700; }
.listing-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-width: 1000px; }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #e0e9df; border-radius: 10px; background: #f0f5ef; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 5px; background: #17392edb; color: #fff; font-size: 10px; font-weight: 800; }
.media-source-urls { max-width: 1000px; color: #517166; font-size: 11px; }
.media-source-urls summary { width: fit-content; }
.media-source-urls ol { display: grid; gap: 5px; max-height: 200px; margin: 10px 0 0; padding: 12px 12px 12px 32px; overflow: auto; border: 1px solid #e7eee7; border-radius: 8px; background: #f8faf7; }
.media-source-urls a { color: #226b53; overflow-wrap: anywhere; }
.media-empty { margin: 0; padding: 18px; border: 1px dashed #d8e6dc; border-radius: 9px; color: #71877c; background: #fafcf9; }
.media-floorplan { display: flex; align-items: center; gap: 12px; padding-top: 5px; font-size: 12px; }
.media-floorplan span { color: #8b9a91; }
.review-metric strong { color: #193e39; }
.review-grid > .panel { border-radius: 12px; }
.review-tabs a.is-selected, .period-pill.is-selected { background: #176d55; border-color: #176d55; }
.chart-point { stroke: #177e60; }
.bar-ready { fill: #248f69; }
.rank-row:hover { background: #f7fbf7; }

@media (max-width: 1200px) {
    .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
    .workspace main.shell { padding-left: 24px; padding-right: 24px; }
    .workspace-header { padding-left: 24px; padding-right: 24px; }
    .source-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .source-filters .source-search { grid-column: span 2; }
    .filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-panel .filter-search { grid-column: span 2; }
}

@media (max-width: 900px) {
    .app-shell { display: block; }
    .sidebar {
        position: relative;
        z-index: 11;
        display: block;
        width: 100%;
        height: auto;
        padding: 10px 17px 0;
        overflow: visible;
    }
    .sidebar-brand { margin: 0 0 10px; }
    .sidebar-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px; padding: 0 0 10px; }
    .nav-caption, .sidebar-footer { display: none; }
    .nav-item { min-width: 0; min-height: 36px; padding: 0 9px; white-space: nowrap; }
    .nav-item svg { width: 15px; height: 15px; }
    .workspace-header { position: relative; height: 55px; }
    .workspace main.shell { padding-top: 23px; }
}

@media (max-width: 680px) {
    .workspace-header { padding: 0 17px; }
    .workspace-header-title { font-size: 11px; }
    .workspace-header-eyebrow, .workspace-date { display: none; }
    .workspace main.shell { padding: 20px 15px 60px; }
    .overview-hero, .statistics-hero, .run-hero { min-height: 0; padding: 23px 21px; }
    .overview-hero::after, .statistics-hero::after, .run-hero::after { right: -65%; }
    .overview-hero h1, .statistics-hero h1, .run-hero h1 { font-size: 30px; }
    .stats, .source-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .stat, .summary-tile { min-height: 114px; padding: 16px; }
    .stat::before, .summary-tile::before { left: 16px; }
    .stat strong { font-size: 27px; }
    .source-filters, .filter-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px; gap: 10px; }
    .source-filters .source-search, .filter-panel .filter-search { grid-column: span 2; }
    .source-filters .filter-field, .filter-panel .filter-field { min-width: 0; }
    .source-filters .filter-actions { justify-content: flex-end; }
    .filter-panel .filter-actions { grid-column: span 2; }
    .filter-panel .filter-direction { max-width: none; }
    .panel-heading { padding: 18px; }
    .inventory-wrap { overflow: visible; }
    .inventory-table { min-width: 0; }
    .inventory-table tbody { padding: 10px; background: #f6f9f5; }
    .inventory-table tbody tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 10px;
        padding: 15px;
        box-shadow: none;
    }
    .inventory-table tbody td { padding: 4px 0; }
    .inventory-table .listing-identity { grid-column: 1 / -1; min-width: 0; }
    .inventory-table .inventory-source, .inventory-table .landlord-cell { grid-column: 1 / 2; }
    .inventory-table .inventory-location { grid-column: 2 / 3; }
    .inventory-table .property-cell { grid-column: 1 / 2; }
    .inventory-table .rent-cell { grid-column: 2 / 3; }
    .inventory-table .timeline-cell { grid-column: 1 / 2; }
    .inventory-table .quality-cell { grid-column: 2 / 3; }
    .inventory-table .state-cell { grid-column: 1 / 2; }
    .inventory-table .action-cell { grid-column: 2 / 3; }
    .inventory-table .listing-copy > small { max-width: 240px; }
    .inventory-table .quality-meter { grid-template-columns: 38px minmax(45px, 1fr); }
    .details-grid > div:nth-child(4n) { border-right: 1px solid #edf2ed; }
    .details-grid > div:nth-child(2n) { border-right: 0; }
    .details-grid > div { min-height: 77px; padding: 13px 17px; }
    .table-footer { padding: 11px 15px; }
}

@media (max-width: 420px) {
    .sidebar-brand .brand-mark { width: 32px; height: 32px; font-size: 19px; }
    .brand-copy strong { font-size: 13px; }
    .brand-copy small { font-size: 8px; }
    .nav-item { font-size: 11px; }
    .source-filters .filter-field, .filter-panel .filter-field { grid-column: span 2; }
    .source-filters .source-search, .filter-panel .filter-search { grid-column: span 2; }
    .source-filters .filter-actions { grid-column: span 2; justify-content: flex-start; }
    .filter-panel .filter-actions { grid-column: span 2; }
    .stats, .source-summary { grid-template-columns: 1fr 1fr; }
    .detail-panel .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.probe-delay {
    display: block;
    width: fit-content;
    margin-top: 5px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #fff4dd;
    color: #966c31;
    font-size: 9px;
    font-weight: 780;
    white-space: nowrap;
}
.probe-delay::before { content: "!"; margin-right: 4px; }

.listing-snapshot {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    min-height: 166px;
    margin-bottom: 17px;
    overflow: hidden;
    border: 1px solid #dfe9e1;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 2px 7px #1a3e2a06;
}
.listing-snapshot > img,
.listing-snapshot-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 166px;
    object-fit: cover;
    background: #e9f0e9;
}
.listing-snapshot-placeholder {
    display: grid;
    place-items: center;
    color: #acc6b5;
    font-size: 72px;
    font-weight: 400;
}
.listing-snapshot-main { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.listing-snapshot-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 22px 0;
    color: #66877c;
    font-size: 9px;
    font-weight: 840;
    letter-spacing: .14em;
}
.listing-snapshot-head .target-chip { letter-spacing: 0; text-transform: none; }
.listing-snapshot-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; padding: 9px 22px; }
.listing-snapshot-facts > div { padding-left: 18px; border-left: 1px solid #e6eee7; }
.listing-snapshot-facts > div:first-child { border-left: 0; padding-left: 0; }
.listing-snapshot-facts small { display: block; color: #7c9189; font-size: 10px; font-weight: 680; }
.listing-snapshot-facts strong { display: block; margin-top: 7px; color: #1a4238; font-size: 21px; font-weight: 780; letter-spacing: -.035em; white-space: nowrap; }
.listing-snapshot-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 22px;
    border-top: 1px solid #edf2eb;
    color: #6f8880;
    font-size: 11px;
}
.listing-snapshot-foot a { color: #126b53; font-weight: 780; white-space: nowrap; }
.listing-snapshot-foot a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
    .listing-snapshot-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .listing-snapshot-facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .listing-snapshot { min-height: 205px; }
    .listing-snapshot > img, .listing-snapshot-placeholder { min-height: 205px; }
}

@media (max-width: 680px) {
    .listing-snapshot { grid-template-columns: 1fr; }
    .listing-snapshot > img, .listing-snapshot-placeholder { height: 210px; min-height: 0; }
    .listing-snapshot-facts { padding: 17px; }
    .listing-snapshot-head { padding: 16px 17px 0; }
    .listing-snapshot-foot { padding: 12px 17px; }
    .listing-snapshot-facts strong { font-size: 19px; }
}
@media (max-width: 680px) {
    .inventory-table.has-source .inventory-source { grid-column: 1 / 2; }
    .inventory-table.has-source .landlord-cell { grid-column: 2 / 3; }
    .inventory-table.has-source .inventory-location { grid-column: 1 / 2; }
    .inventory-table.has-source .property-cell { grid-column: 2 / 3; }
}

.is-guest main.shell { width: min(100%, 1480px); padding: 36px; }
.login-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    min-height: min(680px, calc(100vh - 142px));
    overflow: hidden;
    border: 1px solid #dce7e0;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 16px 50px #153f2a0e;
}
.login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(35px, 6vw, 88px);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(140deg, #173437, #215344);
}
.login-story::after {
    content: "";
    position: absolute;
    top: -55px;
    right: -145px;
    width: 390px;
    height: 390px;
    border: 1px solid #b7ecc72b;
    border-radius: 50%;
    box-shadow: 0 0 0 92px #b7ecc710, 0 0 0 183px #b7ecc708;
}
.login-story > * { position: relative; z-index: 1; }
.login-story-kicker { color: #a7e3bb; font-size: 10px; font-weight: 840; letter-spacing: .17em; }
.login-story h1 { max-width: 570px; margin: 27px 0 22px; font-size: clamp(36px, 4.1vw, 59px); line-height: 1.05; }
.login-story p { max-width: 430px; color: #c3dcd2; font-size: 14px; line-height: 1.65; }
.login-story-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 76px;
    color: #a7cbbb;
    font-size: 11px;
    font-weight: 700;
}
.login-wrap { min-height: 0; padding: 34px; background: #fff; }
.login-card { width: min(100%, 390px); padding: 0; border: 0; box-shadow: none; }
.login-card h1 { font-size: 38px; }
.login-card .muted { font-size: 13px; }
.login-card .form-stack { margin-top: 33px; gap: 19px; }
.login-card .form-stack label { color: #3b5d55; font-size: 11px; }
.login-card .form-stack input { height: 46px; border-color: #d4e2d8; border-radius: 7px; }
.login-card .form-stack .primary-button { height: 46px; margin-top: 4px; }

@media (max-width: 900px) {
    .login-stage { grid-template-columns: 1fr; min-height: 0; }
    .login-story { min-height: 290px; padding: 35px; }
    .login-story h1 { max-width: 600px; margin: 19px 0 12px; font-size: 38px; }
    .login-story-foot { margin-top: 24px; }
    .login-wrap { min-height: 390px; }
}
@media (max-width: 680px) {
    .is-guest main.shell { padding: 15px; }
    .login-story { min-height: 275px; padding: 26px; }
    .login-story h1 { font-size: 31px; }
    .login-story p { font-size: 12px; }
    .login-wrap { padding: 30px 24px; }
    .login-card h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Landlord directory and verified company profiles. */
.landlord-directory .source-filters { grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto auto; }
.landlord-directory .source-search { min-width: 0; }
.landlord-table { min-width: 1010px; }
.landlord-table .source-identity { min-width: 215px; }
.landlord-avatar {
    width: 36px;
    height: 36px;
    flex: none;
    border: 1px solid #e0e9e1;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}
.landlord-logo-fallback[hidden], [data-landlord-logo][hidden] { display: none; }
.landlord-table .quality-meter { grid-template-columns: 38px 70px; }

.landlord-profile-hero {
    position: relative;
    min-height: 176px;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(110deg, #18383a, #2e6250);
    border-color: #315c51;
}
.landlord-cover {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .2;
}
.landlord-profile-core {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
}
.landlord-profile-logo, .landlord-profile-monogram {
    display: grid;
    place-items: center;
    width: 91px;
    height: 91px;
    flex: none;
    border: 1px solid #ffffff66;
    border-radius: 16px;
    background: #f6fcf7;
    object-fit: contain;
}
.landlord-profile-monogram {
    color: #24624c;
    font-size: 43px;
    font-weight: 800;
}
.landlord-profile-core .section-kicker { color: #b4e9c0; }
.landlord-profile-core h2 { margin: 8px 0 10px; color: #fff; font-size: 27px; }
.landlord-profile-core p { max-width: 650px; color: #d2e6d9; font-size: 12px; line-height: 1.65; }

.landlord-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    align-items: start;
    gap: 16px;
}
.landlord-profile-grid > .panel { min-width: 0; }
.landlord-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.landlord-details-grid > div:nth-child(2n) { border-right: 0; }
.landlord-completeness-body { padding: 23px; }
.landlord-completeness-body .quality-track { height: 8px; }
.landlord-completeness-body .quality-track span { background: #2a9a71; }
.landlord-completeness-body .muted { margin-top: 16px; }
.landlord-completeness-body .missing-fields { margin-top: 22px; }
.landlord-ready { margin-top: 20px; color: #147459; font-size: 12px; font-weight: 720; }
.landlord-allocation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.landlord-allocation-grid > div:nth-child(4n) { border-right: 1px solid #edf2ed; }
.landlord-allocation-grid > div:nth-child(3n) { border-right: 0; }
.landlord-source-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #edf2ed; }
.landlord-source-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; background: #fff; }
.landlord-source-links a:hover { background: #f8fbf7; }
.landlord-source-links strong { color: #245247; font-size: 12px; }
.landlord-listings-table { min-width: 710px; }

.landlord-form .panel { margin-bottom: 16px; }
.landlord-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
}
.landlord-field-wide { grid-column: 1 / -1; }
.landlord-form .filter-field { min-width: 0; }
.landlord-form .filter-field input,
.landlord-form .filter-field select { height: 43px; }
.landlord-form .filter-field textarea {
    width: 100%;
    min-height: 80px;
    padding: 11px 12px;
    border: 1px solid #d9e4dc;
    border-radius: 7px;
    color: #244541;
    background: #fff;
    font: inherit;
    font-size: 12px;
    line-height: 1.55;
    resize: vertical;
}
.landlord-form .filter-field textarea:focus { outline: none; border-color: #399977; box-shadow: 0 0 0 3px #40ad7b22; }
.field-hint { color: #81948d; font-size: 10px; font-weight: 500; line-height: 1.5; }
.landlord-form-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 7px 0 25px; }
.landlord-form-actions .primary-button, .landlord-form-actions .secondary-button { min-width: 125px; }
.landlord-stock-summary { display: grid; gap: 7px; padding: 23px; }
.landlord-stock-summary > strong { color: #214b3d; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.05em; }
.landlord-stock-summary > span { color: #536f66; font-size: 12px; }
.landlord-stock-summary small, .landlord-stock-summary a { color: #6f8b80; font-size: 11px; }
.landlord-stock-summary a { color: #176e53; font-weight: 760; }
.landlord-municipality-tags { display: flex; flex-wrap: wrap; align-content: start; gap: 7px; padding: 22px; }
.municipality-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #e0e9e2; border-radius: 999px; color: #426459; background: #f8faf7; font-size: 11px; font-weight: 730; }
.municipality-tag.is-official { color: #186d4d; border-color: #bbdfc8; background: #edf8ef; }
.municipality-tag small { color: #86a295; font-size: 9px; font-weight: 700; }
.landlord-empty-note { display: block; padding: 22px; color: #82978e; font-size: 12px; }
.landlord-queue-list { display: grid; }
.landlord-queue-card { display: grid; grid-template-columns: minmax(160px, 1.5fr) minmax(105px, 1fr) minmax(115px, 1fr) 24px; align-items: center; gap: 14px; padding: 15px 22px; border-top: 1px solid #edf2ed; color: #41675a; font-size: 12px; }
.landlord-queue-card:hover { background: #f8fbf7; }
.landlord-queue-card strong, .landlord-queue-card small { display: block; }
.landlord-queue-card strong { color: #234c3e; font-size: 13px; }
.landlord-queue-card small { margin-top: 3px; color: #859b8d; font-size: 10px; }
.landlord-municipalities-editor { display: grid; gap: 15px; padding: 22px 24px; }
.municipality-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 1px; max-height: 260px; overflow: auto; border: 1px solid #e3ebe3; border-radius: 10px; background: #e3ebe3; }
.municipality-option { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #fff; color: #31584a; font-size: 11px; cursor: pointer; }
.municipality-option:hover { background: #f3faf4; }
.municipality-option[hidden] { display: none; }
.municipality-option input { accent-color: #21815b; }
.municipality-option small { margin-left: auto; color: #90a69a; font-size: 9px; }
.queue-checkbox-field { display: flex; align-items: center; gap: 9px; color: #446658; font-size: 11px; font-weight: 730; }
.queue-checkbox-field input { accent-color: #21815b; }
.landlord-error-list { margin: 8px 0 0; padding-left: 17px; line-height: 1.6; }
.queue-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.queue-kpi { display: grid; gap: 5px; padding: 20px 22px; border: 1px solid #dfe9df; border-radius: 12px; background: linear-gradient(145deg, #fff, #f7faf6); box-shadow: 0 5px 22px #143c2510; }
.queue-kpi small { color: #6e8978; font-size: 9px; font-weight: 830; letter-spacing: .12em; }
.queue-kpi strong { color: #1c4937; font-size: 30px; line-height: 1.1; letter-spacing: -.055em; }
.queue-kpi span { color: #83998c; font-size: 11px; }
.queue-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(155px, 190px) minmax(140px, 165px) auto; align-items: end; gap: 11px; padding: 20px 23px; }
.queue-filters .filter-field { min-width: 0; }
.queue-table { min-width: 780px; }
.queue-table td { vertical-align: top; }
.queue-identity { display: grid; gap: 3px; min-width: 190px; }
.queue-identity strong { color: #245140; font-size: 12px; }
.queue-identity small { color: #84998d; font-size: 10px; }
.queue-type-tag { display: inline-block; margin-left: 5px; padding: 2px 5px; border-radius: 4px; background: #e7f2ea; color: #336c4b; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.queue-fee-stack { display: grid; gap: 4px; color: #236c4d; font-weight: 760; }
.queue-fee-stack > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.queue-fee-stack .queue-fee-label { width: 73px; margin: 0; color: #81958a; font-size: 9px; font-weight: 820; letter-spacing: .09em; }
.queue-fee-stack small { margin-left: 3px; color: #82988a; font-size: 10px; font-weight: 580; }
.queue-unknown { color: #9a6e43; background: #fff6e9; border: 1px solid #f0e2cb; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 760; white-space: nowrap; }
.queue-policy-value { color: #31594a; font-size: 11px; }
.queue-hero { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; padding: 28px 31px; border-radius: 13px; color: #eaf8e8; background: radial-gradient(circle at top right, #3a8664 0, transparent 42%), linear-gradient(115deg, #163d32, #1d5942); }
.queue-hero span { color: #a8d6b6; font-size: 9px; font-weight: 820; letter-spacing: .15em; }
.queue-hero strong { display: block; margin: 7px 0; color: #fff; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.035em; }
.queue-hero p { max-width: 560px; margin: 0; color: #c3dec9; font-size: 12px; line-height: 1.6; }
.queue-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.queue-hero-actions a { display: inline-block; padding: 9px 12px; border: 1px solid #ffffff59; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 750; white-space: nowrap; }
.queue-hero-actions a:hover { background: #ffffff1d; }
.queue-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 16px; }
.queue-detail-grid > .panel { min-width: 0; }
.queue-evidence-state { display: inline-block; padding: 6px 9px; border: 1px solid #eedbbd; border-radius: 999px; color: #946936; background: #fff8e9; font-size: 10px; font-weight: 780; white-space: nowrap; }
.queue-evidence-state.is-confirmed { border-color: #c9e5cf; color: #18704e; background: #eef8ee; }
.queue-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.queue-details-grid > div { border-right: 1px solid #edf2ed !important; }
.queue-details-grid > div:nth-child(2n) { border-right: 0 !important; }
.queue-evidence-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; border-top: 1px solid #edf2ed; color: #8da297; font-size: 10px; }
.queue-evidence-line a, .queue-source-link { color: #187455; font-weight: 770; }
.queue-renewal-body { display: grid; gap: 6px; padding: 22px; }
.queue-renewal-body strong { color: #285445; font-size: 17px; }
.queue-renewal-body span { color: #658579; font-size: 11px; }
.queue-renewal-body p { margin: 4px 0 0; color: #516d61; font-size: 12px; line-height: 1.6; }
.queue-rules-table { min-width: 690px; }
.queue-rules-table td { vertical-align: top; }
.queue-rules-table strong { color: #23573e; }
.queue-source-link { display: block; margin-top: 6px; font-size: 10px; }
.queue-policy-note { margin: 0 20px 18px; color: #506b59; font-size: 12px; line-height: 1.55; white-space: pre-line; }
.queue-edit-section { margin-bottom: 17px; }
.queue-rule-edit-list { display: grid; gap: 12px; padding: 19px; }
.queue-rule-edit-card { padding: 17px; border: 1px solid #e1eae2; border-radius: 10px; background: #fcfdfb; }
.queue-rule-edit-header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.queue-rule-edit-header strong { color: #2c5945; font-size: 13px; }
.queue-rule-edit-header span { color: #84998b; font-size: 10px; }
.queue-fee-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 14px; }
.queue-fee-form .filter-field { min-width: 0; }
.queue-field-wide { grid-column: span 2; }
.queue-fee-form > .primary-button { align-self: end; }
.queue-remove-form { display: flex; justify-content: flex-end; padding-top: 9px; }
.queue-linked-landlords { display: grid; }
.queue-linked-landlords > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 21px; border-top: 1px solid #edf2ed; }
.queue-linked-landlords a strong, .queue-linked-landlords a small { display: block; }
.queue-linked-landlords a strong { color: #285741; font-size: 12px; }
.queue-linked-landlords a small { color: #879d8d; font-size: 10px; }
.queue-link-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(155px, .65fr) minmax(220px, 1.2fr) auto; align-items: end; gap: 10px; padding: 20px; border-top: 1px solid #edf2ed; }
.queue-link-form .filter-field { min-width: 0; }

@media (max-width: 1050px) {
    .landlord-profile-grid { grid-template-columns: 1fr; }
    .queue-fee-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .queue-link-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .landlord-directory .source-filters { grid-template-columns: minmax(170px, 1fr) auto auto; }
    .landlord-directory .source-search { grid-column: 1 / -1; }
    .landlord-profile-core { align-items: flex-start; gap: 16px; padding: 25px; }
    .landlord-profile-logo, .landlord-profile-monogram { width: 70px; height: 70px; border-radius: 12px; }
    .landlord-profile-core h2 { font-size: 23px; }
    .landlord-allocation-grid { grid-template-columns: 1fr !important; }
    .landlord-allocation-grid > div { border-right: 0 !important; }
    .landlord-form-grid { gap: 16px; padding: 19px; }
    .landlord-source-links { grid-template-columns: 1fr; }
    .queue-kpis { grid-template-columns: 1fr 1fr; }
    .queue-kpis > :first-child { grid-column: 1 / -1; }
    .queue-filters { grid-template-columns: 1fr auto; padding: 17px; }
    .queue-filters > :first-child { grid-column: 1 / -1; }
    .queue-hero { display: block; padding: 25px; }
    .queue-hero-actions { margin-top: 17px; }
    .queue-detail-grid { grid-template-columns: 1fr; }
    .queue-fee-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chart-axis { font-size: 11px; }
}
@media (max-width: 480px) {
    .landlord-directory .source-filters { grid-template-columns: 1fr; }
    .landlord-directory .source-search { grid-column: 1; }
    .landlord-directory .source-filters .filter-field { grid-column: 1; }
    .landlord-profile-core { display: block; }
    .landlord-profile-logo, .landlord-profile-monogram { margin-bottom: 18px; }
    .landlord-details-grid { grid-template-columns: 1fr !important; }
    .landlord-details-grid > div { border-right: 0 !important; }
    .landlord-form-grid { grid-template-columns: 1fr; }
    .landlord-field-wide { grid-column: auto; }
    .landlord-form-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .municipality-options { grid-template-columns: 1fr; }
    .landlord-queue-card { grid-template-columns: 1fr 1fr 20px; }
    .landlord-queue-card > span:nth-child(3) { grid-column: 1 / 3; }
    .queue-kpis { gap: 8px; }
    .queue-kpi { padding: 15px; }
    .queue-kpi strong { font-size: 25px; }
    .queue-filters { grid-template-columns: 1fr; }
    .queue-filters > :first-child { grid-column: auto; }
    .queue-detail-grid .panel-heading { display: block; }
    .queue-detail-grid .queue-evidence-state { margin-top: 11px; }
    .queue-details-grid { grid-template-columns: 1fr !important; }
    .queue-details-grid > div { border-right: 0 !important; }
    .queue-fee-form, .queue-link-form { grid-template-columns: 1fr; }
    .queue-field-wide { grid-column: auto; }
}

@media (max-width: 760px) {
    .queue-directory .table-wrap, .queue-rules-wrap { overflow: visible; }
    .queue-table, .queue-rules-table { display: block; min-width: 0; width: 100%; }
    .queue-table thead, .queue-rules-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .queue-table tbody, .queue-rules-table tbody { display: grid; gap: 10px; padding: 12px; background: #f6f9f6; }
    .queue-table tbody tr, .queue-rules-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 15px; border: 1px solid #e1ebe3; border-radius: 10px; background: #fff; }
    .queue-table tbody tr:hover, .queue-rules-table tbody tr:hover { background: #fff; }
    .queue-table tbody td, .queue-rules-table tbody td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
    .queue-table tbody td[data-label]::before, .queue-rules-table tbody td[data-label]::before { display: block; margin-bottom: 5px; color: #84998c; content: attr(data-label); font-size: 9px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
    .queue-table tbody tr td:first-child, .queue-rules-table tbody tr td:first-child { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid #edf2ed; }
    .queue-table tbody td:last-child:not(.empty) { display: none; }
    .queue-table .queue-identity { min-width: 0; }
    .queue-table .queue-identity strong { font-size: 14px; }
    .queue-table .number-cell { white-space: normal; }
    .queue-rules-table tbody td:last-child { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid #edf2ed; }
    .queue-table tbody .empty, .queue-rules-table tbody .empty { grid-column: 1 / -1; padding: 12px; border: 0; }
}
