/*
 * Shared visual system for the Asset Mapping dashboard.
 *
 * The palette is inspired by the supplied mark: electric cyan, warm orange,
 * a near-black diamond, and crisp white. Cyan carries primary actions and
 * positive signals; orange is reserved for attention and financial warnings.
 */
:root {
    --ink: #111827;
    --muted: #667085;
    --muted-dark: #aab6c5;
    --line: #e2e8f0;
    --canvas: #f4f8fc;
    --surface: #ffffff;
    --sidebar: #050b14;
    --sidebar-soft: #101d2d;
    --cyan: #08a9e6;
    --cyan-dark: #007eaf;
    --cyan-soft: #e2f6fd;
    --orange: #ff9418;
    --orange-dark: #c96c00;
    --orange-soft: #fff1dc;
    --danger: #d85d66;
    --danger-soft: #fff0f1;
    --shadow: 0 18px 45px rgba(15, 38, 65, 0.08);
    --radius-lg: 22px;
    --radius-md: 14px;
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: 260px;
    min-height: 100vh;
    padding: 26px 18px 18px;
    background: var(--sidebar);
    color: #fff;
}
.sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px 35px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.brand-mark__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-mark__text {
    display: flex;
    flex-direction: column;
    font-family: 'Sora', sans-serif;
    line-height: 1.05;
}
.brand-mark__text strong { font-size: 17px; }
.brand-mark__text small { color: var(--muted-dark); font-size: 11px; margin-top: 4px; }
.sidebar__close {
    display: none;
    border: 0;
    background: transparent;
    color: #b8c9d8;
    font-size: 25px;
    line-height: 1;
}
.sidebar__section-label {
    padding: 0 12px 10px;
    color: #7891a8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.sidebar__nav { margin-bottom: 28px; }
.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 4px 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #b8c8d8;
    font-size: 13px;
    font-weight: 500;
    transition: 160ms ease;
}
.sidebar__link:hover,
.sidebar__link.is-active {
    border-color: rgba(8, 169, 230, 0.2);
    background: var(--sidebar-soft);
    color: #fff;
}
.sidebar__link.is-active { box-shadow: inset 3px 0 0 var(--cyan); }
.sidebar__icon { width: 18px; color: #7e9ab0; font-size: 17px; text-align: center; }
.sidebar__link.is-active .sidebar__icon { color: var(--cyan); }
.sidebar__soon { margin-left: auto; color: #71879e; font-size: 9px; text-transform: uppercase; }
.sidebar__footer { margin-top: auto; }
.sidebar__help-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 3px 18px;
    padding: 13px;
    border: 1px solid rgba(129, 171, 198, 0.18);
    border-radius: 13px;
    background: rgba(255,255,255,0.035);
}
.sidebar__help-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: rgba(8, 169, 230, 0.16);
    color: var(--cyan);
    font-weight: 700;
}
.sidebar__help-card div,
.sidebar__profile div { display: flex; flex-direction: column; min-width: 0; }
.sidebar__help-card strong { font-size: 11px; }
.sidebar__help-card small { margin-top: 2px; color: #7891a8; font-size: 10px; }
.sidebar__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 0;
    border-top: 1px solid rgba(129, 171, 198, 0.16);
}
.avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 50%;
    background: #000;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sidebar__profile strong { overflow: hidden; color: #edf7f4; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__profile small { color: #7891a8; font-size: 10px; }
