.display-preferences{display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.3}.display-preferences label{display:grid;gap:4px;margin:0;white-space:nowrap;font-size:12px;letter-spacing:.02em;color:var(--muted)}.display-preferences select{width:auto;max-width:145px;min-height:36px;padding:6px 27px 6px 10px;margin:0;border:1px solid var(--line);border-radius:8px;font-size:14px;color:var(--ink);background:var(--surface,#fff)}.auth-panel{position:relative;padding-top:100px}.auth-panel>.display-preferences{position:absolute;top:22px;right:30px}.topbar-actions>.top-country{display:none}.topbar-actions{gap:14px}.tenant-header>.display-preferences{order:3;margin-left:auto}.forecast-definition{padding:10px 12px;border-left:3px solid var(--primary);background:var(--primary-soft);border-radius:0 8px 8px 0;width:100%;line-height:1.5}.forecast-definition span{display:block;font-size:14px;color:var(--muted)}.forecast-definition b{font-size:16px;font-weight:600}.occupancy-summary{width:100%}.occupancy-summary svg{display:block;width:100%;height:12px;margin-bottom:10px}.occupancy-summary>div{display:flex;justify-content:space-between;gap:10px;font-size:14px;flex-wrap:wrap}.occupancy-summary b{font-weight:600}.occupancy-summary span{color:var(--muted)}.occupancy-track{fill:var(--line)}.occupancy-fill{fill:var(--primary)}
:root[data-theme=light]{color-scheme:light;--surface:#fff}
:root[data-theme=dark]{color-scheme:dark;--surface:#20252e;--paper:#171b22;--ink:#eef0f5;--muted:#a9b2c3;--line:#353d4b;--primary:#ee929c;--primary-dark:#b9404b;--primary-soft:#38272e;--green:#75c9a8;--red:#ee929c;--shadow:0 4px 24px #0002}
[data-theme=dark] body{background:var(--paper);color:var(--ink)}
[data-theme=dark] :is(.card,.stat.insight-card,.section-metric,aside,header,dialog,.auth-panel,.auth,.property,.records-card,.context-card,#tenant-space,.tenant-main){background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:var(--shadow)}
[data-theme=dark] :is(.toolbar,.page-toolbar,main){background:var(--paper)}
[data-theme=dark] :is(h1,h2,h3,strong,.insight-value,.person-cell strong,.property-info strong,.context-number,.section-metric strong,.ring-value,.profile-label strong,.page-heading h1,.activity-amount strong){color:var(--ink)}
[data-theme=dark] :is(p,small,.muted,.hint,.eyebrow,.nav-caption,.insight-heading p,.insight-detail b,.insight-detail>span,.table-foot,.property-address,.context-note,.context-empty,.axis-note,.calendar-detail,.calendar-scale,.chart-explanation,.section-head p,.chart-legend,.profile-label small,.page-heading p,.month-label,.scatter-key small,.method-key,.form-note,.detail-tenant,.table-search span,.section-tools,.occupancy-label){color:var(--muted)}
[data-theme=dark] :is(input,select,textarea,#global-search,.table-search input,.section-search input){background:#181d25;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(th,thead,.table-controls,.table-foot,.list-heading,.section-tools,.property-info,.property-bottom,.property-collection,.tenant-home-unit,.tenant-home-unit dl,.insight-action,.quick-create,.form-note,.context-note,.calendar-detail){background:#1c212a;border-color:var(--line)}
[data-theme=dark] :is(td,tr,.section-head,.activity-row,.reminder,.method-row,.method-key,.sidebar-bottom,.sidebar-brand,.nav-children,dl>div,.property-bottom,.context-line,.topbar-divider){border-color:var(--line)}
[data-theme=dark] :is(.subtle-button,.secondary,.light,.count-pill,.metric-icon,.property-symbol,.person-avatar,.document-avatar,.activity-avatar,.avatar,.context-icon,.alert-icon,.filter-tabs,.segmented,.forecast-definition){background:var(--primary-soft);color:var(--primary)}
[data-theme=dark] :is(.primary,.primary:hover){color:#fff;background:#b9404b}
[data-theme=dark] :is(.insight-action,.text-button,.danger,.receipt,.panel-link){color:var(--primary)}
[data-theme=dark] :is(.insight-action:hover,.subtle-button:hover,.icon-button:hover,nav button:hover){background:#38272e}
[data-theme=dark] nav button{color:#bcc4d2}[data-theme=dark] nav button.active{background:#38272e;color:#ffb0b9}[data-theme=dark] .nav-children button:before{border-color:var(--line);background:var(--surface)}
[data-theme=dark] :is(.filter-tabs button,.segmented button){color:var(--muted)}[data-theme=dark] :is(.filter-tabs .selected,.segmented .selected){background:var(--surface);color:var(--primary)}
[data-theme=dark] .intro{background:#2b2228;color:var(--ink)}[data-theme=dark] .intro :is(p,h1,.intro-bottom){color:#ead8dc}[data-theme=dark] .intro .eyebrow{color:#edb4ba}
[data-theme=dark] .brand img{filter:none;}[data-theme=dark] .welcome-illustration{opacity:.9}
[data-theme=dark] .status.paid{background:#203d33;color:#99e0c1}[data-theme=dark] .status.late{background:#452c33;color:#ffb3bd}[data-theme=dark] .status.pending{background:#3c3328;color:#e9c18c}
[data-theme=dark] .arrears-signal{background:#382e25}[data-theme=dark] .arrears-signal b{color:#f0be8d}[data-theme=dark] .arrears-signal span:not(.signal-dot){color:#d4bba2}
[data-theme=dark] :is(.collection-track,.positive-amount,.activation-success){color:#8dd5b7}[data-theme=dark] .collection-track span{color:var(--muted)}
[data-theme=dark] :is(.income-svg,.scatter-svg) text{fill:var(--muted)}[data-theme=dark] .scatter-svg .point-label{fill:#fff}[data-theme=dark] .ring-value{fill:var(--ink)}[data-theme=dark] .ring-label{fill:var(--muted)}[data-theme=dark] :is(.income-svg,.scatter-svg) line{stroke:var(--line)}[data-theme=dark] .collection-track svg path:first-child,[data-theme=dark] #recovery-chart circle:first-child{stroke:var(--line)}
[data-theme=dark] .calendar-day.heat-0{background:#282f3a;color:#bac3d2}[data-theme=dark] .calendar-day.heat-1{color:#562d35}[data-theme=dark] .calendar-day.heat-2{color:#48242c}[data-theme=dark] .calendar-weekdays{color:var(--muted)}
[data-theme=dark] .server-upgrade{background:#362e22;color:#e6c695;border-color:#665137}[data-theme=dark] #notice{background:#eef0f5;color:#20252e}[data-theme=dark] dialog::backdrop{background:#0009}
@media(max-width:1150px){header:not(.tenant-header){height:auto;min-height:90px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.topbar-actions{margin-left:auto;gap:9px}.profile-label,.topbar-divider{display:none}.display-preferences{gap:8px}.display-preferences select{max-width:130px}.display-preferences label{font-size:11px}#global-search{min-width:120px;flex:1}}
@media(max-width:760px){.topbar-actions{flex:1;justify-content:flex-end}.topbar-actions>.avatar,.topbar-actions>#header-logout{display:none}.display-preferences select{font-size:13px;max-width:120px;min-height:38px}.display-preferences label>span{font-size:12px}#global-search{display:none}.auth-panel>.display-preferences{left:22px;right:auto;top:20px}.auth-panel{padding-top:115px}.tenant-header>.display-preferences{flex-basis:100%;order:5;margin-left:0}.insight-value{white-space:normal!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
[data-theme=dark] label{color:#c4ccda}[data-theme=dark] .section-search{background:#181d25;border-color:var(--line)}[data-theme=dark] .section-search input{border:0}[data-theme=dark] :is(.sidebar-bottom>span,.section-metric p,.context-number small,.contact-cell,.calendar-weekdays,.section-search .icon){color:var(--muted)}[data-theme=dark] kbd{background:#303846;color:#d7deea;border-color:var(--line)}
[data-theme=dark] :is(td,th,td small){color:#b3bece}[data-theme=dark] td strong{color:var(--ink)}[data-theme=dark] .positive-amount{color:#8dd5b7!important}[data-theme=dark] .void-amount{color:#f3a7b2!important}
@media(max-width:1400px){.section-columns{grid-template-columns:minmax(0,1fr)}.section-columns>.context-card{display:block}.section-columns>.records-card{min-width:0}}
/* Compact, icon-led utilities. Menus remain readable in every appearance. */
.display-preferences{gap:6px;line-height:1}.preference-control{position:relative}.preference-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;height:44px;padding:10px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);font-size:13px;font-weight:650}.preference-trigger svg{display:block;width:21px;height:21px}.preference-trigger:hover,.preference-trigger[aria-expanded=true]{background:var(--primary-soft);color:var(--primary)}.preference-trigger:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.theme-trigger{width:44px}.preference-menu{position:absolute;top:calc(100% + 9px);right:0;z-index:80;width:188px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);box-shadow:0 12px 38px #18203020;line-height:1.4}.preference-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;border-radius:7px;background:transparent;color:var(--ink);text-align:left;font-size:15px;font-weight:500}.preference-menu button>svg{width:19px;height:19px;flex:none}.preference-menu button:hover,.preference-menu button:focus-visible{background:var(--primary-soft);color:var(--primary)}.preference-menu button[aria-checked=true]{color:var(--primary);background:var(--primary-soft)}.preference-check{margin-left:auto;display:flex;align-items:center;visibility:hidden}.preference-check svg{width:17px;height:17px}.preference-menu [aria-checked=true] .preference-check{visibility:visible}.topbar-actions{gap:12px}.auth-panel>.display-preferences{top:22px;right:28px}.tenant-header>.display-preferences{flex-basis:auto;order:3;margin-left:auto}
/* The overview gives one value, one supporting line and a compact data signal. */
.stat.compact-kpi{padding:20px 22px 18px;border-radius:15px;box-shadow:0 4px 18px #25303d05;min-height:225px;gap:0}.compact-kpi:before{left:22px;right:22px;height:2px;opacity:.8}.compact-kpi .insight-heading{gap:10px;margin-bottom:18px;align-items:center;min-height:38px}.compact-kpi .metric-icon{width:36px;height:36px;border-radius:9px;box-shadow:none}.compact-kpi .metric-icon .icon{width:19px;height:19px}.compact-kpi .insight-heading p{font-size:15px;font-weight:600;flex:1;line-height:1.4}.compact-kpi .metric-link{background:transparent;color:var(--muted);padding:8px;display:grid;place-items:center;border-radius:8px;flex:none;min-width:36px;height:36px;margin-right:-8px}.compact-kpi .metric-link .icon{width:17px;height:17px}.compact-kpi .metric-link:hover{background:var(--primary-soft);color:var(--primary)}.compact-kpi .insight-value{font-size:clamp(26px,2.1vw,34px);line-height:1.3;letter-spacing:-.8px}.compact-kpi .kpi-caption{color:var(--muted);font-size:14px;line-height:1.5;margin-top:5px}.compact-kpi .kpi-visual{margin-top:auto;padding-top:12px;color:#b9404b;position:relative;min-height:57px}.compact-kpi.collection .kpi-visual{color:#27876d}.compact-kpi .kpi-spark{width:100%;height:30px;display:block;overflow:visible}.compact-kpi .kpi-range{display:block;font-size:12px;text-align:right;color:var(--muted);line-height:1.4;margin-top:2px}.compact-kpi .kpi-track{height:6px;width:100%;display:block;margin-top:22px}.compact-kpi.arrears .occupancy-fill{fill:#c68145}.compact-kpi .occupancy-fill{fill:#b9404b}.compact-kpi .occupancy-track{fill:var(--line)}
body:has(dialog[open]){overflow:hidden}dialog{max-height:calc(100dvh - 40px);overscroll-behavior:contain}dialog::backdrop{background:#20253255;backdrop-filter:blur(3px)}dialog :is(input,select,textarea):focus-visible{outline:2px solid var(--primary);outline-offset:2px}dialog .section-head>button{min-width:40px;min-height:40px;border-radius:9px}dialog .section-head>button:hover{background:var(--primary-soft);color:var(--primary)}
[data-theme=dark] .preference-menu{box-shadow:0 12px 38px #0005}[data-theme=dark] .compact-kpi .kpi-visual{color:#ed929d}[data-theme=dark] .compact-kpi.collection .kpi-visual{color:#82c8ab}[data-theme=dark] .compact-kpi .occupancy-fill{fill:#d87e8a}[data-theme=dark] .compact-kpi.arrears .occupancy-fill{fill:#d69b65}
@media(max-width:1150px){header:not(.tenant-header){min-height:76px}.topbar-actions{gap:7px}}
@media(max-width:760px){.preference-menu{right:0;max-width:calc(100vw - 28px)}.auth-panel>.display-preferences{left:auto;right:18px}.auth-panel{padding-top:90px}.compact-kpi .insight-heading p{font-size:15px}.tenant-header>.display-preferences{order:0;margin-left:auto}.tenant-header>.display-preferences .preference-menu{right:0}.stat.compact-kpi{min-height:218px}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}}
.compact-kpi .insight-value{font-size:32px}.compact-kpi .insight-heading p{font-size:16px}.compact-kpi .kpi-caption{font-size:15px}.compact-kpi .kpi-range{font-size:14px}@media(max-width:460px){.compact-kpi .insight-value{font-size:30px}}
