html{color-scheme:only light;background:#fff}html[data-theme=dark]{color-scheme:dark;background:#101923;--paper:#182432;--ink:#edf3fa;--muted:#b3c1d3;--border:#3b4d64;--blue:#94bbff;--dark:#e5edfa}
.theme-toggle{min-height:44px;padding:8px 13px;border:1px solid #bdcce0;border-radius:12px;background:#f3f7fd;color:#1d3d68;font-size:12px;font-weight:600;white-space:nowrap}
html[data-theme=dark] body{background:#101923;color:#edf3fa}
html[data-theme=dark] :is(.site-header,.search-welcome,.search-bar,.search-context,.results-panel,.panel,.listing-card,.opportunity-card,.opportunity-controls,.opportunity-coverage,.opportunity-evidence-content,.opportunity-method,.public-sources,.provider-card,.facts-band,.round-picker,.property-gallery,.mobile-menu-items,dialog,.modal-head,.modal-body,.modal-footer,.catalog-loading,.boot){background:#182432;color:#edf3fa;border-color:#3b4d64}
html[data-theme=dark] :is(h1,h2,h3,h4,.listing-price,.big-price,.dossier-heading,.opportunity-card-body,.field label,.form-section,.money-list dt,.money-list dd,.facts-band b,.nav-copy strong){color:#edf3fa}
html[data-theme=dark] :is(.sub,.microcopy,.field-help,.statusline,.listing-city,.listing-specs,.listing-bottom,.opportunity-address,.opportunity-timing,.opportunity-assumptions small,.period-heading,.period-copy small,.nav-copy small,.timezone-control,.timezone-control small,.panel p,.facts-band span){color:#b3c1d3}
html[data-theme=dark] :is(input,select,textarea){background:#101923;color:#edf3fa;border-color:#62748c;caret-color:#b6d0ff}
html[data-theme=dark] ::placeholder{color:#aab9cd;opacity:1}
html[data-theme=dark] :is(a,.text-button,.address-link,.back,.header-right button){color:#a6c7ff}
html[data-theme=dark] :is(.btn,.filter-button,.view-switch button,.resale-terms button,.theme-toggle,.mobile-menu summary){background:#24344a;color:#edf3fa;border-color:#536883}
html[data-theme=dark] :is(.btn.primary,.search-submit,.today-auction-link){background:#245dde;color:#fff;border-color:#5d90ff}
html[data-theme=dark] .site-header nav[aria-label="Navegação principal"]{background:#101923;border-color:#3b4d64}
html[data-theme=dark] .site-header nav button[data-view]{background:transparent;color:#d5e2f4;--nav-accent:#94bbff}
html[data-theme=dark] .site-header nav button[data-view=beach]{--nav-accent:#70d5e4}
html[data-theme=dark] .site-header nav button[data-view=opportunities]{--nav-accent:#77dfbb}
html[data-theme=dark] .site-header nav button[data-view]:is(.active,:hover){background:#283b53;border-color:#6986ac;color:var(--nav-accent);box-shadow:none}
html[data-theme=dark] .nav-symbol{background:#263951;color:var(--nav-accent)}
html[data-theme=dark] .site-header nav button[data-view].active .nav-symbol{background:#152a40;color:var(--nav-accent)}
html[data-theme=dark] :is(.brand-logo,.install-logo){background:#fff;border-radius:12px}
html[data-theme=dark] :is(.period-card,.period-number,.segmented,.saved-row,.bid-stats>div,.opportunity-metrics>div,.acquisition-total,.expense-subtotal,.today-schedule,.opportunity-assumptions,.opportunity-empty,.opportunity-no-photo,.photo-placeholder,.map-disclosure,.coverage-strip,.sample-choice){background:#203148;color:#edf3fa;border-color:#4d6685}
html[data-theme=dark] :is(.period-card.active,.segmented .active){background:#304b72;border-color:#94bbff;color:#fff}
html[data-theme=dark] :is(.period-number b,.period-label,.bid-stats b,.expense-subtotal>b,.expense-subtotal>small,.opportunity-metrics b){color:#e6f0ff}
html[data-theme=dark] :is(.notice,.calculator-note,.notice.warn){background:#332d20;color:#f5deb2;border-color:#816c42}
html[data-theme=dark] :is(.notice.error,.negative){color:#ffb5b5}
html[data-theme=dark] :is(.positive,.net,.opportunity-margin){color:#8de6bf}
html[data-theme=dark] :is(th,td){border-color:#3b4d64;color:#edf3fa}
html[data-theme=dark] th{background:#223249}
html[data-theme=dark] :is(.dossier-tabs button,.comparison-controls button){color:#b8c9e1}
html[data-theme=dark] :is(.dossier-tabs button.active,.comparison-controls button.active){color:#b3d0ff;border-color:#94bbff}
html[data-theme=dark] .panel.dark{background:#132b40;border:1px solid #4d6685}
html[data-theme=dark] .map-panel{background:#182432}
html[data-theme=dark] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:#fff;color:#182432}
html[data-theme=dark] :is(button,input,select,textarea,a):focus-visible{outline:3px solid #9fc5ff;outline-offset:3px}
@media print{html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] .panel{background:#fff!important;color:#111!important;color-scheme:light}.theme-toggle{display:none}}

@media print{html[data-theme=dark] *{color:#111!important;background-color:transparent!important;box-shadow:none!important}}

html[data-theme=dark] .period-pills .period-card .period-number{background:#14243a;border-color:#738aa8}
html[data-theme=dark] .period-pills .period-card .period-number b{color:#fff;opacity:1;font-weight:800}
html[data-theme=dark] .period-pills .period-card .period-number>small{color:#dbe8fa;opacity:1}
html[data-theme=dark] .period-pills .period-card.active .period-number{background:#245dde;border-color:#91b5ff}
html[data-theme=dark] .period-heading>span,html[data-theme=dark] .results-line>span>b{color:#f2f7ff}
html[data-theme=dark] .search-welcome-note,html[data-theme=dark] .search-welcome-note b{color:#c8d8ee}

html[data-theme=dark] .cost-extract .acquisition-total b{color:#fff;opacity:1}
html[data-theme=dark] .cost-extract .acquisition-total small{color:#dbe8fa;opacity:1}
@media print{html[data-theme=dark] .cost-extract .acquisition-total b,html[data-theme=dark] .cost-extract .acquisition-total small{color:#111!important}}

/* Shared numeric contrast across catalogue, dossier, valuation and simulation. */
@media screen{
html[data-theme=dark] :is(.stat,.panel.tint,.mini-grid>div,.comparison-summary,.radius-status){background:#203148;border-color:#4d6685;color:#dbe8fa}
html[data-theme=dark] :is(.listing-specs b,.dossier-heading strong,.facts-band div b,.history-event strong,.comparable-value b,.sample-choice b,.map-disclosure b,.stat-number,.hero-number,.mini-grid b,.price,.big-price,.listing-price,.bid-stats b,.opportunity-metrics b,.opportunity-waterfall b,.acquisition-total b,.expense-subtotal>b,.results-line b){color:#fff;opacity:1}
html[data-theme=dark] .comparison-summary b{background:#14243a;color:#fff}
html[data-theme=dark] :is(.bid-stats small,.mini-grid small,.stat-label,.stat small,.opportunity-metrics small,.opportunity-metrics span,.comparable-value span,.comparable-value small,.acquisition-total small,.expense-subtotal>small,.outcome span,.appraisal,.price-label){color:#dbe8fa;opacity:1}
html[data-theme=dark] .opportunity-metrics .opportunity-margin b,html[data-theme=dark] .opportunity-waterfall .net b,html[data-theme=dark] .panel.dark .outcome b,html[data-theme=dark] .panel.dark .profit{color:#9af0cb;opacity:1}
html[data-theme=dark] .panel.dark .profit.negative,html[data-theme=dark] .negative,html[data-theme=dark] .negative b{color:#ffb5b5;opacity:1}
html[data-theme=dark] .calculator-note b{color:#ffe4ae}
}

/* All secondary copy shares the dark palette, including expanded evidence. */
@media screen{
html[data-theme=dark]{--muted:#c4d2e3}
html[data-theme=dark] body :is(.eyebrow,.search-welcome p,.period-heading>small,.period-copy>small,.results-heading p,.results-line,.sort-control,.coverage-strip,.listing-specs,.listing-city,.listing-status,.listing-bottom,.map-disclosure span,.pagination,.statusline,.dossier-heading p,.panel .sub,.panel>p,.plain-list,.prewrap,.field label,.field-help,.field small,.provider-card p,.catalog-loading p,.boot p,.decision-checks legend,.analysis-item p,.analysis-columns>section>p,.analysis-item details,.sample-choice small,.saved-row small,.gallery-message p,.chart-legend,.history-event small,.round-list span,.comparable-description p,.comparable-description small,.image-unavailable,.gallery-image-unavailable,.today-schedule small,.opportunity-controls form>p,.opportunity-check,.opportunity-assumptions p,.opportunity-assumptions dt,.opportunity-assumptions>small,.opportunity-results-heading p,.opportunity-results-heading>label,.opportunity-address,.opportunity-timing,.opportunity-source,.opportunity-evidence summary>span,.opportunity-evidence p,.opportunity-evidence dl>div,.opportunity-waterfall>div,.opportunity-method p,.opportunity-method>p,.facts dt,.facts-band div span,.check-row small,.source-card p,.sources-foot,.timeline small,.document small,.microcopy){color:#c4d2e3}
html[data-theme=dark] body #property-analysis li{color:#c4d2e3}
html[data-theme=dark] body :is(.search-welcome h1,.results-heading h2,.panel h2,.panel h3,.form-grid h3,.provider-card h2,.empty h2,.empty h3,.catalog-loading h1,.boot h1,.analysis-item h4,.analysis-missing summary,.calculator-guide summary,.debt-guidance summary,.opportunity-card-body h2,.opportunity-evidence h3,.opportunity-evidence dd,.opportunity-assumptions dd,.opportunity-empty h3,.opportunity-method h2,.opportunity-method article>b,.install-steps b){color:#f2f7ff}
html[data-theme=dark] body :is(.calculator-guide,.comparison-summary>span,.match-label,.similar-score,.empty,.source-card,.opportunity-mobile-toggle,.install-steps){background:#203148;color:#dbe8fa;border-color:#4d6685}
html[data-theme=dark] body :is(.opportunity-evidence summary,.opportunity-coverage a,.coverage-strip summary>span,.opportunity-controls .text-button,.dossier-top .back,.provider-card a,.listing-bottom button,.search-context [data-action=clear-filters]){color:#b5d2ff}
html[data-theme=dark] body :is(.sort-control select,.opportunity-results-heading select,.timezone-control select){background:#101923;color:#f2f7ff;border-color:#62748c}
html[data-theme=dark] body #decision-stage{background:#101923;color:#f2f7ff}
html[data-theme=dark] body #install-dialog,html[data-theme=dark] body #install-dialog p{background:#182432;color:#dbe8fa}
html[data-theme=dark] body .header-right>button,html[data-theme=dark] body .header-right [data-install-app]{color:#dbe8fa!important}
html[data-theme=dark] body .header-right [data-install-app]{background:#203148}
html[data-theme=dark] body :is(.opportunity-card-tags span,.tag,.listing-price>span){background:#203148;color:#dbe8fa}
html[data-theme=dark] body :is(.opportunity-card-tags .positive,.tag.positive){background:#173d35;color:#9af0cb}
html[data-theme=dark] body :is(.opportunity-card-tags .caution,.tag.amber){background:#3b3020;color:#ffe0a3}
html[data-theme=dark] body .tag.red{background:#412b32;color:#ffb5b5}
html[data-theme=dark] body :is(.photo-placeholder,.opportunity-no-photo){background:#203148;color:#dbe8fa}
html[data-theme=dark] body :is(.photo-placeholder small,.opportunity-no-photo b){color:#c4d2e3}
html[data-theme=dark] body .opportunity-waterfall .net{color:#9af0cb}
}

@media screen{
html[data-theme=dark] body .analysis-columns .analysis-item,html[data-theme=dark] body .analysis-missing{background:#203148;border-color:#526a86;color:#e4edf8}
html[data-theme=dark] body .analysis-columns .analysis-item h4,html[data-theme=dark] body .analysis-missing summary{color:#fff}
html[data-theme=dark] body .analysis-columns .analysis-item :is(p,details,blockquote),html[data-theme=dark] body #property-analysis .analysis-missing li{color:#e4edf8}
html[data-theme=dark] body .analysis-item summary{color:#b9d5ff}
}
.analysis-columns .analysis-item{padding:20px}.analysis-columns .analysis-item h4{font-size:15px;line-height:1.5}.analysis-columns .analysis-item p,.analysis-missing li{font-size:14px;line-height:1.7}.analysis-item details{font-size:13px}

@media screen{
html[data-theme=dark] body :is(button,.btn,select,input,textarea,summary):is(:hover,:focus,:focus-visible,:active){background-color:#2c405b;color:#fff;border-color:#8ba9d0}
html[data-theme=dark] body :is(select,input,textarea):focus{background-color:#101923;color:#fff}
html[data-theme=dark] body select option{background:#182432;color:#fff}
html[data-theme=dark] body :is(.filter-button.chosen,.segmented button.active,.view-switch button.active,.mobile-menu[open]>summary){background:#304b72;color:#fff;border-color:#94bbff}
html[data-theme=dark] body .period-pills .period-card:is(:hover,:focus,:active,.active){background:#304b72;color:#fff;border-color:#94bbff}
html[data-theme=dark] body :is(.btn.primary,.search-submit,.today-auction-link):is(:hover,:focus,:active){background:#1949b5;color:#fff}
html[data-theme=dark] body .site-header nav button[data-view]:is(:hover,:focus,:active){background:#283b53;color:#fff}
html[data-theme=dark] body .brand-logo:is(:hover,:focus,:active){background:#fff}
html[data-theme=dark] body :is(button,.btn,summary):focus-visible{outline:3px solid #b5d2ff;outline-offset:3px}
html[data-theme=dark] body :is(button,.btn,select):disabled{background:#263447;color:#afbed1;opacity:1}
}

/* Readable paired surfaces and payment navigation, in both themes. */
.payment-filters{padding:16px 28px;background:#fff;color:#243d59;border-bottom:1px solid #c8d3df;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.payment-filters>div{display:flex;gap:8px;flex-wrap:wrap}.payment-filters button{border:1px solid #a7b8cb;border-radius:24px;padding:10px 18px;min-height:44px;background:#f4f7fb;color:#263f5b;font:inherit;font-weight:650;cursor:pointer}.payment-filters button[aria-pressed=true]{background:#2457cd;border-color:#2457cd;color:#fff}.payment-filters small{width:100%;color:#4a6078;font-size:12px}.payment-info{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0;color:#24425d}.payment-info strong{background:#e6f3ef;color:#145b49;border:1px solid #9bc7ba;border-radius:8px;padding:7px 10px;font-size:13px}.payment-info span{font-size:12px}.payment-info small{width:100%;color:#4a6078;line-height:1.6}
html:not([data-theme=dark]) :is(.opportunity-evidence p,.opportunity-evidence summary>span,.opportunity-address,.opportunity-timing,.opportunity-metrics small,.opportunity-metrics span,.opportunity-assumptions dt,.opportunity-assumptions>small,.opportunity-controls form>p,.opportunity-results-heading p,.opportunity-method p,.microcopy,.field-help){color:#4a6078}
html[data-theme=dark] .opportunity-page{background:#101923}
html[data-theme=dark] :is(.opportunity-evidence,.opportunity-evidence summary,.opportunity-assumptions,.opportunity-empty,.opportunity-mobile-toggle,.payment-filters){background:#182432;color:#edf3fa;border-color:#50647d}
html[data-theme=dark] .opportunity-evidence summary>span{color:#d2dfef}
html[data-theme=dark] .opportunity-evidence summary:is(:hover,:focus-visible){background:#2c405b;color:#fff}
html[data-theme=dark] :is(.payment-filters small,.payment-info,.payment-info small,.opportunity-assumptions>small,.opportunity-controls form>p,.opportunity-results-heading p,.opportunity-method p){color:#d2dfef}
html[data-theme=dark] .payment-filters button{background:#24364d;color:#edf3fa;border-color:#7d96b5}
html[data-theme=dark] .payment-filters button[aria-pressed=true]{background:#2457cd;color:#fff;border-color:#a8c6ff}
html[data-theme=dark] .payment-info strong{background:#193f38;color:#a5f0d5;border-color:#4e9681}
.payment-filters button:focus-visible,.opportunity-evidence summary:focus-visible{outline:3px solid #6797f2;outline-offset:3px}
@media(max-width:750px){.payment-filters{padding:14px 16px;gap:10px}.payment-filters>strong{width:100%}.payment-filters button{padding:9px 13px;font-size:13px}}

.payment-detail{margin:16px 0}.payment-detail>p,.payment-detail small{color:#4a6078;line-height:1.6}.payment-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.payment-detail dl>div{padding:16px;background:#f1f5fa;border-radius:12px}.payment-detail dt{font-size:13px;color:#4a6078}.payment-detail dd{margin:8px 0 0;font-weight:700;color:#243d59}.payment-detail summary{cursor:pointer;min-height:44px;padding:12px;color:#244c91}.payment-detail article{padding:12px 0;border-bottom:1px solid #a7b8cb}.payment-detail article p{white-space:pre-wrap;overflow-wrap:anywhere}html[data-theme=dark] .payment-detail dl>div{background:#24364d}html[data-theme=dark] .payment-detail :is(p,small,dt){color:#d2dfef}html[data-theme=dark] .payment-detail :is(dd,summary){color:#edf3fa}@media(max-width:600px){.payment-detail dl{grid-template-columns:1fr}}