.sidebar__profile-menu { margin-left: auto; color: #71879e; font-size: 19px; }

.main-content {
    width: calc(100% - 260px);
    min-width: 0;
    min-height: 100vh;
    margin-left: 260px;
    padding: 27px 38px 42px;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 47px;
    margin-bottom: 41px;
}
.topbar__left { display: flex; align-items: center; gap: 15px; }
.topbar__menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 23px; }
.icon { display: block; width: 16px; height: 16px; }
.topbar__menu .icon { width: 22px; height: 22px; }
.summary-card__icon .icon { width: 19px; height: 19px; }
.view-link { display: inline-flex; align-items: center; gap: 4px; }
.view-link .icon { width: 14px; height: 14px; }
code { color: var(--cyan-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.icon-button,
.user-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    height: 39px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: #55748d;
}
.icon-button:hover { border-color: #9ddcf3; color: var(--cyan-dark); }
.user-button { gap: 9px; padding: 0 11px 0 4px; color: var(--ink); font-size: 12px; font-weight: 600; }
.user-button .avatar { width: 29px; height: 29px; flex-basis: 29px; font-size: 9px; }

.dashboard-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}
.eyebrow {
    margin: 0 0 8px;
    color: var(--cyan-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Sora', sans-serif; }
h1 { margin-bottom: 9px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -0.055em; line-height: 1.05; }
.dashboard-heading p { max-width: 525px; margin-bottom: 0; color: var(--muted); font-size: 14px; }
.heading-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }

.summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.summary-card {
    min-height: 125px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.summary-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary-card__label { color: var(--muted); font-size: 12px; }
.summary-card__icon { color: var(--cyan); font-size: 19px; }
.summary-card__value { margin: 13px 0 3px; font-family: 'Sora', sans-serif; font-size: 28px; letter-spacing: -0.06em; }
.summary-card__meta { color: var(--muted); font-size: 11px; }

.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}
.section-title { margin: 0; font-size: 19px; letter-spacing: -0.035em; }
.section-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.revenue-chart { margin-bottom: 22px; padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.revenue-chart__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.revenue-chart__header .eyebrow { margin-bottom: 5px; font-size: 9px; }
.revenue-chart__header h3 { margin: 0; color: var(--ink); font-family: 'Sora', sans-serif; font-size: 18px; letter-spacing: -0.04em; }
.revenue-chart__header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.revenue-chart__property-count { display: grid; flex: 0 0 auto; gap: 2px; min-width: 78px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f3f9fd; text-align: center; }
.revenue-chart__property-count .metric-label { font-size: 9px; }
.revenue-chart__property-count strong { color: var(--ink); font-family: 'Sora', sans-serif; font-size: 20px; letter-spacing: -0.05em; line-height: 1; }
.revenue-chart__legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 10px; }
.revenue-chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.revenue-chart__swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.revenue-chart__swatch--collected { background: var(--cyan-dark); }
.revenue-chart__swatch--overdue { background: var(--orange); }
.revenue-chart__viewport { overflow: hidden; padding-bottom: 4px; }
.revenue-chart__plot { display: flex; width: 100%; height: 285px; padding-top: 5px; }
.revenue-chart__scale { display: flex; width: 64px; flex: 0 0 64px; flex-direction: column; justify-content: space-between; padding: 0 9px 28px 0; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; text-align: right; }
.revenue-chart__bars { position: relative; display: grid; width: 100%; height: 285px; min-width: 0; flex: 1 1 285px; grid-template-columns: repeat(var(--revenue-columns, 1), minmax(0, 1fr)); grid-template-rows: 285px; gap: clamp(2px, 0.7vw, 8px); padding: 0 clamp(4px, 1.2vw, 12px) 0 clamp(6px, 1.5vw, 16px); border-bottom: 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(50% - 1px), #e8f0f6 50%, transparent calc(50% + 1px), transparent 100%); }
.revenue-chart__bars::after { position: absolute; right: 0; bottom: 37px; left: 0; border-bottom: 1px solid var(--line); content: ''; pointer-events: none; }
.revenue-chart__bars.is-single { display: flex; align-items: stretch; justify-content: center; }
.revenue-chart__bars.is-single .revenue-chart__item { width: clamp(48px, 10%, 82px); flex: 0 0 clamp(48px, 10%, 82px); }
.revenue-chart__item.is-filtered-out { display: none; }
.revenue-chart__item { position: relative; display: flex; height: 100%; min-width: 0; flex-direction: column; justify-content: flex-end; outline: none; }
.revenue-chart__item:focus-visible .revenue-chart__bar, .revenue-chart__item:hover .revenue-chart__bar { box-shadow: 0 0 0 3px rgba(8, 169, 230, 0.18); }
.revenue-chart__bar { display: flex; width: 100%; height: calc(100% - 37px); min-height: 2px; flex: 0 0 calc(100% - 37px); flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 6px 6px 2px 2px; background: #eef5f9; transition: box-shadow 160ms ease, transform 160ms ease; }
.revenue-chart__item:hover .revenue-chart__bar, .revenue-chart__item:focus-visible .revenue-chart__bar { transform: translateY(-2px); }
.revenue-chart__segment { display: block; min-height: 0; }
.revenue-chart__segment--collected { background: var(--cyan-dark); }
.revenue-chart__segment--overdue { background: var(--orange); }
.revenue-chart__name { display: -webkit-box; height: 29px; margin-top: 8px; overflow: hidden; color: var(--muted); font-size: clamp(6px, 0.65vw, 9px); line-height: 1.15; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.revenue-chart__tooltip { position: absolute; z-index: 2; bottom: 38px; left: 50%; display: none; width: max-content; max-width: 190px; padding: 10px 11px; transform: translateX(-50%); border: 1px solid rgba(15, 38, 65, 0.14); border-radius: 10px; background: var(--ink); box-shadow: 0 10px 22px rgba(15, 38, 65, 0.18); color: white; font-size: 10px; pointer-events: none; }
.revenue-chart__item.is-tooltip-edge-left .revenue-chart__tooltip { left: 0; transform: none; }
.revenue-chart__item.is-tooltip-edge-right .revenue-chart__tooltip { right: 0; left: auto; transform: none; }
.revenue-chart__item:hover .revenue-chart__tooltip, .revenue-chart__item:focus-visible .revenue-chart__tooltip { display: grid; gap: 4px; }
.revenue-chart__tooltip strong { color: #d5f4ff; font-size: 11px; overflow-wrap: anywhere; }
.search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(100%, 270px);
    height: 41px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
}
.search-box span { color: #7899ad; font-size: 17px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #8da3b5; }
.property-controls { display: flex; align-items: center; gap: 8px; }
.sort-select,
.control-button {
    height: 41px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
    font-size: 11px;
}
.sort-select { padding: 0 27px 0 10px; outline: 0; }
.sort-select:focus { border-color: #9ddcf3; }
.control-button { padding: 0 13px; border-color: var(--cyan); background: var(--cyan); color: #03253a; font-weight: 700; }
.control-button:hover { background: #29b8ed; }
.workspace-chip { display: inline-flex; align-items: center; gap: 8px; height: 39px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 11px; }
.workspace-chip .status-dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--cyan-soft); }

.dashboard-stage {
    display: block;
    transition: grid-template-columns 360ms cubic-bezier(0.22, 1, 0.36, 1), gap 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dashboard-stage.is-focused {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    align-items: stretch;
    gap: 17px;
}
.dashboard-stage.is-focused .revenue-chart { min-width: 0; margin-bottom: 0; }
.dashboard-stage.is-focused .focused-property-slot { display: flex; }
.dashboard-stage.is-focused .focused-property-slot .property-card { width: 100%; min-height: 100%; }
.focused-property-slot {
    min-width: 0;
    min-height: 390px;
    border-radius: 24px;
}
.focused-property-slot[hidden] { display: none; }
.revenue-chart__empty { display: none; margin: 0 0 22px; }
.dashboard-stage.is-empty .revenue-chart,
.dashboard-stage.is-empty .focused-property-slot { display: none; }
.dashboard-stage.is-empty .revenue-chart__empty { display: block; }
.property-card-anchor { display: contents; width: 100%; }
.property-card-anchor.is-placeholder { display: none; }
.property-card.is-filtered-out,
.property-card-anchor.is-filtered-out { display: none; }
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}
.property-card {
    position: relative;
    display: flex;
    min-height: 390px;
    flex-direction: column;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(15, 38, 65, 0.1);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 14px 35px rgba(15, 38, 65, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.property-card::before { position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--orange)); content: ''; }
.property-card:hover { border-color: rgba(8, 169, 230, 0.32); box-shadow: 0 20px 48px rgba(15, 38, 65, 0.12); transform: translateY(-3px); }
.property-card { height: 100%; }
.property-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 69px; }
.property-card__identity { min-width: 0; }
.property-card h3 { max-width: none; margin: 0; color: var(--ink); font-family: 'Sora', sans-serif; font-size: 19px; letter-spacing: -0.05em; line-height: 1.2; overflow-wrap: anywhere; }
.property-card__mark { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border: 1px solid #bce8f7; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan-dark); }
.property-card__mark .icon { width: 18px; height: 18px; }
.property-card__location { display: flex; align-items: flex-start; gap: 8px; min-height: 42px; margin: 18px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.property-card__location-icon { flex: 0 0 auto; margin-top: 2px; color: var(--cyan-dark); }
.property-card__location-icon .icon { width: 14px; height: 14px; }
.property-card__overview { display: grid; grid-template-columns: minmax(88px, 0.72fr) minmax(0, 1.28fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.property-card__stat { min-width: 0; }
.property-card__stat--units { padding-right: 18px; border-right: 1px solid var(--line); }
.property-card__stat-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.metric-label { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
.metric-value { display: block; margin-top: 4px; color: var(--ink); font-family: 'Sora', sans-serif; font-size: 25px; letter-spacing: -0.07em; line-height: 1; }
.property-card__stat-line .metric-value { margin-top: 0; font-size: 22px; }
.metric-note { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.property-card__stat-line + .occupancy-track { margin-top: 11px; }
.occupancy-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e5f0f6; }
.occupancy-track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-dark), var(--cyan)); transition: width 300ms ease; }
.property-card__overdue { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 13px 15px; border: 1px solid #d9e9f2; border-radius: 14px; background: #f3f9fd; }
.property-card__overdue.has-overdue { border-color: #f1d8ad; background: var(--orange-soft); }
.property-card__overdue .metric-label { color: var(--ink); }
.property-card__overdue strong { flex: 0 0 auto; color: var(--cyan-dark); font-family: 'Sora', sans-serif; font-size: 17px; letter-spacing: -0.05em; }
.property-card__overdue.has-overdue strong { color: var(--orange-dark); }
.property-card__taxes { margin-top: auto; padding-top: 18px; }
.property-card__tax-grid { display: grid; gap: 7px; }
.property-card__tax-grid > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid #e8eef3; border-radius: 11px; background: #fbfdff; }
.property-card__tax-grid .metric-label { flex: 0 0 auto; white-space: nowrap; }
.tax-value { min-width: 0; margin-left: auto; color: var(--ink); font-family: 'Sora', sans-serif; font-size: 12px; letter-spacing: -0.05em; white-space: nowrap; text-align: right; }

.empty-state,
.error-state {
    grid-column: 1 / -1;
    padding: 50px 25px;
    border: 1px dashed #c8dbe7;
    border-radius: 22px;
    background: rgba(255,255,255,0.62);
    color: var(--muted);
    text-align: center;
}
.error-state { border-color: #f0c6c9; background: var(--danger-soft); color: #a34d54; }
.empty-state strong, .error-state strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: 'Sora', sans-serif; font-size: 16px; }
.error-state strong { color: #a34d54; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.pagination a { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--cyan-dark); font-size: 15px; }
.pagination a:hover { border-color: #9ddcf3; background: var(--cyan-soft); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin-left: 260px; padding: 0 38px 22px; color: #7c8fa2; font-size: 10px; }

@media (max-width: 1120px) {
    .main-content { padding-right: 25px; padding-left: 25px; }
    .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer { padding-right: 25px; padding-left: 25px; }
}

@media (max-width: 980px) {
    .dashboard-stage.is-focused { display: block; }
    .dashboard-stage.is-focused .focused-property-slot { margin-top: 17px; }
}

@media (max-width: 780px) {
    .sidebar { width: 250px; transform: translateX(-100%); transition: transform 200ms ease; box-shadow: 12px 0 30px rgba(0,0,0,0.17); }
    .sidebar__close { display: block; }
    .sidebar-is-open .sidebar { transform: translateX(0); }
    .sidebar-is-open::after { position: fixed; z-index: 10; inset: 0; background: rgba(4, 17, 30, 0.52); content: ''; }
    .main-content { width: 100%; margin-left: 0; padding: 20px 18px 35px; }
    .topbar { margin-bottom: 32px; }
    .topbar__menu { display: inline-flex; }
    .workspace-chip { display: none; }
    .dashboard-heading { display: block; }
    .heading-note { margin-top: 18px; }
    .summary-grid { grid-template-columns: 1fr; }
    .section-toolbar { align-items: flex-start; flex-direction: column; }
    .property-controls { width: 100%; flex-wrap: wrap; }
    .property-controls .search-box { flex: 1 1 190px; width: auto; }
    .sort-select { flex: 0 0 auto; }
    .control-button { flex: 0 0 auto; }
    .property-grid { grid-template-columns: 1fr; }
    .revenue-chart { padding: 20px 18px 18px; }
    .revenue-chart__header { align-items: flex-start; flex-direction: column; gap: 12px; }
    .revenue-chart__legend { justify-content: flex-start; }
    .site-footer { margin-left: 0; padding: 0 18px 18px; }
}

@media (max-width: 600px) {
    .property-card { min-height: 0; padding: 19px; }
    .property-card__top { min-height: 0; }
    .property-card__overview { grid-template-columns: 1fr 1.35fr; gap: 14px; }
    .property-card__stat--units { padding-right: 14px; }
    .property-card__tax-grid { gap: 6px; }
    .property-card__tax-grid > div { padding-right: 10px; padding-left: 10px; }
    .tax-value { font-size: 12px; }
}

@media (max-width: 430px) {
    h1 { font-size: 32px; }
    .topbar__actions { gap: 5px; }
    .icon-button { min-width: 35px; }
    .property-card__overview { display: block; }
    .property-card__stat--units { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
    .property-card__stat--occupancy { padding-top: 14px; }
    .property-card__overdue { align-items: flex-start; flex-direction: column; gap: 8px; }
    .property-card__overdue strong { font-size: 20px; }
}

.admin-page-heading { margin-bottom: 16px; }
.admin-page-heading h1 { margin-bottom: 5px; }
.admin-page-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.admin-table-card,
.admin-form-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 14px 18px; background: #f7fafc; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.admin-table td { padding: 16px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; vertical-align: middle; }
.admin-table__summary { cursor: pointer; transition: background 160ms ease; }
.admin-table__summary:hover,
.admin-table__summary:focus-within { background: #fbfdff; }
.admin-table__summary td:first-child { color: var(--ink); font-weight: 700; }
.admin-table__name { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.admin-table__toggle { display: inline-grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid #cfe4ee; border-radius: 8px; background: var(--cyan-soft); color: var(--cyan-dark); font-size: 14px; line-height: 1; transition: transform 160ms ease, background 160ms ease; }
.admin-table__toggle[aria-expanded="true"] { background: var(--cyan); color: #03253a; }
.admin-table__toggle span { display: block; transform: translateY(-1px); }
.admin-table__address { max-width: 360px; color: var(--muted); line-height: 1.4; }
.admin-table__action { text-align: right; }
.admin-detail-row td { padding: 0; background: #f8fbfd; }
.admin-detail-row.is-open td { padding-top: 12px; }
.admin-detail { max-height: 0; margin: 0 18px; overflow: hidden; padding: 0 18px; border: 1px solid transparent; border-radius: 14px; background: var(--surface); opacity: 0; transition: max-height 220ms ease, margin 220ms ease, padding 220ms ease, border-color 220ms ease, opacity 160ms ease; }
.admin-detail-row.is-open .admin-detail { max-height: 500px; margin: 0 18px 28px; padding: 18px; border-color: #dbe9f0; opacity: 1; }
.admin-detail__address { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.admin-detail__address strong { color: var(--ink); }
.admin-detail__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-detail__metric { min-width: 0; padding: 12px; border: 1px solid #e8eef3; border-radius: 11px; background: #fbfdff; }
.admin-detail__metric strong { display: block; margin-top: 5px; color: var(--ink); font-family: 'Sora', sans-serif; font-size: 15px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.admin-detail__metric--wide { grid-column: span 2; }
.admin-feedback { margin-bottom: 20px; padding: 13px 16px; border: 1px solid #bce8f7; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan-dark); font-size: 12px; }
.admin-feedback--error { border-color: #f0c6c9; background: var(--danger-soft); color: #a34d54; }
.admin-feedback--error strong { display: block; margin-bottom: 4px; color: #8d3c45; }
.admin-feedback--error span { display: block; margin-bottom: 5px; }
.admin-feedback--error ul { margin: 0; padding-left: 18px; }
.admin-feedback--error li + li { margin-top: 3px; }
.admin-empty { padding: 45px 25px; color: var(--muted); text-align: center; }
.admin-empty strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: 'Sora', sans-serif; }
.admin-form { padding: 16px; }
.admin-form__section { margin: 0; padding: 0 0 16px; border: 0; }
.admin-form__section + .admin-form__section { padding-top: 16px; border-top: 1px solid var(--line); }
.admin-form__legend { margin-bottom: 11px; color: var(--ink); font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; }
.admin-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-form__field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.admin-form__field--wide { grid-column: 1 / -1; }
.admin-form__field label { color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-form__field input,
.admin-form__field select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface); color: var(--ink); font-size: 12px; }
.admin-form__field input:focus,
.admin-form__field select:focus { border-color: #9ddcf3; box-shadow: 0 0 0 3px rgba(8, 169, 230, .1); }
.admin-editor-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-editor-hero__badge { display: inline-flex; min-height: 32px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #c7eadf; border-radius: 999px; background: #effbf7; color: #16745e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-editor-hero__dot { width: 7px; height: 7px; border-radius: 50%; background: #24b68a; box-shadow: 0 0 0 4px rgba(36,182,138,.12); }
.admin-editor-card { overflow: hidden; }
.admin-editor-shell { display: grid; grid-template-columns: minmax(180px, .25fr) minmax(0, 1fr); align-items: start; column-gap: 18px; }
.admin-editor-rail { position: sticky; top: 16px; margin: 10px 0 16px 10px; padding: 17px 16px; border: 1px solid #e3edf2; border-radius: 12px; background: #f8fbfd; }
.admin-editor-rail__eyebrow { margin: 0 0 6px; color: var(--cyan-dark); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-editor-rail__name { margin: 0 0 12px; color: var(--ink); font-family: 'Sora', sans-serif; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.admin-editor-rail__hint { margin: 0 0 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-editor-rail__metric { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 0; border-top: 1px solid #e3edf2; color: var(--muted); font-size: 10px; }
.admin-editor-rail__metric strong { color: var(--ink); font-family: 'Sora', sans-serif; font-size: 13px; }
.admin-editor-workspace { min-width: 0; }
.admin-editor-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 5px 14px 0; border-bottom: 1px solid var(--line); background: #fbfdff; }
.admin-editor-tab { min-height: 44px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.admin-editor-tab:hover { color: var(--ink); }
.admin-editor-tab.is-active { border-bottom-color: var(--cyan); color: var(--cyan-dark); }
.admin-editor-panel { padding: 8px 8px 0 0; }
.admin-editor-panel[hidden] { display: none; }
.admin-section-intro { margin: -2px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.source-edit-row { margin: 0 0 10px; padding: 12px; border: 1px solid #e7eef3; border-radius: 12px; background: #fbfdff; }
.source-edit-row__id { margin-bottom: 10px; color: var(--ink); font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; }
.admin-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-editor-actions > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-editor-actions > p strong { color: #16745e; }
@media (max-width: 780px) { .admin-editor-shell { display: block; } .admin-editor-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--line); } .admin-editor-rail__eyebrow, .admin-editor-rail__name, .admin-editor-rail__hint { grid-column: 1 / -1; } .admin-editor-rail__metric { padding: 10px 0; } }
@media (max-width: 640px) { .admin-editor-hero { align-items: flex-start; flex-direction: column; } .admin-editor-actions { align-items: stretch; flex-direction: column; } .admin-editor-rail { grid-template-columns: 1fr 1fr; } }
.admin-form__field--readonly { position: relative; }
.admin-form__field--readonly label::after { margin-left: 6px; color: var(--cyan-dark); content: 'READ-ONLY'; font-size: 8px; letter-spacing: .08em; }
.admin-form__field input[readonly] { border-color: #dbe9f0; background: #f7fafc; color: var(--ink); cursor: default; font-family: 'Sora', sans-serif; font-weight: 600; }
.admin-form__field input[readonly]:focus { border-color: #dbe9f0; box-shadow: none; }
.admin-form__checkbox { display: flex; flex-direction: row !important; align-items: center; gap: 9px !important; color: var(--muted); font-size: 11px; font-weight: 600; }
.admin-form__checkbox input { width: 16px; min-height: 16px; accent-color: var(--cyan); }
.admin-form__hint { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-form__error { color: #a34d54; font-size: 10px; }
.admin-form__actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 0; border-top: 0; }
.admin-button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 700; }
.admin-button:hover { border-color: #9ddcf3; background: var(--cyan-soft); }
.admin-button--primary { border-color: var(--cyan); background: var(--cyan); color: #03253a; }
.admin-button--primary:hover { border-color: #29b8ed; background: #29b8ed; }
.admin-readonly-note { margin: 0 0 20px; padding: 11px 13px; border-left: 3px solid var(--cyan); background: #f3f9fd; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-table + .admin-pagination { margin-bottom: 18px; }

@media (max-width: 780px) {
    .admin-detail__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-detail__metric--wide { grid-column: span 2; }
    .admin-form { padding: 13px; }
    .admin-editor-tabs { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 520px) {
    .admin-page-heading { margin-bottom: 12px; }
    .admin-detail__metrics,
    .admin-form__grid { grid-template-columns: 1fr; }
    .admin-detail__metric--wide,
    .admin-form__field--wide { grid-column: auto; }
    .admin-form__actions { flex-direction: column-reverse; }
    .admin-button { width: 100%; }
}

/* Login experience */
html:has(body.login-page) { overflow: hidden; }
.login-page { position: fixed; inset: 0; width: 100%; height: 100dvh; min-height: 100dvh; overflow: hidden; background: var(--canvas); }
.login-shell { display: grid; width: 100%; height: 100dvh; min-height: 100dvh; overflow: hidden; grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr); }
.login-visual { position: relative; display: flex; min-height: 100dvh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 46px clamp(32px, 6vw, 92px) 38px; background: var(--sidebar); color: #fff; }
.login-visual::before, .login-visual::after { position: absolute; border-radius: 999px; content: ''; pointer-events: none; }
.login-visual::before { top: -180px; right: -140px; width: 500px; height: 500px; border: 1px solid rgba(8, 169, 230, .18); box-shadow: 0 0 0 45px rgba(8, 169, 230, .03), 0 0 0 90px rgba(8, 169, 230, .025); }
.login-visual::after { right: 12%; bottom: -255px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(8, 169, 230, .2), transparent 68%); filter: blur(5px); }
.login-brand, .login-visual__content, .login-visual__footer { position: relative; z-index: 1; }
.login-brand { display: inline-flex; width: fit-content; align-items: center; gap: 13px; }
.login-brand__mark { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: #000; overflow: hidden; box-shadow: 0 10px 22px rgba(8, 169, 230, .2); }
.login-brand__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.login-brand__name { display: flex; flex-direction: column; font-family: 'Sora', sans-serif; line-height: 1.05; }
.login-brand__name strong { font-size: 19px; }
.login-brand__name small { margin-top: 5px; color: #9fb3c5; font-family: 'Manrope', sans-serif; font-size: 11px; }
.login-visual__content { max-width: 520px; margin: auto 0; padding: 90px 0; }
.login-eyebrow { display: inline-block; color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.login-visual h1 { max-width: 570px; margin: 20px 0 22px; font-family: 'Sora', sans-serif; font-size: clamp(37px, 4.5vw, 68px); font-weight: 600; letter-spacing: -.065em; line-height: 1.05; }
.login-visual h1 em { color: var(--cyan); font-style: normal; }
.login-visual__content p { max-width: 440px; margin: 0; color: #b7c7d6; font-size: 15px; line-height: 1.75; }
.login-visual__footer { display: flex; align-items: center; gap: 10px; color: #92a7ba; font-size: 11px; }
.login-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #40d393; box-shadow: 0 0 0 4px rgba(64, 211, 147, .12); }
.login-visual__footer-line { width: 28px; height: 1px; margin: 0 3px; background: #314456; }
.login-panel { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 44px clamp(24px, 7vw, 110px); background: #f8fbfe; }
.login-card { width: min(100%, 438px); }
.login-card__heading { position: relative; margin-bottom: 34px; }
.login-card__icon { display: grid; width: 42px; height: 42px; margin-bottom: 28px; place-items: center; border: 1px solid #bce8f7; border-radius: 13px; background: var(--cyan-soft); color: var(--cyan-dark); font-size: 20px; font-weight: 700; }
.login-card h2 { margin: 11px 0 10px; color: var(--ink); font-family: 'Sora', sans-serif; font-size: clamp(24px, 3vw, 31px); font-weight: 600; letter-spacing: -.055em; line-height: 1.15; }
.login-card__heading p { margin: 0; color: var(--muted); font-size: 13px; }
.login-alert { display: flex; flex-direction: column; gap: 3px; margin: 0 0 22px; padding: 13px 15px; border: 1px solid #f0c6c9; border-left: 3px solid var(--danger); border-radius: 10px; background: var(--danger-soft); color: #a34d54; font-size: 12px; line-height: 1.45; }
.login-alert strong { color: #8d3c45; font-size: 11px; }
.login-success { display: flex; flex-direction: column; gap: 3px; margin: 0 0 22px; padding: 13px 15px; border: 1px solid #bce8d2; border-left: 3px solid #40b982; border-radius: 10px; background: #effbf5; color: #287653; font-size: 12px; line-height: 1.45; }
.login-success strong { color: #206545; font-size: 11px; }
.login-form { display: flex; flex-direction: column; gap: 21px; }
.login-field { display: flex; flex-direction: column; gap: 8px; }
.login-field label { color: #344054; font-size: 12px; font-weight: 700; }
.login-field__label-row { display: flex; justify-content: space-between; }
.login-input-wrap { position: relative; display: flex; align-items: center; }
.login-input-icon { position: absolute; left: 15px; color: #8ca0b2; font-size: 15px; font-weight: 700; pointer-events: none; }
.login-input-wrap input { width: 100%; min-height: 52px; padding: 0 47px; border: 1px solid #d8e2eb; border-radius: 12px; outline: 0; background: #fff; color: var(--ink); font-size: 13px; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.login-input-wrap input:hover { border-color: #b7cad8; }
.login-input-wrap input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(8, 169, 230, .12); }
.login-input-wrap input:focus-visible { outline: 0; }
.login-password-toggle { position: absolute; right: 10px; min-width: 48px; min-height: 36px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; color: var(--cyan-dark); font-size: 11px; font-weight: 700; }
.login-password-toggle:hover, .login-password-toggle:focus-visible { background: var(--cyan-soft); outline: 0; } 

.login-submit { display: flex; min-height: 52px; align-items: center; justify-content: space-between; margin-top: 5px; padding: 0 17px 0 20px; border: 1px solid var(--cyan); border-radius: 12px; background: var(--cyan); color: #03253a; font-size: 13px; font-weight: 700; box-shadow: 0 10px 18px rgba(8, 169, 230, .18); transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.login-submit:hover { background: #29b8ed; box-shadow: 0 13px 24px rgba(8, 169, 230, .25); transform: translateY(-1px); }
.login-submit:focus-visible { outline: 3px solid rgba(8, 169, 230, .3); outline-offset: 3px; }
.login-submit span:last-child { font-size: 21px; font-weight: 400; line-height: 1; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 25px 0 0; color: #8a9aaa; font-size: 11px; }
.login-security span { color: #40b982; font-size: 8px; }
.login-panel__footer { margin: 34px 0 0; color: #94a3b2; font-size: 11px; }
.login-panel__footer span { margin: 0 5px; color: #c1ccd5; }
.sidebar__profile-menu { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: #8098ad; font-size: 18px; transition: 160ms ease; }
.sidebar__profile-menu:hover, .sidebar__profile-menu:focus-visible { background: var(--sidebar-soft); color: #fff; outline: 0; }

@media (max-width: 860px) {
    .login-shell { display: block; }
    .login-visual { min-height: 0; height: 39dvh; padding: 28px 28px 25px; }
    .login-visual__content { margin: auto 0; padding: 0; }
    .login-visual h1 { margin: 13px 0 12px; font-size: clamp(31px, 8vw, 48px); }
    .login-visual__content p { max-width: 560px; font-size: 13px; }
    .login-visual__footer { margin-top: 20px; }
    .login-panel { min-height: 0; height: 61dvh; padding: 24px 24px 30px; justify-content: center; }
}

@media (max-width: 480px) {
    .login-visual { min-height: 0; height: 32dvh; padding: 22px 20px; }
    .login-brand__mark { width: 44px; height: 44px; border-radius: 13px; }
    .login-brand__name strong { font-size: 17px; }
    .login-visual__content { margin-top: auto; }
    .login-visual__content p { display: none; }
    .login-visual__footer { margin-top: 15px; font-size: 10px; }
    .login-panel { height: 68dvh; padding: 20px 20px 24px; }
    .login-card__heading { margin-bottom: 20px; }
    .login-card__icon { width: 36px; height: 36px; margin-bottom: 13px; }
    .login-card h2 { margin-top: 7px; font-size: 25px; }
    .login-form { gap: 14px; }
    .login-input-wrap input, .login-submit { min-height: 46px; }
    .login-security { margin-top: 14px; }
    .login-panel__footer { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}


