/* One explicit light/dark choice applies to desktop, narrow web and Android WebView pages. */
.workspace-tools{display:flex;align-items:center;gap:10px}
.theme-form{margin:0}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:7px 11px;border:1px solid var(--line);border-radius:10px;background:#edf4ef;color:#245e51;font-size:12px;font-weight:700}
.theme-toggle:hover{background:#dcece1;color:#173f35}
.theme-toggle span:first-child{font-size:17px;line-height:1}
.rental-type-field{grid-column:1/-1;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#edf6f0}
.rental-type-field label{font-size:14px}
.rental-type-field small{margin-top:6px;color:var(--muted);font-size:12px}
.rent-estimate-line{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;margin:10px 0 0;font-size:12px}
.rent-estimate-line strong{font-size:13px}
.rent-support{display:inline-block;max-width:100%;padding:5px 9px;border:1px solid #b7d8c5;border-radius:9px;background:#eaf5ed;color:#245e51;font-size:11px;line-height:1.4}
.rent-support-area_guide{border-color:#d3c9a2;background:#f8f3e5;color:#705a29}
.rent-support-none{border-color:var(--line);background:#f2f4f2;color:var(--muted)}
@media(max-width:600px){.workspace-header .account-link,.theme-text{display:none}.theme-toggle{width:39px;padding:6px}.public-header .theme-form{flex:none}}

html[data-theme="dark"]{color-scheme:dark;--ink:#e8f3ef;--muted:#b6c9c4;--green:#89dcba;--paper:#101a20;--line:#36515a;--white:#192a31;--mint:#1d3b34;--blue:#203641;--lilac:#302d42;--sand:#3b3027;--shadow:0 8px 28px #0005}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] a{color:var(--green)}
html[data-theme="dark"] a:hover{color:#b7f1d3}
html[data-theme="dark"] :is(.workspace-header,.public-header,.card,.panel,.loan-card,.link-tile,.research-stat,.property-tile,.rental-register,.search-brief-grid>div,.research-tools a,.research-footer-links a,.quick-actions a,.research-primary a.active,.rental-views a,.search-settings-shortcut a,.scenario,.research-more-stats dl){background:#192a31;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .workspace-header{box-shadow:0 4px 15px #0004}
html[data-theme="dark"] :is(.secondary,.quiet,.task-tick,.theme-toggle){background:#203b38;color:#b9f0d5;border-color:#52776c}
html[data-theme="dark"] :is(button,.button):not(.secondary):not(.quiet):not(.task-tick):not(.theme-toggle):not(.signout){background:#27785e;color:#fff;border-color:#27785e}
html[data-theme="dark"] :is(button,.button):not(.secondary):not(.quiet):not(.task-tick):not(.theme-toggle):not(.signout):hover{background:#32916e;color:#fff}
html[data-theme="dark"] :is(input:not([type=checkbox]),select,textarea){background:#102229;color:var(--ink);border-color:#567078}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#99b0ac}
html[data-theme="dark"] :is(.badge,.status-good,.status-warning){background:#244039;color:#d6eee2;border-color:#52776c}
html[data-theme="dark"] :is(.notice,.review-banner,.rental-banner){background:#372c24;color:#f4e6cf;border-color:#806242}
html[data-theme="dark"] .notice.error{background:#412925;color:#ffd8cb;border-color:#98655c}
html[data-theme="dark"] .notice.success{background:#1b3d30;color:#c8f4dc;border-color:#427e61}
html[data-theme="dark"] :is(.funding-card,.search-brief,.featured-opportunity,.research-status,.property-rent-evidence){background:#1b3c34;color:var(--ink);border-color:#3d705b}
html[data-theme="dark"] :is(.rental-type-field,.rent-support){background:#1d3f34;color:#d2f1df;border-color:#4b8061}
html[data-theme="dark"] .rent-support-area_guide{background:#3a3424;color:#f1dfae;border-color:#887846}
html[data-theme="dark"] .rent-support-none{background:#27343a;color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] :is(.funding-card p,.funding-card small,.featured-opportunity small,.featured-opportunity>span:first-child>span,.property-rent-evidence,.property-secondary,.property-keyline small,.research-stat small,.opportunity-figures small,.report-summary small,.review-banner small){color:var(--muted)}
html[data-theme="dark"] :is(.research-stat:nth-child(2),.research-stat:nth-child(3),.research-stat:nth-child(4),.property-keyline>span,.property-keyline>span:nth-child(2),.opportunity-figures>div,.opportunity-figures>div:nth-child(2),.opportunity-figures>div:nth-child(3),.report-summary>div,.report-summary>div:nth-child(2),.report-summary>div:nth-child(3),.report-summary>div:nth-child(4),.loan-total,.ranking-help p,.totals .emphasis,.credential){background:#21363c;color:var(--ink)}
html[data-theme="dark"] :is(.research-primary,.report-jumps,.rental-views){background:#15272d;border-color:var(--line)}
html[data-theme="dark"] :is(.research-primary a,.rental-views a,.search-settings-shortcut a,.property-tile-heading,.property-rank,.research-primary a.active){color:#b9e8d3}
html[data-theme="dark"] :is(.rental-line:hover,.report-jumps a:hover){background:#244039}
html[data-theme="dark"] :is(.property-photo,.report-photo){background:linear-gradient(145deg,#233f41,#233843);color:#c2d9d1}
html[data-theme="dark"] .photo-placeholder{color:#bfd3cb}
html[data-theme="dark"] :is(th,pre,.insight-chart svg){background:#17282e;color:var(--ink)}
html[data-theme="dark"] :is(td,th,.totals>div){border-color:var(--line)}
html[data-theme="dark"] :is(.chart-label,.eyebrow,.card-label,.opportunity-foot .key-risk,.opportunity-foot .availability-note){color:#b9d5c9}
html[data-theme="dark"] :is(.area-high,.area-middle,.area-low){background:#20343a;color:var(--ink)}
html[data-theme="dark"] .mobile-nav{background:#192a31;border-color:var(--line);box-shadow:0 -7px 22px #0008}
html[data-theme="dark"] .mobile-nav a{color:#bbd0ca}
html[data-theme="dark"] .mobile-nav a.active{background:#2a4c40;color:#c1f4d8}
html[data-theme="dark"] :is(.balance-hero,.money-bank,.research-hero){background:linear-gradient(135deg,#172e36,#205346);color:#fff}
html[data-theme="dark"] .card.hero{background:#205346;color:#fff;border-color:#4c8a71}
html[data-theme="dark"] .card.hero :is(.card-label,p,small){color:#d7efe1}
html[data-theme="dark"] :is(.balance-hero a,.money-bank a,.research-hero,.research-hero:hover){color:#fff}
html[data-theme="dark"] .theme-toggle:hover{background:#2e5146;color:#fff}

@media print{html[data-theme="dark"]{color-scheme:light;--ink:#172c36;--muted:#61737c;--green:#146653;--paper:#fff;--line:#bbb;--white:#fff;--surface:#fff;--card:#fff;--primary:#176953}html[data-theme="dark"] :is(body,.card,.panel,.scenario,th,td,.report-summary>div,.property-tile,.rental-register,.research-stat){background:#fff!important;color:#111!important;border-color:#bbb!important}.theme-form{display:none!important}}
